var AI=Object.defineProperty;var RI=(e,t,r)=>t in e?AI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ue=(e,t,r)=>(RI(e,typeof t!="symbol"?t+"":t,r),r);function PI(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.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)}})();var Ey=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function MI(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function FI(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var kl={},NI={get exports(){return kl},set exports(e){kl=e}},$f={},p={},xI={get exports(){return p},set exports(e){p=e}},xe={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var vc=Symbol.for("react.element"),DI=Symbol.for("react.portal"),OI=Symbol.for("react.fragment"),LI=Symbol.for("react.strict_mode"),BI=Symbol.for("react.profiler"),UI=Symbol.for("react.provider"),HI=Symbol.for("react.context"),zI=Symbol.for("react.forward_ref"),KI=Symbol.for("react.suspense"),GI=Symbol.for("react.memo"),qI=Symbol.for("react.lazy"),_y=Symbol.iterator;function VI(e){return e===null||typeof e!="object"?null:(e=_y&&e[_y]||e["@@iterator"],typeof e=="function"?e:null)}var ZC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},e0=Object.assign,t0={};function vu(e,t,r){this.props=e,this.context=t,this.refs=t0,this.updater=r||ZC}vu.prototype.isReactComponent={};vu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};vu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function r0(){}r0.prototype=vu.prototype;function Pg(e,t,r){this.props=e,this.context=t,this.refs=t0,this.updater=r||ZC}var Mg=Pg.prototype=new r0;Mg.constructor=Pg;e0(Mg,vu.prototype);Mg.isPureReactComponent=!0;var Cy=Array.isArray,n0=Object.prototype.hasOwnProperty,Fg={current:null},o0={key:!0,ref:!0,__self:!0,__source:!0};function i0(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)n0.call(t,n)&&!o0.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:vc,type:e,key:i,ref:a,props:o,_owner:Fg.current}}function WI(e,t){return{$$typeof:vc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ng(e){return typeof e=="object"&&e!==null&&e.$$typeof===vc}function jI(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Sy=/\/+/g;function Fh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jI(""+e.key):t.toString(36)}function fd(e,t,r,n,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case vc:case DI:a=!0}}if(a)return a=e,o=o(a),e=n===""?"."+Fh(a,0):n,Cy(o)?(r="",e!=null&&(r=e.replace(Sy,"$&/")+"/"),fd(o,t,r,"",function(l){return l})):o!=null&&(Ng(o)&&(o=WI(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Sy,"$&/")+"/")+e)),t.push(o)),1;if(a=0,n=n===""?".":n+":",Cy(e))for(var s=0;s<e.length;s++){i=e[s];var u=n+Fh(i,s);a+=fd(i,t,r,u,o)}else if(u=VI(e),typeof u=="function")for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=n+Fh(i,s++),a+=fd(i,t,r,u,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Fc(e,t,r){if(e==null)return e;var n=[],o=0;return fd(e,n,"","",function(i){return t.call(r,i,o++)}),n}function $I(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Nr={current:null},hd={transition:null},QI={ReactCurrentDispatcher:Nr,ReactCurrentBatchConfig:hd,ReactCurrentOwner:Fg};xe.Children={map:Fc,forEach:function(e,t,r){Fc(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Fc(e,function(){t++}),t},toArray:function(e){return Fc(e,function(t){return t})||[]},only:function(e){if(!Ng(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Component=vu;xe.Fragment=OI;xe.Profiler=BI;xe.PureComponent=Pg;xe.StrictMode=LI;xe.Suspense=KI;xe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QI;xe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=e0({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Fg.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)n0.call(t,u)&&!o0.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){s=Array(u);for(var l=0;l<u;l++)s[l]=arguments[l+2];n.children=s}return{$$typeof:vc,type:e.type,key:o,ref:i,props:n,_owner:a}};xe.createContext=function(e){return e={$$typeof:HI,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:UI,_context:e},e.Consumer=e};xe.createElement=i0;xe.createFactory=function(e){var t=i0.bind(null,e);return t.type=e,t};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:zI,render:e}};xe.isValidElement=Ng;xe.lazy=function(e){return{$$typeof:qI,_payload:{_status:-1,_result:e},_init:$I}};xe.memo=function(e,t){return{$$typeof:GI,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=hd.transition;hd.transition={};try{e()}finally{hd.transition=t}};xe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};xe.useCallback=function(e,t){return Nr.current.useCallback(e,t)};xe.useContext=function(e){return Nr.current.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e){return Nr.current.useDeferredValue(e)};xe.useEffect=function(e,t){return Nr.current.useEffect(e,t)};xe.useId=function(){return Nr.current.useId()};xe.useImperativeHandle=function(e,t,r){return Nr.current.useImperativeHandle(e,t,r)};xe.useInsertionEffect=function(e,t){return Nr.current.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return Nr.current.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return Nr.current.useMemo(e,t)};xe.useReducer=function(e,t,r){return Nr.current.useReducer(e,t,r)};xe.useRef=function(e){return Nr.current.useRef(e)};xe.useState=function(e){return Nr.current.useState(e)};xe.useSyncExternalStore=function(e,t,r){return Nr.current.useSyncExternalStore(e,t,r)};xe.useTransition=function(){return Nr.current.useTransition()};xe.version="18.2.0";(function(e){e.exports=xe})(xI);const La=MI(p),Bd=PI({__proto__:null,default:La},[p]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var YI=p,XI=Symbol.for("react.element"),JI=Symbol.for("react.fragment"),ZI=Object.prototype.hasOwnProperty,ek=YI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tk={key:!0,ref:!0,__self:!0,__source:!0};function a0(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)ZI.call(t,n)&&!tk.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:XI,type:e,key:i,ref:a,props:o,_owner:ek.current}}$f.Fragment=JI;$f.jsx=a0;$f.jsxs=a0;(function(e){e.exports=$f})(NI);const Ud=kl.Fragment,K=kl.jsx,at=kl.jsxs;var Wp={},Al={},rk={get exports(){return Al},set exports(e){Al=e}},vn={},jp={},nk={get exports(){return jp},set exports(e){jp=e}},s0={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(T,M){var F=T.length;T.push(M);e:for(;0<F;){var N=F-1>>>1,x=T[N];if(0<o(x,M))T[N]=M,T[F]=x,F=N;else break e}}function r(T){return T.length===0?null:T[0]}function n(T){if(T.length===0)return null;var M=T[0],F=T.pop();if(F!==M){T[0]=F;e:for(var N=0,x=T.length,Y=x>>>1;N<Y;){var de=2*(N+1)-1,ye=T[de],V=de+1,ke=T[V];if(0>o(ye,F))V<x&&0>o(ke,ye)?(T[N]=ke,T[V]=F,N=V):(T[N]=ye,T[de]=F,N=de);else if(V<x&&0>o(ke,F))T[N]=ke,T[V]=F,N=V;else break e}}return M}function o(T,M){var F=T.sortIndex-M.sortIndex;return F!==0?F:T.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,d=null,f=3,h=!1,m=!1,y=!1,E=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(T){for(var M=r(l);M!==null;){if(M.callback===null)n(l);else if(M.startTime<=T)n(l),M.sortIndex=M.expirationTime,t(u,M);else break;M=r(l)}}function S(T){if(y=!1,C(T),!m)if(r(u)!==null)m=!0,me(w);else{var M=r(l);M!==null&&P(S,M.startTime-T)}}function w(T,M){m=!1,y&&(y=!1,v(k),k=-1),h=!0;var F=f;try{for(C(M),d=r(u);d!==null&&(!(d.expirationTime>M)||T&&!se());){var N=d.callback;if(typeof N=="function"){d.callback=null,f=d.priorityLevel;var x=N(d.expirationTime<=M);M=e.unstable_now(),typeof x=="function"?d.callback=x:d===r(u)&&n(u),C(M)}else n(u);d=r(u)}if(d!==null)var Y=!0;else{var de=r(l);de!==null&&P(S,de.startTime-M),Y=!1}return Y}finally{d=null,f=F,h=!1}}var I=!1,b=null,k=-1,O=5,L=-1;function se(){return!(e.unstable_now()-L<O)}function B(){if(b!==null){var T=e.unstable_now();L=T;var M=!0;try{M=b(!0,T)}finally{M?ae():(I=!1,b=null)}}else I=!1}var ae;if(typeof g=="function")ae=function(){g(B)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,oe=G.port2;G.port1.onmessage=B,ae=function(){oe.postMessage(null)}}else ae=function(){E(B,0)};function me(T){b=T,I||(I=!0,ae())}function P(T,M){k=E(function(){T(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,me(w))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function(T){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var F=f;f=M;try{return T()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,M){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var F=f;f=T;try{return M()}finally{f=F}},e.unstable_scheduleCallback=function(T,M,F){var N=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?N+F:N):F=N,T){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=F+x,T={id:c++,callback:M,priorityLevel:T,startTime:F,expirationTime:x,sortIndex:-1},F>N?(T.sortIndex=F,t(l,T),r(u)===null&&T===r(l)&&(y?(v(k),k=-1):y=!0,P(S,F-N))):(T.sortIndex=x,t(u,T),m||h||(m=!0,me(w))),T},e.unstable_shouldYield=se,e.unstable_wrapCallback=function(T){var M=f;return function(){var F=f;f=M;try{return T.apply(this,arguments)}finally{f=F}}}})(s0);(function(e){e.exports=s0})(nk);/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var u0=p,pn=jp;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l0=new Set,Rl={};function $a(e,t){eu(e,t),eu(e+"Capture",t)}function eu(e,t){for(Rl[e]=t,e=0;e<t.length;e++)l0.add(t[e])}var ni=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$p=Object.prototype.hasOwnProperty,ok=/^[: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]*$/,wy={},Ty={};function ik(e){return $p.call(Ty,e)?!0:$p.call(wy,e)?!1:ok.test(e)?Ty[e]=!0:(wy[e]=!0,!1)}function ak(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sk(e,t,r,n){if(t===null||typeof t>"u"||ak(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xr(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var cr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){cr[e]=new xr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];cr[t]=new xr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){cr[e]=new xr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){cr[e]=new xr(e,2,!1,e,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(e){cr[e]=new xr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){cr[e]=new xr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){cr[e]=new xr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){cr[e]=new xr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){cr[e]=new xr(e,5,!1,e.toLowerCase(),null,!1,!1)});var xg=/[\-:]([a-z])/g;function Dg(e){return e[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(e){var t=e.replace(xg,Dg);cr[t]=new xr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xg,Dg);cr[t]=new xr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xg,Dg);cr[t]=new xr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){cr[e]=new xr(e,1,!1,e.toLowerCase(),null,!1,!1)});cr.xlinkHref=new xr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){cr[e]=new xr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Og(e,t,r,n){var o=cr.hasOwnProperty(t)?cr[t]:null;(o!==null?o.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sk(t,r,o,n)&&(r=null),n||o===null?ik(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=r===null?o.type===3?!1:"":r:(t=o.attributeName,n=o.attributeNamespace,r===null?e.removeAttribute(t):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var ui=u0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Nc=Symbol.for("react.element"),Ss=Symbol.for("react.portal"),ws=Symbol.for("react.fragment"),Lg=Symbol.for("react.strict_mode"),Qp=Symbol.for("react.profiler"),c0=Symbol.for("react.provider"),d0=Symbol.for("react.context"),Bg=Symbol.for("react.forward_ref"),Yp=Symbol.for("react.suspense"),Xp=Symbol.for("react.suspense_list"),Ug=Symbol.for("react.memo"),Ci=Symbol.for("react.lazy"),f0=Symbol.for("react.offscreen"),by=Symbol.iterator;function Ru(e){return e===null||typeof e!="object"?null:(e=by&&e[by]||e["@@iterator"],typeof e=="function"?e:null)}var bt=Object.assign,Nh;function Qu(e){if(Nh===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Nh=t&&t[1]||""}return`
`+Nh+e}var xh=!1;function Dh(e,t){if(!e||xh)return"";xh=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var o=l.stack.split(`
`),i=n.stack.split(`
`),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 u=`
`+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{xh=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Qu(e):""}function uk(e){switch(e.tag){case 5:return Qu(e.type);case 16:return Qu("Lazy");case 13:return Qu("Suspense");case 19:return Qu("SuspenseList");case 0:case 2:case 15:return e=Dh(e.type,!1),e;case 11:return e=Dh(e.type.render,!1),e;case 1:return e=Dh(e.type,!0),e;default:return""}}function Jp(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ws:return"Fragment";case Ss:return"Portal";case Qp:return"Profiler";case Lg:return"StrictMode";case Yp:return"Suspense";case Xp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d0:return(e.displayName||"Context")+".Consumer";case c0:return(e._context.displayName||"Context")+".Provider";case Bg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ug:return t=e.displayName||null,t!==null?t:Jp(e.type)||"Memo";case Ci:t=e._payload,e=e._init;try{return Jp(e(t))}catch{}}return null}function lk(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jp(t);case 8:return t===Lg?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Yi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function h0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ck(e){var t=h0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xc(e){e._valueTracker||(e._valueTracker=ck(e))}function p0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=h0(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Hd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zp(e,t){var r=t.checked;return bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Iy(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Yi(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function m0(e,t){t=t.checked,t!=null&&Og(e,"checked",t,!1)}function em(e,t){m0(e,t);var r=Yi(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tm(e,t.type,r):t.hasOwnProperty("defaultValue")&&tm(e,t.type,Yi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ky(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function tm(e,t,r){(t!=="number"||Hd(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Yu=Array.isArray;function Gs(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Yi(r),t=null,o=0;o<e.length;o++){if(e[o].value===r){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function rm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return bt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ay(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(j(92));if(Yu(r)){if(1<r.length)throw Error(j(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Yi(r)}}function g0(e,t){var r=Yi(t.value),n=Yi(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Ry(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function v0(e){switch(e){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 nm(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?v0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Dc,y0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Dc=Dc||document.createElement("div"),Dc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Dc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ol={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},dk=["Webkit","ms","Moz","O"];Object.keys(ol).forEach(function(e){dk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ol[t]=ol[e]})});function E0(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ol.hasOwnProperty(e)&&ol[e]?(""+t).trim():t+"px"}function _0(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=E0(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var fk=bt({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 om(e,t){if(t){if(fk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function im(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 am=null;function Hg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sm=null,qs=null,Vs=null;function Py(e){if(e=_c(e)){if(typeof sm!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Zf(t),sm(e.stateNode,e.type,t))}}function C0(e){qs?Vs?Vs.push(e):Vs=[e]:qs=e}function S0(){if(qs){var e=qs,t=Vs;if(Vs=qs=null,Py(e),t)for(e=0;e<t.length;e++)Py(t[e])}}function w0(e,t){return e(t)}function T0(){}var Oh=!1;function b0(e,t,r){if(Oh)return e(t,r);Oh=!0;try{return w0(e,t,r)}finally{Oh=!1,(qs!==null||Vs!==null)&&(T0(),S0())}}function Ml(e,t){var r=e.stateNode;if(r===null)return null;var n=Zf(r);if(n===null)return null;r=n[t];e:switch(t){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)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(j(231,t,typeof r));return r}var um=!1;if(ni)try{var Pu={};Object.defineProperty(Pu,"passive",{get:function(){um=!0}}),window.addEventListener("test",Pu,Pu),window.removeEventListener("test",Pu,Pu)}catch{um=!1}function hk(e,t,r,n,o,i,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(c){this.onError(c)}}var il=!1,zd=null,Kd=!1,lm=null,pk={onError:function(e){il=!0,zd=e}};function mk(e,t,r,n,o,i,a,s,u){il=!1,zd=null,hk.apply(pk,arguments)}function gk(e,t,r,n,o,i,a,s,u){if(mk.apply(this,arguments),il){if(il){var l=zd;il=!1,zd=null}else throw Error(j(198));Kd||(Kd=!0,lm=l)}}function Qa(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function I0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function My(e){if(Qa(e)!==e)throw Error(j(188))}function vk(e){var t=e.alternate;if(!t){if(t=Qa(e),t===null)throw Error(j(188));return t!==e?null:e}for(var r=e,n=t;;){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 My(o),e;if(i===n)return My(o),t;i=i.sibling}throw Error(j(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(j(189))}}if(r.alternate!==n)throw Error(j(190))}if(r.tag!==3)throw Error(j(188));return r.stateNode.current===r?e:t}function k0(e){return e=vk(e),e!==null?A0(e):null}function A0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=A0(e);if(t!==null)return t;e=e.sibling}return null}var R0=pn.unstable_scheduleCallback,Fy=pn.unstable_cancelCallback,yk=pn.unstable_shouldYield,Ek=pn.unstable_requestPaint,Dt=pn.unstable_now,_k=pn.unstable_getCurrentPriorityLevel,zg=pn.unstable_ImmediatePriority,P0=pn.unstable_UserBlockingPriority,Gd=pn.unstable_NormalPriority,Ck=pn.unstable_LowPriority,M0=pn.unstable_IdlePriority,Qf=null,Io=null;function Sk(e){if(Io&&typeof Io.onCommitFiberRoot=="function")try{Io.onCommitFiberRoot(Qf,e,void 0,(e.current.flags&128)===128)}catch{}}var Zn=Math.clz32?Math.clz32:bk,wk=Math.log,Tk=Math.LN2;function bk(e){return e>>>=0,e===0?32:31-(wk(e)/Tk|0)|0}var Oc=64,Lc=4194304;function Xu(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qd(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Xu(s):(i&=a,i!==0&&(n=Xu(i)))}else a=r&~o,a!==0?n=Xu(a):i!==0&&(n=Xu(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Zn(t),o=1<<r,n|=e[r],t&=~o;return n}function Ik(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 kk(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Zn(i),s=1<<a,u=o[a];u===-1?(!(s&r)||s&n)&&(o[a]=Ik(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}function cm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function F0(){var e=Oc;return Oc<<=1,!(Oc&4194240)&&(Oc=64),e}function Lh(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function yc(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zn(t),e[t]=r}function Ak(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Zn(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}function Kg(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Zn(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var Xe=0;function N0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var x0,Gg,D0,O0,L0,dm=!1,Bc=[],Oi=null,Li=null,Bi=null,Fl=new Map,Nl=new Map,Ai=[],Rk="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 Ny(e,t){switch(e){case"focusin":case"focusout":Oi=null;break;case"dragenter":case"dragleave":Li=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":Fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nl.delete(t.pointerId)}}function Mu(e,t,r,n,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},t!==null&&(t=_c(t),t!==null&&Gg(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Pk(e,t,r,n,o){switch(t){case"focusin":return Oi=Mu(Oi,e,t,r,n,o),!0;case"dragenter":return Li=Mu(Li,e,t,r,n,o),!0;case"mouseover":return Bi=Mu(Bi,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Fl.set(i,Mu(Fl.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Nl.set(i,Mu(Nl.get(i)||null,e,t,r,n,o)),!0}return!1}function B0(e){var t=wa(e.target);if(t!==null){var r=Qa(t);if(r!==null){if(t=r.tag,t===13){if(t=I0(r),t!==null){e.blockedOn=t,L0(e.priority,function(){D0(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=fm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);am=n,r.target.dispatchEvent(n),am=null}else return t=_c(r),t!==null&&Gg(t),e.blockedOn=r,!1;t.shift()}return!0}function xy(e,t,r){pd(e)&&r.delete(t)}function Mk(){dm=!1,Oi!==null&&pd(Oi)&&(Oi=null),Li!==null&&pd(Li)&&(Li=null),Bi!==null&&pd(Bi)&&(Bi=null),Fl.forEach(xy),Nl.forEach(xy)}function Fu(e,t){e.blockedOn===t&&(e.blockedOn=null,dm||(dm=!0,pn.unstable_scheduleCallback(pn.unstable_NormalPriority,Mk)))}function xl(e){function t(o){return Fu(o,e)}if(0<Bc.length){Fu(Bc[0],e);for(var r=1;r<Bc.length;r++){var n=Bc[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Oi!==null&&Fu(Oi,e),Li!==null&&Fu(Li,e),Bi!==null&&Fu(Bi,e),Fl.forEach(t),Nl.forEach(t),r=0;r<Ai.length;r++)n=Ai[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ai.length&&(r=Ai[0],r.blockedOn===null);)B0(r),r.blockedOn===null&&Ai.shift()}var Ws=ui.ReactCurrentBatchConfig,Vd=!0;function Fk(e,t,r,n){var o=Xe,i=Ws.transition;Ws.transition=null;try{Xe=1,qg(e,t,r,n)}finally{Xe=o,Ws.transition=i}}function Nk(e,t,r,n){var o=Xe,i=Ws.transition;Ws.transition=null;try{Xe=4,qg(e,t,r,n)}finally{Xe=o,Ws.transition=i}}function qg(e,t,r,n){if(Vd){var o=fm(e,t,r,n);if(o===null)jh(e,t,n,Wd,r),Ny(e,n);else if(Pk(o,e,t,r,n))n.stopPropagation();else if(Ny(e,n),t&4&&-1<Rk.indexOf(e)){for(;o!==null;){var i=_c(o);if(i!==null&&x0(i),i=fm(e,t,r,n),i===null&&jh(e,t,n,Wd,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else jh(e,t,n,null,r)}}var Wd=null;function fm(e,t,r,n){if(Wd=null,e=Hg(n),e=wa(e),e!==null)if(t=Qa(e),t===null)e=null;else if(r=t.tag,r===13){if(e=I0(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wd=e,null}function U0(e){switch(e){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(_k()){case zg:return 1;case P0:return 4;case Gd:case Ck:return 16;case M0:return 536870912;default:return 16}default:return 16}}var Mi=null,Vg=null,md=null;function H0(){if(md)return md;var e,t=Vg,r=t.length,n,o="value"in Mi?Mi.value:Mi.textContent,i=o.length;for(e=0;e<r&&t[e]===o[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===o[i-n];n++);return md=o.slice(e,1<n?1-n:void 0)}function gd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Uc(){return!0}function Dy(){return!1}function yn(e){function t(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 e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Uc:Dy,this.isPropagationStopped=Dy,this}return bt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Uc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Uc)},persist:function(){},isPersistent:Uc}),t}var yu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wg=yn(yu),Ec=bt({},yu,{view:0,detail:0}),xk=yn(Ec),Bh,Uh,Nu,Yf=bt({},Ec,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Nu&&(Nu&&e.type==="mousemove"?(Bh=e.screenX-Nu.screenX,Uh=e.screenY-Nu.screenY):Uh=Bh=0,Nu=e),Bh)},movementY:function(e){return"movementY"in e?e.movementY:Uh}}),Oy=yn(Yf),Dk=bt({},Yf,{dataTransfer:0}),Ok=yn(Dk),Lk=bt({},Ec,{relatedTarget:0}),Hh=yn(Lk),Bk=bt({},yu,{animationName:0,elapsedTime:0,pseudoElement:0}),Uk=yn(Bk),Hk=bt({},yu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zk=yn(Hk),Kk=bt({},yu,{data:0}),Ly=yn(Kk),Gk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qk={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"},Vk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vk[e])?!!t[e]:!1}function jg(){return Wk}var jk=bt({},Ec,{key:function(e){if(e.key){var t=Gk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jg,charCode:function(e){return e.type==="keypress"?gd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$k=yn(jk),Qk=bt({},Yf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),By=yn(Qk),Yk=bt({},Ec,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jg}),Xk=yn(Yk),Jk=bt({},yu,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zk=yn(Jk),eA=bt({},Yf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),tA=yn(eA),rA=[9,13,27,32],$g=ni&&"CompositionEvent"in window,al=null;ni&&"documentMode"in document&&(al=document.documentMode);var nA=ni&&"TextEvent"in window&&!al,z0=ni&&(!$g||al&&8<al&&11>=al),Uy=String.fromCharCode(32),Hy=!1;function K0(e,t){switch(e){case"keyup":return rA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function G0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ts=!1;function oA(e,t){switch(e){case"compositionend":return G0(t);case"keypress":return t.which!==32?null:(Hy=!0,Uy);case"textInput":return e=t.data,e===Uy&&Hy?null:e;default:return null}}function iA(e,t){if(Ts)return e==="compositionend"||!$g&&K0(e,t)?(e=H0(),md=Vg=Mi=null,Ts=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return z0&&t.locale!=="ko"?null:t.data;default:return null}}var aA={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 zy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aA[e.type]:t==="textarea"}function q0(e,t,r,n){C0(n),t=jd(t,"onChange"),0<t.length&&(r=new Wg("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var sl=null,Dl=null;function sA(e){tS(e,0)}function Xf(e){var t=ks(e);if(p0(t))return e}function uA(e,t){if(e==="change")return t}var V0=!1;if(ni){var zh;if(ni){var Kh="oninput"in document;if(!Kh){var Ky=document.createElement("div");Ky.setAttribute("oninput","return;"),Kh=typeof Ky.oninput=="function"}zh=Kh}else zh=!1;V0=zh&&(!document.documentMode||9<document.documentMode)}function Gy(){sl&&(sl.detachEvent("onpropertychange",W0),Dl=sl=null)}function W0(e){if(e.propertyName==="value"&&Xf(Dl)){var t=[];q0(t,Dl,e,Hg(e)),b0(sA,t)}}function lA(e,t,r){e==="focusin"?(Gy(),sl=t,Dl=r,sl.attachEvent("onpropertychange",W0)):e==="focusout"&&Gy()}function cA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xf(Dl)}function dA(e,t){if(e==="click")return Xf(t)}function fA(e,t){if(e==="input"||e==="change")return Xf(t)}function hA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var to=typeof Object.is=="function"?Object.is:hA;function Ol(e,t){if(to(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!$p.call(t,o)||!to(e[o],t[o]))return!1}return!0}function qy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vy(e,t){var r=qy(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=qy(r)}}function j0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?j0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=Hd();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Hd(e.document)}return t}function Qg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function pA(e){var t=$0(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&j0(r.ownerDocument.documentElement,r)){if(n!==null&&Qg(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Vy(r,i);var a=Vy(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mA=ni&&"documentMode"in document&&11>=document.documentMode,bs=null,hm=null,ul=null,pm=!1;function Wy(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;pm||bs==null||bs!==Hd(n)||(n=bs,"selectionStart"in n&&Qg(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}),ul&&Ol(ul,n)||(ul=n,n=jd(hm,"onSelect"),0<n.length&&(t=new Wg("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=bs)))}function Hc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Is={animationend:Hc("Animation","AnimationEnd"),animationiteration:Hc("Animation","AnimationIteration"),animationstart:Hc("Animation","AnimationStart"),transitionend:Hc("Transition","TransitionEnd")},Gh={},Q0={};ni&&(Q0=document.createElement("div").style,"AnimationEvent"in window||(delete Is.animationend.animation,delete Is.animationiteration.animation,delete Is.animationstart.animation),"TransitionEvent"in window||delete Is.transitionend.transition);function Jf(e){if(Gh[e])return Gh[e];if(!Is[e])return e;var t=Is[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Q0)return Gh[e]=t[r];return e}var Y0=Jf("animationend"),X0=Jf("animationiteration"),J0=Jf("animationstart"),Z0=Jf("transitionend"),eS=new Map,jy="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 ea(e,t){eS.set(e,t),$a(t,[e])}for(var qh=0;qh<jy.length;qh++){var Vh=jy[qh],gA=Vh.toLowerCase(),vA=Vh[0].toUpperCase()+Vh.slice(1);ea(gA,"on"+vA)}ea(Y0,"onAnimationEnd");ea(X0,"onAnimationIteration");ea(J0,"onAnimationStart");ea("dblclick","onDoubleClick");ea("focusin","onFocus");ea("focusout","onBlur");ea(Z0,"onTransitionEnd");eu("onMouseEnter",["mouseout","mouseover"]);eu("onMouseLeave",["mouseout","mouseover"]);eu("onPointerEnter",["pointerout","pointerover"]);eu("onPointerLeave",["pointerout","pointerover"]);$a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$a("onBeforeInput",["compositionend","keypress","textInput","paste"]);$a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ju="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(" "),yA=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ju));function $y(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,gk(n,t,void 0,e),e.currentTarget=null}function tS(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==i&&o.isPropagationStopped())break e;$y(o,s,l),i=u}else for(a=0;a<n.length;a++){if(s=n[a],u=s.instance,l=s.currentTarget,s=s.listener,u!==i&&o.isPropagationStopped())break e;$y(o,s,l),i=u}}}if(Kd)throw e=lm,Kd=!1,lm=null,e}function lt(e,t){var r=t[Em];r===void 0&&(r=t[Em]=new Set);var n=e+"__bubble";r.has(n)||(rS(t,e,2,!1),r.add(n))}function Wh(e,t,r){var n=0;t&&(n|=4),rS(r,e,n,t)}var zc="_reactListening"+Math.random().toString(36).slice(2);function Ll(e){if(!e[zc]){e[zc]=!0,l0.forEach(function(r){r!=="selectionchange"&&(yA.has(r)||Wh(r,!1,e),Wh(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zc]||(t[zc]=!0,Wh("selectionchange",!1,t))}}function rS(e,t,r,n){switch(U0(t)){case 1:var o=Fk;break;case 4:o=Nk;break;default:o=qg}r=o.bind(null,t,r,e),o=void 0,!um||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):o!==void 0?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function jh(e,t,r,n,o){var i=n;if(!(t&1)&&!(t&2)&&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 u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;a=a.return}for(;s!==null;){if(a=wa(s),a===null)return;if(u=a.tag,u===5||u===6){n=i=a;continue e}s=s.parentNode}}n=n.return}b0(function(){var l=i,c=Hg(r),d=[];e:{var f=eS.get(e);if(f!==void 0){var h=Wg,m=e;switch(e){case"keypress":if(gd(r)===0)break e;case"keydown":case"keyup":h=$k;break;case"focusin":m="focus",h=Hh;break;case"focusout":m="blur",h=Hh;break;case"beforeblur":case"afterblur":h=Hh;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":h=Oy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Ok;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Xk;break;case Y0:case X0:case J0:h=Uk;break;case Z0:h=Zk;break;case"scroll":h=xk;break;case"wheel":h=tA;break;case"copy":case"cut":case"paste":h=zk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=By}var y=(t&4)!==0,E=!y&&e==="scroll",v=y?f!==null?f+"Capture":null:f;y=[];for(var g=l,C;g!==null;){C=g;var S=C.stateNode;if(C.tag===5&&S!==null&&(C=S,v!==null&&(S=Ml(g,v),S!=null&&y.push(Bl(g,S,C)))),E)break;g=g.return}0<y.length&&(f=new h(f,m,null,r,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&r!==am&&(m=r.relatedTarget||r.fromElement)&&(wa(m)||m[oi]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(m=r.relatedTarget||r.toElement,h=l,m=m?wa(m):null,m!==null&&(E=Qa(m),m!==E||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=l),h!==m)){if(y=Oy,S="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=By,S="onPointerLeave",v="onPointerEnter",g="pointer"),E=h==null?f:ks(h),C=m==null?f:ks(m),f=new y(S,g+"leave",h,r,c),f.target=E,f.relatedTarget=C,S=null,wa(c)===l&&(y=new y(v,g+"enter",m,r,c),y.target=C,y.relatedTarget=E,S=y),E=S,h&&m)t:{for(y=h,v=m,g=0,C=y;C;C=ss(C))g++;for(C=0,S=v;S;S=ss(S))C++;for(;0<g-C;)y=ss(y),g--;for(;0<C-g;)v=ss(v),C--;for(;g--;){if(y===v||v!==null&&y===v.alternate)break t;y=ss(y),v=ss(v)}y=null}else y=null;h!==null&&Qy(d,f,h,y,!1),m!==null&&E!==null&&Qy(d,E,m,y,!0)}}e:{if(f=l?ks(l):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var w=uA;else if(zy(f))if(V0)w=fA;else{w=cA;var I=lA}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=dA);if(w&&(w=w(e,l))){q0(d,w,r,c);break e}I&&I(e,f,l),e==="focusout"&&(I=f._wrapperState)&&I.controlled&&f.type==="number"&&tm(f,"number",f.value)}switch(I=l?ks(l):window,e){case"focusin":(zy(I)||I.contentEditable==="true")&&(bs=I,hm=l,ul=null);break;case"focusout":ul=hm=bs=null;break;case"mousedown":pm=!0;break;case"contextmenu":case"mouseup":case"dragend":pm=!1,Wy(d,r,c);break;case"selectionchange":if(mA)break;case"keydown":case"keyup":Wy(d,r,c)}var b;if($g)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Ts?K0(e,r)&&(k="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(k="onCompositionStart");k&&(z0&&r.locale!=="ko"&&(Ts||k!=="onCompositionStart"?k==="onCompositionEnd"&&Ts&&(b=H0()):(Mi=c,Vg="value"in Mi?Mi.value:Mi.textContent,Ts=!0)),I=jd(l,k),0<I.length&&(k=new Ly(k,e,null,r,c),d.push({event:k,listeners:I}),b?k.data=b:(b=G0(r),b!==null&&(k.data=b)))),(b=nA?oA(e,r):iA(e,r))&&(l=jd(l,"onBeforeInput"),0<l.length&&(c=new Ly("onBeforeInput","beforeinput",null,r,c),d.push({event:c,listeners:l}),c.data=b))}tS(d,t)})}function Bl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function jd(e,t){for(var r=t+"Capture",n=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ml(e,r),i!=null&&n.unshift(Bl(e,i,o)),i=Ml(e,t),i!=null&&n.push(Bl(e,i,o))),e=e.return}return n}function ss(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Qy(e,t,r,n,o){for(var i=t._reactName,a=[];r!==null&&r!==n;){var s=r,u=s.alternate,l=s.stateNode;if(u!==null&&u===n)break;s.tag===5&&l!==null&&(s=l,o?(u=Ml(r,i),u!=null&&a.unshift(Bl(r,u,s))):o||(u=Ml(r,i),u!=null&&a.push(Bl(r,u,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var EA=/\r\n?/g,_A=/\u0000|\uFFFD/g;function Yy(e){return(typeof e=="string"?e:""+e).replace(EA,`
`).replace(_A,"")}function Kc(e,t,r){if(t=Yy(t),Yy(e)!==t&&r)throw Error(j(425))}function $d(){}var mm=null,gm=null;function vm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ym=typeof setTimeout=="function"?setTimeout:void 0,CA=typeof clearTimeout=="function"?clearTimeout:void 0,Xy=typeof Promise=="function"?Promise:void 0,SA=typeof queueMicrotask=="function"?queueMicrotask:typeof Xy<"u"?function(e){return Xy.resolve(null).then(e).catch(wA)}:ym;function wA(e){setTimeout(function(){throw e})}function $h(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){e.removeChild(o),xl(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);xl(t)}function Ui(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Jy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Eu=Math.random().toString(36).slice(2),Co="__reactFiber$"+Eu,Ul="__reactProps$"+Eu,oi="__reactContainer$"+Eu,Em="__reactEvents$"+Eu,TA="__reactListeners$"+Eu,bA="__reactHandles$"+Eu;function wa(e){var t=e[Co];if(t)return t;for(var r=e.parentNode;r;){if(t=r[oi]||r[Co]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Jy(e);e!==null;){if(r=e[Co])return r;e=Jy(e)}return t}e=r,r=e.parentNode}return null}function _c(e){return e=e[Co]||e[oi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ks(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Zf(e){return e[Ul]||null}var _m=[],As=-1;function ta(e){return{current:e}}function dt(e){0>As||(e.current=_m[As],_m[As]=null,As--)}function st(e,t){As++,_m[As]=e.current,e.current=t}var Xi={},_r=ta(Xi),Gr=ta(!1),Ba=Xi;function tu(e,t){var r=e.type.contextTypes;if(!r)return Xi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function qr(e){return e=e.childContextTypes,e!=null}function Qd(){dt(Gr),dt(_r)}function Zy(e,t,r){if(_r.current!==Xi)throw Error(j(168));st(_r,t),st(Gr,r)}function nS(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(j(108,lk(e)||"Unknown",o));return bt({},r,n)}function Yd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xi,Ba=_r.current,st(_r,e),st(Gr,Gr.current),!0}function eE(e,t,r){var n=e.stateNode;if(!n)throw Error(j(169));r?(e=nS(e,t,Ba),n.__reactInternalMemoizedMergedChildContext=e,dt(Gr),dt(_r),st(_r,e)):dt(Gr),st(Gr,r)}var Vo=null,eh=!1,Qh=!1;function oS(e){Vo===null?Vo=[e]:Vo.push(e)}function IA(e){eh=!0,oS(e)}function ra(){if(!Qh&&Vo!==null){Qh=!0;var e=0,t=Xe;try{var r=Vo;for(Xe=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Vo=null,eh=!1}catch(o){throw Vo!==null&&(Vo=Vo.slice(e+1)),R0(zg,ra),o}finally{Xe=t,Qh=!1}}return null}var Rs=[],Ps=0,Xd=null,Jd=0,bn=[],In=0,Ua=null,$o=1,Qo="";function va(e,t){Rs[Ps++]=Jd,Rs[Ps++]=Xd,Xd=e,Jd=t}function iS(e,t,r){bn[In++]=$o,bn[In++]=Qo,bn[In++]=Ua,Ua=e;var n=$o;e=Qo;var o=32-Zn(n)-1;n&=~(1<<o),r+=1;var i=32-Zn(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,$o=1<<32-Zn(t)+o|r<<o|n,Qo=i+e}else $o=1<<i|r<<o|n,Qo=e}function Yg(e){e.return!==null&&(va(e,1),iS(e,1,0))}function Xg(e){for(;e===Xd;)Xd=Rs[--Ps],Rs[Ps]=null,Jd=Rs[--Ps],Rs[Ps]=null;for(;e===Ua;)Ua=bn[--In],bn[In]=null,Qo=bn[--In],bn[In]=null,$o=bn[--In],bn[In]=null}var fn=null,sn=null,pt=!1,Qn=null;function aS(e,t){var r=Mn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function tE(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,fn=e,sn=Ui(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,fn=e,sn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ua!==null?{id:$o,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Mn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,fn=e,sn=null,!0):!1;default:return!1}}function Cm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Sm(e){if(pt){var t=sn;if(t){var r=t;if(!tE(e,t)){if(Cm(e))throw Error(j(418));t=Ui(r.nextSibling);var n=fn;t&&tE(e,t)?aS(n,r):(e.flags=e.flags&-4097|2,pt=!1,fn=e)}}else{if(Cm(e))throw Error(j(418));e.flags=e.flags&-4097|2,pt=!1,fn=e}}}function rE(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;fn=e}function Gc(e){if(e!==fn)return!1;if(!pt)return rE(e),pt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vm(e.type,e.memoizedProps)),t&&(t=sn)){if(Cm(e))throw sS(),Error(j(418));for(;t;)aS(e,t),t=Ui(t.nextSibling)}if(rE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){sn=Ui(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}sn=null}}else sn=fn?Ui(e.stateNode.nextSibling):null;return!0}function sS(){for(var e=sn;e;)e=Ui(e.nextSibling)}function ru(){sn=fn=null,pt=!1}function Jg(e){Qn===null?Qn=[e]:Qn.push(e)}var kA=ui.ReactCurrentBatchConfig;function jn(e,t){if(e&&e.defaultProps){t=bt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Zd=ta(null),ef=null,Ms=null,Zg=null;function ev(){Zg=Ms=ef=null}function tv(e){var t=Zd.current;dt(Zd),e._currentValue=t}function wm(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function js(e,t){ef=e,Zg=Ms=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Kr=!0),e.firstContext=null)}function Ln(e){var t=e._currentValue;if(Zg!==e)if(e={context:e,memoizedValue:t,next:null},Ms===null){if(ef===null)throw Error(j(308));Ms=e,ef.dependencies={lanes:0,firstContext:e}}else Ms=Ms.next=e;return t}var Ta=null;function rv(e){Ta===null?Ta=[e]:Ta.push(e)}function uS(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,rv(t)):(r.next=o.next,o.next=r),t.interleaved=r,ii(e,n)}function ii(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Si=!1;function nv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ei(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,He&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,ii(e,r)}return o=n.interleaved,o===null?(t.next=t,rv(n)):(t.next=o.next,o.next=t),n.interleaved=t,ii(e,r)}function vd(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Kg(e,r)}}function nE(e,t){var r=e.updateQueue,n=e.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=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function tf(e,t,r,n){var o=e.updateQueue;Si=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,l=u.next;u.next=null,a===null?i=l:a.next=l,a=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(i!==null){var d=o.baseState;a=0,c=l=u=null,s=i;do{var f=s.lane,h=s.eventTime;if((n&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(f=t,h=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(h,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(h,d,f):m,f==null)break e;d=bt({},d,f);break e;case 2:Si=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=h,u=d):c=c.next=h,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(c===null&&(u=d),o.baseState=u,o.firstBaseUpdate=l,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);za|=a,e.lanes=a,e.memoizedState=d}}function oE(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(j(191,o));o.call(n)}}}var cS=new u0.Component().refs;function Tm(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:bt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var th={isMounted:function(e){return(e=e._reactInternals)?Qa(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Mr(),o=Ki(e),i=ei(n,o);i.payload=t,r!=null&&(i.callback=r),t=Hi(e,i,o),t!==null&&(eo(t,e,o,n),vd(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Mr(),o=Ki(e),i=ei(n,o);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=Hi(e,i,o),t!==null&&(eo(t,e,o,n),vd(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Mr(),n=Ki(e),o=ei(r,n);o.tag=2,t!=null&&(o.callback=t),t=Hi(e,o,n),t!==null&&(eo(t,e,n,r),vd(t,e,n))}};function iE(e,t,r,n,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,a):t.prototype&&t.prototype.isPureReactComponent?!Ol(r,n)||!Ol(o,i):!0}function dS(e,t,r){var n=!1,o=Xi,i=t.contextType;return typeof i=="object"&&i!==null?i=Ln(i):(o=qr(t)?Ba:_r.current,n=t.contextTypes,i=(n=n!=null)?tu(e,o):Xi),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=th,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function aE(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&th.enqueueReplaceState(t,t.state,null)}function bm(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=cS,nv(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ln(i):(i=qr(t)?Ba:_r.current,o.context=tu(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Tm(e,t,i,r),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&th.enqueueReplaceState(o,o.state,null),tf(e,r,o,n),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function xu(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(j(309));var n=r.stateNode}if(!n)throw Error(j(147,e));var o=n,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;s===cS&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(j(284));if(!r._owner)throw Error(j(290,e))}return e}function qc(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sE(e){var t=e._init;return t(e._payload)}function fS(e){function t(v,g){if(e){var C=v.deletions;C===null?(v.deletions=[g],v.flags|=16):C.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function n(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function o(v,g){return v=Gi(v,g),v.index=0,v.sibling=null,v}function i(v,g,C){return v.index=C,e?(C=v.alternate,C!==null?(C=C.index,C<g?(v.flags|=2,g):C):(v.flags|=2,g)):(v.flags|=1048576,g)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,g,C,S){return g===null||g.tag!==6?(g=rp(C,v.mode,S),g.return=v,g):(g=o(g,C),g.return=v,g)}function u(v,g,C,S){var w=C.type;return w===ws?c(v,g,C.props.children,S,C.key):g!==null&&(g.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ci&&sE(w)===g.type)?(S=o(g,C.props),S.ref=xu(v,g,C),S.return=v,S):(S=wd(C.type,C.key,C.props,null,v.mode,S),S.ref=xu(v,g,C),S.return=v,S)}function l(v,g,C,S){return g===null||g.tag!==4||g.stateNode.containerInfo!==C.containerInfo||g.stateNode.implementation!==C.implementation?(g=np(C,v.mode,S),g.return=v,g):(g=o(g,C.children||[]),g.return=v,g)}function c(v,g,C,S,w){return g===null||g.tag!==7?(g=Fa(C,v.mode,S,w),g.return=v,g):(g=o(g,C),g.return=v,g)}function d(v,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return g=rp(""+g,v.mode,C),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Nc:return C=wd(g.type,g.key,g.props,null,v.mode,C),C.ref=xu(v,null,g),C.return=v,C;case Ss:return g=np(g,v.mode,C),g.return=v,g;case Ci:var S=g._init;return d(v,S(g._payload),C)}if(Yu(g)||Ru(g))return g=Fa(g,v.mode,C,null),g.return=v,g;qc(v,g)}return null}function f(v,g,C,S){var w=g!==null?g.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return w!==null?null:s(v,g,""+C,S);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Nc:return C.key===w?u(v,g,C,S):null;case Ss:return C.key===w?l(v,g,C,S):null;case Ci:return w=C._init,f(v,g,w(C._payload),S)}if(Yu(C)||Ru(C))return w!==null?null:c(v,g,C,S,null);qc(v,C)}return null}function h(v,g,C,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(C)||null,s(g,v,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Nc:return v=v.get(S.key===null?C:S.key)||null,u(g,v,S,w);case Ss:return v=v.get(S.key===null?C:S.key)||null,l(g,v,S,w);case Ci:var I=S._init;return h(v,g,C,I(S._payload),w)}if(Yu(S)||Ru(S))return v=v.get(C)||null,c(g,v,S,w,null);qc(g,S)}return null}function m(v,g,C,S){for(var w=null,I=null,b=g,k=g=0,O=null;b!==null&&k<C.length;k++){b.index>k?(O=b,b=null):O=b.sibling;var L=f(v,b,C[k],S);if(L===null){b===null&&(b=O);break}e&&b&&L.alternate===null&&t(v,b),g=i(L,g,k),I===null?w=L:I.sibling=L,I=L,b=O}if(k===C.length)return r(v,b),pt&&va(v,k),w;if(b===null){for(;k<C.length;k++)b=d(v,C[k],S),b!==null&&(g=i(b,g,k),I===null?w=b:I.sibling=b,I=b);return pt&&va(v,k),w}for(b=n(v,b);k<C.length;k++)O=h(b,v,k,C[k],S),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?k:O.key),g=i(O,g,k),I===null?w=O:I.sibling=O,I=O);return e&&b.forEach(function(se){return t(v,se)}),pt&&va(v,k),w}function y(v,g,C,S){var w=Ru(C);if(typeof w!="function")throw Error(j(150));if(C=w.call(C),C==null)throw Error(j(151));for(var I=w=null,b=g,k=g=0,O=null,L=C.next();b!==null&&!L.done;k++,L=C.next()){b.index>k?(O=b,b=null):O=b.sibling;var se=f(v,b,L.value,S);if(se===null){b===null&&(b=O);break}e&&b&&se.alternate===null&&t(v,b),g=i(se,g,k),I===null?w=se:I.sibling=se,I=se,b=O}if(L.done)return r(v,b),pt&&va(v,k),w;if(b===null){for(;!L.done;k++,L=C.next())L=d(v,L.value,S),L!==null&&(g=i(L,g,k),I===null?w=L:I.sibling=L,I=L);return pt&&va(v,k),w}for(b=n(v,b);!L.done;k++,L=C.next())L=h(b,v,k,L.value,S),L!==null&&(e&&L.alternate!==null&&b.delete(L.key===null?k:L.key),g=i(L,g,k),I===null?w=L:I.sibling=L,I=L);return e&&b.forEach(function(B){return t(v,B)}),pt&&va(v,k),w}function E(v,g,C,S){if(typeof C=="object"&&C!==null&&C.type===ws&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Nc:e:{for(var w=C.key,I=g;I!==null;){if(I.key===w){if(w=C.type,w===ws){if(I.tag===7){r(v,I.sibling),g=o(I,C.props.children),g.return=v,v=g;break e}}else if(I.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ci&&sE(w)===I.type){r(v,I.sibling),g=o(I,C.props),g.ref=xu(v,I,C),g.return=v,v=g;break e}r(v,I);break}else t(v,I);I=I.sibling}C.type===ws?(g=Fa(C.props.children,v.mode,S,C.key),g.return=v,v=g):(S=wd(C.type,C.key,C.props,null,v.mode,S),S.ref=xu(v,g,C),S.return=v,v=S)}return a(v);case Ss:e:{for(I=C.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){r(v,g.sibling),g=o(g,C.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=np(C,v.mode,S),g.return=v,v=g}return a(v);case Ci:return I=C._init,E(v,g,I(C._payload),S)}if(Yu(C))return m(v,g,C,S);if(Ru(C))return y(v,g,C,S);qc(v,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(r(v,g.sibling),g=o(g,C),g.return=v,v=g):(r(v,g),g=rp(C,v.mode,S),g.return=v,v=g),a(v)):r(v,g)}return E}var nu=fS(!0),hS=fS(!1),Cc={},ko=ta(Cc),Hl=ta(Cc),zl=ta(Cc);function ba(e){if(e===Cc)throw Error(j(174));return e}function ov(e,t){switch(st(zl,t),st(Hl,e),st(ko,Cc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:nm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=nm(t,e)}dt(ko),st(ko,t)}function ou(){dt(ko),dt(Hl),dt(zl)}function pS(e){ba(zl.current);var t=ba(ko.current),r=nm(t,e.type);t!==r&&(st(Hl,e),st(ko,r))}function iv(e){Hl.current===e&&(dt(ko),dt(Hl))}var St=ta(0);function rf(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yh=[];function av(){for(var e=0;e<Yh.length;e++)Yh[e]._workInProgressVersionPrimary=null;Yh.length=0}var yd=ui.ReactCurrentDispatcher,Xh=ui.ReactCurrentBatchConfig,Ha=0,Tt=null,zt=null,Jt=null,nf=!1,ll=!1,Kl=0,AA=0;function fr(){throw Error(j(321))}function sv(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!to(e[r],t[r]))return!1;return!0}function uv(e,t,r,n,o,i){if(Ha=i,Tt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,yd.current=e===null||e.memoizedState===null?FA:NA,e=r(n,o),ll){i=0;do{if(ll=!1,Kl=0,25<=i)throw Error(j(301));i+=1,Jt=zt=null,t.updateQueue=null,yd.current=xA,e=r(n,o)}while(ll)}if(yd.current=of,t=zt!==null&&zt.next!==null,Ha=0,Jt=zt=Tt=null,nf=!1,t)throw Error(j(300));return e}function lv(){var e=Kl!==0;return Kl=0,e}function fo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?Tt.memoizedState=Jt=e:Jt=Jt.next=e,Jt}function Bn(){if(zt===null){var e=Tt.alternate;e=e!==null?e.memoizedState:null}else e=zt.next;var t=Jt===null?Tt.memoizedState:Jt.next;if(t!==null)Jt=t,zt=e;else{if(e===null)throw Error(j(310));zt=e,e={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Jt===null?Tt.memoizedState=Jt=e:Jt=Jt.next=e}return Jt}function Gl(e,t){return typeof t=="function"?t(e):t}function Jh(e){var t=Bn(),r=t.queue;if(r===null)throw Error(j(311));r.lastRenderedReducer=e;var n=zt,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,u=null,l=i;do{var c=l.lane;if((Ha&c)===c)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:e(n,l.action);else{var d={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(s=u=d,a=n):u=u.next=d,Tt.lanes|=c,za|=c}l=l.next}while(l!==null&&l!==i);u===null?a=n:u.next=s,to(n,t.memoizedState)||(Kr=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){o=e;do i=o.lane,Tt.lanes|=i,za|=i,o=o.next;while(o!==e)}else o===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Zh(e){var t=Bn(),r=t.queue;if(r===null)throw Error(j(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(o!==null){r.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);to(i,t.memoizedState)||(Kr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function mS(){}function gS(e,t){var r=Tt,n=Bn(),o=t(),i=!to(n.memoizedState,o);if(i&&(n.memoizedState=o,Kr=!0),n=n.queue,cv(ES.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||Jt!==null&&Jt.memoizedState.tag&1){if(r.flags|=2048,ql(9,yS.bind(null,r,n,o,t),void 0,null),rr===null)throw Error(j(349));Ha&30||vS(r,t,o)}return o}function vS(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Tt.updateQueue,t===null?(t={lastEffect:null,stores:null},Tt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function yS(e,t,r,n){t.value=r,t.getSnapshot=n,_S(t)&&CS(e)}function ES(e,t,r){return r(function(){_S(t)&&CS(e)})}function _S(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!to(e,r)}catch{return!0}}function CS(e){var t=ii(e,1);t!==null&&eo(t,e,1,-1)}function uE(e){var t=fo();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:e},t.queue=e,e=e.dispatch=MA.bind(null,Tt,e),[t.memoizedState,e]}function ql(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Tt.updateQueue,t===null?(t={lastEffect:null,stores:null},Tt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function SS(){return Bn().memoizedState}function Ed(e,t,r,n){var o=fo();Tt.flags|=e,o.memoizedState=ql(1|t,r,void 0,n===void 0?null:n)}function rh(e,t,r,n){var o=Bn();n=n===void 0?null:n;var i=void 0;if(zt!==null){var a=zt.memoizedState;if(i=a.destroy,n!==null&&sv(n,a.deps)){o.memoizedState=ql(t,r,i,n);return}}Tt.flags|=e,o.memoizedState=ql(1|t,r,i,n)}function lE(e,t){return Ed(8390656,8,e,t)}function cv(e,t){return rh(2048,8,e,t)}function wS(e,t){return rh(4,2,e,t)}function TS(e,t){return rh(4,4,e,t)}function bS(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function IS(e,t,r){return r=r!=null?r.concat([e]):null,rh(4,4,bS.bind(null,t,e),r)}function dv(){}function kS(e,t){var r=Bn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&sv(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function AS(e,t){var r=Bn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&sv(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function RS(e,t,r){return Ha&21?(to(r,t)||(r=F0(),Tt.lanes|=r,za|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Kr=!0),e.memoizedState=r)}function RA(e,t){var r=Xe;Xe=r!==0&&4>r?r:4,e(!0);var n=Xh.transition;Xh.transition={};try{e(!1),t()}finally{Xe=r,Xh.transition=n}}function PS(){return Bn().memoizedState}function PA(e,t,r){var n=Ki(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},MS(e))FS(t,r);else if(r=uS(e,t,r,n),r!==null){var o=Mr();eo(r,e,n,o),NS(r,t,n)}}function MA(e,t,r){var n=Ki(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(MS(e))FS(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,to(s,a)){var u=t.interleaved;u===null?(o.next=o,rv(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=uS(e,t,o,n),r!==null&&(o=Mr(),eo(r,e,n,o),NS(r,t,n))}}function MS(e){var t=e.alternate;return e===Tt||t!==null&&t===Tt}function FS(e,t){ll=nf=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function NS(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Kg(e,r)}}var of={readContext:Ln,useCallback:fr,useContext:fr,useEffect:fr,useImperativeHandle:fr,useInsertionEffect:fr,useLayoutEffect:fr,useMemo:fr,useReducer:fr,useRef:fr,useState:fr,useDebugValue:fr,useDeferredValue:fr,useTransition:fr,useMutableSource:fr,useSyncExternalStore:fr,useId:fr,unstable_isNewReconciler:!1},FA={readContext:Ln,useCallback:function(e,t){return fo().memoizedState=[e,t===void 0?null:t],e},useContext:Ln,useEffect:lE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ed(4194308,4,bS.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ed(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ed(4,2,e,t)},useMemo:function(e,t){var r=fo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fo();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=PA.bind(null,Tt,e),[n.memoizedState,e]},useRef:function(e){var t=fo();return e={current:e},t.memoizedState=e},useState:uE,useDebugValue:dv,useDeferredValue:function(e){return fo().memoizedState=e},useTransition:function(){var e=uE(!1),t=e[0];return e=RA.bind(null,e[1]),fo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Tt,o=fo();if(pt){if(r===void 0)throw Error(j(407));r=r()}else{if(r=t(),rr===null)throw Error(j(349));Ha&30||vS(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,lE(ES.bind(null,n,i,e),[e]),n.flags|=2048,ql(9,yS.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=fo(),t=rr.identifierPrefix;if(pt){var r=Qo,n=$o;r=(n&~(1<<32-Zn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Kl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=AA++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},NA={readContext:Ln,useCallback:kS,useContext:Ln,useEffect:cv,useImperativeHandle:IS,useInsertionEffect:wS,useLayoutEffect:TS,useMemo:AS,useReducer:Jh,useRef:SS,useState:function(){return Jh(Gl)},useDebugValue:dv,useDeferredValue:function(e){var t=Bn();return RS(t,zt.memoizedState,e)},useTransition:function(){var e=Jh(Gl)[0],t=Bn().memoizedState;return[e,t]},useMutableSource:mS,useSyncExternalStore:gS,useId:PS,unstable_isNewReconciler:!1},xA={readContext:Ln,useCallback:kS,useContext:Ln,useEffect:cv,useImperativeHandle:IS,useInsertionEffect:wS,useLayoutEffect:TS,useMemo:AS,useReducer:Zh,useRef:SS,useState:function(){return Zh(Gl)},useDebugValue:dv,useDeferredValue:function(e){var t=Bn();return zt===null?t.memoizedState=e:RS(t,zt.memoizedState,e)},useTransition:function(){var e=Zh(Gl)[0],t=Bn().memoizedState;return[e,t]},useMutableSource:mS,useSyncExternalStore:gS,useId:PS,unstable_isNewReconciler:!1};function iu(e,t){try{var r="",n=t;do r+=uk(n),n=n.return;while(n);var o=r}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function ep(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Im(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var DA=typeof WeakMap=="function"?WeakMap:Map;function xS(e,t,r){r=ei(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){sf||(sf=!0,Om=n),Im(e,t)},r}function DS(e,t,r){r=ei(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){Im(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Im(e,t),typeof n!="function"&&(zi===null?zi=new Set([this]):zi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function cE(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new DA;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=QA.bind(null,e,t,r),t.then(e,e))}function dE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fE(e,t,r,n,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ei(-1,1),t.tag=2,Hi(r,t,1))),r.lanes|=1),e)}var OA=ui.ReactCurrentOwner,Kr=!1;function Ar(e,t,r,n){t.child=e===null?hS(t,null,r,n):nu(t,e.child,r,n)}function hE(e,t,r,n,o){r=r.render;var i=t.ref;return js(t,o),n=uv(e,t,r,n,i,o),r=lv(),e!==null&&!Kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ai(e,t,o)):(pt&&r&&Yg(t),t.flags|=1,Ar(e,t,n,o),t.child)}function pE(e,t,r,n,o){if(e===null){var i=r.type;return typeof i=="function"&&!Ev(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,OS(e,t,i,n,o)):(e=wd(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:Ol,r(a,n)&&e.ref===t.ref)return ai(e,t,o)}return t.flags|=1,e=Gi(i,n),e.ref=t.ref,e.return=t,t.child=e}function OS(e,t,r,n,o){if(e!==null){var i=e.memoizedProps;if(Ol(i,n)&&e.ref===t.ref)if(Kr=!1,t.pendingProps=n=i,(e.lanes&o)!==0)e.flags&131072&&(Kr=!0);else return t.lanes=e.lanes,ai(e,t,o)}return km(e,t,r,n,o)}function LS(e,t,r){var n=t.pendingProps,o=n.children,i=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},st(Ns,en),en|=r;else{if(!(r&1073741824))return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,st(Ns,en),en|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,st(Ns,en),en|=n}else i!==null?(n=i.baseLanes|r,t.memoizedState=null):n=r,st(Ns,en),en|=n;return Ar(e,t,o,r),t.child}function BS(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function km(e,t,r,n,o){var i=qr(r)?Ba:_r.current;return i=tu(t,i),js(t,o),r=uv(e,t,r,n,i,o),n=lv(),e!==null&&!Kr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,ai(e,t,o)):(pt&&n&&Yg(t),t.flags|=1,Ar(e,t,r,o),t.child)}function mE(e,t,r,n,o){if(qr(r)){var i=!0;Yd(t)}else i=!1;if(js(t,o),t.stateNode===null)_d(e,t),dS(t,r,n),bm(t,r,n,o),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=Ln(l):(l=qr(r)?Ba:_r.current,l=tu(t,l));var c=r.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||u!==l)&&aE(t,a,n,l),Si=!1;var f=t.memoizedState;a.state=f,tf(t,n,a,o),u=t.memoizedState,s!==n||f!==u||Gr.current||Si?(typeof c=="function"&&(Tm(t,r,c,n),u=t.memoizedState),(s=Si||iE(t,r,s,n,f,u,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=l,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,lS(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:jn(t.type,s),a.props=l,d=t.pendingProps,f=a.context,u=r.contextType,typeof u=="object"&&u!==null?u=Ln(u):(u=qr(r)?Ba:_r.current,u=tu(t,u));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==u)&&aE(t,a,n,u),Si=!1,f=t.memoizedState,a.state=f,tf(t,n,a,o);var m=t.memoizedState;s!==d||f!==m||Gr.current||Si?(typeof h=="function"&&(Tm(t,r,h,n),m=t.memoizedState),(l=Si||iE(t,r,l,n,f,m,u)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,m,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,m,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),a.props=n,a.state=m,a.context=u,n=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Am(e,t,r,n,i,o)}function Am(e,t,r,n,o,i){BS(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return o&&eE(t,r,!1),ai(e,t,i);n=t.stateNode,OA.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=nu(t,e.child,null,i),t.child=nu(t,null,s,i)):Ar(e,t,s,i),t.memoizedState=n.state,o&&eE(t,r,!0),t.child}function US(e){var t=e.stateNode;t.pendingContext?Zy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zy(e,t.context,!1),ov(e,t.containerInfo)}function gE(e,t,r,n,o){return ru(),Jg(o),t.flags|=256,Ar(e,t,r,n),t.child}var Rm={dehydrated:null,treeContext:null,retryLane:0};function Pm(e){return{baseLanes:e,cachePool:null,transitions:null}}function HS(e,t,r){var n=t.pendingProps,o=St.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),st(St,o&1),e===null)return Sm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,i?(n=t.mode,i=t.child,a={mode:"hidden",children:a},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=ih(a,n,0,null),e=Fa(e,n,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Pm(r),t.memoizedState=Rm,e):fv(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return LA(e,t,a,n,s,o,r);if(i){i=n.fallback,a=t.mode,o=e.child,s=o.sibling;var u={mode:"hidden",children:n.children};return!(a&1)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=Gi(o,u),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Gi(s,i):(i=Fa(i,a,r,null),i.flags|=2),i.return=t,n.return=t,n.sibling=i,t.child=n,n=i,i=t.child,a=e.child.memoizedState,a=a===null?Pm(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=Rm,n}return i=e.child,e=i.sibling,n=Gi(i,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function fv(e,t){return t=ih({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vc(e,t,r,n){return n!==null&&Jg(n),nu(t,e.child,null,r),e=fv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function LA(e,t,r,n,o,i,a){if(r)return t.flags&256?(t.flags&=-257,n=ep(Error(j(422))),Vc(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=ih({mode:"visible",children:n.children},o,0,null),i=Fa(i,o,a,null),i.flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,t.mode&1&&nu(t,e.child,null,a),t.child.memoizedState=Pm(a),t.memoizedState=Rm,i);if(!(t.mode&1))return Vc(e,t,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(j(419)),n=ep(i,n,void 0),Vc(e,t,a,n)}if(s=(a&e.childLanes)!==0,Kr||s){if(n=rr,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:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,ii(e,o),eo(n,e,o,-1))}return yv(),n=ep(Error(j(421))),Vc(e,t,a,n)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=YA.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,sn=Ui(o.nextSibling),fn=t,pt=!0,Qn=null,e!==null&&(bn[In++]=$o,bn[In++]=Qo,bn[In++]=Ua,$o=e.id,Qo=e.overflow,Ua=t),t=fv(t,n.children),t.flags|=4096,t)}function vE(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),wm(e.return,t,r)}function tp(e,t,r,n,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function zS(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Ar(e,t,n.children,r),n=St.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vE(e,r,t);else if(e.tag===19)vE(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(st(St,n),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;r!==null;)e=r.alternate,e!==null&&rf(e)===null&&(o=r),r=r.sibling;r=o,r===null?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),tp(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&rf(e)===null){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}tp(t,!0,r,null,i);break;case"together":tp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _d(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ai(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,r=Gi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Gi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function BA(e,t,r){switch(t.tag){case 3:US(t),ru();break;case 5:pS(t);break;case 1:qr(t.type)&&Yd(t);break;case 4:ov(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;st(Zd,n._currentValue),n._currentValue=o;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(st(St,St.current&1),t.flags|=128,null):r&t.child.childLanes?HS(e,t,r):(st(St,St.current&1),e=ai(e,t,r),e!==null?e.sibling:null);st(St,St.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return zS(e,t,r);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),st(St,St.current),n)break;return null;case 22:case 23:return t.lanes=0,LS(e,t,r)}return ai(e,t,r)}var KS,Mm,GS,qS;KS=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Mm=function(){};GS=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,ba(ko.current);var i=null;switch(r){case"input":o=Zp(e,o),n=Zp(e,n),i=[];break;case"select":o=bt({},o,{value:void 0}),n=bt({},n,{value:void 0}),i=[];break;case"textarea":o=rm(e,o),n=rm(e,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=$d)}om(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"&&(Rl.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in n){var u=n[l];if(s=o!=null?o[l]:void 0,n.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(r||(r={}),r[a]=u[a])}else r||(i||(i=[]),i.push(l,r)),r=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Rl.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&lt("scroll",e),i||s===u||(i=[])):(i=i||[]).push(l,u))}r&&(i=i||[]).push("style",r);var l=i;(t.updateQueue=l)&&(t.flags|=4)}};qS=function(e,t,r,n){r!==n&&(t.flags|=4)};function Du(e,t){if(!pt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function hr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function UA(e,t,r){var n=t.pendingProps;switch(Xg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hr(t),null;case 1:return qr(t.type)&&Qd(),hr(t),null;case 3:return n=t.stateNode,ou(),dt(Gr),dt(_r),av(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qn!==null&&(Um(Qn),Qn=null))),Mm(e,t),hr(t),null;case 5:iv(t);var o=ba(zl.current);if(r=t.type,e!==null&&t.stateNode!=null)GS(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(j(166));return hr(t),null}if(e=ba(ko.current),Gc(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[Co]=t,n[Ul]=i,e=(t.mode&1)!==0,r){case"dialog":lt("cancel",n),lt("close",n);break;case"iframe":case"object":case"embed":lt("load",n);break;case"video":case"audio":for(o=0;o<Ju.length;o++)lt(Ju[o],n);break;case"source":lt("error",n);break;case"img":case"image":case"link":lt("error",n),lt("load",n);break;case"details":lt("toggle",n);break;case"input":Iy(n,i),lt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},lt("invalid",n);break;case"textarea":Ay(n,i),lt("invalid",n)}om(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&&Kc(n.textContent,s,e),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Kc(n.textContent,s,e),o=["children",""+s]):Rl.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&lt("scroll",n)}switch(r){case"input":xc(n),ky(n,i,!0);break;case"textarea":xc(n),Ry(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=$d)}n=o,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=v0(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Co]=t,e[Ul]=n,KS(e,t,!1,!1),t.stateNode=e;e:{switch(a=im(r,n),r){case"dialog":lt("cancel",e),lt("close",e),o=n;break;case"iframe":case"object":case"embed":lt("load",e),o=n;break;case"video":case"audio":for(o=0;o<Ju.length;o++)lt(Ju[o],e);o=n;break;case"source":lt("error",e),o=n;break;case"img":case"image":case"link":lt("error",e),lt("load",e),o=n;break;case"details":lt("toggle",e),o=n;break;case"input":Iy(e,n),o=Zp(e,n),lt("invalid",e);break;case"option":o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=bt({},n,{value:void 0}),lt("invalid",e);break;case"textarea":Ay(e,n),o=rm(e,n),lt("invalid",e);break;default:o=n}om(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var u=s[i];i==="style"?_0(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&y0(e,u)):i==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Pl(e,u):typeof u=="number"&&Pl(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Rl.hasOwnProperty(i)?u!=null&&i==="onScroll"&&lt("scroll",e):u!=null&&Og(e,i,u,a))}switch(r){case"input":xc(e),ky(e,n,!1);break;case"textarea":xc(e),Ry(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Yi(n.value));break;case"select":e.multiple=!!n.multiple,i=n.value,i!=null?Gs(e,!!n.multiple,i,!1):n.defaultValue!=null&&Gs(e,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=$d)}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&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return hr(t),null;case 6:if(e&&t.stateNode!=null)qS(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(j(166));if(r=ba(zl.current),ba(ko.current),Gc(t)){if(n=t.stateNode,r=t.memoizedProps,n[Co]=t,(i=n.nodeValue!==r)&&(e=fn,e!==null))switch(e.tag){case 3:Kc(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Kc(n.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Co]=t,t.stateNode=n}return hr(t),null;case 13:if(dt(St),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pt&&sn!==null&&t.mode&1&&!(t.flags&128))sS(),ru(),t.flags|=98560,i=!1;else if(i=Gc(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(j(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(j(317));i[Co]=t}else ru(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hr(t),i=!1}else Qn!==null&&(Um(Qn),Qn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||St.current&1?qt===0&&(qt=3):yv())),t.updateQueue!==null&&(t.flags|=4),hr(t),null);case 4:return ou(),Mm(e,t),e===null&&Ll(t.stateNode.containerInfo),hr(t),null;case 10:return tv(t.type._context),hr(t),null;case 17:return qr(t.type)&&Qd(),hr(t),null;case 19:if(dt(St),i=t.memoizedState,i===null)return hr(t),null;if(n=(t.flags&128)!==0,a=i.rendering,a===null)if(n)Du(i,!1);else{if(qt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=rf(e),a!==null){for(t.flags|=128,Du(i,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)i=r,e=n,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,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,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return st(St,St.current&1|2),t.child}e=e.sibling}i.tail!==null&&Dt()>au&&(t.flags|=128,n=!0,Du(i,!1),t.lanes=4194304)}else{if(!n)if(e=rf(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Du(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!pt)return hr(t),null}else 2*Dt()-i.renderingStartTime>au&&r!==1073741824&&(t.flags|=128,n=!0,Du(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Dt(),t.sibling=null,r=St.current,st(St,n?r&1|2:r&1),t):(hr(t),null);case 22:case 23:return vv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?en&1073741824&&(hr(t),t.subtreeFlags&6&&(t.flags|=8192)):hr(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function HA(e,t){switch(Xg(t),t.tag){case 1:return qr(t.type)&&Qd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ou(),dt(Gr),dt(_r),av(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iv(t),null;case 13:if(dt(St),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));ru()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return dt(St),null;case 4:return ou(),null;case 10:return tv(t.type._context),null;case 22:case 23:return vv(),null;case 24:return null;default:return null}}var Wc=!1,vr=!1,zA=typeof WeakSet=="function"?WeakSet:Set,le=null;function Fs(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){At(e,t,n)}else r.current=null}function Fm(e,t,r){try{r()}catch(n){At(e,t,n)}}var yE=!1;function KA(e,t){if(mm=Vd,e=$0(),Qg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.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,u=-1,l=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(u=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===r&&++l===o&&(s=a),f===i&&++c===n&&(u=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(gm={focusedElem:e,selectionRange:r},Vd=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,E=m.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:jn(t.type,y),E);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(S){At(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return m=yE,yE=!1,m}function cl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Fm(t,r,i)}o=o.next}while(o!==n)}}function nh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Nm(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function VS(e){var t=e.alternate;t!==null&&(e.alternate=null,VS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Co],delete t[Ul],delete t[Em],delete t[TA],delete t[bA])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function WS(e){return e.tag===5||e.tag===3||e.tag===4}function EE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||WS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$d));else if(n!==4&&(e=e.child,e!==null))for(xm(e,t,r),e=e.sibling;e!==null;)xm(e,t,r),e=e.sibling}function Dm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Dm(e,t,r),e=e.sibling;e!==null;)Dm(e,t,r),e=e.sibling}var sr=null,$n=!1;function vi(e,t,r){for(r=r.child;r!==null;)jS(e,t,r),r=r.sibling}function jS(e,t,r){if(Io&&typeof Io.onCommitFiberUnmount=="function")try{Io.onCommitFiberUnmount(Qf,r)}catch{}switch(r.tag){case 5:vr||Fs(r,t);case 6:var n=sr,o=$n;sr=null,vi(e,t,r),sr=n,$n=o,sr!==null&&($n?(e=sr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):sr.removeChild(r.stateNode));break;case 18:sr!==null&&($n?(e=sr,r=r.stateNode,e.nodeType===8?$h(e.parentNode,r):e.nodeType===1&&$h(e,r),xl(e)):$h(sr,r.stateNode));break;case 4:n=sr,o=$n,sr=r.stateNode.containerInfo,$n=!0,vi(e,t,r),sr=n,$n=o;break;case 0:case 11:case 14:case 15:if(!vr&&(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||i&4)&&Fm(r,t,a),o=o.next}while(o!==n)}vi(e,t,r);break;case 1:if(!vr&&(Fs(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){At(r,t,s)}vi(e,t,r);break;case 21:vi(e,t,r);break;case 22:r.mode&1?(vr=(n=vr)||r.memoizedState!==null,vi(e,t,r),vr=n):vi(e,t,r);break;default:vi(e,t,r)}}function _E(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new zA),t.forEach(function(n){var o=XA.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Kn(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:sr=s.stateNode,$n=!1;break e;case 3:sr=s.stateNode.containerInfo,$n=!0;break e;case 4:sr=s.stateNode.containerInfo,$n=!0;break e}s=s.return}if(sr===null)throw Error(j(160));jS(i,a,o),sr=null,$n=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(l){At(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$S(t,e),t=t.sibling}function $S(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Kn(t,e),lo(e),n&4){try{cl(3,e,e.return),nh(3,e)}catch(y){At(e,e.return,y)}try{cl(5,e,e.return)}catch(y){At(e,e.return,y)}}break;case 1:Kn(t,e),lo(e),n&512&&r!==null&&Fs(r,r.return);break;case 5:if(Kn(t,e),lo(e),n&512&&r!==null&&Fs(r,r.return),e.flags&32){var o=e.stateNode;try{Pl(o,"")}catch(y){At(e,e.return,y)}}if(n&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&m0(o,i),im(s,a);var l=im(s,i);for(a=0;a<u.length;a+=2){var c=u[a],d=u[a+1];c==="style"?_0(o,d):c==="dangerouslySetInnerHTML"?y0(o,d):c==="children"?Pl(o,d):Og(o,c,d,l)}switch(s){case"input":em(o,i);break;case"textarea":g0(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?Gs(o,!!i.multiple,h,!1):f!==!!i.multiple&&(i.defaultValue!=null?Gs(o,!!i.multiple,i.defaultValue,!0):Gs(o,!!i.multiple,i.multiple?[]:"",!1))}o[Ul]=i}catch(y){At(e,e.return,y)}}break;case 6:if(Kn(t,e),lo(e),n&4){if(e.stateNode===null)throw Error(j(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){At(e,e.return,y)}}break;case 3:if(Kn(t,e),lo(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{xl(t.containerInfo)}catch(y){At(e,e.return,y)}break;case 4:Kn(t,e),lo(e);break;case 13:Kn(t,e),lo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(mv=Dt())),n&4&&_E(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(vr=(l=vr)||c,Kn(t,e),vr=l):Kn(t,e),lo(e),n&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(le=e,c=e.child;c!==null;){for(d=le=c;le!==null;){switch(f=le,h=f.child,f.tag){case 0:case 11:case 14:case 15:cl(4,f,f.return);break;case 1:Fs(f,f.return);var m=f.stateNode;if(typeof m.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){At(n,r,y)}}break;case 5:Fs(f,f.return);break;case 22:if(f.memoizedState!==null){SE(d);continue}}h!==null?(h.return=f,le=h):SE(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,l?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,u=d.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=E0("display",a))}catch(y){At(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){At(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Kn(t,e),lo(e),n&4&&_E(e);break;case 21:break;default:Kn(t,e),lo(e)}}function lo(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(WS(r)){var n=r;break e}r=r.return}throw Error(j(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Pl(o,""),n.flags&=-33);var i=EE(e);Dm(e,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=EE(e);xm(e,s,a);break;default:throw Error(j(161))}}catch(u){At(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function GA(e,t,r){le=e,QS(e)}function QS(e,t,r){for(var n=(e.mode&1)!==0;le!==null;){var o=le,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||Wc;if(!a){var s=o.alternate,u=s!==null&&s.memoizedState!==null||vr;s=Wc;var l=vr;if(Wc=a,(vr=u)&&!l)for(le=o;le!==null;)a=le,u=a.child,a.tag===22&&a.memoizedState!==null?wE(o):u!==null?(u.return=a,le=u):wE(o);for(;i!==null;)le=i,QS(i),i=i.sibling;le=o,Wc=s,vr=l}CE(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,le=i):CE(e)}}function CE(e){for(;le!==null;){var t=le;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:vr||nh(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!vr)if(r===null)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:jn(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&oE(t,i,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}oE(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&xl(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}vr||t.flags&512&&Nm(t)}catch(f){At(t,t.return,f)}}if(t===e){le=null;break}if(r=t.sibling,r!==null){r.return=t.return,le=r;break}le=t.return}}function SE(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var r=t.sibling;if(r!==null){r.return=t.return,le=r;break}le=t.return}}function wE(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nh(4,t)}catch(u){At(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var o=t.return;try{n.componentDidMount()}catch(u){At(t,o,u)}}var i=t.return;try{Nm(t)}catch(u){At(t,i,u)}break;case 5:var a=t.return;try{Nm(t)}catch(u){At(t,a,u)}}}catch(u){At(t,t.return,u)}if(t===e){le=null;break}var s=t.sibling;if(s!==null){s.return=t.return,le=s;break}le=t.return}}var qA=Math.ceil,af=ui.ReactCurrentDispatcher,hv=ui.ReactCurrentOwner,xn=ui.ReactCurrentBatchConfig,He=0,rr=null,Lt=null,lr=0,en=0,Ns=ta(0),qt=0,Vl=null,za=0,oh=0,pv=0,dl=null,zr=null,mv=0,au=1/0,Ho=null,sf=!1,Om=null,zi=null,jc=!1,Fi=null,uf=0,fl=0,Lm=null,Cd=-1,Sd=0;function Mr(){return He&6?Dt():Cd!==-1?Cd:Cd=Dt()}function Ki(e){return e.mode&1?He&2&&lr!==0?lr&-lr:kA.transition!==null?(Sd===0&&(Sd=F0()),Sd):(e=Xe,e!==0||(e=window.event,e=e===void 0?16:U0(e.type)),e):1}function eo(e,t,r,n){if(50<fl)throw fl=0,Lm=null,Error(j(185));yc(e,r,n),(!(He&2)||e!==rr)&&(e===rr&&(!(He&2)&&(oh|=r),qt===4&&Ri(e,lr)),Vr(e,n),r===1&&He===0&&!(t.mode&1)&&(au=Dt()+500,eh&&ra()))}function Vr(e,t){var r=e.callbackNode;kk(e,t);var n=qd(e,e===rr?lr:0);if(n===0)r!==null&&Fy(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Fy(r),t===1)e.tag===0?IA(TE.bind(null,e)):oS(TE.bind(null,e)),SA(function(){!(He&6)&&ra()}),r=null;else{switch(N0(n)){case 1:r=zg;break;case 4:r=P0;break;case 16:r=Gd;break;case 536870912:r=M0;break;default:r=Gd}r=nw(r,YS.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function YS(e,t){if(Cd=-1,Sd=0,He&6)throw Error(j(327));var r=e.callbackNode;if($s()&&e.callbackNode!==r)return null;var n=qd(e,e===rr?lr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=lf(e,n);else{t=n;var o=He;He|=2;var i=JS();(rr!==e||lr!==t)&&(Ho=null,au=Dt()+500,Ma(e,t));do try{jA();break}catch(s){XS(e,s)}while(1);ev(),af.current=i,He=o,Lt!==null?t=0:(rr=null,lr=0,t=qt)}if(t!==0){if(t===2&&(o=cm(e),o!==0&&(n=o,t=Bm(e,o))),t===1)throw r=Vl,Ma(e,0),Ri(e,n),Vr(e,Dt()),r;if(t===6)Ri(e,n);else{if(o=e.current.alternate,!(n&30)&&!VA(o)&&(t=lf(e,n),t===2&&(i=cm(e),i!==0&&(n=i,t=Bm(e,i))),t===1))throw r=Vl,Ma(e,0),Ri(e,n),Vr(e,Dt()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(j(345));case 2:ya(e,zr,Ho);break;case 3:if(Ri(e,n),(n&130023424)===n&&(t=mv+500-Dt(),10<t)){if(qd(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){Mr(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ym(ya.bind(null,e,zr,Ho),t);break}ya(e,zr,Ho);break;case 4:if(Ri(e,n),(n&4194240)===n)break;for(t=e.eventTimes,o=-1;0<n;){var a=31-Zn(n);i=1<<a,a=t[a],a>o&&(o=a),n&=~i}if(n=o,n=Dt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*qA(n/1960))-n,10<n){e.timeoutHandle=ym(ya.bind(null,e,zr,Ho),n);break}ya(e,zr,Ho);break;case 5:ya(e,zr,Ho);break;default:throw Error(j(329))}}}return Vr(e,Dt()),e.callbackNode===r?YS.bind(null,e):null}function Bm(e,t){var r=dl;return e.current.memoizedState.isDehydrated&&(Ma(e,t).flags|=256),e=lf(e,t),e!==2&&(t=zr,zr=r,t!==null&&Um(t)),e}function Um(e){zr===null?zr=e:zr.push.apply(zr,e)}function VA(e){for(var t=e;;){if(t.flags&16384){var r=t.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(!to(i(),o))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ri(e,t){for(t&=~pv,t&=~oh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Zn(t),n=1<<r;e[r]=-1,t&=~n}}function TE(e){if(He&6)throw Error(j(327));$s();var t=qd(e,0);if(!(t&1))return Vr(e,Dt()),null;var r=lf(e,t);if(e.tag!==0&&r===2){var n=cm(e);n!==0&&(t=n,r=Bm(e,n))}if(r===1)throw r=Vl,Ma(e,0),Ri(e,t),Vr(e,Dt()),r;if(r===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ya(e,zr,Ho),Vr(e,Dt()),null}function gv(e,t){var r=He;He|=1;try{return e(t)}finally{He=r,He===0&&(au=Dt()+500,eh&&ra())}}function Ka(e){Fi!==null&&Fi.tag===0&&!(He&6)&&$s();var t=He;He|=1;var r=xn.transition,n=Xe;try{if(xn.transition=null,Xe=1,e)return e()}finally{Xe=n,xn.transition=r,He=t,!(He&6)&&ra()}}function vv(){en=Ns.current,dt(Ns)}function Ma(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,CA(r)),Lt!==null)for(r=Lt.return;r!==null;){var n=r;switch(Xg(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Qd();break;case 3:ou(),dt(Gr),dt(_r),av();break;case 5:iv(n);break;case 4:ou();break;case 13:dt(St);break;case 19:dt(St);break;case 10:tv(n.type._context);break;case 22:case 23:vv()}r=r.return}if(rr=e,Lt=e=Gi(e.current,null),lr=en=t,qt=0,Vl=null,pv=oh=za=0,zr=dl=null,Ta!==null){for(t=0;t<Ta.length;t++)if(r=Ta[t],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}Ta=null}return e}function XS(e,t){do{var r=Lt;try{if(ev(),yd.current=of,nf){for(var n=Tt.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}nf=!1}if(Ha=0,Jt=zt=Tt=null,ll=!1,Kl=0,hv.current=null,r===null||r.return===null){qt=1,Vl=t,Lt=null;break}e:{var i=e,a=r.return,s=r,u=t;if(t=lr,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=dE(a);if(h!==null){h.flags&=-257,fE(h,a,s,i,t),h.mode&1&&cE(i,l,t),t=h,u=l;var m=t.updateQueue;if(m===null){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}else{if(!(t&1)){cE(i,l,t),yv();break e}u=Error(j(426))}}else if(pt&&s.mode&1){var E=dE(a);if(E!==null){!(E.flags&65536)&&(E.flags|=256),fE(E,a,s,i,t),Jg(iu(u,s));break e}}i=u=iu(u,s),qt!==4&&(qt=2),dl===null?dl=[i]:dl.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=xS(i,u,t);nE(i,v);break e;case 1:s=u;var g=i.type,C=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(zi===null||!zi.has(C)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=DS(i,s,t);nE(i,S);break e}}i=i.return}while(i!==null)}ew(r)}catch(w){t=w,Lt===r&&r!==null&&(Lt=r=r.return);continue}break}while(1)}function JS(){var e=af.current;return af.current=of,e===null?of:e}function yv(){(qt===0||qt===3||qt===2)&&(qt=4),rr===null||!(za&268435455)&&!(oh&268435455)||Ri(rr,lr)}function lf(e,t){var r=He;He|=2;var n=JS();(rr!==e||lr!==t)&&(Ho=null,Ma(e,t));do try{WA();break}catch(o){XS(e,o)}while(1);if(ev(),He=r,af.current=n,Lt!==null)throw Error(j(261));return rr=null,lr=0,qt}function WA(){for(;Lt!==null;)ZS(Lt)}function jA(){for(;Lt!==null&&!yk();)ZS(Lt)}function ZS(e){var t=rw(e.alternate,e,en);e.memoizedProps=e.pendingProps,t===null?ew(e):Lt=t,hv.current=null}function ew(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=HA(r,t),r!==null){r.flags&=32767,Lt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{qt=6,Lt=null;return}}else if(r=UA(r,t,en),r!==null){Lt=r;return}if(t=t.sibling,t!==null){Lt=t;return}Lt=t=e}while(t!==null);qt===0&&(qt=5)}function ya(e,t,r){var n=Xe,o=xn.transition;try{xn.transition=null,Xe=1,$A(e,t,r,n)}finally{xn.transition=o,Xe=n}return null}function $A(e,t,r,n){do $s();while(Fi!==null);if(He&6)throw Error(j(327));r=e.finishedWork;var o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(Ak(e,i),e===rr&&(Lt=rr=null,lr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||jc||(jc=!0,nw(Gd,function(){return $s(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=xn.transition,xn.transition=null;var a=Xe;Xe=1;var s=He;He|=4,hv.current=null,KA(e,r),$S(r,e),pA(gm),Vd=!!mm,gm=mm=null,e.current=r,GA(r),Ek(),He=s,Xe=a,xn.transition=i}else e.current=r;if(jc&&(jc=!1,Fi=e,uf=o),i=e.pendingLanes,i===0&&(zi=null),Sk(r.stateNode),Vr(e,Dt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(sf)throw sf=!1,e=Om,Om=null,e;return uf&1&&e.tag!==0&&$s(),i=e.pendingLanes,i&1?e===Lm?fl++:(fl=0,Lm=e):fl=0,ra(),null}function $s(){if(Fi!==null){var e=N0(uf),t=xn.transition,r=Xe;try{if(xn.transition=null,Xe=16>e?16:e,Fi===null)var n=!1;else{if(e=Fi,Fi=null,uf=0,He&6)throw Error(j(331));var o=He;for(He|=4,le=e.current;le!==null;){var i=le,a=i.child;if(le.flags&16){var s=i.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(le=l;le!==null;){var c=le;switch(c.tag){case 0:case 11:case 15:cl(8,c,i)}var d=c.child;if(d!==null)d.return=c,le=d;else for(;le!==null;){c=le;var f=c.sibling,h=c.return;if(VS(c),c===l){le=null;break}if(f!==null){f.return=h,le=f;break}le=h}}}var m=i.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var E=y.sibling;y.sibling=null,y=E}while(y!==null)}}le=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,le=a;else e:for(;le!==null;){if(i=le,i.flags&2048)switch(i.tag){case 0:case 11:case 15:cl(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,le=v;break e}le=i.return}}var g=e.current;for(le=g;le!==null;){a=le;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,le=C;else e:for(a=g;le!==null;){if(s=le,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:nh(9,s)}}catch(w){At(s,s.return,w)}if(s===a){le=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,le=S;break e}le=s.return}}if(He=o,ra(),Io&&typeof Io.onPostCommitFiberRoot=="function")try{Io.onPostCommitFiberRoot(Qf,e)}catch{}n=!0}return n}finally{Xe=r,xn.transition=t}}return!1}function bE(e,t,r){t=iu(r,t),t=xS(e,t,1),e=Hi(e,t,1),t=Mr(),e!==null&&(yc(e,1,t),Vr(e,t))}function At(e,t,r){if(e.tag===3)bE(e,e,r);else for(;t!==null;){if(t.tag===3){bE(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(zi===null||!zi.has(n))){e=iu(r,e),e=DS(t,e,1),t=Hi(t,e,1),e=Mr(),t!==null&&(yc(t,1,e),Vr(t,e));break}}t=t.return}}function QA(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Mr(),e.pingedLanes|=e.suspendedLanes&r,rr===e&&(lr&r)===r&&(qt===4||qt===3&&(lr&130023424)===lr&&500>Dt()-mv?Ma(e,0):pv|=r),Vr(e,t)}function tw(e,t){t===0&&(e.mode&1?(t=Lc,Lc<<=1,!(Lc&130023424)&&(Lc=4194304)):t=1);var r=Mr();e=ii(e,t),e!==null&&(yc(e,t,r),Vr(e,r))}function YA(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),tw(e,r)}function XA(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(j(314))}n!==null&&n.delete(t),tw(e,r)}var rw;rw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gr.current)Kr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Kr=!1,BA(e,t,r);Kr=!!(e.flags&131072)}else Kr=!1,pt&&t.flags&1048576&&iS(t,Jd,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;_d(e,t),e=t.pendingProps;var o=tu(t,_r.current);js(t,r),o=uv(null,t,n,e,o,r);var i=lv();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qr(n)?(i=!0,Yd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nv(t),o.updater=th,t.stateNode=o,o._reactInternals=t,bm(t,n,e,r),t=Am(null,t,n,!0,i,r)):(t.tag=0,pt&&i&&Yg(t),Ar(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(_d(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=ZA(n),e=jn(n,e),o){case 0:t=km(null,t,n,e,r);break e;case 1:t=mE(null,t,n,e,r);break e;case 11:t=hE(null,t,n,e,r);break e;case 14:t=pE(null,t,n,jn(n.type,e),r);break e}throw Error(j(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jn(n,o),km(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jn(n,o),mE(e,t,n,o,r);case 3:e:{if(US(t),e===null)throw Error(j(387));n=t.pendingProps,i=t.memoizedState,o=i.element,lS(e,t),tf(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=iu(Error(j(423)),t),t=gE(e,t,n,r,o);break e}else if(n!==o){o=iu(Error(j(424)),t),t=gE(e,t,n,r,o);break e}else for(sn=Ui(t.stateNode.containerInfo.firstChild),fn=t,pt=!0,Qn=null,r=hS(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ru(),n===o){t=ai(e,t,r);break e}Ar(e,t,n,r)}t=t.child}return t;case 5:return pS(t),e===null&&Sm(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,vm(n,o)?a=null:i!==null&&vm(n,i)&&(t.flags|=32),BS(e,t),Ar(e,t,a,r),t.child;case 6:return e===null&&Sm(t),null;case 13:return HS(e,t,r);case 4:return ov(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=nu(t,null,n,r):Ar(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jn(n,o),hE(e,t,n,o,r);case 7:return Ar(e,t,t.pendingProps,r),t.child;case 8:return Ar(e,t,t.pendingProps.children,r),t.child;case 12:return Ar(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,st(Zd,n._currentValue),n._currentValue=a,i!==null)if(to(i.value,a)){if(i.children===o.children&&!Gr.current){t=ai(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=ei(-1,r&-r),u.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),wm(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(j(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),wm(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ar(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,js(t,r),o=Ln(o),n=n(o),t.flags|=1,Ar(e,t,n,r),t.child;case 14:return n=t.type,o=jn(n,t.pendingProps),o=jn(n.type,o),pE(e,t,n,o,r);case 15:return OS(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:jn(n,o),_d(e,t),t.tag=1,qr(n)?(e=!0,Yd(t)):e=!1,js(t,r),dS(t,n,o),bm(t,n,o,r),Am(null,t,n,!0,e,r);case 19:return zS(e,t,r);case 22:return LS(e,t,r)}throw Error(j(156,t.tag))};function nw(e,t){return R0(e,t)}function JA(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,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 Mn(e,t,r,n){return new JA(e,t,r,n)}function Ev(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZA(e){if(typeof e=="function")return Ev(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bg)return 11;if(e===Ug)return 14}return 2}function Gi(e,t){var r=e.alternate;return r===null?(r=Mn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function wd(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")Ev(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ws:return Fa(r.children,o,i,t);case Lg:a=8,o|=8;break;case Qp:return e=Mn(12,r,t,o|2),e.elementType=Qp,e.lanes=i,e;case Yp:return e=Mn(13,r,t,o),e.elementType=Yp,e.lanes=i,e;case Xp:return e=Mn(19,r,t,o),e.elementType=Xp,e.lanes=i,e;case f0:return ih(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case c0:a=10;break e;case d0:a=9;break e;case Bg:a=11;break e;case Ug:a=14;break e;case Ci:a=16,n=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=Mn(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Fa(e,t,r,n){return e=Mn(7,e,n,t),e.lanes=r,e}function ih(e,t,r,n){return e=Mn(22,e,n,t),e.elementType=f0,e.lanes=r,e.stateNode={isHidden:!1},e}function rp(e,t,r){return e=Mn(6,e,null,t),e.lanes=r,e}function np(e,t,r){return t=Mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function e1(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lh(0),this.expirationTimes=Lh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lh(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function _v(e,t,r,n,o,i,a,s,u){return e=new e1(e,t,r,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Mn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nv(i),e}function t1(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ss,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function ow(e){if(!e)return Xi;e=e._reactInternals;e:{if(Qa(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var r=e.type;if(qr(r))return nS(e,r,t)}return t}function iw(e,t,r,n,o,i,a,s,u){return e=_v(r,n,!0,e,o,i,a,s,u),e.context=ow(null),r=e.current,n=Mr(),o=Ki(r),i=ei(n,o),i.callback=t??null,Hi(r,i,o),e.current.lanes=o,yc(e,o,n),Vr(e,n),e}function ah(e,t,r,n){var o=t.current,i=Mr(),a=Ki(o);return r=ow(r),t.context===null?t.context=r:t.pendingContext=r,t=ei(i,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Hi(o,t,a),e!==null&&(eo(e,o,a,i),vd(e,o,a)),a}function cf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function IE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Cv(e,t){IE(e,t),(e=e.alternate)&&IE(e,t)}function r1(){return null}var aw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Sv(e){this._internalRoot=e}sh.prototype.render=Sv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));ah(e,t,null,null)};sh.prototype.unmount=Sv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ka(function(){ah(null,e,null,null)}),t[oi]=null}};function sh(e){this._internalRoot=e}sh.prototype.unstable_scheduleHydration=function(e){if(e){var t=O0();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ai.length&&t!==0&&t<Ai[r].priority;r++);Ai.splice(r,0,e),r===0&&B0(e)}};function wv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function uh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kE(){}function n1(e,t,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var l=cf(a);i.call(l)}}var a=iw(t,n,e,0,null,!1,!1,"",kE);return e._reactRootContainer=a,e[oi]=a.current,Ll(e.nodeType===8?e.parentNode:e),Ka(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var l=cf(u);s.call(l)}}var u=_v(e,0,!1,null,null,!1,!1,"",kE);return e._reactRootContainer=u,e[oi]=u.current,Ll(e.nodeType===8?e.parentNode:e),Ka(function(){ah(t,u,r,n)}),u}function lh(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var u=cf(a);s.call(u)}}ah(t,a,e,o)}else a=n1(r,t,e,o,n);return cf(a)}x0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Xu(t.pendingLanes);r!==0&&(Kg(t,r|1),Vr(t,Dt()),!(He&6)&&(au=Dt()+500,ra()))}break;case 13:Ka(function(){var n=ii(e,1);if(n!==null){var o=Mr();eo(n,e,1,o)}}),Cv(e,1)}};Gg=function(e){if(e.tag===13){var t=ii(e,134217728);if(t!==null){var r=Mr();eo(t,e,134217728,r)}Cv(e,134217728)}};D0=function(e){if(e.tag===13){var t=Ki(e),r=ii(e,t);if(r!==null){var n=Mr();eo(r,e,t,n)}Cv(e,t)}};O0=function(){return Xe};L0=function(e,t){var r=Xe;try{return Xe=e,t()}finally{Xe=r}};sm=function(e,t,r){switch(t){case"input":if(em(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Zf(n);if(!o)throw Error(j(90));p0(n),em(n,o)}}}break;case"textarea":g0(e,r);break;case"select":t=r.value,t!=null&&Gs(e,!!r.multiple,t,!1)}};w0=gv;T0=Ka;var o1={usingClientEntryPoint:!1,Events:[_c,ks,Zf,C0,S0,gv]},Ou={findFiberByHostInstance:wa,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},i1={bundleType:Ou.bundleType,version:Ou.version,rendererPackageName:Ou.rendererPackageName,rendererConfig:Ou.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ui.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=k0(e),e===null?null:e.stateNode},findFiberByHostInstance:Ou.findFiberByHostInstance||r1,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 $c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$c.isDisabled&&$c.supportsFiber)try{Qf=$c.inject(i1),Io=$c}catch{}}vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o1;vn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wv(t))throw Error(j(200));return t1(e,t,null,r)};vn.createRoot=function(e,t){if(!wv(e))throw Error(j(299));var r=!1,n="",o=aw;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=_v(e,1,!1,null,null,r,!1,n,o),e[oi]=t.current,Ll(e.nodeType===8?e.parentNode:e),new Sv(t)};vn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=k0(t),e=e===null?null:e.stateNode,e};vn.flushSync=function(e){return Ka(e)};vn.hydrate=function(e,t,r){if(!uh(t))throw Error(j(200));return lh(null,e,t,!0,r)};vn.hydrateRoot=function(e,t,r){if(!wv(e))throw Error(j(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=aw;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=iw(t,null,e,1,r??null,o,!1,i,a),e[oi]=t.current,Ll(e),n)for(e=0;e<n.length;e++)r=n[e],o=r._getVersion,o=o(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new sh(t)};vn.render=function(e,t,r){if(!uh(t))throw Error(j(200));return lh(null,e,t,!1,r)};vn.unmountComponentAtNode=function(e){if(!uh(e))throw Error(j(40));return e._reactRootContainer?(Ka(function(){lh(null,null,e,!1,function(){e._reactRootContainer=null,e[oi]=null})}),!0):!1};vn.unstable_batchedUpdates=gv;vn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!uh(r))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return lh(e,t,r,!1,n)};vn.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=vn})(rk);var AE=Al;Wp.createRoot=AE.createRoot,Wp.hydrateRoot=AE.hydrateRoot;/**
 * @remix-run/router v1.3.2
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wl.apply(this,arguments)}var Ni;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ni||(Ni={}));const RE="popstate";function a1(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:s="",hash:u=""}=Ya(o.location.hash.substr(1));return Hm("",{pathname:a,search:s,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(o,i){let a=o.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let u=o.location.href,l=u.indexOf("#");s=l===-1?u:u.slice(0,l)}return s+"#"+(typeof i=="string"?i:df(i))}function n(o,i){s1(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return l1(t,r,n,e)}function Vt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function s1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function u1(){return Math.random().toString(36).substr(2,8)}function PE(e,t){return{usr:e.state,key:e.key,idx:t}}function Hm(e,t,r,n){return r===void 0&&(r=null),Wl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ya(t):t,{state:r,key:t&&t.key||n||u1()})}function df(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ya(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function l1(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=Ni.Pop,u=null,l=c();l==null&&(l=0,a.replaceState(Wl({},a.state,{idx:l}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=Ni.Pop;let E=c(),v=E==null?null:E-l;l=E,u&&u({action:s,location:y.location,delta:v})}function f(E,v){s=Ni.Push;let g=Hm(y.location,E,v);r&&r(g,E),l=c()+1;let C=PE(g,l),S=y.createHref(g);try{a.pushState(C,"",S)}catch{o.location.assign(S)}i&&u&&u({action:s,location:y.location,delta:1})}function h(E,v){s=Ni.Replace;let g=Hm(y.location,E,v);r&&r(g,E),l=c();let C=PE(g,l),S=y.createHref(g);a.replaceState(C,"",S),i&&u&&u({action:s,location:y.location,delta:0})}function m(E){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof E=="string"?E:df(E);return Vt(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let y={get action(){return s},get location(){return e(o,a)},listen(E){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(RE,d),u=E,()=>{o.removeEventListener(RE,d),u=null}},createHref(E){return t(o,E)},createURL:m,encodeLocation(E){let v=m(E);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:h,go(E){return a.go(E)}};return y}var ME;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ME||(ME={}));function c1(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Ya(t):t,o=lw(n.pathname||"/",r);if(o==null)return null;let i=sw(e);d1(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=_1(i[s],w1(o));return a}function sw(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(i,a,s)=>{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(Vt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let l=qi([n,u.relativePath]),c=r.concat(u);i.children&&i.children.length>0&&(Vt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),sw(i.children,t,c,l)),!(i.path==null&&!i.index)&&t.push({path:l,score:y1(l,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let u of uw(i.path))o(i,a,u)}),t}function uw(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=uw(n.join("/")),s=[];return s.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function d1(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:E1(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const f1=/^:\w+$/,h1=3,p1=2,m1=1,g1=10,v1=-2,FE=e=>e==="*";function y1(e,t){let r=e.split("/"),n=r.length;return r.some(FE)&&(n+=v1),t&&(n+=p1),r.filter(o=>!FE(o)).reduce((o,i)=>o+(f1.test(i)?h1:i===""?m1:g1),n)}function E1(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function _1(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a<r.length;++a){let s=r[a],u=a===r.length-1,l=o==="/"?t:t.slice(o.length)||"/",c=C1({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},l);if(!c)return null;Object.assign(n,c.params);let d=s.route;i.push({params:n,pathname:qi([o,c.pathname]),pathnameBase:k1(qi([o,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(o=qi([o,c.pathnameBase]))}return i}function C1(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=S1(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((l,c,d)=>{if(c==="*"){let f=s[d]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return l[c]=T1(s[d]||"",c),l},{}),pathname:i,pathnameBase:a,pattern:e}}function S1(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Tv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function w1(e){try{return decodeURI(e)}catch(t){return Tv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function T1(e,t){try{return decodeURIComponent(e)}catch(r){return Tv(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function lw(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Tv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function b1(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Ya(e):e;return{pathname:r?r.startsWith("/")?r:I1(r,t):t,search:A1(n),hash:R1(o)}}function I1(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function op(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` 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 cw(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function dw(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Ya(e):(o=Wl({},e),Vt(!o.pathname||!o.pathname.includes("?"),op("?","pathname","search",o)),Vt(!o.pathname||!o.pathname.includes("#"),op("#","pathname","hash",o)),Vt(!o.search||!o.search.includes("#"),op("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(n||a==null)s=r;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let u=b1(o,s),l=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(l||c)&&(u.pathname+="/"),u}const qi=e=>e.join("/").replace(/\/\/+/g,"/"),k1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),A1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,R1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function P1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const M1=["post","put","patch","delete"];[...M1];/**
 * React Router v6.8.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zm.apply(this,arguments)}function F1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const N1=typeof Object.is=="function"?Object.is:F1,{useState:x1,useEffect:D1,useLayoutEffect:O1,useDebugValue:L1}=Bd;function B1(e,t,r){const n=t(),[{inst:o},i]=x1({inst:{value:n,getSnapshot:t}});return O1(()=>{o.value=n,o.getSnapshot=t,ip(o)&&i({inst:o})},[e,n,t]),D1(()=>(ip(o)&&i({inst:o}),e(()=>{ip(o)&&i({inst:o})})),[e]),L1(n),n}function ip(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!N1(r,n)}catch{return!0}}function U1(e,t,r){return t()}const H1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",z1=!H1,K1=z1?U1:B1;"useSyncExternalStore"in Bd&&(e=>e.useSyncExternalStore)(Bd);const fw=p.createContext(null),hw=p.createContext(null),ch=p.createContext(null),dh=p.createContext(null),Xa=p.createContext({outlet:null,matches:[]}),pw=p.createContext(null);function G1(e,t){let{relative:r}=t===void 0?{}:t;Sc()||Vt(!1);let{basename:n,navigator:o}=p.useContext(ch),{hash:i,pathname:a,search:s}=mw(e,{relative:r}),u=a;return n!=="/"&&(u=a==="/"?n:qi([n,a])),o.createHref({pathname:u,search:s,hash:i})}function Sc(){return p.useContext(dh)!=null}function fh(){return Sc()||Vt(!1),p.useContext(dh).location}function q1(){Sc()||Vt(!1);let{basename:e,navigator:t}=p.useContext(ch),{matches:r}=p.useContext(Xa),{pathname:n}=fh(),o=JSON.stringify(cw(r).map(s=>s.pathnameBase)),i=p.useRef(!1);return p.useEffect(()=>{i.current=!0}),p.useCallback(function(s,u){if(u===void 0&&(u={}),!i.current)return;if(typeof s=="number"){t.go(s);return}let l=dw(s,JSON.parse(o),n,u.relative==="path");e!=="/"&&(l.pathname=l.pathname==="/"?e:qi([e,l.pathname])),(u.replace?t.replace:t.push)(l,u.state,u)},[e,t,o,n])}const V1=p.createContext(null);function W1(e){let t=p.useContext(Xa).outlet;return t&&p.createElement(V1.Provider,{value:e},t)}function mw(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=p.useContext(Xa),{pathname:o}=fh(),i=JSON.stringify(cw(n).map(a=>a.pathnameBase));return p.useMemo(()=>dw(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function j1(e,t){Sc()||Vt(!1);let{navigator:r}=p.useContext(ch),n=p.useContext(hw),{matches:o}=p.useContext(Xa),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let u=fh(),l;if(t){var c;let y=typeof t=="string"?Ya(t):t;s==="/"||(c=y.pathname)!=null&&c.startsWith(s)||Vt(!1),l=y}else l=u;let d=l.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=c1(e,{pathname:f}),m=X1(h&&h.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:qi([s,r.encodeLocation?r.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:qi([s,r.encodeLocation?r.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n||void 0);return t&&m?p.createElement(dh.Provider,{value:{location:zm({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:Ni.Pop}},m):m}function $1(){let e=tR(),t=P1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:o},r):null,i)}class Q1 extends p.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?p.createElement(Xa.Provider,{value:this.props.routeContext},p.createElement(pw.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Y1(e){let{routeContext:t,match:r,children:n}=e,o=p.useContext(fw);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(Xa.Provider,{value:t},n)}function X1(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,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||Vt(!1),n=n.slice(0,Math.min(n.length,i+1))}return n.reduceRight((i,a,s)=>{let u=a.route.id?o==null?void 0:o[a.route.id]:null,l=r?a.route.errorElement||p.createElement($1,null):null,c=t.concat(n.slice(0,s+1)),d=()=>p.createElement(Y1,{match:a,routeContext:{outlet:i,matches:c}},u?l:a.route.element!==void 0?a.route.element:i);return r&&(a.route.errorElement||s===0)?p.createElement(Q1,{location:r.location,component:l,error:u,children:d(),routeContext:{outlet:null,matches:c}}):d()},null)}var NE;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(NE||(NE={}));var ff;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(ff||(ff={}));function J1(e){let t=p.useContext(hw);return t||Vt(!1),t}function Z1(e){let t=p.useContext(Xa);return t||Vt(!1),t}function eR(e){let t=Z1(),r=t.matches[t.matches.length-1];return r.route.id||Vt(!1),r.route.id}function tR(){var e;let t=p.useContext(pw),r=J1(ff.UseRouteError),n=eR(ff.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function rR(e){return W1(e.context)}function Td(e){Vt(!1)}function nR(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Ni.Pop,navigator:i,static:a=!1}=e;Sc()&&Vt(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof n=="string"&&(n=Ya(n));let{pathname:l="/",search:c="",hash:d="",state:f=null,key:h="default"}=n,m=p.useMemo(()=>{let y=lw(l,s);return y==null?null:{pathname:y,search:c,hash:d,state:f,key:h}},[s,l,c,d,f,h]);return m==null?null:p.createElement(ch.Provider,{value:u},p.createElement(dh.Provider,{children:r,value:{location:m,navigationType:o}}))}function oR(e){let{children:t,location:r}=e,n=p.useContext(fw),o=n&&!t?n.router.routes:Km(t);return j1(o,r)}var xE;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(xE||(xE={}));new Promise(()=>{});function Km(e,t){t===void 0&&(t=[]);let r=[];return p.Children.forEach(e,(n,o)=>{if(!p.isValidElement(n))return;if(n.type===p.Fragment){r.push.apply(r,Km(n.props.children,t));return}n.type!==Td&&Vt(!1),!n.props.index||!n.props.children||Vt(!1);let i=[...t,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=Km(n.props.children,i)),r.push(a)}),r}/**
 * React Router DOM v6.8.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function Gm(){return Gm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gm.apply(this,arguments)}function iR(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function aR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sR(e,t){return e.button===0&&(!t||t==="_self")&&!aR(e)}const uR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function lR(e){let{basename:t,children:r,window:n}=e,o=p.useRef();o.current==null&&(o.current=a1({window:n,v5Compat:!0}));let i=o.current,[a,s]=p.useState({action:i.action,location:i.location});return p.useLayoutEffect(()=>i.listen(s),[i]),p.createElement(nR,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:i})}const cR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dR=p.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:u,to:l,preventScrollReset:c}=t,d=iR(t,uR),f,h=!1;if(cR&&typeof l=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(l)){f=l;let v=new URL(window.location.href),g=l.startsWith("//")?new URL(v.protocol+l):new URL(l);g.origin===v.origin?l=g.pathname+g.search+g.hash:h=!0}let m=G1(l,{relative:o}),y=fR(l,{replace:a,state:s,target:u,preventScrollReset:c,relative:o});function E(v){n&&n(v),v.defaultPrevented||y(v)}return p.createElement("a",Gm({},d,{href:f||m,onClick:h||i?n:E,ref:r,target:u}))});var DE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(DE||(DE={}));var OE;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(OE||(OE={}));function fR(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=q1(),u=fh(),l=mw(e,{relative:a});return p.useCallback(c=>{if(sR(c,r)){c.preventDefault();let d=n!==void 0?n:df(u)===df(l);s(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[u,s,l,n,o,r,e,i,a])}var LE={},bd=void 0;try{bd=window}catch{}function bv(e,t){if(typeof bd<"u"){var r=bd.__packages__=bd.__packages__||{};if(!r[e]||!LE[e]){LE[e]=t;var n=r[e]=r[e]||[];n.push(t)}}}bv("@fluentui/set-version","6.0.0");var _={},hR={get exports(){return _},set exports(e){_=e}};(function(e){var t,r,n,o,i,a,s,u,l,c,d,f,h,m,y,E,v,g,C,S,w,I,b,k,O,L,se,B,ae;(function(G){var oe=typeof Ey=="object"?Ey:typeof self=="object"?self:typeof this=="object"?this:{};G(me(oe,me(e.exports)));function me(P,T){return P!==oe&&(typeof Object.create=="function"?Object.defineProperty(P,"__esModule",{value:!0}):P.__esModule=!0),function(M,F){return P[M]=T?T(M,F):F}}})(function(G){var oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,T){P.__proto__=T}||function(P,T){for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&(P[M]=T[M])};t=function(P,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");oe(P,T);function M(){this.constructor=P}P.prototype=T===null?Object.create(T):(M.prototype=T.prototype,new M)},r=Object.assign||function(P){for(var T,M=1,F=arguments.length;M<F;M++){T=arguments[M];for(var N in T)Object.prototype.hasOwnProperty.call(T,N)&&(P[N]=T[N])}return P},n=function(P,T){var M={};for(var F in P)Object.prototype.hasOwnProperty.call(P,F)&&T.indexOf(F)<0&&(M[F]=P[F]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,F=Object.getOwnPropertySymbols(P);N<F.length;N++)T.indexOf(F[N])<0&&Object.prototype.propertyIsEnumerable.call(P,F[N])&&(M[F[N]]=P[F[N]]);return M},o=function(P,T,M,F){var N=arguments.length,x=N<3?T:F===null?F=Object.getOwnPropertyDescriptor(T,M):F,Y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(P,T,M,F);else for(var de=P.length-1;de>=0;de--)(Y=P[de])&&(x=(N<3?Y(x):N>3?Y(T,M,x):Y(T,M))||x);return N>3&&x&&Object.defineProperty(T,M,x),x},i=function(P,T){return function(M,F){T(M,F,P)}},a=function(P,T,M,F,N,x){function Y(nr){if(nr!==void 0&&typeof nr!="function")throw new TypeError("Function expected");return nr}for(var de=F.kind,ye=de==="getter"?"get":de==="setter"?"set":"value",V=!T&&P?F.static?P:P.prototype:null,ke=T||(V?Object.getOwnPropertyDescriptor(V,F.name):{}),Ae,Le=!1,ot=M.length-1;ot>=0;ot--){var it={};for(var Ze in F)it[Ze]=Ze==="access"?{}:F[Ze];for(var Ze in F.access)it.access[Ze]=F.access[Ze];it.addInitializer=function(nr){if(Le)throw new TypeError("Cannot add initializers after decoration has completed");x.push(Y(nr||null))};var ze=(0,M[ot])(de==="accessor"?{get:ke.get,set:ke.set}:ke[ye],it);if(de==="accessor"){if(ze===void 0)continue;if(ze===null||typeof ze!="object")throw new TypeError("Object expected");(Ae=Y(ze.get))&&(ke.get=Ae),(Ae=Y(ze.set))&&(ke.set=Ae),(Ae=Y(ze.init))&&N.push(Ae)}else(Ae=Y(ze))&&(de==="field"?N.push(Ae):ke[ye]=Ae)}V&&Object.defineProperty(V,F.name,ke),Le=!0},s=function(P,T,M){for(var F=arguments.length>2,N=0;N<T.length;N++)M=F?T[N].call(P,M):T[N].call(P);return F?M:void 0},u=function(P){return typeof P=="symbol"?P:"".concat(P)},l=function(P,T,M){return typeof T=="symbol"&&(T=T.description?"[".concat(T.description,"]"):""),Object.defineProperty(P,"name",{configurable:!0,value:M?"".concat(M," ",T):T})},c=function(P,T){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(P,T)},d=function(P,T,M,F){function N(x){return x instanceof M?x:new M(function(Y){Y(x)})}return new(M||(M=Promise))(function(x,Y){function de(ke){try{V(F.next(ke))}catch(Ae){Y(Ae)}}function ye(ke){try{V(F.throw(ke))}catch(Ae){Y(Ae)}}function V(ke){ke.done?x(ke.value):N(ke.value).then(de,ye)}V((F=F.apply(P,T||[])).next())})},f=function(P,T){var M={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]},F,N,x,Y;return Y={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(Y[Symbol.iterator]=function(){return this}),Y;function de(V){return function(ke){return ye([V,ke])}}function ye(V){if(F)throw new TypeError("Generator is already executing.");for(;Y&&(Y=0,V[0]&&(M=0)),M;)try{if(F=1,N&&(x=V[0]&2?N.return:V[0]?N.throw||((x=N.return)&&x.call(N),0):N.next)&&!(x=x.call(N,V[1])).done)return x;switch(N=0,x&&(V=[V[0]&2,x.value]),V[0]){case 0:case 1:x=V;break;case 4:return M.label++,{value:V[1],done:!1};case 5:M.label++,N=V[1],V=[0];continue;case 7:V=M.ops.pop(),M.trys.pop();continue;default:if(x=M.trys,!(x=x.length>0&&x[x.length-1])&&(V[0]===6||V[0]===2)){M=0;continue}if(V[0]===3&&(!x||V[1]>x[0]&&V[1]<x[3])){M.label=V[1];break}if(V[0]===6&&M.label<x[1]){M.label=x[1],x=V;break}if(x&&M.label<x[2]){M.label=x[2],M.ops.push(V);break}x[2]&&M.ops.pop(),M.trys.pop();continue}V=T.call(P,M)}catch(ke){V=[6,ke],N=0}finally{F=x=0}if(V[0]&5)throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}},h=function(P,T){for(var M in P)M!=="default"&&!Object.prototype.hasOwnProperty.call(T,M)&&ae(T,P,M)},ae=Object.create?function(P,T,M,F){F===void 0&&(F=M);var N=Object.getOwnPropertyDescriptor(T,M);(!N||("get"in N?!T.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return T[M]}}),Object.defineProperty(P,F,N)}:function(P,T,M,F){F===void 0&&(F=M),P[F]=T[M]},m=function(P){var T=typeof Symbol=="function"&&Symbol.iterator,M=T&&P[T],F=0;if(M)return M.call(P);if(P&&typeof P.length=="number")return{next:function(){return P&&F>=P.length&&(P=void 0),{value:P&&P[F++],done:!P}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(P,T){var M=typeof Symbol=="function"&&P[Symbol.iterator];if(!M)return P;var F=M.call(P),N,x=[],Y;try{for(;(T===void 0||T-- >0)&&!(N=F.next()).done;)x.push(N.value)}catch(de){Y={error:de}}finally{try{N&&!N.done&&(M=F.return)&&M.call(F)}finally{if(Y)throw Y.error}}return x},E=function(){for(var P=[],T=0;T<arguments.length;T++)P=P.concat(y(arguments[T]));return P},v=function(){for(var P=0,T=0,M=arguments.length;T<M;T++)P+=arguments[T].length;for(var F=Array(P),N=0,T=0;T<M;T++)for(var x=arguments[T],Y=0,de=x.length;Y<de;Y++,N++)F[N]=x[Y];return F},g=function(P,T,M){if(M||arguments.length===2)for(var F=0,N=T.length,x;F<N;F++)(x||!(F in T))&&(x||(x=Array.prototype.slice.call(T,0,F)),x[F]=T[F]);return P.concat(x||Array.prototype.slice.call(T))},C=function(P){return this instanceof C?(this.v=P,this):new C(P)},S=function(P,T,M){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var F=M.apply(P,T||[]),N,x=[];return N={},Y("next"),Y("throw"),Y("return"),N[Symbol.asyncIterator]=function(){return this},N;function Y(Le){F[Le]&&(N[Le]=function(ot){return new Promise(function(it,Ze){x.push([Le,ot,it,Ze])>1||de(Le,ot)})})}function de(Le,ot){try{ye(F[Le](ot))}catch(it){Ae(x[0][3],it)}}function ye(Le){Le.value instanceof C?Promise.resolve(Le.value.v).then(V,ke):Ae(x[0][2],Le)}function V(Le){de("next",Le)}function ke(Le){de("throw",Le)}function Ae(Le,ot){Le(ot),x.shift(),x.length&&de(x[0][0],x[0][1])}},w=function(P){var T,M;return T={},F("next"),F("throw",function(N){throw N}),F("return"),T[Symbol.iterator]=function(){return this},T;function F(N,x){T[N]=P[N]?function(Y){return(M=!M)?{value:C(P[N](Y)),done:!1}:x?x(Y):Y}:x}},I=function(P){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var T=P[Symbol.asyncIterator],M;return T?T.call(P):(P=typeof m=="function"?m(P):P[Symbol.iterator](),M={},F("next"),F("throw"),F("return"),M[Symbol.asyncIterator]=function(){return this},M);function F(x){M[x]=P[x]&&function(Y){return new Promise(function(de,ye){Y=P[x](Y),N(de,ye,Y.done,Y.value)})}}function N(x,Y,de,ye){Promise.resolve(ye).then(function(V){x({value:V,done:de})},Y)}},b=function(P,T){return Object.defineProperty?Object.defineProperty(P,"raw",{value:T}):P.raw=T,P};var me=Object.create?function(P,T){Object.defineProperty(P,"default",{enumerable:!0,value:T})}:function(P,T){P.default=T};k=function(P){if(P&&P.__esModule)return P;var T={};if(P!=null)for(var M in P)M!=="default"&&Object.prototype.hasOwnProperty.call(P,M)&&ae(T,P,M);return me(T,P),T},O=function(P){return P&&P.__esModule?P:{default:P}},L=function(P,T,M,F){if(M==="a"&&!F)throw new TypeError("Private accessor was defined without a getter");if(typeof T=="function"?P!==T||!F:!T.has(P))throw new TypeError("Cannot read private member from an object whose class did not declare it");return M==="m"?F:M==="a"?F.call(P):F?F.value:T.get(P)},se=function(P,T,M,F,N){if(F==="m")throw new TypeError("Private method is not writable");if(F==="a"&&!N)throw new TypeError("Private accessor was defined without a setter");if(typeof T=="function"?P!==T||!N:!T.has(P))throw new TypeError("Cannot write private member to an object whose class did not declare it");return F==="a"?N.call(P,M):N?N.value=M:T.set(P,M),M},B=function(P,T){if(T===null||typeof T!="object"&&typeof T!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof P=="function"?T===P:P.has(T)},G("__extends",t),G("__assign",r),G("__rest",n),G("__decorate",o),G("__param",i),G("__esDecorate",a),G("__runInitializers",s),G("__propKey",u),G("__setFunctionName",l),G("__metadata",c),G("__awaiter",d),G("__generator",f),G("__exportStar",h),G("__createBinding",ae),G("__values",m),G("__read",y),G("__spread",E),G("__spreadArrays",v),G("__spreadArray",g),G("__await",C),G("__asyncGenerator",S),G("__asyncDelegator",w),G("__asyncValues",I),G("__makeTemplateObject",b),G("__importStar",k),G("__importDefault",O),G("__classPrivateFieldGet",L),G("__classPrivateFieldSet",se),G("__classPrivateFieldIn",B)})})(hR);var Lu={none:0,insertNode:1,appendChild:2},BE="__stylesheet__",pR=typeof navigator<"u"&&/rv:11.0/.test(navigator.userAgent),_s={};try{_s=window||{}}catch{}var us,mn=function(){function e(t,r){var n,o,i,a,s,u;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=_.__assign({injectionMode:typeof document>"u"?Lu.none:Lu.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=(n=r==null?void 0:r.classNameToArgs)!==null&&n!==void 0?n:this._classNameToArgs,this._counter=(o=r==null?void 0:r.counter)!==null&&o!==void 0?o:this._counter,this._keyToClassName=(a=(i=this._config.classNameCache)!==null&&i!==void 0?i:r==null?void 0:r.keyToClassName)!==null&&a!==void 0?a:this._keyToClassName,this._preservedRules=(s=r==null?void 0:r.preservedRules)!==null&&s!==void 0?s:this._preservedRules,this._rules=(u=r==null?void 0:r.rules)!==null&&u!==void 0?u:this._rules}return e.getInstance=function(){if(us=_s[BE],!us||us._lastStyleElement&&us._lastStyleElement.ownerDocument!==document){var t=(_s==null?void 0:_s.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);us=r,_s[BE]=r}return us},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=_.__assign(_.__assign({},this._config),t)},e.prototype.onReset=function(t){var r=this;return this._onResetCallbacks.push(t),function(){r._onResetCallbacks=r._onResetCallbacks.filter(function(n){return n!==t})}},e.prototype.onInsertRule=function(t){var r=this;return this._onInsertRuleCallbacks.push(t),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter(function(n){return n!==t})}},e.prototype.getClassName=function(t){var r=this._config.namespace,n=t||this._config.defaultPrefix;return(r?r+"-":"")+n+"-"+this._counter++},e.prototype.cacheClassName=function(t,r,n,o){this._keyToClassName[r]=t,this._classNameToArgs[t]={args:n,rules:o}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.args},e.prototype.insertedRulesFromClassName=function(t){var r=this._classNameToArgs[t];return r&&r.rules},e.prototype.insertRule=function(t,r){var n=this._config.injectionMode,o=n!==Lu.none?this._getStyleElement():void 0;if(r&&this._preservedRules.push(t),o)switch(n){case Lu.insertNode:var i=o.sheet;try{i.insertRule(t,i.cssRules.length)}catch{}break;case Lu.appendChild:o.appendChild(document.createTextNode(t));break}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach(function(a){return a()})},e.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach(function(t){return t()})},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var t=this;return!this._styleElement&&typeof document<"u"&&(this._styleElement=this._createStyleElement(),pR||window.requestAnimationFrame(function(){t._styleElement=void 0})),this._styleElement},e.prototype._createStyleElement=function(){var t=document.head,r=document.createElement("style"),n=null;r.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&r.setAttribute("nonce",o.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();i?n=i.nextElementSibling:n=t.childNodes[0]}return t.insertBefore(r,t.contains(n)?n:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},e}();function gw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=[],n=[],o=mn.getInstance();function i(a){for(var s=0,u=a;s<u.length;s++){var l=u[s];if(l)if(typeof l=="string")if(l.indexOf(" ")>=0)i(l.split(" "));else{var c=o.argsFromClassName(l);c?i(c):r.indexOf(l)===-1&&r.push(l)}else Array.isArray(l)?i(l):typeof l=="object"&&n.push(l)}}return i(e),{classes:r,objects:n}}function vw(e){Qs!==e&&(Qs=e)}function yw(){return Qs===void 0&&(Qs=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Qs}var Qs;Qs=yw();function hh(){return{rtl:yw()}}var UE={};function mR(e,t){var r=e[t];r.charAt(0)!=="-"&&(e[t]=UE[r]=UE[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var Qc;function gR(){var e;if(!Qc){var t=typeof document<"u"?document:void 0,r=typeof navigator<"u"?navigator:void 0,n=(e=r==null?void 0:r.userAgent)===null||e===void 0?void 0:e.toLowerCase();t?Qc={isWebkit:!!(t&&"WebkitAppearance"in t.documentElement.style),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!!(r&&(/rv:11.0/i.test(r.userAgent)||/Edge\/\d./i.test(navigator.userAgent)))}:Qc={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return Qc}var HE={"user-select":1};function vR(e,t){var r=gR(),n=e[t];if(HE[n]){var o=e[t+1];HE[n]&&(r.isWebkit&&e.push("-webkit-"+n,o),r.isMoz&&e.push("-moz-"+n,o),r.isMs&&e.push("-ms-"+n,o),r.isOpera&&e.push("-o-"+n,o))}}var yR=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function ER(e,t){var r=e[t],n=e[t+1];if(typeof n=="number"){var o=yR.indexOf(r)>-1,i=r.indexOf("--")>-1,a=o||i?"":"px";e[t+1]=""+n+a}}var Yc,wi="left",Ti="right",_R="@noflip",zE=(Yc={},Yc[wi]=Ti,Yc[Ti]=wi,Yc),KE={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function CR(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var o=t[r+1];if(typeof o=="string"&&o.indexOf(_R)>=0)t[r+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(wi)>=0)t[r]=n.replace(wi,Ti);else if(n.indexOf(Ti)>=0)t[r]=n.replace(Ti,wi);else if(String(o).indexOf(wi)>=0)t[r+1]=o.replace(wi,Ti);else if(String(o).indexOf(Ti)>=0)t[r+1]=o.replace(Ti,wi);else if(zE[n])t[r]=zE[n];else if(KE[o])t[r+1]=KE[o];else switch(n){case"margin":case"padding":t[r+1]=wR(o);break;case"box-shadow":t[r+1]=SR(o,0);break}}}function SR(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(n*-1)),r.join(" ")}function wR(e){if(typeof e=="string"){var t=e.split(" ");if(t.length===4)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}function TR(e){for(var t=[],r=0,n=0,o=0;o<e.length;o++)switch(e[o]){case"(":n++;break;case")":n&&n--;break;case"	":case" ":n||(o>r&&t.push(e.substring(r,o)),r=o+1);break}return r<e.length&&t.push(e.substring(r)),t}var bR="displayName";function IR(e){var t=e&&e["&"];return t?t.displayName:void 0}var Ew=/\:global\((.+?)\)/g;function kR(e){if(!Ew.test(e))return e;for(var t=[],r=/\:global\((.+?)\)/g,n=null;n=r.exec(e);)n[1].indexOf(",")>-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map(function(o){return":global("+o.trim()+")"}).join(", ")]);return t.reverse().reduce(function(o,i){var a=i[0],s=i[1],u=i[2],l=o.slice(0,a),c=o.slice(s);return l+u+c},e)}function GE(e,t){return e.indexOf(":global(")>=0?e.replace(Ew,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function qE(e,t,r,n){t===void 0&&(t={__order:[]}),r.indexOf("@")===0?(r=r+"{"+e,Ys([n],t,r)):r.indexOf(",")>-1?kR(r).split(",").map(function(o){return o.trim()}).forEach(function(o){return Ys([n],t,GE(o,e))}):Ys([n],t,GE(r,e))}function Ys(e,t,r){t===void 0&&(t={__order:[]}),r===void 0&&(r="&");var n=mn.getInstance(),o=t[r];o||(o={},t[r]=o,t.__order.push(r));for(var i=0,a=e;i<a.length;i++){var s=a[i];if(typeof s=="string"){var u=n.argsFromClassName(s);u&&Ys(u,t,r)}else if(Array.isArray(s))Ys(s,t,r);else for(var l in s)if(s.hasOwnProperty(l)){var c=s[l];if(l==="selectors"){var d=s.selectors;for(var f in d)d.hasOwnProperty(f)&&qE(r,t,f,d[f])}else typeof c=="object"?c!==null&&qE(r,t,l,c):c!==void 0&&(l==="margin"||l==="padding"?AR(o,l,c):o[l]=c)}}return t}function AR(e,t,r){var n=typeof r=="string"?TR(r):[r];n.length===0&&n.push(r),n[n.length-1]==="!important"&&(n=n.slice(0,-1).map(function(o){return o+" !important"})),e[t+"Top"]=n[0],e[t+"Right"]=n[1]||n[0],e[t+"Bottom"]=n[2]||n[0],e[t+"Left"]=n[3]||n[1]||n[0]}function RR(e,t){for(var r=[e.rtl?"rtl":"ltr"],n=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];r.push(a);var s=t[a];for(var u in s)s.hasOwnProperty(u)&&s[u]!==void 0&&(n=!0,r.push(u,s[u]))}return n?r.join(""):void 0}function _w(e,t){return t<=0?"":t===1?e:e+_w(e,t-1)}function Iv(e,t){if(!t)return"";var r=[];for(var n in t)t.hasOwnProperty(n)&&n!==bR&&t[n]!==void 0&&r.push(n,t[n]);for(var o=0;o<r.length;o+=2)mR(r,o),ER(r,o),CR(e,r,o),vR(r,o);for(var o=1;o<r.length;o+=4)r.splice(o,1,":",r[o],";");return r.join("")}function Cw(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ys(t),o=RR(e,n);if(o){var i=mn.getInstance(),a={className:i.classNameFromKey(o),key:o,args:t};if(!a.className){a.className=i.getClassName(IR(n));for(var s=[],u=0,l=n.__order;u<l.length;u++){var c=l[u];s.push(c,Iv(e,n[c]))}a.rulesToInsert=s}return a}}function Sw(e,t){t===void 0&&(t=1);var r=mn.getInstance(),n=e.className,o=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var u=a[s+1];if(u){var l=a[s];l=l.replace(/&/g,_w("."+e.className,t));var c=l+"{"+u+"}"+(l.indexOf("@")===0?"}":"");r.insertRule(c)}}r.cacheClassName(n,o,i,a)}}function PR(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Cw.apply(void 0,_.__spreadArray([e],t));return n?(Sw(n,e.specificityMultiplier),n.className):""}function So(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ww(e,hh())}function ww(e,t){var r=e instanceof Array?e:[e],n=gw(r),o=n.classes,i=n.objects;return i.length&&o.push(PR(t||{},i)),o.join(" ")}function li(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&e.length===1&&e[0]&&!e[0].subComponentStyles)return e[0];for(var r={},n={},o=0,i=e;o<i.length;o++){var a=i[o];if(a){for(var s in a)if(a.hasOwnProperty(s)){if(s==="subComponentStyles"&&a.subComponentStyles!==void 0){var u=a.subComponentStyles;for(var l in u)u.hasOwnProperty(l)&&(n.hasOwnProperty(l)?n[l].push(u[l]):n[l]=[u[l]]);continue}var c=r[s],d=a[s];c===void 0?r[s]=d:r[s]=_.__spreadArray(_.__spreadArray([],Array.isArray(c)?c:[c]),Array.isArray(d)?d:[d])}}}if(Object.keys(n).length>0){r.subComponentStyles={};var f=r.subComponentStyles,h=function(m){if(n.hasOwnProperty(m)){var y=n[m];f[m]=function(E){return li.apply(void 0,y.map(function(v){return typeof v=="function"?v(E):v}))}}};for(var l in n)h(l)}return r}function Ja(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return kv(e,hh())}function kv(e,t){var r={subComponentStyles:{}},n=e[0];if(!n&&e.length<=1)return{subComponentStyles:{}};var o=li.apply(void 0,e),i=[];for(var a in o)if(o.hasOwnProperty(a)){if(a==="subComponentStyles"){r.subComponentStyles=o.subComponentStyles||{};continue}var s=o[a],u=gw(s),l=u.classes,c=u.objects;if(c!=null&&c.length){var d=Cw(t||{},{displayName:a},c);d&&(i.push(d),r[a]=l.concat([d.className]).join(" "))}else r[a]=l.join(" ")}for(var f=0,h=i;f<h.length;f++){var d=h[f];d&&Sw(d,t==null?void 0:t.specificityMultiplier)}return r}function Tw(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=[],o=0,i=t;o<i.length;o++){var a=i[o];a&&n.push(typeof a=="function"?a(e):a)}return n.length===1?n[0]:n.length?li.apply(void 0,n):{}}function Av(e){var t=mn.getInstance(),r=Iv(hh(),e),n=t.classNameFromKey(r);if(!n){var o=t.getClassName();t.insertRule("@font-face{"+r+"}",!0),t.cacheClassName(o,r,[],["font-face",r])}}function Dr(e){var t=mn.getInstance(),r=[];for(var n in e)e.hasOwnProperty(n)&&r.push(n,"{",Iv(hh(),e[n]),"}");var o=r.join(""),i=t.classNameFromKey(o);if(i)return i;var a=t.getClassName();return t.insertRule("@keyframes "+a+"{"+o+"}",!0),t.cacheClassName(a,o,[],["keyframes",o]),a}function MR(e){var t={},r=function(o){if(e.hasOwnProperty(o)){var i;Object.defineProperty(t,o,{get:function(){return i===void 0&&(i=So(e[o]).toString()),i},enumerable:!0,configurable:!0})}};for(var n in e)r(n);return t}function Rv(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}var qm=void 0;try{qm=window}catch{}function mt(e){if(!(!Rv()||typeof qm>"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:qm}}var _u=function(){function e(t,r){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=r,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,r){var n=this,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout(function(){try{n._timeoutIds&&delete n._timeoutIds[o],t.apply(n._parent)}catch(i){n._logError(i)}},r),this._timeoutIds[o]=!0),o},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,r){var n=this,o=0,i=mt(r);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var a=function(){try{n._immediateIds&&delete n._immediateIds[o],t.apply(n._parent)}catch(s){n._logError(s)}};o=i.setTimeout(a,0),this._immediateIds[o]=!0}return o},e.prototype.clearImmediate=function(t,r){var n=mt(r);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,r){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval(function(){try{t.apply(n._parent)}catch(i){n._logError(i)}},r),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,r,n){var o=this;if(this._isDisposed)return this._noop;var i=r||0,a=!0,s=!0,u=0,l,c,d=null;n&&typeof n.leading=="boolean"&&(a=n.leading),n&&typeof n.trailing=="boolean"&&(s=n.trailing);var f=function(m){var y=Date.now(),E=y-u,v=a?i-E:i;return E>=i&&(!m||a)?(u=y,d&&(o.clearTimeout(d),d=null),l=t.apply(o._parent,c)):d===null&&s&&(d=o.setTimeout(f,v)),l},h=function(){for(var m=[],y=0;y<arguments.length;y++)m[y]=arguments[y];return c=m,f(!0)};return h},e.prototype.debounce=function(t,r,n){var o=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var a=r||0,s=!1,u=!0,l=null,c=0,d=Date.now(),f,h,m=null;n&&typeof n.leading=="boolean"&&(s=n.leading),n&&typeof n.trailing=="boolean"&&(u=n.trailing),n&&typeof n.maxWait=="number"&&!isNaN(n.maxWait)&&(l=n.maxWait);var y=function(I){m&&(o.clearTimeout(m),m=null),d=I},E=function(I){y(I),f=t.apply(o._parent,h)},v=function(I){var b=Date.now(),k=!1;I&&(s&&b-c>=a&&(k=!0),c=b);var O=b-c,L=a-O,se=b-d,B=!1;return l!==null&&(se>=l&&m?B=!0:L=Math.min(L,l-se)),O>=a||B||k?E(b):(m===null||!I)&&u&&(m=o.setTimeout(v,L)),f},g=function(){return!!m},C=function(){g()&&y(Date.now())},S=function(){return g()&&E(Date.now()),f},w=function(){for(var I=[],b=0;b<arguments.length;b++)I[b]=arguments[b];return h=I,v(!0)};return w.cancel=C,w.flush=S,w.pending=g,w},e.prototype.requestAnimationFrame=function(t,r){var n=this,o=0,i=mt(r);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var a=function(){try{n._animationFrameIds&&delete n._animationFrameIds[o],t.apply(n._parent)}catch(s){n._logError(s)}};o=i.requestAnimationFrame?i.requestAnimationFrame(a):i.setTimeout(a,0),this._animationFrameIds[o]=!0}return o},e.prototype.cancelAnimationFrame=function(t,r){var n=mt(r);this._animationFrameIds&&this._animationFrameIds[t]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(t):n.clearTimeout(t),delete this._animationFrameIds[t])},e.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},e}();function Pv(e,t){if(!e||!t)return!e&&!t;for(var r in e)if(e.hasOwnProperty(r)&&(!t.hasOwnProperty(r)||t[r]!==e[r]))return!1;for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function Pi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return FR.apply(this,[null,e].concat(t))}function FR(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];t=t||{};for(var o=0,i=r;o<i.length;o++){var a=i[o];if(a)for(var s in a)a.hasOwnProperty(s)&&(!e||e(s))&&(t[s]=a[s])}return t}function NR(e,t){var r={};for(var n in e)t.indexOf(n)===-1&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}var Wo=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,r,n,o){var i;if(e._isElement(t)){if(typeof document<"u"&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(r,o||!1,!0),Pi(a,n),i=t.dispatchEvent(a)}else if(typeof document<"u"&&document.createEventObject){var s=document.createEventObject(n);t.fireEvent("on"+r,s)}}else for(;t&&i!==!1;){var u=t.__events__,l=u?u[r]:null;if(l){for(var c in l)if(l.hasOwnProperty(c))for(var d=l[c],f=0;i!==!1&&f<d.length;f++){var h=d[f];h.objectCallback&&(i=h.objectCallback.call(h.parent,n))}}t=o?t.parent:null}return i},e.isObserved=function(t,r){var n=t&&t.__events__;return!!n&&!!n[r]},e.isDeclared=function(t,r){var n=t&&t.__declaredEvents;return!!n&&!!n[r]},e.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},e._isElement=function(t){return!!t&&(!!t.addEventListener||typeof HTMLElement<"u"&&t instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(t,r,n){for(var o in r)r.hasOwnProperty(o)&&this.on(t,o,r[o],n)},e.prototype.on=function(t,r,n,o){var i=this;if(r.indexOf(",")>-1)for(var a=r.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],n,o);else{var u=this._parent,l={target:t,eventName:r,parent:u,callback:n,options:o},a=t.__events__=t.__events__||{};if(a[r]=a[r]||{count:0},a[r][this._id]=a[r][this._id]||[],a[r][this._id].push(l),a[r].count++,e._isElement(t)){var c=function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];if(!i._isDisposed){var y;try{if(y=n.apply(u,h),y===!1&&h[0]){var E=h[0];E.preventDefault&&E.preventDefault(),E.stopPropagation&&E.stopPropagation(),E.cancelBubble=!0}}catch{}return y}};l.elementCallback=c,t.addEventListener?t.addEventListener(r,c,o):t.attachEvent&&t.attachEvent("on"+r,c)}else{var d=function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];if(!i._isDisposed)return n.apply(u,h)};l.objectCallback=d}this._eventRecords.push(l)}},e.prototype.off=function(t,r,n,o){for(var i=0;i<this._eventRecords.length;i++){var a=this._eventRecords[i];if((!t||t===a.target)&&(!r||r===a.eventName)&&(!n||n===a.callback)&&(typeof o!="boolean"||o===a.options)){var s=a.target.__events__,u=s[a.eventName],l=u?u[this._id]:null;l&&(l.length===1||!n?(u.count-=l.length,delete s[a.eventName][this._id]):(u.count--,l.splice(l.indexOf(a),1)),u.count||delete s[a.eventName]),a.elementCallback&&(a.target.removeEventListener?a.target.removeEventListener(a.eventName,a.elementCallback,a.options):a.target.detachEvent&&a.target.detachEvent("on"+a.eventName,a.elementCallback)),this._eventRecords.splice(i--,1)}}},e.prototype.raise=function(t,r,n){return e.raise(this._parent,t,r,n)},e.prototype.declare=function(t){var r=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if(typeof t=="string")r[t]=!0;else for(var n=0;n<t.length;n++)r[t[n]]=!0},e._uniqueId=0,e}();function gn(e){if(!(!Rv()||typeof document>"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var ap;So({overflow:"hidden !important"});var VE="data-is-scrollable";function xR(){if(ap===void 0){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),ap=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ap}function DR(e){for(var t=e,r=gn(e);t&&t!==r.body;){if(t.getAttribute(VE)==="true")return t;t=t.parentElement}for(t=e;t&&t!==r.body;){if(t.getAttribute(VE)!=="false"){var n=getComputedStyle(t),o=n?n.getPropertyValue("overflow-y"):"";if(o&&(o==="scroll"||o==="auto"))return t}t=t.parentElement}return(!t||t===r.body)&&(t=mt(e)),t}var OR=void 0;function Mv(e){console&&console.warn&&console.warn(e)}function bw(e,t,r,n,o){if(o===!0&&!1)for(var i,a;i<a.length;i++)var s}(function(e){_.__extends(t,e);function t(r,n){var o=e.call(this,r,n)||this;return LR(o,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}return t.prototype.componentDidUpdate=function(r,n){this._updateComponentRef(r,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var r=0,n=this._disposables.length;r<n;r++){var o=this.__disposables[r];o.dispose&&o.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var r=/function (.{1,})\(/,n=r.exec(this.constructor.toString());this.__className=n&&n.length>1?n[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new _u(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new Wo(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(r){var n=this;return this.__resolves||(this.__resolves={}),this.__resolves[r]||(this.__resolves[r]=function(o){return n[r]=o}),this.__resolves[r]},t.prototype._updateComponentRef=function(r,n){n===void 0&&(n={}),r&&n&&r.componentRef!==n.componentRef&&(this._setComponentRef(r.componentRef,null),this._setComponentRef(n.componentRef,this))},t.prototype._warnDeprecations=function(r){this.className,this.props},t.prototype._warnMutuallyExclusive=function(r){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(r,n,o){bw(this.className,this.props,r,n,o)},t.prototype._setComponentRef=function(r,n){!this._skipComponentRefResolution&&r&&(typeof r=="function"&&r(n),typeof r=="object"&&(r.current=n))},t})(p.Component);function LR(e,t,r){for(var n=0,o=r.length;n<o;n++)BR(e,t,r[n])}function BR(e,t,r){var n=e[r],o=t[r];(n||o)&&(e[r]=function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s;return o&&(s=o.apply(this,i)),n!==o&&(s=n.apply(this,i)),s})}function wc(){return null}var UR=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.state={isRendered:mt()===void 0},n}return t.prototype.componentDidMount=function(){var r=this,n=this.props.delay;this._timeoutId=window.setTimeout(function(){r.setState({isRendered:!0})},n)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?p.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(p.Component),sp="__globalSettings__",Fv="__callbacks__",HR=0,Iw=function(){function e(){}return e.getValue=function(t,r){var n=Vm();return n[t]===void 0&&(n[t]=typeof r=="function"?r():r),n[t]},e.setValue=function(t,r){var n=Vm(),o=n[Fv],i=n[t];if(r!==i){n[t]=r;var a={oldValue:i,value:r,key:t};for(var s in o)o.hasOwnProperty(s)&&o[s](a)}return r},e.addChangeListener=function(t){var r=t.__id__,n=WE();r||(r=t.__id__=String(HR++)),n[r]=t},e.removeChangeListener=function(t){var r=WE();delete r[t.__id__]},e}();function Vm(){var e,t=mt(),r=t||{};return r[sp]||(r[sp]=(e={},e[Fv]={},e)),r[sp]}function WE(){var e=Vm();return e[Fv]}var ve={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222},Ao=function(){function e(t,r,n,o){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),o===void 0&&(o=0),this.top=n,this.bottom=o,this.left=t,this.right=r}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},e}();function zR(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.length<2?t[0]:function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t.forEach(function(i){return i&&i.apply(e,n)})}}function Tc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.filter(function(n){return n}).join(" ").trim();return r===""?void 0:r}function KR(e,t,r){var n=e.slice();return n.splice(t,0,r),n}function GR(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function kw(e){var t=null;try{var r=mt();t=r?r.sessionStorage.getItem(e):null}catch{}return t}function qR(e,t){var r;try{(r=mt())===null||r===void 0||r.sessionStorage.setItem(e,t)}catch{}}var Aw="isRTL",zo;function Rt(e){if(e===void 0&&(e={}),e.rtl!==void 0)return e.rtl;if(zo===void 0){var t=kw(Aw);t!==null&&(zo=t==="1",VR(zo));var r=gn();zo===void 0&&r&&(zo=(r.body&&r.body.getAttribute("dir")||r.documentElement.getAttribute("dir"))==="rtl",vw(zo))}return!!zo}function VR(e,t){t===void 0&&(t=!1);var r=gn();r&&r.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&qR(Aw,e?"1":"0"),zo=e,vw(zo)}function jE(e,t){return t===void 0&&(t={}),Rt(t)&&(e===ve.left?e=ve.right:e===ve.right&&(e=ve.left)),e}function WR(e){return e&&!!e._virtual}function jR(e){var t;return e&&WR(e)&&(t=e._virtual.parent),t}function mo(e,t){return t===void 0&&(t=!0),e&&(t&&jR(e)||e.parentNode&&e.parentNode)}function jo(e,t,r){r===void 0&&(r=!0);var n=!1;if(e&&t)if(r)if(e===t)n=!0;else for(n=!1;t;){var o=mo(t);if(o===e){n=!0;break}t=o}else e.contains&&(n=e.contains(t));return n}function Nv(e,t){return!e||e===document.body?null:t(e)?e:Nv(mo(e),t)}function $R(e,t){var r=Nv(e,function(n){return n.hasAttribute(t)});return r&&r.getAttribute(t)}var Wm="data-portal-element";function QR(e){e.setAttribute(Wm,"true")}function xv(e,t){var r=Nv(e,function(n){return t===n||n.hasAttribute(Wm)});return r!==null&&r.hasAttribute(Wm)}function YR(e,t){var r=e,n=t;r._virtual||(r._virtual={children:[]});var o=r._virtual.parent;if(o&&o!==t){var i=o._virtual.children.indexOf(r);i>-1&&o._virtual.children.splice(i,1)}r._virtual.parent=n||void 0,n&&(n._virtual||(n._virtual={children:[]}),n._virtual.children.push(r))}var XR="data-is-focusable",JR="data-is-visible",ZR="data-focuszone-id",eP="data-is-sub-focuszone";function tP(e,t,r){return tn(e,t,!0,!1,!1,r)}function rP(e,t,r){return on(e,t,!0,!1,!0,r)}function Rw(e,t){var r=tn(e,e,!0,!1,!1,!0,void 0,void 0,t);return r?(oP(r),!0):!1}function on(e,t,r,n,o,i,a,s){if(!t||!a&&t===e)return null;var u=ph(t);if(o&&u&&(i||!(Ko(t)||Dv(t)))){var l=on(e,t.lastElementChild,!0,!0,!0,i,a,s);if(l){if(s&&yo(l,!0)||!s)return l;var c=on(e,l.previousElementSibling,!0,!0,!0,i,a,s);if(c)return c;for(var d=l.parentElement;d&&d!==t;){var f=on(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(f)return f;d=d.parentElement}}}if(r&&u&&yo(t,s))return t;var h=on(e,t.previousElementSibling,!0,!0,!0,i,a,s);return h||(n?null:on(e,t.parentElement,!0,!1,!1,i,a,s))}function tn(e,t,r,n,o,i,a,s,u){if(!t||t===e&&o&&!a)return null;var l=u?Pw:ph,c=l(t);if(r&&c&&yo(t,s))return t;if(!o&&c&&(i||!(Ko(t)||Dv(t)))){var d=tn(e,t.firstElementChild,!0,!0,!1,i,a,s,u);if(d)return d}if(t===e)return null;var f=tn(e,t.nextElementSibling,!0,!0,!1,i,a,s,u);return f||(n?null:tn(e,t.parentElement,!1,!1,!0,i,a,s,u))}function ph(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(JR);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function Pw(e){return!!e&&ph(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function yo(e,t){if(!e||e.disabled)return!1;var r=0,n=null;e&&e.getAttribute&&(n=e.getAttribute("tabIndex"),n&&(r=parseInt(n,10)));var o=e.getAttribute?e.getAttribute(XR):null,i=n!==null&&r>=0,a=!!e&&o!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||o==="true"||i);return t?r!==-1&&a:a}function Ko(e){return!!(e&&e.getAttribute&&e.getAttribute(ZR))}function Dv(e){return!!(e&&e.getAttribute&&e.getAttribute(eP)==="true")}function nP(e){var t=gn(e),r=t&&t.activeElement;return!!(r&&jo(e,r))}function Mw(e,t){return $R(e,t)!=="true"}var ls=void 0;function oP(e){if(e){if(ls){ls=e;return}ls=e;var t=mt(e);t&&t.requestAnimationFrame(function(){ls&&ls.focus(),ls=void 0})}}function iP(e,t){for(var r=e,n=0,o=t;n<o.length;n++){var i=o[n],a=r.children[Math.min(i,r.children.length-1)];if(!a)break;r=a}return r=yo(r)&&ph(r)?r:tn(e,r,!0)||on(e,r),r}function aP(e,t){for(var r=[];t&&e&&t!==e;){var n=mo(t,!0);if(n===null)return[];r.unshift(Array.prototype.indexOf.call(n.children,t)),t=n}return r}function wo(e,t,r,n){return e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r,n)}}var sP=50,uP=5,Id=0,up=mn.getInstance();up&&up.onReset&&up.onReset(function(){return Id++});var Xc="__retval__";function Wt(e){e===void 0&&(e={});var t=new Map,r=0,n=0,o=Id,i=function(a,s){var u;if(s===void 0&&(s={}),e.useStaticStyles&&typeof a=="function"&&a.__noStyleOverride__)return a(s);n++;var l=t,c=s.theme,d=c&&c.rtl!==void 0?c.rtl:Rt(),f=e.disableCaching;if(o!==Id&&(o=Id,t=new Map,r=0),e.disableCaching||(l=$E(t,a),l=$E(l,s)),(f||!l[Xc])&&(a===void 0?l[Xc]={}:l[Xc]=kv([typeof a=="function"?a(s):a],{rtl:!!d,specificityMultiplier:e.useStaticStyles?uP:void 0}),f||r++),r>(e.cacheSize||sP)){var h=mt();!((u=h==null?void 0:h.FabricConfig)===null||u===void 0)&&u.enableClassNameCacheFullWarning&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+r+"/"+n+"."),console.trace()),t.clear(),r=0,e.disableCaching=!0}return l[Xc]};return i}function lp(e,t){return t=lP(t),e.has(t)||e.set(t,new Map),e.get(t)}function $E(e,t){if(typeof t=="function"){var r=t.__cachedInputs__;if(r)for(var n=0,o=t.__cachedInputs__;n<o.length;n++){var i=o[n];e=lp(e,i)}else e=lp(e,t)}else if(typeof t=="object")for(var a in t)t.hasOwnProperty(a)&&(e=lp(e,t[a]));return e}function lP(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}var QE=!1,kd=0,cP={empty:!0},cp={},jl=typeof WeakMap>"u"?null:WeakMap;function dP(){kd++}function gt(e,t,r){if(t===void 0&&(t=100),r===void 0&&(r=!1),!jl)return e;if(!QE){var n=mn.getInstance();n&&n.onReset&&mn.getInstance().onReset(dP),QE=!0}var o,i=0,a=kd;return function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];var c=o;(o===void 0||a!==kd||t>0&&i>t)&&(o=YE(),i=0,a=kd),c=o;for(var d=0;d<u.length;d++){var f=fP(u[d]);c.map.has(f)||c.map.set(f,YE()),c=c.map.get(f)}return c.hasOwnProperty("value")||(c.value=e.apply(void 0,u),i++),r&&(c.value===null||c.value===void 0)&&(c.value=e.apply(void 0,u)),c.value}}function su(e){if(!jl)return e;var t=new jl;function r(n){if(!n||typeof n!="function"&&typeof n!="object")return e(n);if(t.has(n))return t.get(n);var o=e(n);return t.set(n,o),o}return r}function fP(e){if(e){if(typeof e=="object"||typeof e=="function")return e;cp[e]||(cp[e]={val:e})}else return cP;return cp[e]}function YE(){return{map:jl?new jl:null}}function hP(e){var t=e,r=su(function(n){if(e===n)throw new Error("Attempted to compose a component with itself.");var o=n,i=su(function(s){var u=function(l){return p.createElement(o,_.__assign({},l,{defaultRender:s}))};return u}),a=function(s){var u=s.defaultRender;return p.createElement(t,_.__assign({},s,{defaultRender:u?i(u):o}))};return a});return r}var pP=su(hP);function Ad(e,t){return pP(e)(t)}function mP(e,t){return e[t]!==void 0&&e[t]!==null}function Pt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=0,o=e;n<o.length;n++){var i=o[n];if(i)if(typeof i=="string")r.push(i);else if(i.hasOwnProperty("toString")&&typeof i.toString=="function")r.push(i.toString());else for(var a in i)i[a]&&r.push(a)}return r.join(" ")}var gP="customizations",vP={settings:{},scopedSettings:{},inCustomizerContext:!1},yi=Iw.getValue(gP,{settings:{},scopedSettings:{},inCustomizerContext:!1}),Jc=[],Dn=function(){function e(){}return e.reset=function(){yi.settings={},yi.scopedSettings={}},e.applySettings=function(t){yi.settings=_.__assign(_.__assign({},yi.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,r){yi.scopedSettings[t]=_.__assign(_.__assign({},yi.scopedSettings[t]),r),e._raiseChange()},e.getSettings=function(t,r,n){n===void 0&&(n=vP);for(var o={},i=r&&n.scopedSettings[r]||{},a=r&&yi.scopedSettings[r]||{},s=0,u=t;s<u.length;s++){var l=u[s];o[l]=i[l]||n.settings[l]||a[l]||yi.settings[l]}return o},e.applyBatchedUpdates=function(t,r){e._suppressUpdates=!0;try{t()}catch{}e._suppressUpdates=!1,r||e._raiseChange()},e.observe=function(t){Jc.push(t)},e.unobserve=function(t){Jc=Jc.filter(function(r){return r!==t})},e._raiseChange=function(){e._suppressUpdates||Jc.forEach(function(t){return t()})},e}(),uu=p.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function yP(e,t){e===void 0&&(e={});var r=Fw(t)?t:_P(t);return r(e)}function EP(e,t){e===void 0&&(e={});var r=Fw(t)?t:CP(t);return r(e)}function Fw(e){return typeof e=="function"}function _P(e){return function(t){return e?_.__assign(_.__assign({},t),e):t}}function CP(e){return e===void 0&&(e={}),function(t){var r=_.__assign({},t);for(var n in e)e.hasOwnProperty(n)&&(r[n]=_.__assign(_.__assign({},t[n]),e[n]));return r}}function SP(e,t){var r=(t||{}).customizations,n=r===void 0?{settings:{},scopedSettings:{}}:r;return{customizations:{settings:yP(n.settings,e.settings),scopedSettings:EP(n.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}var wP=function(e){_.__extends(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._onCustomizationChange=function(){return r.forceUpdate()},r}return t.prototype.componentDidMount=function(){Dn.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){Dn.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var r=this,n=this.props.contextTransform;return p.createElement(uu.Consumer,null,function(o){var i=SP(r.props,o);return n&&(i=n(i)),p.createElement(uu.Provider,{value:i},r.props.children)})},t}(p.Component);function TP(e,t){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function Ov(e,t,r){return function(o){var i,a=(i=function(s){_.__extends(u,s);function u(l){var c=s.call(this,l)||this;return c._styleCache={},c._onSettingChanged=c._onSettingChanged.bind(c),c}return u.prototype.componentDidMount=function(){Dn.observe(this._onSettingChanged)},u.prototype.componentWillUnmount=function(){Dn.unobserve(this._onSettingChanged)},u.prototype.render=function(){var l=this;return p.createElement(uu.Consumer,null,function(c){var d=Dn.getSettings(t,e,c.customizations),f=l.props;if(d.styles&&typeof d.styles=="function"&&(d.styles=d.styles(_.__assign(_.__assign({},d),f))),r&&d.styles){if(l._styleCache.default!==d.styles||l._styleCache.component!==f.styles){var h=li(d.styles,f.styles);l._styleCache.default=d.styles,l._styleCache.component=f.styles,l._styleCache.merged=h}return p.createElement(o,_.__assign({},d,f,{styles:l._styleCache.merged}))}return p.createElement(o,_.__assign({},d,f))})},u.prototype._onSettingChanged=function(){this.forceUpdate()},u}(p.Component),i.displayName="Customized"+e,i);return TP(o,a)}}function Nw(e,t){var r=bP(),n=p.useContext(uu).customizations,o=n.inCustomizerContext;return p.useEffect(function(){return o||Dn.observe(r),function(){o||Dn.unobserve(r)}},[o]),Dn.getSettings(e,t,n)}function bP(){var e=p.useState(0),t=e[1];return function(){return t(function(r){return++r})}}function IP(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=zR(e,e[r],t[r]))}var hf="__currentId__",kP="id__",pf=mt()||{};pf[hf]===void 0&&(pf[hf]=0);var XE=!1;function Zt(e){if(!XE){var t=mn.getInstance();t&&t.onReset&&t.onReset(AP),XE=!0}var r=pf[hf]++;return(e===void 0?kP:e)+r}function AP(e){e===void 0&&(e=0),pf[hf]=e}var Mt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r={},n=0,o=e;n<o.length;n++)for(var i=o[n],a=Array.isArray(i)?i:Object.keys(i),s=0,u=a;s<u.length;s++){var l=u[s];r[l]=1}return r},RP=Mt(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),PP=Mt(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),vt=Mt(PP,RP),MP=Mt(vt,["form"]),xw=Mt(vt,["height","loop","muted","preload","src","width"]),FP=Mt(xw,["poster"]),NP=Mt(vt,["start"]),xP=Mt(vt,["value"]),Lv=Mt(vt,["download","href","hrefLang","media","rel","target","type"]),Ji=Mt(vt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),Dw=Mt(Ji,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),Ow=Mt(Ji,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),DP=Mt(Ji,["form","multiple","required"]),OP=Mt(vt,["selected","value"]),LP=Mt(vt,["cellPadding","cellSpacing"]),BP=vt,UP=Mt(vt,["rowSpan","scope"]),HP=Mt(vt,["colSpan","headers","rowSpan","scope"]),zP=Mt(vt,["span"]),KP=Mt(vt,["span"]),GP=Mt(vt,["acceptCharset","action","encType","encType","method","noValidate","target"]),qP=Mt(vt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Lw=Mt(vt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Wr=vt;function Ve(e,t,r){for(var n=Array.isArray(t),o={},i=Object.keys(e),a=0,s=i;a<s.length;a++){var u=s[a],l=!n&&t[u]||n&&t.indexOf(u)>=0||u.indexOf("data-")===0||u.indexOf("aria-")===0;l&&(!r||(r==null?void 0:r.indexOf(u))===-1)&&(o[u]=e[u])}return o}var VP={label:MP,audio:xw,video:FP,ol:NP,li:xP,a:Lv,button:Ji,input:Dw,textarea:Ow,select:DP,option:OP,table:LP,tr:BP,th:UP,td:HP,colGroup:zP,col:KP,form:GP,iframe:qP,img:Lw};function WP(e,t,r){var n=e&&VP[e]||vt;return Ve(t,n,r)}function Za(e){IP(e,{componentDidMount:jP,componentDidUpdate:$P,componentWillUnmount:QP})}function jP(){mf(this.props.componentRef,this)}function $P(e){e.componentRef!==this.props.componentRef&&(mf(e.componentRef,null),mf(this.props.componentRef,this))}function QP(){mf(this.props.componentRef,null)}function mf(e,t){e&&(typeof e=="object"?e.current=t:typeof e=="function"&&e(t))}var Gn,YP=(Gn={},Gn[ve.up]=1,Gn[ve.down]=1,Gn[ve.left]=1,Gn[ve.right]=1,Gn[ve.home]=1,Gn[ve.end]=1,Gn[ve.tab]=1,Gn[ve.pageUp]=1,Gn[ve.pageDown]=1,Gn);function Bw(e){return!!YP[e]}var kr="ms-Fabric--isFocusVisible",JE="ms-Fabric--isFocusHidden";function ZE(e,t){e&&(e.classList.add(t?kr:JE),e.classList.remove(t?JE:kr))}function Na(e,t,r){var n;r?r.forEach(function(o){return ZE(o.current,e)}):ZE((n=mt(t))===null||n===void 0?void 0:n.document.body,e)}var e_=new WeakMap,t_=new WeakMap;function r_(e,t){var r,n=e_.get(e);return n?r=n+t:r=1,e_.set(e,r),r}function XP(e){var t=t_.get(e);if(t)return t;var r=function(a){return Uw(a,e.registeredProviders)},n=function(a){return Hw(a,e.registeredProviders)},o=function(a){return zw(a,e.registeredProviders)},i=function(a){return Kw(a,e.registeredProviders)};return t={onMouseDown:r,onPointerDown:n,onKeyDown:o,onKeyUp:i},t_.set(e,t),t}var gf=p.createContext(void 0);function JP(e){var t=p.useContext(gf);p.useEffect(function(){var r,n,o=mt(e==null?void 0:e.current);if(!(!o||((r=o.FabricConfig)===null||r===void 0?void 0:r.disableFocusRects)===!0)){var i=o,a,s,u,l;if(!((n=t==null?void 0:t.providerRef)===null||n===void 0)&&n.current){i=t.providerRef.current;var c=XP(t);a=c.onMouseDown,s=c.onPointerDown,u=c.onKeyDown,l=c.onKeyUp}else a=Uw,s=Hw,u=zw,l=Kw;var d=r_(i,1);return d<=1&&(i.addEventListener("mousedown",a,!0),i.addEventListener("pointerdown",s,!0),i.addEventListener("keydown",u,!0),i.addEventListener("keyup",l,!0)),function(){var f;!o||((f=o.FabricConfig)===null||f===void 0?void 0:f.disableFocusRects)===!0||(d=r_(i,-1),d===0&&(i.removeEventListener("mousedown",a,!0),i.removeEventListener("pointerdown",s,!0),i.removeEventListener("keydown",u,!0),i.removeEventListener("keyup",l,!0)))}}},[t,e])}var Bv=function(e){return JP(e.rootRef),null};function Uw(e,t){Na(!1,e.target,t)}function Hw(e,t){e.pointerType!=="mouse"&&Na(!1,e.target,t)}function zw(e,t){Bw(e.which)&&Na(!0,e.target,t)}function Kw(e,t){Bw(e.which)&&Na(!0,e.target,t)}var Uv=function(e){var t=e.providerRef,r=e.layerRoot,n=p.useState([])[0],o=p.useContext(gf),i=o!==void 0&&!r,a=p.useMemo(function(){return i?void 0:{providerRef:t,registeredProviders:n,registerProvider:function(s){n.push(s),o==null||o.registerProvider(s)},unregisterProvider:function(s){o==null||o.unregisterProvider(s);var u=n.indexOf(s);u>=0&&n.splice(u,1)}}},[t,n,o,i]);return p.useEffect(function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}},[a]),a?p.createElement(gf.Provider,{value:a},e.children):p.createElement(p.Fragment,null,e.children)},ZP=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,eM=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,tM=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,rM=/\s+/g,nM=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function oM(e,t){var r="",n=e.split(" ");return n.length===2?(r+=n[0].charAt(0).toUpperCase(),r+=n[1].charAt(0).toUpperCase()):n.length===3?(r+=n[0].charAt(0).toUpperCase(),r+=n[2].charAt(0).toUpperCase()):n.length!==0&&(r+=n[0].charAt(0).toUpperCase()),t&&r.length>1?r.charAt(1)+r.charAt(0):r}function iM(e){return e=e.replace(ZP,""),e=e.replace(eM,""),e=e.replace(rM," "),e=e.trim(),e}function aM(e,t,r){return!e||(e=iM(e),nM.test(e)||!r&&tM.test(e))?"":oM(e,t)}function sM(e){var t=null;try{var r=mt();t=r?r.localStorage.getItem(e):null}catch{}return t}var ha,n_="language";function uM(e){if(e===void 0&&(e="sessionStorage"),ha===void 0){var t=gn(),r=e==="localStorage"?sM(n_):e==="sessionStorage"?kw(n_):void 0;r&&(ha=r),ha===void 0&&t&&(ha=t.documentElement.getAttribute("lang")),ha===void 0&&(ha="en")}return ha}function o_(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++){var i=o[n];Gw(e||{},i)}return e}function Gw(e,t,r){r===void 0&&(r=[]),r.push(t);for(var n in t)if(t.hasOwnProperty(n)&&n!=="__proto__"&&n!=="constructor"&&n!=="prototype"){var o=t[n];if(typeof o=="object"&&o!==null&&!Array.isArray(o)){var i=r.indexOf(o)>-1;e[n]=i?o:Gw(e[n]||{},o,r)}else e[n]=o}return r.pop(),e}var i_=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},lM=["TEMPLATE","STYLE","SCRIPT"];function cM(e){var t=gn(e);if(!t)return function(){};for(var r=[];e!==t.body&&e.parentElement;){for(var n=0,o=e.parentElement.children;n<o.length;n++){var i=o[n],a=i.getAttribute("aria-hidden");i!==e&&(a==null?void 0:a.toLowerCase())!=="true"&&lM.indexOf(i.tagName)===-1&&r.push([i,a])}e=e.parentElement}return r.forEach(function(s){var u=s[0];u.setAttribute("aria-hidden","true")}),function(){dM(r),r=[]}}function dM(e){e.forEach(function(t){var r=t[0],n=t[1];n?r.setAttribute("aria-hidden",n):r.removeAttribute("aria-hidden")})}var dp;function a_(e){var t;if(typeof dp>"u"||e){var r=mt(),n=(t=r==null?void 0:r.navigator)===null||t===void 0?void 0:t.userAgent;dp=!!n&&n.indexOf("Macintosh")!==-1}return!!dp}function fM(e){return e.clientWidth<e.scrollWidth}function hM(e){return e.clientHeight<e.scrollHeight}function pM(e){return fM(e)||hM(e)}function mM(e){var t=su(function(r){var n=su(function(o){return function(i){return r(i,o)}});return function(o,i){return e(o,i?n(i):r)}});return t}var gM=su(mM);function vM(e,t){return gM(e)(t)}var yM=["theme","styles"];function jt(e,t,r,n,o){n=n||{scope:"",fields:void 0};var i=n.scope,a=n.fields,s=a===void 0?yM:a,u=p.forwardRef(function(c,d){var f=p.useRef(),h=Nw(s,i),m=h.styles;h.dir;var y=_.__rest(h,["styles","dir"]),E=r?r(c):void 0,v=f.current&&f.current.__cachedInputs__||[],g=c.styles;if(!f.current||m!==v[1]||g!==v[2]){var C=function(S){return Tw(S,t,m,g)};C.__cachedInputs__=[t,m,g],C.__noStyleOverride__=!m&&!g,f.current=C}return p.createElement(e,_.__assign({ref:d},y,E,c,{styles:f.current}))});u.displayName="Styled"+(e.displayName||e.name);var l=o?p.memo(u):u;return u.displayName&&(l.displayName=u.displayName),l}var EM=function(){var e,t=mt();return!((e=t==null?void 0:t.navigator)===null||e===void 0)&&e.userAgent?t.navigator.userAgent.indexOf("rv:11.0")>-1:!1};function Cu(e,t){for(var r=_.__assign({},t),n=0,o=Object.keys(e);n<o.length;n++){var i=o[n];r[i]===void 0&&(r[i]=e[i])}return r}var _M=function(e){return function(t){for(var r=0,n=e.refs;r<n.length;r++){var o=n[r];typeof o=="function"?o(t):o&&(o.current=t)}}},qw=function(e){var t={refs:[]};return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(!t.resolver||!GR(t.refs,r))&&(t.resolver=_M(t)),t.refs=r,t.resolver}},$l=Rv()?p.useLayoutEffect:p.useEffect,CM="icons",un=Iw.getValue(CM,{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),fp=mn.getInstance();fp&&fp.onReset&&fp.onReset(function(){for(var e in un)un.hasOwnProperty(e)&&un[e].subset&&(un[e].subset.className=void 0)});var vf=function(e){return e.toLowerCase()};function $t(e,t){var r=_.__assign(_.__assign({},e),{isRegistered:!1,className:void 0}),n=e.icons;t=t?_.__assign(_.__assign({},un.__options),t):un.__options;for(var o in n)if(n.hasOwnProperty(o)){var i=n[o],a=vf(o);un[a]?wM(o):un[a]={code:i,subset:r}}}function pa(e,t){un.__remapped[vf(e)]=vf(t)}function SM(e){var t=void 0,r=un.__options;if(e=e?vf(e):"",e=un.__remapped[e]||e,e)if(t=un[e],t){var n=t.subset;n&&n.fontFace&&(n.isRegistered||(Av(n.fontFace),n.isRegistered=!0),n.className||(n.className=So(n.style,{fontFamily:n.fontFace.fontFamily,fontWeight:n.fontFace.fontWeight||"normal",fontStyle:n.fontFace.fontStyle||"normal"})))}else!r.disableWarnings&&r.warnOnMissingIcons&&Mv('The icon "'+e+'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.');return t}var Bu=[],hp=void 0;function wM(e){var t=un.__options,r=2e3,n=10;t.disableWarnings||(Bu.push(e),hp===void 0&&(hp=setTimeout(function(){Mv(`Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: 
`+Bu.slice(0,n).join(", ")+(Bu.length>n?" (+ "+(Bu.length-n)+" more)":"")),hp=void 0,Bu=[]},r)))}function TM(e,t,r,n,o){o===void 0&&(o=!1);var i=_.__assign({primaryButtonBorder:"transparent",errorText:n?"#F1707B":"#a4262c",messageText:n?"#F3F2F1":"#323130",messageLink:n?"#6CB8F6":"#005A9E",messageLinkHovered:n?"#82C7FF":"#004578",infoIcon:n?"#C8C6C4":"#605e5c",errorIcon:n?"#F1707B":"#A80000",blockingIcon:n?"#442726":"#FDE7E9",warningIcon:n?"#C8C6C4":"#797775",severeWarningIcon:n?"#FCE100":"#D83B01",successIcon:n?"#92C353":"#107C10",infoBackground:n?"#323130":"#f3f2f1",errorBackground:n?"#442726":"#FDE7E9",blockingBackground:n?"#442726":"#FDE7E9",warningBackground:n?"#433519":"#FFF4CE",severeWarningBackground:n?"#4F2A0F":"#FED9CC",successBackground:n?"#393D1B":"#DFF6DD",warningHighlight:n?"#fff100":"#ffb900",successText:n?"#92c353":"#107C10"},r),a=Vw(e,t,i,n);return bM(a,o)}function Vw(e,t,r,n,o){var i={},a=e||{},s=a.white,u=a.black,l=a.themePrimary,c=a.themeDark,d=a.themeDarker,f=a.themeDarkAlt,h=a.themeLighter,m=a.neutralLight,y=a.neutralLighter,E=a.neutralDark,v=a.neutralQuaternary,g=a.neutralQuaternaryAlt,C=a.neutralPrimary,S=a.neutralSecondary,w=a.neutralSecondaryAlt,I=a.neutralTertiary,b=a.neutralTertiaryAlt,k=a.neutralLighterAlt,O=a.accent;return s&&(i.bodyBackground=s,i.bodyFrameBackground=s,i.accentButtonText=s,i.buttonBackground=s,i.primaryButtonText=s,i.primaryButtonTextHovered=s,i.primaryButtonTextPressed=s,i.inputBackground=s,i.inputForegroundChecked=s,i.listBackground=s,i.menuBackground=s,i.cardStandoutBackground=s),u&&(i.bodyTextChecked=u,i.buttonTextCheckedHovered=u),l&&(i.link=l,i.primaryButtonBackground=l,i.inputBackgroundChecked=l,i.inputIcon=l,i.inputFocusBorderAlt=l,i.menuIcon=l,i.menuHeader=l,i.accentButtonBackground=l),c&&(i.primaryButtonBackgroundPressed=c,i.inputBackgroundCheckedHovered=c,i.inputIconHovered=c),d&&(i.linkHovered=d),f&&(i.primaryButtonBackgroundHovered=f),h&&(i.inputPlaceholderBackgroundChecked=h),m&&(i.bodyBackgroundChecked=m,i.bodyFrameDivider=m,i.bodyDivider=m,i.variantBorder=m,i.buttonBackgroundCheckedHovered=m,i.buttonBackgroundPressed=m,i.listItemBackgroundChecked=m,i.listHeaderBackgroundPressed=m,i.menuItemBackgroundPressed=m,i.menuItemBackgroundChecked=m),y&&(i.bodyBackgroundHovered=y,i.buttonBackgroundHovered=y,i.buttonBackgroundDisabled=y,i.buttonBorderDisabled=y,i.primaryButtonBackgroundDisabled=y,i.disabledBackground=y,i.listItemBackgroundHovered=y,i.listHeaderBackgroundHovered=y,i.menuItemBackgroundHovered=y),v&&(i.primaryButtonTextDisabled=v,i.disabledSubtext=v),g&&(i.listItemBackgroundCheckedHovered=g),I&&(i.disabledBodyText=I,i.variantBorderHovered=(r==null?void 0:r.variantBorderHovered)||I,i.buttonTextDisabled=I,i.inputIconDisabled=I,i.disabledText=I),C&&(i.bodyText=C,i.actionLink=C,i.buttonText=C,i.inputBorderHovered=C,i.inputText=C,i.listText=C,i.menuItemText=C),k&&(i.bodyStandoutBackground=k,i.defaultStateBackground=k),E&&(i.actionLinkHovered=E,i.buttonTextHovered=E,i.buttonTextChecked=E,i.buttonTextPressed=E,i.inputTextHovered=E,i.menuItemTextHovered=E),S&&(i.bodySubtext=S,i.focusBorder=S,i.inputBorder=S,i.smallInputBorder=S,i.inputPlaceholderText=S),w&&(i.buttonBorder=w),b&&(i.disabledBodySubtext=b,i.disabledBorder=b,i.buttonBackgroundChecked=b,i.menuDivider=b),O&&(i.accentButtonBackground=O),t!=null&&t.elevation4&&(i.cardShadow=t.elevation4),!n&&(t!=null&&t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=_.__assign(_.__assign({},i),r),i}function bM(e,t){var r="";return t===!0&&(r=" /* @deprecated */"),e.listTextColor=e.listText+r,e.menuItemBackgroundChecked+=r,e.warningHighlight+=r,e.warningText=e.messageText+r,e.successText+=r,e}function Ww(e,t){var r,n,o;t===void 0&&(t={});var i=o_({},e,t,{semanticColors:Vw(t.palette,t.effects,t.semanticColors,t.isInverted===void 0?e.isInverted:t.isInverted)});if(!((r=t.palette)===null||r===void 0)&&r.themePrimary&&!(!((n=t.palette)===null||n===void 0)&&n.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var u=s[a];i.fonts[u]=o_(i.fonts[u],t.defaultFontStyle,(o=t==null?void 0:t.fonts)===null||o===void 0?void 0:o[u])}return i}var yf={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"},xs;(function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"})(xs||(xs={}));var s_={elevation4:xs.depth4,elevation8:xs.depth8,elevation16:xs.depth16,elevation64:xs.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},IM={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},tt="cubic-bezier(.1,.9,.2,1)",Zr="cubic-bezier(.1,.25,.75,.9)",Zu="0.167s",jm="0.267s",We="0.367s",$m="0.467s",Qt=Dr({from:{opacity:0},to:{opacity:1}}),Yt=Dr({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),kM=na(-10),AM=na(-20),RM=na(-40),PM=na(-400),MM=na(10),FM=na(20),NM=na(40),xM=na(400),DM=mh(10),OM=mh(20),LM=mh(-10),BM=mh(-20),UM=oa(10),HM=oa(20),zM=oa(40),KM=oa(400),GM=oa(-10),qM=oa(-20),VM=oa(-40),WM=oa(-400),jM=gh(-10),$M=gh(-20),QM=gh(10),YM=gh(20),XM=Dr({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),JM=Dr({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),ZM=Dr({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),eF=Dr({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),tF=Dr({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),rF=Dr({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),cs={easeFunction1:tt,easeFunction2:Zr,durationValue1:Zu,durationValue2:jm,durationValue3:We,durationValue4:$m},nF={slideRightIn10:Fe(Qt+","+kM,We,tt),slideRightIn20:Fe(Qt+","+AM,We,tt),slideRightIn40:Fe(Qt+","+RM,We,tt),slideRightIn400:Fe(Qt+","+PM,We,tt),slideLeftIn10:Fe(Qt+","+MM,We,tt),slideLeftIn20:Fe(Qt+","+FM,We,tt),slideLeftIn40:Fe(Qt+","+NM,We,tt),slideLeftIn400:Fe(Qt+","+xM,We,tt),slideUpIn10:Fe(Qt+","+DM,We,tt),slideUpIn20:Fe(Qt+","+OM,We,tt),slideDownIn10:Fe(Qt+","+LM,We,tt),slideDownIn20:Fe(Qt+","+BM,We,tt),slideRightOut10:Fe(Yt+","+UM,We,tt),slideRightOut20:Fe(Yt+","+HM,We,tt),slideRightOut40:Fe(Yt+","+zM,We,tt),slideRightOut400:Fe(Yt+","+KM,We,tt),slideLeftOut10:Fe(Yt+","+GM,We,tt),slideLeftOut20:Fe(Yt+","+qM,We,tt),slideLeftOut40:Fe(Yt+","+VM,We,tt),slideLeftOut400:Fe(Yt+","+WM,We,tt),slideUpOut10:Fe(Yt+","+jM,We,tt),slideUpOut20:Fe(Yt+","+$M,We,tt),slideDownOut10:Fe(Yt+","+QM,We,tt),slideDownOut20:Fe(Yt+","+YM,We,tt),scaleUpIn100:Fe(Qt+","+XM,We,tt),scaleDownIn100:Fe(Qt+","+ZM,We,tt),scaleUpOut103:Fe(Yt+","+eF,Zu,Zr),scaleDownOut98:Fe(Yt+","+JM,Zu,Zr),fadeIn100:Fe(Qt,Zu,Zr),fadeIn200:Fe(Qt,jm,Zr),fadeIn400:Fe(Qt,We,Zr),fadeIn500:Fe(Qt,$m,Zr),fadeOut100:Fe(Yt,Zu,Zr),fadeOut200:Fe(Yt,jm,Zr),fadeOut400:Fe(Yt,We,Zr),fadeOut500:Fe(Yt,$m,Zr),rotate90deg:Fe(tF,"0.1s",Zr),rotateN90deg:Fe(rF,"0.1s",Zr)};function Fe(e,t,r){return{animationName:e,animationDuration:t,animationTimingFunction:r,animationFillMode:"both"}}function na(e){return Dr({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function mh(e){return Dr({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function oa(e){return Dr({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function gh(e){return Dr({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var Ct;(function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"})(Ct||(Ct={}));var je;(function(e){e.Arabic="'"+Ct.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+Ct.Cyrillic+"'",e.EastEuropean="'"+Ct.EastEuropean+"'",e.Greek="'"+Ct.Greek+"'",e.Hebrew="'"+Ct.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+Ct.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+Ct.Vietnamese+"'",e.WestEuropean="'"+Ct.WestEuropean+"'",e.Armenian="'"+Ct.Armenian+"'",e.Georgian="'"+Ct.Georgian+"'"})(je||(je={}));var br;(function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"})(br||(br={}));var $e;(function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700})($e||($e={}));var Eo;(function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"})(Eo||(Eo={}));var oF="'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",iF="'Segoe UI', '"+Ct.WestEuropean+"'",pp={ar:je.Arabic,bg:je.Cyrillic,cs:je.EastEuropean,el:je.Greek,et:je.EastEuropean,he:je.Hebrew,hi:je.Hindi,hr:je.EastEuropean,hu:je.EastEuropean,ja:je.Japanese,kk:je.EastEuropean,ko:je.Korean,lt:je.EastEuropean,lv:je.EastEuropean,pl:je.EastEuropean,ru:je.Cyrillic,sk:je.EastEuropean,"sr-latn":je.EastEuropean,th:je.Thai,tr:je.EastEuropean,uk:je.Cyrillic,vi:je.Vietnamese,"zh-hans":je.ChineseSimplified,"zh-hant":je.ChineseTraditional,hy:je.Armenian,ka:je.Georgian};function aF(e){return e+", "+oF}function sF(e){for(var t in pp)if(pp.hasOwnProperty(t)&&e&&t.indexOf(e)===0)return pp[t];return iF}function Xr(e,t,r){return{fontFamily:r,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function uF(e){var t=sF(e),r=aF(t),n={tiny:Xr(br.mini,$e.regular,r),xSmall:Xr(br.xSmall,$e.regular,r),small:Xr(br.small,$e.regular,r),smallPlus:Xr(br.smallPlus,$e.regular,r),medium:Xr(br.medium,$e.regular,r),mediumPlus:Xr(br.mediumPlus,$e.regular,r),large:Xr(br.large,$e.regular,r),xLarge:Xr(br.xLarge,$e.semibold,r),xLargePlus:Xr(br.xLargePlus,$e.semibold,r),xxLarge:Xr(br.xxLarge,$e.semibold,r),xxLargePlus:Xr(br.xxLargePlus,$e.semibold,r),superLarge:Xr(br.superLarge,$e.semibold,r),mega:Xr(br.mega,$e.semibold,r)};return n}var lF="https://res-1.cdn.office.net/files/fabric-cdn-prod_20221209.001/assets",cF=uF(uM());function _a(e,t,r,n){e="'"+e+"'";var o=n!==void 0?"local('"+n+"'),":"";Av({fontFamily:e,src:o+("url('"+t+".woff2') format('woff2'),")+("url('"+t+".woff') format('woff')"),fontWeight:r,fontStyle:"normal",fontDisplay:"swap"})}function qn(e,t,r,n,o){n===void 0&&(n="segoeui");var i=e+"/"+r+"/"+n;_a(t,i+"-light",$e.light,o&&o+" Light"),_a(t,i+"-semilight",$e.semilight,o&&o+" SemiLight"),_a(t,i+"-regular",$e.regular,o),_a(t,i+"-semibold",$e.semibold,o&&o+" SemiBold"),_a(t,i+"-bold",$e.bold,o&&o+" Bold")}function dF(e){if(e){var t=e+"/fonts";qn(t,Ct.Thai,"leelawadeeui-thai","leelawadeeui"),qn(t,Ct.Arabic,"segoeui-arabic"),qn(t,Ct.Cyrillic,"segoeui-cyrillic"),qn(t,Ct.EastEuropean,"segoeui-easteuropean"),qn(t,Ct.Greek,"segoeui-greek"),qn(t,Ct.Hebrew,"segoeui-hebrew"),qn(t,Ct.Vietnamese,"segoeui-vietnamese"),qn(t,Ct.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),qn(t,je.Selawik,"selawik","selawik"),qn(t,Ct.Armenian,"segoeui-armenian"),qn(t,Ct.Georgian,"segoeui-georgian"),_a("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",$e.light),_a("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",$e.semibold)}}function fF(){var e,t,r=(e=mt())===null||e===void 0?void 0:e.FabricConfig;return(t=r==null?void 0:r.fontBaseUrl)!==null&&t!==void 0?t:lF}dF(fF());function Su(e,t){e===void 0&&(e={}),t===void 0&&(t=!1);var r=!!e.isInverted,n={palette:yf,effects:s_,fonts:cF,spacing:IM,isInverted:r,disableGlobalClassNames:!1,semanticColors:TM(yf,s_,void 0,r,t),rtl:void 0};return Ww(n,e)}var Z="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",hF=640,jw=hF-1;function $w(e,t){var r=typeof e=="number"?" and (min-width: "+e+"px)":"",n=typeof t=="number"?" and (max-width: "+t+"px)":"";return"@media only screen"+r+n}function er(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}var Ql;(function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001})(Ql||(Ql={}));function Ro(e,t,r,n,o,i,a,s){return typeof t=="number"||!t?u_(e,{inset:t,position:r,highContrastStyle:n,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s}):u_(e,t)}function u_(e,t){var r,n;t===void 0&&(t={});var o=t.borderRadius,i=t.inset,a=i===void 0?0:i,s=t.width,u=s===void 0?1:s,l=t.position,c=l===void 0?"relative":l,d=t.highContrastStyle,f=t.borderColor,h=f===void 0?e.palette.white:f,m=t.outlineColor,y=m===void 0?e.palette.neutralSecondary:m,E=t.isFocusedOnly,v=E===void 0?!0:E,g=t.pointerEvents;return{outline:"transparent",position:c,selectors:(r={"::-moz-focus-inner":{border:"0"}},r["."+kr+" &"+(v?":focus":"")+":after"]={content:'""',position:"absolute",pointerEvents:g,left:a+1,top:a+1,bottom:a+1,right:a+1,border:u+"px solid "+h,outline:u+"px solid "+y,zIndex:Ql.FocusStyle,borderRadius:o,selectors:(n={},n[Z]=d,n)},r)}}function pF(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}var l_=function(e,t,r,n){var o,i,a;r===void 0&&(r="border"),n===void 0&&(n=-1);var s=r==="borderBottom";return{borderColor:e,selectors:{":after":(o={pointerEvents:"none",content:"''",position:"absolute",left:s?0:n,top:n,bottom:n,right:s?0:n},o[r]="2px solid "+e,o.borderRadius=t,o.width=r==="borderBottom"?"100%":void 0,o.selectors=(i={},i[Z]=(a={},a[r==="border"?"borderColor":"borderBottomColor"]="Highlight",a),i),o)}}},Hv={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},mF=gt(function(e,t){var r=mn.getInstance();return t?Object.keys(e).reduce(function(n,o){return n[o]=r.getClassName(e[o]),n},{}):e});function Sr(e,t,r){return mF(e,r!==void 0?r:t.disableGlobalClassNames)}var Ds=globalThis&&globalThis.__assign||function(){return Ds=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ds.apply(this,arguments)},hl=typeof window>"u"?global:window,c_=hl&&hl.CSPSettings&&hl.CSPSettings.nonce,ln=gF();function gF(){var e=hl.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=Ds(Ds({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=Ds(Ds({},e),{registeredThemableStyles:[]})),hl.__themeState__=e,e}function vF(e,t){ln.loadStyles?ln.loadStyles(Qw(e).styleString,e):CF(e)}function yF(e){ln.theme=e,_F()}function EF(e){e===void 0&&(e=3),(e===3||e===2)&&(d_(ln.registeredStyles),ln.registeredStyles=[]),(e===3||e===1)&&(d_(ln.registeredThemableStyles),ln.registeredThemableStyles=[])}function d_(e){e.forEach(function(t){var r=t&&t.styleElement;r&&r.parentElement&&r.parentElement.removeChild(r)})}function _F(){if(ln.theme){for(var e=[],t=0,r=ln.registeredThemableStyles;t<r.length;t++){var n=r[t];e.push(n.themableStyle)}e.length>0&&(EF(1),vF([].concat.apply([],e)))}}function Qw(e){var t=ln.theme,r=!1,n=(e||[]).map(function(o){var i=o.theme;if(i){r=!0;var a=t?t[i]:void 0,s=o.defaultValue||"inherit";return t&&!a&&console&&!(i in t)&&typeof DEBUG<"u"&&DEBUG&&console.warn('Theming value not provided for "'.concat(i,'". Falling back to "').concat(s,'".')),a||s}else return o.rawString});return{styleString:n.join(""),themable:r}}function CF(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],r=document.createElement("style"),n=Qw(e),o=n.styleString,i=n.themable;r.setAttribute("data-load-themed-styles","true"),c_&&r.setAttribute("nonce",c_),r.appendChild(document.createTextNode(o)),ln.perf.count++,t.appendChild(r);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:r},document.dispatchEvent(a);var s={styleElement:r,themableStyle:e};i?ln.registeredThemableStyles.push(s):ln.registeredStyles.push(s)}}var Tn=Su({}),SF=[],Qm="theme";function Yw(){var e,t,r,n=mt();!((t=n==null?void 0:n.FabricConfig)===null||t===void 0)&&t.legacyTheme?TF(n.FabricConfig.legacyTheme):Dn.getSettings([Qm]).theme||(!((r=n==null?void 0:n.FabricConfig)===null||r===void 0)&&r.theme&&(Tn=Su(n.FabricConfig.theme)),Dn.applySettings((e={},e[Qm]=Tn,e)))}Yw();function wF(e){return e===void 0&&(e=!1),e===!0&&(Tn=Su({},e)),Tn}function TF(e,t){var r;return t===void 0&&(t=!1),Tn=Su(e,t),yF(_.__assign(_.__assign(_.__assign(_.__assign({},Tn.palette),Tn.semanticColors),Tn.effects),bF(Tn))),Dn.applySettings((r={},r[Qm]=Tn,r)),SF.forEach(function(n){try{n(Tn)}catch{}}),Tn}function bF(e){for(var t={},r=0,n=Object.keys(e.fonts);r<n.length;r++)for(var o=n[r],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var u=s[a],l=o+u.charAt(0).toUpperCase()+u.slice(1),c=i[u];u==="fontSize"&&typeof c=="number"&&(c=c+"px"),t[l]=c}return t}var Rd={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},Cs={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function f_(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}var Ia=MR(nF),IF="https://res.cdn.office.net/files/fabric-cdn-prod_20230307.001";bv("@fluentui/style-utilities","8.9.6");Yw();var Et={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13},Ce;(function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"})(Ce||(Ce={}));var h_;(function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"})(h_||(h_={}));var pr;function Or(e,t,r){return{targetEdge:e,alignmentEdge:t,isAuto:r}}var p_=(pr={},pr[Et.topLeftEdge]=Or(Ce.top,Ce.left),pr[Et.topCenter]=Or(Ce.top),pr[Et.topRightEdge]=Or(Ce.top,Ce.right),pr[Et.topAutoEdge]=Or(Ce.top,void 0,!0),pr[Et.bottomLeftEdge]=Or(Ce.bottom,Ce.left),pr[Et.bottomCenter]=Or(Ce.bottom),pr[Et.bottomRightEdge]=Or(Ce.bottom,Ce.right),pr[Et.bottomAutoEdge]=Or(Ce.bottom,void 0,!0),pr[Et.leftTopEdge]=Or(Ce.left,Ce.top),pr[Et.leftCenter]=Or(Ce.left),pr[Et.leftBottomEdge]=Or(Ce.left,Ce.bottom),pr[Et.rightTopEdge]=Or(Ce.right,Ce.top),pr[Et.rightCenter]=Or(Ce.right),pr[Et.rightBottomEdge]=Or(Ce.right,Ce.bottom),pr);function zv(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function Ef(e,t){var r=[];return e.top<t.top&&r.push(Ce.top),e.bottom>t.bottom&&r.push(Ce.bottom),e.left<t.left&&r.push(Ce.left),e.right>t.right&&r.push(Ce.right),r}function Cr(e,t){return e[Ce[t]]}function m_(e,t,r){return e[Ce[t]]=r,e}function Yl(e,t){var r=wu(t);return(Cr(e,r.positiveEdge)+Cr(e,r.negativeEdge))/2}function vh(e,t){return e>0?t:t*-1}function Ym(e,t){return vh(e,Cr(t,e))}function Yo(e,t,r){var n=Cr(e,r)-Cr(t,r);return vh(r,n)}function lu(e,t,r,n){n===void 0&&(n=!0);var o=Cr(e,t)-r,i=m_(e,t,r);return n&&(i=m_(e,t*-1,Cr(e,t*-1)-o)),i}function Xl(e,t,r,n){return n===void 0&&(n=0),lu(e,r,Cr(t,r)+vh(r,n))}function kF(e,t,r,n){n===void 0&&(n=0);var o=r*-1,i=vh(o,n);return lu(e,r*-1,Cr(t,r)+i)}function _f(e,t,r){var n=Ym(r,e);return n>Ym(r,t)}function AF(e,t){for(var r=Ef(e,t),n=0,o=0,i=r;o<i.length;o++){var a=i[o];n+=Math.pow(Yo(e,t,a),2)}return n}function RF(e,t,r,n,o){o===void 0&&(o=0);var i=[Ce.left,Ce.right,Ce.bottom,Ce.top];Rt()&&(i[0]*=-1,i[1]*=-1);for(var a=e,s=n.targetEdge,u=n.alignmentEdge,l,c=s,d=u,f=0;f<4;f++){if(_f(a,r,s))return{elementRectangle:a,targetEdge:s,alignmentEdge:u};var h=AF(a,r);(!l||h<l)&&(l=h,c=s,d=u),i.splice(i.indexOf(s),1),i.length>0&&(i.indexOf(s*-1)>-1?s=s*-1:(u=s,s=i.slice(-1)[0]),a=Cf(e,t,{targetEdge:s,alignmentEdge:u},o))}return a=Cf(e,t,{targetEdge:c,alignmentEdge:d},o),{elementRectangle:a,targetEdge:c,alignmentEdge:d}}function PF(e,t,r,n){var o=e.alignmentEdge,i=e.targetEdge,a=e.elementRectangle,s=o*-1,u=Cf(a,t,{targetEdge:i,alignmentEdge:s},r,n);return{elementRectangle:u,targetEdge:i,alignmentEdge:s}}function MF(e,t,r,n,o,i,a){o===void 0&&(o=0);var s=n.alignmentEdge,u=n.alignTargetEdge,l={elementRectangle:e,targetEdge:n.targetEdge,alignmentEdge:s};!i&&!a&&(l=RF(e,t,r,n,o));var c=Ef(l.elementRectangle,r),d=i?-l.targetEdge:void 0;if(c.length>0)if(u)if(l.alignmentEdge&&c.indexOf(l.alignmentEdge*-1)>-1){var f=PF(l,t,o,a);if(zv(f.elementRectangle,r))return f;l=mp(Ef(f.elementRectangle,r),l,r,d)}else l=mp(c,l,r,d);else l=mp(c,l,r,d);return l}function mp(e,t,r,n){for(var o=0,i=e;o<i.length;o++){var a=i[o],s=void 0;if(n&&n===a*-1)s=lu(t.elementRectangle,a,Cr(r,a),!1),t.forcedInBounds=!0;else{s=Xl(t.elementRectangle,r,a);var u=_f(s,r,a*-1);u||(s=lu(s,a*-1,Cr(r,a*-1),!1),t.forcedInBounds=!0)}t.elementRectangle=s}return t}function Xw(e,t,r){var n=wu(t).positiveEdge,o=Yl(e,t),i=o-Cr(e,n);return lu(e,n,r-i)}function Cf(e,t,r,n,o){n===void 0&&(n=0);var i=new Ao(e.left,e.right,e.top,e.bottom),a=r.alignmentEdge,s=r.targetEdge,u=o?s:s*-1;if(i=o?Xl(i,t,s,n):kF(i,t,s,n),a)i=Xl(i,t,a);else{var l=Yl(t,s);i=Xw(i,u,l)}return i}function wu(e){return e===Ce.top||e===Ce.bottom?{positiveEdge:Ce.left,negativeEdge:Ce.right}:{positiveEdge:Ce.top,negativeEdge:Ce.bottom}}function Jw(e,t,r){return r&&Math.abs(Yo(e,r,t))>Math.abs(Yo(e,r,t*-1))?t*-1:t}function FF(e,t,r){return r!==void 0&&Cr(e,t)===Cr(r,t)}function NF(e,t,r,n,o,i,a,s){var u={},l=Kv(t),c=i?r:r*-1,d=o||wu(r).positiveEdge;return(!a||FF(e,jF(d),n))&&(d=Jw(e,d,n)),u[Ce[c]]=Yo(e,l,c),u[Ce[d]]=Yo(e,l,d),s&&(u[Ce[c*-1]]=Yo(e,l,c*-1),u[Ce[d*-1]]=Yo(e,l,d*-1)),u}function xF(e){return Math.sqrt(e*e*2)}function DF(e,t,r){if(e===void 0&&(e=Et.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var n=_.__assign({},p_[e]);return Rt()?(n.alignmentEdge&&n.alignmentEdge%2===0&&(n.alignmentEdge=n.alignmentEdge*-1),t!==void 0?p_[t]:n):n}function OF(e,t,r,n,o){return e.isAuto&&(e.alignmentEdge=Zw(e.targetEdge,t,r)),e.alignTargetEdge=o,e}function Zw(e,t,r){var n=Yl(t,e),o=Yl(r,e),i=wu(e),a=i.positiveEdge,s=i.negativeEdge;return n<=o?a:s}function LF(e,t,r,n,o,i,a){var s=Cf(e,t,n,o,a);return zv(s,r)?{elementRectangle:s,targetEdge:n.targetEdge,alignmentEdge:n.alignmentEdge}:MF(s,t,r,n,o,i,a)}function BF(e,t,r){var n=e.targetEdge*-1,o=new Ao(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=Jw(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:wu(n).positiveEdge,r),s=Yo(e.elementRectangle,e.targetRectangle,n),u=s>Math.abs(Cr(t,n));return i[Ce[n]]=Cr(t,n),i[Ce[a]]=Yo(t,o,a),{elementPosition:_.__assign({},i),closestEdge:Zw(e.targetEdge,t,o),targetEdge:n,hideBeak:!u}}function UF(e,t){var r=t.targetRectangle,n=wu(t.targetEdge),o=n.positiveEdge,i=n.negativeEdge,a=Yl(r,t.targetEdge),s=new Ao(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),u=new Ao(0,e,0,e);return u=lu(u,t.targetEdge*-1,-e/2),u=Xw(u,t.targetEdge*-1,a-Ym(o,t.elementRectangle)),_f(u,s,o)?_f(u,s,i)||(u=Xl(u,s,i)):u=Xl(u,s,o),u}function Kv(e){var t=e.getBoundingClientRect();return new Ao(t.left,t.right,t.top,t.bottom)}function HF(e){return new Ao(e.left,e.right,e.top,e.bottom)}function zF(e,t){var r;if(t){if(t.preventDefault){var n=t;r=new Ao(n.clientX,n.clientX,n.clientY,n.clientY)}else if(t.getBoundingClientRect)r=Kv(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,u=o.bottom||a;r=new Ao(i,s,a,u)}if(!zv(r,e))for(var l=Ef(r,e),c=0,d=l;c<d.length;c++){var f=d[c];r[Ce[f]]=e[Ce[f]]}}else r=new Ao(0,0,0,0);return r}function KF(e,t,r,n){var o=e.gapSpace?e.gapSpace:0,i=zF(r,e.target),a=OF(DF(e.directionalHint,e.directionalHintForRTL,n),i,r,e.coverTarget,e.alignTargetEdge),s=LF(Kv(t),i,r,a,o,e.directionalHintFixed,e.coverTarget);return _.__assign(_.__assign({},s),{targetRectangle:i})}function GF(e,t,r,n,o){var i=NF(e.elementRectangle,t,e.targetEdge,r,e.alignmentEdge,n,o,e.forcedInBounds);return{elementPosition:i,targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function eT(e,t,r,n,o){var i=e.isBeakVisible&&e.beakWidth||0,a=xF(i)/2+(e.gapSpace?e.gapSpace:0),s=e;s.gapSpace=a;var u=e.bounds?HF(e.bounds):new Ao(0,window.innerWidth-xR(),0,window.innerHeight),l=KF(s,r,u,n),c=UF(i,l),d=BF(l,c,u);return _.__assign(_.__assign({},GF(l,t,u,e.coverTarget,o)),{beakPosition:d})}function qF(e,t,r,n){return eT(e,t,r,n,!0)}function VF(e,t,r,n){return eT(e,t,r,n)}function WF(e,t,r,n){return qF(e,t,r,n)}function jF(e){return e*-1}function $F(e,t){var r=void 0;if(t.getWindowSegments&&(r=t.getWindowSegments()),r===void 0||r.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var n=0,o=0;if(e!==null&&e.getBoundingClientRect){var i=e.getBoundingClientRect();n=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else e!==null&&(n=e.left||e.x,o=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,u=r;s<u.length;s++){var l=u[s];n&&l.left<=n&&l.right>=n&&o&&l.top<=o&&l.bottom>=o&&(a={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return a}function QF(e,t){return $F(e,t)}function es(){var e=p.useRef();return e.current||(e.current=new _u),p.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function hn(e){var t=p.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function Xm(e){var t=p.useState(e),r=t[0],n=t[1],o=hn(function(){return function(){n(!0)}}),i=hn(function(){return function(){n(!1)}}),a=hn(function(){return function(){n(function(s){return!s})}});return[r,{setTrue:o,setFalse:i,toggle:a}]}function g_(e,t,r){var n=p.useState(t),o=n[0],i=n[1],a=hn(e!==void 0),s=a?e:o,u=p.useRef(s),l=p.useRef(r);p.useEffect(function(){u.current=s,l.current=r});var c=hn(function(){return function(d,f){var h=typeof d=="function"?d(u.current):d;l.current&&l.current(f,h),a||i(h)}});return[s,c]}function Vi(e,t){var r=p.useRef(t);return r.current||(r.current=Zt(e)),r.current}function ro(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=p.useCallback(function(n){r.current=n;for(var o=0,i=e;o<i.length;o++){var a=i[o];typeof a=="function"?a(n):a&&(a.current=n)}},_.__spreadArray([],e));return r}function cu(e,t,r,n){var o=p.useRef(r);o.current=r,p.useEffect(function(){var i=e&&"current"in e?e.current:e;if(i){var a=wo(i,t,function(s){return o.current(s)},n);return a}},[e,t,n])}function Gv(e){var t=p.useRef();return p.useEffect(function(){t.current=e}),t.current}var YF=function(){var e=hn({});return p.useEffect(function(){return function(){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];clearTimeout(n)}}},[e]),hn({setTimeout:function(t,r){var n=setTimeout(t,r);return e[n]=1,n},clearTimeout:function(t){delete e[t],clearTimeout(t)}})},tT=p.createContext({window:typeof window=="object"?window:void 0}),bc=function(){return p.useContext(tT).window},XF=function(){var e;return(e=p.useContext(tT).window)===null||e===void 0?void 0:e.document};function rT(e,t){var r=p.useRef(),n=p.useRef(null),o=bc();if(!e||e!==r.current||typeof e=="string"){var i=t==null?void 0:t.current;if(e)if(typeof e=="string"){var a=gn(i);n.current=a?a.querySelector(e):null}else"stopPropagation"in e||"getBoundingClientRect"in e?n.current=e:"current"in e?n.current=e.current:n.current=e;r.current=e}return[n,o]}function JF(e,t){var r=es(),n=p.useState(!1),o=n[0],i=n[1];return p.useEffect(function(){return r.requestAnimationFrame(function(){var a;if(!(e.style&&e.style.overflowY)){var s=!1;if(t&&t.current&&(!((a=t.current)===null||a===void 0)&&a.firstElementChild)){var u=t.current.clientHeight,l=t.current.firstElementChild.clientHeight;u>0&&l>u&&(s=l-u>1)}o!==s&&i(s)}}),function(){return r.dispose()}}),o}function ZF(e){var t=e.originalElement,r=e.containsFocus;t&&r&&t!==mt()&&setTimeout(function(){var n;(n=t.focus)===null||n===void 0||n.call(t)},0)}function eN(e,t){var r=e.onRestoreFocus,n=r===void 0?ZF:r,o=p.useRef(),i=p.useRef(!1);p.useEffect(function(){return o.current=gn().activeElement,nP(t.current)&&(i.current=!0),function(){var a;n==null||n({originalElement:o.current,containsFocus:i.current,documentContainsFocus:((a=gn())===null||a===void 0?void 0:a.hasFocus())||!1}),o.current=void 0}},[]),cu(t,"focus",p.useCallback(function(){i.current=!0},[]),!0),cu(t,"blur",p.useCallback(function(a){t.current&&a.relatedTarget&&!t.current.contains(a.relatedTarget)&&(i.current=!1)},[]),!0)}function tN(e,t){var r=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;p.useEffect(function(){if(r&&t.current){var n=cM(t.current);return n}},[t,r])}var nT=p.forwardRef(function(e,t){var r=Cu({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),n=p.useRef(),o=ro(n,t);tN(r,n),eN(r,n);var i=r.role,a=r.className,s=r.ariaLabel,u=r.ariaLabelledBy,l=r.ariaDescribedBy,c=r.style,d=r.children,f=r.onDismiss,h=JF(r,n),m=p.useCallback(function(E){switch(E.which){case ve.escape:f&&(f(E),E.preventDefault(),E.stopPropagation());break}},[f]),y=bc();return cu(y,"keydown",m),p.createElement("div",_.__assign({ref:o},Ve(r,Wr),{className:a,role:i,"aria-label":s,"aria-labelledby":u,"aria-describedby":l,onKeyDown:m,style:_.__assign({overflowY:h?"scroll":void 0,outline:"none"},c)}),d)});nT.displayName="Popup";var ds,rN="CalloutContentBase",nN=(ds={},ds[Ce.top]=Ia.slideUpIn10,ds[Ce.bottom]=Ia.slideDownIn10,ds[Ce.left]=Ia.slideLeftIn10,ds[Ce.right]=Ia.slideRightIn10,ds),v_={top:0,left:0},oN={opacity:0,filter:"opacity(0)",pointerEvents:"none"},iN=["role","aria-roledescription"],oT={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Et.bottomAutoEdge},aN=Wt({disableCaching:!0});function sN(e,t,r){var n=e.bounds,o=e.minPagePadding,i=o===void 0?oT.minPagePadding:o,a=e.target,s=p.useState(!1),u=s[0],l=s[1],c=p.useRef(),d=p.useCallback(function(){if(!c.current||u){var h=typeof n=="function"?r?n(a,r):void 0:n;!h&&r&&(h=QF(t.current,r),h={top:h.top+i,left:h.left+i,right:h.right-i,bottom:h.bottom-i,width:h.width-i*2,height:h.height-i*2}),c.current=h,u&&l(!1)}return c.current},[n,i,a,t,r,u]),f=es();return cu(r,"resize",f.debounce(function(){l(!0)},500,{leading:!0})),d}function uN(e,t,r){var n,o=e.calloutMaxHeight,i=e.finalHeight,a=e.directionalHint,s=e.directionalHintFixed,u=e.hidden,l=p.useState(),c=l[0],d=l[1],f=(n=r==null?void 0:r.elementPosition)!==null&&n!==void 0?n:{},h=f.top,m=f.bottom;return p.useEffect(function(){var y,E=(y=t())!==null&&y!==void 0?y:{},v=E.top,g=E.bottom;!o&&!u?typeof h=="number"&&g?d(g-h):typeof m=="number"&&typeof v=="number"&&g&&d(g-v-m):d(o||void 0)},[m,o,i,a,s,t,u,r,h]),c}function lN(e,t,r,n,o){var i=p.useState(),a=i[0],s=i[1],u=p.useRef(0),l=p.useRef(),c=es(),d=e.hidden,f=e.target,h=e.finalHeight,m=e.calloutMaxHeight,y=e.onPositioned,E=e.directionalHint;return p.useEffect(function(){if(d)s(void 0),u.current=0;else{var v=c.requestAnimationFrame(function(){var g,C;if(t.current&&r){var S=_.__assign(_.__assign({},e),{target:n.current,bounds:o()}),w=r.cloneNode(!0);w.style.maxHeight=m?""+m:"",w.style.visibility="hidden",(g=r.parentElement)===null||g===void 0||g.appendChild(w);var I=l.current===f?a:void 0,b=h?WF(S,t.current,w,I):VF(S,t.current,w,I);(C=r.parentElement)===null||C===void 0||C.removeChild(w),!a&&b||a&&b&&!hN(a,b)&&u.current<5?(u.current++,s(b)):u.current>0&&(u.current=0,y==null||y(a))}},r);return l.current=f,function(){c.cancelAnimationFrame(v),l.current=void 0}}},[d,E,c,r,m,t,n,h,o,y,a,e,f]),a}function cN(e,t,r){var n=e.hidden,o=e.setInitialFocus,i=es(),a=!!t;p.useEffect(function(){if(!n&&o&&a&&r){var s=i.requestAnimationFrame(function(){return Rw(r)},r);return function(){return i.cancelAnimationFrame(s)}}},[n,a,i,r,o])}function dN(e,t,r,n,o){var i=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,u=e.preventDismissOnResize,l=e.preventDismissOnLostFocus,c=e.dismissOnTargetClick,d=e.shouldDismissOnWindowFocus,f=e.preventDismissOnEvent,h=p.useRef(!1),m=es(),y=hn([function(){h.current=!0},function(){h.current=!1}]),E=!!t;return p.useEffect(function(){var v=function(b){E&&!s&&S(b)},g=function(b){!u&&!(f&&f(b))&&(a==null||a(b))},C=function(b){l||S(b)},S=function(b){var k=b.composedPath?b.composedPath():[],O=k.length>0?k[0]:b.target,L=r.current&&!jo(r.current,O);if(L&&h.current){h.current=!1;return}if(!n.current&&L||b.target!==o&&L&&(!n.current||"stopPropagation"in n.current||c||O!==n.current&&!jo(n.current,O))){if(f&&f(b))return;a==null||a(b)}},w=function(b){d&&(f&&!f(b)||!f&&!l)&&!(o!=null&&o.document.hasFocus())&&b.relatedTarget===null&&(a==null||a(b))},I=new Promise(function(b){m.setTimeout(function(){if(!i&&o){var k=[wo(o,"scroll",v,!0),wo(o,"resize",g,!0),wo(o.document.documentElement,"focus",C,!0),wo(o.document.documentElement,"click",C,!0),wo(o,"blur",w,!0)];b(function(){k.forEach(function(O){return O()})})}},0)});return function(){I.then(function(b){return b()})}},[i,m,r,n,o,a,d,c,l,u,s,E,f]),y}var iT=p.memo(p.forwardRef(function(e,t){var r=Cu(oT,e),n=r.styles,o=r.style,i=r.ariaLabel,a=r.ariaDescribedBy,s=r.ariaLabelledBy,u=r.className,l=r.isBeakVisible,c=r.children,d=r.beakWidth,f=r.calloutWidth,h=r.calloutMaxWidth,m=r.calloutMinWidth,y=r.doNotLayer,E=r.finalHeight,v=r.hideOverflow,g=v===void 0?!!E:v,C=r.backgroundColor,S=r.calloutMaxHeight,w=r.onScroll,I=r.shouldRestoreFocus,b=I===void 0?!0:I,k=r.target,O=r.hidden,L=r.onLayerMounted,se=r.popupProps,B=p.useRef(null),ae=p.useState(null),G=ae[0],oe=ae[1],me=p.useCallback(function(nr){oe(nr)},[]),P=ro(B,t),T=rT(r.target,{current:G}),M=T[0],F=T[1],N=sN(r,M,F),x=lN(r,B,G,M,N),Y=uN(r,N,x),de=dN(r,x,B,M,F),ye=de[0],V=de[1],ke=(x==null?void 0:x.elementPosition.top)&&(x==null?void 0:x.elementPosition.bottom),Ae=_.__assign(_.__assign({},x==null?void 0:x.elementPosition),{maxHeight:Y});if(ke&&(Ae.bottom=void 0),cN(r,x,G),p.useEffect(function(){O||L==null||L()},[O]),!F)return null;var Le=g,ot=l&&!!k,it=aN(n,{theme:r.theme,className:u,overflowYHidden:Le,calloutWidth:f,positions:x,beakWidth:d,backgroundColor:C,calloutMaxWidth:h,calloutMinWidth:m,doNotLayer:y}),Ze=_.__assign(_.__assign({maxHeight:S||"100%"},o),Le&&{overflowY:"hidden"}),ze=r.hidden?{visibility:"hidden"}:void 0;return p.createElement("div",{ref:P,className:it.container,style:ze},p.createElement("div",_.__assign({},Ve(r,Wr,iN),{className:Pt(it.root,x&&x.targetEdge&&nN[x.targetEdge]),style:x?_.__assign({},Ae):oN,tabIndex:-1,ref:me}),ot&&p.createElement("div",{className:it.beak,style:fN(x)}),ot&&p.createElement("div",{className:it.beakCurtain}),p.createElement(nT,_.__assign({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:a,ariaLabel:i,ariaLabelledBy:s,className:it.calloutMain,onDismiss:r.onDismiss,onMouseDown:ye,onMouseUp:V,onRestoreFocus:r.onRestoreFocus,onScroll:w,shouldRestoreFocus:b,style:Ze},se),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:Pv(e,t)});function fN(e){var t,r,n=_.__assign(_.__assign({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((r=e==null?void 0:e.beakPosition)===null||r===void 0)&&r.hideBeak?"none":void 0});return!n.top&&!n.bottom&&!n.left&&!n.right&&(n.left=v_.left,n.top=v_.top),n}function hN(e,t){return y_(e.elementPosition,t.elementPosition)&&y_(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function y_(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=e[r],o=t[r];if(n!==void 0&&o!==void 0){if(n.toFixed(2)!==o.toFixed(2))return!1}else return!1}return!0}iT.displayName=rN;function pN(e){return{height:e,width:e}}var mN={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},gN=function(e){var t,r=e.theme,n=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,u=e.calloutMaxWidth,l=e.calloutMinWidth,c=e.doNotLayer,d=Sr(mN,r),f=r.semanticColors,h=r.effects;return{container:[d.container,{position:"relative"}],root:[d.root,r.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Ql.Layer:void 0,boxSizing:"border-box",borderRadius:h.roundedCorner2,boxShadow:h.elevation16,selectors:(t={},t[Z]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},pF(),n,!!i&&{width:i},!!u&&{maxWidth:u},!!l&&{minWidth:l}],beak:[d.beak,{position:"absolute",backgroundColor:f.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},pN(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:h.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:h.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}},vN=jt(iT,gN,void 0,{scope:"CalloutContent"});const aT=p.createContext(void 0),yN=()=>()=>{};aT.Provider;function EN(){var e;return(e=p.useContext(aT))!==null&&e!==void 0?e:yN}var _N=Wt(),CN=gt(function(e,t){return Su(_.__assign(_.__assign({},e),{rtl:t}))}),SN=function(e){var t=e.theme,r=e.dir,n=Rt(t)?"rtl":"ltr",o=Rt()?"rtl":"ltr",i=r||n;return{rootDir:i!==n||i!==o?i:r,needsTheme:i!==n}},sT=p.forwardRef(function(e,t){var r=e.className,n=e.theme,o=e.applyTheme,i=e.applyThemeToBody,a=e.styles,s=_N(a,{theme:n,applyTheme:o,className:r}),u=p.useRef(null);return TN(i,s,u),p.createElement(p.Fragment,null,wN(e,s,u,t))});sT.displayName="FabricBase";function wN(e,t,r,n){var o=t.root,i=e.as,a=i===void 0?"div":i,s=e.dir,u=e.theme,l=Ve(e,Wr,["dir"]),c=SN(e),d=c.rootDir,f=c.needsTheme,h=p.createElement(Uv,{providerRef:r},p.createElement(a,_.__assign({dir:d},l,{className:o,ref:ro(r,n)})));return f&&(h=p.createElement(wP,{settings:{theme:CN(u,s==="rtl")}},h)),h}function TN(e,t,r){var n=t.bodyThemed;return p.useEffect(function(){if(e){var o=gn(r.current);if(o)return o.body.classList.add(n),function(){o.body.classList.remove(n)}}},[n,e,r]),r}var gp={fontFamily:"inherit"},bN={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},IN=function(e){var t=e.applyTheme,r=e.className,n=e.preventBlanketFontInheritance,o=e.theme,i=Sr(bN,o);return{root:[i.root,o.fonts.medium,{color:o.palette.neutralPrimary},!n&&{"& button":gp,"& input":gp,"& textarea":gp},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},r],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}},kN=jt(sT,IN,void 0,{scope:"Fabric"}),pl={},qv={},uT="fluent-default-layer-host",AN="#"+uT;function RN(e,t){pl[e]||(pl[e]=[]),pl[e].push(t);var r=qv[e];if(r)for(var n=0,o=r;n<o.length;n++){var i=o[n];i.notifyLayersChanged()}}function PN(e,t){var r=pl[e];if(r){var n=r.indexOf(t);n>=0&&(r.splice(n,1),r.length===0&&delete pl[e])}var o=qv[e];if(o)for(var i=0,a=o;i<a.length;i++){var s=a[i];s.notifyLayersChanged()}}function MN(e){var t=qv[e];return t&&t[0]||void 0}function FN(e){var t=e.createElement("div");return t.setAttribute("id",uT),t.style.cssText="position:fixed;z-index:1000000",e==null||e.body.appendChild(t),t}function NN(){return AN}var xN=Wt(),lT=p.forwardRef(function(e,t){var r=EN(),n=p.useRef(null),o=ro(n,t),i=p.useRef(),a=p.useRef(null),s=p.useState(!1),u=s[0],l=s[1],c=e.children,d=e.className,f=e.eventBubblingEnabled,h=e.fabricProps,m=e.hostId,y=e.insertFirst,E=e.onLayerDidMount,v=E===void 0?function(){}:E,g=e.onLayerMounted,C=g===void 0?function(){}:g,S=e.onLayerWillUnmount,w=e.styles,I=e.theme,b=ro(a,h==null?void 0:h.ref),k=xN(w,{theme:I,className:d,isNotHost:!m}),O=function(B){var ae,G;if(m){var oe=MN(m);return oe?(ae=oe.rootRef.current)!==null&&ae!==void 0?ae:null:(G=B.getElementById(m))!==null&&G!==void 0?G:null}else{var me=NN(),P=me?B.querySelector(me):null;return P||(P=FN(B)),P}},L=function(){S==null||S();var B=i.current;i.current=void 0,B&&B.parentNode&&B.parentNode.removeChild(B)},se=function(){var B,ae=gn(n.current);if(ae){var G=O(ae);if(G){L();var oe=((B=G.ownerDocument)!==null&&B!==void 0?B:ae).createElement("div");oe.className=k.root,QR(oe),YR(oe,n.current),y?G.insertBefore(oe,G.firstChild):G.appendChild(oe),i.current=oe,l(!0)}}};return $l(function(){se(),m&&RN(m,se);var B=i.current?r(i.current):void 0;return function(){B&&B(),L(),m&&PN(m,se)}},[m]),p.useEffect(function(){i.current&&u&&(C==null||C(),v==null||v(),l(!1))},[u,C,v]),p.createElement("span",{className:"ms-layer",ref:o},i.current&&Al.createPortal(p.createElement(Uv,{layerRoot:!0,providerRef:b},p.createElement(kN,_.__assign({},!f&&ON(),h,{className:Pt(k.content,h==null?void 0:h.className),ref:b}),c)),i.current))});lT.displayName="LayerBase";var Zc,DN=function(e){e.eventPhase===Event.BUBBLING_PHASE&&e.type!=="mouseenter"&&e.type!=="mouseleave"&&e.type!=="touchstart"&&e.type!=="touchend"&&e.stopPropagation()};function ON(){return Zc||(Zc={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach(function(e){return Zc[e]=DN})),Zc}var LN={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},BN=function(e){var t=e.className,r=e.isNotHost,n=e.theme,o=Sr(LN,n);return{root:[o.root,n.fonts.medium,r&&[o.rootNoHost,{position:"fixed",zIndex:Ql.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}},cT=jt(lT,BN,void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),du=p.forwardRef(function(e,t){var r=e.layerProps,n=e.doNotLayer,o=_.__rest(e,["layerProps","doNotLayer"]),i=p.createElement(vN,_.__assign({},o,{doNotLayer:n,ref:t}));return n?i:p.createElement(cT,_.__assign({},r),i)});du.displayName="Callout";var UN=Wt(),HN=function(e){_.__extends(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._onRenderContent=function(n){return typeof n.content=="string"?p.createElement("p",{className:r._classNames.subText},n.content):p.createElement("div",{className:r._classNames.subText},n.content)},r}return t.prototype.render=function(){var r=this.props,n=r.className,o=r.calloutProps,i=r.directionalHint,a=r.directionalHintForRTL,s=r.styles,u=r.id,l=r.maxWidth,c=r.onRenderContent,d=c===void 0?this._onRenderContent:c,f=r.targetElement,h=r.theme;return this._classNames=UN(s,{theme:h,className:n||o&&o.className,beakWidth:o&&o.isBeakVisible?o.beakWidth:0,gapSpace:o&&o.gapSpace,maxWidth:l}),p.createElement(du,_.__assign({target:f,directionalHint:i,directionalHintForRTL:a},o,Ve(this.props,Wr,["id"]),{className:this._classNames.root}),p.createElement("div",{className:this._classNames.content,id:u,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:Et.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(p.Component),zN=function(e){var t=e.className,r=e.beakWidth,n=r===void 0?16:r,o=e.gapSpace,i=o===void 0?0:o,a=e.maxWidth,s=e.theme,u=s.semanticColors,l=s.fonts,c=s.effects,d=-(Math.sqrt(n*n/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Ia.fadeIn200,{background:u.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:u.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}},KN=jt(HN,zN,void 0,{scope:"Tooltip"}),Os;(function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"})(Os||(Os={}));var Jl;(function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"})(Jl||(Jl={}));var GN=Wt(),qN=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n._tooltipHost=p.createRef(),n._defaultTooltipId=Zt("tooltip"),n.show=function(){n._toggleTooltip(!0)},n.dismiss=function(){n._hideTooltip()},n._getTargetElement=function(){if(n._tooltipHost.current){var o=n.props.overflowMode;if(o!==void 0)switch(o){case Jl.Parent:return n._tooltipHost.current.parentElement;case Jl.Self:return n._tooltipHost.current}return n._tooltipHost.current}},n._onTooltipFocus=function(o){if(n._ignoreNextFocusEvent){n._ignoreNextFocusEvent=!1;return}n._onTooltipMouseEnter(o)},n._onTooltipContentFocus=function(o){t._currentVisibleTooltip&&t._currentVisibleTooltip!==n&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=n,n._clearDismissTimer(),n._clearOpenTimer()},n._onTooltipBlur=function(o){n._ignoreNextFocusEvent=(document==null?void 0:document.activeElement)===o.target,n._dismissTimerId=n._async.setTimeout(function(){n._hideTooltip()},0)},n._onTooltipMouseEnter=function(o){var i=n.props,a=i.overflowMode,s=i.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==n&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=n,a!==void 0){var u=n._getTargetElement();if(u&&!pM(u))return}if(!(o.target&&xv(o.target,n._getTargetElement())))if(n._clearDismissTimer(),n._clearOpenTimer(),s!==Os.zero){var l=n._getDelayTime(s);n._openTimerId=n._async.setTimeout(function(){n._toggleTooltip(!0)},l)}else n._toggleTooltip(!0)},n._onTooltipMouseLeave=function(o){var i=n.props.closeDelay;n._clearDismissTimer(),n._clearOpenTimer(),i?n._dismissTimerId=n._async.setTimeout(function(){n._toggleTooltip(!1)},i):n._toggleTooltip(!1),t._currentVisibleTooltip===n&&(t._currentVisibleTooltip=void 0)},n._onTooltipKeyDown=function(o){(o.which===ve.escape||o.ctrlKey)&&n.state.isTooltipVisible&&(n._hideTooltip(),o.stopPropagation())},n._clearDismissTimer=function(){n._async.clearTimeout(n._dismissTimerId)},n._clearOpenTimer=function(){n._async.clearTimeout(n._openTimerId)},n._hideTooltip=function(){n._clearOpenTimer(),n._clearDismissTimer(),n._toggleTooltip(!1)},n._toggleTooltip=function(o){n.state.isTooltipVisible!==o&&n.setState({isTooltipVisible:o},function(){return n.props.onTooltipToggle&&n.props.onTooltipToggle(o)})},n._getDelayTime=function(o){switch(o){case Os.medium:return 300;case Os.long:return 500;default:return 0}},Za(n),n.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},n._async=new _u(n),n}return t.prototype.render=function(){var r=this.props,n=r.calloutProps,o=r.children,i=r.content,a=r.directionalHint,s=r.directionalHintForRTL,u=r.hostClassName,l=r.id,c=r.setAriaDescribedBy,d=c===void 0?!0:c,f=r.tooltipProps,h=r.styles,m=r.theme;this._classNames=GN(h,{theme:m,className:u});var y=this.state.isTooltipVisible,E=l||this._defaultTooltipId,v=_.__assign(_.__assign({id:E+"--tooltip",content:i,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:s,calloutProps:Pi({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},Ve(this.props,Wr,["id"])),f),g=f!=null&&f.onRenderContent?f.onRenderContent(v,function(w){return w!=null&&w.content?p.createElement(p.Fragment,null,w.content):null}):i,C=y&&!!g,S=d&&y&&g?E:void 0;return p.createElement("div",_.__assign({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":S}),o,C&&p.createElement(KN,_.__assign({},v)),p.createElement("div",{hidden:!0,id:E,style:Hv},g))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:Os.medium},t}(p.Component),VN={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},WN=function(e){var t=e.className,r=e.theme,n=Sr(VN,r);return{root:[n.root,{display:"inline"},t]}},dT=jt(qN,WN,void 0,{scope:"TooltipHost"}),Sf;(function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"})(Sf||(Sf={}));var Pr;(function(e){e[e.center=0]="center",e[e.contain=1]="contain",e[e.cover=2]="cover",e[e.none=3]="none",e[e.centerCover=4]="centerCover",e[e.centerContain=5]="centerContain"})(Pr||(Pr={}));var Zl;(function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"})(Zl||(Zl={}));var Kt;(function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"})(Kt||(Kt={}));var jN=Wt(),$N=/\.svg$/i,QN="fabricImage";function YN(e,t){var r=e.onLoadingStateChange,n=e.onLoad,o=e.onError,i=e.src,a=p.useState(Kt.notLoaded),s=a[0],u=a[1];$l(function(){u(Kt.notLoaded)},[i]),p.useEffect(function(){if(s===Kt.notLoaded){var d=t.current?i&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&$N.test(i):!1;d&&u(Kt.loaded)}}),p.useEffect(function(){r==null||r(s)},[s]);var l=p.useCallback(function(d){n==null||n(d),i&&u(Kt.loaded)},[i,n]),c=p.useCallback(function(d){o==null||o(d),u(Kt.error)},[o]);return[s,l,c]}var fT=p.forwardRef(function(e,t){var r=p.useRef(),n=p.useRef(),o=YN(e,n),i=o[0],a=o[1],s=o[2],u=Ve(e,Lw,["width","height"]),l=e.src,c=e.alt,d=e.width,f=e.height,h=e.shouldFadeIn,m=h===void 0?!0:h,y=e.shouldStartVisible,E=e.className,v=e.imageFit,g=e.role,C=e.maximizeFrame,S=e.styles,w=e.theme,I=e.loading,b=XN(e,i,n,r),k=jN(S,{theme:w,className:E,width:d,height:f,maximizeFrame:C,shouldFadeIn:m,shouldStartVisible:y,isLoaded:i===Kt.loaded||i===Kt.notLoaded&&e.shouldStartVisible,isLandscape:b===Zl.landscape,isCenter:v===Pr.center,isCenterContain:v===Pr.centerContain,isCenterCover:v===Pr.centerCover,isContain:v===Pr.contain,isCover:v===Pr.cover,isNone:v===Pr.none,isError:i===Kt.error,isNotImageFit:v===void 0});return p.createElement("div",{className:k.root,style:{width:d,height:f},ref:r},p.createElement("img",_.__assign({},u,{onLoad:a,onError:s,key:QN+e.src||"",className:k.image,ref:ro(n,t),src:l,alt:c,role:g,loading:I})))});fT.displayName="ImageBase";function XN(e,t,r,n){var o=p.useRef(t),i=p.useRef();return(i===void 0||o.current===Kt.notLoaded&&t===Kt.loaded)&&(i.current=JN(e,t,r,n)),o.current=t,i.current}function JN(e,t,r,n){var o=e.imageFit,i=e.width,a=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===Kt.loaded&&(o===Pr.cover||o===Pr.contain||o===Pr.centerContain||o===Pr.centerCover)&&r.current&&n.current){var s=void 0;typeof i=="number"&&typeof a=="number"&&o!==Pr.centerContain&&o!==Pr.centerCover?s=i/a:s=n.current.clientWidth/n.current.clientHeight;var u=r.current.naturalWidth/r.current.naturalHeight;if(u>s)return Zl.landscape}return Zl.portrait}var ZN={root:"ms-Image",rootMaximizeFrame:"ms-Image--maximizeFrame",image:"ms-Image-image",imageCenter:"ms-Image-image--center",imageContain:"ms-Image-image--contain",imageCover:"ms-Image-image--cover",imageCenterContain:"ms-Image-image--centerContain",imageCenterCover:"ms-Image-image--centerCover",imageNone:"ms-Image-image--none",imageLandscape:"ms-Image-image--landscape",imagePortrait:"ms-Image-image--portrait"},e2=function(e){var t=e.className,r=e.width,n=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,u=e.isLandscape,l=e.isCenter,c=e.isContain,d=e.isCover,f=e.isCenterContain,h=e.isCenterCover,m=e.isNone,y=e.isError,E=e.isNotImageFit,v=e.theme,g=Sr(ZN,v),C={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},S=mt(),w=S!==void 0&&S.navigator.msMaxTouchPoints===void 0,I=c&&u||d&&!u?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[g.root,v.fonts.medium,{overflow:"hidden"},o&&[g.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&Ia.fadeIn400,(l||c||d||f||h)&&{position:"relative"},t],image:[g.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],l&&[g.imageCenter,C],c&&[g.imageContain,w&&{width:"100%",height:"100%",objectFit:"contain"},!w&&I,!w&&C],d&&[g.imageCover,w&&{width:"100%",height:"100%",objectFit:"cover"},!w&&I,!w&&C],f&&[g.imageCenterContain,u&&{maxWidth:"100%"},!u&&{maxHeight:"100%"},C],h&&[g.imageCenterCover,u&&{maxHeight:"100%"},!u&&{maxWidth:"100%"},C],m&&[g.imageNone,{width:"auto",height:"auto"}],E&&[!!r&&!n&&{height:"auto",width:"100%"},!r&&!!n&&{height:"100%",width:"auto"},!!r&&!!n&&{height:"100%",width:"100%"}],u&&g.imageLandscape,!u&&g.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",y&&"is-error"]}},yh=jt(fT,e2,void 0,{scope:"Image"},!0);yh.displayName="Image";var xa=Ja({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),hT="ms-Icon",t2=function(e){var t=e.className,r=e.iconClassName,n=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[n&&xa.placeholder,xa.root,o&&xa.image,r,t,i&&i.root,i&&i.imageContainer]}},pT=gt(function(e){var t=SM(e)||{subset:{},code:void 0},r=t.code,n=t.subset;return r?{children:r,iconClassName:n.className,fontFamily:n.fontFace&&n.fontFace.fontFamily,mergeImageProps:n.mergeImageProps}:null},void 0,!0),ec=function(e){var t=e.iconName,r=e.className,n=e.style,o=n===void 0?{}:n,i=pT(t)||{},a=i.iconClassName,s=i.children,u=i.fontFamily,l=i.mergeImageProps,c=Ve(e,vt),d=e["aria-label"]||e.title,f=e["aria-label"]||e["aria-labelledby"]||e.title?{role:l?void 0:"img"}:{"aria-hidden":!0},h=s;return l&&typeof s=="object"&&typeof s.props=="object"&&d&&(h=p.cloneElement(s,{alt:d})),p.createElement("i",_.__assign({"data-icon-name":t},f,c,l?{title:void 0,"aria-label":void 0}:{},{className:Pt(hT,xa.root,a,!t&&xa.placeholder,r),style:_.__assign({fontFamily:u},o)}),h)};gt(function(e,t,r){return ec({iconName:e,className:t,"aria-label":r})});var r2=Wt({cacheSize:100}),n2=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n._onImageLoadingStateChange=function(o){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(o),o===Kt.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return t.prototype.render=function(){var r=this.props,n=r.children,o=r.className,i=r.styles,a=r.iconName,s=r.imageErrorAs,u=r.theme,l=typeof a=="string"&&a.length===0,c=!!this.props.imageProps||this.props.iconType===Sf.image||this.props.iconType===Sf.Image,d=pT(a)||{},f=d.iconClassName,h=d.children,m=d.mergeImageProps,y=r2(i,{theme:u,className:o,iconClassName:f,isImage:c,isPlaceholder:l}),E=c?"span":"i",v=Ve(this.props,vt,["aria-label"]),g=this.state.imageLoadError,C=_.__assign(_.__assign({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),S=g&&s||yh,w=this.props["aria-label"]||this.props.ariaLabel,I=C.alt||w||this.props.title,b=!!(I||this.props["aria-labelledby"]||C["aria-label"]||C["aria-labelledby"]),k=b?{role:c||m?void 0:"img","aria-label":c||m?void 0:I}:{"aria-hidden":!0},O=h;return m&&h&&typeof h=="object"&&I&&(O=p.cloneElement(h,{alt:I})),p.createElement(E,_.__assign({"data-icon-name":a},k,v,m?{title:void 0,"aria-label":void 0}:{},{className:y.root}),c?p.createElement(S,_.__assign({},C)):n||O)},t}(p.Component),no=jt(n2,t2,void 0,{scope:"Icon"},!0);no.displayName="Icon";var o2=function(e){var t=e.className,r=e.imageProps,n=Ve(e,vt,["aria-label","aria-labelledby","title","aria-describedby"]),o=r.alt||e["aria-label"],i=o||e["aria-labelledby"]||e.title||r["aria-label"]||r["aria-labelledby"]||r.title,a={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},s=i?{}:{"aria-hidden":!0};return p.createElement("div",_.__assign({},s,n,{className:Pt(hT,xa.root,xa.image,t)}),p.createElement(yh,_.__assign({},a,r,{alt:i?o:""})))},_e;(function(e){e[e.tiny=0]="tiny",e[e.extraExtraSmall=1]="extraExtraSmall",e[e.extraSmall=2]="extraSmall",e[e.small=3]="small",e[e.regular=4]="regular",e[e.large=5]="large",e[e.extraLarge=6]="extraLarge",e[e.size8=17]="size8",e[e.size10=9]="size10",e[e.size16=8]="size16",e[e.size24=10]="size24",e[e.size28=7]="size28",e[e.size32=11]="size32",e[e.size40=12]="size40",e[e.size48=13]="size48",e[e.size56=16]="size56",e[e.size72=14]="size72",e[e.size100=15]="size100",e[e.size120=18]="size120"})(_e||(_e={}));var kn;(function(e){e[e.none=0]="none",e[e.offline=1]="offline",e[e.online=2]="online",e[e.away=3]="away",e[e.dnd=4]="dnd",e[e.blocked=5]="blocked",e[e.busy=6]="busy"})(kn||(kn={}));var Se;(function(e){e[e.lightBlue=0]="lightBlue",e[e.blue=1]="blue",e[e.darkBlue=2]="darkBlue",e[e.teal=3]="teal",e[e.lightGreen=4]="lightGreen",e[e.green=5]="green",e[e.darkGreen=6]="darkGreen",e[e.lightPink=7]="lightPink",e[e.pink=8]="pink",e[e.magenta=9]="magenta",e[e.purple=10]="purple",e[e.black=11]="black",e[e.orange=12]="orange",e[e.red=13]="red",e[e.darkRed=14]="darkRed",e[e.transparent=15]="transparent",e[e.violet=16]="violet",e[e.lightRed=17]="lightRed",e[e.gold=18]="gold",e[e.burgundy=19]="burgundy",e[e.warmGray=20]="warmGray",e[e.coolGray=21]="coolGray",e[e.gray=22]="gray",e[e.cyan=23]="cyan",e[e.rust=24]="rust"})(Se||(Se={}));var Nt,Je;(function(e){e.size8="20px",e.size10="20px",e.size16="16px",e.size24="24px",e.size28="28px",e.size32="32px",e.size40="40px",e.size48="48px",e.size56="56px",e.size72="72px",e.size100="100px",e.size120="120px"})(Je||(Je={}));var ar;(function(e){e.size6="6px",e.size8="8px",e.size12="12px",e.size16="16px",e.size20="20px",e.size28="28px",e.size32="32px",e.border="2px"})(ar||(ar={}));var Eh=function(e){return{isSize8:e===_e.size8,isSize10:e===_e.size10||e===_e.tiny,isSize16:e===_e.size16,isSize24:e===_e.size24||e===_e.extraExtraSmall,isSize28:e===_e.size28||e===_e.extraSmall,isSize32:e===_e.size32,isSize40:e===_e.size40||e===_e.small,isSize48:e===_e.size48||e===_e.regular,isSize56:e===_e.size56,isSize72:e===_e.size72||e===_e.large,isSize100:e===_e.size100||e===_e.extraLarge,isSize120:e===_e.size120}},mT=(Nt={},Nt[_e.tiny]=10,Nt[_e.extraExtraSmall]=24,Nt[_e.extraSmall]=28,Nt[_e.small]=40,Nt[_e.regular]=48,Nt[_e.large]=72,Nt[_e.extraLarge]=100,Nt[_e.size8]=8,Nt[_e.size10]=10,Nt[_e.size16]=16,Nt[_e.size24]=24,Nt[_e.size28]=28,Nt[_e.size32]=32,Nt[_e.size40]=40,Nt[_e.size48]=48,Nt[_e.size56]=56,Nt[_e.size72]=72,Nt[_e.size100]=100,Nt[_e.size120]=120,Nt),gT=function(e){return{isAvailable:e===kn.online,isAway:e===kn.away,isBlocked:e===kn.blocked,isBusy:e===kn.busy,isDoNotDisturb:e===kn.dnd,isOffline:e===kn.offline}},E_=6,__=3,C_=40,S_=20,i2=Wt({cacheSize:100}),vT=p.forwardRef(function(e,t){var r=e.coinSize,n=e.isOutOfOffice,o=e.styles,i=e.presence,a=e.theme,s=e.presenceTitle,u=e.presenceColors,l=p.useRef(null),c=ro(t,l),d=Eh(e.size),f=!(d.isSize8||d.isSize10||d.isSize16||d.isSize24||d.isSize28||d.isSize32)&&(r?r>32:!0),h=r?r/__<C_?r/__+"px":C_+"px":"",m=r?r/E_<S_?r/E_+"px":S_+"px":"",y=r?{fontSize:m,lineHeight:h}:void 0,E=r?{width:h,height:h}:void 0,v=i2(o,{theme:a,presence:i,size:e.size,isOutOfOffice:n,presenceColors:u});return i===kn.none?null:p.createElement("div",{role:"presentation",className:v.presence,style:E,title:s,ref:c},f&&p.createElement(no,{className:v.presenceIcon,iconName:a2(e.presence,e.isOutOfOffice),style:y}))});vT.displayName="PersonaPresenceBase";function a2(e,t){if(e){var r="SkypeArrow";switch(kn[e]){case"online":return"SkypeCheck";case"away":return t?r:"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?r:""}return""}}var s2={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"},u2=function(e){var t,r,n,o,i,a,s=e.theme,u=e.presenceColors,l=s.semanticColors,c=s.fonts,d=Sr(s2,s),f=Eh(e.size),h=gT(e.presence),m=u&&u.available||"#6BB700",y=u&&u.away||"#FFAA44",E=u&&u.busy||"#C43148",v=u&&u.dnd||"#C50F1F",g=u&&u.offline||"#8A8886",C=u&&u.oof||"#B4009E",S=u&&u.background||l.bodyBackground,w=h.isOffline||e.isOutOfOffice&&(h.isAvailable||h.isBusy||h.isAway||h.isDoNotDisturb),I="1px",b="2px",k=f.isSize72||f.isSize100?b:I;return{presence:[d.presence,_.__assign(_.__assign({position:"absolute",height:ar.size12,width:ar.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid "+S,textAlign:"center",boxSizing:"content-box",backgroundClip:"border-box"},er()),{selectors:(t={},t[Z]={borderColor:"Window",backgroundColor:"WindowText"},t)}),(f.isSize8||f.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(r={},r[Z]={top:"9px",border:"1px solid WindowText"},r)},(f.isSize8||f.isSize10||f.isSize24||f.isSize28||f.isSize32)&&ps(ar.size8),(f.isSize40||f.isSize48)&&ps(ar.size12),f.isSize16&&{height:ar.size6,width:ar.size6,borderWidth:"1.5px"},f.isSize56&&ps(ar.size16),f.isSize72&&ps(ar.size20),f.isSize100&&ps(ar.size28),f.isSize120&&ps(ar.size32),h.isAvailable&&{backgroundColor:m,selectors:(n={},n[Z]=Uu("Highlight"),n)},h.isAway&&Uu(y),h.isBlocked&&[{selectors:(o={":after":f.isSize40||f.isSize48||f.isSize72||f.isSize100?{content:'""',width:"100%",height:k,backgroundColor:E,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},o[Z]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},o)}],h.isBusy&&Uu(E),h.isDoNotDisturb&&Uu(v),h.isOffline&&Uu(g),(w||h.isBlocked)&&[{backgroundColor:S,selectors:(i={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:k+" solid "+E,borderRadius:"50%",boxSizing:"border-box"}},i[Z]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},i)}],w&&h.isAvailable&&hs(k,m),w&&h.isBusy&&hs(k,E),w&&h.isAway&&hs(k,C),w&&h.isDoNotDisturb&&hs(k,v),w&&h.isOffline&&hs(k,g),w&&h.isOffline&&e.isOutOfOffice&&hs(k,C)],presenceIcon:[d.presenceIcon,{color:S,fontSize:"6px",lineHeight:ar.size12,verticalAlign:"top",selectors:(a={},a[Z]={color:"Window"},a)},f.isSize56&&{fontSize:"8px",lineHeight:ar.size16},f.isSize72&&{fontSize:c.small.fontSize,lineHeight:ar.size20},f.isSize100&&{fontSize:c.medium.fontSize,lineHeight:ar.size28},f.isSize120&&{fontSize:c.medium.fontSize,lineHeight:ar.size32},h.isAway&&{position:"relative",left:w?void 0:"1px"},w&&h.isAvailable&&fs(m),w&&h.isBusy&&fs(E),w&&h.isAway&&fs(C),w&&h.isDoNotDisturb&&fs(v),w&&h.isOffline&&fs(g),w&&h.isOffline&&e.isOutOfOffice&&fs(C)]}};function fs(e){return{color:e,borderColor:e}}function hs(e,t){return{selectors:{":before":{border:e+" solid "+t}}}}function ps(e){return{height:e,width:e}}function Uu(e){return{backgroundColor:e}}var w_=jt(vT,u2,void 0,{scope:"PersonaPresence"}),yT=[Se.lightBlue,Se.blue,Se.darkBlue,Se.teal,Se.green,Se.darkGreen,Se.lightPink,Se.pink,Se.magenta,Se.purple,Se.orange,Se.lightRed,Se.darkRed,Se.violet,Se.gold,Se.burgundy,Se.warmGray,Se.cyan,Se.rust,Se.coolGray],l2=yT.length;function c2(e){var t=Se.blue;if(!e)return t;for(var r=0,n=e.length-1;n>=0;n--){var o=e.charCodeAt(n),i=n%8;r^=(o<<i)+(o>>8-i)}return t=yT[r%l2],t}function d2(e){switch(e){case Se.lightBlue:return"#4F6BED";case Se.blue:return"#0078D4";case Se.darkBlue:return"#004E8C";case Se.teal:return"#038387";case Se.lightGreen:case Se.green:return"#498205";case Se.darkGreen:return"#0B6A0B";case Se.lightPink:return"#C239B3";case Se.pink:return"#E3008C";case Se.magenta:return"#881798";case Se.purple:return"#5C2E91";case Se.orange:return"#CA5010";case Se.red:return"#EE1111";case Se.lightRed:return"#D13438";case Se.darkRed:return"#A4262C";case Se.transparent:return"transparent";case Se.violet:return"#8764B8";case Se.gold:return"#986F0B";case Se.burgundy:return"#750B1C";case Se.warmGray:return"#7A7574";case Se.cyan:return"#005B70";case Se.rust:return"#8E562E";case Se.coolGray:return"#69797E";case Se.black:return"#1D1D1D";case Se.gray:return"#393939"}}function f2(e){var t=e.primaryText,r=e.text,n=e.initialsColor,o;return typeof n=="string"?o=n:(n=n!==void 0?n:c2(r||t),o=d2(n)),o}var ET=Wt({cacheSize:100}),h2=gt(function(e,t,r,n,o,i){return So(e,!i&&{backgroundColor:f2({text:n,initialsColor:t,primaryText:o}),color:r})}),_T={size:_e.size48,presence:kn.none,imageAlt:""};function p2(e){var t=e.onPhotoLoadingStateChange,r=e.imageUrl,n=p.useState(Kt.notLoaded),o=n[0],i=n[1];p.useEffect(function(){i(Kt.notLoaded)},[r]);var a=function(s){i(s),t==null||t(s)};return[o,a]}var CT=p.forwardRef(function(e,t){var r=Cu(_T,e),n=p2(r),o=n[0],i=n[1],a=m2(i),s=r.className,u=r.coinProps,l=r.showUnknownPersonaCoin,c=r.coinSize,d=r.styles,f=r.imageUrl,h=r.initialsColor,m=r.initialsTextColor,y=r.isOutOfOffice,E=r.onRenderCoin,v=E===void 0?a:E,g=r.onRenderPersonaCoin,C=g===void 0?v:g,S=r.onRenderInitials,w=S===void 0?T_:S,I=r.presence,b=r.presenceTitle,k=r.presenceColors,O=r.primaryText,L=r.showInitialsUntilImageLoads,se=r.text,B=r.theme,ae=r.size,G=Ve(r,Wr),oe=Ve(u||{},Wr),me=c?{width:c,height:c}:void 0,P=l,T={coinSize:c,isOutOfOffice:y,presence:I,presenceTitle:b,presenceColors:k,size:ae,theme:B},M=ET(d,{theme:B,className:u&&u.className?u.className:s,size:ae,coinSize:c,showUnknownPersonaCoin:l}),F=Boolean(o!==Kt.loaded&&(L&&f||!f||o===Kt.error||P));return p.createElement("div",_.__assign({role:"presentation"},G,{className:M.coin,ref:t}),ae!==_e.size8&&ae!==_e.size10&&ae!==_e.tiny?p.createElement("div",_.__assign({role:"presentation"},oe,{className:M.imageArea,style:me}),F&&p.createElement("div",{className:h2(M.initials,h,m,se,O,l),style:me,"aria-hidden":"true"},w(r,T_)),!P&&C(r,a),p.createElement(w_,_.__assign({},T))):r.presence?p.createElement(w_,_.__assign({},T)):p.createElement(no,{iconName:"Contact",className:M.size10WithoutPresenceIcon}),r.children)});CT.displayName="PersonaCoinBase";var m2=function(e){return function(t){var r=t.coinSize,n=t.styles,o=t.imageUrl,i=t.imageAlt,a=t.imageShouldFadeIn,s=t.imageShouldStartVisible,u=t.theme,l=t.showUnknownPersonaCoin,c=t.size,d=c===void 0?_T.size:c;if(!o)return null;var f=ET(n,{theme:u,size:d,showUnknownPersonaCoin:l}),h=r||mT[d];return p.createElement(yh,{className:f.image,imageFit:Pr.cover,src:o,width:h,height:h,alt:i,shouldFadeIn:a,shouldStartVisible:s,onLoadingStateChange:e})}},T_=function(e){var t=e.imageInitials,r=e.allowPhoneInitials,n=e.showUnknownPersonaCoin,o=e.text,i=e.primaryText,a=e.theme;if(n)return p.createElement(no,{iconName:"Help"});var s=Rt(a);return t=t||aM(o||i||"",s,r),t!==""?p.createElement("span",null,t):p.createElement(no,{iconName:"Contact"})},g2={coin:"ms-Persona-coin",imageArea:"ms-Persona-imageArea",image:"ms-Persona-image",initials:"ms-Persona-initials",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120"},v2=function(e){var t,r=e.className,n=e.theme,o=e.coinSize,i=n.palette,a=n.fonts,s=Eh(e.size),u=Sr(g2,n),l="rgb(234, 234, 234)",c="rgb(168, 0, 0)",d=o||e.size&&mT[e.size]||48;return{coin:[u.coin,a.medium,s.isSize8&&u.size8,s.isSize10&&u.size10,s.isSize16&&u.size16,s.isSize24&&u.size24,s.isSize28&&u.size28,s.isSize32&&u.size32,s.isSize40&&u.size40,s.isSize48&&u.size48,s.isSize56&&u.size56,s.isSize72&&u.size72,s.isSize100&&u.size100,s.isSize120&&u.size120,r],size10WithoutPresenceIcon:{fontSize:a.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[u.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:d,width:d},d<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[u.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},d<=10&&{overflow:"visible",background:"transparent",height:0,width:0},d>10&&{height:d,width:d}],initials:[u.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?c:i.white,fontSize:a.large.fontSize,fontWeight:$e.semibold,lineHeight:d===48?46:d,height:d,selectors:(t={},t[Z]=_.__assign(_.__assign({border:"1px solid WindowText"},er()),{color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"}),t.i={fontWeight:$e.semibold},t)},e.showUnknownPersonaCoin&&{backgroundColor:l},d<32&&{fontSize:a.xSmall.fontSize},d>=32&&d<40&&{fontSize:a.medium.fontSize},d>=40&&d<56&&{fontSize:a.mediumPlus.fontSize},d>=56&&d<72&&{fontSize:a.xLarge.fontSize},d>=72&&d<100&&{fontSize:a.xxLarge.fontSize},d>=100&&{fontSize:a.superLarge.fontSize}]}},y2=jt(CT,v2,void 0,{scope:"PersonaCoin"}),E2=Wt(),_2={size:_e.size48,presence:kn.none,imageAlt:"",showOverflowTooltip:!0},ST=p.forwardRef(function(e,t){var r=Cu(_2,e),n=p.useRef(null),o=ro(t,n),i=function(){return r.text||r.primaryText||""},a=function(yt,ft,En){var ao=ft&&ft(r,En);return ao?p.createElement("div",{dir:"auto",className:yt},ao):void 0},s=function(yt,ft){return ft===void 0&&(ft=!0),yt?ft?function(){return p.createElement(dT,{content:yt,overflowMode:Jl.Parent,directionalHint:Et.topLeftEdge},yt)}:function(){return p.createElement(p.Fragment,null,yt)}:void 0},u=function(yt){return p.createElement(y2,_.__assign({},yt))},l=s(i(),r.showOverflowTooltip),c=s(r.secondaryText,r.showOverflowTooltip),d=s(r.tertiaryText,r.showOverflowTooltip),f=s(r.optionalText,r.showOverflowTooltip),h=r.hidePersonaDetails,m=r.onRenderOptionalText,y=m===void 0?f:m,E=r.onRenderPrimaryText,v=E===void 0?l:E,g=r.onRenderSecondaryText,C=g===void 0?c:g,S=r.onRenderTertiaryText,w=S===void 0?d:S,I=r.onRenderPersonaCoin,b=I===void 0?u:I,k=r.size,O=r.allowPhoneInitials,L=r.className,se=r.coinProps,B=r.showUnknownPersonaCoin,ae=r.coinSize,G=r.styles,oe=r.imageAlt,me=r.imageInitials,P=r.imageShouldFadeIn,T=r.imageShouldStartVisible,M=r.imageUrl,F=r.initialsColor,N=r.initialsTextColor,x=r.isOutOfOffice,Y=r.onPhotoLoadingStateChange,de=r.onRenderCoin,ye=r.onRenderInitials,V=r.presence,ke=r.presenceTitle,Ae=r.presenceColors,Le=r.showInitialsUntilImageLoads,ot=r.showSecondaryText,it=r.theme,Ze=_.__assign({allowPhoneInitials:O,showUnknownPersonaCoin:B,coinSize:ae,imageAlt:oe,imageInitials:me,imageShouldFadeIn:P,imageShouldStartVisible:T,imageUrl:M,initialsColor:F,initialsTextColor:N,onPhotoLoadingStateChange:Y,onRenderCoin:de,onRenderInitials:ye,presence:V,presenceTitle:ke,showInitialsUntilImageLoads:Le,size:k,text:i(),isOutOfOffice:x,presenceColors:Ae},se),ze=E2(G,{theme:it,className:L,showSecondaryText:ot,presence:V,size:k}),nr=Ve(r,Wr),Hn=p.createElement("div",{className:ze.details},a(ze.primaryText,v,l),a(ze.secondaryText,C,c),a(ze.tertiaryText,w,d),a(ze.optionalText,y,f),r.children);return p.createElement("div",_.__assign({},nr,{ref:o,className:ze.root,style:ae?{height:ae,minWidth:ae}:void 0}),b(Ze,b),(!h||k===_e.size8||k===_e.size10||k===_e.tiny)&&Hn)});ST.displayName="PersonaBase";var C2={root:"ms-Persona",size8:"ms-Persona--size8",size10:"ms-Persona--size10",size16:"ms-Persona--size16",size24:"ms-Persona--size24",size28:"ms-Persona--size28",size32:"ms-Persona--size32",size40:"ms-Persona--size40",size48:"ms-Persona--size48",size56:"ms-Persona--size56",size72:"ms-Persona--size72",size100:"ms-Persona--size100",size120:"ms-Persona--size120",available:"ms-Persona--online",away:"ms-Persona--away",blocked:"ms-Persona--blocked",busy:"ms-Persona--busy",doNotDisturb:"ms-Persona--donotdisturb",offline:"ms-Persona--offline",details:"ms-Persona-details",primaryText:"ms-Persona-primaryText",secondaryText:"ms-Persona-secondaryText",tertiaryText:"ms-Persona-tertiaryText",optionalText:"ms-Persona-optionalText",textContent:"ms-Persona-textContent"},S2=function(e){var t=e.className,r=e.showSecondaryText,n=e.theme,o=n.semanticColors,i=n.fonts,a=Sr(C2,n),s=Eh(e.size),u=gT(e.presence),l="16px",c={color:o.bodySubtext,fontWeight:$e.regular,fontSize:i.small.fontSize};return{root:[a.root,n.fonts.medium,Rd,{color:o.bodyText,position:"relative",height:Je.size48,minWidth:Je.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},s.isSize8&&[a.size8,{height:Je.size8,minWidth:Je.size8}],s.isSize10&&[a.size10,{height:Je.size10,minWidth:Je.size10}],s.isSize16&&[a.size16,{height:Je.size16,minWidth:Je.size16}],s.isSize24&&[a.size24,{height:Je.size24,minWidth:Je.size24}],s.isSize24&&r&&{height:"36px"},s.isSize28&&[a.size28,{height:Je.size28,minWidth:Je.size28}],s.isSize28&&r&&{height:"32px"},s.isSize32&&[a.size32,{height:Je.size32,minWidth:Je.size32}],s.isSize40&&[a.size40,{height:Je.size40,minWidth:Je.size40}],s.isSize48&&a.size48,s.isSize56&&[a.size56,{height:Je.size56,minWidth:Je.size56}],s.isSize72&&[a.size72,{height:Je.size72,minWidth:Je.size72}],s.isSize100&&[a.size100,{height:Je.size100,minWidth:Je.size100}],s.isSize120&&[a.size120,{height:Je.size120,minWidth:Je.size120}],u.isAvailable&&a.available,u.isAway&&a.away,u.isBlocked&&a.blocked,u.isBusy&&a.busy,u.isDoNotDisturb&&a.doNotDisturb,u.isOffline&&a.offline,t],details:[a.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(s.isSize8||s.isSize10)&&{paddingLeft:17},(s.isSize24||s.isSize28||s.isSize32)&&{padding:"0 8px"},(s.isSize40||s.isSize48)&&{padding:"0 12px"}],primaryText:[a.primaryText,Cs,{color:o.bodyText,fontWeight:$e.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},r&&{height:l,lineHeight:l,overflowX:"hidden"},(s.isSize8||s.isSize10)&&{fontSize:i.small.fontSize,lineHeight:Je.size8},s.isSize16&&{lineHeight:Je.size28},(s.isSize24||s.isSize28||s.isSize32||s.isSize40||s.isSize48)&&r&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.xLarge.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&r&&{height:22}],secondaryText:[a.secondaryText,Cs,c,(s.isSize8||s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&{display:"none"},r&&{display:"block",height:l,lineHeight:l,overflowX:"hidden"},s.isSize24&&r&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.medium.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&r&&{height:18}],tertiaryText:[a.tertiaryText,Cs,c,{display:"none",fontSize:i.medium.fontSize},(s.isSize72||s.isSize100||s.isSize120)&&{display:"block"}],optionalText:[a.optionalText,Cs,c,{display:"none",fontSize:i.medium.fontSize},(s.isSize100||s.isSize120)&&{display:"block"}],textContent:[a.textContent,Cs]}},el=jt(ST,S2,void 0,{scope:"Persona"}),Jm={none:0,all:1,inputOnly:2},gr;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(gr||(gr={}));var ed="data-is-focusable",w2="data-disable-click-on-enter",vp="data-focuszone-id",co="tabindex",yp="data-no-vertical-wrap",Ep="data-no-horizontal-wrap",_p=999999999,Hu=-999999999,Cp,T2="ms-FocusZone";function b2(e,t){var r;typeof MouseEvent=="function"?r=new MouseEvent("click",{ctrlKey:t==null?void 0:t.ctrlKey,metaKey:t==null?void 0:t.metaKey,shiftKey:t==null?void 0:t.shiftKey,altKey:t==null?void 0:t.altKey,bubbles:t==null?void 0:t.bubbles,cancelable:t==null?void 0:t.cancelable}):(r=document.createEvent("MouseEvents"),r.initMouseEvent("click",t?t.bubbles:!1,t?t.cancelable:!1,window,0,0,0,0,0,t?t.ctrlKey:!1,t?t.altKey:!1,t?t.shiftKey:!1,t?t.metaKey:!1,0,null)),e.dispatchEvent(r)}function I2(){return Cp||(Cp=So({selectors:{":focus":{outline:"none"}}},T2)),Cp}var zu={},td=new Set,k2=["text","number","password","email","tel","url","search","textarea"],Uo=!1,wT=function(e){_.__extends(t,e);function t(r){var n,o,i,a,s=e.call(this,r)||this;s._root=p.createRef(),s._mergedRef=qw(),s._onFocus=function(l){if(!s._portalContainsElement(l.target)){var c=s.props,d=c.onActiveElementChanged,f=c.doNotAllowFocusEventToPropagate,h=c.stopFocusPropagation,m=c.onFocusNotification,y=c.onFocus,E=c.shouldFocusInnerElementWhenReceivedFocus,v=c.defaultTabbableElement,g=s._isImmediateDescendantOfZone(l.target),C;if(g)C=l.target;else for(var S=l.target;S&&S!==s._root.current;){if(yo(S)&&s._isImmediateDescendantOfZone(S)){C=S;break}S=mo(S,Uo)}if(E&&l.target===s._root.current){var w=v&&typeof v=="function"&&s._root.current&&v(s._root.current);w&&yo(w)?(C=w,w.focus()):(s.focus(!0),s._activeElement&&(C=null))}var I=!s._activeElement;C&&C!==s._activeElement&&((g||I)&&s._setFocusAlignment(C,!0,!0),s._activeElement=C,I&&s._updateTabIndexes()),d&&d(s._activeElement,l),(h||f)&&l.stopPropagation(),y?y(l):m&&m()}},s._onBlur=function(){s._setParkedFocus(!1)},s._onMouseDown=function(l){if(!s._portalContainsElement(l.target)){var c=s.props.disabled;if(!c){for(var d=l.target,f=[];d&&d!==s._root.current;)f.push(d),d=mo(d,Uo);for(;f.length&&(d=f.pop(),d&&yo(d)&&s._setActiveElement(d,!0),!Ko(d)););}}},s._onKeyDown=function(l,c){if(!s._portalContainsElement(l.target)){var d=s.props,f=d.direction,h=d.disabled,m=d.isInnerZoneKeystroke,y=d.pagingSupportDisabled,E=d.shouldEnterInnerZone;if(!h&&(s.props.onKeyDown&&s.props.onKeyDown(l),!l.isDefaultPrevented()&&!(s._getDocument().activeElement===s._root.current&&s._isInnerZone))){if((E&&E(l)||m&&m(l))&&s._isImmediateDescendantOfZone(l.target)){var v=s._getFirstInnerZone();if(v){if(!v.focus(!0))return}else if(Dv(l.target)){if(!s.focusElement(tn(l.target,l.target.firstChild,!0)))return}else return}else{if(l.altKey)return;switch(l.which){case ve.space:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(l.target,l))break;return;case ve.left:if(f!==gr.vertical&&(s._preventDefaultWhenHandled(l),s._moveFocusLeft(c)))break;return;case ve.right:if(f!==gr.vertical&&(s._preventDefaultWhenHandled(l),s._moveFocusRight(c)))break;return;case ve.up:if(f!==gr.horizontal&&(s._preventDefaultWhenHandled(l),s._moveFocusUp()))break;return;case ve.down:if(f!==gr.horizontal&&(s._preventDefaultWhenHandled(l),s._moveFocusDown()))break;return;case ve.pageDown:if(!y&&s._moveFocusPaging(!0))break;return;case ve.pageUp:if(!y&&s._moveFocusPaging(!1))break;return;case ve.tab:if(s.props.allowTabKey||s.props.handleTabKey===Jm.all||s.props.handleTabKey===Jm.inputOnly&&s._isElementInput(l.target)){var g=!1;if(s._processingTabKey=!0,f===gr.vertical||!s._shouldWrapFocus(s._activeElement,Ep))g=l.shiftKey?s._moveFocusUp():s._moveFocusDown();else{var C=Rt(c)?!l.shiftKey:l.shiftKey;g=C?s._moveFocusLeft(c):s._moveFocusRight(c)}if(s._processingTabKey=!1,g)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case ve.home:if(s._isContentEditableElement(l.target)||s._isElementInput(l.target)&&!s._shouldInputLoseFocus(l.target,!1))return!1;var S=s._root.current&&s._root.current.firstChild;if(s._root.current&&S&&s.focusElement(tn(s._root.current,S,!0)))break;return;case ve.end:if(s._isContentEditableElement(l.target)||s._isElementInput(l.target)&&!s._shouldInputLoseFocus(l.target,!0))return!1;var w=s._root.current&&s._root.current.lastChild;if(s._root.current&&s.focusElement(on(s._root.current,w,!0,!0,!0)))break;return;case ve.enter:if(s._shouldRaiseClicksOnEnter&&s._tryInvokeClickForFocusable(l.target,l))break;return;default:return}}l.preventDefault(),l.stopPropagation()}}},s._getHorizontalDistanceFromCenter=function(l,c,d){var f=s._focusAlignment.left||s._focusAlignment.x||0,h=Math.floor(d.top),m=Math.floor(c.bottom),y=Math.floor(d.bottom),E=Math.floor(c.top),v=l&&h>m,g=!l&&y<E;return v||g?f>=d.left&&f<=d.left+d.width?0:Math.abs(d.left+d.width/2-f):s._shouldWrapFocus(s._activeElement,yp)?_p:Hu},Za(s),s._id=Zt("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var u=(o=(n=r.shouldRaiseClicks)!==null&&n!==void 0?n:t.defaultProps.shouldRaiseClicks)!==null&&o!==void 0?o:!0;return s._shouldRaiseClicksOnEnter=(i=r.shouldRaiseClicksOnEnter)!==null&&i!==void 0?i:u,s._shouldRaiseClicksOnSpace=(a=r.shouldRaiseClicksOnSpace)!==null&&a!==void 0?a:u,s}return t.getOuterZones=function(){return td.size},t._onKeyDownCapture=function(r){r.which===ve.tab&&td.forEach(function(n){return n._updateTabIndexes()})},t.prototype.componentDidMount=function(){var r=this._root.current;if(zu[this._id]=this,r){for(var n=mo(r,Uo);n&&n!==this._getDocument().body&&n.nodeType===1;){if(Ko(n)){this._isInnerZone=!0;break}n=mo(n,Uo)}this._isInnerZone||(td.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="string"?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var r=this._root.current,n=this._getDocument();if((this._activeElement&&!jo(this._root.current,this._activeElement,Uo)||this._defaultFocusElement&&!jo(this._root.current,this._defaultFocusElement,Uo))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||n.activeElement===null||n.activeElement===r)){var o=iP(r,this._lastIndexPath);o?(this._setActiveElement(o,!0),o.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete zu[this._id],this._isInnerZone||(td.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var r=this,n=this.props,o=n.as,i=n.elementType,a=n.rootProps,s=n.ariaDescribedBy,u=n.ariaLabelledBy,l=n.className,c=Ve(this.props,vt),d=o||i||"div";this._evaluateFocusBeforeRender();var f=wF();return p.createElement(d,_.__assign({"aria-labelledby":u,"aria-describedby":s},c,a,{className:Pt(I2(),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(h){return r._onKeyDown(h,f)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(r,n){if(r===void 0&&(r=!1),n===void 0&&(n=!1),this._root.current)if(!r&&this._root.current.getAttribute(ed)==="true"&&this._isInnerZone){var o=this._getOwnerZone(this._root.current);if(o!==this._root.current){var i=zu[o.getAttribute(vp)];return!!i&&i.focusElement(this._root.current)}return!1}else{if(!r&&this._activeElement&&jo(this._root.current,this._activeElement)&&yo(this._activeElement)&&(!n||Pw(this._activeElement)))return this._activeElement.focus(),!0;var a=this._root.current.firstChild;return this.focusElement(tn(this._root.current,a,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},t.prototype.focusLast=function(){if(this._root.current){var r=this._root.current&&this._root.current.lastChild;return this.focusElement(on(this._root.current,r,!0,!0,!0))}return!1},t.prototype.focusElement=function(r,n){var o=this.props,i=o.onBeforeFocus,a=o.shouldReceiveFocus;return a&&!a(r)||i&&!i(r)?!1:r?(this._setActiveElement(r,n),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(r){this._focusAlignment=r},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var r=this._root.current,n=this._getDocument();if(n){var o=n.activeElement;if(o!==r){var i=jo(r,o,!1);this._lastIndexPath=i?aP(r,o):void 0}}},t.prototype._setParkedFocus=function(r){var n=this._root.current;n&&this._isParked!==r&&(this._isParked=r,r?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(r,n){var o=this._activeElement;this._activeElement=r,o&&(Ko(o)&&this._updateTabIndexes(o),o.tabIndex=-1),this._activeElement&&((!this._focusAlignment||n)&&this._setFocusAlignment(r,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(r){this.props.preventDefaultWhenHandled&&r.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(r,n){var o=r;if(o===this._root.current)return!1;do{if(o.tagName==="BUTTON"||o.tagName==="A"||o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(o)&&o.getAttribute(ed)==="true"&&o.getAttribute(w2)!=="true")return b2(o,n),!0;o=mo(o,Uo)}while(o!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(r){if(r=r||this._activeElement||this._root.current,!r)return null;if(Ko(r))return zu[r.getAttribute(vp)];for(var n=r.firstElementChild;n;){if(Ko(n))return zu[n.getAttribute(vp)];var o=this._getFirstInnerZone(n);if(o)return o;n=n.nextElementSibling}return null},t.prototype._moveFocus=function(r,n,o,i){i===void 0&&(i=!0);var a=this._activeElement,s=-1,u=void 0,l=!1,c=this.props.direction===gr.bidirectional;if(!a||!this._root.current||this._isElementInput(a)&&!this._shouldInputLoseFocus(a,r))return!1;var d=c?a.getBoundingClientRect():null;do if(a=r?tn(this._root.current,a):on(this._root.current,a),c){if(a){var f=a.getBoundingClientRect(),h=n(d,f);if(h===-1&&s===-1){u=a;break}if(h>-1&&(s===-1||h<s)&&(s=h,u=a),s>=0&&h<0)break}}else{u=a;break}while(a);if(u&&u!==this._activeElement)l=!0,this.focusElement(u);else if(this.props.isCircularNavigation&&i)return r?this.focusElement(tn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(on(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return l},t.prototype._moveFocusDown=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(i,a){var s=-1,u=Math.floor(a.top),l=Math.floor(i.bottom);return u<l?r._shouldWrapFocus(r._activeElement,yp)?_p:Hu:((n===-1&&u>=l||u===n)&&(n=u,o>=a.left&&o<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-o)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var r=this,n=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(i,a){var s=-1,u=Math.floor(a.bottom),l=Math.floor(a.top),c=Math.floor(i.top);return u>c?r._shouldWrapFocus(r._activeElement,yp)?_p:Hu:((n===-1&&u<=c||l===n)&&(n=l,o>=a.left&&o<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-o)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusLeft=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,Ep);return this._moveFocus(Rt(r),function(i,a){var s=-1,u;return Rt(r)?u=parseFloat(a.top.toFixed(3))<parseFloat(i.bottom.toFixed(3)):u=parseFloat(a.bottom.toFixed(3))>parseFloat(i.top.toFixed(3)),u&&a.right<=i.right&&n.props.direction!==gr.vertical?s=i.right-a.right:o||(s=Hu),s},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusRight=function(r){var n=this,o=this._shouldWrapFocus(this._activeElement,Ep);return this._moveFocus(!Rt(r),function(i,a){var s=-1,u;return Rt(r)?u=parseFloat(a.bottom.toFixed(3))>parseFloat(i.top.toFixed(3)):u=parseFloat(a.top.toFixed(3))<parseFloat(i.bottom.toFixed(3)),u&&a.left>=i.left&&n.props.direction!==gr.vertical?s=a.left-i.left:o||(s=Hu),s},void 0,o)?(this._setFocusAlignment(this._activeElement,!0,!1),!0):!1},t.prototype._moveFocusPaging=function(r,n){n===void 0&&(n=!0);var o=this._activeElement;if(!o||!this._root.current||this._isElementInput(o)&&!this._shouldInputLoseFocus(o,r))return!1;var i=DR(o);if(!i)return!1;var a=-1,s=void 0,u=-1,l=-1,c=i.clientHeight,d=o.getBoundingClientRect();do if(o=r?tn(this._root.current,o):on(this._root.current,o),o){var f=o.getBoundingClientRect(),h=Math.floor(f.top),m=Math.floor(d.bottom),y=Math.floor(f.bottom),E=Math.floor(d.top),v=this._getHorizontalDistanceFromCenter(r,d,f),g=r&&h>m+c,C=!r&&y<E-c;if(g||C)break;v>-1&&(r&&h>u?(u=h,a=v,s=o):!r&&y<l?(l=y,a=v,s=o):(a===-1||v<=a)&&(a=v,s=o))}while(o);var S=!1;if(s&&s!==this._activeElement)S=!0,this.focusElement(s),this._setFocusAlignment(s,!1,!0);else if(this.props.isCircularNavigation&&n)return r?this.focusElement(tn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(on(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return S},t.prototype._setFocusAlignment=function(r,n,o){if(this.props.direction===gr.bidirectional&&(!this._focusAlignment||n||o)){var i=r.getBoundingClientRect(),a=i.left+i.width/2,s=i.top+i.height/2;this._focusAlignment||(this._focusAlignment={left:a,top:s}),n&&(this._focusAlignment.left=a),o&&(this._focusAlignment.top=s)}},t.prototype._isImmediateDescendantOfZone=function(r){return this._getOwnerZone(r)===this._root.current},t.prototype._getOwnerZone=function(r){for(var n=mo(r,Uo);n&&n!==this._root.current&&n!==this._getDocument().body;){if(Ko(n))return n;n=mo(n,Uo)}return n},t.prototype._updateTabIndexes=function(r){!this._activeElement&&this.props.defaultTabbableElement&&typeof this.props.defaultTabbableElement=="function"&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!r&&this._root.current&&(this._defaultFocusElement=null,r=this._root.current,this._activeElement&&!jo(r,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!yo(this._activeElement)&&(this._activeElement=null);for(var n=r&&r.children,o=0;n&&o<n.length;o++){var i=n[o];Ko(i)?i.getAttribute(ed)==="true"&&(!this._isInnerZone&&(!this._activeElement&&!this._defaultFocusElement||this._activeElement===i)?(this._defaultFocusElement=i,i.getAttribute(co)!=="0"&&i.setAttribute(co,"0")):i.getAttribute(co)!=="-1"&&i.setAttribute(co,"-1")):(i.getAttribute&&i.getAttribute(ed)==="false"&&i.setAttribute(co,"-1"),yo(i)?this.props.disabled?i.setAttribute(co,"-1"):!this._isInnerZone&&(!this._activeElement&&!this._defaultFocusElement||this._activeElement===i)?(this._defaultFocusElement=i,i.getAttribute(co)!=="0"&&i.setAttribute(co,"0")):i.getAttribute(co)!=="-1"&&i.setAttribute(co,"-1"):i.tagName==="svg"&&i.getAttribute("focusable")!=="false"&&i.setAttribute("focusable","false")),this._updateTabIndexes(i)}},t.prototype._isContentEditableElement=function(r){return r&&r.getAttribute("contenteditable")==="true"},t.prototype._isElementInput=function(r){return!!(r&&r.tagName&&(r.tagName.toLowerCase()==="input"||r.tagName.toLowerCase()==="textarea"))},t.prototype._shouldInputLoseFocus=function(r,n){if(!this._processingTabKey&&r&&r.type&&k2.indexOf(r.type.toLowerCase())>-1){var o=r.selectionStart,i=r.selectionEnd,a=o!==i,s=r.value,u=r.readOnly;if(a||o>0&&!n&&!u||o!==s.length&&n&&!u||this.props.handleTabKey&&!(this.props.shouldInputLoseFocusOnArrowKey&&this.props.shouldInputLoseFocusOnArrowKey(r)))return!1}return!0},t.prototype._shouldWrapFocus=function(r,n){return this.props.checkForNoWrap?Mw(r,n):!0},t.prototype._portalContainsElement=function(r){return r&&!!this._root.current&&xv(r,this._root.current)},t.prototype._getDocument=function(){return gn(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:gr.bidirectional,shouldRaiseClicks:!0},t}(p.Component),Br;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Br||(Br={}));function tc(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function si(e){return!!(e.subMenuProps||e.items)}function bo(e){return!!(e.isDisabled||e.disabled)}function TT(e){var t=tc(e),r=t!==null;return r?"menuitemcheckbox":"menuitem"}var b_=function(e){var t=e.item,r=e.classNames,n=t.iconProps;return p.createElement(no,_.__assign({},n,{className:r.icon}))},A2=function(e){var t=e.item,r=e.hasIcons;return r?t.onRenderIcon?t.onRenderIcon(e,b_):b_(e):null},R2=function(e){var t=e.onCheckmarkClick,r=e.item,n=e.classNames,o=tc(r);if(t){var i=function(a){return t(r,a)};return p.createElement(no,{iconName:r.canCheck!==!1&&o?"CheckMark":"",className:n.checkmarkIcon,onClick:i})}return null},P2=function(e){var t=e.item,r=e.classNames;return t.text||t.name?p.createElement("span",{className:r.label},t.text||t.name):null},M2=function(e){var t=e.item,r=e.classNames;return t.secondaryText?p.createElement("span",{className:r.secondaryText},t.secondaryText):null},F2=function(e){var t=e.item,r=e.classNames,n=e.theme;return si(t)?p.createElement(no,_.__assign({iconName:Rt(n)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:r.subMenuIcon})):null},N2=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n.openSubMenu=function(){var o=n.props,i=o.item,a=o.openSubMenu,s=o.getSubmenuTarget;if(s){var u=s();si(i)&&a&&u&&a(i,u)}},n.dismissSubMenu=function(){var o=n.props,i=o.item,a=o.dismissSubMenu;si(i)&&a&&a()},n.dismissMenu=function(o){var i=n.props.dismissMenu;i&&i(void 0,o)},Za(n),n}return t.prototype.render=function(){var r=this.props,n=r.item,o=r.classNames,i=n.onRenderContent||this._renderLayout;return p.createElement("div",{className:n.split?o.linkContentMenu:o.linkContent},i(this.props,{renderCheckMarkIcon:R2,renderItemIcon:A2,renderItemName:P2,renderSecondaryText:M2,renderSubMenuIcon:F2}))},t.prototype._renderLayout=function(r,n){return p.createElement(p.Fragment,null,n.renderCheckMarkIcon(r),n.renderItemIcon(r),n.renderItemName(r),n.renderSecondaryText(r),n.renderSubMenuIcon(r))},t}(p.Component),x2=gt(function(e){return Ja({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),bi=36,I_=$w(0,jw),D2=gt(function(e){var t,r,n,o,i,a=e.semanticColors,s=e.fonts,u=e.palette,l=a.menuItemBackgroundHovered,c=a.menuItemTextHovered,d=a.menuItemBackgroundPressed,f=a.bodyDivider,h={item:[s.medium,{color:a.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[Ro(e),s.medium,{color:a.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:bi,lineHeight:bi,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Z]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:l,color:c,selectors:{".ms-ContextualMenu-icon":{color:u.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootFocused:{backgroundColor:u.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:u.neutralPrimary}}},rootPressed:{backgroundColor:d,selectors:{".ms-ContextualMenu-icon":{color:u.themeDark},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootExpanded:{backgroundColor:d,color:a.bodyTextChecked,selectors:(r={".ms-ContextualMenu-submenuIcon":(n={},n[Z]={color:"inherit"},n)},r[Z]=_.__assign({},er()),r)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:bi,fontSize:Eo.medium,width:Eo.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(o={},o[I_]={fontSize:Eo.large,width:Eo.large},o)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:bi,lineHeight:bi,color:u.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Eo.small,selectors:(i={":hover":{color:u.neutralPrimary},":active":{color:u.neutralPrimary}},i[I_]={fontSize:Eo.medium},i)},splitButtonFlexContainer:[Ro(e),{display:"flex",height:bi,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return li(h)}),k_="28px",O2=$w(0,jw),L2=gt(function(e){var t;return Ja(x2(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[O2]={right:32},t)},divider:{height:16,width:1}})}),B2={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},U2=gt(function(e,t,r,n,o,i,a,s,u,l,c,d){var f,h,m,y,E=D2(e),v=Sr(B2,e);return Ja({item:[v.item,E.item,a],divider:[v.divider,E.divider,s],root:[v.root,E.root,n&&[v.isChecked,E.rootChecked],o&&E.anchorLink,r&&[v.isExpanded,E.rootExpanded],t&&[v.isDisabled,E.rootDisabled],!t&&!r&&[{selectors:(f={":hover":E.rootHovered,":active":E.rootPressed},f["."+kr+" &:focus, ."+kr+" &:focus:hover"]=E.rootFocused,f["."+kr+" &:hover"]={background:"inherit;"},f)}],d],splitPrimary:[E.root,{width:"calc(100% - "+k_+")"},n&&["is-checked",E.rootChecked],(t||c)&&["is-disabled",E.rootDisabled],!(t||c)&&!n&&[{selectors:(h={":hover":E.rootHovered},h[":hover ~ ."+v.splitMenu]=E.rootHovered,h[":active"]=E.rootPressed,h["."+kr+" &:focus, ."+kr+" &:focus:hover"]=E.rootFocused,h["."+kr+" &:hover"]={background:"inherit;"},h)}]],splitMenu:[v.splitMenu,E.root,{flexBasis:"0",padding:"0 8px",minWidth:k_},r&&["is-expanded",E.rootExpanded],t&&["is-disabled",E.rootDisabled],!t&&!r&&[{selectors:(m={":hover":E.rootHovered,":active":E.rootPressed},m["."+kr+" &:focus, ."+kr+" &:focus:hover"]=E.rootFocused,m["."+kr+" &:hover"]={background:"inherit;"},m)}]],anchorLink:E.anchorLink,linkContent:[v.linkContent,E.linkContent],linkContentMenu:[v.linkContentMenu,E.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&E.iconColor,E.icon,u,t&&[v.isDisabled,E.iconDisabled]],iconColor:E.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&E.checkmarkIcon,E.icon,u],subMenuIcon:[v.subMenuIcon,E.subMenuIcon,l,r&&{color:e.palette.neutralPrimary},t&&[E.iconDisabled]],label:[v.label,E.label],secondaryText:[v.secondaryText,E.secondaryText],splitContainer:[E.splitButtonFlexContainer,!t&&!n&&[{selectors:(y={},y["."+kr+" &:focus, ."+kr+" &:focus:hover"]=E.rootFocused,y)}]],screenReaderText:[v.screenReaderText,E.screenReaderText,Hv,{visibility:"hidden"}]})}),bT=function(e){var t=e.theme,r=e.disabled,n=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,u=e.dividerClassName,l=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,f=e.className;return U2(t,r,n,o,i,a,s,u,l,c,d,f)},rc=jt(N2,bT,void 0,{scope:"ContextualMenuItem"}),Vv=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n._onItemMouseEnter=function(o){var i=n.props,a=i.item,s=i.onItemMouseEnter;s&&s(a,o,o.currentTarget)},n._onItemClick=function(o){var i=n.props,a=i.item,s=i.onItemClickBase;s&&s(a,o,o.currentTarget)},n._onItemMouseLeave=function(o){var i=n.props,a=i.item,s=i.onItemMouseLeave;s&&s(a,o)},n._onItemKeyDown=function(o){var i=n.props,a=i.item,s=i.onItemKeyDown;s&&s(a,o)},n._onItemMouseMove=function(o){var i=n.props,a=i.item,s=i.onItemMouseMove;s&&s(a,o,o.currentTarget)},n._getSubmenuTarget=function(){},Za(n),n}return t.prototype.shouldComponentUpdate=function(r){return!Pv(r,this.props)},t}(p.Component),H2="ktp",A_="-",z2="data-ktp-target",K2="data-ktp-execute-target",G2="ktp-layer-id",ho;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(ho||(ho={}));var IT=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,r){r===void 0&&(r=!1);var n=t;r||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var o=this._getUniqueKtp(n);if(r?this.persistedKeytips[o.uniqueID]=o:this.keytips[o.uniqueID]=o,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=r?ho.PERSISTED_KEYTIP_ADDED:ho.KEYTIP_ADDED;Wo.raise(this,i,{keytip:n,uniqueID:o.uniqueID})}return o.uniqueID},e.prototype.update=function(t,r){var n=this.addParentOverflow(t),o=this._getUniqueKtp(n,r),i=this.keytips[r];i&&(o.keytip.visible=i.keytip.visible,this.keytips[r]=o,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[o.keytip.keySequences.toString()]=o.keytip,(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Wo.raise(this,ho.KEYTIP_UPDATED,{keytip:o.keytip,uniqueID:o.uniqueID}))},e.prototype.unregister=function(t,r,n){n===void 0&&(n=!1),n?delete this.persistedKeytips[r]:delete this.keytips[r],!n&&delete this.sequenceMapping[t.keySequences.toString()];var o=n?ho.PERSISTED_KEYTIP_REMOVED:ho.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Wo.raise(this,o,{keytip:t,uniqueID:r})},e.prototype.enterKeytipMode=function(){Wo.raise(this,ho.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Wo.raise(this,ho.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(r){return t.keytips[r].keytip})},e.prototype.addParentOverflow=function(t){var r=_.__spreadArray([],t.keySequences);if(r.pop(),r.length!==0){var n=this.sequenceMapping[r.toString()];if(n&&n.overflowSetSequence)return _.__assign(_.__assign({},t),{overflowSetSequence:n.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,r){Wo.raise(this,ho.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:r})},e.prototype._getUniqueKtp=function(t,r){return r===void 0&&(r=Zt()),{keytip:_.__assign({},t),uniqueID:r}},e._instance=new e,e}();function kT(e){return e.reduce(function(t,r){return t+A_+r.split("").join(A_)},H2)}function q2(e,t){var r=t.length,n=_.__spreadArray([],t).pop(),o=_.__spreadArray([],e);return KR(o,r-1,n)}function V2(e){var t=" "+G2;return e.length?t+" "+kT(e):t}function W2(e){var t=p.useRef(),r=e.keytipProps?_.__assign({disabled:e.disabled},e.keytipProps):void 0,n=hn(IT.getInstance()),o=Gv(e);$l(function(){t.current&&r&&((o==null?void 0:o.keytipProps)!==e.keytipProps||(o==null?void 0:o.disabled)!==e.disabled)&&n.update(r,t.current)}),$l(function(){return r&&(t.current=n.register(r)),function(){r&&n.unregister(r,t.current)}},[]);var i={ariaDescribedBy:void 0,keytipId:void 0};return r&&(i=j2(n,r,e.ariaDescribedBy)),i}function j2(e,t,r){var n=e.addParentOverflow(t),o=Tc(r,V2(n.keySequences)),i=_.__spreadArray([],n.keySequences);n.overflowSetSequence&&(i=q2(i,n.overflowSetSequence));var a=kT(i);return{ariaDescribedBy:o,keytipId:a}}var nc=function(e){var t,r=e.children,n=_.__rest(e,["children"]),o=W2(n),i=o.keytipId,a=o.ariaDescribedBy;return r((t={},t[z2]=i,t[K2]=i,t["aria-describedby"]=a,t))},$2=function(e){_.__extends(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._anchor=p.createRef(),r._getMemoizedMenuButtonKeytipProps=gt(function(n){return _.__assign(_.__assign({},n),{hasMenu:!0})}),r._getSubmenuTarget=function(){return r._anchor.current?r._anchor.current:void 0},r._onItemClick=function(n){var o=r.props,i=o.item,a=o.onItemClick;a&&a(i,n)},r._renderAriaDescription=function(n,o){return n?p.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,a=n.index,s=n.focusableElementIndex,u=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,d=n.contextualMenuItemAs,f=d===void 0?rc:d,h=n.expandedMenuItemKey,m=n.onItemClick,y=n.openSubMenu,E=n.dismissSubMenu,v=n.dismissMenu,g=o.rel;o.target&&o.target.toLowerCase()==="_blank"&&(g=g||"nofollow noopener noreferrer");var C=si(o),S=Ve(o,Lv),w=bo(o),I=o.itemProps,b=o.ariaDescription,k=o.keytipProps;k&&C&&(k=this._getMemoizedMenuButtonKeytipProps(k)),b&&(this._ariaDescriptionId=Zt());var O=Tc(o.ariaDescribedBy,b?this._ariaDescriptionId:void 0,S["aria-describedby"]),L={"aria-describedby":O};return p.createElement("div",null,p.createElement(nc,{keytipProps:o.keytipProps,ariaDescribedBy:O,disabled:w},function(se){return p.createElement("a",_.__assign({},L,S,se,{ref:r._anchor,href:o.href,target:o.target,rel:g,className:i.root,role:"menuitem","aria-haspopup":C||void 0,"aria-expanded":C?o.key===h:void 0,"aria-posinset":s+1,"aria-setsize":u,"aria-disabled":bo(o),style:o.style,onClick:r._onItemClick,onMouseEnter:r._onItemMouseEnter,onMouseLeave:r._onItemMouseLeave,onMouseMove:r._onItemMouseMove,onKeyDown:C?r._onItemKeyDown:void 0}),p.createElement(f,_.__assign({componentRef:o.componentRef,item:o,classNames:i,index:a,onCheckmarkClick:l&&m?m:void 0,hasIcons:c,openSubMenu:y,dismissSubMenu:E,dismissMenu:v,getSubmenuTarget:r._getSubmenuTarget},I)),r._renderAriaDescription(b,i.screenReaderText))}))},t}(Vv),Q2=function(e){_.__extends(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._btn=p.createRef(),r._getMemoizedMenuButtonKeytipProps=gt(function(n){return _.__assign(_.__assign({},n),{hasMenu:!0})}),r._renderAriaDescription=function(n,o){return n?p.createElement("span",{id:r._ariaDescriptionId,className:o},n):null},r._getSubmenuTarget=function(){return r._btn.current?r._btn.current:void 0},r}return t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,a=n.index,s=n.focusableElementIndex,u=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,d=n.contextualMenuItemAs,f=d===void 0?rc:d,h=n.expandedMenuItemKey,m=n.onItemMouseDown,y=n.onItemClick,E=n.openSubMenu,v=n.dismissSubMenu,g=n.dismissMenu,C=tc(o),S=C!==null,w=TT(o),I=si(o),b=o.itemProps,k=o.ariaLabel,O=o.ariaDescription,L=Ve(o,Ji);delete L.disabled;var se=o.role||w;O&&(this._ariaDescriptionId=Zt());var B=Tc(o.ariaDescribedBy,O?this._ariaDescriptionId:void 0,L["aria-describedby"]),ae={className:i.root,onClick:this._onItemClick,onKeyDown:I?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(oe){return m?m(o,oe):void 0},onMouseMove:this._onItemMouseMove,href:o.href,title:o.title,"aria-label":k,"aria-describedby":B,"aria-haspopup":I||void 0,"aria-expanded":I?o.key===h:void 0,"aria-posinset":s+1,"aria-setsize":u,"aria-disabled":bo(o),"aria-checked":(se==="menuitemcheckbox"||se==="menuitemradio")&&S?!!C:void 0,"aria-selected":se==="menuitem"&&S?!!C:void 0,role:se,style:o.style},G=o.keytipProps;return G&&I&&(G=this._getMemoizedMenuButtonKeytipProps(G)),p.createElement(nc,{keytipProps:G,ariaDescribedBy:B,disabled:bo(o)},function(oe){return p.createElement("button",_.__assign({ref:r._btn},L,ae,oe),p.createElement(f,_.__assign({componentRef:o.componentRef,item:o,classNames:i,index:a,onCheckmarkClick:l&&y?y:void 0,hasIcons:c,openSubMenu:E,dismissSubMenu:v,dismissMenu:g,getSubmenuTarget:r._getSubmenuTarget},b)),r._renderAriaDescription(O,i.screenReaderText))})},t}(Vv),Y2=function(e){var t=e.theme,r=e.getClassNames,n=e.className;if(!t)throw new Error("Theme is undefined or null.");if(r){var o=r(t);return{wrapper:[o.wrapper],divider:[o.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},n],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}},X2=Wt(),AT=p.forwardRef(function(e,t){var r=e.styles,n=e.theme,o=e.getClassNames,i=e.className,a=X2(r,{theme:n,getClassNames:o,className:i});return p.createElement("span",{className:a.wrapper,ref:t},p.createElement("span",{className:a.divider}))});AT.displayName="VerticalDividerBase";var J2=jt(AT,Y2,void 0,{scope:"VerticalDivider"}),Z2=500,ex=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n._getMemoizedMenuButtonKeytipProps=gt(function(o){return _.__assign(_.__assign({},o),{hasMenu:!0})}),n._onItemKeyDown=function(o){var i=n.props,a=i.item,s=i.onItemKeyDown;o.which===ve.enter?(n._executeItemClick(o),o.preventDefault(),o.stopPropagation()):s&&s(a,o)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(o,i){return o?p.createElement("span",{id:n._ariaDescriptionId,className:i},o):null},n._onItemMouseEnterPrimary=function(o){var i=n.props,a=i.item,s=i.onItemMouseEnter;s&&s(_.__assign(_.__assign({},a),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseEnterIcon=function(o){var i=n.props,a=i.item,s=i.onItemMouseEnter;s&&s(a,o,n._splitButton)},n._onItemMouseMovePrimary=function(o){var i=n.props,a=i.item,s=i.onItemMouseMove;s&&s(_.__assign(_.__assign({},a),{subMenuProps:void 0,items:void 0}),o,n._splitButton)},n._onItemMouseMoveIcon=function(o){var i=n.props,a=i.item,s=i.onItemMouseMove;s&&s(a,o,n._splitButton)},n._onIconItemClick=function(o){var i=n.props,a=i.item,s=i.onItemClickBase;s&&s(a,o,n._splitButton?n._splitButton:o.currentTarget)},n._executeItemClick=function(o){var i=n.props,a=i.item,s=i.executeItemClick,u=i.onItemClick;if(!(a.disabled||a.isDisabled)){if(n._processingTouch&&u)return u(a,o);s&&s(a,o)}},n._onTouchStart=function(o){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(o)},n._onPointerDown=function(o){o.pointerType==="touch"&&(n._handleTouchAndPointerEvent(o),o.preventDefault(),o.stopImmediatePropagation())},n._async=new _u(n),n._events=new Wo(n),n}return t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var r=this,n=this.props,o=n.item,i=n.classNames,a=n.index,s=n.focusableElementIndex,u=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,d=n.onItemMouseLeave,f=n.expandedMenuItemKey,h=si(o),m=o.keytipProps;m&&(m=this._getMemoizedMenuButtonKeytipProps(m));var y=o.ariaDescription;return y&&(this._ariaDescriptionId=Zt()),p.createElement(nc,{keytipProps:m,disabled:bo(o)},function(E){return p.createElement("div",{"data-ktp-target":E["data-ktp-target"],ref:function(v){return r._splitButton=v},role:TT(o),"aria-label":o.ariaLabel,className:i.splitContainer,"aria-disabled":bo(o),"aria-expanded":h?o.key===f:void 0,"aria-haspopup":!0,"aria-describedby":Tc(o.ariaDescribedBy,y?r._ariaDescriptionId:void 0,E["aria-describedby"]),"aria-checked":o.isChecked||o.checked,"aria-posinset":s+1,"aria-setsize":u,onMouseEnter:r._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(r,_.__assign(_.__assign({},o),{subMenuProps:null,items:null})):void 0,onMouseMove:r._onItemMouseMovePrimary,onKeyDown:r._onItemKeyDown,onClick:r._executeItemClick,onTouchStart:r._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":o["aria-roledescription"]},r._renderSplitPrimaryButton(o,i,a,l,c),r._renderSplitDivider(o),r._renderSplitIconButton(o,i,a,E),r._renderAriaDescription(y,i.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(r,n,o,i,a){var s=this.props,u=s.contextualMenuItemAs,l=u===void 0?rc:u,c=s.onItemClick,d={key:r.key,disabled:bo(r)||r.primaryDisabled,name:r.name,text:r.text||r.name,secondaryText:r.secondaryText,className:n.splitPrimary,canCheck:r.canCheck,isChecked:r.isChecked,checked:r.checked,iconProps:r.iconProps,onRenderIcon:r.onRenderIcon,data:r.data,"data-is-focusable":!1},f=r.itemProps;return p.createElement("button",_.__assign({},Ve(d,Ji)),p.createElement(l,_.__assign({"data-is-focusable":!1,item:d,classNames:n,index:o,onCheckmarkClick:i&&c?c:void 0,hasIcons:a},f)))},t.prototype._renderSplitDivider=function(r){var n=r.getSplitButtonVerticalDividerClassNames||L2;return p.createElement(J2,{getClassNames:n})},t.prototype._renderSplitIconButton=function(r,n,o,i){var a=this.props,s=a.contextualMenuItemAs,u=s===void 0?rc:s,l=a.onItemMouseLeave,c=a.onItemMouseDown,d=a.openSubMenu,f=a.dismissSubMenu,h=a.dismissMenu,m={onClick:this._onIconItemClick,disabled:bo(r),className:n.splitMenu,subMenuProps:r.subMenuProps,submenuIconProps:r.submenuIconProps,split:!0,key:r.key},y=_.__assign(_.__assign({},Ve(m,Ji)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:l?l.bind(this,r):void 0,onMouseDown:function(v){return c?c(r,v):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":i["data-ktp-execute-target"],"aria-hidden":!0}),E=r.itemProps;return p.createElement("button",_.__assign({},y),p.createElement(u,_.__assign({componentRef:r.componentRef,item:m,classNames:n,index:o,hasIcons:!1,openSubMenu:d,dismissSubMenu:f,dismissMenu:h,getSubmenuTarget:this._getSubmenuTarget},E)))},t.prototype._handleTouchAndPointerEvent=function(r){var n=this,o=this.props.onTap;o&&o(r),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){n._processingTouch=!1,n._lastTouchTimeoutId=void 0},Z2)},t}(Vv),oc;(function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"})(oc||(oc={}));var tx=[479,639,1023,1365,1919,99999999],RT;function PT(){var e;return(e=RT)!==null&&e!==void 0?e:oc.large}function rx(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function nx(e){var t=oc.small;if(e){try{for(;rx(e)>tx[t];)t++}catch{t=PT()}RT=t}else throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");return t}var ox=function(e,t){var r=p.useState(PT()),n=r[0],o=r[1],i=p.useCallback(function(){var s=nx(mt(e.current));n!==s&&o(s)},[e,n]),a=bc();return cu(a,"resize",i),p.useEffect(function(){t===void 0&&i()},[t]),t??n},ix=p.createContext({}),ax=Wt(),sx=Wt(),ux={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Et.bottomAutoEdge,beakWidth:16};function MT(e,t){var r=t==null?void 0:t.target,n=e.subMenuProps?e.subMenuProps.items:e.items;if(n){for(var o=[],i=0,a=n;i<a.length;i++){var s=a[i];if(s.preferMenuTargetAsEventTarget){var u=s.onClick,l=_.__rest(s,["onClick"]);o.push(_.__assign(_.__assign({},l),{onClick:OT(u,r)}))}else o.push(s)}return o}}function lx(e){return e.some(function(t){return!!(t.canCheck||t.sectionProps&&t.sectionProps.items.some(function(r){return r.canCheck===!0}))})}var FT=250,NT="ContextualMenu",cx=gt(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return Tw.apply(void 0,_.__spreadArray([r,bT],e))}});function dx(e,t){var r=e.hidden,n=r===void 0?!1:r,o=e.onMenuDismissed,i=e.onMenuOpened,a=Gv(n),s=p.useRef(i),u=p.useRef(o),l=p.useRef(e);s.current=i,u.current=o,l.current=e,p.useEffect(function(){var c,d;n&&a===!1?(c=u.current)===null||c===void 0||c.call(u,l.current):!n&&a!==!1&&((d=s.current)===null||d===void 0||d.call(s,l.current))},[n,a]),p.useEffect(function(){return function(){var c;return(c=u.current)===null||c===void 0?void 0:c.call(u,l.current)}},[])}function fx(e,t){var r=e.hidden,n=e.items,o=e.theme,i=e.className,a=e.id,s=e.target,u=p.useState(),l=u[0],c=u[1],d=p.useState(),f=d[0],h=d[1],m=p.useState(),y=m[0],E=m[1],v=Vi(NT,a),g=p.useCallback(function(){E(void 0),c(void 0),h(void 0)},[]),C=p.useCallback(function(I,b,k){var O=I.key;l!==O&&(b.focus(),E(k),c(O),h(b))},[l]);p.useEffect(function(){r&&g()},[r,g]);var S=vx(t,g),w=function(){var I=DT(l,n),b=null;if(I&&(b={items:MT(I,{target:s}),target:f,onDismiss:S,isSubMenu:!0,id:v,shouldFocusOnMount:!0,shouldFocusOnContainer:y,directionalHint:Rt(o)?Et.leftTopEdge:Et.rightTopEdge,className:i,gapSpace:0,isBeakVisible:!1},I.subMenuProps&&Pi(b,I.subMenuProps),I.preferMenuTargetAsEventTarget)){var k=I.onItemClick;b.onItemClick=OT(k,s)}return b};return[l,C,w,S]}function hx(e){var t=e.delayUpdateFocusOnHover,r=e.hidden,n=p.useRef(!t),o=p.useRef(!1);p.useEffect(function(){n.current=!t,o.current=r?!1:!t&&o.current},[t,r]);var i=p.useCallback(function(){t&&(n.current=!1)},[t]);return[n,o,i]}function px(e,t,r){var n=e.hidden,o=e.onRestoreFocus,i=p.useRef(),a=p.useCallback(function(s){var u,l;o?o(s):s!=null&&s.documentContainsFocus&&((l=(u=i.current)===null||u===void 0?void 0:u.focus)===null||l===void 0||l.call(u))},[o]);return $l(function(){var s,u;if(n)i.current&&(a({originalElement:i.current,containsFocus:!0,documentContainsFocus:((u=gn())===null||u===void 0?void 0:u.hasFocus())||!1}),i.current=void 0);else{var l=t==null?void 0:t.document.activeElement;!(!((s=r.current)===null||s===void 0)&&s.contains(l))&&l.tagName!=="BODY"&&(i.current=l)}},[n,t==null?void 0:t.document.activeElement,a,r]),[a]}function mx(e,t,r,n){var o=e.theme,i=e.isSubMenu,a=e.focusZoneProps,s=a===void 0?{}:a,u=s.checkForNoWrap,l=s.direction,c=l===void 0?gr.vertical:l,d=p.useRef(),f=function(S,w,I){var b=!1;return w(S)&&(t(S,I),S.preventDefault(),S.stopPropagation(),b=!0),b},h=function(S){var w=Rt(o)?ve.right:ve.left;return S.which!==w||!i?!1:!!(c===gr.vertical||u&&!Mw(S.target,"data-no-horizontal-wrap"))},m=function(S){return S.which===ve.escape||h(S)||S.which===ve.up&&(S.altKey||S.metaKey)},y=function(S){d.current=R_(S);var w=S.which===ve.escape&&(a_()||i_());return f(S,m,w)},E=function(S){var w=d.current&&R_(S);return d.current=!1,!!w&&!(i_()||a_())},v=function(S){return f(S,E,!0)},g=function(S){var w=y(S);if(!(w||!r.current)){var I=!!(S.altKey||S.metaKey),b=S.which===ve.up,k=S.which===ve.down;if(!I&&(b||k)){var O=b?rP(r.current,r.current.lastChild,!0):tP(r.current,r.current.firstChild,!0);O&&(O.focus(),S.preventDefault(),S.stopPropagation())}}},C=function(S,w){var I=Rt(o)?ve.left:ve.right;!S.disabled&&(w.which===I||w.which===ve.enter||w.which===ve.down&&(w.altKey||w.metaKey))&&(n(S,w.currentTarget),w.preventDefault())};return[y,v,g,C]}function gx(e){var t=p.useRef(!0),r=p.useRef(),n=function(){!t.current&&r.current!==void 0?(e.clearTimeout(r.current),r.current=void 0):t.current=!1,r.current=e.setTimeout(function(){t.current=!0},FT)};return[n,t]}function vx(e,t){var r=p.useRef(!1);p.useEffect(function(){return r.current=!0,function(){r.current=!1}},[]);var n=function(o,i){i?e(o,i):r.current&&t()};return n}function yx(e,t){var r=e.subMenuHoverDelay,n=r===void 0?FT:r,o=p.useRef(void 0),i=function(){o.current!==void 0&&(t.clearTimeout(o.current),o.current=void 0)},a=function(s){o.current=t.setTimeout(function(){s(),i()},n)};return[i,a,o]}function Ex(e,t,r,n,o,i,a,s,u,l,c,d,f){var h=e.target,m=function(b,k,O){o.current&&(i.current=!0),!E()&&g(b,k,O)},y=function(b,k,O){var L=k.currentTarget;if(o.current)i.current=!0;else return;!t.current||r.current!==void 0||L===(n==null?void 0:n.document.activeElement)||g(b,k,O)},E=function(){return!t.current||!i.current},v=function(b,k){var O;if(!E()&&(l(),a===void 0))if(s.current.setActive)try{s.current.setActive()}catch{}else(O=s.current)===null||O===void 0||O.focus()},g=function(b,k,O){var L=O||k.currentTarget;b.key!==a&&(l(),a===void 0&&L.focus(),si(b)?(k.stopPropagation(),u(function(){L.focus(),c(b,L,!0)})):u(function(){d(k),L.focus()}))},C=function(b,k){S(b,k,k.currentTarget)},S=function(b,k,O){var L=MT(b,{target:h});if(l(),!si(b)&&(!L||!L.length))I(b,k);else if(b.key!==a){var se=typeof e.shouldFocusOnContainer=="boolean"?e.shouldFocusOnContainer:k.nativeEvent.pointerType==="mouse";c(b,O,se)}k.stopPropagation(),k.preventDefault()},w=function(b,k){I(b,k),k.stopPropagation()},I=function(b,k){if(!(b.disabled||b.isDisabled)){b.preferMenuTargetAsEventTarget&&LT(k,h);var O=!1;b.onClick?O=!!b.onClick(k,b):e.onItemClick&&(O=!!e.onItemClick(k,b)),(O||!k.defaultPrevented)&&f(k,!0)}};return[m,y,v,C,w,I,S]}var xT=p.memo(p.forwardRef(function(e,t){var r,n=Cu(ux,e);n.ref;var o=_.__rest(n,["ref"]),i=p.useRef(null),a=es(),s=Vi(NT,o.id),u=function(J,Pe){var te;return(te=o.onDismiss)===null||te===void 0?void 0:te.call(o,J,Pe)},l=rT(o.target,i),c=l[0],d=l[1],f=px(o,d,i)[0],h=fx(o,u),m=h[0],y=h[1],E=h[2],v=h[3],g=hx(o),C=g[0],S=g[1],w=g[2],I=gx(a),b=I[0],k=I[1],O=yx(o,a),L=O[0],se=O[1],B=O[2],ae=ox(i,o.responsiveMode);dx(o);var G=mx(o,u,i,y),oe=G[0],me=G[1],P=G[2],T=G[3],M=Ex(o,k,B,d,C,S,m,i,se,L,y,v,u),F=M[0],N=M[1],x=M[2],Y=M[3],de=M[4],ye=M[5],V=M[6],ke=function(J,Pe,te){var A=0,z=J.items,Q=J.totalItemCount,pe=J.hasCheckmarks,Ke=J.hasIcons;return p.createElement("ul",{className:Pe.list,onKeyDown:oe,onKeyUp:me,role:"presentation"},z.map(function(Ne,qe){var ht=Le(Ne,qe,A,Q,pe,Ke,Pe);if(Ne.itemType!==Br.Divider&&Ne.itemType!==Br.Header){var wr=Ne.customOnRenderListLength?Ne.customOnRenderListLength:1;A+=wr}return ht}))},Ae=function(J,Pe){var te=o.focusZoneAs,A=te===void 0?wT:te;return p.createElement(A,_.__assign({},Pe),J)},Le=function(J,Pe,te,A,z,Q,pe){var Ke,Ne=[],qe=J.iconProps||{iconName:"None"},ht=J.getItemClassNames,wr=J.itemProps,gi=wr?wr.styles:void 0,fa=J.itemType===Br.Divider?J.className:void 0,as=J.submenuIconProps?J.submenuIconProps.className:"",Bo;if(ht)Bo=ht(o.theme,bo(J),m===J.key,!!tc(J),!!J.href,qe.iconName!=="None",J.className,fa,qe.className,as,J.primaryDisabled);else{var bI={theme:o.theme,disabled:bo(J),expanded:m===J.key,checked:!!tc(J),isAnchorLink:!!J.href,knownIcon:qe.iconName!=="None",itemClassName:J.className,dividerClassName:fa,iconClassName:qe.className,subMenuClassName:as,primaryDisabled:J.primaryDisabled};Bo=sx(cx((Ke=pe.subComponentStyles)===null||Ke===void 0?void 0:Ke.menuItem,gi),bI)}switch((J.text==="-"||J.name==="-")&&(J.itemType=Br.Divider),J.itemType){case Br.Divider:Ne.push(ze(Pe,Bo));break;case Br.Header:Ne.push(ze(Pe,Bo));var II=Hn(J,Bo,pe,Pe,z,Q);Ne.push(Ze(II,J.key||Pe,Bo,J.title));break;case Br.Section:Ne.push(it(J,Bo,pe,Pe,z,Q));break;default:var yy=function(){return nr(J,Bo,Pe,te,A,z,Q)},kI=o.onRenderContextualMenuItem?o.onRenderContextualMenuItem(J,yy):yy();Ne.push(Ze(kI,J.key||Pe,Bo,J.title));break}return p.createElement(p.Fragment,{key:J.key},Ne)},ot=function(J,Pe){var te=J.index,A=J.focusableElementIndex,z=J.totalItemCount,Q=J.hasCheckmarks,pe=J.hasIcons;return Le(J,te,A,z,Q,pe,Pe)},it=function(J,Pe,te,A,z,Q){var pe=J.sectionProps;if(pe){var Ke,Ne;if(pe.title){var qe=void 0,ht="";if(typeof pe.title=="string"){var wr=s+pe.title.replace(/\s/g,"");qe={key:"section-"+pe.title+"-title",itemType:Br.Header,text:pe.title,id:wr},ht=wr}else{var gi=pe.title.id||s+pe.title.key.replace(/\s/g,"");qe=_.__assign(_.__assign({},pe.title),{id:gi}),ht=gi}qe&&(Ne={role:"group","aria-labelledby":ht},Ke=Hn(qe,Pe,te,A,z,Q))}if(pe.items&&pe.items.length>0)return p.createElement("li",{role:"presentation",key:pe.key||J.key||"section-"+A},p.createElement("div",_.__assign({},Ne),p.createElement("ul",{className:te.list,role:"presentation"},pe.topDivider&&ze(A,Pe,!0,!0),Ke&&Ze(Ke,J.key||A,Pe,J.title),pe.items.map(function(fa,as){return Le(fa,as,as,pe.items.length,z,Q,te)}),pe.bottomDivider&&ze(A,Pe,!1,!0))))}},Ze=function(J,Pe,te,A){return p.createElement("li",{role:"presentation",title:A,key:Pe,className:te.item},J)},ze=function(J,Pe,te,A){return A||J>0?p.createElement("li",{role:"separator",key:"separator-"+J+(te===void 0?"":te?"-top":"-bottom"),className:Pe.divider,"aria-hidden":"true"}):null},nr=function(J,Pe,te,A,z,Q,pe){if(J.onRender)return J.onRender(_.__assign({"aria-posinset":A+1,"aria-setsize":z},J),u);var Ke=o.contextualMenuItemAs,Ne={item:J,classNames:Pe,index:te,focusableElementIndex:A,totalItemCount:z,hasCheckmarks:Q,hasIcons:pe,contextualMenuItemAs:Ke,onItemMouseEnter:F,onItemMouseLeave:x,onItemMouseMove:N,onItemMouseDown:_x,executeItemClick:ye,onItemKeyDown:T,expandedMenuItemKey:m,openSubMenu:y,dismissSubMenu:v,dismissMenu:u};return J.href?p.createElement($2,_.__assign({},Ne,{onItemClick:de})):J.split&&si(J)?p.createElement(ex,_.__assign({},Ne,{onItemClick:Y,onItemClickBase:V,onTap:L})):p.createElement(Q2,_.__assign({},Ne,{onItemClick:Y,onItemClickBase:V}))},Hn=function(J,Pe,te,A,z,Q){var pe=o.contextualMenuItemAs,Ke=pe===void 0?rc:pe,Ne=J.itemProps,qe=J.id,ht=Ne&&Ve(Ne,Wr);return p.createElement("div",_.__assign({id:qe,className:te.header},ht,{style:J.style}),p.createElement(Ke,_.__assign({item:J,classNames:Pe,index:A,onCheckmarkClick:z?Y:void 0,hasIcons:Q},Ne)))},yt=o.isBeakVisible,ft=o.items,En=o.labelElementId,ao=o.id,ia=o.className,aa=o.beakWidth,ci=o.directionalHint,Fo=o.directionalHintForRTL,zn=o.alignTargetEdge,_n=o.gapSpace,di=o.coverTarget,sa=o.ariaLabel,so=o.doNotLayer,No=o.target,xo=o.bounds,Do=o.useTargetWidth,Oo=o.useTargetAsMinWidth,$r=o.directionalHintFixed,uo=o.shouldFocusOnMount,ua=o.shouldFocusOnContainer,fi=o.title,ku=o.styles,Cn=o.theme,la=o.calloutProps,rs=o.onRenderSubMenu,It=rs===void 0?P_:rs,Qr=o.onRenderMenuList,Au=Qr===void 0?function(J,Pe){return ke(J,Yr)}:Qr,ca=o.focusZoneProps,hi=o.getMenuClassNames,Yr=hi?hi(Cn,ia):ax(ku,{theme:Cn,className:ia}),ns=os(ft);function os(J){for(var Pe=0,te=J;Pe<te.length;Pe++){var A=te[Pe];if(A.iconProps||A.itemType===Br.Section&&A.sectionProps&&os(A.sectionProps.items))return!0}return!1}var Ee=_.__assign(_.__assign({direction:gr.vertical,handleTabKey:Jm.all,isCircularNavigation:!0},ca),{className:Pt(Yr.root,(r=o.focusZoneProps)===null||r===void 0?void 0:r.className)}),Be=lx(ft),et=m&&o.hidden!==!0?E():null;yt=yt===void 0?ae<=oc.medium:yt;var Ft,kt=c.current;if((Do||Oo)&&kt&&kt.offsetWidth){var Lo=kt.getBoundingClientRect(),pi=Lo.width-2;Do?Ft={width:pi}:Oo&&(Ft={minWidth:pi})}if(ft&&ft.length>0){for(var is=0,mi=0,Sn=ft;mi<Sn.length;mi++){var da=Sn[mi];if(da.itemType!==Br.Divider&&da.itemType!==Br.Header){var Pc=da.customOnRenderListLength?da.customOnRenderListLength:1;is+=Pc}}var Mc=Yr.subComponentStyles?Yr.subComponentStyles.callout:void 0;return p.createElement(ix.Consumer,null,function(J){return p.createElement(du,_.__assign({styles:Mc,onRestoreFocus:f},la,{target:No||J.target,isBeakVisible:yt,beakWidth:aa,directionalHint:ci,directionalHintForRTL:Fo,gapSpace:_n,coverTarget:di,doNotLayer:so,className:Pt("ms-ContextualMenu-Callout",la&&la.className),setInitialFocus:uo,onDismiss:o.onDismiss||J.onDismiss,onScroll:b,bounds:xo,directionalHintFixed:$r,alignTargetEdge:zn,hidden:o.hidden||J.hidden,ref:t}),p.createElement("div",{style:Ft,ref:i,id:ao,className:Yr.container,tabIndex:ua?0:-1,onKeyDown:P,onKeyUp:me,onFocusCapture:w,"aria-label":sa,"aria-labelledby":En,role:"menu"},fi&&p.createElement("div",{className:Yr.title}," ",fi," "),ft&&ft.length?Ae(Au({ariaLabel:sa,items:ft,totalItemCount:is,hasCheckmarks:Be,hasIcons:ns,defaultMenuItemRenderer:function(Pe){return ot(Pe,Yr)},labelElementId:En},function(Pe,te){return ke(Pe,Yr)}),Ee):null,et&&It(et,P_)),p.createElement(Bv,null))})}else return null}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:Pv(e,t)});xT.displayName="ContextualMenuBase";function R_(e){return e.which===ve.alt||e.key==="Meta"}function _x(e,t){var r;(r=e.onMouseDown)===null||r===void 0||r.call(e,e,t)}function P_(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function DT(e,t){for(var r=0,n=t;r<n.length;r++){var o=n[r];if(o.itemType===Br.Section&&o.sectionProps){var i=DT(e,o.sectionProps.items);if(i)return i}else if(o.key&&o.key===e)return o}}function OT(e,t){return e&&function(r,n){return LT(r,t),e(r,n)}}function LT(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}var Cx={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"},Sx=function(e){var t=e.className,r=e.theme,n=Sr(Cx,r),o=r.fonts,i=r.semanticColors,a=r.effects;return{root:[r.fonts.medium,n.root,n.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[n.container,{selectors:{":focus":{outline:0}}}],list:[n.list,n.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[n.header,o.small,{fontWeight:$e.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:bi,lineHeight:bi,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[n.title,{fontSize:o.mediumPlus.fontSize,paddingRight:"14px",paddingLeft:"14px",paddingBottom:"5px",paddingTop:"5px",backgroundColor:i.menuItemBackgroundPressed}],subComponentStyles:{callout:{root:{boxShadow:a.elevation8}},menuItem:{}}}};function M_(e){return p.createElement(BT,_.__assign({},e))}var BT=jt(xT,Sx,function(e){return{onRenderSubMenu:e.onRenderSubMenu?vM(e.onRenderSubMenu,M_):M_}},{scope:"ContextualMenu"}),Zm=BT;Zm.displayName="ContextualMenu";var Ir={msButton:"ms-Button",msButtonHasMenu:"ms-Button--hasMenu",msButtonIcon:"ms-Button-icon",msButtonMenuIcon:"ms-Button-menuIcon",msButtonLabel:"ms-Button-label",msButtonDescription:"ms-Button-description",msButtonScreenReaderText:"ms-Button-screenReaderText",msButtonFlexContainer:"ms-Button-flexContainer",msButtonTextContainer:"ms-Button-textContainer"},wx=gt(function(e,t,r,n,o,i,a,s,u,l,c){var d,f,h=Sr(Ir,e||{}),m=l&&!c;return Ja({root:[h.msButton,t.root,n,u&&["is-checked",t.rootChecked],m&&["is-expanded",t.rootExpanded,{selectors:(d={},d[":hover ."+h.msButtonIcon]=t.iconExpandedHovered,d[":hover ."+h.msButtonMenuIcon]=t.menuIconExpandedHovered||t.rootExpandedHovered,d[":hover"]=t.rootExpandedHovered,d)}],s&&[Ir.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!m&&!u&&{selectors:(f={":hover":t.rootHovered},f[":hover ."+h.msButtonLabel]=t.labelHovered,f[":hover ."+h.msButtonIcon]=t.iconHovered,f[":hover ."+h.msButtonDescription]=t.descriptionHovered,f[":hover ."+h.msButtonMenuIcon]=t.menuIconHovered,f[":focus"]=t.rootFocused,f[":active"]=t.rootPressed,f[":active ."+h.msButtonIcon]=t.iconPressed,f[":active ."+h.msButtonDescription]=t.descriptionPressed,f[":active ."+h.msButtonMenuIcon]=t.menuIconPressed,f)},a&&u&&[t.rootCheckedDisabled],!a&&u&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},r],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,o,t.icon,m&&t.iconExpanded,u&&t.iconChecked,a&&t.iconDisabled],label:[h.msButtonLabel,t.label,u&&t.labelChecked,a&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,i,t.menuIcon,u&&t.menuIconChecked,a&&!c&&t.menuIconDisabled,!a&&!m&&!u&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},m&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,u&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})}),Tx=gt(function(e,t,r,n,o){return{root:So(e.splitButtonMenuButton,r&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],n&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:So(e.splitButtonContainer,!t&&n&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!n&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:So(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:So(e.splitButtonFlexContainer),divider:So(e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}}),bx=500,Ix="BaseButton",UT=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n._buttonElement=p.createRef(),n._splitButtonContainer=p.createRef(),n._mergedRef=qw(),n._renderedVisibleMenu=!1,n._getMemoizedMenuButtonKeytipProps=gt(function(o){return _.__assign(_.__assign({},o),{hasMenu:!0})}),n._onRenderIcon=function(o,i){var a=n.props.iconProps;if(a&&(a.iconName!==void 0||a.imageProps)){var s=a.className,u=a.imageProps,l=_.__rest(a,["className","imageProps"]);if(a.styles)return p.createElement(no,_.__assign({className:Pt(n._classNames.icon,s),imageProps:u},l));if(a.iconName)return p.createElement(ec,_.__assign({className:Pt(n._classNames.icon,s)},l));if(u)return p.createElement(o2,_.__assign({className:Pt(n._classNames.icon,s),imageProps:u},l))}return null},n._onRenderTextContents=function(){var o=n.props,i=o.text,a=o.children,s=o.secondaryText,u=s===void 0?n.props.description:s,l=o.onRenderText,c=l===void 0?n._onRenderText:l,d=o.onRenderDescription,f=d===void 0?n._onRenderDescription:d;return i||typeof a=="string"||u?p.createElement("span",{className:n._classNames.textContainer},c(n.props,n._onRenderText),f(n.props,n._onRenderDescription)):[c(n.props,n._onRenderText),f(n.props,n._onRenderDescription)]},n._onRenderText=function(){var o=n.props.text,i=n.props.children;return o===void 0&&typeof i=="string"&&(o=i),n._hasText()?p.createElement("span",{key:n._labelId,className:n._classNames.label,id:n._labelId},o):null},n._onRenderChildren=function(){var o=n.props.children;return typeof o=="string"?null:o},n._onRenderDescription=function(o){var i=o.secondaryText,a=i===void 0?n.props.description:i;return a?p.createElement("span",{key:n._descriptionId,className:n._classNames.description,id:n._descriptionId},a):null},n._onRenderAriaDescription=function(){var o=n.props.ariaDescription;return o?p.createElement("span",{className:n._classNames.screenReaderText,id:n._ariaDescriptionId},o):null},n._onRenderMenuIcon=function(o){var i=n.props.menuIconProps;return p.createElement(ec,_.__assign({iconName:"ChevronDown"},i,{className:n._classNames.menuIcon}))},n._onRenderMenu=function(o){var i=n.props.menuAs?Ad(n.props.menuAs,Zm):Zm;return p.createElement(i,_.__assign({},o))},n._onDismissMenu=function(o){var i=n.props.menuProps;i&&i.onDismiss&&i.onDismiss(o),(!o||!o.defaultPrevented)&&n._dismissMenu()},n._dismissMenu=function(){n._menuShouldFocusOnMount=void 0,n._menuShouldFocusOnContainer=void 0,n.setState({menuHidden:!0})},n._openMenu=function(o,i){i===void 0&&(i=!0),n.props.menuProps&&(n._menuShouldFocusOnContainer=o,n._menuShouldFocusOnMount=i,n._renderedVisibleMenu=!0,n.setState({menuHidden:!1}))},n._onToggleMenu=function(o){var i=!0;n.props.menuProps&&n.props.menuProps.shouldFocusOnMount===!1&&(i=!1),n.state.menuHidden?n._openMenu(o,i):n._dismissMenu()},n._onSplitContainerFocusCapture=function(o){var i=n._splitButtonContainer.current;!i||o.target&&xv(o.target,i)||i.focus()},n._onSplitButtonPrimaryClick=function(o){n.state.menuHidden||n._dismissMenu(),!n._processingTouch&&n.props.onClick?n.props.onClick(o):n._processingTouch&&n._onMenuClick(o)},n._onKeyDown=function(o){n.props.disabled&&(o.which===ve.enter||o.which===ve.space)?(o.preventDefault(),o.stopPropagation()):n.props.disabled||(n.props.menuProps?n._onMenuKeyDown(o):n.props.onKeyDown!==void 0&&n.props.onKeyDown(o))},n._onKeyUp=function(o){!n.props.disabled&&n.props.onKeyUp!==void 0&&n.props.onKeyUp(o)},n._onKeyPress=function(o){!n.props.disabled&&n.props.onKeyPress!==void 0&&n.props.onKeyPress(o)},n._onMouseUp=function(o){!n.props.disabled&&n.props.onMouseUp!==void 0&&n.props.onMouseUp(o)},n._onMouseDown=function(o){!n.props.disabled&&n.props.onMouseDown!==void 0&&n.props.onMouseDown(o)},n._onClick=function(o){n.props.disabled||(n.props.menuProps?n._onMenuClick(o):n.props.onClick!==void 0&&n.props.onClick(o))},n._onSplitButtonContainerKeyDown=function(o){o.which===ve.enter||o.which===ve.space?n._buttonElement.current&&(n._buttonElement.current.click(),o.preventDefault(),o.stopPropagation()):n._onMenuKeyDown(o)},n._onMenuKeyDown=function(o){var i;if(!n.props.disabled){n.props.onKeyDown&&n.props.onKeyDown(o);var a=o.which===ve.up,s=o.which===ve.down;if(!o.defaultPrevented&&n._isValidMenuOpenKey(o)){var u=n.props.onMenuClick;u&&u(o,n.props),n._onToggleMenu(!1),o.preventDefault(),o.stopPropagation()}if((o.which===ve.enter||o.which===ve.space)&&Na(!0,o.target,(i=n.context)===null||i===void 0?void 0:i.registeredProviders),!(o.altKey||o.metaKey)&&(a||s)&&!n.state.menuHidden&&n.props.menuProps){var l=n._menuShouldFocusOnMount!==void 0?n._menuShouldFocusOnMount:n.props.menuProps.shouldFocusOnMount;l||(o.preventDefault(),o.stopPropagation(),n._menuShouldFocusOnMount=!0,n.forceUpdate())}}},n._onTouchStart=function(){n._isSplitButton&&n._splitButtonContainer.current&&!("onpointerdown"in n._splitButtonContainer.current)&&n._handleTouchAndPointerEvent()},n._onMenuClick=function(o){var i=n.props,a=i.onMenuClick,s=i.menuProps;a&&a(o,n.props);var u=typeof(s==null?void 0:s.shouldFocusOnContainer)=="boolean"?s.shouldFocusOnContainer:o.nativeEvent.pointerType==="mouse";o.defaultPrevented||(n._onToggleMenu(u),o.preventDefault(),o.stopPropagation())},Za(n),n._async=new _u(n),n._events=new Wo(n),bw(Ix,r,["menuProps","onClick"],"split",n.props.split),n._labelId=Zt(),n._descriptionId=Zt(),n._ariaDescriptionId=Zt(),n.state={menuHidden:!0},n}return Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&this.props.split===!0},enumerable:!1,configurable:!0}),t.prototype.render=function(){var r,n=this.props,o=n.ariaDescription,i=n.ariaLabel,a=n.ariaHidden,s=n.className,u=n.disabled,l=n.allowDisabledFocus,c=n.primaryDisabled,d=n.secondaryText,f=d===void 0?this.props.description:d,h=n.href,m=n.iconProps,y=n.menuIconProps,E=n.styles,v=n.checked,g=n.variantClassName,C=n.theme,S=n.toggle,w=n.getClassNames,I=n.role,b=this.state.menuHidden,k=u||c;this._classNames=w?w(C,s,g,m&&m.className,y&&y.className,k,v,!b,!!this.props.menuProps,this.props.split,!!l):wx(C,E,s,g,m&&m.className,y&&y.className,k,!!this.props.menuProps,v,!b,this.props.split);var O=this,L=O._ariaDescriptionId,se=O._labelId,B=O._descriptionId,ae=!k&&!!h,G=ae?"a":"button",oe=Ve(Pi(ae?{}:{type:"button"},this.props.rootProps,this.props),ae?Lv:Ji,["disabled"]),me=i||oe["aria-label"],P=void 0;o?P=L:f&&this.props.onRenderDescription!==wc?P=B:oe["aria-describedby"]&&(P=oe["aria-describedby"]);var T=void 0;oe["aria-labelledby"]?T=oe["aria-labelledby"]:P&&!me&&(T=this._hasText()?se:void 0);var M=!(this.props["data-is-focusable"]===!1||u&&!l||this._isSplitButton),F=I==="menuitemcheckbox"||I==="checkbox",N=F||S===!0?!!v:void 0,x=Pi(oe,(r={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:k&&!l,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":me,"aria-labelledby":T,"aria-describedby":P,"aria-disabled":k,"data-is-focusable":M},r[F?"aria-checked":"aria-pressed"]=N,r));if(a&&(x["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(G,x);if(this.props.menuProps){var Y=this.props.menuProps.id,de=Y===void 0?this._labelId+"-menu":Y;Pi(x,{"aria-expanded":!b,"aria-controls":b?null:de,"aria-haspopup":!0})}return this._onRenderContent(G,x)},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(r,n){this.props.onAfterMenuDismiss&&!n.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){var r,n;this._isSplitButton&&this._splitButtonContainer.current?(Na(!0,void 0,(r=this.context)===null||r===void 0?void 0:r.registeredProviders),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(Na(!0,void 0,(n=this.context)===null||n===void 0?void 0:n.registeredProviders),this._buttonElement.current.focus())},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(r,n){this._openMenu(r,n)},t.prototype._onRenderContent=function(r,n){var o=this,i=this.props,a=r,s=i.menuIconProps,u=i.menuProps,l=i.onRenderIcon,c=l===void 0?this._onRenderIcon:l,d=i.onRenderAriaDescription,f=d===void 0?this._onRenderAriaDescription:d,h=i.onRenderChildren,m=h===void 0?this._onRenderChildren:h,y=i.onRenderMenu,E=y===void 0?this._onRenderMenu:y,v=i.onRenderMenuIcon,g=v===void 0?this._onRenderMenuIcon:v,C=i.disabled,S=i.keytipProps;S&&u&&(S=this._getMemoizedMenuButtonKeytipProps(S));var w=function(b){return p.createElement(a,_.__assign({},n,b),p.createElement("span",{className:o._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},c(i,o._onRenderIcon),o._onRenderTextContents(),f(i,o._onRenderAriaDescription),m(i,o._onRenderChildren),!o._isSplitButton&&(u||s||o.props.onRenderMenuIcon)&&g(o.props,o._onRenderMenuIcon),u&&!u.doNotLayer&&o._shouldRenderMenu()&&E(o._getMenuProps(u),o._onRenderMenu)))},I=S?p.createElement(nc,{keytipProps:this._isSplitButton?void 0:S,ariaDescribedBy:n["aria-describedby"],disabled:C},function(b){return w(b)}):w();return u&&u.doNotLayer?p.createElement(p.Fragment,null,I,this._shouldRenderMenu()&&E(this._getMenuProps(u),this._onRenderMenu)):p.createElement(p.Fragment,null,I,p.createElement(Bv,null))},t.prototype._shouldRenderMenu=function(){var r=this.state.menuHidden,n=this.props,o=n.persistMenu,i=n.renderPersistedMenuHiddenOnMount;if(r){if(o&&(this._renderedVisibleMenu||i))return!0}else return!0;return!1},t.prototype._hasText=function(){return this.props.text!==null&&(this.props.text!==void 0||typeof this.props.children=="string")},t.prototype._getMenuProps=function(r){var n=this.props.persistMenu,o=this.state.menuHidden;return!r.ariaLabel&&!r.labelElementId&&this._hasText()&&(r=_.__assign(_.__assign({},r),{labelElementId:this._labelId})),_.__assign(_.__assign({id:this._labelId+"-menu",directionalHint:Et.bottomLeftEdge},r),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:n?o:void 0,className:Pt("ms-BaseButton-menuhost",r.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},t.prototype._onRenderSplitButtonContent=function(r,n){var o=this,i=this.props,a=i.styles,s=a===void 0?{}:a,u=i.disabled,l=i.allowDisabledFocus,c=i.checked,d=i.getSplitButtonClassNames,f=i.primaryDisabled,h=i.menuProps,m=i.toggle,y=i.role,E=i.primaryActionButtonProps,v=this.props.keytipProps,g=this.state.menuHidden,C=d?d(!!u,!g,!!c,!!l):s&&Tx(s,!!u,!g,!!c,!!f);Pi(n,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),v&&h&&(v=this._getMemoizedMenuButtonKeytipProps(v));var S=Ve(n,[],["disabled"]);E&&Pi(n,E);var w=function(I){return p.createElement("div",_.__assign({},S,{"data-ktp-target":I?I["data-ktp-target"]:void 0,role:y||"button","aria-disabled":u,"aria-haspopup":!0,"aria-expanded":!g,"aria-pressed":m?!!c:void 0,"aria-describedby":Tc(n["aria-describedby"],I?I["aria-describedby"]:void 0),className:C&&C.splitButtonContainer,onKeyDown:o._onSplitButtonContainerKeyDown,onTouchStart:o._onTouchStart,ref:o._splitButtonContainer,"data-is-focusable":!0,onClick:!u&&!f?o._onSplitButtonPrimaryClick:void 0,tabIndex:!u&&!f||l?0:void 0,"aria-roledescription":n["aria-roledescription"],onFocusCapture:o._onSplitContainerFocusCapture}),p.createElement("span",{style:{display:"flex",width:"100%"}},o._onRenderContent(r,n),o._onRenderSplitButtonMenuButton(C,I),o._onRenderSplitButtonDivider(C)))};return v?p.createElement(nc,{keytipProps:v,disabled:u},function(I){return w(I)}):w()},t.prototype._onRenderSplitButtonDivider=function(r){if(r&&r.divider){var n=function(o){o.stopPropagation()};return p.createElement("span",{className:r.divider,"aria-hidden":!0,onClick:n})}return null},t.prototype._onRenderSplitButtonMenuButton=function(r,n){var o=this.props,i=o.allowDisabledFocus,a=o.checked,s=o.disabled,u=o.splitButtonMenuProps,l=o.splitButtonAriaLabel,c=o.primaryDisabled,d=this.state.menuHidden,f=this.props.menuIconProps;f===void 0&&(f={iconName:"ChevronDown"});var h=_.__assign(_.__assign({},u),{styles:r,checked:a,disabled:s,allowDisabledFocus:i,onClick:this._onMenuClick,menuProps:void 0,iconProps:_.__assign(_.__assign({},f),{className:this._classNames.menuIcon}),ariaLabel:l,"aria-haspopup":!0,"aria-expanded":!d,"data-is-focusable":!1});return p.createElement(t,_.__assign({},h,{"data-ktp-execute-target":n&&n["data-ktp-execute-target"],onMouseDown:this._onMouseDown,tabIndex:c&&!i?0:-1}))},t.prototype._onPointerDown=function(r){var n=this.props.onPointerDown;n&&n(r),r.pointerType==="touch"&&(this._handleTouchAndPointerEvent(),r.preventDefault(),r.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var r=this;this._lastTouchTimeoutId!==void 0&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){r._processingTouch=!1,r._lastTouchTimeoutId=void 0,r.state.menuHidden&&r.focus()},bx)},t.prototype._isValidMenuOpenKey=function(r){return this.props.menuTriggerKeyCode?r.which===this.props.menuTriggerKeyCode:this.props.menuProps?r.which===ve.down&&(r.altKey||r.metaKey):!1},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t.contextType=gf,t}(p.Component),F_={outline:0},N_=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},HT=gt(function(e){var t,r,n=e.semanticColors,o=e.effects,i=e.fonts,a=n.buttonBorder,s=n.disabledBackground,u=n.disabledText,l={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[Ro(e,{inset:1,highContrastStyle:l,borderColor:"transparent"}),e.fonts.medium,{border:"1px solid "+a,borderRadius:o.roundedCorner2,boxSizing:"border-box",cursor:"pointer",display:"inline-block",padding:"0 16px",textDecoration:"none",textAlign:"center",userSelect:"none",selectors:{":active > span":{position:"relative",left:0,top:0}}}],rootDisabled:[Ro(e,{inset:1,highContrastStyle:l,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:u,cursor:"default",selectors:{":hover":F_,":focus":F_}}],iconDisabled:{color:u,selectors:(t={},t[Z]={color:"GrayText"},t)},menuIconDisabled:{color:u,selectors:(r={},r[Z]={color:"GrayText"},r)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:N_(i.mediumPlus.fontSize),menuIcon:N_(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Hv}}),zT=gt(function(e,t){var r,n,o,i,a,s,u,l,c,d,f,h,m,y=e.effects,E=e.palette,v=e.semanticColors,g={left:-2,top:-2,bottom:-2,right:-2,border:"none"},C={position:"absolute",width:1,right:31,top:8,bottom:8},S={splitButtonContainer:[Ro(e,{highContrastStyle:g,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(r={},r[Z]=_.__assign({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},er()),r[":hover"]={border:"none"},r[":active"]={border:"none"},r)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(n={},n[Z]={border:"1px solid WindowText",borderLeftWidth:"0"},n)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(o={},o[Z]={color:"Window",backgroundColor:"Highlight"},o)},".ms-Button.is-disabled":{color:v.buttonTextDisabled,selectors:(i={},i[Z]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[Z]=_.__assign({color:"Window",backgroundColor:"WindowText"},er()),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[Z]=_.__assign({color:"Window",backgroundColor:"WindowText"},er()),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(u={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:y.roundedCorner2,borderBottomRightRadius:y.roundedCorner2,border:"1px solid "+E.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},u[Z]={".ms-Button-menuIcon":{color:"WindowText"}},u),splitButtonDivider:_.__assign(_.__assign({},C),{selectors:(l={},l[Z]={backgroundColor:"WindowText"},l)}),splitButtonDividerDisabled:_.__assign(_.__assign({},C),{selectors:(c={},c[Z]={backgroundColor:"GrayText"},c)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(d={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(f={},f[Z]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f)},".ms-Button-menuIcon":{selectors:(h={},h[Z]={color:"GrayText"},h)}},d[Z]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},d)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(m={},m[Z]=_.__assign({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},er()),m)},splitButtonMenuFocused:_.__assign({},Ro(e,{highContrastStyle:g,inset:2}))};return li(S,t)}),KT=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function kx(e){var t,r,n,o,i,a=e.semanticColors,s=e.palette,u=a.buttonBackground,l=a.buttonBackgroundPressed,c=a.buttonBackgroundHovered,d=a.buttonBackgroundDisabled,f=a.buttonText,h=a.buttonTextHovered,m=a.buttonTextDisabled,y=a.buttonTextChecked,E=a.buttonTextCheckedHovered;return{root:{backgroundColor:u,color:f},rootHovered:{backgroundColor:c,color:h,selectors:(t={},t[Z]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:l,color:y},rootExpanded:{backgroundColor:l,color:y},rootChecked:{backgroundColor:l,color:y},rootCheckedHovered:{backgroundColor:l,color:E},rootDisabled:{color:m,backgroundColor:d,selectors:(r={},r[Z]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},r)},splitButtonContainer:{selectors:(n={},n[Z]={border:"none"},n)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(o={},o[Z]={color:"Highlight"},o)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:_.__assign(_.__assign({},KT()),{backgroundColor:s.neutralTertiaryAlt,selectors:(i={},i[Z]={backgroundColor:"WindowText"},i)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function Ax(e){var t,r,n,o,i,a,s,u,l,c=e.palette,d=e.semanticColors;return{root:{backgroundColor:d.primaryButtonBackground,border:"1px solid "+d.primaryButtonBackground,color:d.primaryButtonText,selectors:(t={},t[Z]=_.__assign({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},er()),t["."+kr+" &:focus"]={selectors:{":after":{border:"none",outlineColor:c.white}}},t)},rootHovered:{backgroundColor:d.primaryButtonBackgroundHovered,border:"1px solid "+d.primaryButtonBackgroundHovered,color:d.primaryButtonTextHovered,selectors:(r={},r[Z]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},r)},rootPressed:{backgroundColor:d.primaryButtonBackgroundPressed,border:"1px solid "+d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed,selectors:(n={},n[Z]=_.__assign({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},er()),n)},rootExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootChecked:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootDisabled:{color:d.primaryButtonTextDisabled,backgroundColor:d.primaryButtonBackgroundDisabled,selectors:(o={},o[Z]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)},splitButtonContainer:{selectors:(i={},i[Z]={border:"none"},i)},splitButtonDivider:_.__assign(_.__assign({},KT()),{backgroundColor:c.white,selectors:(a={},a[Z]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,selectors:(s={},s[Z]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:d.primaryButtonBackgroundHovered,selectors:(u={},u[Z]={color:"Highlight"},u)},s)},splitButtonMenuButtonDisabled:{backgroundColor:d.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:d.primaryButtonText},splitButtonMenuIconDisabled:{color:c.neutralTertiary,selectors:(l={},l[Z]={color:"GrayText"},l)}}}var Rx="32px",Px="80px",Mx=gt(function(e,t,r){var n=HT(e),o=zT(e),i={root:{minWidth:Px,height:Rx},label:{fontWeight:$e.semibold}};return li(n,i,r?Ax(e):kx(e),o,t)}),Fx=function(e){_.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var r=this.props,n=r.primary,o=n===void 0?!1:n,i=r.styles,a=r.theme;return p.createElement(UT,_.__assign({},this.props,{variantClassName:o?"ms-Button--primary":"ms-Button--default",styles:Mx(a,i,o),onRenderDescription:wc}))},t=_.__decorate([Ov("DefaultButton",["theme","styles"],!0)],t),t}(p.Component),Nx=function(e){_.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return p.createElement(Fx,_.__assign({},this.props,{primary:!0,onRenderDescription:wc}))},t=_.__decorate([Ov("PrimaryButton",["theme","styles"],!0)],t),t}(p.Component),xx=gt(function(e,t,r,n){var o,i,a,s,u,l,c,d,f,h,m,y,E,v,g=HT(e),C=zT(e),S=e.palette,w=e.semanticColors,I={left:4,top:4,bottom:4,right:4,border:"none"},b={root:[Ro(e,{inset:2,highContrastStyle:I,borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:S.white,color:S.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(o={},o[Z]={border:"none"},o)}],rootHovered:{backgroundColor:S.neutralLighter,color:S.neutralDark,selectors:(i={},i[Z]={color:"Highlight"},i["."+Ir.msButtonIcon]={color:S.themeDarkAlt},i["."+Ir.msButtonMenuIcon]={color:S.neutralPrimary},i)},rootPressed:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(a={},a["."+Ir.msButtonIcon]={color:S.themeDark},a["."+Ir.msButtonMenuIcon]={color:S.neutralPrimary},a)},rootChecked:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(s={},s["."+Ir.msButtonIcon]={color:S.themeDark},s["."+Ir.msButtonMenuIcon]={color:S.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:S.neutralQuaternaryAlt,selectors:(u={},u["."+Ir.msButtonIcon]={color:S.themeDark},u["."+Ir.msButtonMenuIcon]={color:S.neutralPrimary},u)},rootExpanded:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:(l={},l["."+Ir.msButtonIcon]={color:S.themeDark},l["."+Ir.msButtonMenuIcon]={color:S.neutralPrimary},l)},rootExpandedHovered:{backgroundColor:S.neutralQuaternaryAlt},rootDisabled:{backgroundColor:S.white,selectors:(c={},c["."+Ir.msButtonIcon]={color:w.disabledBodySubtext,selectors:(d={},d[Z]=_.__assign({color:"GrayText"},er()),d)},c[Z]=_.__assign({color:"GrayText",backgroundColor:"Window"},er()),c)},splitButtonContainer:{height:"100%",selectors:(f={},f[Z]={border:"none"},f)},splitButtonDividerDisabled:{selectors:(h={},h[Z]={backgroundColor:"Window"},h)},splitButtonDivider:{backgroundColor:S.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:S.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:S.neutralSecondary,selectors:{":hover":{backgroundColor:S.neutralLighter,color:S.neutralDark,selectors:(m={},m[Z]={color:"Highlight"},m["."+Ir.msButtonIcon]={color:S.neutralPrimary},m)},":active":{backgroundColor:S.neutralLight,selectors:(y={},y["."+Ir.msButtonIcon]={color:S.neutralPrimary},y)}}},splitButtonMenuButtonDisabled:{backgroundColor:S.white,selectors:(E={},E[Z]=_.__assign({color:"GrayText",border:"none",backgroundColor:"Window"},er()),E)},splitButtonMenuButtonChecked:{backgroundColor:S.neutralLight,color:S.neutralDark,selectors:{":hover":{backgroundColor:S.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:S.neutralLight,color:S.black,selectors:{":hover":{backgroundColor:S.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:S.neutralPrimary},splitButtonMenuIconDisabled:{color:S.neutralTertiary},label:{fontWeight:"normal"},icon:{color:S.themePrimary},menuIcon:(v={color:S.neutralSecondary},v[Z]={color:"GrayText"},v)};return li(g,C,b,t)}),Sp=function(e){_.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var r=this.props,n=r.styles,o=r.theme;return p.createElement(UT,_.__assign({},this.props,{variantClassName:"ms-Button--commandBar",styles:xx(o,n),onRenderDescription:wc}))},t=_.__decorate([Ov("CommandBarButton",["theme","styles"],!0)],t),t}(p.Component),wf;(function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"})(wf||(wf={}));var Dx=16,Ox=function(){var e={};return{getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,r){t.cacheKey&&(e[t.cacheKey]=r)}}},Lx=function(e){e===void 0&&(e=Ox());var t=e,r;function n(c,d){var f=t.getCachedMeasurement(c);if(f!==void 0)return f;var h=d();return t.addMeasurementToCache(c,h),h}function o(c,d,f){for(var h=c,m=n(c,f);m>r;){var y=d(h);if(y===void 0)return{renderedData:h,resizeDirection:void 0,dataToMeasure:void 0};if(m=t.getCachedMeasurement(y),m===void 0)return{dataToMeasure:y,resizeDirection:"shrink"};h=y}return{renderedData:h,resizeDirection:void 0,dataToMeasure:void 0}}function i(c,d,f,h){for(var m=c,y=n(c,f);y<r;){var E=d(m);if(E===void 0)return{renderedData:m,resizeDirection:void 0,dataToMeasure:void 0};if(y=t.getCachedMeasurement(E),y===void 0)return{dataToMeasure:E};m=E}return _.__assign({resizeDirection:"shrink"},o(m,h,f))}function a(c,d,f,h){var m;return c>r?h?m={resizeDirection:"grow",dataToMeasure:h(f)}:m={resizeDirection:"shrink",dataToMeasure:d}:m={resizeDirection:"shrink",dataToMeasure:f},r=c,_.__assign(_.__assign({},m),{measureContainer:!1})}function s(c,d,f,h){if(!(h===void 0&&d.dataToMeasure===void 0)){if(h){if(r&&d.renderedData&&!d.dataToMeasure)return _.__assign(_.__assign({},d),a(h,c.data,d.renderedData,c.onGrowData));r=h}var m=_.__assign(_.__assign({},d),{measureContainer:!1});return d.dataToMeasure&&(d.resizeDirection==="grow"&&c.onGrowData?m=_.__assign(_.__assign({},m),i(d.dataToMeasure,c.onGrowData,f,c.onReduceData)):m=_.__assign(_.__assign({},m),o(d.dataToMeasure,c.onReduceData,f))),m}}function u(c){return!(!c||t.getCachedMeasurement(c)!==void 0)}function l(c){return{dataToMeasure:_.__assign({},c),resizeDirection:"grow",measureContainer:!0}}return{getNextState:s,shouldRenderDataForMeasurement:u,getInitialResizeGroupState:l}},Bx=p.createContext({isMeasured:!1}),x_={position:"fixed",visibility:"hidden"},Ux={position:"relative"};function Hx(e,t){var r;switch(t.type){case"resizeData":return _.__assign({},t.value);case"dataToMeasure":return _.__assign(_.__assign({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return _.__assign(_.__assign({},e),(r={},r[t.type]=t.value,r))}}function zx(e,t,r){var n=hn(function(){return t.getInitialResizeGroupState(e.data)}),o=p.useReducer(Hx,n),i=o[0],a=o[1];p.useEffect(function(){a({type:"dataToMeasure",value:e.data})},[e.data]);var s=p.useRef(n);s.current=_.__assign({},i);var u=p.useCallback(function(c){c&&a({type:"resizeData",value:c})},[]),l=p.useCallback(function(){r.current&&a({type:"measureContainer",value:!0})},[r]);return[s,u,l]}function Kx(e,t){var r=hn(Lx),n=p.useRef(null),o=p.useRef(null),i=p.useRef(!1),a=es(),s=zx(e,r,t),u=s[0],l=s[1],c=s[2];p.useEffect(function(){var m;u.current.renderedData&&(i.current=!0,(m=e.dataDidRender)===null||m===void 0||m.call(e,u.current.renderedData))}),p.useEffect(function(){a.requestAnimationFrame(function(){var m=void 0;if(u.current.measureContainer&&t.current){var y=t.current.getBoundingClientRect();m=e.direction===wf.vertical?y.height:y.width}var E=r.getNextState(e,u.current,function(){var v=i.current?o:n;if(!v.current)return 0;var g=v.current.getBoundingClientRect();return e.direction===wf.vertical?g.height:g.width},m);l(E)},t.current)});var d=bc();cu(d,"resize",a.debounce(c,Dx,{leading:!0}));var f=r.shouldRenderDataForMeasurement(u.current.dataToMeasure),h=!i.current&&f;return[u.current.dataToMeasure,u.current.renderedData,c,n,o,f,h]}var Gx={isMeasured:!0},GT=p.forwardRef(function(e,t){var r=p.useRef(null),n=ro(r,t),o=Kx(e,r),i=o[0],a=o[1],s=o[2],u=o[3],l=o[4],c=o[5],d=o[6];p.useImperativeHandle(e.componentRef,function(){return{remeasure:s}},[s]);var f=e.className,h=e.onRenderData,m=Ve(e,Wr,["data"]);return p.createElement("div",_.__assign({},m,{className:f,ref:n}),p.createElement("div",{style:Ux},c&&!d&&p.createElement("div",{style:x_,ref:l},p.createElement(Bx.Provider,{value:Gx},h(i))),p.createElement("div",{ref:u,style:d?x_:void 0,"data-automation-id":"visibleContent"},d?h(i):a&&h(a))))});GT.displayName="ResizeGroupBase";var qx=GT,Vx=Wt({cacheSize:100}),Wx=function(e){_.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var r=this.props,n=r.as,o=n===void 0?"label":n,i=r.children,a=r.className,s=r.disabled,u=r.styles,l=r.required,c=r.theme,d=Vx(u,{className:a,disabled:s,required:l,theme:c});return p.createElement(o,_.__assign({},Ve(this.props,Wr),{className:d.root}),i)},t}(p.Component),jx=function(e){var t,r=e.theme,n=e.className,o=e.disabled,i=e.required,a=r.semanticColors,s=$e.semibold,u=a.bodyText,l=a.disabledBodyText,c=a.errorText;return{root:["ms-Label",r.fonts.medium,{fontWeight:s,color:u,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},o&&{color:l,selectors:(t={},t[Z]=_.__assign({color:"GrayText"},er()),t)},i&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},n]}},To=jt(Wx,jx,void 0,{scope:"Label"}),$x=Wt(),Qx="",ma="TextField",Yx="RedEye",Xx="Hide",Jx=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;n._textElement=p.createRef(),n._onFocus=function(a){n.props.onFocus&&n.props.onFocus(a),n.setState({isFocused:!0},function(){n.props.validateOnFocusIn&&n._validate(n.value)})},n._onBlur=function(a){n.props.onBlur&&n.props.onBlur(a),n.setState({isFocused:!1},function(){n.props.validateOnFocusOut&&n._validate(n.value)})},n._onRenderLabel=function(a){var s=a.label,u=a.required,l=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return s?p.createElement(To,{required:u,htmlFor:n._id,styles:l,disabled:a.disabled,id:n._labelId},a.label):null},n._onRenderDescription=function(a){return a.description?p.createElement("span",{className:n._classNames.description},a.description):null},n._onRevealButtonClick=function(a){n.setState(function(s){return{isRevealingPassword:!s.isRevealingPassword}})},n._onInputChange=function(a){var s,u,l=a.target,c=l.value,d=wp(n.props,n.state)||"";if(c===void 0||c===n._lastChangeValue||c===d){n._lastChangeValue=void 0;return}n._lastChangeValue=c,(u=(s=n.props).onChange)===null||u===void 0||u.call(s,a,c),n._isControlled||n.setState({uncontrolledValue:c})},Za(n),n._async=new _u(n),n._fallbackId=Zt(ma),n._descriptionId=Zt(ma+"Description"),n._labelId=Zt(ma+"Label"),n._prefixId=Zt(ma+"Prefix"),n._suffixId=Zt(ma+"Suffix"),n._warnControlledUsage();var o=r.defaultValue,i=o===void 0?Qx:o;return typeof i=="number"&&(i=String(i)),n.state={uncontrolledValue:n._isControlled?void 0:i,isFocused:!1,errorMessage:""},n._delayedValidate=n._async.debounce(n._validate,n.props.deferredValidationTime),n._lastValidation=0,n}return Object.defineProperty(t.prototype,"value",{get:function(){return wp(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(r,n){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(r,n,o){var i=this.props,a=(o||{}).selection,s=a===void 0?[null,null]:a,u=s[0],l=s[1];!!r.multiline!=!!i.multiline&&n.isFocused&&(this.focus(),u!==null&&l!==null&&u>=0&&l>=0&&this.setSelectionRange(u,l)),r.value!==i.value&&(this._lastChangeValue=void 0);var c=wp(r,n),d=this.value;c!==d&&(this._warnControlledUsage(r),this.state.errorMessage&&!i.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),D_(i)&&this._delayedValidate(d))},t.prototype.render=function(){var r=this.props,n=r.borderless,o=r.className,i=r.disabled,a=r.invalid,s=r.iconProps,u=r.inputClassName,l=r.label,c=r.multiline,d=r.required,f=r.underlined,h=r.prefix,m=r.resizable,y=r.suffix,E=r.theme,v=r.styles,g=r.autoAdjustHeight,C=r.canRevealPassword,S=r.revealPasswordAriaLabel,w=r.type,I=r.onRenderPrefix,b=I===void 0?this._onRenderPrefix:I,k=r.onRenderSuffix,O=k===void 0?this._onRenderSuffix:k,L=r.onRenderLabel,se=L===void 0?this._onRenderLabel:L,B=r.onRenderDescription,ae=B===void 0?this._onRenderDescription:B,G=this.state,oe=G.isFocused,me=G.isRevealingPassword,P=this._errorMessage,T=typeof a=="boolean"?a:!!P,M=!!C&&w==="password"&&Zx(),F=this._classNames=$x(v,{theme:E,className:o,disabled:i,focused:oe,required:d,multiline:c,hasLabel:!!l,hasErrorMessage:T,borderless:n,resizable:m,hasIcon:!!s,underlined:f,inputClassName:u,autoAdjustHeight:g,hasRevealButton:M});return p.createElement("div",{ref:this.props.elementRef,className:F.root},p.createElement("div",{className:F.wrapper},se(this.props,this._onRenderLabel),p.createElement("div",{className:F.fieldGroup},(h!==void 0||this.props.onRenderPrefix)&&p.createElement("div",{className:F.prefix,id:this._prefixId},b(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&&p.createElement(no,_.__assign({className:F.icon},s)),M&&p.createElement("button",{"aria-label":S,className:F.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!me,type:"button"},p.createElement("span",{className:F.revealSpan},p.createElement(no,{className:F.revealIcon,iconName:me?Xx:Yx}))),(y!==void 0||this.props.onRenderSuffix)&&p.createElement("div",{className:F.suffix,id:this._suffixId},O(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&p.createElement("span",{id:this._descriptionId},ae(this.props,this._onRenderDescription),P&&p.createElement("div",{role:"alert"},p.createElement(UR,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(r){this._textElement.current&&(this._textElement.current.selectionStart=r)},t.prototype.setSelectionEnd=function(r){this._textElement.current&&(this._textElement.current.selectionEnd=r)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(r,n){this._textElement.current&&this._textElement.current.setSelectionRange(r,n)},t.prototype._warnControlledUsage=function(r){this._id,this.props,this.props.value===null&&!this._hasWarnedNullValue&&(this._hasWarnedNullValue=!0,Mv("Warning: 'value' prop on '"+ma+"' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return mP(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(r){var n=r.prefix;return p.createElement("span",{style:{paddingBottom:"1px"}},n)},t.prototype._onRenderSuffix=function(r){var n=r.suffix;return p.createElement("span",{style:{paddingBottom:"1px"}},n)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var r=this.props.errorMessage,n=r===void 0?this.state.errorMessage:r;return n||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var r=this._errorMessage;return r?typeof r=="string"?p.createElement("p",{className:this._classNames.errorMessage},p.createElement("span",{"data-automation-id":"error-message"},r)):p.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},r):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var r=this.props;return!!(r.onRenderDescription||r.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var r=this.props.invalid,n=r===void 0?!!this._errorMessage:r,o=Ve(this.props,Ow,["defaultValue"]),i=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return p.createElement("textarea",_.__assign({id:this._id},o,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":i,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":n,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var r=this.props,n=r.ariaLabel,o=r.invalid,i=o===void 0?!!this._errorMessage:o,a=r.onRenderPrefix,s=r.onRenderSuffix,u=r.prefix,l=r.suffix,c=r.type,d=c===void 0?"text":c,f=r.label,h=[];f&&h.push(this._labelId),(u!==void 0||a)&&h.push(this._prefixId),(l!==void 0||s)&&h.push(this._suffixId);var m=_.__assign(_.__assign({type:this.state.isRevealingPassword?"text":d,id:this._id},Ve(this.props,Dw,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(h.length>0?h.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":n,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":i,onFocus:this._onFocus,onBlur:this._onBlur}),y=function(v){return p.createElement("input",_.__assign({},v))},E=this.props.onRenderInput||y;return E(m,y)},t.prototype._validate=function(r){var n=this;if(!(this._latestValidateValue===r&&D_(this.props))){this._latestValidateValue=r;var o=this.props.onGetErrorMessage,i=o&&o(r||"");if(i!==void 0)if(typeof i=="string"||!("then"in i))this.setState({errorMessage:i}),this._notifyAfterValidate(r,i);else{var a=++this._lastValidation;i.then(function(s){a===n._lastValidation&&n.setState({errorMessage:s}),n._notifyAfterValidate(r,s)})}else this._notifyAfterValidate(r,"")}},t.prototype._notifyAfterValidate=function(r,n){r===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(n,r)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var r=this._textElement.current;r.style.height="",r.style.height=r.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(p.Component);function wp(e,t){var r=e.value,n=r===void 0?t.uncontrolledValue:r;return typeof n=="number"?String(n):n}function D_(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var rd;function Zx(){if(typeof rd!="boolean"){var e=mt();if(e!=null&&e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");rd=!(EM()||t)}else rd=!0}return rd}var eD={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function tD(e){var t=e.underlined,r=e.disabled,n=e.focused,o=e.theme,i=o.palette,a=o.fonts;return function(){var s;return{root:[t&&r&&{color:i.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&n&&{selectors:(s={},s[Z]={height:31},s)}]}}}function rD(e){var t,r,n,o,i,a,s,u,l,c,d,f,h=e.theme,m=e.className,y=e.disabled,E=e.focused,v=e.required,g=e.multiline,C=e.hasLabel,S=e.borderless,w=e.underlined,I=e.hasIcon,b=e.resizable,k=e.hasErrorMessage,O=e.inputClassName,L=e.autoAdjustHeight,se=e.hasRevealButton,B=h.semanticColors,ae=h.effects,G=h.fonts,oe=Sr(eD,h),me={background:B.disabledBackground,color:y?B.disabledText:B.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[Z]={background:"Window",color:y?"GrayText":"WindowText"},t)},P=[{color:B.inputPlaceholderText,opacity:1,selectors:(r={},r[Z]={color:"GrayText"},r)}],T={color:B.disabledText,selectors:(n={},n[Z]={color:"GrayText"},n)};return{root:[oe.root,G.medium,v&&oe.required,y&&oe.disabled,E&&oe.active,g&&oe.multiline,S&&oe.borderless,w&&oe.underlined,Rd,{position:"relative"},m],wrapper:[oe.wrapper,w&&[{display:"flex",borderBottom:"1px solid "+(k?B.errorText:B.inputBorder),width:"100%"},y&&{borderBottomColor:B.disabledBackground,selectors:(o={},o[Z]=_.__assign({borderColor:"GrayText"},er()),o)},!y&&{selectors:{":hover":{borderBottomColor:k?B.errorText:B.inputBorderHovered,selectors:(i={},i[Z]=_.__assign({borderBottomColor:"Highlight"},er()),i)}}},E&&[{position:"relative"},l_(k?B.errorText:B.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[oe.fieldGroup,Rd,{border:"1px solid "+B.inputBorder,borderRadius:ae.roundedCorner2,background:B.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},g&&{minHeight:"60px",height:"auto",display:"flex"},!E&&!y&&{selectors:{":hover":{borderColor:B.inputBorderHovered,selectors:(a={},a[Z]=_.__assign({borderColor:"Highlight"},er()),a)}}},E&&!w&&l_(k?B.errorText:B.inputFocusBorderAlt,ae.roundedCorner2),y&&{borderColor:B.disabledBackground,selectors:(s={},s[Z]=_.__assign({borderColor:"GrayText"},er()),s),cursor:"default"},S&&{border:"none"},S&&E&&{border:"none",selectors:{":after":{border:"none"}}},w&&{flex:"1 1 0px",border:"none",textAlign:"left"},w&&y&&{backgroundColor:"transparent"},k&&!w&&{borderColor:B.errorText,selectors:{"&:hover":{borderColor:B.errorText}}},!C&&v&&{selectors:(u={":before":{content:"'*'",color:B.errorText,position:"absolute",top:-5,right:-10}},u[Z]={selectors:{":before":{color:"WindowText",right:-14}}},u)}],field:[G.medium,oe.field,Rd,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:B.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(l={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},l[Z]={background:"Window",color:y?"GrayText":"WindowText"},l)},f_(P),g&&!b&&[oe.unresizable,{resize:"none"}],g&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},g&&L&&{overflow:"hidden"},I&&!se&&{paddingRight:24},g&&I&&{paddingRight:40},y&&[{backgroundColor:B.disabledBackground,color:B.disabledText,borderColor:B.disabledBackground},f_(T)],w&&{textAlign:"left"},E&&!S&&{selectors:(c={},c[Z]={paddingLeft:11,paddingRight:11},c)},E&&g&&!S&&{selectors:(d={},d[Z]={paddingTop:4},d)},O],icon:[g&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Eo.medium,lineHeight:18},y&&{color:B.disabledText}],description:[oe.description,{color:B.bodySubtext,fontSize:G.xSmall.fontSize}],errorMessage:[oe.errorMessage,Ia.slideDownIn20,G.small,{color:B.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[oe.prefix,me],suffix:[oe.suffix,me],revealButton:[oe.revealButton,"ms-Button","ms-Button--icon",Ro(h,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:B.link,selectors:{":hover":{outline:0,color:B.primaryButtonBackgroundHovered,backgroundColor:B.buttonBackgroundHovered,selectors:(f={},f[Z]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},I&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Eo.medium,lineHeight:18},subComponentStyles:{label:tD(e)}}}var qT=jt(Jx,rD,void 0,{scope:"TextField"}),nD=44,oD=function(e){var t=e.className,r=e.theme,n=r.semanticColors;return{root:[r.fonts.medium,"ms-CommandBar",{display:"flex",backgroundColor:n.bodyBackground,padding:"0 14px 0 24px",height:nD},t],primarySet:["ms-CommandBar-primaryCommand",{flexGrow:"1",display:"flex",alignItems:"stretch"}],secondarySet:["ms-CommandBar-secondaryCommand",{flexShrink:"0",display:"flex",alignItems:"stretch"}]}},iD=gt(function(e){var t={height:"100%"},r={whiteSpace:"nowrap"},n=e||{},o=n.root,i=n.label,a=_.__rest(n,["root","label"]);return _.__assign(_.__assign({},a),{root:o?[t,o]:t,label:i?[r,i]:r})}),O_=function(e,t,r){for(var n=0,o=e;n<o.length;n++){var i=o[n],a=t.register(i,!0);r[a]=i}},L_=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];e.unregister(t[o],o,!0),delete t[o]}},aD=function(e,t,r){var n=Gv(e);p.useEffect(function(){n&&(L_(r,n),O_(t,r,e))}),p.useEffect(function(){return O_(t,r,e),function(){L_(r,e)}},[])},B_=function(e){var t=IT.getInstance(),r=e.className,n=e.overflowItems,o=e.keytipSequences,i=e.itemSubMenuProvider,a=e.onRenderOverflowButton,s=hn({}),u=p.useCallback(function(f){if(i)return i(f);if(f.subMenuProps)return f.subMenuProps.items},[i]),l=p.useMemo(function(){var f=[],h=[];return o?n==null||n.forEach(function(m){var y,E=m.keytipProps;if(E){var v={content:E.content,keySequences:E.keySequences,disabled:E.disabled||!!(m.disabled||m.isDisabled),hasDynamicChildren:E.hasDynamicChildren,hasMenu:E.hasMenu};E.hasDynamicChildren||u(m)?(v.onExecute=t.menuExecute.bind(t,o,(y=m==null?void 0:m.keytipProps)===null||y===void 0?void 0:y.keySequences),v.hasOverflowSubMenu=!0):v.onExecute=E.onExecute,f.push(v);var g=_.__assign(_.__assign({},m),{keytipProps:_.__assign(_.__assign({},E),{overflowSetSequence:o})});h==null||h.push(g)}else h==null||h.push(m)}):h=n,{modifiedOverflowItems:h,keytipsToRegister:f}},[n,u,t,o]),c=l.modifiedOverflowItems,d=l.keytipsToRegister;return aD(s,d,t),p.createElement("div",{className:r},a(c))},sD=Wt(),uD="OverflowSet",lD=function(e,t){p.useImperativeHandle(e.componentRef,function(){return{focus:function(r,n){var o=!1;return t.current&&(o=Rw(t.current,n)),o},focusElement:function(r){var n=!1;return r?(t.current&&jo(t.current,r)&&(r.focus(),n=document.activeElement===r),n):!1}}},[t])},VT=p.forwardRef(function(e,t){var r=p.useRef(null),n=ro(r,t);lD(e,r);var o=e.items,i=e.overflowItems,a=e.className,s=e.styles,u=e.vertical,l=e.role,c=e.overflowSide,d=c===void 0?"end":c,f=e.onRenderItem,h=sD(s,{className:a,vertical:u}),m=!!i&&i.length>0;return p.createElement("div",_.__assign({},Ve(e,Wr),{role:l||"group","aria-orientation":l==="menubar"?u===!0?"vertical":"horizontal":void 0,className:h.root,ref:n}),d==="start"&&m&&p.createElement(B_,_.__assign({},e,{className:h.overflowButton})),o&&o.map(function(y,E){return p.createElement("div",{className:h.item,key:y.key,role:"none"},f(y))}),d==="end"&&m&&p.createElement(B_,_.__assign({},e,{className:h.overflowButton})))});VT.displayName=uD;var U_={flexShrink:0,display:"inherit"},cD=function(e){var t=e.className,r=e.vertical;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},r&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",U_],overflowButton:["ms-OverflowSet-overflowButton",U_]}},H_=jt(VT,cD,void 0,{scope:"OverflowSet"}),dD=Wt(),fD=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;return n._overflowSet=p.createRef(),n._resizeGroup=p.createRef(),n._onRenderData=function(o){var i=n.props,a=i.ariaLabel,s=i.primaryGroupAriaLabel,u=i.farItemsGroupAriaLabel,l=o.farItems&&o.farItems.length>0;return p.createElement(wT,{className:Pt(n._classNames.root),direction:gr.horizontal,role:"menubar","aria-label":a},p.createElement(H_,{role:l?"group":"none","aria-label":l?s:void 0,componentRef:n._overflowSet,className:Pt(n._classNames.primarySet),items:o.primaryItems,overflowItems:o.overflowItems.length?o.overflowItems:void 0,onRenderItem:n._onRenderItem,onRenderOverflowButton:n._onRenderOverflowButton}),l&&p.createElement(H_,{role:"group","aria-label":u,className:Pt(n._classNames.secondarySet),items:o.farItems,onRenderItem:n._onRenderItem,onRenderOverflowButton:wc}))},n._onRenderItem=function(o){if(o.onRender)return o.onRender(o,function(){});var i=o.text||o.name,a=_.__assign(_.__assign({allowDisabledFocus:!0,role:"menuitem"},o),{styles:iD(o.buttonStyles),className:Pt("ms-CommandBarItem-link",o.className),text:o.iconOnly?void 0:i,menuProps:o.subMenuProps,onClick:n._onButtonClick(o)});return o.iconOnly&&(i!==void 0||o.tooltipHostProps)?p.createElement(dT,_.__assign({role:"none",content:i,setAriaDescribedBy:!1},o.tooltipHostProps),n._commandButton(o,a)):n._commandButton(o,a)},n._commandButton=function(o,i){var a=n.props.buttonAs,s=o.commandBarButtonAs,u=Sp,l=u;return s&&(l=Ad(s,l)),a&&(l=Ad(a,l)),p.createElement(l,_.__assign({},i))},n._onRenderOverflowButton=function(o){var i=n.props.overflowButtonProps,a=i===void 0?{}:i,s=_.__spreadArray(_.__spreadArray([],a.menuProps?a.menuProps.items:[]),o),u=_.__assign(_.__assign({role:"menuitem"},a),{styles:_.__assign({menuIcon:{fontSize:"17px"}},a.styles),className:Pt("ms-CommandBar-overflowButton",a.className),menuProps:_.__assign(_.__assign({},a.menuProps),{items:s}),menuIconProps:_.__assign({iconName:"More"},a.menuIconProps)}),l=n.props.overflowButtonAs?Ad(n.props.overflowButtonAs,Sp):Sp;return p.createElement(l,_.__assign({},u))},n._onReduceData=function(o){var i=n.props,a=i.shiftOnReduce,s=i.onDataReduced,u=o.primaryItems,l=o.overflowItems,c=o.cacheKey,d=o.farItems,f=u[a?0:u.length-1];if(f!==void 0){f.renderedInOverflow=!0,l=_.__spreadArray([f],l),u=a?u.slice(1):u.slice(0,-1);var h=_.__assign(_.__assign({},o),{primaryItems:u,overflowItems:l});return c=n._computeCacheKey({primaryItems:u,overflow:l.length>0,farItems:d}),s&&s(f),h.cacheKey=c,h}},n._onGrowData=function(o){var i=n.props,a=i.shiftOnReduce,s=i.onDataGrown,u=o.minimumOverflowItems,l=o.primaryItems,c=o.overflowItems,d=o.cacheKey,f=o.farItems,h=c[0];if(h!==void 0&&c.length>u){h.renderedInOverflow=!1,c=c.slice(1),l=a?_.__spreadArray([h],l):_.__spreadArray(_.__spreadArray([],l),[h]);var m=_.__assign(_.__assign({},o),{primaryItems:l,overflowItems:c});return d=n._computeCacheKey({primaryItems:l,overflow:c.length>0,farItems:f}),s&&s(h),m.cacheKey=d,m}},Za(n),n}return t.prototype.render=function(){var r=this.props,n=r.items,o=r.overflowItems,i=r.farItems,a=r.styles,s=r.theme,u=r.dataDidRender,l=r.onReduceData,c=l===void 0?this._onReduceData:l,d=r.onGrowData,f=d===void 0?this._onGrowData:d,h=r.resizeGroupAs,m=h===void 0?qx:h,y={primaryItems:_.__spreadArray([],n),overflowItems:_.__spreadArray([],o),minimumOverflowItems:_.__spreadArray([],o).length,farItems:i,cacheKey:this._computeCacheKey({primaryItems:_.__spreadArray([],n),overflow:o&&o.length>0,farItems:i})};this._classNames=dD(a,{theme:s});var E=Ve(this.props,Wr);return p.createElement(m,_.__assign({},E,{componentRef:this._resizeGroup,data:y,onReduceData:c,onGrowData:f,onRenderData:this._onRenderData,dataDidRender:u}))},t.prototype.focus=function(){var r=this._overflowSet.current;r&&r.focus()},t.prototype.remeasure=function(){this._resizeGroup.current&&this._resizeGroup.current.remeasure()},t.prototype._onButtonClick=function(r){return function(n){r.inactive||r.onClick&&r.onClick(n,r)}},t.prototype._computeCacheKey=function(r){var n=r.primaryItems,o=r.overflow,i=r.farItems,a=function(c,d){var f=d.cacheKey,h=f===void 0?d.key:f;return c+h},s=n&&n.reduce(a,""),u=o?"overflow":"",l=i&&i.reduce(a,"");return[s,u,l].join("")},t.defaultProps={items:[],overflowItems:[]},t}(p.Component),hD=jt(fD,oD,void 0,{scope:"CommandBar"});function pD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons"',src:"url('"+e+"fabric-icons-a13498cf.woff') format('woff')"},icons:{GlobalNavButton:"",ChevronDown:"",ChevronUp:"",Edit:"",Add:"",Cancel:"",More:"",Settings:"",Mail:"",Filter:"",Search:"",Share:"",BlockedSite:"",FavoriteStar:"",FavoriteStarFill:"",CheckMark:"",Delete:"",ChevronLeft:"",ChevronRight:"",Calendar:"",Megaphone:"",Undo:"",Flag:"",Page:"",Pinned:"",View:"",Clear:"",Download:"",Upload:"",Folder:"",Sort:"",AlignRight:"",AlignLeft:"",Tag:"",AddFriend:"",Info:"",SortLines:"",List:"",CircleRing:"",Heart:"",HeartFill:"",Tiles:"",Embed:"",Glimmer:"",Ascending:"",Descending:"",SortUp:"",SortDown:"",SyncToPC:"",LargeGrid:"",SkypeCheck:"",SkypeClock:"",SkypeMinus:"",ClearFilter:"",Flow:"",StatusCircleCheckmark:"",MoreVertical:""}};$t(r,t)}function mD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-0"',src:"url('"+e+"fabric-icons-0-467ee27f.woff') format('woff')"},icons:{PageLink:"",CommentSolid:"",ChangeEntitlements:"",Installation:"",WebAppBuilderModule:"",WebAppBuilderFragment:"",WebAppBuilderSlot:"",BullseyeTargetEdit:"",WebAppBuilderFragmentCreate:"",PageData:"",PageHeaderEdit:"",ProductList:"",UnpublishContent:"",DependencyAdd:"",DependencyRemove:"",EntitlementPolicy:"",EntitlementRedemption:"",SchoolDataSyncLogo:"",PinSolid12:"",PinSolidOff12:"",AddLink:"",SharepointAppIcon16:"",DataflowsLink:"",TimePicker:"",UserWarning:"",ComplianceAudit:"",InternetSharing:"",Brightness:"",MapPin:"",Airplane:"",Tablet:"",QuickNote:"",Video:"",People:"",Phone:"",Pin:"",Shop:"",Stop:"",Link:"",AllApps:"",Zoom:"",ZoomOut:"",Microphone:"",Camera:"",Attach:"",Send:"",FavoriteList:"",PageSolid:"",Forward:"",Back:"",Refresh:"",Lock:"",ReportHacked:"",EMI:"",MiniLink:"",Blocked:"",ReadingMode:"",Favicon:"",Remove:"",Checkbox:"",CheckboxComposite:"",CheckboxFill:"",CheckboxIndeterminate:"",CheckboxCompositeReversed:"",BackToWindow:"",FullScreen:"",Print:"",Up:"",Down:"",OEM:"",Save:"",ReturnKey:"",Cloud:"",Flashlight:"",CommandPrompt:"",Sad:"",RealEstate:"",SIPMove:"",EraseTool:"",GripperTool:"",Dialpad:"",PageLeft:"",PageRight:"",MultiSelect:"",KeyboardClassic:"",Play:"",Pause:"",InkingTool:"",Emoji2:"",GripperBarHorizontal:"",System:"",Personalize:"",SearchAndApps:"",Globe:"",EaseOfAccess:"",ContactInfo:"",Unpin:"",Contact:"",Memo:"",IncomingCall:""}};$t(r,t)}function gD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-1"',src:"url('"+e+"fabric-icons-1-4d521695.woff') format('woff')"},icons:{Paste:"",WindowsLogo:"",Error:"",GripperBarVertical:"",Unlock:"",Slideshow:"",Trim:"",AutoEnhanceOn:"",AutoEnhanceOff:"",Color:"",SaveAs:"",Light:"",Filters:"",AspectRatio:"",Contrast:"",Redo:"",Crop:"",PhotoCollection:"",Album:"",Rotate:"",PanoIndicator:"",Translate:"",RedEye:"",ViewOriginal:"",ThumbnailView:"",Package:"",Telemarketer:"",Warning:"",Financial:"",Education:"",ShoppingCart:"",Train:"",Move:"",TouchPointer:"",Merge:"",TurnRight:"",Ferry:"",Highlight:"",PowerButton:"",Tab:"",Admin:"",TVMonitor:"",Speakers:"",Game:"",HorizontalTabKey:"",UnstackSelected:"",StackIndicator:"",Nav2DMapView:"",StreetsideSplitMinimize:"",Car:"",Bus:"",EatDrink:"",SeeDo:"",LocationCircle:"",Home:"",SwitcherStartEnd:"",ParkingLocation:"",IncidentTriangle:"",Touch:"",MapDirections:"",CaretHollow:"",CaretSolid:"",History:"",Location:"",MapLayers:"",SearchNearby:"",Work:"",Recent:"",Hotel:"",Bank:"",LocationDot:"",Dictionary:"",ChromeBack:"",FolderOpen:"",PinnedFill:"",RevToggleKey:"",USB:"",Previous:"",Next:"",Sync:"",Help:"",Emoji:"",MailForward:"",ClosePane:"",OpenPane:"",PreviewLink:"",ZoomIn:"",Bookmarks:"",Document:"",ProtectedDocument:"",OpenInNewWindow:"",MailFill:"",ViewAll:"",Switch:"",Rename:"",Go:"",Remote:"",SelectAll:"",Orientation:"",Import:""}};$t(r,t)}function vD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-2"',src:"url('"+e+"fabric-icons-2-63c99abf.woff') format('woff')"},icons:{Picture:"",ChromeClose:"",ShowResults:"",Message:"",CalendarDay:"",CalendarWeek:"",MailReplyAll:"",Read:"",Cut:"",PaymentCard:"",Copy:"",Important:"",MailReply:"",GotoToday:"",Font:"",FontColor:"",FolderFill:"",Permissions:"",DisableUpdates:"",Unfavorite:"",Italic:"",Underline:"",Bold:"",MoveToFolder:"",Dislike:"",Like:"",AlignCenter:"",OpenFile:"",ClearSelection:"",FontDecrease:"",FontIncrease:"",FontSize:"",CellPhone:"",RepeatOne:"",RepeatAll:"",Calculator:"",Library:"",PostUpdate:"",NewFolder:"",CalendarReply:"",UnsyncFolder:"",SyncFolder:"",BlockContact:"",Accept:"",BulletedList:"",Preview:"",News:"",Chat:"",Group:"",World:"",Comment:"",DockLeft:"",DockRight:"",Repair:"",Accounts:"",Street:"",RadioBullet:"",Stopwatch:"",Clock:"",WorldClock:"",AlarmClock:"",Photo:"",ActionCenter:"",Hospital:"",Timer:"",FullCircleMask:"",LocationFill:"",ChromeMinimize:"",ChromeRestore:"",Annotation:"",Fingerprint:"",Handwriting:"",ChromeFullScreen:"",Completed:"",Label:"",FlickDown:"",FlickUp:"",FlickLeft:"",FlickRight:"",MiniExpand:"",MiniContract:"",Streaming:"",MusicInCollection:"",OneDriveLogo:"",CompassNW:"",Code:"",LightningBolt:"",CalculatorMultiply:"",CalculatorAddition:"",CalculatorSubtract:"",CalculatorPercentage:"",CalculatorEqualTo:"",PrintfaxPrinterFile:"",StorageOptical:"",Communications:"",Headset:"",Health:"",Webcam2:"",FrontCamera:"",ChevronUpSmall:""}};$t(r,t)}function yD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-3"',src:"url('"+e+"fabric-icons-3-089e217a.woff') format('woff')"},icons:{ChevronDownSmall:"",ChevronLeftSmall:"",ChevronRightSmall:"",ChevronUpMed:"",ChevronDownMed:"",ChevronLeftMed:"",ChevronRightMed:"",Devices2:"",PC1:"",PresenceChickletVideo:"",Reply:"",HalfAlpha:"",ConstructionCone:"",DoubleChevronLeftMed:"",Volume0:"",Volume1:"",Volume2:"",Volume3:"",Chart:"",Robot:"",Manufacturing:"",LockSolid:"",FitPage:"",FitWidth:"",BidiLtr:"",BidiRtl:"",RightDoubleQuote:"",Sunny:"",CloudWeather:"",Cloudy:"",PartlyCloudyDay:"",PartlyCloudyNight:"",ClearNight:"",RainShowersDay:"",Rain:"",Thunderstorms:"",RainSnow:"",Snow:"",BlowingSnow:"",Frigid:"",Fog:"",Squalls:"",Duststorm:"",Unknown:"",Precipitation:"",Ribbon:"",AreaChart:"",Assign:"",FlowChart:"",CheckList:"",Diagnostic:"",Generate:"",LineChart:"",Equalizer:"",BarChartHorizontal:"",BarChartVertical:"",Freezing:"",FunnelChart:"",Processing:"",Quantity:"",ReportDocument:"",StackColumnChart:"",SnowShowerDay:"",HailDay:"",WorkFlow:"",HourGlass:"",StoreLogoMed20:"",TimeSheet:"",TriangleSolid:"",UpgradeAnalysis:"",VideoSolid:"",RainShowersNight:"",SnowShowerNight:"",Teamwork:"",HailNight:"",PeopleAdd:"",Glasses:"",DateTime2:"",Shield:"",Header1:"",PageAdd:"",NumberedList:"",PowerBILogo:"",Info2:"",MusicInCollectionFill:"",Asterisk:"",ErrorBadge:"",CircleFill:"",Record2:"",AllAppsMirrored:"",BookmarksMirrored:"",BulletedListMirrored:"",CaretHollowMirrored:"",CaretSolidMirrored:"",ChromeBackMirrored:"",ClearSelectionMirrored:"",ClosePaneMirrored:"",DockLeftMirrored:"",DoubleChevronLeftMedMirrored:"",GoMirrored:""}};$t(r,t)}function ED(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-4"',src:"url('"+e+"fabric-icons-4-a656cc0a.woff') format('woff')"},icons:{HelpMirrored:"",ImportMirrored:"",ImportAllMirrored:"",ListMirrored:"",MailForwardMirrored:"",MailReplyMirrored:"",MailReplyAllMirrored:"",MiniContractMirrored:"",MiniExpandMirrored:"",OpenPaneMirrored:"",ParkingLocationMirrored:"",SendMirrored:"",ShowResultsMirrored:"",ThumbnailViewMirrored:"",Media:"",Devices3:"",Focus:"",VideoLightOff:"",Lightbulb:"",StatusTriangle:"",VolumeDisabled:"",Puzzle:"",EmojiNeutral:"",EmojiDisappointed:"",HomeSolid:"",Ringer:"",PDF:"",HeartBroken:"",StoreLogo16:"",MultiSelectMirrored:"",Broom:"",AddToShoppingList:"",Cocktails:"",Wines:"",Articles:"",Cycling:"",DietPlanNotebook:"",Pill:"",ExerciseTracker:"",HandsFree:"",Medical:"",Running:"",Weights:"",Trackers:"",AddNotes:"",AllCurrency:"",BarChart4:"",CirclePlus:"",Coffee:"",Cotton:"",Market:"",Money:"",PieDouble:"",PieSingle:"",RemoveFilter:"",Savings:"",Sell:"",StockDown:"",StockUp:"",Lamp:"",Source:"",MSNVideos:"",Cricket:"",Golf:"",Baseball:"",Soccer:"",MoreSports:"",AutoRacing:"",CollegeHoops:"",CollegeFootball:"",ProFootball:"",ProHockey:"",Rugby:"",SubstitutionsIn:"",Tennis:"",Arrivals:"",Design:"",Website:"",Drop:"",HistoricalWeather:"",SkiResorts:"",Snowflake:"",BusSolid:"",FerrySolid:"",AirplaneSolid:"",TrainSolid:"",Ticket:"",WifiWarning4:"",Devices4:"",AzureLogo:"",BingLogo:"",MSNLogo:"",OutlookLogoInverse:"",OfficeLogo:"",SkypeLogo:"",Door:"",EditMirrored:"",GiftCard:"",DoubleBookmark:"",StatusErrorFull:""}};$t(r,t)}function _D(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-5"',src:"url('"+e+"fabric-icons-5-f95ba260.woff') format('woff')"},icons:{Certificate:"",FastForward:"",Rewind:"",Photo2:"",OpenSource:"",Movers:"",CloudDownload:"",Family:"",WindDirection:"",Bug:"",SiteScan:"",BrowserScreenShot:"",F12DevTools:"",CSS:"",JS:"",DeliveryTruck:"",ReminderPerson:"",ReminderGroup:"",ReminderTime:"",TabletMode:"",Umbrella:"",NetworkTower:"",CityNext:"",CityNext2:"",Section:"",OneNoteLogoInverse:"",ToggleFilled:"",ToggleBorder:"",SliderThumb:"",ToggleThumb:"",Documentation:"",Badge:"",Giftbox:"",VisualStudioLogo:"",HomeGroup:"",ExcelLogoInverse:"",WordLogoInverse:"",PowerPointLogoInverse:"",Cafe:"",SpeedHigh:"",Commitments:"",ThisPC:"",MusicNote:"",MicOff:"",PlaybackRate1x:"",EdgeLogo:"",CompletedSolid:"",AlbumRemove:"",MessageFill:"",TabletSelected:"",MobileSelected:"",LaptopSelected:"",TVMonitorSelected:"",DeveloperTools:"",Shapes:"",InsertTextBox:"",LowerBrightness:"",WebComponents:"",OfflineStorage:"",DOM:"",CloudUpload:"",ScrollUpDown:"",DateTime:"",Event:"",Cake:"",Org:"",PartyLeader:"",DRM:"",CloudAdd:"",AppIconDefault:"",Photo2Add:"",Photo2Remove:"",Calories:"",POI:"",AddTo:"",RadioBtnOff:"",RadioBtnOn:"",ExploreContent:"",Product:"",ProgressLoopInner:"",ProgressLoopOuter:"",Blocked2:"",FangBody:"",Toolbox:"",PageHeader:"",ChatInviteFriend:"",Brush:"",Shirt:"",Crown:"",Diamond:"",ScaleUp:"",QRCode:"",Feedback:"",SharepointLogoInverse:"",YammerLogo:"",Hide:"",Uneditable:"",ReturnToSession:"",OpenFolderHorizontal:"",CalendarMirrored:""}};$t(r,t)}function CD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-6"',src:"url('"+e+"fabric-icons-6-ef6fd590.woff') format('woff')"},icons:{SwayLogoInverse:"",OutOfOffice:"",Trophy:"",ReopenPages:"",EmojiTabSymbols:"",AADLogo:"",AccessLogo:"",AdminALogoInverse32:"",AdminCLogoInverse32:"",AdminDLogoInverse32:"",AdminELogoInverse32:"",AdminLLogoInverse32:"",AdminMLogoInverse32:"",AdminOLogoInverse32:"",AdminPLogoInverse32:"",AdminSLogoInverse32:"",AdminYLogoInverse32:"",DelveLogoInverse:"",ExchangeLogoInverse:"",LyncLogo:"",OfficeVideoLogoInverse:"",SocialListeningLogo:"",VisioLogoInverse:"",Balloons:"",Cat:"",MailAlert:"",MailCheck:"",MailLowImportance:"",MailPause:"",MailRepeat:"",SecurityGroup:"",Table:"",VoicemailForward:"",VoicemailReply:"",Waffle:"",RemoveEvent:"",EventInfo:"",ForwardEvent:"",WipePhone:"",AddOnlineMeeting:"",JoinOnlineMeeting:"",RemoveLink:"",PeopleBlock:"",PeopleRepeat:"",PeopleAlert:"",PeoplePause:"",TransferCall:"",AddPhone:"",UnknownCall:"",NoteReply:"",NoteForward:"",NotePinned:"",RemoveOccurrence:"",Timeline:"",EditNote:"",CircleHalfFull:"",Room:"",Unsubscribe:"",Subscribe:"",HardDrive:"",RecurringTask:"",TaskManager:"",TaskManagerMirrored:"",Combine:"",Split:"",DoubleChevronUp:"",DoubleChevronLeft:"",DoubleChevronRight:"",TextBox:"",TextField:"",NumberField:"",Dropdown:"",PenWorkspace:"",BookingsLogo:"",ClassNotebookLogoInverse:"",DelveAnalyticsLogo:"",DocsLogoInverse:"",Dynamics365Logo:"",DynamicSMBLogo:"",OfficeAssistantLogo:"",OfficeStoreLogo:"",OneNoteEduLogoInverse:"",PlannerLogo:"",PowerApps:"",Suitcase:"",ProjectLogoInverse:"",CaretLeft8:"",CaretRight8:"",CaretUp8:"",CaretDown8:"",CaretLeftSolid8:"",CaretRightSolid8:"",CaretUpSolid8:"",CaretDownSolid8:"",ClearFormatting:"",Superscript:"",Subscript:"",Strikethrough:"",Export:"",ExportMirrored:""}};$t(r,t)}function SD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-7"',src:"url('"+e+"fabric-icons-7-2b97bb99.woff') format('woff')"},icons:{SingleBookmark:"",SingleBookmarkSolid:"",DoubleChevronDown:"",FollowUser:"",ReplyAll:"",WorkforceManagement:"",RecruitmentManagement:"",Questionnaire:"",ManagerSelfService:"",ProductionFloorManagement:"",ProductRelease:"",ProductVariant:"",ReplyMirrored:"",ReplyAllMirrored:"",Medal:"",AddGroup:"",QuestionnaireMirrored:"",CloudImportExport:"",TemporaryUser:"",CaretSolid16:"",GroupedDescending:"",GroupedAscending:"",AwayStatus:"",MyMoviesTV:"",GenericScan:"",AustralianRules:"",WifiEthernet:"",TrackersMirrored:"",DateTimeMirrored:"",StopSolid:"",DoubleChevronUp12:"",DoubleChevronDown12:"",DoubleChevronLeft12:"",DoubleChevronRight12:"",CalendarAgenda:"",ConnectVirtualMachine:"",AddEvent:"",AssetLibrary:"",DataConnectionLibrary:"",DocLibrary:"",FormLibrary:"",FormLibraryMirrored:"",ReportLibrary:"",ReportLibraryMirrored:"",ContactCard:"",CustomList:"",CustomListMirrored:"",IssueTracking:"",IssueTrackingMirrored:"",PictureLibrary:"",OfficeAddinsLogo:"",OfflineOneDriveParachute:"",OfflineOneDriveParachuteDisabled:"",TriangleSolidUp12:"",TriangleSolidDown12:"",TriangleSolidLeft12:"",TriangleSolidRight12:"",TriangleUp12:"",TriangleDown12:"",TriangleLeft12:"",TriangleRight12:"",ArrowUpRight8:"",ArrowDownRight8:"",DocumentSet:"",GoToDashboard:"",DelveAnalytics:"",ArrowUpRightMirrored8:"",ArrowDownRightMirrored8:"",CompanyDirectory:"",OpenEnrollment:"",CompanyDirectoryMirrored:"",OneDriveAdd:"",ProfileSearch:"",Header2:"",Header3:"",Header4:"",RingerSolid:"",Eyedropper:"",MarketDown:"",CalendarWorkWeek:"",SidePanel:"",GlobeFavorite:"",CaretTopLeftSolid8:"",CaretTopRightSolid8:"",ViewAll2:"",DocumentReply:"",PlayerSettings:"",ReceiptForward:"",ReceiptReply:"",ReceiptCheck:"",Fax:"",RecurringEvent:"",ReplyAlt:"",ReplyAllAlt:"",EditStyle:"",EditMail:"",Lifesaver:"",LifesaverLock:"",InboxCheck:"",FolderSearch:""}};$t(r,t)}function wD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-8"',src:"url('"+e+"fabric-icons-8-6fdf1528.woff') format('woff')"},icons:{CollapseMenu:"",ExpandMenu:"",Boards:"",SunAdd:"",SunQuestionMark:"",LandscapeOrientation:"",DocumentSearch:"",PublicCalendar:"",PublicContactCard:"",PublicEmail:"",PublicFolder:"",WordDocument:"",PowerPointDocument:"",ExcelDocument:"",GroupedList:"",ClassroomLogo:"",Sections:"",EditPhoto:"",Starburst:"",ShareiOS:"",AirTickets:"",PencilReply:"",Tiles2:"",SkypeCircleCheck:"",SkypeCircleClock:"",SkypeCircleMinus:"",SkypeMessage:"",ClosedCaption:"",ATPLogo:"",OfficeFormsLogoInverse:"",RecycleBin:"",EmptyRecycleBin:"",Hide2:"",Breadcrumb:"",BirthdayCake:"",TimeEntry:"",CRMProcesses:"",PageEdit:"",PageArrowRight:"",PageRemove:"",Database:"",DataManagementSettings:"",CRMServices:"",EditContact:"",ConnectContacts:"",AppIconDefaultAdd:"",AppIconDefaultList:"",ActivateOrders:"",DeactivateOrders:"",ProductCatalog:"",ScatterChart:"",AccountActivity:"",DocumentManagement:"",CRMReport:"",KnowledgeArticle:"",Relationship:"",HomeVerify:"",ZipFolder:"",SurveyQuestions:"",TextDocument:"",TextDocumentShared:"",PageCheckedOut:"",PageShared:"",SaveAndClose:"",Script:"",Archive:"",ActivityFeed:"",Compare:"",EventDate:"",ArrowUpRight:"",CaretRight:"",SetAction:"",ChatBot:"",CaretSolidLeft:"",CaretSolidDown:"",CaretSolidRight:"",CaretSolidUp:"",PowerAppsLogo:"",PowerApps2Logo:"",SearchIssue:"",SearchIssueMirrored:"",FabricAssetLibrary:"",FabricDataConnectionLibrary:"",FabricDocLibrary:"",FabricFormLibrary:"",FabricFormLibraryMirrored:"",FabricReportLibrary:"",FabricReportLibraryMirrored:"",FabricPublicFolder:"",FabricFolderSearch:"",FabricMovetoFolder:"",FabricUnsyncFolder:"",FabricSyncFolder:"",FabricOpenFolderHorizontal:"",FabricFolder:"",FabricFolderFill:"",FabricNewFolder:"",FabricPictureLibrary:"",PhotoVideoMedia:"",AddFavorite:""}};$t(r,t)}function TD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-9"',src:"url('"+e+"fabric-icons-9-c6162b42.woff') format('woff')"},icons:{AddFavoriteFill:"",BufferTimeBefore:"",BufferTimeAfter:"",BufferTimeBoth:"",PublishContent:"",ClipboardList:"",ClipboardListMirrored:"",CannedChat:"",SkypeForBusinessLogo:"",TabCenter:"",PageCheckedin:"",PageList:"",ReadOutLoud:"",CaretBottomLeftSolid8:"",CaretBottomRightSolid8:"",FolderHorizontal:"",MicrosoftStaffhubLogo:"",GiftboxOpen:"",StatusCircleOuter:"",StatusCircleInner:"",StatusCircleRing:"",StatusTriangleOuter:"",StatusTriangleInner:"",StatusTriangleExclamation:"",StatusCircleExclamation:"",StatusCircleErrorX:"",StatusCircleInfo:"",StatusCircleBlock:"",StatusCircleBlock2:"",StatusCircleQuestionMark:"",StatusCircleSync:"",Toll:"",ExploreContentSingle:"",CollapseContent:"",CollapseContentSingle:"",InfoSolid:"",GroupList:"",ProgressRingDots:"",CaloriesAdd:"",BranchFork:"",MuteChat:"",AddHome:"",AddWork:"",MobileReport:"",ScaleVolume:"",HardDriveGroup:"",FastMode:"",ToggleLeft:"",ToggleRight:"",TriangleShape:"",RectangleShape:"",CubeShape:"",Trophy2:"",BucketColor:"",BucketColorFill:"",Taskboard:"",SingleColumn:"",DoubleColumn:"",TripleColumn:"",ColumnLeftTwoThirds:"",ColumnRightTwoThirds:"",AccessLogoFill:"",AnalyticsLogo:"",AnalyticsQuery:"",NewAnalyticsQuery:"",AnalyticsReport:"",WordLogo:"",WordLogoFill:"",ExcelLogo:"",ExcelLogoFill:"",OneNoteLogo:"",OneNoteLogoFill:"",OutlookLogo:"",OutlookLogoFill:"",PowerPointLogo:"",PowerPointLogoFill:"",PublisherLogo:"",PublisherLogoFill:"",ScheduleEventAction:"",FlameSolid:"",ServerProcesses:"",Server:"",SaveAll:"",LinkedInLogo:"",Decimals:"",SidePanelMirrored:"",ProtectRestrict:"",Blog:"",UnknownMirrored:"",PublicContactCardMirrored:"",GridViewSmall:"",GridViewMedium:"",GridViewLarge:"",Step:"",StepInsert:"",StepShared:"",StepSharedAdd:"",StepSharedInsert:"",ViewDashboard:"",ViewList:""}};$t(r,t)}function bD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-10"',src:"url('"+e+"fabric-icons-10-c4ded8e4.woff') format('woff')"},icons:{ViewListGroup:"",ViewListTree:"",TriggerAuto:"",TriggerUser:"",PivotChart:"",StackedBarChart:"",StackedLineChart:"",BuildQueue:"",BuildQueueNew:"",UserFollowed:"",ContactLink:"",Stack:"",Bullseye:"",VennDiagram:"",FiveTileGrid:"",FocalPoint:"",Insert:"",RingerRemove:"",TeamsLogoInverse:"",TeamsLogo:"",TeamsLogoFill:"",SkypeForBusinessLogoFill:"",SharepointLogo:"",SharepointLogoFill:"",DelveLogo:"",DelveLogoFill:"",OfficeVideoLogo:"",OfficeVideoLogoFill:"",ExchangeLogo:"",ExchangeLogoFill:"",Signin:"",DocumentApproval:"",CloneToDesktop:"",InstallToDrive:"",Blur:"",Build:"",ProcessMetaTask:"",BranchFork2:"",BranchLocked:"",BranchCommit:"",BranchCompare:"",BranchMerge:"",BranchPullRequest:"",BranchSearch:"",BranchShelveset:"",RawSource:"",MergeDuplicate:"",RowsGroup:"",RowsChild:"",Deploy:"",Redeploy:"",ServerEnviroment:"",VisioDiagram:"",HighlightMappedShapes:"",TextCallout:"",IconSetsFlag:"",VisioLogo:"",VisioLogoFill:"",VisioDocument:"",TimelineProgress:"",TimelineDelivery:"",Backlog:"",TeamFavorite:"",TaskGroup:"",TaskGroupMirrored:"",ScopeTemplate:"",AssessmentGroupTemplate:"",NewTeamProject:"",CommentAdd:"",CommentNext:"",CommentPrevious:"",ShopServer:"",LocaleLanguage:"",QueryList:"",UserSync:"",UserPause:"",StreamingOff:"",ArrowTallUpLeft:"",ArrowTallUpRight:"",ArrowTallDownLeft:"",ArrowTallDownRight:"",FieldEmpty:"",FieldFilled:"",FieldChanged:"",FieldNotChanged:"",RingerOff:"",PlayResume:"",BulletedList2:"",BulletedList2Mirrored:"",ImageCrosshair:"",GitGraph:"",Repo:"",RepoSolid:"",FolderQuery:"",FolderList:"",FolderListMirrored:"",LocationOutline:"",POISolid:"",CalculatorNotEqualTo:"",BoxSubtractSolid:""}};$t(r,t)}function ID(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-11"',src:"url('"+e+"fabric-icons-11-2a8393d6.woff') format('woff')"},icons:{BoxAdditionSolid:"",BoxMultiplySolid:"",BoxPlaySolid:"",BoxCheckmarkSolid:"",CirclePauseSolid:"",CirclePause:"",MSNVideosSolid:"",CircleStopSolid:"",CircleStop:"",NavigateBack:"",NavigateBackMirrored:"",NavigateForward:"",NavigateForwardMirrored:"",UnknownSolid:"",UnknownMirroredSolid:"",CircleAddition:"",CircleAdditionSolid:"",FilePDB:"",FileTemplate:"",FileSQL:"",FileJAVA:"",FileASPX:"",FileCSS:"",FileSass:"",FileLess:"",FileHTML:"",JavaScriptLanguage:"",CSharpLanguage:"",CSharp:"",VisualBasicLanguage:"",VB:"",CPlusPlusLanguage:"",CPlusPlus:"",FSharpLanguage:"",FSharp:"",TypeScriptLanguage:"",PythonLanguage:"",PY:"",CoffeeScript:"",MarkDownLanguage:"",FullWidth:"",FullWidthEdit:"",Plug:"",PlugSolid:"",PlugConnected:"",PlugDisconnected:"",UnlockSolid:"",Variable:"",Parameter:"",CommentUrgent:"",Storyboard:"",DiffInline:"",DiffSideBySide:"",ImageDiff:"",ImagePixel:"",FileBug:"",FileCode:"",FileComment:"",BusinessHoursSign:"",FileImage:"",FileSymlink:"",AutoFillTemplate:"",WorkItem:"",WorkItemBug:"",LogRemove:"",ColumnOptions:"",Packages:"",BuildIssue:"",AssessmentGroup:"",VariableGroup:"",FullHistory:"",Wheelchair:"",SingleColumnEdit:"",DoubleColumnEdit:"",TripleColumnEdit:"",ColumnLeftTwoThirdsEdit:"",ColumnRightTwoThirdsEdit:"",StreamLogo:"",PassiveAuthentication:"",AlertSolid:"",MegaphoneSolid:"",TaskSolid:"",ConfigurationSolid:"",BugSolid:"",CrownSolid:"",Trophy2Solid:"",QuickNoteSolid:"",ConstructionConeSolid:"",PageListSolid:"",PageListMirroredSolid:"",StarburstSolid:"",ReadingModeSolid:"",SadSolid:"",HealthSolid:"",ShieldSolid:"",GiftBoxSolid:"",ShoppingCartSolid:"",MailSolid:"",ChatSolid:"",RibbonSolid:""}};$t(r,t)}function kD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-12"',src:"url('"+e+"fabric-icons-12-7e945a1e.woff') format('woff')"},icons:{FinancialSolid:"",FinancialMirroredSolid:"",HeadsetSolid:"",PermissionsSolid:"",ParkingSolid:"",ParkingMirroredSolid:"",DiamondSolid:"",AsteriskSolid:"",OfflineStorageSolid:"",BankSolid:"",DecisionSolid:"",Parachute:"",ParachuteSolid:"",FiltersSolid:"",ColorSolid:"",ReviewSolid:"",ReviewRequestSolid:"",ReviewRequestMirroredSolid:"",ReviewResponseSolid:"",FeedbackRequestSolid:"",FeedbackRequestMirroredSolid:"",FeedbackResponseSolid:"",WorkItemBar:"",WorkItemBarSolid:"",Separator:"",NavigateExternalInline:"",PlanView:"",TimelineMatrixView:"",EngineeringGroup:"",ProjectCollection:"",CaretBottomRightCenter8:"",CaretBottomLeftCenter8:"",CaretTopRightCenter8:"",CaretTopLeftCenter8:"",DonutChart:"",ChevronUnfold10:"",ChevronFold10:"",DoubleChevronDown8:"",DoubleChevronUp8:"",DoubleChevronLeft8:"",DoubleChevronRight8:"",ChevronDownEnd6:"",ChevronUpEnd6:"",ChevronLeftEnd6:"",ChevronRightEnd6:"",ContextMenu:"",AzureAPIManagement:"",AzureServiceEndpoint:"",VSTSLogo:"",VSTSAltLogo1:"",VSTSAltLogo2:"",FileTypeSolution:"",WordLogoInverse16:"",WordLogo16:"",WordLogoFill16:"",PowerPointLogoInverse16:"",PowerPointLogo16:"",PowerPointLogoFill16:"",ExcelLogoInverse16:"",ExcelLogo16:"",ExcelLogoFill16:"",OneNoteLogoInverse16:"",OneNoteLogo16:"",OneNoteLogoFill16:"",OutlookLogoInverse16:"",OutlookLogo16:"",OutlookLogoFill16:"",PublisherLogoInverse16:"",PublisherLogo16:"",PublisherLogoFill16:"",VisioLogoInverse16:"",VisioLogo16:"",VisioLogoFill16:"",TestBeaker:"",TestBeakerSolid:"",TestExploreSolid:"",TestAutoSolid:"",TestUserSolid:"",TestImpactSolid:"",TestPlan:"",TestStep:"",TestParameter:"",TestSuite:"",TestCase:"",Sprint:"",SignOut:"",TriggerApproval:"",Rocket:"",AzureKeyVault:"",Onboarding:"",Transition:"",LikeSolid:"",DislikeSolid:"",CRMCustomerInsightsApp:"",EditCreate:"",PlayReverseResume:"",PlayReverse:"",SearchData:"",UnSetColor:"",DeclineCall:""}};$t(r,t)}function AD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-13"',src:"url('"+e+"fabric-icons-13-c3989a02.woff') format('woff')"},icons:{RectangularClipping:"",TeamsLogo16:"",TeamsLogoFill16:"",Spacer:"",SkypeLogo16:"",SkypeForBusinessLogo16:"",SkypeForBusinessLogoFill16:"",FilterSolid:"",MailUndelivered:"",MailTentative:"",MailTentativeMirrored:"",MailReminder:"",ReceiptUndelivered:"",ReceiptTentative:"",ReceiptTentativeMirrored:"",Inbox:"",IRMReply:"",IRMReplyMirrored:"",IRMForward:"",IRMForwardMirrored:"",VoicemailIRM:"",EventAccepted:"",EventTentative:"",EventTentativeMirrored:"",EventDeclined:"",IDBadge:"",BackgroundColor:"",OfficeFormsLogoInverse16:"",OfficeFormsLogo:"",OfficeFormsLogoFill:"",OfficeFormsLogo16:"",OfficeFormsLogoFill16:"",OfficeFormsLogoInverse24:"",OfficeFormsLogo24:"",OfficeFormsLogoFill24:"",PageLock:"",NotExecuted:"",NotImpactedSolid:"",FieldReadOnly:"",FieldRequired:"",BacklogBoard:"",ExternalBuild:"",ExternalTFVC:"",ExternalXAML:"",IssueSolid:"",DefectSolid:"",LadybugSolid:"",NugetLogo:"",TFVCLogo:"",ProjectLogo32:"",ProjectLogoFill32:"",ProjectLogo16:"",ProjectLogoFill16:"",SwayLogo32:"",SwayLogoFill32:"",SwayLogo16:"",SwayLogoFill16:"",ClassNotebookLogo32:"",ClassNotebookLogoFill32:"",ClassNotebookLogo16:"",ClassNotebookLogoFill16:"",ClassNotebookLogoInverse32:"",ClassNotebookLogoInverse16:"",StaffNotebookLogo32:"",StaffNotebookLogoFill32:"",StaffNotebookLogo16:"",StaffNotebookLogoFill16:"",StaffNotebookLogoInverted32:"",StaffNotebookLogoInverted16:"",KaizalaLogo:"",TaskLogo:"",ProtectionCenterLogo32:"",GallatinLogo:"",Globe2:"",Guitar:"",Breakfast:"",Brunch:"",BeerMug:"",Vacation:"",Teeth:"",Taxi:"",Chopsticks:"",SyncOccurence:"",UnsyncOccurence:"",GIF:"",PrimaryCalendar:"",SearchCalendar:"",VideoOff:"",MicrosoftFlowLogo:"",BusinessCenterLogo:"",ToDoLogoBottom:"",ToDoLogoTop:"",EditSolid12:"",EditSolidMirrored12:"",UneditableSolid12:"",UneditableSolidMirrored12:"",UneditableMirrored:"",AdminALogo32:"",AdminALogoFill32:"",ToDoLogoInverse:""}};$t(r,t)}function RD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-14"',src:"url('"+e+"fabric-icons-14-5cf58db8.woff') format('woff')"},icons:{Snooze:"",WaffleOffice365:"",ImageSearch:"",NewsSearch:"",VideoSearch:"",R:"",FontColorA:"",FontColorSwatch:"",LightWeight:"",NormalWeight:"",SemiboldWeight:"",GroupObject:"",UngroupObject:"",AlignHorizontalLeft:"",AlignHorizontalCenter:"",AlignHorizontalRight:"",AlignVerticalTop:"",AlignVerticalCenter:"",AlignVerticalBottom:"",HorizontalDistributeCenter:"",VerticalDistributeCenter:"",Ellipse:"",Line:"",Octagon:"",Hexagon:"",Pentagon:"",RightTriangle:"",HalfCircle:"",QuarterCircle:"",ThreeQuarterCircle:"","6PointStar":"","12PointStar":"",ArrangeBringToFront:"",ArrangeSendToBack:"",ArrangeSendBackward:"",ArrangeBringForward:"",BorderDash:"",BorderDot:"",LineStyle:"",LineThickness:"",WindowEdit:"",HintText:"",MediaAdd:"",AnchorLock:"",AutoHeight:"",ChartSeries:"",ChartXAngle:"",ChartYAngle:"",Combobox:"",LineSpacing:"",Padding:"",PaddingTop:"",PaddingBottom:"",PaddingLeft:"",PaddingRight:"",NavigationFlipper:"",AlignJustify:"",TextOverflow:"",VisualsFolder:"",VisualsStore:"",PictureCenter:"",PictureFill:"",PicturePosition:"",PictureStretch:"",PictureTile:"",Slider:"",SliderHandleSize:"",DefaultRatio:"",NumberSequence:"",GUID:"",ReportAdd:"",DashboardAdd:"",MapPinSolid:"",WebPublish:"",PieSingleSolid:"",BlockedSolid:"",DrillDown:"",DrillDownSolid:"",DrillExpand:"",DrillShow:"",SpecialEvent:"",OneDriveFolder16:"",FunctionalManagerDashboard:"",BIDashboard:"",CodeEdit:"",RenewalCurrent:"",RenewalFuture:"",SplitObject:"",BulkUpload:"",DownloadDocument:"",GreetingCard:"",Flower:"",WaitlistConfirm:"",WaitlistConfirmMirrored:"",LaptopSecure:"",DragObject:"",EntryView:"",EntryDecline:"",ContactCardSettings:"",ContactCardSettingsMirrored:""}};$t(r,t)}function PD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-15"',src:"url('"+e+"fabric-icons-15-3807251b.woff') format('woff')"},icons:{CalendarSettings:"",CalendarSettingsMirrored:"",HardDriveLock:"",HardDriveUnlock:"",AccountManagement:"",ReportWarning:"",TransitionPop:"",TransitionPush:"",TransitionEffect:"",LookupEntities:"",ExploreData:"",AddBookmark:"",SearchBookmark:"",DrillThrough:"",MasterDatabase:"",CertifiedDatabase:"",MaximumValue:"",MinimumValue:"",VisualStudioIDELogo32:"",PasteAsText:"",PasteAsCode:"",BrowserTab:"",BrowserTabScreenshot:"",DesktopScreenshot:"",FileYML:"",ClipboardSolid:"",FabricUserFolder:"",FabricNetworkFolder:"",BullseyeTarget:"",AnalyticsView:"",Video360Generic:"",Untag:"",Leave:"",Trending12:"",Blocked12:"",Warning12:"",CheckedOutByOther12:"",CheckedOutByYou12:"",CircleShapeSolid:"",SquareShapeSolid:"",TriangleShapeSolid:"",DropShapeSolid:"",RectangleShapeSolid:"",ZoomToFit:"",InsertColumnsLeft:"",InsertColumnsRight:"",InsertRowsAbove:"",InsertRowsBelow:"",DeleteColumns:"",DeleteRows:"",DeleteRowsMirrored:"",DeleteTable:"",AccountBrowser:"",VersionControlPush:"",StackedColumnChart2:"",TripleColumnWide:"",QuadColumn:"",WhiteBoardApp16:"",WhiteBoardApp32:"",PinnedSolid:"",InsertSignatureLine:"",ArrangeByFrom:"",Phishing:"",CreateMailRule:"",PublishCourse:"",DictionaryRemove:"",UserRemove:"",UserEvent:"",Encryption:"",PasswordField:"",OpenInNewTab:"",Hide3:"",VerifiedBrandSolid:"",MarkAsProtected:"",AuthenticatorApp:"",WebTemplate:"",DefenderTVM:"",MedalSolid:"",D365TalentLearn:"",D365TalentInsight:"",D365TalentHRCore:"",BacklogList:"",ButtonControl:"",TableGroup:"",MountainClimbing:"",TagUnknown:"",TagUnknownMirror:"",TagUnknown12:"",TagUnknown12Mirror:"",Link12:"",Presentation:"",Presentation12:"",Lock12:"",BuildDefinition:"",ReleaseDefinition:"",SaveTemplate:"",UserGauge:"",BlockedSiteSolid12:"",TagSolid:"",OfficeChat:""}};$t(r,t)}function MD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-16"',src:"url('"+e+"fabric-icons-16-9cf93f3b.woff') format('woff')"},icons:{OfficeChatSolid:"",MailSchedule:"",WarningSolid:"",Blocked2Solid:"",SkypeCircleArrow:"",SkypeArrow:"",SyncStatus:"",SyncStatusSolid:"",ProjectDocument:"",ToDoLogoOutline:"",VisioOnlineLogoFill32:"",VisioOnlineLogo32:"",VisioOnlineLogoCloud32:"",VisioDiagramSync:"",Event12:"",EventDateMissed12:"",UserOptional:"",ResponsesMenu:"",DoubleDownArrow:"",DistributeDown:"",BookmarkReport:"",FilterSettings:"",GripperDotsVertical:"",MailAttached:"",AddIn:"",LinkedDatabase:"",TableLink:"",PromotedDatabase:"",BarChartVerticalFilter:"",BarChartVerticalFilterSolid:"",MicOff2:"",MicrosoftTranslatorLogo:"",ShowTimeAs:"",FileRequest:"",WorkItemAlert:"",PowerBILogo16:"",PowerBILogoBackplate16:"",BulletedListText:"",BulletedListBullet:"",BulletedListTextMirrored:"",BulletedListBulletMirrored:"",NumberedListText:"",NumberedListNumber:"",NumberedListTextMirrored:"",NumberedListNumberMirrored:"",RemoveLinkChain:"",RemoveLinkX:"",FabricTextHighlight:"",ClearFormattingA:"",ClearFormattingEraser:"",Photo2Fill:"",IncreaseIndentText:"",IncreaseIndentArrow:"",DecreaseIndentText:"",DecreaseIndentArrow:"",IncreaseIndentTextMirrored:"",IncreaseIndentArrowMirrored:"",DecreaseIndentTextMirrored:"",DecreaseIndentArrowMirrored:"",CheckListText:"",CheckListCheck:"",CheckListTextMirrored:"",CheckListCheckMirrored:"",NumberSymbol:"",Coupon:"",VerifiedBrand:"",ReleaseGate:"",ReleaseGateCheck:"",ReleaseGateError:"",M365InvoicingLogo:"",RemoveFromShoppingList:"",ShieldAlert:"",FabricTextHighlightComposite:"",Dataflows:"",GenericScanFilled:"",DiagnosticDataBarTooltip:"",SaveToMobile:"",Orientation2:"",ScreenCast:"",ShowGrid:"",SnapToGrid:"",ContactList:"",NewMail:"",EyeShadow:"",FabricFolderConfirm:"",InformationBarriers:"",CommentActive:"",ColumnVerticalSectionEdit:"",WavingHand:"",ShakeDevice:"",SmartGlassRemote:"",Rotate90Clockwise:"",Rotate90CounterClockwise:"",CampaignTemplate:"",ChartTemplate:"",PageListFilter:"",SecondaryNav:"",ColumnVerticalSection:"",SkypeCircleSlash:"",SkypeSlash:""}};$t(r,t)}function FD(e,t){e===void 0&&(e="");var r={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-17"',src:"url('"+e+"fabric-icons-17-0c4ed701.woff') format('woff')"},icons:{CustomizeToolbar:"",DuplicateRow:"",RemoveFromTrash:"",MailOptions:"",Childof:"",Footer:"",Header:"",BarChartVerticalFill:"",StackedColumnChart2Fill:"",PlainText:"",AccessibiltyChecker:"",DatabaseSync:"",ReservationOrders:"",TabOneColumn:"",TabTwoColumn:"",TabThreeColumn:"",BulletedTreeList:"",MicrosoftTranslatorLogoGreen:"",MicrosoftTranslatorLogoBlue:"",InternalInvestigation:"",AddReaction:"",ContactHeart:"",VisuallyImpaired:"",EventToDoLogo:"",Variable2:"",ModelingView:"",DisconnectVirtualMachine:"",ReportLock:"",Uneditable2:"",Uneditable2Mirrored:"",BarChartVerticalEdit:"",GlobalNavButtonActive:"",PollResults:"",Rerun:"",QandA:"",QandAMirror:"",BookAnswers:"",AlertSettings:"",TrimStart:"",TrimEnd:"",TableComputed:"",DecreaseIndentLegacy:"",IncreaseIndentLegacy:"",SizeLegacy:""}};$t(r,t)}var ND=function(){pa("trash","delete"),pa("onedrive","onedrivelogo"),pa("alertsolid12","eventdatemissed12"),pa("sixpointstar","6pointstar"),pa("twelvepointstar","12pointstar"),pa("toggleon","toggleleft"),pa("toggleoff","toggleright")};bv("@fluentui/font-icons-mdl2","8.5.13");var xD=IF+"/assets/icons/",ms=mt();function DD(e,t){var r,n;e===void 0&&(e=((r=ms==null?void 0:ms.FabricConfig)===null||r===void 0?void 0:r.iconBaseUrl)||((n=ms==null?void 0:ms.FabricConfig)===null||n===void 0?void 0:n.fontBaseUrl)||xD),[pD,mD,gD,vD,yD,ED,_D,CD,SD,wD,TD,bD,ID,kD,AD,RD,PD,MD,FD].forEach(function(o){return o(e,t)}),ND()}var z_=Wt(),OD=.01,LD=function(e){_.__extends(t,e);function t(r){var n=e.call(this,r)||this;n._onRenderProgress=function(i){var a=n.props,s=a.ariaLabel,u=a.ariaValueText,l=a.barHeight,c=a.className,d=a.description,f=a.label,h=f===void 0?n.props.title:f,m=a.styles,y=a.theme,E=typeof n.props.percentComplete=="number"?Math.min(100,Math.max(0,n.props.percentComplete*100)):void 0,v=z_(m,{theme:y,className:c,barHeight:l,indeterminate:E===void 0}),g={width:E!==void 0?E+"%":void 0,transition:E!==void 0&&E<OD?"none":void 0},C=E!==void 0?0:void 0,S=E!==void 0?100:void 0,w=E!==void 0?Math.floor(E):void 0;return p.createElement("div",{className:v.itemProgress},p.createElement("div",{className:v.progressTrack}),p.createElement("div",{className:v.progressBar,style:g,role:"progressbar","aria-describedby":d?n._descriptionId:void 0,"aria-label":s,"aria-labelledby":h?n._labelId:void 0,"aria-valuemin":C,"aria-valuemax":S,"aria-valuenow":w,"aria-valuetext":u}))};var o=Zt("progress-indicator");return n._labelId=o+"-label",n._descriptionId=o+"-description",n}return t.prototype.render=function(){var r=this.props,n=r.barHeight,o=r.className,i=r.label,a=i===void 0?this.props.title:i,s=r.description,u=r.styles,l=r.theme,c=r.progressHidden,d=r.onRenderProgress,f=d===void 0?this._onRenderProgress:d,h=typeof this.props.percentComplete=="number"?Math.min(100,Math.max(0,this.props.percentComplete*100)):void 0,m=z_(u,{theme:l,className:o,barHeight:n,indeterminate:h===void 0});return p.createElement("div",{className:m.root},a?p.createElement("div",{id:this._labelId,className:m.itemName},a):null,c?null:f(_.__assign(_.__assign({},this.props),{percentComplete:h}),this._onRenderProgress),s?p.createElement("div",{id:this._descriptionId,className:m.itemDescription},s):null)},t.defaultProps={label:"",description:"",width:180},t}(p.Component),BD={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},UD=gt(function(){return Dr({"0%":{left:"-30%"},"100%":{left:"100%"}})}),HD=gt(function(){return Dr({"100%":{right:"-30%"},"0%":{right:"100%"}})}),zD=function(e){var t,r,n,o=Rt(e.theme),i=e.className,a=e.indeterminate,s=e.theme,u=e.barHeight,l=u===void 0?2:u,c=s.palette,d=s.semanticColors,f=s.fonts,h=Sr(BD,s),m=8,y=18,E=c.neutralLight;return{root:[h.root,f.medium,i],itemName:[h.itemName,Cs,{color:d.bodyText,paddingTop:m/2,lineHeight:y+2}],itemDescription:[h.itemDescription,{color:d.bodySubtext,fontSize:f.small.fontSize,lineHeight:y}],itemProgress:[h.itemProgress,{position:"relative",overflow:"hidden",height:l,padding:m+"px 0"}],progressTrack:[h.progressTrack,{position:"absolute",width:"100%",height:l,backgroundColor:E,selectors:(t={},t[Z]={borderBottom:"1px solid WindowText"},t)}],progressBar:[{backgroundColor:c.themePrimary,height:l,position:"absolute",transition:"width .3s ease",width:0,selectors:(r={},r[Z]=_.__assign({backgroundColor:"highlight"},er()),r)},a?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, "+E+" 0%, "+(c.themePrimary+" 50%, "+E+" 100%)"),animation:(o?HD():UD())+" 3s infinite",selectors:(n={},n[Z]={background:"highlight"},n)}:{transition:"width .15s linear"},h.progressBar]}},KD=jt(LD,zD,void 0,{scope:"ProgressIndicator"}),GD=1e3,qD=Wt(),K_=function(e){return function(t){var r;return r={},r[e]=t+"%",r}},Tp=function(e,t,r){return r===t?0:(e-t)/(r-t)*100},VD=function(e,t,r,n){p.useImperativeHandle(e.componentRef,function(){return{get value(){return r},get range(){return n},focus:function(){var o;(o=t.current)===null||o===void 0||o.focus()}}},[n,t,r])},WD=function(e,t){var r=e.step,n=r===void 0?1:r,o=e.className,i=e.disabled,a=i===void 0?!1:i,s=e.label,u=e.max,l=u===void 0?10:u,c=e.min,d=c===void 0?0:c,f=e.showValue,h=f===void 0?!0:f,m=e.buttonProps,y=m===void 0?{}:m,E=e.vertical,v=E===void 0?!1:E,g=e.snapToStep,C=e.valueFormat,S=e.styles,w=e.theme,I=e.originFromZero,b=e["aria-labelledby"],k=e.ariaLabel,O=k===void 0?e["aria-label"]:k,L=e.ranged,se=e.onChange,B=e.onChanged,ae=p.useRef([]),G=YF(),oe=G.setTimeout,me=G.clearTimeout,P=p.useRef(null),T=g_(e.value,e.defaultValue,function(Ee,Be){return se==null?void 0:se(Be,L?[V.latestLowerValue,Be]:void 0,Ee)}),M=T[0],F=T[1],N=g_(e.lowerValue,e.defaultLowerValue,function(Ee,Be){return se==null?void 0:se(V.latestValue,[Be,V.latestValue],Ee)}),x=N[0],Y=N[1],de=Math.max(d,Math.min(l,M||0)),ye=Math.max(d,Math.min(de,x||0)),V=hn({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:de,latestLowerValue:ye});V.latestValue=de,V.latestLowerValue=ye;var ke=Vi("Slider",e.id||(y==null?void 0:y.id)),Ae=qD(S,{className:o,disabled:a,vertical:v,showTransitions:!g&&!V.isBetweenSteps,showValue:h,ranged:L,theme:w}),Le=(l-d)/n,ot=function(){me(V.onKeyDownTimer),V.onKeyDownTimer=-1},it=function(Ee){ot(),B&&(V.onKeyDownTimer=oe(function(){B(Ee,V.latestValue,L?[V.latestLowerValue,V.latestValue]:void 0)},GD))},Ze=function(Ee){var Be=e.ariaValueText;if(Ee!==void 0)return Be?Be(Ee):Ee.toString()},ze=function(Ee,Be,et){Be=Math.min(l,Math.max(d,Be)),et=et!==void 0?Math.min(l,Math.max(d,et)):void 0;var Ft=0;if(isFinite(n))for(;Math.round(n*Math.pow(10,Ft))/Math.pow(10,Ft)!==n;)Ft++;var kt=parseFloat(Be.toFixed(Ft));V.isBetweenSteps=et!==void 0&&et!==kt,L?V.isAdjustingLowerValue&&(I?kt<=0:kt<=V.latestValue)?Y(kt,Ee):!V.isAdjustingLowerValue&&(I?kt>=0:kt>=V.latestLowerValue)&&F(kt,Ee):F(kt,Ee)},nr=function(Ee){var Be=V.isAdjustingLowerValue?V.latestLowerValue:V.latestValue,et=0;switch(Ee.which){case jE(ve.left,e.theme):case ve.down:et=-n,ot(),it(Ee);break;case jE(ve.right,e.theme):case ve.up:et=n,ot(),it(Ee);break;case ve.home:Be=d,ot(),it(Ee);break;case ve.end:Be=l,ot(),it(Ee);break;default:return}ze(Ee,Be+et),Ee.preventDefault(),Ee.stopPropagation()},Hn=function(Ee,Be){var et=0;switch(Ee.type){case"mousedown":case"mousemove":et=Be?Ee.clientY:Ee.clientX;break;case"touchstart":case"touchmove":et=Be?Ee.touches[0].clientY:Ee.touches[0].clientX;break}return et},yt=function(Ee){var Be=P.current.getBoundingClientRect(),et=e.vertical?Be.height:Be.width,Ft=et/Le,kt,Lo;if(e.vertical){var is=Hn(Ee,e.vertical);Lo=Be.bottom-is,kt=Lo/Ft}else{var pi=Hn(Ee,e.vertical);Lo=Rt(e.theme)?Be.right-pi:pi-Be.left,kt=Lo/Ft}return kt},ft=function(Ee,Be){var et=yt(Ee),Ft=d+n*et,kt=d+n*Math.round(et);ze(Ee,kt,Ft),Be||(Ee.preventDefault(),Ee.stopPropagation())},En=function(Ee){if(L){var Be=yt(Ee),et=d+n*Be;V.isAdjustingLowerValue=et<=V.latestLowerValue||et-V.latestLowerValue<=V.latestValue-et}Ee.type==="mousedown"?ae.current.push(wo(window,"mousemove",ft,!0),wo(window,"mouseup",ao,!0)):Ee.type==="touchstart"&&ae.current.push(wo(window,"touchmove",ft,!0),wo(window,"touchend",ao,!0)),ft(Ee,!0)},ao=function(Ee){V.isBetweenSteps=void 0,B==null||B(Ee,V.latestValue,L?[V.latestLowerValue,V.latestValue]:void 0),aa()},ia=function(Ee){V.isAdjustingLowerValue=Ee.target===ci.current},aa=p.useCallback(function(){ae.current.forEach(function(Ee){return Ee()}),ae.current=[]},[]);p.useEffect(function(){return aa},[aa]);var ci=p.useRef(null),Fo=p.useRef(null),zn=p.useRef(null);VD(e,zn,de,L?[ye,de]:void 0);var _n=K_(v?"bottom":Rt(e.theme)?"right":"left"),di=K_(v?"height":"width"),sa=I?0:d,so=Tp(de,d,l),No=Tp(ye,d,l),xo=Tp(sa,d,l),Do=L?so-No:Math.abs(xo-so),Oo=Math.min(100-so,100-xo),$r=L?No:Math.min(so,xo),uo={className:Ae.root,ref:t},ua={className:Ae.titleLabel,children:s,disabled:a,htmlFor:O?void 0:ke},fi=h?{className:Ae.valueLabel,children:C?C(de):de,disabled:a,htmlFor:a?ke:void 0}:void 0,ku=L&&h?{className:Ae.valueLabel,children:C?C(ye):ye,disabled:a}:void 0,Cn=I?{className:Ae.zeroTick,style:_n(xo)}:void 0,la={className:Pt(Ae.lineContainer,Ae.activeSection),style:di(Do)},rs={className:Pt(Ae.lineContainer,Ae.inactiveSection),style:di(Oo)},It={className:Pt(Ae.lineContainer,Ae.inactiveSection),style:di($r)},Qr=_.__assign({"aria-disabled":a,role:"slider",tabIndex:a?void 0:0},{"data-is-focusable":!a}),Au=_.__assign(_.__assign(_.__assign({id:ke,className:Pt(Ae.slideBox,y.className),ref:zn},!a&&{onMouseDown:En,onTouchStart:En,onKeyDown:nr}),y&&Ve(y,Wr,["id","className"])),!L&&_.__assign(_.__assign({},Qr),{"aria-valuemin":d,"aria-valuemax":l,"aria-valuenow":de,"aria-valuetext":Ze(de),"aria-label":O||s,"aria-labelledby":b})),ca=a?{}:{onFocus:ia},hi=_.__assign({ref:Fo,className:Ae.thumb,style:_n(so)},L&&_.__assign(_.__assign(_.__assign({},Qr),ca),{id:"max-"+ke,"aria-valuemin":ye,"aria-valuemax":l,"aria-valuenow":de,"aria-valuetext":Ze(de),"aria-label":"max "+(O||s)})),Yr=L?_.__assign(_.__assign(_.__assign({ref:ci,className:Ae.thumb,style:_n(No)},Qr),ca),{id:"min-"+ke,"aria-valuemin":d,"aria-valuemax":de,"aria-valuenow":ye,"aria-valuetext":Ze(ye),"aria-label":"min "+(O||s)}):void 0,ns={className:Ae.container},os={ref:P,className:Ae.line};return{root:uo,label:ua,sliderBox:Au,container:ns,valueLabel:fi,lowerValueLabel:ku,thumb:hi,lowerValueThumb:Yr,zeroTick:Cn,activeTrack:la,topInactiveTrack:rs,bottomInactiveTrack:It,sliderLine:os}},jD="SliderBase",WT=p.forwardRef(function(e,t){var r=WD(e,t);return p.createElement("div",_.__assign({},r.root),r&&p.createElement(To,_.__assign({},r.label)),p.createElement("div",_.__assign({},r.container),e.ranged&&(e.vertical?r.valueLabel&&p.createElement(To,_.__assign({},r.valueLabel)):r.lowerValueLabel&&p.createElement(To,_.__assign({},r.lowerValueLabel))),p.createElement("div",_.__assign({},r.sliderBox),p.createElement("div",_.__assign({},r.sliderLine),e.ranged&&p.createElement("span",_.__assign({},r.lowerValueThumb)),p.createElement("span",_.__assign({},r.thumb)),r.zeroTick&&p.createElement("span",_.__assign({},r.zeroTick)),p.createElement("span",_.__assign({},r.bottomInactiveTrack)),p.createElement("span",_.__assign({},r.activeTrack)),p.createElement("span",_.__assign({},r.topInactiveTrack)))),e.ranged&&e.vertical?r.lowerValueLabel&&p.createElement(To,_.__assign({},r.lowerValueLabel)):r.valueLabel&&p.createElement(To,_.__assign({},r.valueLabel))),p.createElement(Bv,null))});WT.displayName=jD;var $D={root:"ms-Slider",enabled:"ms-Slider-enabled",disabled:"ms-Slider-disabled",row:"ms-Slider-row",column:"ms-Slider-column",container:"ms-Slider-container",slideBox:"ms-Slider-slideBox",line:"ms-Slider-line",thumb:"ms-Slider-thumb",activeSection:"ms-Slider-active",inactiveSection:"ms-Slider-inactive",valueLabel:"ms-Slider-value",showValue:"ms-Slider-showValue",showTransitions:"ms-Slider-showTransitions",zeroTick:"ms-Slider-zeroTick"},QD=function(e){var t,r,n,o,i,a,s,u,l,c,d,f,h,m=e.className,y=e.titleLabelClassName,E=e.theme,v=e.vertical,g=e.disabled,C=e.showTransitions,S=e.showValue,w=e.ranged,I=E.semanticColors,b=E.palette,k=Sr($D,E),O=I.inputBackgroundCheckedHovered,L=I.inputBackgroundChecked,se=b.neutralSecondaryAlt,B=b.neutralPrimary,ae=b.neutralSecondaryAlt,G=I.disabledText,oe=I.disabledBackground,me=I.inputBackground,P=I.smallInputBorder,T=I.disabledBorder,M=!g&&{backgroundColor:O,selectors:(t={},t[Z]={backgroundColor:"Highlight"},t)},F=!g&&{backgroundColor:se,selectors:(r={},r[Z]={borderColor:"Highlight"},r)},N=!g&&{backgroundColor:L,selectors:(n={},n[Z]={backgroundColor:"Highlight"},n)},x=!g&&{border:"2px solid "+O,selectors:(o={},o[Z]={borderColor:"Highlight"},o)},Y=!e.disabled&&{backgroundColor:I.inputPlaceholderBackgroundChecked,selectors:(i={},i[Z]={backgroundColor:"Highlight"},i)};return{root:_.__spreadArray(_.__spreadArray(_.__spreadArray(_.__spreadArray(_.__spreadArray([k.root,E.fonts.medium,{userSelect:"none"},v&&{marginRight:8}],[g?void 0:k.enabled]),[g?k.disabled:void 0]),[v?void 0:k.row]),[v?k.column:void 0]),[m]),titleLabel:[{padding:0},y],container:[k.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},v&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:_.__spreadArray(_.__spreadArray([k.slideBox,!w&&Ro(E),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(a={},a[":active ."+k.activeSection]=M,a[":hover ."+k.activeSection]=N,a[":active ."+k.inactiveSection]=F,a[":hover ."+k.inactiveSection]=F,a[":active ."+k.thumb]=x,a[":hover ."+k.thumb]=x,a[":active ."+k.zeroTick]=Y,a[":hover ."+k.zeroTick]=Y,a[Z]={forcedColorAdjust:"none"},a)},v?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[S?k.showValue:void 0]),[C?k.showTransitions:void 0]),thumb:[k.thumb,w&&Ro(E,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:P,borderRadius:10,boxSizing:"border-box",background:me,display:"block",width:16,height:16,position:"absolute"},v?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:Rt(E)?"translateX(50%)":"translateX(-50%)"},C&&{transition:"left "+cs.durationValue3+" "+cs.easeFunction1},g&&{borderColor:T,selectors:(s={},s[Z]={borderColor:"GrayText"},s)}],line:[k.line,{display:"flex",position:"relative"},v?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},v?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[k.activeSection,{background:B,selectors:(u={},u[Z]={backgroundColor:"WindowText"},u)},C&&{transition:"width "+cs.durationValue3+" "+cs.easeFunction1},g&&{background:G,selectors:(l={},l[Z]={backgroundColor:"GrayText",borderColor:"GrayText"},l)}],inactiveSection:[k.inactiveSection,{background:ae,selectors:(c={},c[Z]={border:"1px solid WindowText"},c)},C&&{transition:"width "+cs.durationValue3+" "+cs.easeFunction1},g&&{background:oe,selectors:(d={},d[Z]={borderColor:"GrayText"},d)}],zeroTick:[k.zeroTick,{position:"absolute",background:I.disabledBorder,selectors:(f={},f[Z]={backgroundColor:"WindowText"},f)},e.disabled&&{background:I.disabledBackground,selectors:(h={},h[Z]={backgroundColor:"GrayText"},h)},e.vertical?{width:"16px",height:"1px",transform:Rt(E)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[k.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},v?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}},nd=jt(WT,QD,void 0,{scope:"Slider"}),Wv=_.__assign;function Pd(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=e;return o.isSlot?(r=p.Children.toArray(r),r.length===0?o(t):o(_.__assign(_.__assign({},t),{children:r}))):p.createElement.apply(Bd,_.__spreadArray([e,t],r))}function jT(e,t){t===void 0&&(t={});var r=t.defaultProp,n=r===void 0?"children":r,o=function(i,a,s,u,l){if(p.isValidElement(a))return a;var c=XD(n,a),d=JD(u,l,i,c);if(s){if(s.component){var f=s.component;return p.createElement(f,_.__assign({},d))}if(s.render)return s.render(d,e)}return p.createElement(e,_.__assign({},d))};return o}var YD=gt(function(e){return jT(e)});function $T(e,t){var r={},n=e,o=function(a){if(t.hasOwnProperty(a)){var s=function(u){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];if(l.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return ZD(t[a],u,n[a],n.slots&&n.slots[a],n._defaultStyles&&n._defaultStyles[a],n.theme)};s.isSlot=!0,r[a]=s}};for(var i in t)o(i);return r}function XD(e,t){var r,n;return typeof t=="string"||typeof t=="number"||typeof t=="boolean"?n=(r={},r[e]=t,r):n=t,n}function JD(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];for(var o={},i=[],a=0,s=r;a<s.length;a++){var u=s[a];i.push(u&&u.className),Wv(o,u)}return o.className=ww([e,i],{rtl:Rt(t)}),o}function ZD(e,t,r,n,o,i){return e.create!==void 0?e.create(t,r,n,o):YD(e)(t,r,n,o,i)}function QT(e,t){t===void 0&&(t={});var r=t.factoryOptions,n=r===void 0?{}:r,o=n.defaultProp,i=function(a){var s=tO(t.displayName,p.useContext(uu),t.fields),u=t.state;u&&(a=_.__assign(_.__assign({},a),u(a)));var l=a.theme||s.theme,c=YT(a,l,t.tokens,s.tokens,a.tokens),d=eO(a,l,c,t.styles,s.styles,a.styles),f=_.__assign(_.__assign({},a),{styles:d,tokens:c,_defaultStyles:d,theme:l});return e(f)};return i.displayName=t.displayName||e.name,o&&(i.create=jT(i,{defaultProp:o})),Wv(i,t.statics),i}function eO(e,t,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];return li.apply(void 0,n.map(function(i){return typeof i=="function"?i(e,t,r):i}))}function YT(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];for(var o={},i=0,a=r;i<a.length;i++){var s=a[i];s&&(s=typeof s=="function"?s(e,t):s,Array.isArray(s)&&(s=YT.apply(void 0,_.__spreadArray([e,t],s))),Wv(o,s))}return o}function tO(e,t,r){var n=["theme","styles","tokens"];return Dn.getSettings(r||n,e,t.customizations)}var XT={root:"ms-StackItem"},rO={start:"flex-start",end:"flex-end"},nO=function(e,t,r){var n=e.grow,o=e.shrink,i=e.disableShrink,a=e.align,s=e.verticalFill,u=e.order,l=e.className,c=e.basis,d=c===void 0?"auto":c,f=Sr(XT,t);return{root:[t.fonts.medium,f.root,{flexBasis:d,margin:r.margin,padding:r.padding,height:s?"100%":"auto",width:"auto"},n&&{flexGrow:n===!0?1:n},(i||!n&&!o)&&{flexShrink:0},o&&!i&&{flexShrink:1},a&&{alignSelf:rO[a]||a},u&&{order:u},l]}},oO=function(e){var t=e.children,r=Ve(e,vt);if(t==null)return null;var n=$T(e,{root:"div"});return Pd(n.root,_.__assign({},r),t)},JT=QT(oO,{displayName:"StackItem",styles:nO}),Xs=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},bp=function(e){var t=parseFloat(e),r=isNaN(t)?0:t,n=isNaN(t)?"":t.toString(),o=e.substring(n.toString().length);return{value:r,unit:o||"px"}},iO=function(e,t){if(e===void 0||e==="")return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(typeof e=="number")return{rowGap:{value:e,unit:"px"},columnGap:{value:e,unit:"px"}};var r=e.split(" ");if(r.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(r.length===2)return{rowGap:bp(Xs(r[0],t)),columnGap:bp(Xs(r[1],t))};var n=bp(Xs(e,t));return{rowGap:n,columnGap:n}},G_=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var r=e.split(" ");return r.length<2?Xs(e,t):r.reduce(function(n,o){return Xs(n,t)+" "+Xs(o,t)})},gs={start:"flex-start",end:"flex-end"},eg={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},aO=function(e,t,r){var n,o,i,a,s,u,l,c,d,f,h,m,y,E=e.className,v=e.disableShrink,g=e.enableScopedSelectors,C=e.grow,S=e.horizontal,w=e.horizontalAlign,I=e.reversed,b=e.verticalAlign,k=e.verticalFill,O=e.wrap,L=Sr(eg,t),se=r&&r.childrenGap?r.childrenGap:e.gap,B=r&&r.maxHeight?r.maxHeight:e.maxHeight,ae=r&&r.maxWidth?r.maxWidth:e.maxWidth,G=r&&r.padding?r.padding:e.padding,oe=iO(se,t),me=oe.rowGap,P=oe.columnGap,T=""+-.5*P.value+P.unit,M=""+-.5*me.value+me.unit,F={textOverflow:"ellipsis"},N="> "+(g?"."+eg.child:"*"),x=(n={},n[N+":not(."+XT.root+")"]={flexShrink:0},n);return O?{root:[L.root,{flexWrap:"wrap",maxWidth:ae,maxHeight:B,width:"auto",overflow:"visible",height:"100%"},w&&(o={},o[S?"justifyContent":"alignItems"]=gs[w]||w,o),b&&(i={},i[S?"alignItems":"justifyContent"]=gs[b]||b,i),E,{display:"flex"},S&&{height:k?"100%":"auto"}],inner:[L.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:T,marginRight:T,marginTop:M,marginBottom:M,overflow:"visible",boxSizing:"border-box",padding:G_(G,t),width:P.value===0?"100%":"calc(100% + "+P.value+P.unit+")",maxWidth:"100vw"},a[N]=_.__assign({margin:""+.5*me.value+me.unit+" "+.5*P.value+P.unit},F),a),v&&x,w&&(s={},s[S?"justifyContent":"alignItems"]=gs[w]||w,s),b&&(u={},u[S?"alignItems":"justifyContent"]=gs[b]||b,u),S&&(l={flexDirection:I?"row-reverse":"row",height:me.value===0?"100%":"calc(100% + "+me.value+me.unit+")"},l[N]={maxWidth:P.value===0?"100%":"calc(100% - "+P.value+P.unit+")"},l),!S&&(c={flexDirection:I?"column-reverse":"column",height:"calc(100% + "+me.value+me.unit+")"},c[N]={maxHeight:me.value===0?"100%":"calc(100% - "+me.value+me.unit+")"},c)]}:{root:[L.root,(d={display:"flex",flexDirection:S?I?"row-reverse":"row":I?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:k?"100%":"auto",maxWidth:ae,maxHeight:B,padding:G_(G,t),boxSizing:"border-box"},d[N]=F,d),v&&x,C&&{flexGrow:C===!0?1:C},w&&(f={},f[S?"justifyContent":"alignItems"]=gs[w]||w,f),b&&(h={},h[S?"alignItems":"justifyContent"]=gs[b]||b,h),S&&P.value>0&&(m={},m[I?N+":not(:last-child)":N+":not(:first-child)"]={marginLeft:""+P.value+P.unit},m),!S&&me.value>0&&(y={},y[I?N+":not(:last-child)":N+":not(:first-child)"]={marginTop:""+me.value+me.unit},y),E]}},sO=function(e){var t=e.as,r=t===void 0?"div":t,n=e.disableShrink,o=n===void 0?!1:n,i=e.enableScopedSelectors,a=i===void 0?!1:i,s=e.wrap,u=_.__rest(e,["as","disableShrink","enableScopedSelectors","wrap"]),l=ZT(e.children,{disableShrink:o,enableScopedSelectors:a}),c=Ve(u,vt),d=$T(e,{root:r,inner:"div"});return s?Pd(d.root,_.__assign({},c),Pd(d.inner,null,l)):Pd(d.root,_.__assign({},c),l)};function ZT(e,t){var r=t.disableShrink,n=t.enableScopedSelectors,o=p.Children.toArray(e);return o=p.Children.map(o,function(i){if(!i||!p.isValidElement(i))return i;if(i.type===p.Fragment)return i.props.children?ZT(i.props.children,{disableShrink:r,enableScopedSelectors:n}):null;var a=i,s={};uO(i)&&(s={shrink:!r});var u=a.props.className;return p.cloneElement(a,_.__assign(_.__assign(_.__assign(_.__assign({},s),a.props),u&&{className:u}),n&&{className:Pt(eg.child,u)}))}),o}function uO(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===JT.displayName}var lO={Item:JT},rt=QT(sO,{displayName:"Stack",styles:aO,statics:lO}),eb=p.createContext(void 0);function cO(){return Nw(["theme"]).theme}var tb=function(){var e=p.useContext(eb),t=cO();return e||t||Su({})},q_=0,V_={reset:function(){mn.getInstance().onReset(function(){return q_++})},getId:function(){return q_},renderStyles:function(e,t){return kv(Array.isArray(e)?e:[e],t)},renderFontFace:function(e,t){return Av(e)},renderKeyframes:function(e){return Dr(e)}},dO=function(e,t){var r,n,o,i=t[0],a=t[1],s=t[2];return(o=(n=(r=e.get(i))===null||r===void 0?void 0:r.get(a))===null||n===void 0?void 0:n.get(s))===null||o===void 0?void 0:o.classMap},fO=function(e,t,r){var n,o,i=t[0],a=t[1],s=t[2],u=(n=e.get(i))!==null&&n!==void 0?n:new Map;e.set(i,u);var l=(o=u.get(a))!==null&&o!==void 0?o:new Map;u.set(a,l),l.set(s,{classMap:r,refCount:0})};function hO(e,t){var r,n,o=t[0],i=t[1],a=t[2],s=(n=(r=e.get(o))===null||r===void 0?void 0:r.get(i))===null||n===void 0?void 0:n.get(a);s&&s.refCount++}function pO(e,t){var r,n,o,i,a,s,u,l,c=t[0],d=t[1],f=t[2],h=(n=(r=e.get(c))===null||r===void 0?void 0:r.get(d))===null||n===void 0?void 0:n.get(f);h&&(h.refCount--,h.refCount===0&&((i=(o=e.get(c))===null||o===void 0?void 0:o.get(d))===null||i===void 0||i.delete(f),((s=(a=e.get(c))===null||a===void 0?void 0:a.get(d))===null||s===void 0?void 0:s.size)===0&&((u=e.get(c))===null||u===void 0||u.delete(d),((l=e.get(c))===null||l===void 0?void 0:l.size)===0&&e.delete(c))))}function mO(e){var t=new Map,r=new Set,n=function(o){var i=o.currentTarget,a=i.__id__;t.delete(a),i.removeEventListener("unload",n),r.delete(a)};return function(o){o===void 0&&(o={});var i=o.theme,a,s=bc();s&&(s.__id__=s.__id__||Zt(),a=s.__id__,r.has(a)||(r.add(a),s.addEventListener("unload",n)));var u=tb();i=i||u;var l=V_,c=l.getId(),d=[a,c,i],f=dO(t,d);if(p.useEffect(function(){return hO(t,[a,c,i]),function(){return pO(t,[a,c,i])}},[a,c,i]),!f){var h=gO(e)?e(i):e;f=V_.renderStyles(h,{targetWindow:s,rtl:!!i.rtl}),fO(t,d,f)}return f}}function gO(e){return typeof e=="function"}var vO=mO(function(e){var t=e.semanticColors,r=e.fonts;return{body:[{color:t.bodyText,background:t.bodyBackground,fontFamily:r.medium.fontFamily,fontWeight:r.medium.fontWeight,fontSize:r.medium.fontSize,MozOsxFontSmoothing:r.medium.MozOsxFontSmoothing,WebkitFontSmoothing:r.medium.WebkitFontSmoothing}]}});function yO(e,t){var r,n=e.applyTo,o=n==="body",i=(r=XF())===null||r===void 0?void 0:r.body;p.useEffect(function(){if(!(!o||!i)){for(var a=0,s=t;a<s.length;a++){var u=s[a];u&&i.classList.add(u)}return function(){if(!(!o||!i))for(var l=0,c=t;l<c.length;l++){var d=c[l];d&&i.classList.remove(d)}}}},[o,i,t])}function EO(e){var t=vO(e),r=e.className,n=e.applyTo;yO(e,[t.root,t.body]),e.className=Pt(r,t.root,n==="element"&&t.body)}var _O=function(e){var t=e.customizerContext,r=e.ref,n=e.theme,o=e.as||"div",i=typeof e.as=="string"?WP(e.as,e):e.as===p.Fragment?{children:e.children}:NR(e,["as"]);return p.createElement(eb.Provider,{value:n},p.createElement(uu.Provider,{value:t},p.createElement(Uv,{providerRef:r},p.createElement(o,_.__assign({},i)))))},W_=new Map,CO=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=[],n=0,o=e;n<o.length;n++){var i=o[n];if(i){var a=i.id||W_.get(i);a||(a=Zt(""),W_.set(i,a)),r.push(a)}}return r.join("-")},SO=function(e){var t=e.theme,r=tb(),n=e.theme=p.useMemo(function(){var o=Ww(r,t);return o.id=CO(r,t),o},[r,t]);e.customizerContext=p.useMemo(function(){return{customizations:{inCustomizerContext:!0,settings:{theme:n},scopedSettings:n.components||{}}}},[n]),e.theme.rtl!==r.rtl&&(e.dir=e.theme.rtl?"rtl":"ltr")},wO=function(e,t){var r=Cu(t,e);return SO(r),{state:r,render:_O}},rb=p.forwardRef(function(e,t){var r=ro(t,p.useRef(null)),n=wO(e,{ref:r,as:"div",applyTo:"element"}),o=n.render,i=n.state;return EO(i),o(i)});rb.displayName="ThemeProvider";/*! @azure/msal-browser v2.36.0 2023-04-18 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var tg=function(e,t){return tg=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])},tg(e,t)};function dr(e,t){tg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ce=function(){return ce=Object.assign||function(t){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)&&(t[i]=r[i])}return t},ce.apply(this,arguments)};function j_(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function U(e,t,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(c){try{l(n.next(c))}catch(d){a(d)}}function u(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?i(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function H(e,t){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(c){return u([l,c])}}function u(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=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function TO(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >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 jv(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(TO(arguments[t]));return e}/*! @azure/msal-common v12.1.0 2023-04-18 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var rg=function(e,t){return rg=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])},rg(e,t)};function jr(e,t){rg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Qe=function(){return Qe=Object.assign||function(t){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)&&(t[i]=r[i])}return t},Qe.apply(this,arguments)};function we(e,t,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(c){try{l(n.next(c))}catch(d){a(d)}}function u(c){try{l(n.throw(c))}catch(d){a(d)}}function l(c){c.done?i(c.value):o(c.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function Te(e,t){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(c){return u([l,c])}}function u(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=t.call(e,r)}catch(c){l=[6,c],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function _h(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}/*! @azure/msal-common v12.1.0 2023-04-18 */var R={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=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",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:"",NOT_APPLICABLE:"N/A",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,INVALID_INSTANCE:"invalid_instance"},Tu=[R.OPENID_SCOPE,R.PROFILE_SCOPE,R.OFFLINE_ACCESS_SCOPE],$_=_h(Tu,[R.EMAIL_SCOPE]),ur;(function(e){e.CONTENT_TYPE="Content-Type",e.RETRY_AFTER="Retry-After",e.CCS_HEADER="X-AnchorMailbox",e.WWWAuthenticate="WWW-Authenticate",e.AuthenticationInfo="Authentication-Info",e.X_MS_REQUEST_ID="x-ms-request-id",e.X_MS_HTTP_VERSION="x-ms-httpver"})(ur||(ur={}));var Ut;(function(e){e.ID_TOKEN="idtoken",e.CLIENT_INFO="client.info",e.ADAL_ID_TOKEN="adal.idtoken",e.ERROR="error",e.ERROR_DESC="error.description",e.ACTIVE_ACCOUNT="active-account",e.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(Ut||(Ut={}));var Tf;(function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"})(Tf||(Tf={}));var Ie;(function(e){e.CLIENT_ID="client_id",e.REDIRECT_URI="redirect_uri",e.RESPONSE_TYPE="response_type",e.RESPONSE_MODE="response_mode",e.GRANT_TYPE="grant_type",e.CLAIMS="claims",e.SCOPE="scope",e.ERROR="error",e.ERROR_DESCRIPTION="error_description",e.ACCESS_TOKEN="access_token",e.ID_TOKEN="id_token",e.REFRESH_TOKEN="refresh_token",e.EXPIRES_IN="expires_in",e.STATE="state",e.NONCE="nonce",e.PROMPT="prompt",e.SESSION_STATE="session_state",e.CLIENT_INFO="client_info",e.CODE="code",e.CODE_CHALLENGE="code_challenge",e.CODE_CHALLENGE_METHOD="code_challenge_method",e.CODE_VERIFIER="code_verifier",e.CLIENT_REQUEST_ID="client-request-id",e.X_CLIENT_SKU="x-client-SKU",e.X_CLIENT_VER="x-client-VER",e.X_CLIENT_OS="x-client-OS",e.X_CLIENT_CPU="x-client-CPU",e.X_CLIENT_CURR_TELEM="x-client-current-telemetry",e.X_CLIENT_LAST_TELEM="x-client-last-telemetry",e.X_MS_LIB_CAPABILITY="x-ms-lib-capability",e.X_APP_NAME="x-app-name",e.X_APP_VER="x-app-ver",e.POST_LOGOUT_URI="post_logout_redirect_uri",e.ID_TOKEN_HINT="id_token_hint",e.DEVICE_CODE="device_code",e.CLIENT_SECRET="client_secret",e.CLIENT_ASSERTION="client_assertion",e.CLIENT_ASSERTION_TYPE="client_assertion_type",e.TOKEN_TYPE="token_type",e.REQ_CNF="req_cnf",e.OBO_ASSERTION="assertion",e.REQUESTED_TOKEN_USE="requested_token_use",e.ON_BEHALF_OF="on_behalf_of",e.FOCI="foci",e.CCS_HEADER="X-AnchorMailbox",e.RETURN_SPA_CODE="return_spa_code",e.NATIVE_BROKER="nativebroker",e.LOGOUT_HINT="logout_hint"})(Ie||(Ie={}));var Ls;(function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"})(Ls||(Ls={}));var Er={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},ml;(function(e){e.ACCOUNT="account",e.SID="sid",e.LOGIN_HINT="login_hint",e.ID_TOKEN="id_token",e.DOMAIN_HINT="domain_hint",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers",e.ACCOUNT_ID="accountIdentifier",e.HOMEACCOUNT_ID="homeAccountIdentifier"})(ml||(ml={}));var Q_={PLAIN:"plain",S256:"S256"},bf;(function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"})(bf||(bf={}));var If;(function(e){e.IMPLICIT_GRANT="implicit",e.AUTHORIZATION_CODE_GRANT="authorization_code",e.CLIENT_CREDENTIALS_GRANT="client_credentials",e.RESOURCE_OWNER_PASSWORD_GRANT="password",e.REFRESH_TOKEN_GRANT="refresh_token",e.DEVICE_CODE_GRANT="device_code",e.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(If||(If={}));var Go;(function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"})(Go||(Go={}));var Gt;(function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."})(Gt||(Gt={}));var ge;(function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"})(ge||(ge={}));var Xo;(function(e){e[e.ADFS=1001]="ADFS",e[e.MSA=1002]="MSA",e[e.MSSTS=1003]="MSSTS",e[e.GENERIC=1004]="GENERIC",e[e.ACCESS_TOKEN=2001]="ACCESS_TOKEN",e[e.REFRESH_TOKEN=2002]="REFRESH_TOKEN",e[e.ID_TOKEN=2003]="ID_TOKEN",e[e.APP_METADATA=3001]="APP_METADATA",e[e.UNDEFINED=9999]="UNDEFINED"})(Xo||(Xo={}));var ng="appmetadata",bO="client_info",gl="1",vl={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},wn;(function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network",e.HARDCODED_VALUES="hardcoded_values"})(wn||(wn={}));var or={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"},Ge;(function(e){e.BEARER="Bearer",e.POP="pop",e.SSH="ssh-cert"})(Ge||(Ge={}));var yl={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Y_={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},kf;(function(e){e.username="username",e.password="password"})(kf||(kf={}));var Bs;(function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"})(Bs||(Bs={}));var Ii;(function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"})(Ii||(Ii={}));var Ca;(function(e){e.CONFIGURED_MATCHES_DETECTED="1",e.CONFIGURED_NO_AUTO_DETECTION="2",e.CONFIGURED_NOT_DETECTED="3",e.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",e.AUTO_DETECTION_REQUESTED_FAILED="5"})(Ca||(Ca={}));var ka;(function(e){e.NO_CACHE_HIT="0",e.FORCE_REFRESH="1",e.NO_CACHED_ACCESS_TOKEN="2",e.CACHED_ACCESS_TOKEN_EXPIRED="3",e.REFRESH_CACHED_ACCESS_TOKEN="4"})(ka||(ka={}));var og;(function(e){e.Jwt="JWT",e.Jwk="JWK",e.Pop="pop"})(og||(og={}));/*! @azure/msal-common v12.1.0 2023-04-18 */var tl={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."}},fe=function(e){jr(t,e);function t(r,n,o){var i=this,a=n?r+": "+n:r;return i=e.call(this,a)||this,Object.setPrototypeOf(i,t.prototype),i.errorCode=r||R.EMPTY_STRING,i.errorMessage=n||R.EMPTY_STRING,i.subError=o||R.EMPTY_STRING,i.name="AuthError",i}return t.prototype.setCorrelationId=function(r){this.correlationId=r},t.createUnexpectedError=function(r){return new t(tl.unexpectedError.code,tl.unexpectedError.desc+": "+r)},t.createPostRequestFailed=function(r){return new t(tl.postRequestFailed.code,tl.postRequestFailed.desc+": "+r)},t}(Error);/*! @azure/msal-common v12.1.0 2023-04-18 */var Af={createNewGuid:function(){var e="Crypto interface - createNewGuid() has not been implemented";throw fe.createUnexpectedError(e)},base64Decode:function(){var e="Crypto interface - base64Decode() has not been implemented";throw fe.createUnexpectedError(e)},base64Encode:function(){var e="Crypto interface - base64Encode() has not been implemented";throw fe.createUnexpectedError(e)},generatePkceCodes:function(){return we(this,void 0,void 0,function(){var e;return Te(this,function(t){throw e="Crypto interface - generatePkceCodes() has not been implemented",fe.createUnexpectedError(e)})})},getPublicKeyThumbprint:function(){return we(this,void 0,void 0,function(){var e;return Te(this,function(t){throw e="Crypto interface - getPublicKeyThumbprint() has not been implemented",fe.createUnexpectedError(e)})})},removeTokenBindingKey:function(){return we(this,void 0,void 0,function(){var e;return Te(this,function(t){throw e="Crypto interface - removeTokenBindingKey() has not been implemented",fe.createUnexpectedError(e)})})},clearKeystore:function(){return we(this,void 0,void 0,function(){var e;return Te(this,function(t){throw e="Crypto interface - clearKeystore() has not been implemented",fe.createUnexpectedError(e)})})},signJwt:function(){return we(this,void 0,void 0,function(){var e;return Te(this,function(t){throw e="Crypto interface - signJwt() has not been implemented",fe.createUnexpectedError(e)})})},hashString:function(){return we(this,void 0,void 0,function(){var e;return Te(this,function(t){throw e="Crypto interface - hashString() has not been implemented",fe.createUnexpectedError(e)})})}};/*! @azure/msal-common v12.1.0 2023-04-18 */var W={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."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},ne=function(e){jr(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,t.prototype),o}return t.createClientInfoDecodingError=function(r){return new t(W.clientInfoDecodingError.code,W.clientInfoDecodingError.desc+" Failed with error: "+r)},t.createClientInfoEmptyError=function(){return new t(W.clientInfoEmptyError.code,""+W.clientInfoEmptyError.desc)},t.createTokenParsingError=function(r){return new t(W.tokenParsingError.code,W.tokenParsingError.desc+" Failed with error: "+r)},t.createTokenNullOrEmptyError=function(r){return new t(W.nullOrEmptyToken.code,W.nullOrEmptyToken.desc+" Raw Token Value: "+r)},t.createEndpointDiscoveryIncompleteError=function(r){return new t(W.endpointResolutionError.code,W.endpointResolutionError.desc+" Detail: "+r)},t.createNetworkError=function(r,n){return new t(W.networkError.code,W.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},t.createUnableToGetOpenidConfigError=function(r){return new t(W.unableToGetOpenidConfigError.code,W.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+r)},t.createHashNotDeserializedError=function(r){return new t(W.hashNotDeserialized.code,W.hashNotDeserialized.desc+" Given Object: "+r)},t.createInvalidStateError=function(r,n){return new t(W.invalidStateError.code,W.invalidStateError.desc+" Invalid State: "+r+", Root Err: "+n)},t.createStateMismatchError=function(){return new t(W.stateMismatchError.code,W.stateMismatchError.desc)},t.createStateNotFoundError=function(r){return new t(W.stateNotFoundError.code,W.stateNotFoundError.desc+":  "+r)},t.createNonceMismatchError=function(){return new t(W.nonceMismatchError.code,W.nonceMismatchError.desc)},t.createAuthTimeNotFoundError=function(){return new t(W.authTimeNotFoundError.code,W.authTimeNotFoundError.desc)},t.createMaxAgeTranspiredError=function(){return new t(W.maxAgeTranspiredError.code,W.maxAgeTranspiredError.desc)},t.createNonceNotFoundError=function(r){return new t(W.nonceNotFoundError.code,W.nonceNotFoundError.desc+":  "+r)},t.createMultipleMatchingTokensInCacheError=function(){return new t(W.multipleMatchingTokens.code,W.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(W.multipleMatchingAccounts.code,W.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(W.multipleMatchingAppMetadata.code,W.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(W.tokenRequestCannotBeMade.code,W.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(r){return new t(W.appendEmptyScopeError.code,W.appendEmptyScopeError.desc+" Given Scope: "+r)},t.createRemoveEmptyScopeFromSetError=function(r){return new t(W.removeEmptyScopeError.code,W.removeEmptyScopeError.desc+" Given Scope: "+r)},t.createAppendScopeSetError=function(r){return new t(W.appendScopeSetError.code,W.appendScopeSetError.desc+" Detail Error: "+r)},t.createEmptyInputScopeSetError=function(){return new t(W.emptyInputScopeSetError.code,""+W.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(W.DeviceCodePollingCancelled.code,""+W.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(W.DeviceCodeExpired.code,""+W.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(W.DeviceCodeUnknownError.code,""+W.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(W.NoAccountInSilentRequest.code,""+W.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(W.invalidCacheRecord.code,W.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(W.invalidCacheEnvironment.code,W.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(W.noAccountFound.code,W.noAccountFound.desc)},t.createCachePluginError=function(){return new t(W.CachePluginError.code,""+W.CachePluginError.desc)},t.createNoCryptoObjectError=function(r){return new t(W.noCryptoObj.code,""+W.noCryptoObj.desc+r)},t.createInvalidCacheTypeError=function(){return new t(W.invalidCacheType.code,""+W.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(W.unexpectedAccountType.code,""+W.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(W.unexpectedCredentialType.code,""+W.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(W.invalidAssertion.code,""+W.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(W.invalidClientCredential.code,""+W.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(W.tokenRefreshRequired.code,W.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(W.userTimeoutReached.code,W.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(W.tokenClaimsRequired.code,W.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(W.noAuthorizationCodeFromServer.code,W.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(W.bindingKeyNotRemovedError.code,W.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(W.logoutNotSupported.code,W.logoutNotSupported.desc)},t.createKeyIdMissingError=function(){return new t(W.keyIdMissing.code,W.keyIdMissing.desc)},t.createNoNetworkConnectivityError=function(){return new t(W.noNetworkConnectivity.code,W.noNetworkConnectivity.desc)},t.createUserCanceledError=function(){return new t(W.userCanceledError.code,W.userCanceledError.desc)},t}(fe);/*! @azure/msal-common v12.1.0 2023-04-18 */var re=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw ne.createTokenNullOrEmptyError(t);var r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=r.exec(t);if(!n||n.length<4)throw ne.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));var o={header:n[1],JWSPayload:n[2],JWSSig:n[3]};return o},e.isEmpty=function(t){return typeof t>"u"||!t||t.length===0},e.isEmptyObj=function(t){if(t&&!e.isEmpty(t))try{var r=JSON.parse(t);return Object.keys(r).length===0}catch{}return!0},e.startsWith=function(t,r){return t.indexOf(r)===0},e.endsWith=function(t,r){return t.length>=r.length&&t.lastIndexOf(r)===t.length-r.length},e.queryStringToObject=function(t){var r={},n=t.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],u=a[1];s&&u&&(r[o(s)]=o(u))}}),r},e.trimArrayEntries=function(t){return t.map(function(r){return r.trim()})},e.removeEmptyStringsFromArray=function(t){return t.filter(function(r){return!e.isEmpty(r)})},e.jsonParseHelper=function(t){try{return JSON.parse(t)}catch{return null}},e.matchPattern=function(t,r){var n=new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(r)},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var Ht;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"})(Ht||(Ht={}));var bu=function(){function e(t,r,n){this.level=Ht.Info;var o=function(){},i=t||e.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:Ht.Info,this.correlationId=i.correlationId||R.EMPTY_STRING,this.packageName=r||R.EMPTY_STRING,this.packageVersion=n||R.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Ht.Info}},e.prototype.clone=function(t,r,n){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},t,r)},e.prototype.logMessage=function(t,r){if(!(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)){var n=new Date().toUTCString(),o;re.isEmpty(r.correlationId)?re.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+r.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+Ht[r.logLevel]+" - "+t;this.executeCallback(r.logLevel,i,r.containsPii||!1)}},e.prototype.executeCallback=function(t,r,n){this.localCallback&&this.localCallback(t,r,n)},e.prototype.error=function(t,r){this.logMessage(t,{logLevel:Ht.Error,containsPii:!1,correlationId:r||R.EMPTY_STRING})},e.prototype.errorPii=function(t,r){this.logMessage(t,{logLevel:Ht.Error,containsPii:!0,correlationId:r||R.EMPTY_STRING})},e.prototype.warning=function(t,r){this.logMessage(t,{logLevel:Ht.Warning,containsPii:!1,correlationId:r||R.EMPTY_STRING})},e.prototype.warningPii=function(t,r){this.logMessage(t,{logLevel:Ht.Warning,containsPii:!0,correlationId:r||R.EMPTY_STRING})},e.prototype.info=function(t,r){this.logMessage(t,{logLevel:Ht.Info,containsPii:!1,correlationId:r||R.EMPTY_STRING})},e.prototype.infoPii=function(t,r){this.logMessage(t,{logLevel:Ht.Info,containsPii:!0,correlationId:r||R.EMPTY_STRING})},e.prototype.verbose=function(t,r){this.logMessage(t,{logLevel:Ht.Verbose,containsPii:!1,correlationId:r||R.EMPTY_STRING})},e.prototype.verbosePii=function(t,r){this.logMessage(t,{logLevel:Ht.Verbose,containsPii:!0,correlationId:r||R.EMPTY_STRING})},e.prototype.trace=function(t,r){this.logMessage(t,{logLevel:Ht.Trace,containsPii:!1,correlationId:r||R.EMPTY_STRING})},e.prototype.tracePii=function(t,r){this.logMessage(t,{logLevel:Ht.Trace,containsPii:!0,correlationId:r||R.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var nb="@azure/msal-common",$v="12.1.0";/*! @azure/msal-common v12.1.0 2023-04-18 */var fu;(function(e){e[e.None=0]="None",e.AzurePublic="https://login.microsoftonline.com",e.AzurePpe="https://login.windows-ppe.net",e.AzureChina="https://login.chinacloudapi.cn",e.AzureGermany="https://login.microsoftonline.de",e.AzureUsGovernment="https://login.microsoftonline.us"})(fu||(fu={}));/*! @azure/msal-common v12.1.0 2023-04-18 */var be={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"}},Ye=function(e){jr(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,t.prototype),o}return t.createRedirectUriEmptyError=function(){return new t(be.redirectUriNotSet.code,be.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(be.postLogoutUriNotSet.code,be.postLogoutUriNotSet.desc)},t.createClaimsRequestParsingError=function(r){return new t(be.claimsRequestParsingError.code,be.claimsRequestParsingError.desc+" Given value: "+r)},t.createInsecureAuthorityUriError=function(r){return new t(be.authorityUriInsecure.code,be.authorityUriInsecure.desc+" Given URI: "+r)},t.createUrlParseError=function(r){return new t(be.urlParseError.code,be.urlParseError.desc+" Given Error: "+r)},t.createUrlEmptyError=function(){return new t(be.urlEmptyError.code,be.urlEmptyError.desc)},t.createEmptyScopesArrayError=function(){return new t(be.emptyScopesError.code,""+be.emptyScopesError.desc)},t.createClientIdSingleScopeError=function(r){return new t(be.clientIdSingleScopeError.code,be.clientIdSingleScopeError.desc+" Given Scopes: "+r)},t.createInvalidPromptError=function(r){return new t(be.invalidPrompt.code,be.invalidPrompt.desc+" Given value: "+r)},t.createInvalidClaimsRequestError=function(){return new t(be.invalidClaimsRequest.code,be.invalidClaimsRequest.desc)},t.createEmptyLogoutRequestError=function(){return new t(be.logoutRequestEmptyError.code,be.logoutRequestEmptyError.desc)},t.createEmptyTokenRequestError=function(){return new t(be.tokenRequestEmptyError.code,be.tokenRequestEmptyError.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(be.invalidCodeChallengeMethod.code,be.invalidCodeChallengeMethod.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(be.invalidCodeChallengeParams.code,be.invalidCodeChallengeParams.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(be.invalidCloudDiscoveryMetadata.code,be.invalidCloudDiscoveryMetadata.desc)},t.createInvalidAuthorityMetadataError=function(){return new t(be.invalidAuthorityMetadata.code,be.invalidAuthorityMetadata.desc)},t.createUntrustedAuthorityError=function(){return new t(be.untrustedAuthority.code,be.untrustedAuthority.desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(be.invalidAzureCloudInstance.code,be.invalidAzureCloudInstance.desc)},t.createMissingSshJwkError=function(){return new t(be.missingSshJwk.code,be.missingSshJwk.desc)},t.createMissingSshKidError=function(){return new t(be.missingSshKid.code,be.missingSshKid.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(be.missingNonceAuthenticationHeader.code,be.missingNonceAuthenticationHeader.desc)},t.createInvalidAuthenticationHeaderError=function(r,n){return new t(be.invalidAuthenticationHeader.code,be.invalidAuthenticationHeader.desc+". Invalid header: "+r+". Details: "+n)},t}(ne);/*! @azure/msal-common v12.1.0 2023-04-18 */var yr=function(){function e(t){var r=this,n=t?re.trimArrayEntries(_h(t)):[],o=n?re.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(i){return r.scopes.add(i)})}return e.fromString=function(t){var r=t||R.EMPTY_STRING,n=r.split(" ");return new e(n)},e.createSearchScopes=function(t){var r=new e(t);return r.containsOnlyOIDCScopes()?r.removeScope(R.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),r},e.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw Ye.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var r=this.printScopesLowerCase().split(" "),n=new e(r);return re.isEmpty(t)?!1:n.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(t){var r=this;return!t||t.scopes.size<=0?!1:this.scopes.size>=t.scopes.size&&t.asArray().every(function(n){return r.containsScope(n)})},e.prototype.containsOnlyOIDCScopes=function(){var t=this,r=0;return $_.forEach(function(n){t.containsScope(n)&&(r+=1)}),this.scopes.size===r},e.prototype.appendScope=function(t){re.isEmpty(t)||this.scopes.add(t.trim())},e.prototype.appendScopes=function(t){var r=this;try{t.forEach(function(n){return r.appendScope(n)})}catch(n){throw ne.createAppendScopeSetError(n)}},e.prototype.removeScope=function(t){if(re.isEmpty(t))throw ne.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},e.prototype.removeOIDCScopes=function(){var t=this;$_.forEach(function(r){t.scopes.delete(r)})},e.prototype.unionScopeSets=function(t){if(!t)throw ne.createEmptyInputScopeSetError();var r=new Set;return t.scopes.forEach(function(n){return r.add(n.toLowerCase())}),this.scopes.forEach(function(n){return r.add(n.toLowerCase())}),r},e.prototype.intersectingScopeSets=function(t){if(!t)throw ne.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var r=this.unionScopeSets(t),n=t.getScopeCount(),o=this.getScopeCount(),i=r.size;return i<o+n},e.prototype.getScopeCount=function(){return this.scopes.size},e.prototype.asArray=function(){var t=[];return this.scopes.forEach(function(r){return t.push(r)}),t},e.prototype.printScopes=function(){if(this.scopes){var t=this.asArray();return t.join(" ")}return R.EMPTY_STRING},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */function Rf(e,t){if(re.isEmpty(e))throw ne.createClientInfoEmptyError();try{var r=t.base64Decode(e);return JSON.parse(r)}catch(n){throw ne.createClientInfoDecodingError(n.message)}}function Us(e){if(re.isEmpty(e))throw ne.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(Gt.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?R.EMPTY_STRING:t[1]}}/*! @azure/msal-common v12.1.0 2023-04-18 */var Ur;(function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs",e[e.Dsts=2]="Dsts",e[e.Ciam=3]="Ciam"})(Ur||(Ur={}));/*! @azure/msal-common v12.1.0 2023-04-18 */var tr=function(){function e(){}return e.prototype.generateAccountId=function(){var t=[this.homeAccountId,this.environment];return t.join(Gt.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.generateType=function(){switch(this.authorityType){case Go.ADFS_ACCOUNT_TYPE:return Xo.ADFS;case Go.MSAV1_ACCOUNT_TYPE:return Xo.MSA;case Go.MSSTS_ACCOUNT_TYPE:return Xo.MSSTS;case Go.GENERIC_ACCOUNT_TYPE:return Xo.GENERIC;default:throw ne.createUnexpectedAccountTypeError()}},e.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}},e.generateAccountCacheKey=function(t){var r=[t.homeAccountId,t.environment||R.EMPTY_STRING,t.tenantId||R.EMPTY_STRING];return r.join(Gt.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,r,n,o,i,a,s,u){var l,c,d,f,h,m,y=new e;y.authorityType=Go.MSSTS_ACCOUNT_TYPE,y.clientInfo=t,y.homeAccountId=r,y.nativeAccountId=u;var E=s||o&&o.getPreferredCache();if(!E)throw ne.createInvalidCacheEnvironmentError();if(y.environment=E,y.realm=((l=n==null?void 0:n.claims)===null||l===void 0?void 0:l.tid)||R.EMPTY_STRING,n){y.idTokenClaims=n.claims,y.localAccountId=((c=n==null?void 0:n.claims)===null||c===void 0?void 0:c.oid)||((d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.sub)||R.EMPTY_STRING;var v=(f=n==null?void 0:n.claims)===null||f===void 0?void 0:f.preferred_username,g=!((h=n==null?void 0:n.claims)===null||h===void 0)&&h.emails?n.claims.emails[0]:null;y.username=v||g||R.EMPTY_STRING,y.name=(m=n==null?void 0:n.claims)===null||m===void 0?void 0:m.name}return y.cloudGraphHostName=i,y.msGraphHost=a,y},e.createGenericAccount=function(t,r,n,o,i,a){var s,u,l,c,d=new e;d.authorityType=n&&n.authorityType===Ur.Adfs?Go.ADFS_ACCOUNT_TYPE:Go.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=R.EMPTY_STRING;var f=a||n&&n.getPreferredCache();if(!f)throw ne.createInvalidCacheEnvironmentError();return r&&(d.localAccountId=((s=r==null?void 0:r.claims)===null||s===void 0?void 0:s.oid)||((u=r==null?void 0:r.claims)===null||u===void 0?void 0:u.sub)||R.EMPTY_STRING,d.username=((l=r==null?void 0:r.claims)===null||l===void 0?void 0:l.upn)||R.EMPTY_STRING,d.name=((c=r==null?void 0:r.claims)===null||c===void 0?void 0:c.name)||R.EMPTY_STRING,d.idTokenClaims=r==null?void 0:r.claims),d.environment=f,d.cloudGraphHostName=o,d.msGraphHost=i,d},e.generateHomeAccountId=function(t,r,n,o,i){var a,s=!((a=i==null?void 0:i.claims)===null||a===void 0)&&a.sub?i.claims.sub:R.EMPTY_STRING;if(r===Ur.Adfs||r===Ur.Dsts)return s;if(t)try{var u=Rf(t,o);if(!re.isEmpty(u.uid)&&!re.isEmpty(u.utid))return""+u.uid+Gt.CLIENT_INFO_SEPARATOR+u.utid}catch{}return n.verbose("No client info in response"),s},e.isAccountEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType"):!1},e.accountInfoIsEqual=function(t,r,n){if(!t||!r)return!1;var o=!0;if(n){var i=t.idTokenClaims||{},a=r.idTokenClaims||{};o=i.iat===a.iat&&i.nonce===a.nonce}return t.homeAccountId===r.homeAccountId&&t.localAccountId===r.localAccountId&&t.username===r.username&&t.tenantId===r.tenantId&&t.environment===r.environment&&t.nativeAccountId===r.nativeAccountId&&o},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var Po=function(){function e(t,r){if(re.isEmpty(t))throw ne.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,r)}return e.extractTokenClaims=function(t,r){var n=re.decodeAuthToken(t);try{var o=n.JWSPayload,i=r.base64Decode(o);return JSON.parse(i)}catch(a){throw ne.createTokenParsingError(a)}},e.checkMaxAge=function(t,r){var n=3e5;if(r===0||Date.now()-n>t+r)throw ne.createMaxAgeTranspiredError()},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var Lr=function(){function e(t,r,n){this.clientId=t,this.cryptoImpl=r,this.commonLogger=n.clone(nb,$v)}return e.prototype.getAllAccounts=function(){var t=this,r=this.getAccountKeys();if(r.length<1)return[];var n=r.reduce(function(i,a){var s=t.getAccount(a);return s&&i.push(s),i},[]);if(n.length<1)return[];var o=n.map(function(i){return t.getAccountInfoFromEntity(i)});return o},e.prototype.getAccountInfoFilteredBy=function(t){var r=this.getAccountsFilteredBy(t);return r.length>0?this.getAccountInfoFromEntity(r[0]):null},e.prototype.getAccountInfoFromEntity=function(t){var r=t.getAccountInfo(),n=this.getIdToken(r);return n&&(r.idToken=n.secret,r.idTokenClaims=new Po(n.secret,this.cryptoImpl).claims),r},e.prototype.saveCacheRecord=function(t){return we(this,void 0,void 0,function(){return Te(this,function(r){switch(r.label){case 0:if(!t)throw ne.createNullOrUndefinedCacheRecord();return t.account&&this.setAccount(t.account),t.idToken&&this.setIdTokenCredential(t.idToken),t.accessToken?[4,this.saveAccessToken(t.accessToken)]:[3,2];case 1:r.sent(),r.label=2;case 2:return t.refreshToken&&this.setRefreshTokenCredential(t.refreshToken),t.appMetadata&&this.setAppMetadata(t.appMetadata),[2]}})})},e.prototype.saveAccessToken=function(t){return we(this,void 0,void 0,function(){var r,n,o,i,a=this;return Te(this,function(s){switch(s.label){case 0:return r={clientId:t.clientId,credentialType:t.credentialType,environment:t.environment,homeAccountId:t.homeAccountId,realm:t.realm,tokenType:t.tokenType,requestedClaimsHash:t.requestedClaimsHash},n=this.getTokenKeys(),o=yr.fromString(t.target),i=[],n.accessToken.forEach(function(u){if(a.accessTokenKeyMatchesFilter(u,r,!1)){var l=a.getAccessTokenCredential(u);if(l&&a.credentialMatchesFilter(l,r)){var c=yr.fromString(l.target);c.intersectingScopeSets(o)&&i.push(a.removeAccessToken(u))}}}),[4,Promise.all(i)];case 1:return s.sent(),this.setAccessTokenCredential(t),[2]}})})},e.prototype.getAccountsFilteredBy=function(t){var r=this,n=this.getAccountKeys(),o=[];return n.forEach(function(i){if(r.isAccountKey(i,t.homeAccountId,t.realm)){var a=r.getAccount(i);a&&(t.homeAccountId&&!r.matchHomeAccountId(a,t.homeAccountId)||t.localAccountId&&!r.matchLocalAccountId(a,t.localAccountId)||t.username&&!r.matchUsername(a,t.username)||t.environment&&!r.matchEnvironment(a,t.environment)||t.realm&&!r.matchRealm(a,t.realm)||t.nativeAccountId&&!r.matchNativeAccountId(a,t.nativeAccountId)||o.push(a))}}),o},e.prototype.isAccountKey=function(t,r,n){return!(t.split(Gt.CACHE_KEY_SEPARATOR).length<3||r&&!t.toLowerCase().includes(r.toLowerCase())||n&&!t.toLowerCase().includes(n.toLowerCase()))},e.prototype.isCredentialKey=function(t){if(t.split(Gt.CACHE_KEY_SEPARATOR).length<6)return!1;var r=t.toLowerCase();if(r.indexOf(ge.ID_TOKEN.toLowerCase())===-1&&r.indexOf(ge.ACCESS_TOKEN.toLowerCase())===-1&&r.indexOf(ge.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&r.indexOf(ge.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(r.indexOf(ge.REFRESH_TOKEN.toLowerCase())>-1){var n=""+ge.REFRESH_TOKEN+Gt.CACHE_KEY_SEPARATOR+this.clientId+Gt.CACHE_KEY_SEPARATOR,o=""+ge.REFRESH_TOKEN+Gt.CACHE_KEY_SEPARATOR+gl+Gt.CACHE_KEY_SEPARATOR;if(r.indexOf(n.toLowerCase())===-1&&r.indexOf(o.toLowerCase())===-1)return!1}else if(r.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},e.prototype.credentialMatchesFilter=function(t,r){return!(r.clientId&&!this.matchClientId(t,r.clientId)||r.userAssertionHash&&!this.matchUserAssertionHash(t,r.userAssertionHash)||typeof r.homeAccountId=="string"&&!this.matchHomeAccountId(t,r.homeAccountId)||r.environment&&!this.matchEnvironment(t,r.environment)||r.realm&&!this.matchRealm(t,r.realm)||r.credentialType&&!this.matchCredentialType(t,r.credentialType)||r.familyId&&!this.matchFamilyId(t,r.familyId)||r.target&&!this.matchTarget(t,r.target)||(r.requestedClaimsHash||t.requestedClaimsHash)&&t.requestedClaimsHash!==r.requestedClaimsHash||t.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(r.tokenType&&!this.matchTokenType(t,r.tokenType)||r.tokenType===Ge.SSH&&r.keyId&&!this.matchKeyId(t,r.keyId)))},e.prototype.getAppMetadataFilteredBy=function(t){return this.getAppMetadataFilteredByInternal(t.environment,t.clientId)},e.prototype.getAppMetadataFilteredByInternal=function(t,r){var n=this,o=this.getKeys(),i={};return o.forEach(function(a){if(n.isAppMetadata(a)){var s=n.getAppMetadata(a);s&&(t&&!n.matchEnvironment(s,t)||r&&!n.matchClientId(s,r)||(i[a]=s))}}),i},e.prototype.getAuthorityMetadataByAlias=function(t){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(t)!==-1&&(o=a)}}),o},e.prototype.removeAllAccounts=function(){return we(this,void 0,void 0,function(){var t,r,n=this;return Te(this,function(o){switch(o.label){case 0:return t=this.getAccountKeys(),r=[],t.forEach(function(i){r.push(n.removeAccount(i))}),[4,Promise.all(r)];case 1:return o.sent(),[2]}})})},e.prototype.removeAccount=function(t){return we(this,void 0,void 0,function(){var r;return Te(this,function(n){switch(n.label){case 0:if(r=this.getAccount(t),!r)throw ne.createNoAccountFoundError();return[4,this.removeAccountContext(r)];case 1:return n.sent(),this.removeItem(t),[2]}})})},e.prototype.removeAccountContext=function(t){return we(this,void 0,void 0,function(){var r,n,o,i=this;return Te(this,function(a){switch(a.label){case 0:return r=this.getTokenKeys(),n=t.generateAccountId(),o=[],r.idToken.forEach(function(s){s.indexOf(n)===0&&i.removeIdToken(s)}),r.accessToken.forEach(function(s){s.indexOf(n)===0&&o.push(i.removeAccessToken(s))}),r.refreshToken.forEach(function(s){s.indexOf(n)===0&&i.removeRefreshToken(s)}),[4,Promise.all(o)];case 1:return a.sent(),[2]}})})},e.prototype.removeAccessToken=function(t){return we(this,void 0,void 0,function(){var r,n,o;return Te(this,function(i){switch(i.label){case 0:if(r=this.getAccessTokenCredential(t),!r)return[2];if(r.credentialType.toLowerCase()!==ge.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(r.tokenType!==Ge.POP)return[3,4];if(n=r,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(),ne.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(t)]}})})},e.prototype.removeAppMetadata=function(){var t=this,r=this.getKeys();return r.forEach(function(n){t.isAppMetadata(n)&&t.removeItem(n)}),!0},e.prototype.readCacheRecord=function(t,r,n){var o=this.getTokenKeys(),i=this.readAccountFromCache(t),a=this.getIdToken(t,o),s=this.getAccessToken(t,r,o),u=this.getRefreshToken(t,!1,o),l=this.readAppMetadataFromCache(n);return i&&a&&(i.idTokenClaims=new Po(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:u,appMetadata:l}},e.prototype.readAccountFromCache=function(t){var r=tr.generateAccountCacheKey(t);return this.getAccount(r)},e.prototype.getIdToken=function(t,r){this.commonLogger.trace("CacheManager - getIdToken called");var n={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:ge.ID_TOKEN,clientId:this.clientId,realm:t.tenantId},o=this.getIdTokensByFilter(n,r),i=o.length;if(i<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(i>1)throw ne.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),o[0]},e.prototype.getIdTokensByFilter=function(t,r){var n=this,o=r&&r.idToken||this.getTokenKeys().idToken,i=[];return o.forEach(function(a){if(n.idTokenKeyMatchesFilter(a,Qe({clientId:n.clientId},t))){var s=n.getIdTokenCredential(a);s&&n.credentialMatchesFilter(s,t)&&i.push(s)}}),i},e.prototype.idTokenKeyMatchesFilter=function(t,r){var n=t.toLowerCase();return!(r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1)},e.prototype.removeIdToken=function(t){this.removeItem(t)},e.prototype.removeRefreshToken=function(t){this.removeItem(t)},e.prototype.getAccessToken=function(t,r,n){var o=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=yr.createSearchScopes(r.scopes),a=r.authenticationScheme||Ge.BEARER,s=a&&a.toLowerCase()!==Ge.BEARER.toLowerCase()?ge.ACCESS_TOKEN_WITH_AUTH_SCHEME:ge.ACCESS_TOKEN,u={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:s,clientId:this.clientId,realm:t.tenantId,target:i,tokenType:a,keyId:r.sshKid,requestedClaimsHash:r.requestedClaimsHash},l=n&&n.accessToken||this.getTokenKeys().accessToken,c=[];l.forEach(function(f){if(o.accessTokenKeyMatchesFilter(f,u,!0)){var h=o.getAccessTokenCredential(f);h&&o.credentialMatchesFilter(h,u)&&c.push(h)}});var d=c.length;if(d<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(d>1)throw ne.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),c[0]},e.prototype.accessTokenKeyMatchesFilter=function(t,r,n){var o=t.toLowerCase();if(r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1||r.realm&&o.indexOf(r.realm.toLowerCase())===-1||r.requestedClaimsHash&&o.indexOf(r.requestedClaimsHash.toLowerCase())===-1)return!1;if(r.target)for(var i=r.target.asArray(),a=0;a<i.length;a++){if(n&&!o.includes(i[a].toLowerCase()))return!1;if(!n&&o.includes(i[a].toLowerCase()))return!0}return!0},e.prototype.getAccessTokensByFilter=function(t){var r=this,n=this.getTokenKeys(),o=[];return n.accessToken.forEach(function(i){if(r.accessTokenKeyMatchesFilter(i,t,!0)){var a=r.getAccessTokenCredential(i);a&&r.credentialMatchesFilter(a,t)&&o.push(a)}}),o},e.prototype.getRefreshToken=function(t,r,n){var o=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var i=r?gl:void 0,a={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:ge.REFRESH_TOKEN,clientId:this.clientId,familyId:i},s=n&&n.refreshToken||this.getTokenKeys().refreshToken,u=[];s.forEach(function(c){if(o.refreshTokenKeyMatchesFilter(c,a)){var d=o.getRefreshTokenCredential(c);d&&o.credentialMatchesFilter(d,a)&&u.push(d)}});var l=u.length;return l<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),u[0])},e.prototype.refreshTokenKeyMatchesFilter=function(t,r){var n=t.toLowerCase();return!(r.familyId&&n.indexOf(r.familyId.toLowerCase())===-1||!r.familyId&&r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1)},e.prototype.readAppMetadataFromCache=function(t){var r={environment:t,clientId:this.clientId},n=this.getAppMetadataFilteredBy(r),o=Object.keys(n).map(function(a){return n[a]}),i=o.length;if(i<1)return null;if(i>1)throw ne.createMultipleMatchingAppMetadataInCacheError();return o[0]},e.prototype.isAppMetadataFOCI=function(t){var r=this.readAppMetadataFromCache(t);return!!(r&&r.familyId===gl)},e.prototype.matchHomeAccountId=function(t,r){return typeof t.homeAccountId=="string"&&r===t.homeAccountId},e.prototype.matchLocalAccountId=function(t,r){return typeof t.localAccountId=="string"&&r===t.localAccountId},e.prototype.matchUsername=function(t,r){return typeof t.username=="string"&&r.toLowerCase()===t.username.toLowerCase()},e.prototype.matchUserAssertionHash=function(t,r){return!!(t.userAssertionHash&&r===t.userAssertionHash)},e.prototype.matchEnvironment=function(t,r){var n=this.getAuthorityMetadataByAlias(r);return!!(n&&n.aliases.indexOf(t.environment)>-1)},e.prototype.matchCredentialType=function(t,r){return t.credentialType&&r.toLowerCase()===t.credentialType.toLowerCase()},e.prototype.matchClientId=function(t,r){return!!(t.clientId&&r===t.clientId)},e.prototype.matchFamilyId=function(t,r){return!!(t.familyId&&r===t.familyId)},e.prototype.matchRealm=function(t,r){return!!(t.realm&&r===t.realm)},e.prototype.matchNativeAccountId=function(t,r){return!!(t.nativeAccountId&&r===t.nativeAccountId)},e.prototype.matchTarget=function(t,r){var n=t.credentialType!==ge.ACCESS_TOKEN&&t.credentialType!==ge.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!t.target)return!1;var o=yr.fromString(t.target);return o.containsScopeSet(r)},e.prototype.matchTokenType=function(t,r){return!!(t.tokenType&&t.tokenType===r)},e.prototype.matchKeyId=function(t,r){return!!(t.keyId&&t.keyId===r)},e.prototype.isAppMetadata=function(t){return t.indexOf(ng)!==-1},e.prototype.isAuthorityMetadata=function(t){return t.indexOf(vl.CACHE_KEY)!==-1},e.prototype.generateAuthorityMetadataCacheKey=function(t){return vl.CACHE_KEY+"-"+this.clientId+"-"+t},e.toObject=function(t,r){for(var n in r)t[n]=r[n];return t},e}(),IO=function(e){jr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setAccount=function(){var r="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getAccount=function(){var r="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.setIdTokenCredential=function(){var r="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getIdTokenCredential=function(){var r="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.setAccessTokenCredential=function(){var r="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getAccessTokenCredential=function(){var r="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.setRefreshTokenCredential=function(){var r="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getRefreshTokenCredential=function(){var r="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.setAppMetadata=function(){var r="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getAppMetadata=function(){var r="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.setServerTelemetry=function(){var r="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getServerTelemetry=function(){var r="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.setAuthorityMetadata=function(){var r="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getAuthorityMetadata=function(){var r="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getAuthorityMetadataKeys=function(){var r="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.setThrottlingCache=function(){var r="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getThrottlingCache=function(){var r="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.removeItem=function(){var r="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.containsKey=function(){var r="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getKeys=function(){var r="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getAccountKeys=function(){var r="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.getTokenKeys=function(){var r="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t.prototype.clear=function(){return we(this,void 0,void 0,function(){var r;return Te(this,function(n){throw r="Storage interface - clear() has not been implemented for the cacheStorage interface.",fe.createUnexpectedError(r)})})},t.prototype.updateCredentialCacheKey=function(){var r="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw fe.createUnexpectedError(r)},t}(Lr);/*! @azure/msal-common v12.1.0 2023-04-18 */var kO=300,ob={tokenRenewalOffsetSeconds:kO,preventCorsPreflight:!1},AO={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Ht.Info,correlationId:R.EMPTY_STRING},RO={sendGetRequestAsync:function(){return we(this,void 0,void 0,function(){var e;return Te(this,function(t){throw e="Network interface - sendGetRequestAsync() has not been implemented",fe.createUnexpectedError(e)})})},sendPostRequestAsync:function(){return we(this,void 0,void 0,function(){var e;return Te(this,function(t){throw e="Network interface - sendPostRequestAsync() has not been implemented",fe.createUnexpectedError(e)})})}},PO={sku:R.SKU,version:$v,cpu:R.EMPTY_STRING,os:R.EMPTY_STRING},MO={clientSecret:R.EMPTY_STRING,clientAssertion:void 0},FO={azureCloudInstance:fu.None,tenant:""+R.DEFAULT_COMMON_TENANT},NO={application:{appName:"",appVersion:""}};function xO(e){var t=e.authOptions,r=e.systemOptions,n=e.loggerOptions,o=e.storageInterface,i=e.networkInterface,a=e.cryptoInterface,s=e.clientCredentials,u=e.libraryInfo,l=e.telemetry,c=e.serverTelemetryManager,d=e.persistencePlugin,f=e.serializableCache,h=Qe(Qe({},AO),n);return{authOptions:DO(t),systemOptions:Qe(Qe({},ob),r),loggerOptions:h,storageInterface:o||new IO(t.clientId,Af,new bu(h)),networkInterface:i||RO,cryptoInterface:a||Af,clientCredentials:s||MO,libraryInfo:Qe(Qe({},PO),u),telemetry:Qe(Qe({},NO),l),serverTelemetryManager:c||null,persistencePlugin:d||null,serializableCache:f||null}}function DO(e){return Qe({clientCapabilities:[],azureCloudOptions:FO,skipAuthorityMetadataCache:!1},e)}/*! @azure/msal-common v12.1.0 2023-04-18 */var Zi=function(e){jr(t,e);function t(r,n,o){var i=e.call(this,r,n,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,t.prototype),i}return t}(fe);/*! @azure/msal-common v12.1.0 2023-04-18 */var Pf=function(){function e(){}return e.generateThrottlingStorageKey=function(t){return yl.THROTTLING_PREFIX+"."+JSON.stringify(t)},e.preProcess=function(t,r){var n,o=e.generateThrottlingStorageKey(r),i=t.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){t.removeItem(o);return}throw new Zi(((n=i.errorCodes)===null||n===void 0?void 0:n.join(" "))||R.EMPTY_STRING,i.errorMessage,i.subError)}},e.postProcess=function(t,r,n){if(e.checkResponseStatus(n)||e.checkResponseForRetryAfter(n)){var o={throttleTime:e.calculateThrottleTime(parseInt(n.headers[ur.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};t.setThrottlingCache(e.generateThrottlingStorageKey(r),o)}},e.checkResponseStatus=function(t){return t.status===429||t.status>=500&&t.status<600},e.checkResponseForRetryAfter=function(t){return t.headers?t.headers.hasOwnProperty(ur.RETRY_AFTER)&&(t.status<200||t.status>=300):!1},e.calculateThrottleTime=function(t){var r=t<=0?0:t,n=Date.now()/1e3;return Math.floor(Math.min(n+(r||yl.DEFAULT_THROTTLE_TIME_SECONDS),n+yl.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},e.removeThrottle=function(t,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);t.removeItem(a)},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var OO=function(){function e(t,r){this.networkClient=t,this.cacheManager=r}return e.prototype.sendPostRequest=function(t,r,n){return we(this,void 0,void 0,function(){var o,i;return Te(this,function(a){switch(a.label){case 0:Pf.preProcess(this.cacheManager,t),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 fe?i:ne.createNetworkError(r,i);case 4:return Pf.postProcess(this.cacheManager,t,o),[2,o]}})})},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var cn;(function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"})(cn||(cn={}));/*! @azure/msal-common v12.1.0 2023-04-18 */var Ea=function(){function e(){}return e.validateRedirectUri=function(t){if(re.isEmpty(t))throw Ye.createRedirectUriEmptyError()},e.validatePrompt=function(t){var r=[];for(var n in Er)r.push(Er[n]);if(r.indexOf(t)<0)throw Ye.createInvalidPromptError(t)},e.validateClaims=function(t){try{JSON.parse(t)}catch{throw Ye.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(t,r){if(re.isEmpty(t)||re.isEmpty(r))throw Ye.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(r)},e.validateCodeChallengeMethod=function(t){if([Q_.PLAIN,Q_.S256].indexOf(t)<0)throw Ye.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(t,r){return t?(r.forEach(function(n,o){t[o]&&delete t[o]}),Object.fromEntries(Object.entries(t).filter(function(n){var o=n[1];return o!==""}))):{}},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var El=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(Ie.RESPONSE_TYPE,encodeURIComponent(R.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Ie.RESPONSE_TYPE,encodeURIComponent(R.TOKEN_RESPONSE_TYPE+" "+R.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(t){this.parameters.set(Ie.RESPONSE_MODE,encodeURIComponent(t||bf.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(Ie.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(t,r){r===void 0&&(r=!0);var n=r?_h(t||[],Tu):t||[],o=new yr(n);this.parameters.set(Ie.SCOPE,encodeURIComponent(o.printScopes()))},e.prototype.addClientId=function(t){this.parameters.set(Ie.CLIENT_ID,encodeURIComponent(t))},e.prototype.addRedirectUri=function(t){Ea.validateRedirectUri(t),this.parameters.set(Ie.REDIRECT_URI,encodeURIComponent(t))},e.prototype.addPostLogoutRedirectUri=function(t){Ea.validateRedirectUri(t),this.parameters.set(Ie.POST_LOGOUT_URI,encodeURIComponent(t))},e.prototype.addIdTokenHint=function(t){this.parameters.set(Ie.ID_TOKEN_HINT,encodeURIComponent(t))},e.prototype.addDomainHint=function(t){this.parameters.set(ml.DOMAIN_HINT,encodeURIComponent(t))},e.prototype.addLoginHint=function(t){this.parameters.set(ml.LOGIN_HINT,encodeURIComponent(t))},e.prototype.addCcsUpn=function(t){this.parameters.set(ur.CCS_HEADER,encodeURIComponent("UPN:"+t))},e.prototype.addCcsOid=function(t){this.parameters.set(ur.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},e.prototype.addSid=function(t){this.parameters.set(ml.SID,encodeURIComponent(t))},e.prototype.addClaims=function(t,r){var n=this.addClientCapabilitiesToClaims(t,r);Ea.validateClaims(n),this.parameters.set(Ie.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(t){this.parameters.set(Ie.CLIENT_REQUEST_ID,encodeURIComponent(t))},e.prototype.addLibraryInfo=function(t){this.parameters.set(Ie.X_CLIENT_SKU,t.sku),this.parameters.set(Ie.X_CLIENT_VER,t.version),t.os&&this.parameters.set(Ie.X_CLIENT_OS,t.os),t.cpu&&this.parameters.set(Ie.X_CLIENT_CPU,t.cpu)},e.prototype.addApplicationTelemetry=function(t){t!=null&&t.appName&&this.parameters.set(Ie.X_APP_NAME,t.appName),t!=null&&t.appVersion&&this.parameters.set(Ie.X_APP_VER,t.appVersion)},e.prototype.addPrompt=function(t){Ea.validatePrompt(t),this.parameters.set(""+Ie.PROMPT,encodeURIComponent(t))},e.prototype.addState=function(t){re.isEmpty(t)||this.parameters.set(Ie.STATE,encodeURIComponent(t))},e.prototype.addNonce=function(t){this.parameters.set(Ie.NONCE,encodeURIComponent(t))},e.prototype.addCodeChallengeParams=function(t,r){if(Ea.validateCodeChallengeParams(t,r),t&&r)this.parameters.set(Ie.CODE_CHALLENGE,encodeURIComponent(t)),this.parameters.set(Ie.CODE_CHALLENGE_METHOD,encodeURIComponent(r));else throw Ye.createInvalidCodeChallengeParamsError()},e.prototype.addAuthorizationCode=function(t){this.parameters.set(Ie.CODE,encodeURIComponent(t))},e.prototype.addDeviceCode=function(t){this.parameters.set(Ie.DEVICE_CODE,encodeURIComponent(t))},e.prototype.addRefreshToken=function(t){this.parameters.set(Ie.REFRESH_TOKEN,encodeURIComponent(t))},e.prototype.addCodeVerifier=function(t){this.parameters.set(Ie.CODE_VERIFIER,encodeURIComponent(t))},e.prototype.addClientSecret=function(t){this.parameters.set(Ie.CLIENT_SECRET,encodeURIComponent(t))},e.prototype.addClientAssertion=function(t){re.isEmpty(t)||this.parameters.set(Ie.CLIENT_ASSERTION,encodeURIComponent(t))},e.prototype.addClientAssertionType=function(t){re.isEmpty(t)||this.parameters.set(Ie.CLIENT_ASSERTION_TYPE,encodeURIComponent(t))},e.prototype.addOboAssertion=function(t){this.parameters.set(Ie.OBO_ASSERTION,encodeURIComponent(t))},e.prototype.addRequestTokenUse=function(t){this.parameters.set(Ie.REQUESTED_TOKEN_USE,encodeURIComponent(t))},e.prototype.addGrantType=function(t){this.parameters.set(Ie.GRANT_TYPE,encodeURIComponent(t))},e.prototype.addClientInfo=function(){this.parameters.set(bO,"1")},e.prototype.addExtraQueryParameters=function(t){var r=this,n=Ea.sanitizeEQParams(t,this.parameters);Object.keys(n).forEach(function(o){r.parameters.set(o,t[o])})},e.prototype.addClientCapabilitiesToClaims=function(t,r){var n;if(!t)n={};else try{n=JSON.parse(t)}catch{throw Ye.createInvalidClaimsRequestError()}return r&&r.length>0&&(n.hasOwnProperty(Ls.ACCESS_TOKEN)||(n[Ls.ACCESS_TOKEN]={}),n[Ls.ACCESS_TOKEN][Ls.XMS_CC]={values:r}),JSON.stringify(n)},e.prototype.addUsername=function(t){this.parameters.set(kf.username,encodeURIComponent(t))},e.prototype.addPassword=function(t){this.parameters.set(kf.password,encodeURIComponent(t))},e.prototype.addPopToken=function(t){re.isEmpty(t)||(this.parameters.set(Ie.TOKEN_TYPE,Ge.POP),this.parameters.set(Ie.REQ_CNF,encodeURIComponent(t)))},e.prototype.addSshJwk=function(t){re.isEmpty(t)||(this.parameters.set(Ie.TOKEN_TYPE,Ge.SSH),this.parameters.set(Ie.REQ_CNF,encodeURIComponent(t)))},e.prototype.addServerTelemetry=function(t){this.parameters.set(Ie.X_CLIENT_CURR_TELEM,t.generateCurrentRequestHeaderValue()),this.parameters.set(Ie.X_CLIENT_LAST_TELEM,t.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(Ie.X_MS_LIB_CAPABILITY,yl.X_MS_LIB_CAPABILITY_VALUE)},e.prototype.addLogoutHint=function(t){this.parameters.set(Ie.LOGOUT_HINT,encodeURIComponent(t))},e.prototype.createQueryString=function(){var t=new Array;return this.parameters.forEach(function(r,n){t.push(n+"="+r)}),t.join("&")},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var Qv=function(){function e(t,r){this.config=xO(t),this.logger=new bu(this.config.loggerOptions,nb,$v),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new OO(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=r}return e.prototype.createTokenRequestHeaders=function(t){var r={};if(r[ur.CONTENT_TYPE]=R.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case cn.HOME_ACCOUNT_ID:try{var n=Us(t.credential);r[ur.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case cn.UPN:r[ur.CCS_HEADER]="UPN: "+t.credential;break}return r},e.prototype.executePostToTokenEndpoint=function(t,r,n,o){return we(this,void 0,void 0,function(){var i;return Te(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(o,t,{body:r,headers:n})];case 1:return i=a.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},e.prototype.updateAuthority=function(t){if(!t.discoveryComplete())throw ne.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},e.prototype.createTokenQueryParameters=function(t){var r=new El;return t.tokenQueryParameters&&r.addExtraQueryParameters(t.tokenQueryParameters),r.createQueryString()},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var Yv=function(){function e(){}return e.prototype.generateAccountId=function(){return e.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},e.prototype.generateCredentialId=function(){return e.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},e.prototype.generateTarget=function(){return e.generateTargetForCacheKey(this.target)},e.prototype.generateCredentialKey=function(){return e.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},e.prototype.generateType=function(){switch(this.credentialType){case ge.ID_TOKEN:return Xo.ID_TOKEN;case ge.ACCESS_TOKEN:case ge.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Xo.ACCESS_TOKEN;case ge.REFRESH_TOKEN:return Xo.REFRESH_TOKEN;default:throw ne.createUnexpectedCredentialTypeError()}},e.generateCredentialCacheKey=function(t,r,n,o,i,a,s,u,l){var c=[this.generateAccountIdForCacheKey(t,r),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(u)];return c.join(Gt.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(t,r){var n=[t,r];return n.join(Gt.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(t,r,n,o){var i=t===ge.REFRESH_TOKEN&&o||r,a=[t,i,n||R.EMPTY_STRING];return a.join(Gt.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(t){return(t||R.EMPTY_STRING).toLowerCase()},e.generateClaimsHashForCacheKey=function(t){return(t||R.EMPTY_STRING).toLowerCase()},e.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==Ge.BEARER.toLowerCase()?t.toLowerCase():R.EMPTY_STRING},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var Aa=function(e){jr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.createIdTokenEntity=function(r,n,o,i,a){var s=new t;return s.credentialType=ge.ID_TOKEN,s.homeAccountId=r,s.environment=n,s.clientId=i,s.secret=o,s.realm=a,s},t.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===ge.ID_TOKEN:!1},t}(Yv);/*! @azure/msal-common v12.1.0 2023-04-18 */var On=function(){function e(){}return e.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},e.isTokenExpired=function(t,r){var n=Number(t)||0,o=e.nowSeconds()+r;return o>n},e.wasClockTurnedBack=function(t){var r=Number(t);return r>e.nowSeconds()},e.delay=function(t,r){return new Promise(function(n){return setTimeout(function(){return n(r)},t)})},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var Ra=function(e){jr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.createAccessTokenEntity=function(r,n,o,i,a,s,u,l,c,d,f,h,m,y,E){var v,g,C=new t;C.homeAccountId=r,C.credentialType=ge.ACCESS_TOKEN,C.secret=o;var S=On.nowSeconds();if(C.cachedAt=S.toString(),C.expiresOn=u.toString(),C.extendedExpiresOn=l.toString(),d&&(C.refreshOn=d.toString()),C.environment=n,C.clientId=i,C.realm=a,C.target=s,C.userAssertionHash=h,C.tokenType=re.isEmpty(f)?Ge.BEARER:f,y&&(C.requestedClaims=y,C.requestedClaimsHash=E),((v=C.tokenType)===null||v===void 0?void 0:v.toLowerCase())!==Ge.BEARER.toLowerCase())switch(C.credentialType=ge.ACCESS_TOKEN_WITH_AUTH_SCHEME,C.tokenType){case Ge.POP:var w=Po.extractTokenClaims(o,c);if(!(!((g=w==null?void 0:w.cnf)===null||g===void 0)&&g.kid))throw ne.createTokenClaimsRequiredError();C.keyId=w.cnf.kid;break;case Ge.SSH:C.keyId=m}return C},t.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===ge.ACCESS_TOKEN||r.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},t}(Yv);/*! @azure/msal-common v12.1.0 2023-04-18 */var Hs=function(e){jr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.createRefreshTokenEntity=function(r,n,o,i,a,s){var u=new t;return u.clientId=i,u.credentialType=ge.REFRESH_TOKEN,u.environment=n,u.homeAccountId=r,u.secret=o,u.userAssertionHash=s,a&&(u.familyId=a),u},t.isRefreshTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.credentialType===ge.REFRESH_TOKEN:!1},t}(Yv);/*! @azure/msal-common v12.1.0 2023-04-18 */var X_=["interaction_required","consent_required","login_required"],LO=["message_only","additional_action","basic_action","user_password_expired","consent_required"],zs={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."}},Fn=function(e){jr(t,e);function t(r,n,o,i,a,s,u){var l=e.call(this,r,n,o)||this;return Object.setPrototypeOf(l,t.prototype),l.timestamp=i||R.EMPTY_STRING,l.traceId=a||R.EMPTY_STRING,l.correlationId=s||R.EMPTY_STRING,l.claims=u||R.EMPTY_STRING,l.name="InteractionRequiredAuthError",l}return t.isInteractionRequiredError=function(r,n,o){var i=!!r&&X_.indexOf(r)>-1,a=!!o&&LO.indexOf(o)>-1,s=!!n&&X_.some(function(u){return n.indexOf(u)>-1});return i||s||a},t.createNoTokensFoundError=function(){return new t(zs.noTokensFoundError.code,zs.noTokensFoundError.desc)},t.createNativeAccountUnavailableError=function(){return new t(zs.native_account_unavailable.code,zs.native_account_unavailable.desc)},t}(fe);/*! @azure/msal-common v12.1.0 2023-04-18 */var Md=function(){function e(t,r,n,o,i){this.account=t||null,this.idToken=r||null,this.accessToken=n||null,this.refreshToken=o||null,this.appMetadata=i||null}return e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var ti=function(){function e(){}return e.setRequestState=function(t,r,n){var o=e.generateLibraryState(t,n);return re.isEmpty(r)?o:""+o+R.RESOURCE_DELIM+r},e.generateLibraryState=function(t,r){if(!t)throw ne.createNoCryptoObjectError("generateLibraryState");var n={id:t.createNewGuid()};r&&(n.meta=r);var o=JSON.stringify(n);return t.base64Encode(o)},e.parseRequestState=function(t,r){if(!t)throw ne.createNoCryptoObjectError("parseRequestState");if(re.isEmpty(r))throw ne.createInvalidStateError(r,"Null, undefined or empty state");try{var n=r.split(R.RESOURCE_DELIM),o=n[0],i=n.length>1?n.slice(1).join(R.RESOURCE_DELIM):R.EMPTY_STRING,a=t.base64Decode(o),s=JSON.parse(a);return{userRequestState:re.isEmpty(i)?R.EMPTY_STRING:i,libraryState:s}}catch(u){throw ne.createInvalidStateError(r,u)}},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var De=function(){function e(t){if(this._urlString=t,re.isEmpty(this._urlString))throw Ye.createUrlEmptyError();re.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(t){if(t){var r=t.toLowerCase();return re.endsWith(r,"?")?r=r.slice(0,-1):re.endsWith(r,"?/")&&(r=r.slice(0,-2)),re.endsWith(r,"/")||(r+="/"),r}return t},e.prototype.validateAsUri=function(){var t;try{t=this.getUrlComponents()}catch(r){throw Ye.createUrlParseError(r)}if(!t.HostNameAndPort||!t.PathSegments)throw Ye.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||t.Protocol.toLowerCase()!=="https:")throw Ye.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(t,r){return re.isEmpty(r)?t:t.indexOf("?")<0?t+"?"+r:t+"&"+r},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var r=this.getUrlComponents(),n=r.PathSegments;return t&&n.length!==0&&(n[0]===Tf.COMMON||n[0]===Tf.ORGANIZATIONS)&&(n[0]=t),e.constructAuthorityUriFromObject(r)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=this.urlString.match(t);if(!r)throw Ye.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,!re.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},e.getDomainFromUrl=function(t){var r=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=t.match(r);if(!n)throw Ye.createUrlParseError("Given url string: "+t);return n[2]},e.getAbsoluteUrl=function(t,r){if(t[0]===R.FORWARD_SLASH){var n=new e(r),o=n.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+t}return t},e.parseHash=function(t){var r=t.indexOf("#"),n=t.indexOf("#/");return n>-1?t.substring(n+2):r>-1?t.substring(r+1):R.EMPTY_STRING},e.parseQueryString=function(t){var r=t.indexOf("?"),n=t.indexOf("/?");return n>-1?t.substring(n+2):r>-1?t.substring(r+1):R.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(re.isEmpty(t))return{};var r=e.parseHash(t),n=re.queryStringToObject(re.isEmpty(r)?t:r);if(!n)throw ne.createHashNotDeserializedError(JSON.stringify(n));return n},e.getDeserializedQueryString=function(t){if(re.isEmpty(t))return{};var r=e.parseQueryString(t),n=re.queryStringToObject(re.isEmpty(r)?t:r);if(!n)throw ne.createHashNotDeserializedError(JSON.stringify(n));return n},e.hashContainsKnownProperties=function(t){if(re.isEmpty(t)||t.indexOf("=")<0)return!1;var r=e.getDeserializedHash(t);return!!(r.code||r.error_description||r.error||r.state)},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var D;(function(e){e.AcquireTokenByCode="acquireTokenByCode",e.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",e.AcquireTokenSilent="acquireTokenSilent",e.AcquireTokenSilentAsync="acquireTokenSilentAsync",e.AcquireTokenPopup="acquireTokenPopup",e.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",e.CryptoOptsSignJwt="cryptoOptsSignJwt",e.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",e.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",e.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",e.SsoSilent="ssoSilent",e.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",e.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",e.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",e.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",e.BrokerHandhshake="brokerHandshake",e.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",e.AcquireTokenByBroker="acquireTokenByBroker",e.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",e.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",e.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",e.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",e.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",e.AcquireTokenFromCache="acquireTokenFromCache",e.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",e.InitializeBaseRequest="initializeBaseRequest",e.InitializeSilentRequest="initializeSilentRequest",e.InitializeClientApplication="initializeClientApplication",e.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",e.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",e.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",e.SilentHandlerLoadFrame="silentHandlerLoadFrame",e.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",e.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",e.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",e.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",e.GetAuthCodeUrl="getAuthCodeUrl",e.HandleCodeResponseFromServer="handleCodeResponseFromServer",e.HandleCodeResponseFromHash="handleCodeResponseFromHash",e.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",e.AuthClientAcquireToken="authClientAcquireToken",e.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",e.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",e.AuthClientCreateQueryString="authClientCreateQueryString",e.PopTokenGenerateCnf="popTokenGenerateCnf",e.PopTokenGenerateKid="popTokenGenerateKid",e.HandleServerTokenResponse="handleServerTokenResponse",e.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",e.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",e.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",e.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",e.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",e.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",e.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",e.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",e.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",e.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",e.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",e.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",e.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",e.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",e.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",e.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",e.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake"})(D||(D={}));var Mf;(function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"})(Mf||(Mf={}));var BO=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v12.1.0 2023-04-18 */var ig;(function(e){e.SW="sw",e.UHW="uhw"})(ig||(ig={}));var Ga=function(){function e(t,r){this.cryptoUtils=t,this.performanceClient=r}return e.prototype.generateCnf=function(t){var r,n;return we(this,void 0,void 0,function(){var o,i,a;return Te(this,function(s){switch(s.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(D.PopTokenGenerateCnf,t.correlationId),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(D.PopTokenGenerateKid,t.correlationId),[4,this.generateKid(t)];case 1:return o=s.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(o)),a={kid:o.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}})})},e.prototype.generateKid=function(t){var r;return we(this,void 0,void 0,function(){var n;return Te(this,function(o){switch(o.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(D.PopTokenGenerateKid,t.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return n=o.sent(),[2,{kid:n,xms_ksl:ig.SW}]}})})},e.prototype.signPopToken=function(t,r,n){return we(this,void 0,void 0,function(){return Te(this,function(o){return[2,this.signPayload(t,r,n)]})})},e.prototype.signPayload=function(t,r,n,o){return we(this,void 0,void 0,function(){var i,a,s,u,l,c;return Te(this,function(d){switch(d.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,u=n.shrNonce,l=a?new De(a):void 0,c=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(Qe({at:t,ts:On.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:c==null?void 0:c.HostNameAndPort,nonce:u||this.cryptoUtils.createNewGuid(),p:c==null?void 0:c.AbsolutePath,q:c!=null&&c.QueryString?[[],c.QueryString]:void 0,client_claims:s||void 0},o),r,n.correlationId)];case 1:return[2,d.sent()]}})})},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var ag=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(t,r){var n=[ng,t,r];return n.join(Gt.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,r,n){var o=new e;return o.clientId=t,o.environment=r,n&&(o.familyId=n),o},e.isAppMetadataEntity=function(t,r){return r?t.indexOf(ng)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var UO=function(){function e(t,r){this.cache=t,this.hasChanged=r}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var Ff=function(){function e(t,r,n,o,i,a,s){this.clientId=t,this.cacheStorage=r,this.cryptoObj=n,this.logger=o,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}return e.prototype.validateServerAuthorizationCodeResponse=function(t,r,n){if(!t.state||!r)throw t.state?ne.createStateNotFoundError("Cached State"):ne.createStateNotFoundError("Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(r))throw ne.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw Fn.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new Fn(t.error||R.EMPTY_STRING,t.error_description,t.suberror,t.timestamp||R.EMPTY_STRING,t.trace_id||R.EMPTY_STRING,t.correlation_id||R.EMPTY_STRING,t.claims||R.EMPTY_STRING):new Zi(t.error||R.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&Rf(t.client_info,n)},e.prototype.validateTokenResponse=function(t){if(t.error||t.error_description||t.suberror){if(Fn.isInteractionRequiredError(t.error,t.error_description,t.suberror))throw new Fn(t.error,t.error_description,t.suberror,t.timestamp||R.EMPTY_STRING,t.trace_id||R.EMPTY_STRING,t.correlation_id||R.EMPTY_STRING,t.claims||R.EMPTY_STRING);var r=t.error_codes+" - ["+t.timestamp+"]: "+t.error_description+" - Correlation ID: "+t.correlation_id+" - Trace ID: "+t.trace_id;throw new Zi(t.error,r,t.suberror)}},e.prototype.handleServerTokenResponse=function(t,r,n,o,i,a,s,u,l){var c;return we(this,void 0,void 0,function(){var d,f,h,m,y,E,v;return Te(this,function(g){switch(g.label){case 0:if((c=this.performanceClient)===null||c===void 0||c.addQueueMeasurement(D.HandleServerTokenResponse,t.correlation_id),t.id_token){if(d=new Po(t.id_token||R.EMPTY_STRING,this.cryptoObj),i&&!re.isEmpty(i.nonce)&&d.claims.nonce!==i.nonce)throw ne.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(f=d.claims.auth_time,!f)throw ne.createAuthTimeNotFoundError();Po.checkMaxAge(f,o.maxAge)}}this.homeAccountIdentifier=tr.generateHomeAccountId(t.client_info||R.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,d),i&&i.state&&(h=ti.parseRequestState(this.cryptoObj,i.state)),t.key_id=t.key_id||o.sshKid||void 0,m=this.generateCacheRecord(t,r,n,o,d,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"),y=new UO(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(y)]):[3,3];case 2:g.sent(),g.label=3;case 3:return s&&!u&&m.account&&(E=m.account.generateAccountKey(),v=this.cacheStorage.getAccount(E),!v)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,r,m,!1,o,d,h,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(m)];case 4:return g.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&y?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(y)]):[3,7];case 6:g.sent(),g.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,r,m,!1,o,d,h,t,l)]}})})},e.prototype.generateCacheRecord=function(t,r,n,o,i,a,s){var u=r.getPreferredCache();if(re.isEmpty(u))throw ne.createInvalidCacheEnvironmentError();var l,c;!re.isEmpty(t.id_token)&&i&&(l=Aa.createIdTokenEntity(this.homeAccountIdentifier,u,t.id_token||R.EMPTY_STRING,this.clientId,i.claims.tid||R.EMPTY_STRING),c=this.generateAccountEntity(t,i,r,s));var d=null;if(!re.isEmpty(t.access_token)){var f=t.scope?yr.fromString(t.scope):new yr(o.scopes||[]),h=(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,m=(typeof t.ext_expires_in=="string"?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,y=(typeof t.refresh_in=="string"?parseInt(t.refresh_in,10):t.refresh_in)||void 0,E=n+h,v=E+m,g=y&&y>0?n+y:void 0;d=Ra.createAccessTokenEntity(this.homeAccountIdentifier,u,t.access_token||R.EMPTY_STRING,this.clientId,i?i.claims.tid||R.EMPTY_STRING:r.tenant,f.printScopes(),E,v,this.cryptoObj,g,t.token_type,a,t.key_id,o.claims,o.requestedClaimsHash)}var C=null;re.isEmpty(t.refresh_token)||(C=Hs.createRefreshTokenEntity(this.homeAccountIdentifier,u,t.refresh_token||R.EMPTY_STRING,this.clientId,t.foci,a));var S=null;return re.isEmpty(t.foci)||(S=ag.createAppMetadataEntity(this.clientId,u,t.foci)),new Md(c,l,d,C,S)},e.prototype.generateAccountEntity=function(t,r,n,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:R.EMPTY_STRING,s=o?o.msgraph_host:R.EMPTY_STRING;if(i===Ur.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),tr.createGenericAccount(this.homeAccountIdentifier,r,n,a,s);if(re.isEmpty(t.client_info)&&n.protocolMode==="AAD")throw ne.createClientInfoEmptyError();return t.client_info?tr.createAccount(t.client_info,this.homeAccountIdentifier,r,n,a,s):tr.createGenericAccount(this.homeAccountIdentifier,r,n,a,s)},e.generateAuthenticationResult=function(t,r,n,o,i,a,s,u,l){var c,d,f;return we(this,void 0,void 0,function(){var h,m,y,E,v,g,C,S,w,I,b;return Te(this,function(k){switch(k.label){case 0:if(h=R.EMPTY_STRING,m=[],y=null,v=R.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==Ge.POP)return[3,2];if(g=new Ga(t),C=n.accessToken,S=C.secret,w=C.keyId,!w)throw ne.createKeyIdMissingError();return[4,g.signPopToken(S,w,i)];case 1:return h=k.sent(),[3,3];case 2:h=n.accessToken.secret,k.label=3;case 3:m=yr.fromString(n.accessToken.target).asArray(),y=new Date(Number(n.accessToken.expiresOn)*1e3),E=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),k.label=4;case 4:return n.appMetadata&&(v=n.appMetadata.familyId===gl?gl:R.EMPTY_STRING),I=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||R.EMPTY_STRING,b=(a==null?void 0:a.claims.tid)||R.EMPTY_STRING,u!=null&&u.spa_accountid&&n.account&&(n.account.nativeAccountId=u==null?void 0:u.spa_accountid),[2,{authority:r.canonicalAuthority,uniqueId:I,tenantId:b,scopes:m,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:R.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:h,fromCache:o,expiresOn:y,correlationId:i.correlationId,requestId:l||R.EMPTY_STRING,extExpiresOn:E,familyId:v,tokenType:((c=n.accessToken)===null||c===void 0?void 0:c.tokenType)||R.EMPTY_STRING,state:s?s.userRequestState:R.EMPTY_STRING,cloudGraphHostName:((d=n.account)===null||d===void 0?void 0:d.cloudGraphHostName)||R.EMPTY_STRING,msGraphHost:((f=n.account)===null||f===void 0?void 0:f.msGraphHost)||R.EMPTY_STRING,code:u==null?void 0:u.spa_code,fromNativeBroker:!1}]}})})},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var ib=function(e){jr(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.includeRedirectUri=!0,o}return t.prototype.getAuthCodeUrl=function(r){var n,o;return we(this,void 0,void 0,function(){var i;return Te(this,function(a){switch(a.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(D.GetAuthCodeUrl,r.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(D.AuthClientCreateQueryString,r.correlationId),[4,this.createAuthCodeUrlQueryString(r)];case 1:return i=a.sent(),[2,De.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},t.prototype.acquireToken=function(r,n){var o,i,a,s,u,l;return we(this,void 0,void 0,function(){var c,d,f,h,m,y,E=this;return Te(this,function(v){switch(v.label){case 0:if(!r||!r.code)throw ne.createTokenRequestCannotBeMadeError();return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(D.AuthClientAcquireToken,r.correlationId),c=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement("AuthCodeClientAcquireToken",r.correlationId),this.logger.info("in acquireToken call in auth-code client"),d=On.nowSeconds(),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(D.AuthClientExecuteTokenRequest,r.correlationId),[4,this.executeTokenRequest(this.authority,r)];case 1:return f=v.sent(),h=(s=f.headers)===null||s===void 0?void 0:s[ur.X_MS_REQUEST_ID],m=(u=f.headers)===null||u===void 0?void 0:u[ur.X_MS_HTTP_VERSION],m&&(c==null||c.addStaticFields({httpVerAuthority:m})),y=new Ff(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),y.validateTokenResponse(f.body),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(D.HandleServerTokenResponse,r.correlationId),[2,y.handleServerTokenResponse(f.body,this.authority,d,r,n,void 0,void 0,void 0,h).then(function(g){return c==null||c.endMeasurement({success:!0}),g}).catch(function(g){throw E.logger.verbose("Error in fetching token in ACC",r.correlationId),c==null||c.endMeasurement({errorCode:g.errorCode,subErrorCode:g.subError,success:!1}),g})]}})})},t.prototype.handleFragmentResponse=function(r,n){var o=new Ff(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new De(r),a=De.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw ne.createNoAuthCodeInServerResponseError();return Qe(Qe({},a),{code:a.code})},t.prototype.getLogoutUri=function(r){if(!r)throw Ye.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(r);return De.appendQueryString(this.authority.endSessionEndpoint,n)},t.prototype.executeTokenRequest=function(r,n){var o,i;return we(this,void 0,void 0,function(){var a,s,u,l,c,d,f;return Te(this,function(h){switch(h.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(D.AuthClientExecuteTokenRequest,n.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(D.AuthClientCreateTokenRequestBody,n.correlationId),a=this.createTokenQueryParameters(n),s=De.appendQueryString(r.tokenEndpoint,a),[4,this.createTokenRequestBody(n)];case 1:if(u=h.sent(),l=void 0,n.clientInfo)try{c=Rf(n.clientInfo,this.cryptoUtils),l={credential:""+c.uid+Gt.CLIENT_INFO_SEPARATOR+c.utid,type:cn.HOME_ACCOUNT_ID}}catch(m){this.logger.verbose("Could not parse client info for CCS Header: "+m)}return d=this.createTokenRequestHeaders(l||n.ccsCredential),f={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},[2,this.executePostToTokenEndpoint(s,u,d,f)]}})})},t.prototype.createTokenRequestBody=function(r){var n,o;return we(this,void 0,void 0,function(){var i,a,s,u,l,c,d,d,f;return Te(this,function(h){switch(h.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(D.AuthClientCreateTokenRequestBody,r.correlationId),i=new El,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(r.redirectUri):Ea.validateRedirectUri(r.redirectUri),i.addScopes(r.scopes),i.addAuthorizationCode(r.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),r.codeVerifier&&i.addCodeVerifier(r.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,i.addClientAssertion(a.assertion),i.addClientAssertionType(a.assertionType)),i.addGrantType(If.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),r.authenticationScheme!==Ge.POP?[3,2]:(s=new Ga(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(D.PopTokenGenerateCnf,r.correlationId),[4,s.generateCnf(r)]);case 1:return u=h.sent(),i.addPopToken(u.reqCnfString),[3,3];case 2:if(r.authenticationScheme===Ge.SSH)if(r.sshJwk)i.addSshJwk(r.sshJwk);else throw Ye.createMissingSshJwkError();h.label=3;case 3:if(l=r.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(l),(!re.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(r.claims,this.config.authOptions.clientCapabilities),c=void 0,r.clientInfo)try{d=Rf(r.clientInfo,this.cryptoUtils),c={credential:""+d.uid+Gt.CLIENT_INFO_SEPARATOR+d.utid,type:cn.HOME_ACCOUNT_ID}}catch(m){this.logger.verbose("Could not parse client info for CCS Header: "+m)}else c=r.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case cn.HOME_ACCOUNT_ID:try{d=Us(c.credential),i.addCcsOid(d)}catch(m){this.logger.verbose("Could not parse home account ID for CCS Header: "+m)}break;case cn.UPN:i.addCcsUpn(c.credential);break}return r.tokenBodyParameters&&i.addExtraQueryParameters(r.tokenBodyParameters),r.enableSpaAuthorizationCode&&(!r.tokenBodyParameters||!r.tokenBodyParameters[Ie.RETURN_SPA_CODE])&&i.addExtraQueryParameters((f={},f[Ie.RETURN_SPA_CODE]="1",f)),[2,i.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(r){var n;return we(this,void 0,void 0,function(){var o,i,a,s,u,l,l,l,c,d;return Te(this,function(f){switch(f.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(D.AuthClientCreateQueryString,r.correlationId),o=new El,o.addClientId(this.config.authOptions.clientId),i=_h(r.scopes||[],r.extraScopesToConsent||[]),o.addScopes(i),o.addRedirectUri(r.redirectUri),a=r.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(a),o.addResponseMode(r.responseMode),o.addResponseTypeCode(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addClientInfo(),r.codeChallenge&&r.codeChallengeMethod&&o.addCodeChallengeParams(r.codeChallenge,r.codeChallengeMethod),r.prompt&&o.addPrompt(r.prompt),r.domainHint&&o.addDomainHint(r.domainHint),r.prompt!==Er.SELECT_ACCOUNT)if(r.sid&&r.prompt===Er.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),o.addSid(r.sid);else if(r.account){if(s=this.extractAccountSid(r.account),u=this.extractLoginHint(r.account),u){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),o.addLoginHint(u);try{l=Us(r.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&r.prompt===Er.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),o.addSid(s);try{l=Us(r.account.homeAccountId),o.addCcsOid(l)}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"),o.addLoginHint(r.loginHint),o.addCcsUpn(r.loginHint);else if(r.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),o.addLoginHint(r.account.username);try{l=Us(r.account.homeAccountId),o.addCcsOid(l)}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"),o.addLoginHint(r.loginHint),o.addCcsUpn(r.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return r.nonce&&o.addNonce(r.nonce),r.state&&o.addState(r.state),(!re.isEmpty(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(r.claims,this.config.authOptions.clientCapabilities),r.extraQueryParameters&&o.addExtraQueryParameters(r.extraQueryParameters),r.nativeBroker?(o.addNativeBroker(),r.authenticationScheme!==Ge.POP?[3,2]:(c=new Ga(this.cryptoUtils),[4,c.generateCnf(r)])):[3,2];case 1:d=f.sent(),o.addPopToken(d.reqCnfHash),f.label=2;case 2:return[2,o.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(r){var n=new El;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()},t.prototype.extractAccountSid=function(r){var n;return((n=r.idTokenClaims)===null||n===void 0?void 0:n.sid)||null},t.prototype.extractLoginHint=function(r){var n;return((n=r.idTokenClaims)===null||n===void 0?void 0:n.login_hint)||null},t}(Qv);/*! @azure/msal-common v12.1.0 2023-04-18 */var ab=function(e){jr(t,e);function t(r,n){return e.call(this,r,n)||this}return t.prototype.acquireToken=function(r){var n,o,i,a,s,u,l;return we(this,void 0,void 0,function(){var c,d,f,h,m,y,E=this;return Te(this,function(v){switch(v.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(D.RefreshTokenClientAcquireToken,r.correlationId),c=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(D.RefreshTokenClientAcquireToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",r.correlationId),d=On.nowSeconds(),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(D.RefreshTokenClientExecuteTokenRequest,r.correlationId),[4,this.executeTokenRequest(r,this.authority)];case 1:return f=v.sent(),h=(a=f.headers)===null||a===void 0?void 0:a[ur.X_MS_HTTP_VERSION],c==null||c.addStaticFields({refreshTokenSize:((s=f.body.refresh_token)===null||s===void 0?void 0:s.length)||0}),h&&(c==null||c.addStaticFields({httpVerToken:h})),m=(u=f.headers)===null||u===void 0?void 0:u[ur.X_MS_REQUEST_ID],y=new Ff(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),y.validateTokenResponse(f.body),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(D.HandleServerTokenResponse,r.correlationId),[2,y.handleServerTokenResponse(f.body,this.authority,d,r,void 0,void 0,!0,r.forceCache,m).then(function(g){return c==null||c.endMeasurement({success:!0}),g}).catch(function(g){throw E.logger.verbose("Error in fetching refresh token",r.correlationId),c==null||c.endMeasurement({errorCode:g.errorCode,subErrorCode:g.subError,success:!1}),g})]}})})},t.prototype.acquireTokenByRefreshToken=function(r){var n,o,i,a;return we(this,void 0,void 0,function(){var s,u,l;return Te(this,function(c){if(!r)throw Ye.createEmptyTokenRequestError();if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(D.RefreshTokenClientAcquireTokenByRefreshToken,r.correlationId),!r.account)throw ne.createNoAccountInSilentRequestError();if(s=this.cacheManager.isAppMetadataFOCI(r.account.environment),s)try{return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(D.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),[2,this.acquireTokenWithCachedRefreshToken(r,!0)]}catch(d){if(u=d instanceof Fn&&d.errorCode===zs.noTokensFoundError.code,l=d instanceof Zi&&d.errorCode===Y_.INVALID_GRANT_ERROR&&d.subError===Y_.CLIENT_MISMATCH_ERROR,u||l)return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(D.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),[2,this.acquireTokenWithCachedRefreshToken(r,!1)];throw d}return(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(D.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),[2,this.acquireTokenWithCachedRefreshToken(r,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(r,n){var o,i,a;return we(this,void 0,void 0,function(){var s,u,l;return Te(this,function(c){if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(D.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(D.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",r.correlationId),u=this.cacheManager.getRefreshToken(r.account,n),!u)throw s==null||s.discardMeasurement(),Fn.createNoTokensFoundError();return s==null||s.endMeasurement({success:!0}),l=Qe(Qe({},r),{refreshToken:u.secret,authenticationScheme:r.authenticationScheme||Ge.BEARER,ccsCredential:{credential:r.account.homeAccountId,type:cn.HOME_ACCOUNT_ID}}),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(D.RefreshTokenClientAcquireToken,r.correlationId),[2,this.acquireToken(l)]})})},t.prototype.executeTokenRequest=function(r,n){var o,i,a;return we(this,void 0,void 0,function(){var s,u,l,c,d,f;return Te(this,function(h){switch(h.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(D.RefreshTokenClientExecuteTokenRequest,r.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(D.RefreshTokenClientExecuteTokenRequest,r.correlationId),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(D.RefreshTokenClientCreateTokenRequestBody,r.correlationId),u=this.createTokenQueryParameters(r),l=De.appendQueryString(n.tokenEndpoint,u),[4,this.createTokenRequestBody(r)];case 1:return c=h.sent(),d=this.createTokenRequestHeaders(r.ccsCredential),f={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},[2,this.executePostToTokenEndpoint(l,c,d,f).then(function(m){return s==null||s.endMeasurement({success:!0}),m}).catch(function(m){throw s==null||s.endMeasurement({success:!1}),m})]}})})},t.prototype.createTokenRequestBody=function(r){var n,o,i;return we(this,void 0,void 0,function(){var a,s,u,l,c,d,f;return Te(this,function(h){switch(h.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(D.RefreshTokenClientCreateTokenRequestBody,r.correlationId),a=r.correlationId,s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(D.BaseClientCreateTokenRequestHeaders,a),u=new El,u.addClientId(this.config.authOptions.clientId),u.addScopes(r.scopes),u.addGrantType(If.REFRESH_TOKEN_GRANT),u.addClientInfo(),u.addLibraryInfo(this.config.libraryInfo),u.addApplicationTelemetry(this.config.telemetry.application),u.addThrottling(),this.serverTelemetryManager&&u.addServerTelemetry(this.serverTelemetryManager),u.addCorrelationId(a),u.addRefreshToken(r.refreshToken),this.config.clientCredentials.clientSecret&&u.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(l=this.config.clientCredentials.clientAssertion,u.addClientAssertion(l.assertion),u.addClientAssertionType(l.assertionType)),r.authenticationScheme!==Ge.POP?[3,2]:(c=new Ga(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(D.PopTokenGenerateCnf,r.correlationId),[4,c.generateCnf(r)]);case 1:return d=h.sent(),u.addPopToken(d.reqCnfString),[3,3];case 2:if(r.authenticationScheme===Ge.SSH)if(r.sshJwk)u.addSshJwk(r.sshJwk);else throw s==null||s.endMeasurement({success:!1}),Ye.createMissingSshJwkError();h.label=3;case 3:if((!re.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&u.addClaims(r.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&r.ccsCredential)switch(r.ccsCredential.type){case cn.HOME_ACCOUNT_ID:try{f=Us(r.ccsCredential.credential),u.addCcsOid(f)}catch(m){this.logger.verbose("Could not parse home account ID for CCS Header: "+m)}break;case cn.UPN:u.addCcsUpn(r.ccsCredential.credential);break}return s==null||s.endMeasurement({success:!0}),[2,u.createQueryString()]}})})},t}(Qv);/*! @azure/msal-common v12.1.0 2023-04-18 */var HO=function(e){jr(t,e);function t(r,n){return e.call(this,r,n)||this}return t.prototype.acquireToken=function(r){return we(this,void 0,void 0,function(){var n,o;return Te(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 ne&&n.errorCode===W.tokenRefreshRequired.code)return o=new ab(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(r)];throw n;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(r){var n,o,i,a;return we(this,void 0,void 0,function(){var s,u;return Te(this,function(l){switch(l.label){case 0:if(!r)throw Ye.createEmptyTokenRequestError();if(r.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(ka.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),ne.createRefreshRequiredError();if(!r.account)throw ne.createNoAccountInSilentRequestError();if(s=r.authority||this.authority.getPreferredCache(),u=this.cacheManager.readCacheRecord(r.account,r,s),u.accessToken){if(On.wasClockTurnedBack(u.accessToken.cachedAt)||On.isTokenExpired(u.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(ka.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),ne.createRefreshRequiredError();if(u.accessToken.refreshOn&&On.isTokenExpired(u.accessToken.refreshOn,0))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(ka.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),ne.createRefreshRequiredError()}else throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(ka.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),ne.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(u,r)];case 1:return[2,l.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(r,n){return we(this,void 0,void 0,function(){var o,i;return Te(this,function(a){switch(a.label){case 0:if(r.idToken&&(o=new Po(r.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw ne.createAuthTimeNotFoundError();Po.checkMaxAge(i,n.maxAge)}return[4,Ff.generateAuthenticationResult(this.cryptoUtils,this.authority,r,!0,n,o)];case 1:return[2,a.sent()]}})})},t}(Qv);/*! @azure/msal-common v12.1.0 2023-04-18 */function zO(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v12.1.0 2023-04-18 */var sb={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"]}]}}},J_=sb.endpointMetadata,Z_=sb.instanceDiscoveryMetadata;/*! @azure/msal-common v12.1.0 2023-04-18 */var ic;(function(e){e.AAD="AAD",e.OIDC="OIDC"})(ic||(ic={}));/*! @azure/msal-common v12.1.0 2023-04-18 */var sg=function(){function e(){this.expiresAt=On.nowSeconds()+vl.REFRESH_TIME_SECONDS}return e.prototype.updateCloudDiscoveryMetadata=function(t,r){this.aliases=t.aliases,this.preferred_cache=t.preferred_cache,this.preferred_network=t.preferred_network,this.aliasesFromNetwork=r},e.prototype.updateEndpointMetadata=function(t,r){this.authorization_endpoint=t.authorization_endpoint,this.token_endpoint=t.token_endpoint,this.end_session_endpoint=t.end_session_endpoint,this.issuer=t.issuer,this.endpointsFromNetwork=r,this.jwks_uri=t.jwks_uri},e.prototype.updateCanonicalAuthority=function(t){this.canonical_authority=t},e.prototype.resetExpiresAt=function(){this.expiresAt=On.nowSeconds()+vl.REFRESH_TIME_SECONDS},e.prototype.isExpired=function(){return this.expiresAt<=On.nowSeconds()},e.isAuthorityMetadataEntity=function(t,r){return r?t.indexOf(vl.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},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */function KO(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}/*! @azure/msal-common v12.1.0 2023-04-18 */function GO(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}/*! @azure/msal-common v12.1.0 2023-04-18 */var qO=function(){function e(t,r,n){this.networkInterface=t,this.performanceClient=r,this.correlationId=n}return e.prototype.detectRegion=function(t,r){var n,o,i,a;return we(this,void 0,void 0,function(){var s,u,l,c,d;return Te(this,function(f){switch(f.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(D.RegionDiscoveryDetectRegion,this.correlationId),s=t,s)return[3,8];u=e.IMDS_OPTIONS,f.label=1;case 1:return f.trys.push([1,6,,7]),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(D.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(R.IMDS_VERSION,u)];case 2:return l=f.sent(),l.status===Bs.httpSuccess&&(s=l.body,r.region_source=Ii.IMDS),l.status!==Bs.httpBadRequest?[3,5]:((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(D.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(u)]);case 3:return c=f.sent(),c?((a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(D.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(c,u)]):(r.region_source=Ii.FAILED_AUTO_DETECTION,[2,null]);case 4:d=f.sent(),d.status===Bs.httpSuccess&&(s=d.body,r.region_source=Ii.IMDS),f.label=5;case 5:return[3,7];case 6:return f.sent(),r.region_source=Ii.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:r.region_source=Ii.ENVIRONMENT_VARIABLE,f.label=9;case 9:return s||(r.region_source=Ii.FAILED_AUTO_DETECTION),[2,s||null]}})})},e.prototype.getRegionFromIMDS=function(t,r){var n;return we(this,void 0,void 0,function(){return Te(this,function(o){return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(D.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(R.IMDS_ENDPOINT+"?api-version="+t+"&format=text",r,R.IMDS_TIMEOUT)]})})},e.prototype.getCurrentVersion=function(t){var r;return we(this,void 0,void 0,function(){var n;return Te(this,function(o){switch(o.label){case 0:(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(D.RegionDiscoveryGetCurrentVersion,this.correlationId),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(R.IMDS_ENDPOINT+"?format=json",t)];case 2:return n=o.sent(),n.status===Bs.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var ac=function(){function e(t,r,n,o,i,a,s){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=n,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new qO(r,this.performanceClient,this.correlationId)}return Object.defineProperty(e.prototype,"authorityType",{get:function(){if(this.canonicalAuthorityUrlComponents.HostNameAndPort.endsWith(R.CIAM_AUTH_URL))return Ur.Ciam;var t=this.canonicalAuthorityUrlComponents.PathSegments;if(t.length)switch(t[0].toLowerCase()){case R.ADFS:return Ur.Adfs;case R.DSTS:return Ur.Dsts}return Ur.Default},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(t){this._canonicalAuthority=new De(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(t)}else throw ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(t)}else throw ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(t)}else throw ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw ne.createLogoutNotSupportedError();var t=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(t)}else throw ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.issuer);return this.replaceTenant(t)}else throw ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var t=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(t)}else throw ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.replaceTenant=function(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(t){var r=t,n=new De(this.metadata.canonical_authority),o=n.getUrlComponents().PathSegments,i=this.canonicalAuthorityUrlComponents.PathSegments;return i.forEach(function(a,s){var u=o[s];a!==u&&(r=r.replace("/"+u+"/","/"+a+"/"))}),r},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Ur.Adfs||this.authorityType===Ur.Dsts||this.protocolMode===ic.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),e.prototype.discoveryComplete=function(){return!!this.metadata},e.prototype.resolveEndpointsAsync=function(){var t,r,n;return we(this,void 0,void 0,function(){var o,i,a,s;return Te(this,function(u){switch(u.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(D.AuthorityResolveEndpointsAsync,this.correlationId),o=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),o||(o=new sg,o.updateCanonicalAuthority(this.canonicalAuthority)),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(D.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(o)];case 1:return i=u.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,o.preferred_network),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(D.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(o)];case 2:return a=u.sent(),i!==wn.CACHE&&a!==wn.CACHE&&(o.resetExpiresAt(),o.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache),this.cacheManager.setAuthorityMetadata(s,o),this.metadata=o,[2]}})})},e.prototype.updateEndpointMetadata=function(t){var r,n,o,i,a,s;return we(this,void 0,void 0,function(){var u,l;return Te(this,function(c){switch(c.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(D.AuthorityUpdateEndpointMetadata,this.correlationId),u=this.getEndpointMetadataFromConfig(),u?(t.updateEndpointMetadata(u,!1),[2,wn.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,wn.CACHE]:((n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(D.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return u=c.sent(),u?!((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0)&&o.azureRegion?((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(D.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(u)]):[3,3]:[3,4];case 2:u=c.sent(),c.label=3;case 3:return t.updateEndpointMetadata(u,!0),[2,wn.NETWORK];case 4:return l=this.getEndpointMetadataFromHardcodedValues(),l&&!this.authorityOptions.skipAuthorityMetadataCache?!((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0)&&a.azureRegion?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(D.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,6]:[3,7];case 5:l=c.sent(),c.label=6;case 6:return t.updateEndpointMetadata(l,!1),[2,wn.HARDCODED_VALUES];case 7:throw ne.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},e.prototype.isAuthoritySameType=function(t){var r=new De(t.canonical_authority),n=r.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Ye.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var t;return we(this,void 0,void 0,function(){var r,n;return Te(this,function(o){switch(o.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(D.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),r={},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,r)];case 2:return n=o.sent(),[2,zO(n.body)?n.body:null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},e.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in J_?J_[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var r,n,o,i,a,s,u;return we(this,void 0,void 0,function(){var l,c;return Te(this,function(d){switch(d.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(D.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(D.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.environmentRegion,this.regionDiscoveryMetadata)];case 1:return l=d.sent(),c=((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.azureRegion)===R.AZURE_REGION_AUTO_DISCOVER_FLAG?l:(a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0?void 0:a.azureRegion,((s=this.authorityOptions.azureRegionConfiguration)===null||s===void 0?void 0:s.azureRegion)===R.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=l?Ca.AUTO_DETECTION_REQUESTED_SUCCESSFUL:Ca.AUTO_DETECTION_REQUESTED_FAILED:l?this.regionDiscoveryMetadata.region_outcome=((u=this.authorityOptions.azureRegionConfiguration)===null||u===void 0?void 0:u.azureRegion)===l?Ca.CONFIGURED_MATCHES_DETECTED:Ca.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=Ca.CONFIGURED_NO_AUTO_DETECTION,c?(this.regionDiscoveryMetadata.region_used=c,[2,e.replaceWithRegionalInformation(t,c)]):[2,t]}})})},e.prototype.updateCloudDiscoveryMetadata=function(t){var r,n;return we(this,void 0,void 0,function(){var o,i,a;return Te(this,function(s){switch(s.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(D.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||R.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||R.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(t.canonical_authority||R.NOT_APPLICABLE)),o=this.getCloudDiscoveryMetadataFromConfig(),o?(this.logger.verbose("Found cloud discovery metadata in the config."),t.updateCloudDiscoveryMetadata(o,!1),[2,wn.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=t.isExpired(),this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,wn.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(D.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(o=s.sent(),o)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),t.updateCloudDiscoveryMetadata(o,!0),[2,wn.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),t.updateCloudDiscoveryMetadata(a,!1),[2,wn.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),Ye.createUntrustedAuthorityError()}})})},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===Ur.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=e.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),r)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),r;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Ye.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},e.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var t;return we(this,void 0,void 0,function(){var r,n,o,i,a,s,u,l;return Te(this,function(c){switch(c.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(D.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),r=""+R.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",n={},o=null,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(r,n)];case 2:if(i=c.sent(),a=void 0,s=void 0,KO(i.body))a=i.body,s=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(GO(i.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),a=i.body,a.error===R.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=e.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return u=c.sent(),u instanceof fe?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
Error: `+u.errorCode+`
Error Description: `+u.errorMessage):(l=u,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
Error: `+l.name+`
Error Description: `+l.message)),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},e.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Z_?Z_[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var t=this,r=this.authorityOptions.knownAuthorities.filter(function(n){return De.getDomainFromUrl(n).toLowerCase()===t.hostnameAndPort});return r.length>0},e.generateAuthority=function(t,r){var n;if(r&&r.azureCloudInstance!==fu.None){var o=r.tenant?r.tenant:R.DEFAULT_COMMON_TENANT;n=r.azureCloudInstance+"/"+o+"/"}return n||t},e.createCloudDiscoveryMetadataFromHost=function(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}},e.getCloudDiscoveryMetadataFromNetworkResponse=function(t,r){for(var n=0;n<t.length;n++){var o=t[n];if(o.aliases.indexOf(r)>-1)return o}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw ne.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},e.isPublicCloudAuthority=function(t){return R.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},e.buildRegionalAuthorityString=function(t,r,n){var o=new De(t);o.validateAsUri();var i=o.getUrlComponents(),a=r+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=r+"."+R.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=De.constructAuthorityUriFromObject(Qe(Qe({},o.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},e.replaceWithRegionalInformation=function(t,r){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,r),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,r,R.REGIONAL_AUTH_NON_MSI_QUERY_STRING),t.end_session_endpoint&&(t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,r)),t},e.transformCIAMAuthority=function(t){var r=t,n=new De(t),o=n.getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(R.CIAM_AUTH_URL)){var i=o.HostNameAndPort.split(".")[0];r=""+r+i+R.AAD_TENANT_DOMAIN_SUFFIX}return r},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var Nf=function(){function e(){}return e.createDiscoveredInstance=function(t,r,n,o,i,a,s){return we(this,void 0,void 0,function(){var u,l,c;return Te(this,function(d){switch(d.label){case 0:a==null||a.addQueueMeasurement(D.AuthorityFactoryCreateDiscoveredInstance,s),u=ac.transformCIAMAuthority(t),l=e.createInstance(u,r,n,o,i,a,s),d.label=1;case 1:return d.trys.push([1,3,,4]),a==null||a.setPreQueueTime(D.AuthorityResolveEndpointsAsync,s),[4,l.resolveEndpointsAsync()];case 2:return d.sent(),[2,l];case 3:throw c=d.sent(),ne.createEndpointDiscoveryIncompleteError(c);case 4:return[2]}})})},e.createInstance=function(t,r,n,o,i,a,s){if(re.isEmpty(t))throw Ye.createUrlEmptyError();return new ac(t,r,n,o,i,a,s)},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var xf=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(t,r){var n=t.indexOf(or.CACHE_KEY)===0,o=!0;return r&&(o=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),n&&o},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var eC=function(){function e(){}return e.isThrottlingEntity=function(t,r){var n=!1;t&&(n=t.indexOf(yl.THROTTLING_PREFIX)===0);var o=!0;return r&&(o=r.hasOwnProperty("throttleTime")),n&&o},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var VO={sendGetRequestAsync:function(){var e="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(fe.createUnexpectedError(e))},sendPostRequestAsync:function(){var e="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(fe.createUnexpectedError(e))}};/*! @azure/msal-common v12.1.0 2023-04-18 */var od={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."}},tC=function(e){jr(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,t.prototype),o}return t.createMissingKidError=function(){return new t(od.missingKidError.code,od.missingKidError.desc)},t.createMissingAlgError=function(){return new t(od.missingAlgError.code,od.missingAlgError.desc)},t}(fe);/*! @azure/msal-common v12.1.0 2023-04-18 */var WO=function(){function e(t){this.typ=t.typ,this.alg=t.alg,this.kid=t.kid}return e.getShrHeaderString=function(t){if(!t.kid)throw tC.createMissingKidError();if(!t.alg)throw tC.createMissingAlgError();var r=new e({typ:t.typ||og.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(r)},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var jO=function(){function e(t){this.headers=t}return e.prototype.getShrNonce=function(){var t=this.headers[ur.AuthenticationInfo];if(t){var r=this.parseChallenges(t);if(r.nextnonce)return r.nextnonce;throw Ye.createInvalidAuthenticationHeaderError(ur.AuthenticationInfo,"nextnonce challenge is missing.")}var n=this.headers[ur.WWWAuthenticate];if(n){var o=this.parseChallenges(n);if(o.nonce)return o.nonce;throw Ye.createInvalidAuthenticationHeaderError(ur.WWWAuthenticate,"nonce challenge is missing.")}throw Ye.createMissingNonceAuthenticationHeadersError()},e.prototype.parseChallenges=function(t){var r=t.indexOf(" "),n=t.substr(r+1).split(","),o={};return n.forEach(function(i){var a=i.split("="),s=a[0],u=a[1];o[s]=unescape(u.replace(/['"]+/g,R.EMPTY_STRING))}),o},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var $O=function(){function e(t,r){this.cacheOutcome=ka.NO_CACHE_HIT,this.cacheManager=r,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||R.EMPTY_STRING,this.wrapperVer=t.wrapperVer||R.EMPTY_STRING,this.telemetryCacheKey=or.CACHE_KEY+Gt.CACHE_KEY_SEPARATOR+t.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+or.VALUE_SEPARATOR+this.cacheOutcome,r=[this.wrapperSKU,this.wrapperVer].join(or.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[t,n].join(or.VALUE_SEPARATOR);return[or.SCHEMA_VERSION,o,r].join(or.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),r=e.maxErrorsToSend(t),n=t.failedRequests.slice(0,2*r).join(or.VALUE_SEPARATOR),o=t.errors.slice(0,r).join(or.VALUE_SEPARATOR),i=t.errors.length,a=r<i?or.OVERFLOW_TRUE:or.OVERFLOW_FALSE,s=[i,a].join(or.VALUE_SEPARATOR);return[or.SCHEMA_VERSION,t.cacheHits,n,o,s].join(or.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(t){var r=this.getLastRequests();r.errors.length>=or.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),re.isEmpty(t.subError)?re.isEmpty(t.errorCode)?t&&t.toString()?r.errors.push(t.toString()):r.errors.push(or.UNKNOWN_ERROR):r.errors.push(t.errorCode):r.errors.push(t.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)},e.prototype.incrementCacheHits=function(){var t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t),t.cacheHits},e.prototype.getLastRequests=function(){var t=new xf,r=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return r||t},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),r=e.maxErrorsToSend(t),n=t.errors.length;if(r===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new xf;o.failedRequests=t.failedRequests.slice(r*2),o.errors=t.errors.slice(r),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},e.maxErrorsToSend=function(t){var r,n=0,o=0,i=t.errors.length;for(r=0;r<i;r++){var a=t.failedRequests[2*r]||R.EMPTY_STRING,s=t.failedRequests[2*r+1]||R.EMPTY_STRING,u=t.errors[r]||R.EMPTY_STRING;if(o+=a.toString().length+s.toString().length+u.length+3,o<or.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},e.prototype.getRegionDiscoveryFields=function(){var t=[];return t.push(this.regionUsed||R.EMPTY_STRING),t.push(this.regionSource||R.EMPTY_STRING),t.push(this.regionOutcome||R.EMPTY_STRING),t.join(",")},e.prototype.updateRegionDiscoveryMetadata=function(t){this.regionUsed=t.region_used,this.regionSource=t.region_source,this.regionOutcome=t.region_outcome},e.prototype.setCacheOutcome=function(t){this.cacheOutcome=t},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var ub=function(){function e(t,r,n,o,i,a){this.authority=r,this.libraryName=o,this.libraryVersion=i,this.applicationTelemetry=a,this.clientId=t,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return e.prototype.startPerformanceMeasurement=function(t,r){return{}},e.prototype.startPerformanceMeasuremeant=function(t,r){return{}},e.prototype.getIntFields=function(){return BO},e.prototype.getPreQueueTime=function(t,r){var n=this.preQueueTimeByCorrelationId.get(r);if(n){if(n.name!==t){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+t+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+r+", unable to add queue measurement");return}return n.time},e.prototype.calculateQueuedTime=function(t,r){return t<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+t),0):r<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+r),0):r<t?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):r-t},e.prototype.addQueueMeasurement=function(t,r,n,o){if(!r){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+t+", cannot add queue measurement");return}if(n===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+t+" is "+n);else if(!n){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+t);return}var i={eventName:t,queueTime:n,manuallyCompleted:o},a=this.queueMeasurements.get(r);if(a)a.push(i),this.queueMeasurements.set(r,a);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+r+" to queue measurements");var s=[i];this.queueMeasurements.set(r,s)}this.preQueueTimeByCorrelationId.delete(r)},e.prototype.startMeasurement=function(t,r){var n=this,o,i,a=r||this.generateId();r||this.logger.info("PerformanceClient: No correlation id provided for "+t+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+t,a);var s=this.startPerformanceMeasuremeant(t,a);s.startMeasurement();var u={eventId:this.generateId(),status:Mf.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:t,startTimeMs:Date.now(),correlationId:a,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.cacheEventByCorrelationId(u),{endMeasurement:function(l){return n.endMeasurement(Qe(Qe({},u),l),s)},discardMeasurement:function(){return n.discardMeasurements(u.correlationId)},addStaticFields:function(l){return n.addStaticFields(l,u.correlationId)},increment:function(l){return n.increment(l,u.correlationId)},measurement:s,event:u}},e.prototype.endMeasurement=function(t,r){var n=this,o,i,a=this.eventsByCorrelationId.get(t.correlationId);if(!a)return this.logger.trace("PerformanceClient: Measurement not found for "+t.eventId,t.correlationId),null;var s=t.eventId===a.eventId,u={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(u=this.getQueueInfo(t.correlationId),this.discardCache(a.correlationId)):(o=a.incompleteSubMeasurements)===null||o===void 0||o.delete(t.eventId),r==null||r.endMeasurement();var l=r==null?void 0:r.flushMeasurement();if(!l)return this.logger.trace("PerformanceClient: Performance measurement not taken",a.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+t.name+": "+l+" ms",t.correlationId),!s)return a[t.name+"DurationMs"]=Math.floor(l),Qe({},a);var c=Qe(Qe({},a),t),d=0;return(i=c.incompleteSubMeasurements)===null||i===void 0||i.forEach(function(f){n.logger.trace("PerformanceClient: Incomplete submeasurement "+f.name+" found for "+t.name,c.correlationId),d++}),c.incompleteSubMeasurements=void 0,c=Qe(Qe({},c),{durationMs:Math.round(l),queuedTimeMs:u.totalQueueTime,queuedCount:u.totalQueueCount,queuedManuallyCompletedCount:u.manuallyCompletedCount,status:Mf.Completed,incompleteSubsCount:d}),this.truncateIntegralFields(c,this.getIntFields()),this.emitEvents([c],t.correlationId),c},e.prototype.addStaticFields=function(t,r){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(r);n?this.eventsByCorrelationId.set(r,Qe(Qe({},n),t)):this.logger.trace("PerformanceClient: Event not found for",r)},e.prototype.increment=function(t,r){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(r);if(n)for(var o in t)n.hasOwnProperty(o)||(n[o]=0),n[o]+=t[o];else this.logger.trace("PerformanceClient: Event not found for",r)},e.prototype.cacheEventByCorrelationId=function(t){var r=this.eventsByCorrelationId.get(t.correlationId);r?(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" added/updated",t.correlationId),r.incompleteSubMeasurements=r.incompleteSubMeasurements||new Map,r.incompleteSubMeasurements.set(t.eventId,{name:t.name,startTimeMs:t.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" started",t.correlationId),this.eventsByCorrelationId.set(t.correlationId,Qe({},t)))},e.prototype.getQueueInfo=function(t){var r=this.queueMeasurements.get(t);r||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+t);var n=0,o=0,i=0;return r==null||r.forEach(function(a){n+=a.queueTime,o++,i+=a.manuallyCompleted?1:0}),{totalQueueTime:n,totalQueueCount:o,manuallyCompletedCount:i}},e.prototype.discardMeasurements=function(t){this.logger.trace("PerformanceClient: Performance measurements discarded",t),this.eventsByCorrelationId.delete(t)},e.prototype.discardCache=function(t){this.discardMeasurements(t),this.logger.trace("PerformanceClient: QueueMeasurements discarded",t),this.queueMeasurements.delete(t),this.logger.trace("PerformanceClient: Pre-queue times discarded",t),this.preQueueTimeByCorrelationId.delete(t)},e.prototype.addPerformanceCallback=function(t){var r=this.generateId();return this.callbacks.set(r,t),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+r),r},e.prototype.removePerformanceCallback=function(t){var r=this.callbacks.delete(t);return r?this.logger.verbose("PerformanceClient: Performance callback "+t+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+t+" not removed."),r},e.prototype.emitEvents=function(t,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,[t])})},e.prototype.truncateIntegralFields=function(t,r){r.forEach(function(n){n in t&&typeof t[n]=="number"&&(t[n]=Math.floor(t[n]))})},e}();/*! @azure/msal-common v12.1.0 2023-04-18 */var rC=function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e}(),QO=function(e){jr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new rC},t.prototype.startPerformanceMeasurement=function(){return new rC},t.prototype.calculateQueuedTime=function(r,n){return 0},t.prototype.addQueueMeasurement=function(r,n,o){},t.prototype.setPreQueueTime=function(r,n){},t}(ub);/*! @azure/msal-browser v2.36.0 2023-04-18 */var q={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."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},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."}},ee=function(e){dr(t,e);function t(r,n){var o=e.call(this,r,n)||this;return Object.setPrototypeOf(o,t.prototype),o.name="BrowserAuthError",o}return t.createPkceNotGeneratedError=function(r){return new t(q.pkceNotGenerated.code,q.pkceNotGenerated.desc+" Detail:"+r)},t.createCryptoNotAvailableError=function(r){return new t(q.cryptoDoesNotExist.code,q.cryptoDoesNotExist.desc+" Detail:"+r)},t.createHttpMethodNotImplementedError=function(r){return new t(q.httpMethodNotImplementedError.code,q.httpMethodNotImplementedError.desc+" Given Method: "+r)},t.createEmptyNavigationUriError=function(){return new t(q.emptyNavigateUriError.code,q.emptyNavigateUriError.desc)},t.createEmptyHashError=function(r){return new t(q.hashEmptyError.code,q.hashEmptyError.desc+" Given Url: "+r)},t.createHashDoesNotContainStateError=function(){return new t(q.hashDoesNotContainStateError.code,q.hashDoesNotContainStateError.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(q.hashDoesNotContainKnownPropertiesError.code,q.hashDoesNotContainKnownPropertiesError.desc)},t.createUnableToParseStateError=function(){return new t(q.unableToParseStateError.code,q.unableToParseStateError.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(q.stateInteractionTypeMismatchError.code,q.stateInteractionTypeMismatchError.desc)},t.createInteractionInProgressError=function(){return new t(q.interactionInProgress.code,q.interactionInProgress.desc)},t.createPopupWindowError=function(r){var n=q.popupWindowError.desc;return n=re.isEmpty(r)?n:n+" Details: "+r,new t(q.popupWindowError.code,n)},t.createEmptyWindowCreatedError=function(){return new t(q.emptyWindowError.code,q.emptyWindowError.desc)},t.createUserCancelledError=function(){return new t(q.userCancelledError.code,q.userCancelledError.desc)},t.createMonitorPopupTimeoutError=function(){return new t(q.monitorPopupTimeoutError.code,q.monitorPopupTimeoutError.desc)},t.createMonitorIframeTimeoutError=function(){return new t(q.monitorIframeTimeoutError.code,q.monitorIframeTimeoutError.desc)},t.createRedirectInIframeError=function(r){return new t(q.redirectInIframeError.code,q.redirectInIframeError.desc+" (window.parent !== window) => "+r)},t.createBlockReloadInHiddenIframeError=function(){return new t(q.blockTokenRequestsInHiddenIframeError.code,q.blockTokenRequestsInHiddenIframeError.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(q.blockAcquireTokenInPopupsError.code,q.blockAcquireTokenInPopupsError.desc)},t.createIframeClosedPrematurelyError=function(){return new t(q.iframeClosedPrematurelyError.code,q.iframeClosedPrematurelyError.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(q.silentLogoutUnsupportedError.code,q.silentLogoutUnsupportedError.desc)},t.createNoAccountError=function(){return new t(q.noAccountError.code,q.noAccountError.desc)},t.createSilentPromptValueError=function(r){return new t(q.silentPromptValueError.code,q.silentPromptValueError.desc+" Given value: "+r)},t.createUnableToParseTokenRequestCacheError=function(){return new t(q.unableToParseTokenRequestCacheError.code,q.unableToParseTokenRequestCacheError.desc)},t.createNoTokenRequestCacheError=function(){return new t(q.noTokenRequestCacheError.code,q.noTokenRequestCacheError.desc)},t.createAuthRequestNotSetError=function(){return new t(q.authRequestNotSet.code,q.authRequestNotSet.desc)},t.createNoCachedAuthorityError=function(){return new t(q.noCachedAuthorityError.code,q.noCachedAuthorityError.desc)},t.createInvalidCacheTypeError=function(){return new t(q.invalidCacheType.code,""+q.invalidCacheType.desc)},t.createNonBrowserEnvironmentError=function(){return new t(q.notInBrowserEnvironment.code,q.notInBrowserEnvironment.desc)},t.createDatabaseNotOpenError=function(){return new t(q.databaseNotOpen.code,q.databaseNotOpen.desc)},t.createNoNetworkConnectivityError=function(){return new t(q.noNetworkConnectivity.code,q.noNetworkConnectivity.desc)},t.createPostRequestFailedError=function(r,n){return new t(q.postRequestFailed.code,q.postRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(r,n){return new t(q.getRequestFailed.code,q.getRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(r){return new t(q.failedToParseNetworkResponse.code,q.failedToParseNetworkResponse.desc+" | Attempted to reach: "+r.split("?")[0])},t.createUnableToLoadTokenError=function(r){return new t(q.unableToLoadTokenError.code,q.unableToLoadTokenError.desc+" | "+r)},t.createSigningKeyNotFoundInStorageError=function(r){return new t(q.signingKeyNotFoundInStorage.code,q.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+r)},t.createAuthCodeRequiredError=function(){return new t(q.authCodeRequired.code,q.authCodeRequired.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(q.authCodeOrNativeAccountRequired.code,q.authCodeOrNativeAccountRequired.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(q.spaCodeAndNativeAccountPresent.code,q.spaCodeAndNativeAccountPresent.desc)},t.createDatabaseUnavailableError=function(){return new t(q.databaseUnavailable.code,q.databaseUnavailable.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(q.unableToAcquireTokenFromNativePlatform.code,q.unableToAcquireTokenFromNativePlatform.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(q.nativeHandshakeTimeout.code,q.nativeHandshakeTimeout.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(q.nativeExtensionNotInstalled.code,q.nativeExtensionNotInstalled.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(q.nativeConnectionNotEstablished.code,q.nativeConnectionNotEstablished.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(q.nativeBrokerCalledBeforeInitialize.code,q.nativeBrokerCalledBeforeInitialize.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(q.nativePromptNotSupported.code,q.nativePromptNotSupported.desc)},t}(fe);/*! @azure/msal-browser v2.36.0 2023-04-18 */var An={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"},rl={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Jo;(function(e){e.HandshakeRequest="Handshake",e.HandshakeResponse="HandshakeResponse",e.GetToken="GetToken",e.Response="Response"})(Jo||(Jo={}));var xt;(function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage"})(xt||(xt={}));var _o;(function(e){e.GET="GET",e.POST="POST"})(_o||(_o={}));var Ue;(function(e){e.AUTHORITY="authority",e.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",e.SESSION_STATE="session.state",e.REQUEST_STATE="request.state",e.NONCE_IDTOKEN="nonce.id_token",e.ORIGIN_URI="request.origin",e.RENEW_STATUS="token.renew.status",e.URL_HASH="urlHash",e.REQUEST_PARAMS="request.params",e.SCOPES="scopes",e.INTERACTION_STATUS_KEY="interaction.status",e.CCS_CREDENTIAL="ccs.credential",e.CORRELATION_ID="request.correlationId",e.NATIVE_REQUEST="request.native",e.REDIRECT_CONTEXT="request.redirect.context"})(Ue||(Ue={}));var po;(function(e){e.ACCOUNT_KEYS="msal.account.keys",e.TOKEN_KEYS="msal.token.keys"})(po||(po={}));var Ks;(function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"})(Ks||(Ks={}));var nt;(function(e){e[e.acquireTokenRedirect=861]="acquireTokenRedirect",e[e.acquireTokenPopup=862]="acquireTokenPopup",e[e.ssoSilent=863]="ssoSilent",e[e.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",e[e.handleRedirectPromise=865]="handleRedirectPromise",e[e.acquireTokenByCode=866]="acquireTokenByCode",e[e.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",e[e.logout=961]="logout",e[e.logoutPopup=962]="logoutPopup"})(nt||(nt={}));var ie;(function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"})(ie||(ie={}));var ct;(function(e){e.Startup="startup",e.Login="login",e.Logout="logout",e.AcquireToken="acquireToken",e.SsoSilent="ssoSilent",e.HandleRedirect="handleRedirect",e.None="none"})(ct||(ct={}));var nC={scopes:Tu},hu="jwk",Df;(function(e){e.React="@azure/msal-react",e.Angular="@azure/msal-angular"})(Df||(Df={}));var ug="msal.db",YO=1,XO=ug+".keys",Rr;(function(e){e[e.Default=0]="Default",e[e.AccessToken=1]="AccessToken",e[e.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",e[e.RefreshToken=3]="RefreshToken",e[e.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",e[e.Skip=5]="Skip"})(Rr||(Rr={}));/*! @azure/msal-browser v2.36.0 2023-04-18 */var Tr={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."}},Ot=function(e){dr(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,t.prototype),o}return t.createRedirectUriEmptyError=function(){return new t(Tr.redirectUriNotSet.code,Tr.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Tr.postLogoutUriNotSet.code,Tr.postLogoutUriNotSet.desc)},t.createStorageNotSupportedError=function(r){return new t(Tr.storageNotSupportedError.code,Tr.storageNotSupportedError.desc+" Given Location: "+r)},t.createRedirectCallbacksNotSetError=function(){return new t(Tr.noRedirectCallbacksSet.code,Tr.noRedirectCallbacksSet.desc)},t.createStubPcaInstanceCalledError=function(){return new t(Tr.stubPcaInstanceCalled.code,Tr.stubPcaInstanceCalled.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(Tr.inMemRedirectUnavailable.code,Tr.inMemRedirectUnavailable.desc)},t.createEntropyNotProvided=function(){return new t(Tr.entropyNotProvided.code,Tr.entropyNotProvided.desc)},t}(fe);/*! @azure/msal-browser v2.36.0 2023-04-18 */var oC=function(){function e(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return e.prototype.validateWindowStorage=function(t){if(t!==xt.LocalStorage&&t!==xt.SessionStorage)throw Ot.createStorageNotSupportedError(t);var r=!!window[t];if(!r)throw Ot.createStorageNotSupportedError(t)},e.prototype.getItem=function(t){return this.windowStorage.getItem(t)},e.prototype.setItem=function(t,r){this.windowStorage.setItem(t,r)},e.prototype.removeItem=function(t){this.windowStorage.removeItem(t)},e.prototype.getKeys=function(){return Object.keys(this.windowStorage)},e.prototype.containsKey=function(t){return this.windowStorage.hasOwnProperty(t)},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var lg=function(){function e(){this.cache=new Map}return e.prototype.getItem=function(t){return this.cache.get(t)||null},e.prototype.setItem=function(t,r){this.cache.set(t,r)},e.prototype.removeItem=function(t){this.cache.delete(t)},e.prototype.getKeys=function(){var t=[];return this.cache.forEach(function(r,n){t.push(n)}),t},e.prototype.containsKey=function(t){return this.cache.has(t)},e.prototype.clear=function(){this.cache.clear()},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var lb=function(){function e(){}return e.extractBrowserRequestState=function(t,r){if(re.isEmpty(r))return null;try{var n=ti.parseRequestState(t,r);return n.libraryState.meta}catch(o){throw ne.createInvalidStateError(r,o)}},e.parseServerResponseFromHash=function(t){if(!t)return{};var r=new De(t);return De.getDeserializedHash(r.getHash())},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var Of=function(e){dr(t,e);function t(r,n,o,i){var a=e.call(this,r,o,i)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=i,a.internalStorage=new lg,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return t.prototype.setupBrowserStorage=function(r){switch(r){case xt.LocalStorage:case xt.SessionStorage:try{return new oC(r)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=xt.MemoryStorage,new lg},t.prototype.setupTemporaryCacheStorage=function(r,n){switch(n){case xt.LocalStorage:case xt.SessionStorage:try{return new oC(r||xt.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case xt.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var r=this,n=R.CACHE_PREFIX+"."+Ut.ID_TOKEN,o=R.CACHE_PREFIX+"."+Ut.CLIENT_INFO,i=R.CACHE_PREFIX+"."+Ut.ERROR,a=R.CACHE_PREFIX+"."+Ut.ERROR_DESC,s=this.browserStorage.getItem(n),u=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),c=this.browserStorage.getItem(a),d=[s,u,l,c],f=[Ut.ID_TOKEN,Ut.CLIENT_INFO,Ut.ERROR,Ut.ERROR_DESC];f.forEach(function(h,m){return r.migrateCacheEntry(h,d[m])})},t.prototype.migrateCacheEntry=function(r,n){n&&this.setTemporaryCache(r,n,!0)},t.prototype.createKeyMaps=function(){var r=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var n=this.getItem(po.ACCOUNT_KEYS),o=this.getItem(po.TOKEN_KEYS+"."+this.clientId);if(n&&o){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var i=this.browserStorage.getKeys();i.forEach(function(a){if(r.isCredentialKey(a)){var s=r.getItem(a);if(s){var u=r.validateAndParseJson(s);if(u&&u.hasOwnProperty("credentialType"))switch(u.credentialType){case ge.ID_TOKEN:if(Aa.isIdTokenEntity(u)){r.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),r.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+a+" found, saving key to token key map");var l=Lr.toObject(new Aa,u),c=r.updateCredentialCacheKey(a,l);r.addTokenKey(c,ge.ID_TOKEN);return}else r.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),r.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+a);break;case ge.ACCESS_TOKEN:case ge.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Ra.isAccessTokenEntity(u)){r.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),r.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+a+" found, saving key to token key map");var d=Lr.toObject(new Ra,u),c=r.updateCredentialCacheKey(a,d);r.addTokenKey(c,ge.ACCESS_TOKEN);return}else r.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),r.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+a);break;case ge.REFRESH_TOKEN:if(Hs.isRefreshTokenEntity(u)){r.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),r.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+a+" found, saving key to token key map");var f=Lr.toObject(new Hs,u),c=r.updateCredentialCacheKey(a,f);r.addTokenKey(c,ge.REFRESH_TOKEN);return}else r.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),r.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+a);break}}}if(r.isAccountKey(a)){var s=r.getItem(a);if(s){var h=r.validateAndParseJson(s);h&&tr.isAccountEntity(h)&&(r.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),r.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+a+" found, saving key to account key map"),r.addAccountKeyToMap(a))}}})},t.prototype.validateAndParseJson=function(r){try{var n=JSON.parse(r);return n&&typeof n=="object"?n:null}catch{return null}},t.prototype.getItem=function(r){return this.browserStorage.getItem(r)},t.prototype.setItem=function(r,n){this.browserStorage.setItem(r,n)},t.prototype.getAccount=function(r){this.logger.trace("BrowserCacheManager.getAccount called");var n=this.getItem(r);if(!n)return this.removeAccountKeyFromMap(r),null;var o=this.validateAndParseJson(n);return!o||!tr.isAccountEntity(o)?(this.removeAccountKeyFromMap(r),null):Lr.toObject(new tr,o)},t.prototype.setAccount=function(r){this.logger.trace("BrowserCacheManager.setAccount called");var n=r.generateAccountKey();this.setItem(n,JSON.stringify(r)),this.addAccountKeyToMap(n)},t.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var r=this.getItem(po.ACCOUNT_KEYS);return r?JSON.parse(r):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},t.prototype.addAccountKeyToMap=function(r){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+r);var n=this.getAccountKeys();n.indexOf(r)===-1?(n.push(r),this.setItem(po.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},t.prototype.removeAccountKeyFromMap=function(r){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+r);var n=this.getAccountKeys(),o=n.indexOf(r);o>-1?(n.splice(o,1),this.setItem(po.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},t.prototype.removeAccount=function(r){return U(this,void 0,void 0,function(){return H(this,function(n){return e.prototype.removeAccount.call(this,r),this.removeAccountKeyFromMap(r),[2]})})},t.prototype.removeIdToken=function(r){e.prototype.removeIdToken.call(this,r),this.removeTokenKey(r,ge.ID_TOKEN)},t.prototype.removeAccessToken=function(r){return U(this,void 0,void 0,function(){return H(this,function(n){return e.prototype.removeAccessToken.call(this,r),this.removeTokenKey(r,ge.ACCESS_TOKEN),[2]})})},t.prototype.removeRefreshToken=function(r){e.prototype.removeRefreshToken.call(this,r),this.removeTokenKey(r,ge.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var r=this.getItem(po.TOKEN_KEYS+"."+this.clientId);if(r){var n=this.validateAndParseJson(r);if(n&&n.hasOwnProperty("idToken")&&n.hasOwnProperty("accessToken")&&n.hasOwnProperty("refreshToken"))return n;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},t.prototype.addTokenKey=function(r,n){this.logger.trace("BrowserCacheManager addTokenKey called");var o=this.getTokenKeys();switch(n){case ge.ID_TOKEN:o.idToken.indexOf(r)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(r));break;case ge.ACCESS_TOKEN:o.accessToken.indexOf(r)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(r));break;case ge.REFRESH_TOKEN:o.refreshToken.indexOf(r)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(r));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+n),ne.createUnexpectedCredentialTypeError()}this.setItem(po.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},t.prototype.removeTokenKey=function(r,n){this.logger.trace("BrowserCacheManager removeTokenKey called");var o=this.getTokenKeys();switch(n){case ge.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+r+" from map");var i=o.idToken.indexOf(r);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case ge.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+r+" from map");var a=o.accessToken.indexOf(r);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ge.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+r+" from map");var s=o.refreshToken.indexOf(r);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+n),ne.createUnexpectedCredentialTypeError()}this.setItem(po.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},t.prototype.getIdTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(r,ge.ID_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Aa.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(r,ge.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Lr.toObject(new Aa,o))},t.prototype.setIdTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r)),this.addTokenKey(n,ge.ID_TOKEN)},t.prototype.getAccessTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(r,ge.ACCESS_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Ra.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(r,ge.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Lr.toObject(new Ra,o))},t.prototype.setAccessTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r)),this.addTokenKey(n,ge.ACCESS_TOKEN)},t.prototype.getRefreshTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(r,ge.REFRESH_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Hs.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(r,ge.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Lr.toObject(new Hs,o))},t.prototype.setRefreshTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r)),this.addTokenKey(n,ge.REFRESH_TOKEN)},t.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||!ag.isAppMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Lr.toObject(new ag,o))},t.prototype.setAppMetadata=function(r){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=r.generateAppMetadataKey();this.setItem(n,JSON.stringify(r))},t.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||!xf.isServerTelemetryEntity(r,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Lr.toObject(new xf,o))},t.prototype.setServerTelemetry=function(r,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(r,JSON.stringify(n))},t.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&&sg.isAuthorityMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Lr.toObject(new sg,o)):null},t.prototype.getAuthorityMetadataKeys=function(){var r=this,n=this.internalStorage.getKeys();return n.filter(function(o){return r.isAuthorityMetadata(o)})},t.prototype.setWrapperMetadata=function(r,n){this.internalStorage.setItem(Ks.WRAPPER_SKU,r),this.internalStorage.setItem(Ks.WRAPPER_VER,n)},t.prototype.getWrapperMetadata=function(){var r=this.internalStorage.getItem(Ks.WRAPPER_SKU)||R.EMPTY_STRING,n=this.internalStorage.getItem(Ks.WRAPPER_VER)||R.EMPTY_STRING;return[r,n]},t.prototype.setAuthorityMetadata=function(r,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(r,JSON.stringify(n))},t.prototype.getActiveAccount=function(){var r=this.generateCacheKey(Ut.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(r);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(Ut.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(r){var n=this.generateCacheKey(Ut.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(Ut.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)},t.prototype.getAccountInfoByFilter=function(r){var n=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+n.length+" accounts found"),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)})},t.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 ne.createMultipleMatchingAccountsInCacheError();return null},t.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||!eC.isThrottlingEntity(r,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Lr.toObject(new eC,o))},t.prototype.setThrottlingCache=function(r,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(r,JSON.stringify(n))},t.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===xt.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},t.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))},t.prototype.removeItem=function(r){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))},t.prototype.containsKey=function(r){return this.browserStorage.containsKey(r)||this.temporaryCacheStorage.containsKey(r)},t.prototype.getKeys=function(){return jv(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return U(this,void 0,void 0,function(){var r=this;return H(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(R.CACHE_PREFIX)!==-1||o.indexOf(r.clientId)!==-1)&&r.removeItem(o)}),this.internalStorage.clear(),[2]}})})},t.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},t.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 R.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var r=this,n=R.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)}})},t.prototype.clearItemCookie=function(r){this.setItemCookie(r,R.EMPTY_STRING,-1)},t.prototype.getCookieExpirationTime=function(r){var n=new Date,o=new Date(n.getTime()+r*this.COOKIE_LIFE_MULTIPLIER);return o.toUTCString()},t.prototype.getCache=function(){return this.browserStorage},t.prototype.setCache=function(){},t.prototype.generateCacheKey=function(r){var n=this.validateAndParseJson(r);return n?JSON.stringify(r):re.startsWith(r,R.CACHE_PREFIX)||re.startsWith(r,Ut.ADAL_ID_TOKEN)?r:R.CACHE_PREFIX+"."+this.clientId+"."+r},t.prototype.generateAuthorityKey=function(r){var n=ti.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(Ue.AUTHORITY+"."+n)},t.prototype.generateNonceKey=function(r){var n=ti.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(Ue.NONCE_IDTOKEN+"."+n)},t.prototype.generateStateKey=function(r){var n=ti.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(Ue.REQUEST_STATE+"."+n)},t.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)},t.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 u=this.generateNonceKey(r);this.setTemporaryCache(u,n,!1);var l=this.generateAuthorityKey(r);if(this.setTemporaryCache(l,o,!1),a){var c={credential:a.homeAccountId,type:cn.HOME_ACCOUNT_ID};this.setTemporaryCache(Ue.CCS_CREDENTIAL,JSON.stringify(c),!0)}else if(!re.isEmpty(i)){var c={credential:i,type:cn.UPN};this.setTemporaryCache(Ue.CCS_CREDENTIAL,JSON.stringify(c),!0)}},t.prototype.resetRequestCache=function(r){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),re.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(Ue.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Ue.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Ue.URL_HASH)),this.removeItem(this.generateCacheKey(Ue.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Ue.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Ue.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},t.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||R.EMPTY_STRING)}this.clearMsalCookies()},t.prototype.cleanRequestByInteractionType=function(r){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(o){if(o.indexOf(Ue.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(i){var a=lb.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)},t.prototype.cacheCodeRequest=function(r,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var o=n.base64Encode(JSON.stringify(r));this.setTemporaryCache(Ue.REQUEST_PARAMS,o,!0)},t.prototype.getCachedRequest=function(r,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(Ue.REQUEST_PARAMS,!0);if(!o)throw ee.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw ee.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(Ue.REQUEST_PARAMS)),re.isEmpty(i.authority)){var a=this.generateAuthorityKey(r),s=this.getTemporaryCache(a);if(!s)throw ee.createNoCachedAuthorityError();i.authority=s}return i},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var r=this.getTemporaryCache(Ue.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)},t.prototype.isInteractionInProgress=function(r){var n=this.getInteractionInProgress();return r?n===this.clientId:!!n},t.prototype.getInteractionInProgress=function(){var r=R.CACHE_PREFIX+"."+Ue.INTERACTION_STATUS_KEY;return this.getTemporaryCache(r,!1)},t.prototype.setInteractionInProgress=function(r){var n=R.CACHE_PREFIX+"."+Ue.INTERACTION_STATUS_KEY;if(r){if(this.getInteractionInProgress())throw ee.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!r&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},t.prototype.getLegacyLoginHint=function(){var r=this.getTemporaryCache(Ut.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem(Ut.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(Ut.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(Ut.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||r;if(o){var i=new Po(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},t.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},t.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(Ue.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(r){this.setTemporaryCache(Ue.REDIRECT_CONTEXT,r,!0)},t}(Lr),JO=function(e,t){var r={cacheLocation:xt.MemoryStorage,temporaryCacheLocation:xt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1};return new Of(e,r,Af,t)};/*! @azure/msal-browser v2.36.0 2023-04-18 */var Fd="@azure/msal-browser",Da="2.36.0";/*! @azure/msal-browser v2.36.0 2023-04-18 */var ZO=function(){function e(){}return e.prototype.sendGetRequestAsync=function(t,r){return U(this,void 0,void 0,function(){var n,o,i;return H(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(t,{method:_o.GET,headers:this.getFetchHeaders(r)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?ee.createGetRequestFailedError(o,t):ee.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(),ee.createFailedToParseNetworkResponseError(t);case 6:return[2]}})})},e.prototype.sendPostRequestAsync=function(t,r){return U(this,void 0,void 0,function(){var n,o,i,a;return H(this,function(s){switch(s.label){case 0:n=r&&r.body||R.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(t,{method:_o.POST,headers:this.getFetchHeaders(r),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?ee.createPostRequestFailedError(i,t):ee.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(),ee.createFailedToParseNetworkResponseError(t);case 7:return[2]}})})},e.prototype.getFetchHeaders=function(t){var r=new Headers;if(!(t&&t.headers))return r;var n=t.headers;return Object.keys(n).forEach(function(o){r.append(o,n[o])}),r},e.prototype.getHeaderDict=function(t){var r={};return t.forEach(function(n,o){r[o]=n}),r},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var eL=function(){function e(){}return e.prototype.sendGetRequestAsync=function(t,r){return U(this,void 0,void 0,function(){return H(this,function(n){return[2,this.sendRequestAsync(t,_o.GET,r)]})})},e.prototype.sendPostRequestAsync=function(t,r){return U(this,void 0,void 0,function(){return H(this,function(n){return[2,this.sendRequestAsync(t,_o.POST,r)]})})},e.prototype.sendRequestAsync=function(t,r,n){var o=this;return new Promise(function(i,a){var s=new XMLHttpRequest;if(s.open(r,t,!0),o.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(r===_o.POST?a(ee.createPostRequestFailedError("Failed with status "+s.status,t)):a(ee.createGetRequestFailedError("Failed with status "+s.status,t)));try{var u=JSON.parse(s.responseText),l={headers:o.getHeaderDict(s),body:u,status:s.status};i(l)}catch{a(ee.createFailedToParseNetworkResponseError(t))}},s.onerror=function(){window.navigator.onLine?r===_o.POST?a(ee.createPostRequestFailedError("Failed with status "+s.status,t)):a(ee.createGetRequestFailedError("Failed with status "+s.status,t)):a(ee.createNoNetworkConnectivityError())},r===_o.POST&&n&&n.body)s.send(n.body);else if(r===_o.GET)s.send();else throw ee.createHttpMethodNotImplementedError(r)})},e.prototype.setXhrHeaders=function(t,r){if(r&&r.headers){var n=r.headers;Object.keys(n).forEach(function(o){t.setRequestHeader(o,n[o])})}},e.prototype.getHeaderDict=function(t){var r=t.getAllResponseHeaders(),n=r.trim().split(/[\r\n]+/),o={};return n.forEach(function(i){var a=i.split(": "),s=a.shift(),u=a.join(": ");s&&u&&(o[s]=u)}),o},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var wt=function(){function e(){}return e.clearHash=function(t){t.location.hash=R.EMPTY_STRING,typeof t.history.replaceState=="function"&&t.history.replaceState(null,R.EMPTY_STRING,""+t.location.origin+t.location.pathname+t.location.search)},e.replaceHash=function(t){var r=t.split("#");r.shift(),window.location.hash=r.length>0?r.join("#"):R.EMPTY_STRING},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(An.POPUP_NAME_PREFIX+".")===0},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var t=new De(window.location.href),r=t.getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new ZO:new eL},e.blockReloadInHiddenIframes=function(){var t=De.hashContainsKnownProperties(window.location.hash);if(t&&e.isInIframe())throw ee.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,r){var n=e.isInIframe();if(t===ie.Redirect&&n&&!r)throw ee.createRedirectInIframeError(n)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw ee.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(t){if(!t)throw ee.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(t,r){if(t&&!r)throw ee.createNativeBrokerCalledBeforeInitialize()},e.detectIEOrEdge=function(){var t=window.navigator.userAgent,r=t.indexOf("MSIE "),n=t.indexOf("Trident/"),o=t.indexOf("Edge/"),i=r>0||n>0,a=o>0;return i||a},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var cb=function(){function e(t,r,n,o,i,a,s,u,l){this.config=t,this.browserStorage=r,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=u,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=o.clone(An.MSAL_SKU,Da,this.correlationId),this.performanceClient=s}return e.prototype.clearCacheOnLogout=function(t){return U(this,void 0,void 0,function(){return H(this,function(r){switch(r.label){case 0:if(!t)return[3,5];tr.accountInfoIsEqual(t,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(tr.generateAccountCacheKey(t))];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]}})})},e.prototype.initializeBaseRequest=function(t){return U(this,void 0,void 0,function(){var r,n,o,i;return H(this,function(a){switch(a.label){case 0:if(this.performanceClient.addQueueMeasurement(D.InitializeBaseRequest,t.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),r=t.authority||this.config.auth.authority,n=jv(t&&t.scopes||[]),o=ce(ce({},t),{correlationId:this.correlationId,authority:r,scopes:n}),!o.authenticationScheme)o.authenticationScheme=Ge.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===Ge.SSH){if(!t.sshJwk)throw Ye.createMissingSshJwkError();if(!t.sshKid)throw Ye.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return t.claims&&!re.isEmpty(t.claims)?(i=o,[4,this.browserCrypto.hashString(t.claims)]):[3,2];case 1:i.requestedClaimsHash=a.sent(),a.label=2;case 2:return[2,o]}})})},e.prototype.getRedirectUri=function(t){this.logger.verbose("getRedirectUri called");var r=t||this.config.auth.redirectUri||wt.getCurrentUri();return De.getAbsoluteUrl(r,wt.getCurrentUri())},e.prototype.initializeServerTelemetryManager=function(t,r){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:t,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new $O(n,this.browserStorage)},e.prototype.getDiscoveredAuthority=function(t){return U(this,void 0,void 0,function(){var r;return H(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},t?(this.logger.verbose("Creating discovered authority with request authority"),[4,Nf.createDiscoveredInstance(t,this.config.system.networkClient,this.browserStorage,r,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Nf.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r,this.logger)];case 3:return[2,n.sent()]}})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var ts=function(e){dr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.initializeAuthorizationCodeRequest=function(r){return U(this,void 0,void 0,function(){var n,o;return H(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(D.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),this.logger.verbose("initializeAuthorizationRequest called",r.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=i.sent(),o=ce(ce({},r),{redirectUri:r.redirectUri,code:R.EMPTY_STRING,codeVerifier:n.verifier}),r.codeChallenge=n.challenge,r.codeChallengeMethod=R.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},t.prototype.initializeLogoutRequest=function(r){this.logger.verbose("initializeLogoutRequest called",r==null?void 0:r.correlationId);var n=ce({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=De.getAbsoluteUrl(r.postLogoutRedirectUri,wt.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=De.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,wt.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=De.getAbsoluteUrl(wt.getCurrentUri(),wt.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},t.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},t.prototype.createAuthCodeClient=function(r,n,o){return U(this,void 0,void 0,function(){var i;return H(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(D.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(D.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new ib(i,this.performanceClient)]}})})},t.prototype.getClientConfiguration=function(r,n,o){return U(this,void 0,void 0,function(){var i,a;return H(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(D.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(D.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(n,o)];case 1:return i=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:r,libraryInfo:{sku:An.MSAL_SKU,version:Da,cpu:R.EMPTY_STRING,os:R.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},t.prototype.validateAndExtractStateFromHash=function(r,n,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!r.state)throw ee.createHashDoesNotContainStateError();var i=lb.extractBrowserRequestState(this.browserCrypto,r.state);if(!i)throw ee.createUnableToParseStateError();if(i.interactionType!==n)throw ee.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),r.state},t.prototype.getDiscoveredAuthority=function(r,n){var o;return U(this,void 0,void 0,function(){var i,a,s,u;return H(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(D.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(D.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={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},s=r||this.config.auth.authority,u=ac.generateAuthority(s,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(D.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,Nf.createDiscoveredInstance(u,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(c){return i.endMeasurement({success:!0}),c}).catch(function(c){throw i.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c})];case 1:return[2,l.sent()]}})})},t.prototype.initializeAuthorizationRequest=function(r,n){return U(this,void 0,void 0,function(){var o,i,a,s,u,l,c;return H(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(D.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(r.redirectUri),i={interactionType:n},a=ti.setRequestState(this.browserCrypto,r&&r.state||R.EMPTY_STRING,i),this.performanceClient.setPreQueueTime(D.InitializeBaseRequest,this.correlationId),u=[{}],[4,this.initializeBaseRequest(r)];case 1:return s=ce.apply(void 0,[ce.apply(void 0,u.concat([d.sent()])),{redirectUri:o,state:a,nonce:r.nonce||this.browserCrypto.createNewGuid(),responseMode:bf.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),re.isEmpty(s.loginHint)&&!l&&(c=this.browserStorage.getLegacyLoginHint(),c&&(s.loginHint=c)),[2,s]}})})},t}(cb);/*! @azure/msal-browser v2.36.0 2023-04-18 */var Xv=function(){function e(t,r,n,o,i){this.authModule=t,this.browserStorage=r,this.authCodeRequest=n,this.logger=o,this.performanceClient=i}return e.prototype.handleCodeResponseFromHash=function(t,r,n,o){return U(this,void 0,void 0,function(){var i,a,s;return H(this,function(u){if(this.performanceClient.addQueueMeasurement(D.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),re.isEmpty(t))throw ee.createEmptyHashError(t);if(i=this.browserStorage.generateStateKey(r),a=this.browserStorage.getTemporaryCache(i),!a)throw ne.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(t,a)}catch(l){throw l instanceof Zi&&l.subError===q.userCancelledError.code?ee.createUserCancelledError():l}return this.performanceClient.setPreQueueTime(D.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,r,n,o)]})})},e.prototype.handleCodeResponseFromServer=function(t,r,n,o,i){return i===void 0&&(i=!0),U(this,void 0,void 0,function(){var a,s,u,l,c,d;return H(this,function(f){switch(f.label){case 0:if(this.performanceClient.addQueueMeasurement(D.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw ne.createStateNotFoundError("Cached State");return u=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(u),this.authCodeRequest.code=t.code,t.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(D.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(t.cloud_instance_host_name,n,o)]):[3,2];case 1:f.sent(),f.label=2;case 2:return i&&(t.nonce=l||void 0),t.state=s,t.client_info?this.authCodeRequest.clientInfo=t.client_info:(c=this.checkCcsCredentials(),c&&(this.authCodeRequest.ccsCredential=c)),this.performanceClient.setPreQueueTime(D.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,t)];case 3:return d=f.sent(),this.browserStorage.cleanRequestByState(r),[2,d]}})})},e.prototype.updateTokenEndpointAuthority=function(t,r,n){return U(this,void 0,void 0,function(){var o,i;return H(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(D.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),o="https://"+t+"/"+r.tenant+"/",[4,Nf.createDiscoveredInstance(o,n,this.browserStorage,r.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}})})},e.prototype.checkCcsCredentials=function(){var t=this.browserStorage.getTemporaryCache(Ue.CCS_CREDENTIAL,!0);if(t)try{return JSON.parse(t)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+t)}return null},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var cg=function(e){dr(t,e);function t(r,n,o,i,a,s){var u=e.call(this,r,n,o,i,s)||this;return u.browserCrypto=a,u}return t.prototype.initiateAuthRequest=function(r,n){return U(this,void 0,void 0,function(){var o,i;return H(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),re.isEmpty(r)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Ue.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Ue.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+r),o={apiId:nt.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"),ee.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(r,n,o,i){return U(this,void 0,void 0,function(){var a,s,u,l,c,d,f;return H(this,function(h){switch(h.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),re.isEmpty(r))throw ee.createEmptyHashError(r);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw ne.createStateNotFoundError("Cached State");try{u=this.authModule.handleFragmentResponse(r,s)}catch(m){throw m instanceof Zi&&m.subError===q.userCancelledError.code?ee.createUserCancelledError():m}return l=this.browserStorage.generateNonceKey(s),c=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=u.code,u.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(u.cloud_instance_host_name,o,i)]:[3,2];case 1:h.sent(),h.label=2;case 2:return u.nonce=c||void 0,u.state=s,u.client_info?this.authCodeRequest.clientInfo=u.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,u)];case 3:return f=h.sent(),this.browserStorage.cleanRequestByState(n),[2,f]}})})},t}(Xv);/*! @azure/msal-browser v2.36.0 2023-04-18 */var he;(function(e){e.INITIALIZE_START="msal:initializeStart",e.INITIALIZE_END="msal:initializeEnd",e.ACCOUNT_ADDED="msal:accountAdded",e.ACCOUNT_REMOVED="msal:accountRemoved",e.LOGIN_START="msal:loginStart",e.LOGIN_SUCCESS="msal:loginSuccess",e.LOGIN_FAILURE="msal:loginFailure",e.ACQUIRE_TOKEN_START="msal:acquireTokenStart",e.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",e.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",e.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",e.SSO_SILENT_START="msal:ssoSilentStart",e.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",e.SSO_SILENT_FAILURE="msal:ssoSilentFailure",e.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",e.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",e.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",e.HANDLE_REDIRECT_START="msal:handleRedirectStart",e.HANDLE_REDIRECT_END="msal:handleRedirectEnd",e.POPUP_OPENED="msal:popupOpened",e.LOGOUT_START="msal:logoutStart",e.LOGOUT_SUCCESS="msal:logoutSuccess",e.LOGOUT_FAILURE="msal:logoutFailure",e.LOGOUT_END="msal:logoutEnd"})(he||(he={}));/*! @azure/msal-browser v2.36.0 2023-04-18 */var ki;(function(e){e.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",e.USER_CANCEL="USER_CANCEL",e.NO_NETWORK="NO_NETWORK",e.TRANSIENT_ERROR="TRANSIENT_ERROR",e.PERSISTENT_ERROR="PERSISTENT_ERROR",e.DISABLED="DISABLED",e.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(ki||(ki={}));var Ku={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"}},Xn=function(e){dr(t,e);function t(r,n,o){var i=e.call(this,r,n)||this;return Object.setPrototypeOf(i,t.prototype),i.name="NativeAuthError",i.ext=o,i}return t.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===ki.PERSISTENT_ERROR||this.ext.status===ki.DISABLED))return!0;switch(this.errorCode){case Ku.extensionError.code:return!0;default:return!1}},t.createError=function(r,n,o){if(o&&o.status)switch(o.status){case ki.ACCOUNT_UNAVAILABLE:return Fn.createNativeAccountUnavailableError();case ki.USER_INTERACTION_REQUIRED:return new Fn(r,n);case ki.USER_CANCEL:return ee.createUserCancelledError();case ki.NO_NETWORK:return ee.createNoNetworkConnectivityError()}return new t(r,n,o)},t.createUserSwitchError=function(){return new t(Ku.userSwitch.code,Ku.userSwitch.desc)},t.createTokensNotFoundInCacheError=function(){return new t(Ku.tokensNotFoundInCache.code,Ku.tokensNotFoundInCache.desc)},t}(fe);/*! @azure/msal-browser v2.36.0 2023-04-18 */var Jv=function(e){dr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.acquireToken=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s;return H(this,function(u){switch(u.label){case 0:return n=this.performanceClient.startMeasurement(D.SilentCacheClientAcquireToken,r.correlationId),o=this.initializeServerTelemetryManager(nt.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,r.authority,r.azureCloudOptions)];case 1:i=u.sent(),this.logger.verbose("Silent auth client created"),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,i.acquireCachedToken(r)];case 3:return a=u.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=u.sent(),s instanceof ee&&s.errorCode===q.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 fe&&s.errorCode||void 0,subErrorCode:s instanceof fe&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ee.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(r,n,o){return U(this,void 0,void 0,function(){var i;return H(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(D.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new HO(i,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(r,n){return U(this,void 0,void 0,function(){var o;return H(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(D.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(D.InitializeBaseRequest,this.correlationId),o=[ce({},r)],[4,this.initializeBaseRequest(r)];case 1:return[2,ce.apply(void 0,[ce.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:r.forceRefresh||!1}])]}})})},t}(ts);/*! @azure/msal-browser v2.36.0 2023-04-18 */var Oa=function(e){dr(t,e);function t(r,n,o,i,a,s,u,l,c,d,f,h){var m=e.call(this,r,n,o,i,a,s,l,c,h)||this;return m.apiId=u,m.accountId=d,m.nativeMessageHandler=c,m.nativeStorageManager=f,m.silentCacheClient=new Jv(r,m.nativeStorageManager,o,i,a,s,l,c,h),m}return t.prototype.acquireToken=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s,u,l;return H(this,function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(D.NativeInteractionClientAcquireToken,r.correlationId),o=On.nowSeconds(),[4,this.initializeNativeRequest(r)];case 1:i=c.sent(),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return a=c.sent(),n.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return c.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:Jo.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return u=c.sent(),l=this.validateNativeResponse(u),[2,this.handleNativeResponse(l,i,o).then(function(d){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw n.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},t.prototype.createSilentCacheRequest=function(r,n){return{authority:r.authority,correlationId:this.correlationId,scopes:yr.fromString(r.scope).asArray(),account:n,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(r,n){return U(this,void 0,void 0,function(){var o,i,a,s;return H(this,function(u){switch(u.label){case 0:if(!r)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),ne.createNoAccountFoundError();if(o=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:r}),!o)throw ne.createNoAccountFoundError();u.label=1;case 1:return u.trys.push([1,3,,4]),i=this.createSilentCacheRequest(n,o),[4,this.silentCacheClient.acquireToken(i)];case 2:return a=u.sent(),[2,a];case 3:throw s=u.sent(),s;case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s,u;return H(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:Jo.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 Xn&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(Ue.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:nt.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},u=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(r.redirectUri),[4,this.navigationClient.navigateExternal(u,s)];case 6:return l.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return U(this,void 0,void 0,function(){var r,n,o,i,a,s,u,l;return H(this,function(c){switch(c.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(r=this.browserStorage.getCachedNativeRequest(),!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];n=r.prompt,o=j_(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(Ue.NATIVE_REQUEST)),i={method:Jo.GetToken,request:o},a=On.nowSeconds(),c.label=1;case 1:return c.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return s=c.sent(),this.validateNativeResponse(s),u=this.handleNativeResponse(s,o,a),this.browserStorage.setInteractionInProgress(!1),[2,u];case 3:throw l=c.sent(),this.browserStorage.setInteractionInProgress(!1),l;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(r,n,o){return U(this,void 0,void 0,function(){var i,a,s,u,l,c;return H(this,function(d){switch(d.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),r.account.id!==n.accountId)throw Xn.createUserSwitchError();return[4,this.getDiscoveredAuthority(n.authority)];case 1:return i=d.sent(),a=i.getPreferredCache(),s=this.createIdTokenObj(r),u=this.createHomeAccountIdentifier(r,s),l=this.createAccountEntity(r,u,s,a),[4,this.generateAuthenticationResult(r,n,s,l,i.canonicalAuthority,o)];case 2:return c=d.sent(),this.cacheAccount(l),this.cacheNativeTokens(r,n,u,s,c.accessToken,c.tenantId,o),[2,c]}})})},t.prototype.createIdTokenObj=function(r){return new Po(r.id_token||R.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(r,n){var o=tr.generateHomeAccountId(r.client_info||R.EMPTY_STRING,Ur.Default,this.logger,this.browserCrypto,n);return o},t.prototype.createAccountEntity=function(r,n,o,i){return tr.createAccount(r.client_info,n,o,void 0,void 0,void 0,i,r.account.id)},t.prototype.generateScopes=function(r,n){return r.scope?yr.fromString(r.scope):yr.fromString(n.scope)},t.prototype.generatePopAccessToken=function(r,n){return U(this,void 0,void 0,function(){var o,i;return H(this,function(a){switch(a.label){case 0:if(n.tokenType!==Ge.POP)return[3,2];if(r.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,r.shr];if(o=new Ga(this.browserCrypto),i={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw ne.createKeyIdMissingError();return[4,o.signPopToken(r.access_token,n.keyId,i)];case 1:return[2,a.sent()];case 2:return[2,r.access_token]}})})},t.prototype.generateAuthenticationResult=function(r,n,o,i,a,s){return U(this,void 0,void 0,function(){var u,l,c,d,f,h,m,y;return H(this,function(E){switch(E.label){case 0:return u=this.addTelemetryFromNativeResponse(r),l=r.scope?yr.fromString(r.scope):yr.fromString(n.scope),c=r.account.properties||{},d=c.UID||o.claims.oid||o.claims.sub||R.EMPTY_STRING,f=c.TenantId||o.claims.tid||R.EMPTY_STRING,[4,this.generatePopAccessToken(r,n)];case 1:return h=E.sent(),m=n.tokenType===Ge.POP?Ge.POP:Ge.BEARER,y={authority:a,uniqueId:d,tenantId:f,scopes:l.asArray(),account:i.getAccountInfo(),idToken:r.id_token,idTokenClaims:o.claims,accessToken:h,fromCache:u?this.isResponseFromCache(u):!1,expiresOn:new Date(Number(s+r.expires_in)*1e3),tokenType:m,correlationId:this.correlationId,state:r.state,fromNativeBroker:!0},[2,y]}})})},t.prototype.cacheAccount=function(r){var n=this;this.browserStorage.setAccount(r),this.browserStorage.removeAccountContext(r).catch(function(o){n.logger.error("Error occurred while removing account context from browser storage. "+o)})},t.prototype.cacheNativeTokens=function(r,n,o,i,a,s,u){var l=Aa.createIdTokenEntity(o,n.authority,r.id_token||R.EMPTY_STRING,n.clientId,i.claims.tid||R.EMPTY_STRING);this.nativeStorageManager.setIdTokenCredential(l);var c=n.tokenType===Ge.POP?R.SHR_NONCE_VALIDITY:(typeof r.expires_in=="string"?parseInt(r.expires_in,10):r.expires_in)||0,d=u+c,f=this.generateScopes(r,n),h=Ra.createAccessTokenEntity(o,n.authority,a,n.clientId,s,f.printScopes(),d,0,this.browserCrypto);this.nativeStorageManager.setAccessTokenCredential(h)},t.prototype.addTelemetryFromNativeResponse=function(r){var n=this.getMATSFromResponse(r);return n?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null},t.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 Xn.createUnexpectedError("Response missing expected properties.")},t.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},t.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},t.prototype.initializeNativeRequest=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s,u,l,c,d,f,h=this;return H(this,function(m){switch(m.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=r.authority||this.config.auth.authority,o=new De(n),o.validateAsUri(),i=r.scopes,a=j_(r,["scopes"]),s=new yr(i||[]),s.appendScopes(Tu),u=function(){switch(h.apiId){case nt.ssoSilent:case nt.acquireTokenSilent_silentFlow:return h.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Er.NONE}if(!r.prompt){h.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(r.prompt){case Er.NONE:case Er.CONSENT:case Er.LOGIN:return h.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),r.prompt;default:throw h.logger.trace("initializeNativeRequest: prompt = "+r.prompt+" is not compatible with native flow"),ee.createNativePromptParameterNotSupportedError()}},l=ce(ce({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(r.redirectUri),prompt:u(),correlationId:this.correlationId,tokenType:r.authenticationScheme,windowTitleSubstring:document.title,extraParameters:ce(ce(ce({},r.extraQueryParameters),r.tokenQueryParameters),{telemetry:rl.MATS_TELEMETRY}),extendedExpiryToken:!1}),r.authenticationScheme!==Ge.POP?[3,2]:(c={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},d=new Ga(this.browserCrypto),[4,d.generateCnf(c)]);case 1:f=m.sent(),l.reqCnf=f.reqCnfHash,l.keyId=f.kid,m.label=2;case 2:return[2,l]}})})},t}(cb);/*! @azure/msal-browser v2.36.0 2023-04-18 */var Wi=function(){function e(t,r,n,o){this.logger=t,this.handshakeTimeoutMs=r,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(D.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(t){return U(this,void 0,void 0,function(){var r,n=this;return H(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),r={channel:rl.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:t},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})})]})})},e.createProvider=function(t,r,n){return U(this,void 0,void 0,function(){var o,i;return H(this,function(a){switch(a.label){case 0:t.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),o=new e(t,r,n,rl.PREFERRED_EXTENSION_ID),[4,o.sendHandshakeRequest()];case 2:return a.sent(),[2,o];case 3:return a.sent(),i=new e(t,r,n),[4,i.sendHandshakeRequest()];case 4:return a.sent(),[2,i];case 5:return[2]}})})},e.prototype.sendHandshakeRequest=function(){return U(this,void 0,void 0,function(){var t,r=this;return H(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),t={channel:rl.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Jo.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(o){r.onChannelMessage(o)},window.postMessage(t,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,i){r.handshakeResolvers.set(t.responseId,{resolve:o,reject:i}),r.timeoutId=window.setTimeout(function(){window.removeEventListener("message",r.windowListener,!1),r.messageChannel.port1.close(),r.messageChannel.port2.close(),r.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),i(ee.createNativeHandshakeTimeoutError()),r.handshakeResolvers.delete(t.responseId)},r.handshakeTimeoutMs)})]})})},e.prototype.onWindowMessage=function(t){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),t.source===window){var r=t.data;if(!(!r.channel||r.channel!==rl.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===Jo.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&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(ee.createNativeExtensionNotInstalledError()))}}},e.prototype.onChannelMessage=function(t){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var r=t.data,n=this.resolvers.get(r.responseId),o=this.handshakeResolvers.get(r.responseId);try{var i=r.body.method;if(i===Jo.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(Xn.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(Xn.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw fe.createUnexpectedError("Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===Jo.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),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),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 "+t),n?n.reject(s):o&&o.reject(s)}},e.prototype.getExtensionId=function(){return this.extensionId},e.prototype.getExtensionVersion=function(){return this.extensionVersion},e.isNativeAvailable=function(t,r,n,o){if(r.trace("isNativeAvailable called"),!t.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 Ge.BEARER:case Ge.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},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var db=function(e){dr(t,e);function t(r,n,o,i,a,s,u,l,c,d){var f=e.call(this,r,n,o,i,a,s,u,c,d)||this;return f.nativeStorage=l,f}return t.prototype.acquireToken=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s,u,l,c,d,f=this;return H(this,function(h){switch(h.label){case 0:return this.performanceClient.setPreQueueTime(D.StandardInteractionClientInitializeAuthorizationRequest,r.correlationId),[4,this.initializeAuthorizationRequest(r,ie.Redirect)];case 1:n=h.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||R.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(nt.acquireTokenRedirect),i=function(m){m.persisted&&(f.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),f.browserStorage.cleanRequestByState(n.state))},h.label=2;case 2:return h.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(D.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=h.sent(),this.performanceClient.setPreQueueTime(D.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=h.sent(),this.logger.verbose("Auth code client created"),u=new cg(s,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,s.getAuthCodeUrl(ce(ce({},n),{nativeBroker:Wi.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 5:return l=h.sent(),c=this.getRedirectStartPage(r.redirectStartPage),this.logger.verbosePii("Redirect start page: "+c),window.addEventListener("pageshow",i),[4,u.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:c,onRedirectNavigate:r.onRedirectNavigate})];case 6:return[2,h.sent()];case 7:throw d=h.sent(),d instanceof fe&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(n.state),d;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s,u,l,c,d,f,h,m;return H(this,function(y){switch(y.label){case 0:n=this.initializeServerTelemetryManager(nt.handleRedirectPromise),y.label=1;case 1:if(y.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(ie.Redirect),[2,null];i=void 0;try{a=De.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,ie.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(ie.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(Ue.ORIGIN_URI,!0)||R.EMPTY_STRING,u=De.removeHashFromUrl(s),l=De.removeHashFromUrl(window.location.href),u===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 c=y.sent(),s.indexOf("#")>-1&&wt.replaceHash(s),[2,c];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!wt.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(Ue.URL_HASH,o,!0),d={apiId:nt.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},f=!0,!s||s==="null"?(h=wt.getHomepage(),this.browserStorage.setTemporaryCache(Ue.ORIGIN_URI,h,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(h,d)]):[3,6]):[3,9];case 5:return f=y.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:f=y.sent(),y.label=8;case 8:if(!f)return[2,this.handleHash(o,i,n)];y.label=9;case 9:return[2,null];case 10:throw m=y.sent(),m instanceof fe&&m.setCorrelationId(this.correlationId),n.cacheFailedRequest(m),this.browserStorage.cleanRequestByInteractionType(ie.Redirect),m;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(r){this.logger.verbose("getRedirectResponseHash called");var n=De.hashContainsKnownProperties(r);if(n)return wt.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),r;var o=this.browserStorage.getTemporaryCache(Ue.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ue.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},t.prototype.handleHash=function(r,n,o){return U(this,void 0,void 0,function(){var i,a,s,u,l,c,d,f=this;return H(this,function(h){switch(h.label){case 0:if(i=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=De.getDeserializedHash(r),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ee.createNativeConnectionNotEstablishedError();return s=new Oa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,nt.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.browserStorage,i.correlationId),u=ti.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(ce(ce({},i),{state:u,prompt:void 0})).finally(function(){f.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw ee.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(D.StandardInteractionClientCreateAuthCodeClient,i.correlationId),[4,this.createAuthCodeClient(o,l)];case 1:return c=h.sent(),this.logger.verbose("Auth code client created"),Pf.removeThrottle(this.browserStorage,this.config.auth.clientId,i),d=new cg(c,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,d.handleCodeResponseFromHash(r,n,c.authority,this.networkClient)];case 2:return[2,h.sent()]}})})},t.prototype.logout=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s,u,l;return H(this,function(c){switch(c.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(r),o=this.initializeServerTelemetryManager(nt.logout),c.label=1;case 1:return c.trys.push([1,10,,11]),this.eventHandler.emitEvent(he.LOGOUT_START,ie.Redirect,r),[4,this.clearCacheOnLogout(n.account)];case 2:return c.sent(),i={apiId:nt.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(D.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(o,r&&r.authority)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(he.LOGOUT_SUCCESS,ie.Redirect,n),r&&typeof r.onRedirectNavigate=="function"?(u=r.onRedirectNavigate(s),u===!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 c.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),c.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 c.sent(),[2];case 9:return[3,11];case 10:throw l=c.sent(),l instanceof fe&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.eventHandler.emitEvent(he.LOGOUT_FAILURE,ie.Redirect,null,l),this.eventHandler.emitEvent(he.LOGOUT_END,ie.Redirect),l;case 11:return this.eventHandler.emitEvent(he.LOGOUT_END,ie.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(r){var n=r||window.location.href;return De.getAbsoluteUrl(n,wt.getCurrentUri())},t}(ts);/*! @azure/msal-browser v2.36.0 2023-04-18 */var fb=function(e){dr(t,e);function t(r,n,o,i,a,s,u,l,c,d){var f=e.call(this,r,n,o,i,a,s,u,c,d)||this;return f.unloadWindow=f.unloadWindow.bind(f),f.nativeStorage=l,f}return t.prototype.acquireToken=function(r){try{var n=this.generatePopupName(r.scopes||Tu,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)}},t.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 u=this.openSizedPopup("about:blank",o,s);return this.logoutPopupAsync(n,o,s,i,u,a)}catch(l){return Promise.reject(l)}},t.prototype.acquireTokenPopupAsync=function(r,n,o,i){return U(this,void 0,void 0,function(){var a,s,u,l,c,d,f,h,m,y,E,v,g,C,S,w,I,b=this;return H(this,function(k){switch(k.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(nt.acquireTokenPopup),this.performanceClient.setPreQueueTime(D.StandardInteractionClientInitializeAuthorizationRequest,r.correlationId),[4,this.initializeAuthorizationRequest(r,ie.Popup)];case 1:s=k.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||R.EMPTY_STRING,s.account||null),k.label=2;case 2:return k.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(D.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return u=k.sent(),this.performanceClient.setPreQueueTime(D.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=k.sent(),this.logger.verbose("Auth code client created"),c=Wi.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme),d=void 0,c&&(d=this.performanceClient.startMeasurement(D.FetchAccountIdWithNativeBroker,r.correlationId)),[4,l.getAuthCodeUrl(ce(ce({},s),{nativeBroker:c}))];case 5:return f=k.sent(),h=new Xv(l,this.browserStorage,u,this.logger,this.performanceClient),m={popup:i,popupName:n,popupWindowAttributes:o},y=this.initiateAuthRequest(f,m),this.eventHandler.emitEvent(he.POPUP_OPENED,ie.Popup,{popupWindow:y},null),[4,this.monitorPopupForHash(y)];case 6:if(E=k.sent(),v=De.getDeserializedHash(E),g=this.validateAndExtractStateFromHash(v,ie.Popup,s.correlationId),Pf.removeThrottle(this.browserStorage,this.config.auth.clientId,u),v.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw ee.createNativeConnectionNotEstablishedError();return C=new Oa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,nt.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,v.accountId,this.nativeStorage,s.correlationId),S=ti.parseRequestState(this.browserCrypto,g).userRequestState,[2,C.acquireToken(ce(ce({},s),{state:S,prompt:void 0})).finally(function(){b.browserStorage.cleanRequestByState(g)})]}return[4,h.handleCodeResponseFromHash(E,g,l.authority,this.networkClient)];case 7:return w=k.sent(),[2,w];case 8:throw I=k.sent(),i&&i.close(),I instanceof fe&&I.setCorrelationId(this.correlationId),a.cacheFailedRequest(I),this.browserStorage.cleanRequestByState(s.state),I;case 9:return[2]}})})},t.prototype.logoutPopupAsync=function(r,n,o,i,a,s){return U(this,void 0,void 0,function(){var u,l,c,d,f,h,m;return H(this,function(y){switch(y.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(he.LOGOUT_START,ie.Popup,r),u=this.initializeServerTelemetryManager(nt.logoutPopup),y.label=1;case 1:return y.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(r.account)];case 2:return y.sent(),this.performanceClient.setPreQueueTime(D.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(u,i)];case 3:return l=y.sent(),this.logger.verbose("Auth code client created"),c=l.getLogoutUri(r),this.eventHandler.emitEvent(he.LOGOUT_SUCCESS,ie.Popup,r),d=this.openPopup(c,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(he.POPUP_OPENED,ie.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return y.sent(),s?(f={apiId:nt.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},h=De.getAbsoluteUrl(s,wt.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+h),this.navigationClient.navigateInternal(h,f)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw m=y.sent(),a&&a.close(),m instanceof fe&&m.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(he.LOGOUT_FAILURE,ie.Popup,null,m),this.eventHandler.emitEvent(he.LOGOUT_END,ie.Popup),u.cacheFailedRequest(m),m;case 6:return this.eventHandler.emitEvent(he.LOGOUT_END,ie.Popup),[2]}})})},t.prototype.initiateAuthRequest=function(r,n){if(re.isEmpty(r))throw this.logger.error("Navigate url is empty"),ee.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+r),this.openPopup(r,n)},t.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 u=setInterval(function(){if(r.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(u),i(ee.createUserCancelledError());return}var l=R.EMPTY_STRING,c=R.EMPTY_STRING;try{l=r.location.href,c=r.location.hash}catch{}re.isEmpty(l)||l==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,c?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(u),n.cleanPopup(r),De.hashContainsKnownProperties(c)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),o(c)):(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: "+c),i(ee.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(u),i(ee.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},t.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=R.EMPTY_STRING;try{a=r.location.href}catch{}re.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)})},t.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 ee.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),ee.createPopupWindowError(i.toString())}},t.prototype.openSizedPopup=function(r,n,o){var i,a,s,u,l=window.screenLeft?window.screenLeft:window.screenX,c=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,h=(i=o.popupSize)===null||i===void 0?void 0:i.width,m=(a=o.popupSize)===null||a===void 0?void 0:a.height,y=(s=o.popupPosition)===null||s===void 0?void 0:s.top,E=(u=o.popupPosition)===null||u===void 0?void 0:u.left;return(!h||h<0||h>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),h=An.POPUP_WIDTH),(!m||m<0||m>f)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),m=An.POPUP_HEIGHT),(!y||y<0||y>f)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),y=Math.max(0,f/2-An.POPUP_HEIGHT/2+c)),(!E||E<0||E>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),E=Math.max(0,d/2-An.POPUP_WIDTH/2+l)),window.open(r,n,"width="+h+", height="+m+", top="+y+", left="+E+", scrollbars=yes")},t.prototype.unloadWindow=function(r){this.browserStorage.cleanRequestByInteractionType(ie.Popup),this.currentWindow&&this.currentWindow.close(),r.preventDefault()},t.prototype.cleanPopup=function(r){r&&r.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(r,n){return An.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r.join("-")+"."+n+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(r){var n=r.account&&r.account.homeAccountId;return An.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},t}(ts);/*! @azure/msal-browser v2.36.0 2023-04-18 */var hb=function(){function e(){}return e.prototype.navigateInternal=function(t,r){return e.defaultNavigateWindow(t,r)},e.prototype.navigateExternal=function(t,r){return e.defaultNavigateWindow(t,r)},e.defaultNavigateWindow=function(t,r){return r.noHistory?window.location.replace(t):window.location.assign(t),new Promise(function(n){setTimeout(function(){n(!0)},r.timeout)})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var tL=6e4,Lf=6e3,rL=3e4,nL=2e3;function oL(e,t){var r=e.auth,n=e.cache,o=e.system,i=e.telemetry,a={clientId:R.EMPTY_STRING,authority:""+R.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:R.EMPTY_STRING,authorityMetadata:R.EMPTY_STRING,redirectUri:R.EMPTY_STRING,postLogoutRedirectUri:R.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:ic.AAD,azureCloudOptions:{azureCloudInstance:fu.None,tenant:R.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:xt.SessionStorage,temporaryCacheLocation:xt.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(n&&n.cacheLocation===xt.LocalStorage)},u={loggerCallback:function(){},logLevel:Ht.Info,piiLoggingEnabled:!1},l=ce(ce({},ob),{loggerOptions:u,networkClient:t?wt.getBrowserNetworkClient():VO,navigationClient:new hb,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||tL,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Lf,navigateFrameWait:t&&wt.detectIEOrEdge()?500:0,redirectNavigationTimeout:rL,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||nL,pollIntervalMilliseconds:An.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),c=ce(ce({},o),{loggerOptions:(o==null?void 0:o.loggerOptions)||u}),d={application:{appName:R.EMPTY_STRING,appVersion:R.EMPTY_STRING}},f={auth:ce(ce({},a),r),cache:ce(ce({},s),n),system:ce(ce({},l),c),telemetry:ce(ce({},d),i)};return f}/*! @azure/msal-browser v2.36.0 2023-04-18 */var pb=function(e){dr(t,e);function t(r,n,o,i,a,s){var u=e.call(this,r,n,o,i,s)||this;return u.navigateFrameWait=a.navigateFrameWait,u.pollIntervalMilliseconds=a.pollIntervalMilliseconds,u}return t.prototype.initiateAuthRequest=function(r){return U(this,void 0,void 0,function(){return H(this,function(n){switch(n.label){case 0:if(this.performanceClient.addQueueMeasurement(D.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),re.isEmpty(r))throw this.logger.info("Navigate url is empty"),ee.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(D.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(r)]):[3,2];case 1:return[2,n.sent()];case 2:return[2,this.loadFrameSync(r)]}})})},t.prototype.monitorIframeForHash=function(r,n){var o=this;return this.performanceClient.addQueueMeasurement(D.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(i,a){n<Lf&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Lf+"ms). This may result in timeouts.");var s=window.performance.now(),u=s+n,l=setInterval(function(){if(window.performance.now()>u){o.removeHiddenIframe(r),clearInterval(l),a(ee.createMonitorIframeTimeoutError());return}var c=R.EMPTY_STRING,d=r.contentWindow;try{c=d?d.location.href:R.EMPTY_STRING}catch{}if(!re.isEmpty(c)){var f=d?d.location.hash:R.EMPTY_STRING;if(De.hashContainsKnownProperties(f)){o.removeHiddenIframe(r),clearInterval(l),i(f);return}}},o.pollIntervalMilliseconds)})},t.prototype.loadFrame=function(r){var n=this;return this.performanceClient.addQueueMeasurement(D.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),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)})},t.prototype.loadFrameSync=function(r){var n=this.createHiddenIframe();return n.src=r,n},t.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},t.prototype.removeHiddenIframe=function(r){document.body===r.parentNode&&document.body.removeChild(r)},t}(Xv);/*! @azure/msal-browser v2.36.0 2023-04-18 */var mb=function(e){dr(t,e);function t(r,n,o,i,a,s,u,l,c,d,f){var h=e.call(this,r,n,o,i,a,s,l,d,f)||this;return h.apiId=u,h.nativeStorage=c,h}return t.prototype.acquireToken=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s;return H(this,function(u){switch(u.label){case 0:if(this.performanceClient.addQueueMeasurement(D.SilentIframeClientAcquireToken,r.correlationId),this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(D.SilentIframeClientAcquireToken,r.correlationId),re.isEmpty(r.loginHint)&&re.isEmpty(r.sid)&&(!r.account||re.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!==Er.NONE&&r.prompt!==Er.NO_SESSION)throw n.endMeasurement({success:!1}),ee.createSilentPromptValueError(r.prompt);return this.performanceClient.setPreQueueTime(D.StandardInteractionClientInitializeAuthorizationRequest,r.correlationId),[4,this.initializeAuthorizationRequest(ce(ce({},r),{prompt:r.prompt||Er.NONE}),ie.Silent)];case 1:o=u.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||R.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(D.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(D.SilentIframeClientTokenHelper,r.correlationId),[4,this.silentTokenHelper(a,o).then(function(l){return n.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,u.sent()];case 5:throw s=u.sent(),s instanceof fe&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof fe&&s.errorCode||void 0,subErrorCode:s instanceof fe&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ee.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(r,n){return U(this,void 0,void 0,function(){var o,i,a,s,u,l,c,d,f,h=this;return H(this,function(m){switch(m.label){case 0:return this.performanceClient.addQueueMeasurement(D.SilentIframeClientTokenHelper,n.correlationId),this.performanceClient.setPreQueueTime(D.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=m.sent(),this.performanceClient.setPreQueueTime(D.GetAuthCodeUrl,n.correlationId),[4,r.getAuthCodeUrl(ce(ce({},n),{nativeBroker:Wi.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=m.sent(),a=new pb(r,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(D.SilentHandlerInitiateAuthRequest,n.correlationId),[4,a.initiateAuthRequest(i)];case 3:return s=m.sent(),this.performanceClient.setPreQueueTime(D.SilentHandlerMonitorIframeForHash,n.correlationId),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(u=m.sent(),l=De.getDeserializedHash(u),c=this.validateAndExtractStateFromHash(l,ie.Silent,o.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw ee.createNativeConnectionNotEstablishedError();return d=new Oa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),f=ti.parseRequestState(this.browserCrypto,c).userRequestState,[2,d.acquireToken(ce(ce({},n),{state:f,prompt:n.prompt||Er.NONE})).finally(function(){h.browserStorage.cleanRequestByState(c)})]}return this.performanceClient.setPreQueueTime(D.HandleCodeResponseFromHash,n.correlationId),[2,a.handleCodeResponseFromHash(u,c,r.authority,this.networkClient)]}})})},t}(ts);/*! @azure/msal-browser v2.36.0 2023-04-18 */var gb=function(e){dr(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.acquireToken=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s,u=this;return H(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(D.SilentRefreshClientAcquireToken,r.correlationId),this.performanceClient.setPreQueueTime(D.InitializeBaseRequest,r.correlationId),o=[ce({},r)],[4,this.initializeBaseRequest(r)];case 1:return n=ce.apply(void 0,o.concat([l.sent()])),i=this.performanceClient.startMeasurement(D.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(nt.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(D.RefreshTokenClientAcquireTokenByRefreshToken,r.correlationId),[2,s.acquireTokenByRefreshToken(n).then(function(c){return i.endMeasurement({success:!0,fromCache:c.fromCache,requestId:c.requestId}),c}).catch(function(c){throw c instanceof fe&&c.setCorrelationId(u.correlationId),a.cacheFailedRequest(c),i.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c})]}})})},t.prototype.logout=function(){return Promise.reject(ee.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(r,n,o){return U(this,void 0,void 0,function(){var i;return H(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(D.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new ab(i,this.performanceClient)]}})})},t}(ts);/*! @azure/msal-browser v2.36.0 2023-04-18 */var vb=function(){function e(t,r){this.eventCallbacks=new Map,this.logger=t,this.browserCrypto=r,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return e.prototype.addEventCallback=function(t){if(typeof window<"u"){var r=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(r,t),this.logger.verbose("Event callback registered with id: "+r),r}return null},e.prototype.removeEventCallback=function(t){this.eventCallbacks.delete(t),this.logger.verbose("Event callback "+t+" removed.")},e.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)))},e.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."))},e.prototype.emitEvent=function(t,r,n,o){var i=this;if(typeof window<"u"){var a={eventType:t,interactionType:r||null,payload:n||null,error:o||null,timestamp:Date.now()};this.logger.info("Emitting event: "+t),this.eventCallbacks.forEach(function(s,u){i.logger.verbose("Emitting event to callback "+u+": "+t),s.apply(null,[a])})}},e.prototype.handleAccountCacheChange=function(t){try{var r=t.newValue||t.oldValue;if(!r)return;var n=JSON.parse(r);if(typeof n!="object"||!tr.isAccountEntity(n))return;var o=Lr.toObject(new tr,n),i=o.getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(he.ACCOUNT_ADDED,void 0,i)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(he.ACCOUNT_REMOVED,void 0,i))}catch{return}},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var mr=function(){function e(){}return e.decimalToHex=function(t){for(var r=t.toString(16);r.length<2;)r="0"+r;return r},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var yb=function(){function e(t){this.cryptoObj=t}return e.prototype.generateGuid=function(){try{var t=new Uint8Array(16);return this.cryptoObj.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,mr.decimalToHex(t[0])+mr.decimalToHex(t[1])+mr.decimalToHex(t[2])+mr.decimalToHex(t[3])+"-"+mr.decimalToHex(t[4])+mr.decimalToHex(t[5])+"-"+mr.decimalToHex(t[6])+mr.decimalToHex(t[7])+"-"+mr.decimalToHex(t[8])+mr.decimalToHex(t[9])+"-"+mr.decimalToHex(t[10])+mr.decimalToHex(t[11])+mr.decimalToHex(t[12])+mr.decimalToHex(t[13])+mr.decimalToHex(t[14])+mr.decimalToHex(t[15])}catch{for(var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",o=0,i=R.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}},e.prototype.isGuid=function(t){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(t)},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var ri=function(){function e(){}return e.stringToUtf8Arr=function(t){for(var r,n=0,o=t.length,i=0;i<o;i++)r=t.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,u=0;s<n;u++)r=t.charCodeAt(u),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},e.stringToArrayBuffer=function(t){for(var r=new ArrayBuffer(t.length),n=new Uint8Array(r),o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return r},e.utf8ArrToString=function(t){for(var r=R.EMPTY_STRING,n=void 0,o=t.length,i=0;i<o;i++)n=t[i],r+=String.fromCharCode(n>251&&n<254&&i+5<o?(n-252)*1073741824+(t[++i]-128<<24)+(t[++i]-128<<18)+(t[++i]-128<<12)+(t[++i]-128<<6)+t[++i]-128:n>247&&n<252&&i+4<o?(n-248<<24)+(t[++i]-128<<18)+(t[++i]-128<<12)+(t[++i]-128<<6)+t[++i]-128:n>239&&n<248&&i+3<o?(n-240<<18)+(t[++i]-128<<12)+(t[++i]-128<<6)+t[++i]-128:n>223&&n<240&&i+2<o?(n-224<<12)+(t[++i]-128<<6)+t[++i]-128:n>191&&n<224&&i+1<o?(n-192<<6)+t[++i]-128:n);return r},e.getSortedObjectString=function(t){return JSON.stringify(t,Object.keys(t).sort())},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var Eb=function(){function e(){}return e.prototype.urlEncode=function(t){return encodeURIComponent(this.encode(t).replace(/=/g,R.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(t){return this.base64EncArr(t).replace(/=/g,R.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(t){var r=ri.stringToUtf8Arr(t);return this.base64EncArr(r)},e.prototype.base64EncArr=function(t){for(var r=(3-t.length%3)%3,n=R.EMPTY_STRING,o=void 0,i=t.length,a=0,s=0;s<i;s++)o=s%3,a|=t[s]<<(16>>>o&24),(o===2||t.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?"=":"==")},e.prototype.uint6ToB64=function(t){return t<26?t+65:t<52?t+71:t<62?t-4:t===62?43:t===63?47:65},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var iL=function(){function e(){}return e.prototype.decode=function(t){var r=t.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 ri.utf8ArrToString(n)},e.prototype.base64DecToArr=function(t,r){for(var n=t.replace(/[^A-Za-z0-9\+\/]/g,R.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,u=void 0,l=0,c=0,d=0;d<o;d++)if(u=d&3,l|=this.b64ToUint6(n.charCodeAt(d))<<18-6*u,u===3||o-d===1){for(s=0;s<3&&c<i;s++,c++)a[c]=l>>>(16>>>s&24)&255;l=0}return a},e.prototype.b64ToUint6=function(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:t===43?62:t===47?63:0},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var aL=32,sL=function(){function e(t){this.base64Encode=new Eb,this.cryptoObj=t}return e.prototype.generateCodes=function(){return U(this,void 0,void 0,function(){var t,r;return H(this,function(n){switch(n.label){case 0:return t=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(t)];case 1:return r=n.sent(),[2,{verifier:t,challenge:r}]}})})},e.prototype.generateCodeVerifier=function(){try{var t=new Uint8Array(aL);this.cryptoObj.getRandomValues(t);var r=this.base64Encode.urlEncodeArr(t);return r}catch(n){throw ee.createPkceNotGeneratedError(n)}},e.prototype.generateCodeChallengeFromVerifier=function(t){return U(this,void 0,void 0,function(){var r,n;return H(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(t)];case 1:return r=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(r))];case 2:throw n=o.sent(),ee.createPkceNotGeneratedError(n);case 3:return[2]}})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var uL=function(){function e(){}return e.prototype.getRandomValues=function(t){return window.crypto.getRandomValues(t)},e.prototype.generateKey=function(t,r,n){return U(this,void 0,void 0,function(){return H(this,function(o){return[2,window.crypto.subtle.generateKey(t,r,n)]})})},e.prototype.exportKey=function(t){return U(this,void 0,void 0,function(){return H(this,function(r){return[2,window.crypto.subtle.exportKey(hu,t)]})})},e.prototype.importKey=function(t,r,n,o){return U(this,void 0,void 0,function(){return H(this,function(i){return[2,window.crypto.subtle.importKey(hu,t,r,n,o)]})})},e.prototype.sign=function(t,r,n){return U(this,void 0,void 0,function(){return H(this,function(o){return[2,window.crypto.subtle.sign(t,r,n)]})})},e.prototype.digest=function(t,r){return U(this,void 0,void 0,function(){return H(this,function(n){return[2,window.crypto.subtle.digest(t,r)]})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var lL=function(){function e(){}return e.prototype.initPrng=function(t){return window.msrCrypto.initPrng(jv(t))},e.prototype.getRandomValues=function(t){return window.msrCrypto.getRandomValues(t)},e.prototype.generateKey=function(t,r,n){return U(this,void 0,void 0,function(){return H(this,function(o){return[2,window.msrCrypto.subtle.generateKey(t,r,n)]})})},e.prototype.exportKey=function(t){return U(this,void 0,void 0,function(){return H(this,function(r){return[2,window.msrCrypto.subtle.exportKey(hu,t)]})})},e.prototype.importKey=function(t,r,n,o){return U(this,void 0,void 0,function(){return H(this,function(i){return[2,window.msrCrypto.subtle.importKey(hu,t,r,n,o)]})})},e.prototype.sign=function(t,r,n){return U(this,void 0,void 0,function(){return H(this,function(o){return[2,window.msrCrypto.subtle.sign(t,r,n)]})})},e.prototype.digest=function(t,r){return U(this,void 0,void 0,function(){return H(this,function(n){return[2,window.msrCrypto.subtle.digest(t,r)]})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var cL=function(){function e(){}return e.prototype.getRandomValues=function(t){return window.msCrypto.getRandomValues(t)},e.prototype.generateKey=function(t,r,n){return U(this,void 0,void 0,function(){return H(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.generateKey(t,r,n);s.addEventListener("complete",function(u){i(u.target.result)}),s.addEventListener("error",function(u){a(u)})})]})})},e.prototype.exportKey=function(t){return U(this,void 0,void 0,function(){return H(this,function(r){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(hu,t);i.addEventListener("complete",function(a){var s=a.target.result,u=ri.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,R.EMPTY_STRING).replace(/\n/g,R.EMPTY_STRING).replace(/\t/g,R.EMPTY_STRING).split(" ").join(R.EMPTY_STRING).replace("\0",R.EMPTY_STRING);try{n(JSON.parse(u))}catch(l){o(l)}}),i.addEventListener("error",function(a){o(a)})})]})})},e.prototype.importKey=function(t,r,n,o){return U(this,void 0,void 0,function(){var i,a;return H(this,function(s){return i=ri.getSortedObjectString(t),a=ri.stringToArrayBuffer(i),[2,new Promise(function(u,l){var c=window.msCrypto.subtle.importKey(hu,a,r,n,o);c.addEventListener("complete",function(d){u(d.target.result)}),c.addEventListener("error",function(d){l(d)})})]})})},e.prototype.sign=function(t,r,n){return U(this,void 0,void 0,function(){return H(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.sign(t,r,n);s.addEventListener("complete",function(u){i(u.target.result)}),s.addEventListener("error",function(u){a(u)})})]})})},e.prototype.digest=function(t,r){return U(this,void 0,void 0,function(){return H(this,function(n){return[2,new Promise(function(o,i){var a=window.msCrypto.subtle.digest(t,r.buffer);a.addEventListener("complete",function(s){o(s.target.result)}),a.addEventListener("error",function(s){i(s)})})]})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var dL="RSASSA-PKCS1-v1_5",iC="SHA-256",fL=2048,hL=new Uint8Array([1,0,1]),_b=function(){function e(t,r){var n,o;if(this.logger=t,this.cryptoOptions=r,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new uL;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new cL;else if(this.hasMsrCrypto()&&(!((n=this.cryptoOptions)===null||n===void 0)&&n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new lL;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."),ee.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."),Ot.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:dL,hash:iC,modulusLength:fL,publicExponent:hL}}return e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},e.prototype.sha256Digest=function(t){return U(this,void 0,void 0,function(){var r;return H(this,function(n){return r=ri.stringToUtf8Arr(t),[2,this.subtleCrypto.digest({name:iC},r)]})})},e.prototype.getRandomValues=function(t){return this.subtleCrypto.getRandomValues(t)},e.prototype.generateKeyPair=function(t,r){return U(this,void 0,void 0,function(){return H(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,t,r)]})})},e.prototype.exportJwk=function(t){return U(this,void 0,void 0,function(){return H(this,function(r){return[2,this.subtleCrypto.exportKey(t)]})})},e.prototype.importJwk=function(t,r,n){return U(this,void 0,void 0,function(){return H(this,function(o){return[2,this.subtleCrypto.importKey(t,this.keygenAlgorithmOptions,r,n)]})})},e.prototype.sign=function(t,r){return U(this,void 0,void 0,function(){return H(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,t,r)]})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var pL=function(){function e(){this.dbName=ug,this.version=YO,this.tableName=XO,this.dbOpen=!1}return e.prototype.open=function(){return U(this,void 0,void 0,function(){var t=this;return H(this,function(r){return[2,new Promise(function(n,o){var i=window.indexedDB.open(t.dbName,t.version);i.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(t.tableName)}),i.addEventListener("success",function(a){var s=a;t.db=s.target.result,t.dbOpen=!0,n()}),i.addEventListener("error",function(){return o(ee.createDatabaseUnavailableError())})})]})})},e.prototype.closeConnection=function(){var t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return U(this,void 0,void 0,function(){return H(this,function(t){switch(t.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,t.sent()];case 2:return[2]}})})},e.prototype.getItem=function(t){return U(this,void 0,void 0,function(){var r=this;return H(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(ee.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),u=s.get(t);u.addEventListener("success",function(l){var c=l;r.closeConnection(),o(c.target.result)}),u.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},e.prototype.setItem=function(t,r){return U(this,void 0,void 0,function(){var n=this;return H(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(ee.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),u=s.objectStore(n.tableName),l=u.put(r,t);l.addEventListener("success",function(){n.closeConnection(),i()}),l.addEventListener("error",function(c){n.closeConnection(),a(c)})})]}})})},e.prototype.removeItem=function(t){return U(this,void 0,void 0,function(){var r=this;return H(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(ee.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readwrite"),s=a.objectStore(r.tableName),u=s.delete(t);u.addEventListener("success",function(){r.closeConnection(),o()}),u.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},e.prototype.getKeys=function(){return U(this,void 0,void 0,function(){var t=this;return H(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(n,o){if(!t.db)return o(ee.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readonly"),a=i.objectStore(t.tableName),s=a.getAllKeys();s.addEventListener("success",function(u){var l=u;t.closeConnection(),n(l.target.result)}),s.addEventListener("error",function(u){t.closeConnection(),o(u)})})]}})})},e.prototype.containsKey=function(t){return U(this,void 0,void 0,function(){var r=this;return H(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(ee.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),u=s.count(t);u.addEventListener("success",function(l){var c=l;r.closeConnection(),o(c.target.result===1)}),u.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},e.prototype.deleteDatabase=function(){return U(this,void 0,void 0,function(){return H(this,function(t){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(r,n){var o=window.indexedDB.deleteDatabase(ug);o.addEventListener("success",function(){return r(!0)}),o.addEventListener("blocked",function(){return r(!0)}),o.addEventListener("error",function(){return n(!1)})})]})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var aC=function(){function e(t,r){this.inMemoryCache=new lg,this.indexedDBCache=new pL,this.logger=t,this.storeName=r}return e.prototype.handleDatabaseAccessError=function(t){if(t instanceof ee&&t.errorCode===q.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 t},e.prototype.getItem=function(t){return U(this,void 0,void 0,function(){var r,n;return H(this,function(o){switch(o.label){case 0:if(r=this.inMemoryCache.getItem(t),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(t)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,r]}})})},e.prototype.setItem=function(t,r){return U(this,void 0,void 0,function(){var n;return H(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(t,r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(t,r)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},e.prototype.removeItem=function(t){return U(this,void 0,void 0,function(){var r;return H(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(t)];case 2:return n.sent(),[3,4];case 3:return r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},e.prototype.getKeys=function(){return U(this,void 0,void 0,function(){var t,r;return H(this,function(n){switch(n.label){case 0:if(t=this.inMemoryCache.getKeys(),t.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,t]}})})},e.prototype.containsKey=function(t){return U(this,void 0,void 0,function(){var r,n;return H(this,function(o){switch(o.label){case 0:if(r=this.inMemoryCache.containsKey(t),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(t)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,r]}})})},e.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},e.prototype.clearPersistent=function(){return U(this,void 0,void 0,function(){var t,r;return H(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 t=n.sent(),t&&this.logger.verbose("Persistent keystore deleted"),[2,t];case 2:return r=n.sent(),this.handleDatabaseAccessError(r),[2,!1];case 3:return[2]}})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var Bf;(function(e){e.asymmetricKeys="asymmetricKeys",e.symmetricKeys="symmetricKeys"})(Bf||(Bf={}));var mL=function(){function e(t){this.logger=t,this.asymmetricKeys=new aC(this.logger,Bf.asymmetricKeys),this.symmetricKeys=new aC(this.logger,Bf.symmetricKeys)}return e.prototype.clear=function(){return U(this,void 0,void 0,function(){var t;return H(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 t=r.sent(),t instanceof Error?this.logger.error("Clearing keystore failed with error: "+t.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var Zv=function(){function e(t,r,n){this.logger=t,this.browserCrypto=new _b(this.logger,n),this.b64Encode=new Eb,this.b64Decode=new iL,this.guidGenerator=new yb(this.browserCrypto),this.pkceGenerator=new sL(this.browserCrypto),this.cache=new mL(this.logger),this.performanceClient=r}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(t){return this.b64Encode.encode(t)},e.prototype.base64Decode=function(t){return this.b64Decode.decode(t)},e.prototype.generatePkceCodes=function(){return U(this,void 0,void 0,function(){return H(this,function(t){return[2,this.pkceGenerator.generateCodes()]})})},e.prototype.getPublicKeyThumbprint=function(t){var r;return U(this,void 0,void 0,function(){var n,o,i,a,s,u,l,c;return H(this,function(d){switch(d.label){case 0:return n=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(D.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return o=d.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=d.sent(),a={e:i.e,kty:i.kty,n:i.n},s=ri.getSortedObjectString(a),[4,this.hashString(s)];case 3:return u=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return c=d.sent(),[4,this.cache.asymmetricKeys.setItem(u,{privateKey:c,publicKey:o.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),n&&n.endMeasurement({success:!0}),[2,u]}})})},e.prototype.removeTokenBindingKey=function(t){return U(this,void 0,void 0,function(){var r;return H(this,function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(t)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(t)];case 2:return r=n.sent(),[2,!r]}})})},e.prototype.clearKeystore=function(){return U(this,void 0,void 0,function(){return H(this,function(t){switch(t.label){case 0:return[4,this.cache.clear()];case 1:return[2,t.sent()]}})})},e.prototype.signJwt=function(t,r,n){var o;return U(this,void 0,void 0,function(){var i,a,s,u,l,c,d,f,h,m,y,E,v;return H(this,function(g){switch(g.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(D.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(r)];case 1:if(a=g.sent(),!a)throw ee.createSigningKeyNotFoundInStorageError(r);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=g.sent(),u=ri.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:r})),c=WO.getShrHeaderString({kid:l,alg:s.alg}),d=this.b64Encode.urlEncode(c),t.cnf={jwk:JSON.parse(u)},f=this.b64Encode.urlEncode(JSON.stringify(t)),h=d+"."+f,m=ri.stringToArrayBuffer(h),[4,this.browserCrypto.sign(a.privateKey,m)];case 3:return y=g.sent(),E=this.b64Encode.urlEncodeArr(new Uint8Array(y)),v=h+"."+E,i&&i.endMeasurement({success:!0}),[2,v]}})})},e.prototype.hashString=function(t){return U(this,void 0,void 0,function(){var r,n;return H(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(t)];case 1:return r=o.sent(),n=new Uint8Array(r),[2,this.b64Encode.urlEncodeArr(n)]}})})},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var dg=function(){function e(t,r){this.correlationId=r,this.measureName=e.makeMeasureName(t,r),this.startMark=e.makeStartMark(t,r),this.endMark=e.makeEndMark(t,r)}return e.makeMeasureName=function(t,r){return"msal.measure."+t+"."+r},e.makeStartMark=function(t,r){return"msal.start."+t+"."+r},e.makeEndMark=function(t,r){return"msal.end."+t+"."+r},e.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"},e.flushMeasurements=function(t,r){if(e.supportsBrowserPerformance())try{r.forEach(function(n){var o=e.makeMeasureName(n.name,t),i=window.performance.getEntriesByName(o,"measure");i.length>0&&(window.performance.clearMeasures(o),window.performance.clearMarks(e.makeStartMark(o,t)),window.performance.clearMarks(e.makeEndMark(o,t)))})}catch{}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},e.prototype.flushMeasurement=function(){if(e.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var r=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),r}}catch{}return null},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var Cb=function(e){dr(t,e);function t(r,n,o,i,a,s,u){var l=e.call(this,r,n,o,i,a,s)||this;return l.browserCrypto=new _b(l.logger,u),l.guidGenerator=new yb(l.browserCrypto),l}return t.prototype.startPerformanceMeasuremeant=function(r,n){return new dg(r,n)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var r;return((r=document.visibilityState)===null||r===void 0?void 0:r.toString())||null},t.prototype.deleteIncompleteSubMeasurements=function(r){var n=this.eventsByCorrelationId.get(r.event.correlationId),o=n&&n.eventId===r.event.eventId,i=[];o&&(n!=null&&n.incompleteSubMeasurements)&&n.incompleteSubMeasurements.forEach(function(a){i.push(ce({},a))}),i.length>0&&dg.flushMeasurements(r.event.correlationId,i)},t.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},t.prototype.startMeasurement=function(r,n){var o=this,i=this.getPageVisibility(),a=e.prototype.startMeasurement.call(this,r,n);return ce(ce({},a),{endMeasurement:function(s){var u=a.endMeasurement(ce({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s));return o.deleteIncompleteSubMeasurements(a),u},discardMeasurement:function(){a.discardMeasurement(),o.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(r,n){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+r);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+r+" not provided, unable to set telemetry queue time");return}var o=this.preQueueTimeByCorrelationId.get(n);o&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+o.name+" found",n),this.addQueueMeasurement(o.name,n,void 0,!0)),this.preQueueTimeByCorrelationId.set(n,{name:r,time:window.performance.now()})},t.prototype.addQueueMeasurement=function(r,n,o,i){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+r);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+r+" not provided, unable to add queue measurement");return}var a=e.prototype.getPreQueueTime.call(this,r,n);if(a){var s=window.performance.now(),u=o||e.prototype.calculateQueuedTime.call(this,a,s);return e.prototype.addQueueMeasurement.call(this,r,n,u,i)}},t}(ub);/*! @azure/msal-browser v2.36.0 2023-04-18 */const gL=Object.freeze(Object.defineProperty({__proto__:null,BrowserCacheManager:Of,BrowserConstants:An,BrowserPerformanceClient:Cb,BrowserPerformanceMeasurement:dg,CryptoOps:Zv,EventHandler:vb,NativeAuthError:Xn,NativeInteractionClient:Oa,NativeMessageHandler:Wi,PopupClient:fb,RedirectClient:db,RedirectHandler:cg,SilentCacheClient:Jv,SilentIframeClient:mb,SilentRefreshClient:gb,StandardInteractionClient:ts,get TemporaryCacheKeys(){return Ue}},Symbol.toStringTag,{value:"Module"}));/*! @azure/msal-browser v2.36.0 2023-04-18 */var vL=function(){function e(t,r,n,o){this.isBrowserEnvironment=typeof window<"u",this.config=t,this.storage=r,this.logger=n,this.cryptoObj=o}return e.prototype.loadExternalTokens=function(t,r,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!r.id_token)throw ee.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new Po(r.id_token,this.cryptoObj),i,a;if(t.account){var s=this.loadAccount(o,t.account.environment,void 0,void 0,t.account.homeAccountId);i=new Md(s,this.loadIdToken(o,s.homeAccountId,t.account.environment,t.account.tenantId),this.loadAccessToken(t,r,s.homeAccountId,t.account.environment,t.account.tenantId,n),this.loadRefreshToken(t,r,s.homeAccountId,t.account.environment))}else if(t.authority){var u=ac.generateAuthority(t.authority,t.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 ac(u,this.config.system.networkClient,this.storage,l,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(o,a.hostnameAndPort,n.clientInfo,a.authorityType);i=new Md(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(t,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(t,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 Md(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(t,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(t,r,s.homeAccountId,a.hostnameAndPort))}else throw ee.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw ee.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(t,o,i,a)},e.prototype.loadAccount=function(t,r,n,o,i){var a;if(i?a=i:o!==void 0&&n&&(a=tr.generateHomeAccountId(n,o,this.logger,this.cryptoObj,t)),!a)throw ee.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?tr.createAccount(n,a,t,void 0,void 0,void 0,r):tr.createGenericAccount(a,t,void 0,void 0,void 0,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw ee.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(t,r,n,o){var i=Aa.createIdTokenEntity(r,n,t.rawToken,this.config.auth.clientId,o);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw ee.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadAccessToken=function(t,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 ee.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw ee.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new yr(t.scopes).printScopes(),u=a.expiresOn||r.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,c=Ra.createAccessTokenEntity(n,o,r.access_token,this.config.auth.clientId,i,s,u,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(c),c;throw ee.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadRefreshToken=function(t,r,n,o){if(!r.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=Hs.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 ee.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(t,r,n,o){var i,a,s,u=R.EMPTY_STRING,l=[],c=null,d;n!=null&&n.accessToken&&(u=n.accessToken.secret,l=yr.fromString(n.accessToken.target).asArray(),c=new Date(Number(n.accessToken.expiresOn)*1e3),d=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var f=(r==null?void 0:r.claims.oid)||(r==null?void 0:r.claims.sub)||R.EMPTY_STRING,h=(r==null?void 0:r.claims.tid)||R.EMPTY_STRING;return{authority:o?o.canonicalAuthority:R.EMPTY_STRING,uniqueId:f,tenantId:h,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:r?r.rawToken:R.EMPTY_STRING,idTokenClaims:r?r.claims:{},accessToken:u,fromCache:!0,expiresOn:c,correlationId:t.correlationId||R.EMPTY_STRING,requestId:R.EMPTY_STRING,extExpiresOn:d,familyId:R.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)===null||i===void 0?void 0:i.tokenType)||R.EMPTY_STRING,state:R.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||R.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||R.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var yL=function(e){dr(t,e);function t(r){var n=e.call(this,r)||this;return n.includeRedirectUri=!1,n}return t}(ib);/*! @azure/msal-browser v2.36.0 2023-04-18 */var EL=function(e){dr(t,e);function t(r,n,o,i,a,s,u,l,c,d){var f=e.call(this,r,n,o,i,a,s,l,c,d)||this;return f.apiId=u,f}return t.prototype.acquireToken=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s,u,l;return H(this,function(c){switch(c.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!r.code)throw ee.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(D.StandardInteractionClientInitializeAuthorizationRequest,r.correlationId),[4,this.initializeAuthorizationRequest(r,ie.Silent)];case 1:n=c.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||R.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,4,,5]),i=ce(ce({},n),{code:r.code}),this.performanceClient.setPreQueueTime(D.StandardInteractionClientGetClientConfiguration,r.correlationId),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=c.sent(),s=new yL(a),this.logger.verbose("Auth code client created"),u=new pb(s,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),[2,u.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=c.sent(),l instanceof fe&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(ee.createSilentLogoutUnsupportedError())},t}(ts);/*! @azure/msal-browser v2.36.0 2023-04-18 */var _L=function(){function e(t){this.isBrowserEnvironment=typeof window<"u",this.config=oL(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new bu(this.config.system.loggerOptions,Fd,Da),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 Cb(this.config.auth.clientId,this.config.auth.authority,this.logger,Fd,Da,this.config.telemetry.application,this.config.system.cryptoOptions):new QO(this.config.auth.clientId,this.config.auth.authority,this.logger,Fd,Da,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new Zv(this.logger,this.performanceClient,this.config.system.cryptoOptions):Af,this.eventHandler=new vb(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Of(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):JO(this.config.auth.clientId,this.logger);var r={cacheLocation:xt.MemoryStorage,temporaryCacheLocation:xt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1};this.nativeInternalStorage=new Of(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new vL(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return U(this,void 0,void 0,function(){var t,r,n,o;return H(this,function(i){switch(i.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(t=this.config.system.allowNativeBroker,r=this.performanceClient.startMeasurement(D.InitializeClientApplication),this.eventHandler.emitEvent(he.INITIALIZE_START),!t)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),n=this,[4,Wi.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=i.sent(),[3,4];case 3:return o=i.sent(),this.logger.verbose(o),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(he.INITIALIZE_END),r.endMeasurement({allowNativeBroker:t,success:!0}),[2]}})})},e.prototype.handleRedirectPromise=function(t){return U(this,void 0,void 0,function(){var r,n,o,i,a,s,u,l,c=this;return H(this,function(d){return this.logger.verbose("handleRedirectPromise called"),wt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),r=this.getAllAccounts(),this.isBrowserEnvironment?(n=t||R.EMPTY_STRING,o=this.redirectResponse.get(n),typeof o>"u"?(this.eventHandler.emitEvent(he.HANDLE_REDIRECT_START,ie.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&Wi.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new Oa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,nt.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),u=this.browserStorage.getTemporaryCache(Ue.CORRELATION_ID,!0)||R.EMPTY_STRING,l=this.createRedirectClient(u),a=l.handleRedirectPromise(t)),o=a.then(function(f){if(f){var h=r.length<c.getAllAccounts().length;h?(c.eventHandler.emitEvent(he.LOGIN_SUCCESS,ie.Redirect,f),c.logger.verbose("handleRedirectResponse returned result, login success")):(c.eventHandler.emitEvent(he.ACQUIRE_TOKEN_SUCCESS,ie.Redirect,f),c.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return c.eventHandler.emitEvent(he.HANDLE_REDIRECT_END,ie.Redirect),f}).catch(function(f){throw r.length>0?c.eventHandler.emitEvent(he.ACQUIRE_TOKEN_FAILURE,ie.Redirect,null,f):c.eventHandler.emitEvent(he.LOGIN_FAILURE,ie.Redirect,null,f),c.eventHandler.emitEvent(he.HANDLE_REDIRECT_END,ie.Redirect),f}),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])})})},e.prototype.acquireTokenRedirect=function(t){return U(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return H(this,function(u){return r=this.getRequestCorrelationId(t),this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(ie.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(he.ACQUIRE_TOKEN_START,ie.Redirect,t):this.eventHandler.emitEvent(he.LOGIN_START,ie.Redirect,t),this.nativeExtensionProvider&&this.canUseNative(t)?(i=new Oa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,nt.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),o=i.acquireTokenRedirect(t).catch(function(l){if(l instanceof Xn&&l.isFatal()){s.nativeExtensionProvider=void 0;var c=s.createRedirectClient(t.correlationId);return c.acquireToken(t)}else if(l instanceof Fn){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var c=s.createRedirectClient(t.correlationId);return c.acquireToken(t)}throw s.browserStorage.setInteractionInProgress(!1),l})):(a=this.createRedirectClient(t.correlationId),o=a.acquireToken(t)),[2,o.catch(function(l){throw n?s.eventHandler.emitEvent(he.ACQUIRE_TOKEN_FAILURE,ie.Redirect,null,l):s.eventHandler.emitEvent(he.LOGIN_FAILURE,ie.Redirect,null,l),l})]})})},e.prototype.acquireTokenPopup=function(t){var r=this,n=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(D.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(ie.Popup)}catch(u){return Promise.reject(u)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(he.ACQUIRE_TOKEN_START,ie.Popup,t):this.eventHandler.emitEvent(he.LOGIN_START,ie.Popup,t);var a;if(this.canUseNative(t))a=this.acquireTokenNative(t,nt.acquireTokenPopup).then(function(u){return r.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:u.requestId}),u}).catch(function(u){if(u instanceof Xn&&u.isFatal()){r.nativeExtensionProvider=void 0;var l=r.createPopupClient(t.correlationId);return l.acquireToken(t)}else if(u instanceof Fn){r.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=r.createPopupClient(t.correlationId);return l.acquireToken(t)}throw r.browserStorage.setInteractionInProgress(!1),u});else{var s=this.createPopupClient(t.correlationId);a=s.acquireToken(t)}return a.then(function(u){var l=i.length<r.getAllAccounts().length;return l?r.eventHandler.emitEvent(he.LOGIN_SUCCESS,ie.Popup,u):r.eventHandler.emitEvent(he.ACQUIRE_TOKEN_SUCCESS,ie.Popup,u),o.addStaticFields({accessTokenSize:u.accessToken.length,idTokenSize:u.idToken.length}),o.endMeasurement({success:!0,requestId:u.requestId}),u}).catch(function(u){return i.length>0?r.eventHandler.emitEvent(he.ACQUIRE_TOKEN_FAILURE,ie.Popup,null,u):r.eventHandler.emitEvent(he.LOGIN_FAILURE,ie.Popup,null,u),o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),Promise.reject(u)})},e.prototype.trackPageVisibilityWithMeasurement=function(){var t=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;t&&(this.logger.info("Perf: Visibility change detected in ",t.event.name),t.increment({visibilityChangeCount:1}))},e.prototype.ssoSilent=function(t){var r;return U(this,void 0,void 0,function(){var n,o,i,a,s=this;return H(this,function(u){return n=this.getRequestCorrelationId(t),o=ce(ce({},t),{prompt:t.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(ie.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(D.SsoSilent,n),(r=this.ssoSilentMeasurement)===null||r===void 0||r.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(he.SSO_SILENT_START,ie.Silent,o),this.canUseNative(o)?i=this.acquireTokenNative(o,nt.ssoSilent).catch(function(l){if(l instanceof Xn&&l.isFatal()){s.nativeExtensionProvider=void 0;var c=s.createSilentIframeClient(o.correlationId);return c.acquireToken(o)}throw l}):(a=this.createSilentIframeClient(o.correlationId),i=a.acquireToken(o)),[2,i.then(function(l){var c,d;return s.eventHandler.emitEvent(he.SSO_SILENT_SUCCESS,ie.Silent,l),(c=s.ssoSilentMeasurement)===null||c===void 0||c.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),(d=s.ssoSilentMeasurement)===null||d===void 0||d.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){var c;throw s.eventHandler.emitEvent(he.SSO_SILENT_FAILURE,ie.Silent,null,l),(c=s.ssoSilentMeasurement)===null||c===void 0||c.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})]})})},e.prototype.acquireTokenByCode=function(t){return U(this,void 0,void 0,function(){var r,n,o,i,a=this;return H(this,function(s){r=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(ie.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(he.ACQUIRE_TOKEN_BY_CODE_START,ie.Silent,t),n=this.performanceClient.startMeasurement(D.AcquireTokenByCode,t.correlationId);try{if(t.code&&t.nativeAccountId)throw ee.createSpaCodeAndNativeAccountIdPresentError();if(t.code)return o=t.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",t.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),i=this.acquireTokenByCodeAsync(ce(ce({},t),{correlationId:r})).then(function(u){return a.eventHandler.emitEvent(he.ACQUIRE_TOKEN_BY_CODE_SUCCESS,ie.Silent,u),a.hybridAuthCodeResponses.delete(o),n.addStaticFields({accessTokenSize:u.accessToken.length,idTokenSize:u.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:u.fromNativeBroker,requestId:u.requestId}),u}).catch(function(u){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(he.ACQUIRE_TOKEN_BY_CODE_FAILURE,ie.Silent,null,u),n.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(t.nativeAccountId){if(this.canUseNative(t,t.nativeAccountId))return[2,this.acquireTokenNative(t,nt.acquireTokenByCode,t.nativeAccountId).catch(function(u){throw u instanceof Xn&&u.isFatal()&&(a.nativeExtensionProvider=void 0),u})];throw ee.createUnableToAcquireTokenFromNativePlatformError()}else throw ee.createAuthCodeOrNativeAccountIdRequiredError()}catch(u){throw this.eventHandler.emitEvent(he.ACQUIRE_TOKEN_BY_CODE_FAILURE,ie.Silent,null,u),n.endMeasurement({errorCode:u instanceof fe&&u.errorCode||void 0,subErrorCode:u instanceof fe&&u.subError||void 0,success:!1}),u}return[2]})})},e.prototype.acquireTokenByCodeAsync=function(t){var r;return U(this,void 0,void 0,function(){var n,o,i=this;return H(this,function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",t.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(D.AcquireTokenByCodeAsync,t.correlationId),(r=this.acquireTokenByCodeAsyncMeasurement)===null||r===void 0||r.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),n=this.createSilentAuthCodeClient(t.correlationId),[4,n.acquireToken(t).then(function(s){var u;return(u=i.acquireTokenByCodeAsyncMeasurement)===null||u===void 0||u.endMeasurement({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromNativeBroker,requestId:s.requestId}),s}).catch(function(s){var u;throw(u=i.acquireTokenByCodeAsyncMeasurement)===null||u===void 0||u.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1}),s}).finally(function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})];case 1:return o=a.sent(),[2,o]}})})},e.prototype.acquireTokenFromCache=function(t,r,n){return U(this,void 0,void 0,function(){return H(this,function(o){switch(this.performanceClient.addQueueMeasurement(D.AcquireTokenFromCache,r.correlationId),n.cacheLookupPolicy){case Rr.Default:case Rr.AccessToken:case Rr.AccessTokenAndRefreshToken:return[2,t.acquireToken(r)];default:throw ne.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenByRefreshToken=function(t,r){return U(this,void 0,void 0,function(){var n;return H(this,function(o){switch(this.performanceClient.addQueueMeasurement(D.AcquireTokenByRefreshToken,t.correlationId),r.cacheLookupPolicy){case Rr.Default:case Rr.AccessTokenAndRefreshToken:case Rr.RefreshToken:case Rr.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(t.correlationId),this.performanceClient.setPreQueueTime(D.SilentRefreshClientAcquireToken,t.correlationId),[2,n.acquireToken(t)];default:throw ne.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenBySilentIframe=function(t){return U(this,void 0,void 0,function(){var r;return H(this,function(n){return this.performanceClient.addQueueMeasurement(D.AcquireTokenBySilentIframe,t.correlationId),r=this.createSilentIframeClient(t.correlationId),this.performanceClient.setPreQueueTime(D.SilentIframeClientAcquireToken,t.correlationId),[2,r.acquireToken(t)]})})},e.prototype.logout=function(t){return U(this,void 0,void 0,function(){var r;return H(this,function(n){return r=this.getRequestCorrelationId(t),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),[2,this.logoutRedirect(ce({correlationId:r},t))]})})},e.prototype.logoutRedirect=function(t){return U(this,void 0,void 0,function(){var r,n;return H(this,function(o){return r=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(ie.Redirect),n=this.createRedirectClient(r),[2,n.logout(t)]})})},e.prototype.logoutPopup=function(t){try{var r=this.getRequestCorrelationId(t);this.preflightBrowserEnvironmentCheck(ie.Popup);var n=this.createPopupClient(r);return n.logout(t)}catch(o){return Promise.reject(o)}},e.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},e.prototype.getAccountByUsername=function(t){if(this.logger.trace("getAccountByUsername called"),!t)return this.logger.warning("getAccountByUsername: No username provided"),null;var r=this.browserStorage.getAccountInfoFilteredBy({username:t});return r?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+t),r):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},e.prototype.getAccountByHomeId=function(t){if(this.logger.trace("getAccountByHomeId called"),!t)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var r=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:t});return r?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+t),r):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},e.prototype.getAccountByLocalId=function(t){if(this.logger.trace("getAccountByLocalId called"),!t)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var r=this.browserStorage.getAccountInfoFilteredBy({localAccountId:t});return r?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+t),r):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},e.prototype.setActiveAccount=function(t){this.browserStorage.setActiveAccount(t)},e.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},e.prototype.preflightBrowserEnvironmentCheck=function(t,r){if(r===void 0&&(r=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),wt.blockNonBrowserEnvironment(this.isBrowserEnvironment),wt.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),wt.blockReloadInHiddenIframes(),wt.blockAcquireTokenInPopups(),wt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===ie.Redirect&&this.config.cache.cacheLocation===xt.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Ot.createInMemoryRedirectUnavailableError();(t===ie.Redirect||t===ie.Popup)&&this.preflightInteractiveRequest(r)},e.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),wt.blockReloadInHiddenIframes(),t&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(t,r,n){return U(this,void 0,void 0,function(){var o;return H(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw ee.createNativeConnectionNotEstablishedError();return o=new Oa(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),[2,o.acquireToken(t)]})})},e.prototype.canUseNative=function(t,r){if(this.logger.trace("canUseNative called"),!Wi.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(t.prompt)switch(t.prompt){case Er.NONE:case Er.CONSENT:case Er.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+t.prompt+" is not compatible with native flow, returning false"),!1}return!r&&!this.getNativeAccountId(t)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},e.prototype.getNativeAccountId=function(t){var r=t.account||this.browserStorage.getAccountInfoByHints(t.loginHint,t.sid)||this.getActiveAccount();return r&&r.nativeAccountId||""},e.prototype.createPopupClient=function(t){return new fb(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},e.prototype.createRedirectClient=function(t){return new db(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},e.prototype.createSilentIframeClient=function(t){return new mb(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,nt.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},e.prototype.createSilentCacheClient=function(t){return new Jv(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},e.prototype.createSilentRefreshClient=function(t){return new gb(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},e.prototype.createSilentAuthCodeClient=function(t){return new EL(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,nt.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,t)},e.prototype.addEventCallback=function(t){return this.eventHandler.addEventCallback(t)},e.prototype.removeEventCallback=function(t){this.eventHandler.removeEventCallback(t)},e.prototype.addPerformanceCallback=function(t){return this.performanceClient.addPerformanceCallback(t)},e.prototype.removePerformanceCallback=function(t){return this.performanceClient.removePerformanceCallback(t)},e.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},e.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},e.prototype.getTokenCache=function(){return this.tokenCache},e.prototype.getLogger=function(){return this.logger},e.prototype.setLogger=function(t){this.logger=t},e.prototype.initializeWrapperLibrary=function(t,r){this.browserStorage.setWrapperMetadata(t,r)},e.prototype.setNavigationClient=function(t){this.navigationClient=t},e.prototype.getConfiguration=function(){return this.config},e.prototype.getRequestCorrelationId=function(t){return t!=null&&t.correlationId?t.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():R.EMPTY_STRING},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var Sb=function(e){dr(t,e);function t(r){var n=e.call(this,r)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return t.prototype.loginRedirect=function(r){return U(this,void 0,void 0,function(){var n;return H(this,function(o){return n=this.getRequestCorrelationId(r),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(ce({correlationId:n},r||nC))]})})},t.prototype.loginPopup=function(r){var n=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(ce({correlationId:n},r||nC))},t.prototype.acquireTokenSilent=function(r){return U(this,void 0,void 0,function(){var n,o,i,a,s,u,l,c=this;return H(this,function(d){if(n=this.getRequestCorrelationId(r),o=this.performanceClient.startMeasurement(D.AcquireTokenSilent,n),o.addStaticFields({cacheLookupPolicy:r.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(ie.Silent),this.logger.verbose("acquireTokenSilent called",n),i=r.account||this.getActiveAccount(),!i)throw ee.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:r.authority||R.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),u=this.activeSilentTokenRequests.get(s),typeof u>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),this.performanceClient.setPreQueueTime(D.AcquireTokenSilentAsync,n),l=this.acquireTokenSilentAsync(ce(ce({},r),{correlationId:n}),i).then(function(f){return c.activeSilentTokenRequests.delete(s),o.addStaticFields({accessTokenSize:f.accessToken.length,idTokenSize:f.idToken.length}),o.endMeasurement({success:!0,fromCache:f.fromCache,isNativeBroker:f.fromNativeBroker,cacheLookupPolicy:r.cacheLookupPolicy,requestId:f.requestId}),f}).catch(function(f){throw c.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),o.discardMeasurement(),[2,u])})})},t.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},t.prototype.acquireTokenSilentAsync=function(r,n){var o;return U(this,void 0,void 0,function(){var i,a,s,u,l,c=this;return H(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(D.AcquireTokenSilentAsync,r.correlationId),this.eventHandler.emitEvent(he.ACQUIRE_TOKEN_START,ie.Silent,r),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(D.AcquireTokenSilentAsync,r.correlationId),(o=this.astsAsyncMeasurement)===null||o===void 0||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Wi.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,r.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=ce(ce({},r),{account:n}),i=this.acquireTokenNative(a,nt.acquireTokenSilent_silentFlow).catch(function(f){return U(c,void 0,void 0,function(){var h;return H(this,function(m){if(f instanceof Xn&&f.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,h=this.createSilentIframeClient(r.correlationId),[2,h.acquireToken(r)];throw f})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(r.correlationId),this.performanceClient.setPreQueueTime(D.InitializeSilentRequest,r.correlationId),[4,s.initializeSilentRequest(r,n)];case 2:u=d.sent(),l=ce(ce({},r),{cacheLookupPolicy:r.cacheLookupPolicy||Rr.Default}),this.performanceClient.setPreQueueTime(D.AcquireTokenFromCache,u.correlationId),i=this.acquireTokenFromCache(s,u,l).catch(function(f){if(l.cacheLookupPolicy===Rr.AccessToken)throw f;return wt.blockReloadInHiddenIframes(),c.eventHandler.emitEvent(he.ACQUIRE_TOKEN_NETWORK_START,ie.Silent,u),c.performanceClient.setPreQueueTime(D.AcquireTokenByRefreshToken,u.correlationId),c.acquireTokenByRefreshToken(u,l).catch(function(h){var m=h instanceof Zi,y=h instanceof Fn,E=h.errorCode===An.INVALID_GRANT_ERROR;if((!m||!E||y||l.cacheLookupPolicy===Rr.AccessTokenAndRefreshToken||l.cacheLookupPolicy===Rr.RefreshToken)&&l.cacheLookupPolicy!==Rr.Skip)throw h;return c.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),c.performanceClient.setPreQueueTime(D.AcquireTokenBySilentIframe,u.correlationId),c.acquireTokenBySilentIframe(u)})}),d.label=3;case 3:return[2,i.then(function(f){var h;return c.eventHandler.emitEvent(he.ACQUIRE_TOKEN_SUCCESS,ie.Silent,f),(h=c.astsAsyncMeasurement)===null||h===void 0||h.endMeasurement({success:!0,fromCache:f.fromCache,isNativeBroker:f.fromNativeBroker,requestId:f.requestId}),f}).catch(function(f){var h;throw c.eventHandler.emitEvent(he.ACQUIRE_TOKEN_FAILURE,ie.Silent,null,f),(h=c.astsAsyncMeasurement)===null||h===void 0||h.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f}).finally(function(){document.removeEventListener("visibilitychange",c.trackPageVisibility)})]}})})},t}(_L);/*! @azure/msal-browser v2.36.0 2023-04-18 */var wb={initialize:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},acquireTokenPopup:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},acquireTokenRedirect:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},acquireTokenSilent:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},acquireTokenByCode:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},getAllAccounts:function(){return[]},getAccountByHomeId:function(){return null},getAccountByUsername:function(){return null},getAccountByLocalId:function(){return null},handleRedirectPromise:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},loginPopup:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},loginRedirect:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},logout:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},logoutRedirect:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},logoutPopup:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},ssoSilent:function(){return Promise.reject(Ot.createStubPcaInstanceCalledError())},addEventCallback:function(){return null},removeEventCallback:function(){},addPerformanceCallback:function(){return""},removePerformanceCallback:function(){return!1},enableAccountStorageEvents:function(){},disableAccountStorageEvents:function(){},getTokenCache:function(){throw Ot.createStubPcaInstanceCalledError()},getLogger:function(){throw Ot.createStubPcaInstanceCalledError()},setLogger:function(){},setActiveAccount:function(){},getActiveAccount:function(){return null},initializeWrapperLibrary:function(){},setNavigationClient:function(){},getConfiguration:function(){throw Ot.createStubPcaInstanceCalledError()}};/*! @azure/msal-browser v2.36.0 2023-04-18 */var Tb=function(){function e(){}return e.getInteractionStatusFromEvent=function(t,r){switch(t.eventType){case he.LOGIN_START:return ct.Login;case he.SSO_SILENT_START:return ct.SsoSilent;case he.ACQUIRE_TOKEN_START:if(t.interactionType===ie.Redirect||t.interactionType===ie.Popup)return ct.AcquireToken;break;case he.HANDLE_REDIRECT_START:return ct.HandleRedirect;case he.LOGOUT_START:return ct.Logout;case he.SSO_SILENT_SUCCESS:case he.SSO_SILENT_FAILURE:if(r&&r!==ct.SsoSilent)break;return ct.None;case he.LOGOUT_END:if(r&&r!==ct.Logout)break;return ct.None;case he.HANDLE_REDIRECT_END:if(r&&r!==ct.HandleRedirect)break;return ct.None;case he.LOGIN_SUCCESS:case he.LOGIN_FAILURE:case he.ACQUIRE_TOKEN_SUCCESS:case he.ACQUIRE_TOKEN_FAILURE:if(t.interactionType===ie.Redirect||t.interactionType===ie.Popup){if(r&&r!==ct.Login&&r!==ct.AcquireToken)break;return ct.None}break}return null},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */var CL=function(){function e(t,r){var n=r&&r.loggerOptions||{};this.logger=new bu(n,Fd,Da),this.cryptoOps=new Zv(this.logger),this.popTokenGenerator=new Ga(this.cryptoOps),this.shrParameters=t}return e.prototype.generatePublicKeyThumbprint=function(){return U(this,void 0,void 0,function(){var t;return H(this,function(r){switch(r.label){case 0:return[4,this.popTokenGenerator.generateKid(this.shrParameters)];case 1:return t=r.sent().kid,[2,t]}})})},e.prototype.signRequest=function(t,r,n){return U(this,void 0,void 0,function(){return H(this,function(o){return[2,this.popTokenGenerator.signPayload(t,r,this.shrParameters,n)]})})},e.prototype.removeKeys=function(t){return U(this,void 0,void 0,function(){return H(this,function(r){switch(r.label){case 0:return[4,this.cryptoOps.removeTokenBindingKey(t)];case 1:return[2,r.sent()]}})})},e}();/*! @azure/msal-browser v2.36.0 2023-04-18 */const SL=Object.freeze(Object.defineProperty({__proto__:null,AccountEntity:tr,get ApiId(){return nt},AuthError:fe,AuthErrorMessage:tl,AuthenticationHeaderParser:jO,get AuthenticationScheme(){return Ge},get AzureCloudInstance(){return fu},BrowserAuthError:ee,BrowserAuthErrorMessage:q,get BrowserCacheLocation(){return xt},BrowserConfigurationAuthError:Ot,BrowserConfigurationAuthErrorMessage:Tr,BrowserUtils:wt,get CacheLookupPolicy(){return Rr},ClientAuthError:ne,ClientAuthErrorMessage:W,ClientConfigurationError:Ye,ClientConfigurationErrorMessage:be,DEFAULT_IFRAME_TIMEOUT_MS:Lf,EventMessageUtils:Tb,get EventType(){return he},InteractionRequiredAuthError:Fn,InteractionRequiredAuthErrorMessage:zs,get InteractionStatus(){return ct},get InteractionType(){return ie},get LogLevel(){return Ht},Logger:bu,NavigationClient:hb,OIDC_DEFAULT_SCOPES:Tu,get PerformanceEvents(){return D},get ProtocolMode(){return ic},PublicClientApplication:Sb,ServerError:Zi,SignedHttpRequest:CL,StringUtils:re,UrlString:De,get WrapperSKU(){return Df},internals:gL,stubbedPublicClientApplication:wb,version:Da},Symbol.toStringTag,{value:"Module"})),wL={instance:wb,inProgress:ct.None,accounts:[],logger:new bu({})},ey=p.createContext(wL);ey.Consumer;function bb(e,t){return typeof e=="function"?e(t):e}function sC(e,t){if(e.length!==t.length)return!1;const r=[...t];return e.every(n=>{const o=r.shift();return!n||!o?!1:n.homeAccountId===o.homeAccountId&&n.localAccountId===o.localAccountId&&n.username===o.username})}function TL(e,t){return e.length>0&&(t.homeAccountId||t.localAccountId||t.username)&&e.filter(n=>!(t.username&&t.username.toLowerCase()!==n.username.toLowerCase()||t.homeAccountId&&t.homeAccountId.toLowerCase()!==n.homeAccountId.toLowerCase()||t.localAccountId&&t.localAccountId.toLowerCase()!==n.localAccountId.toLowerCase()))[0]||null}const bL="@azure/msal-react",uC="1.5.6";var pu;(function(e){e.UNBLOCK_INPROGRESS="UNBLOCK_INPROGRESS",e.EVENT="EVENT"})(pu||(pu={}));const IL=(e,t)=>{const{type:r,payload:n}=t;let o=e.inProgress;switch(r){case pu.UNBLOCK_INPROGRESS:e.inProgress===ct.Startup&&(o=ct.None,n.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case pu.EVENT:const a=n.message,s=Tb.getInteractionStatusFromEvent(a,e.inProgress);s&&(n.logger.info(`MsalProvider - ${a.eventType} results in setting inProgress from ${e.inProgress} to ${s}`),o=s);break;default:throw new Error(`Unknown action type: ${r}`)}const i=n.instance.getAllAccounts();return o!==e.inProgress&&!sC(i,e.accounts)?{...e,inProgress:o,accounts:i}:o!==e.inProgress?{...e,inProgress:o}:sC(i,e.accounts)?e:{...e,accounts:i}};function kL(e){let{instance:t,children:r}=e;p.useEffect(()=>{t.initializeWrapperLibrary(Df.React,uC)},[t]);const n=p.useMemo(()=>t.getLogger().clone(bL,uC),[t]),[o,i]=p.useReducer(IL,void 0,()=>({inProgress:ct.Startup,accounts:t.getAllAccounts()}));p.useEffect(()=>{const s=t.addEventCallback(u=>{i({payload:{instance:t,logger:n,message:u},type:pu.EVENT})});return n.verbose(`MsalProvider - Registered event callback with id: ${s}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{i({payload:{instance:t,logger:n},type:pu.UNBLOCK_INPROGRESS})})}),()=>{s&&(n.verbose(`MsalProvider - Removing event callback ${s}`),t.removeEventCallback(s))}},[t,n]);const a={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:n};return La.createElement(ey.Provider,{value:a},r)}const Ch=()=>p.useContext(ey);function lC(e,t){return t&&(t.username||t.homeAccountId||t.localAccountId)?!!TL(e,t):e.length>0}function Ib(e){const{accounts:t,inProgress:r}=Ch(),[n,o]=p.useState(()=>r===ct.Startup?!1:lC(t,e));return p.useEffect(()=>{o(lC(t,e))},[t,e]),n}function Ip(e){let{username:t,homeAccountId:r,localAccountId:n,children:o}=e;const i=Ch(),a=p.useMemo(()=>({username:t,homeAccountId:r,localAccountId:n}),[t,r,n]);return Ib(a)&&i.inProgress!==ct.Startup?La.createElement(La.Fragment,null,bb(o,i)):null}function kp(e){let{username:t,homeAccountId:r,localAccountId:n,children:o}=e;const i=Ch(),a=p.useMemo(()=>({username:t,homeAccountId:r,localAccountId:n}),[t,r,n]);return!Ib(a)&&i.inProgress!==ct.Startup&&i.inProgress!==ct.HandleRedirect?La.createElement(La.Fragment,null,bb(o,i)):null}const AL="_layout_f6i7q_1",RL="_header_f6i7q_7",PL="_headerTitle_f6i7q_11",ML="_headerTitleText_f6i7q_20",FL="_headerCommandBar_f6i7q_29",NL="_headerContainer_f6i7q_37",xL="_headerAvatar_f6i7q_45",ga={layout:AL,header:RL,headerTitle:PL,headerTitleText:ML,headerCommandBar:FL,headerContainer:NL,headerAvatar:xL};var kb={},Gu={};const DL=FI(SL);var qu={},cC;function OL(){if(cC)return qu;cC=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.GraphClientError=void 0;var e=_,t=function(r){e.__extends(n,r);function n(o){var i=r.call(this,o)||this;return Object.setPrototypeOf(i,n.prototype),i}return n.setGraphClientError=function(o){var i;return o instanceof Error?i=o:(i=new n,i.customError=o),i},n}(Error);return qu.GraphClientError=t,qu}var dC;function LL(){if(dC)return Gu;dC=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.AuthCodeMSALBrowserAuthenticationProvider=void 0;var e=_,t=DL,r=OL(),n=function(){function o(i,a){if(this.publicClientApplication=i,this.options=a,!a||!i)throw new r.GraphClientError("Please pass valid PublicClientApplication instance and AuthCodeMSALBrowserAuthenticationProviderOptions instance to instantiate MSALBrowserAuthenticationProvider")}return o.prototype.getAccessToken=function(){return e.__awaiter(this,void 0,void 0,function(){var i,a,s,l,u,l;return e.__generator(this,function(c){switch(c.label){case 0:if(i=this.options&&this.options.scopes,a=this.options&&this.options.account,s=new r.GraphClientError,!i||i.length===0)throw s.name="Empty Scopes",s.message="Scopes cannot be empty, Please provide scopes",s;c.label=1;case 1:return c.trys.push([1,3,,9]),[4,this.publicClientApplication.acquireTokenSilent({scopes:i,account:a})];case 2:if(l=c.sent(),!l||!l.accessToken)throw s.name="Access token is undefined",s.message="Received empty access token from PublicClientApplication",s;return[2,l.accessToken];case 3:return u=c.sent(),u instanceof t.InteractionRequiredAuthError?this.options.interactionType!==t.InteractionType.Redirect?[3,4]:(this.publicClientApplication.acquireTokenRedirect({scopes:i}),[3,6]):[3,7];case 4:return this.options.interactionType!==t.InteractionType.Popup?[3,6]:[4,this.publicClientApplication.acquireTokenPopup({scopes:i})];case 5:return l=c.sent(),[2,l.accessToken];case 6:return[3,8];case 7:throw u;case 8:return[3,9];case 9:return[2]}})})},o}();return Gu.AuthCodeMSALBrowserAuthenticationProvider=n,Gu}var Ap={},fC;function BL(){return fC||(fC=1,Object.defineProperty(Ap,"__esModule",{value:!0})),Ap}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=_;t.__exportStar(LL(),e),t.__exportStar(BL(),e)})(kb);var rn;(function(e){e.GET="GET",e.PATCH="PATCH",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(rn||(rn={}));const UL="v1.0",HL="https://graph.microsoft.com/",zL=new Set(["graph.microsoft.com","graph.microsoft.us","dod-graph.microsoft.us","graph.microsoft.de","microsoftgraph.chinacloudapi.cn","canary.graph.microsoft.com"]);class qa extends Error{static setGraphClientError(t){let r;return t instanceof Error?r=t:(r=new qa,r.customError=t),r}constructor(t){super(t),Object.setPrototypeOf(this,qa.prototype)}}const KL=["$select","$expand","$orderby","$filter","$top","$skip","$skipToken","$count"],GL=e=>{const t=i=>i.replace(/\/+$/,""),r=i=>i.replace(/^\/+/,""),n=(i,a)=>[t(i),r(a)].join("/");return Array.prototype.slice.call(e).reduce(n)},Rp=e=>{const t=e&&e.constructor&&e.constructor.name;if(t==="Buffer"||t==="Blob"||t==="File"||t==="FormData"||typeof e=="string")return e;if(t==="ArrayBuffer")e=Buffer.from(e);else if(t==="Int8Array"||t==="Int16Array"||t==="Int32Array"||t==="Uint8Array"||t==="Uint16Array"||t==="Uint32Array"||t==="Uint8ClampedArray"||t==="Float32Array"||t==="Float64Array"||t==="DataView")e=Buffer.from(e.buffer);else try{e=JSON.stringify(e)}catch{throw new Error("Unable to stringify the content")}return e},Ab=e=>Pb(e),Rb=(e,t)=>(t.forEach(r=>qL(r)),Pb(e,t)),Pb=(e,t=zL)=>{if(e=e.toLowerCase(),e.indexOf("https://")!==-1){e=e.replace("https://","");const r=e.indexOf(":"),n=e.indexOf("/");let o="";if(n!==-1)return r!==-1&&r<n?(o=e.substring(0,r),t.has(o)):(o=e.substring(0,n),t.has(o))}return!1},qL=e=>{if(e.indexOf("/")!==-1)throw new qa("Please add only hosts or hostnames to the CustomHosts config. If the url is `http://example.com:3000/`, host is `example:3000`")};class Va{constructor(t=[]){this.middlewareOptions=new Map;for(const r of t){const n=r.constructor;this.middlewareOptions.set(n,r)}}getMiddlewareOptions(t){return this.middlewareOptions.get(t)}setMiddlewareOptions(t,r){this.middlewareOptions.set(t,r)}}const VL=()=>{let e="";for(let t=0;t<32;t++)(t===8||t===12||t===16||t===20)&&(e+="-"),e+=Math.floor(Math.random()*16).toString(16);return e},Mb=(e,t,r)=>{let n=null;if(typeof Request<"u"&&e instanceof Request)n=e.headers.get(r);else if(typeof t<"u"&&t.headers!==void 0)if(typeof Headers<"u"&&t.headers instanceof Headers)n=t.headers.get(r);else if(t.headers instanceof Array){const o=t.headers;for(let i=0,a=o.length;i<a;i++)if(o[i][0]===r){n=o[i][1];break}}else t.headers[r]!==void 0&&(n=t.headers[r]);return n},Fb=(e,t,r,n)=>{if(typeof Request<"u"&&e instanceof Request)e.headers.set(r,n);else if(typeof t<"u")if(t.headers===void 0)t.headers=new Headers({[r]:n});else if(typeof Headers<"u"&&t.headers instanceof Headers)t.headers.set(r,n);else if(t.headers instanceof Array){let o=0;const i=t.headers.length;for(;o<i;o++){const a=t.headers[o];if(a[0]===r){a[1]=n;break}}o===i&&t.headers.push([r,n])}else Object.assign(t.headers,{[r]:n})},Nb=(e,t,r,n)=>{typeof Request<"u"&&e instanceof Request?e.headers.append(r,n):typeof t<"u"&&(t.headers===void 0?t.headers=new Headers({[r]:n}):typeof Headers<"u"&&t.headers instanceof Headers?t.headers.append(r,n):t.headers instanceof Array?t.headers.push([r,n]):t.headers===void 0?t.headers={[r]:n}:t.headers[r]===void 0?t.headers[r]=n:t.headers[r]+=`, ${n}`)},WL=(e,t)=>_.__awaiter(void 0,void 0,void 0,function*(){const r=t.headers.get("Content-Type")?yield t.blob():yield Promise.resolve(void 0),{method:n,headers:o,referrer:i,referrerPolicy:a,mode:s,credentials:u,cache:l,redirect:c,integrity:d,keepalive:f,signal:h}=t;return new Request(e,{method:n,headers:o,body:r,referrer:i,referrerPolicy:a,mode:s,credentials:u,cache:l,redirect:c,integrity:d,keepalive:f,signal:h})});class jL{constructor(t,r){this.authenticationProvider=t,this.authenticationProviderOptions=r}}var mu;(function(e){e[e.NONE=0]="NONE",e[e.REDIRECT_HANDLER_ENABLED=1]="REDIRECT_HANDLER_ENABLED",e[e.RETRY_HANDLER_ENABLED=2]="RETRY_HANDLER_ENABLED",e[e.AUTHENTICATION_HANDLER_ENABLED=4]="AUTHENTICATION_HANDLER_ENABLED"})(mu||(mu={}));class ji{constructor(){this.featureUsage=mu.NONE}static updateFeatureUsageFlag(t,r){let n;t.middlewareControl instanceof Va?n=t.middlewareControl.getMiddlewareOptions(ji):t.middlewareControl=new Va,typeof n>"u"&&(n=new ji,t.middlewareControl.setMiddlewareOptions(ji,n)),n.setFeatureUsage(r)}setFeatureUsage(t){this.featureUsage=this.featureUsage|t}getFeatureUsage(){return this.featureUsage.toString(16)}}class sc{constructor(t){this.authenticationProvider=t}execute(t){return _.__awaiter(this,void 0,void 0,function*(){const r=typeof t.request=="string"?t.request:t.request.url;if(Ab(r)||t.customHosts&&Rb(r,t.customHosts)){let n;t.middlewareControl instanceof Va&&(n=t.middlewareControl.getMiddlewareOptions(jL));let o,i;n&&(o=n.authenticationProvider,i=n.authenticationProviderOptions),o||(o=this.authenticationProvider);const s=`Bearer ${yield o.getAccessToken(i)}`;Nb(t.request,t.options,sc.AUTHORIZATION_HEADER,s),ji.updateFeatureUsageFlag(t,mu.AUTHENTICATION_HANDLER_ENABLED)}else t.options.headers&&delete t.options.headers[sc.AUTHORIZATION_HEADER];return yield this.nextMiddleware.execute(t)})}setNext(t){this.nextMiddleware=t}}sc.AUTHORIZATION_HEADER="Authorization";class $L{execute(t){return _.__awaiter(this,void 0,void 0,function*(){t.response=yield fetch(t.request,t.options)})}}class _t{constructor(t=_t.DEFAULT_DELAY,r=_t.DEFAULT_MAX_RETRIES,n=_t.defaultShouldRetry){if(t>_t.MAX_DELAY&&r>_t.MAX_MAX_RETRIES){const o=new Error(`Delay and MaxRetries should not be more than ${_t.MAX_DELAY} and ${_t.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}else if(t>_t.MAX_DELAY){const o=new Error(`Delay should not be more than ${_t.MAX_DELAY}`);throw o.name="MaxLimitExceeded",o}else if(r>_t.MAX_MAX_RETRIES){const o=new Error(`MaxRetries should not be more than ${_t.MAX_MAX_RETRIES}`);throw o.name="MaxLimitExceeded",o}else if(t<0&&r<0){const o=new Error("Delay and MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}else if(t<0){const o=new Error("Delay should not be negative");throw o.name="MinExpectationNotMet",o}else if(r<0){const o=new Error("MaxRetries should not be negative");throw o.name="MinExpectationNotMet",o}this.delay=Math.min(t,_t.MAX_DELAY),this.maxRetries=Math.min(r,_t.MAX_MAX_RETRIES),this.shouldRetry=n}getMaxDelay(){return _t.MAX_DELAY}}_t.DEFAULT_DELAY=3;_t.DEFAULT_MAX_RETRIES=3;_t.MAX_DELAY=180;_t.MAX_MAX_RETRIES=10;_t.defaultShouldRetry=()=>!0;class $i{constructor(t=new _t){this.options=t}isRetry(t){return $i.RETRY_STATUS_CODES.indexOf(t.status)!==-1}isBuffered(t,r){const n=typeof t=="string"?r.method:t.method;return!((n===rn.PUT||n===rn.PATCH||n===rn.POST)&&Mb(t,r,"Content-Type")==="application/octet-stream")}getDelay(t,r,n){const o=()=>Number(Math.random().toFixed(3)),i=t.headers!==void 0?t.headers.get($i.RETRY_AFTER_HEADER):null;let a;return i!==null?Number.isNaN(Number(i))?a=Math.round((new Date(i).getTime()-Date.now())/1e3):a=Number(i):a=r>=2?this.getExponentialBackOffTime(r)+n+o():n+o(),Math.min(a,this.options.getMaxDelay()+o())}getExponentialBackOffTime(t){return Math.round(1/2*(Math.pow(2,t)-1))}sleep(t){return _.__awaiter(this,void 0,void 0,function*(){const r=t*1e3;return new Promise(n=>setTimeout(n,r))})}getOptions(t){let r;return t.middlewareControl instanceof Va&&(r=t.middlewareControl.getMiddlewareOptions(this.options.constructor)),typeof r>"u"&&(r=Object.assign(new _t,this.options)),r}executeWithRetry(t,r,n){return _.__awaiter(this,void 0,void 0,function*(){if(yield this.nextMiddleware.execute(t),r<n.maxRetries&&this.isRetry(t.response)&&this.isBuffered(t.request,t.options)&&n.shouldRetry(n.delay,r,t.request,t.options,t.response)){++r,Fb(t.request,t.options,$i.RETRY_ATTEMPT_HEADER,r.toString());const o=this.getDelay(t.response,r,n.delay);return yield this.sleep(o),yield this.executeWithRetry(t,r,n)}else return})}execute(t){return _.__awaiter(this,void 0,void 0,function*(){const n=this.getOptions(t);return ji.updateFeatureUsageFlag(t,mu.RETRY_HANDLER_ENABLED),yield this.executeWithRetry(t,0,n)})}setNext(t){this.nextMiddleware=t}}$i.RETRY_STATUS_CODES=[429,503,504];$i.RETRY_ATTEMPT_HEADER="Retry-Attempt";$i.RETRY_AFTER_HEADER="Retry-After";class Nn{constructor(t=Nn.DEFAULT_MAX_REDIRECTS,r=Nn.defaultShouldRedirect){if(t>Nn.MAX_MAX_REDIRECTS){const n=new Error(`MaxRedirects should not be more than ${Nn.MAX_MAX_REDIRECTS}`);throw n.name="MaxLimitExceeded",n}if(t<0){const n=new Error("MaxRedirects should not be negative");throw n.name="MinExpectationNotMet",n}this.maxRedirects=t,this.shouldRedirect=r}}Nn.DEFAULT_MAX_REDIRECTS=5;Nn.MAX_MAX_REDIRECTS=20;Nn.defaultShouldRedirect=()=>!0;class an{constructor(t=new Nn){this.options=t}isRedirect(t){return an.REDIRECT_STATUS_CODES.indexOf(t.status)!==-1}hasLocationHeader(t){return t.headers.has(an.LOCATION_HEADER)}getLocationHeader(t){return t.headers.get(an.LOCATION_HEADER)}isRelativeURL(t){return t.indexOf("://")===-1}shouldDropAuthorizationHeader(t,r){const n=/^[A-Za-z].+?:\/\/.+?(?=\/|$)/,o=n.exec(t);let i,a;o!==null&&(i=o[0]);const s=n.exec(r);return s!==null&&(a=s[0]),typeof i<"u"&&typeof a<"u"&&i!==a}updateRequestUrl(t,r){return _.__awaiter(this,void 0,void 0,function*(){r.request=typeof r.request=="string"?t:yield WL(t,r.request)})}getOptions(t){let r;return t.middlewareControl instanceof Va&&(r=t.middlewareControl.getMiddlewareOptions(Nn)),typeof r>"u"&&(r=Object.assign(new Nn,this.options)),r}executeWithRedirect(t,r,n){return _.__awaiter(this,void 0,void 0,function*(){yield this.nextMiddleware.execute(t);const o=t.response;if(r<n.maxRedirects&&this.isRedirect(o)&&this.hasLocationHeader(o)&&n.shouldRedirect(o)){if(++r,o.status===an.STATUS_CODE_SEE_OTHER)t.options.method=rn.GET,delete t.options.body;else{const i=this.getLocationHeader(o);!this.isRelativeURL(i)&&this.shouldDropAuthorizationHeader(o.url,i)&&delete t.options.headers[an.AUTHORIZATION_HEADER],yield this.updateRequestUrl(i,t)}yield this.executeWithRedirect(t,r,n)}else return})}execute(t){return _.__awaiter(this,void 0,void 0,function*(){const n=this.getOptions(t);return t.options.redirect=an.MANUAL_REDIRECT,ji.updateFeatureUsageFlag(t,mu.REDIRECT_HANDLER_ENABLED),yield this.executeWithRedirect(t,0,n)})}setNext(t){this.nextMiddleware=t}}an.REDIRECT_STATUS_CODES=[301,302,303,307,308];an.STATUS_CODE_SEE_OTHER=303;an.LOCATION_HEADER="Location";an.AUTHORIZATION_HEADER="Authorization";an.MANUAL_REDIRECT="manual";const QL="3.0.5";class nn{execute(t){return _.__awaiter(this,void 0,void 0,function*(){const r=typeof t.request=="string"?t.request:t.request.url;if(Ab(r)||t.customHosts&&Rb(r,t.customHosts)){let n=Mb(t.request,t.options,nn.CLIENT_REQUEST_ID_HEADER);n||(n=VL(),Fb(t.request,t.options,nn.CLIENT_REQUEST_ID_HEADER,n));let o=`${nn.PRODUCT_NAME}/${QL}`,i;if(t.middlewareControl instanceof Va&&(i=t.middlewareControl.getMiddlewareOptions(ji)),i){const a=i.getFeatureUsage();o+=` (${nn.FEATURE_USAGE_STRING}=${a})`}Nb(t.request,t.options,nn.SDK_VERSION_HEADER,o)}else delete t.options.headers[nn.CLIENT_REQUEST_ID_HEADER],delete t.options.headers[nn.SDK_VERSION_HEADER];return yield this.nextMiddleware.execute(t)})}setNext(t){this.nextMiddleware=t}}nn.CLIENT_REQUEST_ID_HEADER="client-request-id";nn.SDK_VERSION_HEADER="SdkVersion";nn.PRODUCT_NAME="graph-js";nn.FEATURE_USAGE_STRING="featureUsage";var hC;(function(e){e[e.MANUAL=0]="MANUAL",e[e.RANDOM=1]="RANDOM"})(hC||(hC={}));var go;(function(e){e.ARRAYBUFFER="arraybuffer",e.BLOB="blob",e.DOCUMENT="document",e.JSON="json",e.RAW="raw",e.STREAM="stream",e.TEXT="text"})(go||(go={}));var fg;(function(e){e.TEXT_HTML="text/html",e.TEXT_XML="text/xml",e.APPLICATION_XML="application/xml",e.APPLICATION_XHTML="application/xhtml+xml"})(fg||(fg={}));var Uf;(function(e){e.TEXT_PLAIN="text/plain",e.APPLICATION_JSON="application/json"})(Uf||(Uf={}));var Hf;(function(e){e.DOCUMENT="^(text\\/(html|xml))|(application\\/(xml|xhtml\\+xml))$",e.IMAGE="^image\\/.+"})(Hf||(Hf={}));class _l{static parseDocumentResponse(t,r){return typeof DOMParser<"u"?new Promise((n,o)=>{t.text().then(i=>{try{const s=new DOMParser().parseFromString(i,r);n(s)}catch(a){o(a)}})}):Promise.resolve(t.body)}static convertResponse(t,r){return _.__awaiter(this,void 0,void 0,function*(){if(t.status===204)return Promise.resolve();let n;const o=t.headers.get("Content-type");switch(r){case go.ARRAYBUFFER:n=yield t.arrayBuffer();break;case go.BLOB:n=yield t.blob();break;case go.DOCUMENT:n=yield _l.parseDocumentResponse(t,fg.TEXT_XML);break;case go.JSON:n=yield t.json();break;case go.STREAM:n=yield Promise.resolve(t.body);break;case go.TEXT:n=yield t.text();break;default:if(o!==null){const i=o.split(";")[0];new RegExp(Hf.DOCUMENT).test(i)?n=yield _l.parseDocumentResponse(t,i):new RegExp(Hf.IMAGE).test(i)?n=t.blob():i===Uf.TEXT_PLAIN?n=yield t.text():i===Uf.APPLICATION_JSON?n=yield t.json():n=Promise.resolve(t.body)}else n=Promise.resolve(t.body);break}return n})}static getResponse(t,r,n){return _.__awaiter(this,void 0,void 0,function*(){if(r===go.RAW)return Promise.resolve(t);{const o=yield _l.convertResponse(t,r);if(t.ok)if(typeof n=="function")n(null,o);else return o;else throw o}})}}class YL{constructor(t){this.provider=t}getAccessToken(){return _.__awaiter(this,void 0,void 0,function*(){return new Promise((t,r)=>{this.provider((n,o)=>_.__awaiter(this,void 0,void 0,function*(){if(o)t(o);else{if(!n){const a="Access token is undefined or empty.						Please provide a valid token.						For more help - https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CustomAuthenticationProvider.md";n=new qa(a)}const i=yield qa.setGraphClientError(n);r(i)}}))})})}}class Cl extends Error{constructor(t=-1,r,n){super(r||n&&n.message),Object.setPrototypeOf(this,Cl.prototype),this.statusCode=t,this.code=null,this.requestId=null,this.date=new Date,this.body=null,this.stack=n?n.stack:this.stack}}class zf{static constructError(t,r,n){const o=new Cl(r,"",t);return t.name!==void 0&&(o.code=t.name),o.body=t.toString(),o.date=new Date,o.headers=n==null?void 0:n.headers,o}static constructErrorFromResponse(t,r,n){const o=t.error,i=new Cl(r,o.message);return i.code=o.code,o.innerError!==void 0&&(i.requestId=o.innerError["request-id"],i.date=new Date(o.innerError.date)),i.body=JSON.stringify(o),i.headers=n==null?void 0:n.headers,i}static getError(t=null,r=-1,n,o){return _.__awaiter(this,void 0,void 0,function*(){let i;if(t&&t.error?i=zf.constructErrorFromResponse(t,r,o):t instanceof Error?i=zf.constructError(t,r,o):(i=new Cl(r),i.body=t),typeof n=="function")n(i,null);else return i})}}class XL{constructor(t,r,n){this.parsePath=o=>{if(o.indexOf("https://")!==-1){o=o.replace("https://","");const a=o.indexOf("/");a!==-1&&(this.urlComponents.host="https://"+o.substring(0,a),o=o.substring(a+1,o.length));const s=o.indexOf("/");s!==-1&&(this.urlComponents.version=o.substring(0,s),o=o.substring(s+1,o.length))}o.charAt(0)==="/"&&(o=o.substr(1));const i=o.indexOf("?");if(i===-1)this.urlComponents.path=o;else{this.urlComponents.path=o.substr(0,i);const a=o.substring(i+1,o.length).split("&");for(const s of a)this.parseQueryParameter(s)}},this.httpClient=t,this.config=r,this.urlComponents={host:this.config.baseUrl,version:this.config.defaultVersion,oDataQueryParams:{},otherURLQueryParams:{},otherURLQueryOptions:[]},this._headers={},this._options={},this._middlewareOptions=[],this.parsePath(n)}addCsvQueryParameter(t,r,n){this.urlComponents.oDataQueryParams[t]=this.urlComponents.oDataQueryParams[t]?this.urlComponents.oDataQueryParams[t]+",":"";let o=[];n.length>1&&typeof r=="string"?o=Array.prototype.slice.call(n):typeof r=="string"?o.push(r):o=o.concat(r),this.urlComponents.oDataQueryParams[t]+=o.join(",")}buildFullUrl(){const t=GL([this.urlComponents.host,this.urlComponents.version,this.urlComponents.path])+this.createQueryString();return this.config.debugLogging&&console.log(t),t}createQueryString(){const t=this.urlComponents,r=[];if(Object.keys(t.oDataQueryParams).length!==0)for(const n in t.oDataQueryParams)Object.prototype.hasOwnProperty.call(t.oDataQueryParams,n)&&r.push(n+"="+t.oDataQueryParams[n]);if(Object.keys(t.otherURLQueryParams).length!==0)for(const n in t.otherURLQueryParams)Object.prototype.hasOwnProperty.call(t.otherURLQueryParams,n)&&r.push(n+"="+t.otherURLQueryParams[n]);if(t.otherURLQueryOptions.length!==0)for(const n of t.otherURLQueryOptions)r.push(n);return r.length>0?"?"+r.join("&"):""}parseQueryParameter(t){if(typeof t=="string")if(t.charAt(0)==="?"&&(t=t.substring(1)),t.indexOf("&")!==-1){const r=t.split("&");for(const n of r)this.parseQueryParamenterString(n)}else this.parseQueryParamenterString(t);else if(t.constructor===Object)for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.setURLComponentsQueryParamater(r,t[r]);return this}parseQueryParamenterString(t){if(this.isValidQueryKeyValuePair(t)){const r=t.indexOf("="),n=t.substring(0,r),o=t.substring(r+1);this.setURLComponentsQueryParamater(n,o)}else this.urlComponents.otherURLQueryOptions.push(t)}setURLComponentsQueryParamater(t,r){if(KL.indexOf(t)!==-1){const n=this.urlComponents.oDataQueryParams[t],o=n&&(t==="$expand"||t==="$select"||t==="$orderby");this.urlComponents.oDataQueryParams[t]=o?n+","+r:r}else this.urlComponents.otherURLQueryParams[t]=r}isValidQueryKeyValuePair(t){const r=t.indexOf("=");return!(r===-1||t.indexOf("(")!==-1&&t.indexOf("(")<r)}updateRequestOptions(t){const r=Object.assign({},t.headers);if(this.config.fetchOptions!==void 0){const n=Object.assign({},this.config.fetchOptions);Object.assign(t,n),typeof this.config.fetchOptions.headers!==void 0&&(t.headers=Object.assign({},this.config.fetchOptions.headers))}Object.assign(t,this._options),t.headers!==void 0&&Object.assign(r,t.headers),Object.assign(r,this._headers),t.headers=r}send(t,r,n){var o;return _.__awaiter(this,void 0,void 0,function*(){let i;const a=new Va(this._middlewareOptions);this.updateRequestOptions(r);const s=(o=this.config)===null||o===void 0?void 0:o.customHosts;try{return i=(yield this.httpClient.sendRequest({request:t,options:r,middlewareControl:a,customHosts:s})).response,yield _l.getResponse(i,this._responseType,n)}catch(u){if(u instanceof qa)throw u;let l;throw i&&(l=i.status),yield zf.getError(u,l,n,i)}})}setHeaderContentType(){if(!this._headers){this.header("Content-Type","application/json");return}const t=Object.keys(this._headers);for(const r of t)if(r.toLowerCase()==="content-type")return;this.header("Content-Type","application/json")}header(t,r){return this._headers[t]=r,this}headers(t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._headers[r]=t[r]);return this}option(t,r){return this._options[t]=r,this}options(t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._options[r]=t[r]);return this}middlewareOptions(t){return this._middlewareOptions=t,this}version(t){return this.urlComponents.version=t,this}responseType(t){return this._responseType=t,this}select(t){return this.addCsvQueryParameter("$select",t,arguments),this}expand(t){return this.addCsvQueryParameter("$expand",t,arguments),this}orderby(t){return this.addCsvQueryParameter("$orderby",t,arguments),this}filter(t){return this.urlComponents.oDataQueryParams.$filter=t,this}search(t){return this.urlComponents.oDataQueryParams.$search=t,this}top(t){return this.urlComponents.oDataQueryParams.$top=t,this}skip(t){return this.urlComponents.oDataQueryParams.$skip=t,this}skipToken(t){return this.urlComponents.oDataQueryParams.$skipToken=t,this}count(t=!0){return this.urlComponents.oDataQueryParams.$count=t.toString(),this}query(t){return this.parseQueryParameter(t)}get(t){return _.__awaiter(this,void 0,void 0,function*(){const r=this.buildFullUrl(),n={method:rn.GET};return yield this.send(r,n,t)})}post(t,r){return _.__awaiter(this,void 0,void 0,function*(){const n=this.buildFullUrl(),o={method:rn.POST,body:Rp(t)};return(t&&t.constructor&&t.constructor.name)==="FormData"?o.headers={}:(this.setHeaderContentType(),o.headers=this._headers),yield this.send(n,o,r)})}create(t,r){return _.__awaiter(this,void 0,void 0,function*(){return yield this.post(t,r)})}put(t,r){return _.__awaiter(this,void 0,void 0,function*(){const n=this.buildFullUrl();this.setHeaderContentType();const o={method:rn.PUT,body:Rp(t)};return yield this.send(n,o,r)})}patch(t,r){return _.__awaiter(this,void 0,void 0,function*(){const n=this.buildFullUrl();this.setHeaderContentType();const o={method:rn.PATCH,body:Rp(t)};return yield this.send(n,o,r)})}update(t,r){return _.__awaiter(this,void 0,void 0,function*(){return yield this.patch(t,r)})}delete(t){return _.__awaiter(this,void 0,void 0,function*(){const r=this.buildFullUrl(),n={method:rn.DELETE};return yield this.send(r,n,t)})}del(t){return _.__awaiter(this,void 0,void 0,function*(){return yield this.delete(t)})}getStream(t){return _.__awaiter(this,void 0,void 0,function*(){const r=this.buildFullUrl(),n={method:rn.GET};return this.responseType(go.STREAM),yield this.send(r,n,t)})}putStream(t,r){return _.__awaiter(this,void 0,void 0,function*(){const n=this.buildFullUrl(),o={method:rn.PUT,headers:{"Content-Type":"application/octet-stream"},body:t};return yield this.send(n,o,r)})}}class xb{constructor(...t){if(!t||!t.length){const r=new Error;throw r.name="InvalidMiddlewareChain",r.message="Please provide a default middleware chain or custom middleware chain",r}this.setMiddleware(...t)}setMiddleware(...t){t.length>1?this.parseMiddleWareArray(t):this.middleware=t[0]}parseMiddleWareArray(t){t.forEach((r,n)=>{n<t.length-1&&r.setNext(t[n+1])}),this.middleware=t[0]}sendRequest(t){return _.__awaiter(this,void 0,void 0,function*(){if(typeof t.request=="string"&&t.options===void 0){const r=new Error;throw r.name="InvalidRequestOptions",r.message="Unable to execute the middleware, Please provide valid options for a request",r}return yield this.middleware.execute(t),t})}}const JL=()=>typeof process=="object"&&typeof require=="function";class ty{static createWithAuthenticationProvider(t){const r=new sc(t),n=new $i(new _t),o=new nn,i=new $L;if(r.setNext(n),JL()){const a=new an(new Nn);n.setNext(a),a.setNext(o)}else n.setNext(o);return o.setNext(i),ty.createWithMiddleware(r)}static createWithMiddleware(...t){return new xb(...t)}}const ZL=()=>{if(typeof Promise>"u"&&typeof fetch>"u"){const e=new Error("Library cannot function without Promise and fetch. So, please provide polyfill for them.");throw e.name="PolyFillNotAvailable",e}else if(typeof Promise>"u"){const e=new Error("Library cannot function without Promise. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}else if(typeof fetch>"u"){const e=new Error("Library cannot function without fetch. So, please provide polyfill for it.");throw e.name="PolyFillNotAvailable",e}return!0};class Kf{static init(t){const r={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=n==="authProvider"?new YL(t[n]):t[n]);return Kf.initWithMiddleware(r)}static initWithMiddleware(t){return new Kf(t)}constructor(t){this.config={baseUrl:HL,debugLogging:!1,defaultVersion:UL},ZL();for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(this.config[n]=t[n]);let r;if(t.authProvider!==void 0&&t.middleware!==void 0){const n=new Error;throw n.name="AmbiguityInInitialization",n.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain not both",n}else if(t.authProvider!==void 0)r=ty.createWithAuthenticationProvider(t.authProvider);else if(t.middleware!==void 0)r=new xb(...[].concat(t.middleware));else{const n=new Error;throw n.name="InvalidMiddlewareChain",n.message="Unable to Create Client, Please provide either authentication provider for default middleware chain or custom middleware chain",n}this.httpClient=r}api(t){return new XL(this.httpClient,this.config,t)}}let Sl;function Db(e){return Sl||(Sl=Kf.initWithMiddleware({authProvider:e})),Sl}async function pC(e){return Db(e),await Sl.api("/me").select("displayName,mail,userPrincipalName,photo").get()}async function eB(e){Db(e);let t=await Sl.api("/me/photo/$value").get();return(window.URL||window.webkitURL).createObjectURL(t)}let id;const tB=new Uint8Array(16);function rB(){if(!id&&(id=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!id))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return id(tB)}const ir=[];for(let e=0;e<256;++e)ir.push((e+256).toString(16).slice(1));function nB(e,t=0){return(ir[e[t+0]]+ir[e[t+1]]+ir[e[t+2]]+ir[e[t+3]]+"-"+ir[e[t+4]]+ir[e[t+5]]+"-"+ir[e[t+6]]+ir[e[t+7]]+"-"+ir[e[t+8]]+ir[e[t+9]]+"-"+ir[e[t+10]]+ir[e[t+11]]+ir[e[t+12]]+ir[e[t+13]]+ir[e[t+14]]+ir[e[t+15]]).toLowerCase()}const oB=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mC={randomUUID:oB};function iB(e,t,r){if(mC.randomUUID&&!t&&!e)return mC.randomUUID();e=e||{};const n=e.random||(e.rng||rB)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let o=0;o<16;++o)t[r+o]=n[o];return t}return nB(n)}const Ob=p.createContext({user:void 0,error:void 0,accessToken:void 0,sessionId:void 0,signIn:void 0,signOut:void 0,displayError:void 0,clearError:void 0,authProvider:void 0});function Ic(){return p.useContext(Ob)}function aB({children:e}){const t=sB();return K(Ob.Provider,{value:t,children:e})}function sB(){const e=Ch(),[t,r]=p.useState(void 0),[n,o]=p.useState(void 0),[i,a]=p.useState(void 0),[s,u]=p.useState(void 0),[l,c]=p.useState(!1),d=(E,v)=>{o({message:E,debug:v})},f=()=>{o(void 0)},h=new kb.AuthCodeMSALBrowserAuthenticationProvider(e.instance,{account:e.instance.getActiveAccount(),scopes:["user.read"],interactionType:ie.Popup});return p.useEffect(()=>{(async()=>{if(!t)try{const v=e.instance.getActiveAccount();if(v){const g=await pC(h);console.log("user",g);const C=await eB(h);r({displayName:g.displayName||"",email:g.mail||"",avatar:C||""}),e.instance.acquireTokenSilent({scopes:["user.read"],account:v}).then(function(S){a({accessToken:S.accessToken}),console.log("token",S.accessToken),console.log("session id",S.idTokenClaims)}),u({sessionId:iB()})}}catch(v){d(v.message)}})()}),{user:t,error:n,accessToken:i,sessionId:s,signIn:async()=>{await e.instance.loginPopup({scopes:["user.read"],prompt:"select_account"});const E=await pC(h);r({displayName:E.displayName||"",email:E.mail||""}),c(!0)},signOut:async()=>{await e.instance.logoutPopup(),r(void 0),c(!1)},displayError:d,clearError:f,authProvider:h,isAuthenticated:l}}function uB(){var h,m,y;const e=Ic(),t={imageUrl:((h=e.user)==null?void 0:h.avatar)||"",text:((m=e.user)==null?void 0:m.displayName)||"Anonymous",secondaryText:((y=e.user)==null?void 0:y.email)||""},r=Ja({button:{width:130},callout:{background:"white",width:250,maxWidth:"100%"}}),n={childrenGap:3},o={childrenGap:5},i={root:{height:150}},a={root:{alignItems:"center",display:"flex",justifyContent:"center",backgroundColor:"white",height:"100%"}},s={root:{alignItems:"center",display:"flex",justifyContent:"center",backgroundColor:"rgb(248, 248, 248)",height:"50px",fontSize:"5px"}},[u,{toggle:l}]=Xm(!1),c=Vi("callout-button"),d=Vi("callout-label"),f=Vi("callout-description");return at(Ud,{children:[K(Ip,{children:K(el,{id:c,onClick:l,...t,size:_e.size32,hidePersonaDetails:!0})}),K(kp,{children:K(el,{id:c,onClick:l,initialsColor:Se.darkBlue,size:_e.size32})}),u&&K(cT,{children:K(du,{className:r.callout,ariaLabelledBy:d,ariaDescribedBy:f,role:"dialog",gapSpace:10,target:`#${c}`,onDismiss:l,directionalHint:Et.bottomRightEdge,setInitialFocus:!0,isBeakVisible:!1,children:K(rt,{enableScopedSelectors:!0,tokens:n,children:at(rt,{enableScopedSelectors:!0,styles:i,tokens:o,children:[at(rt.Item,{styles:a,children:[K(Ip,{children:K(el,{...t,size:_e.size48})}),K(kp,{children:K(el,{initialsColor:Se.darkBlue,...t,size:_e.size48})})]}),at(rt.Item,{styles:s,children:[K(Ip,{children:K(To,{onClick:e.signOut,children:"Sign Out"})}),K(kp,{children:K(To,{onClick:e.signIn,children:"Sign in"})})]})]})})})})]})}const gC="/assets/github-8c68b25d.svg",Ei=Ja({commandBar:{backgroundColor:yf.blue,alignItems:"center",justifyContent:"center",height:"40px%"},button:{width:130},callout:{background:"white",width:250,height:200,maxWidth:"100%",padding:"10px"},stack:{display:"flex",alignItems:"center",justifyContent:"left",padding:"10px",textDecoration:"none"}});function lB(){const e=Vi("callout-button"),t=Vi("callout-button"),[r,{toggle:n}]=Xm(!1),[o,{toggle:i}]=Xm(!1),a=[{key:"help",text:"Help",iconProps:{iconName:"Help",styles:{root:{color:"white"}}},style:{backgroundColor:"rgb(0, 120, 212)"},iconOnly:!0,id:e,onClick:n},{key:"info",text:"Info",ariaLabel:"Info",iconOnly:!0,iconProps:{iconName:"Info",styles:{root:{color:"white"}}},style:{backgroundColor:"rgb(0, 120, 212)"},id:t,onClick:i}],s={semanticColors:{bodyBackground:yf.blue,bodyText:"white"}};return at(Ud,{children:[K(rb,{theme:s,children:K(hD,{items:a,style:{height:"100%"}})}),r&&K(du,{role:"dialog",target:`#${e}`,className:Ei.callout,setInitialFocus:!0,onDismiss:n,children:at(rt,{children:[K(rt.Item,{children:at(To,{className:Ei.stack,children:[K("img",{src:gC,alt:"Github logo","aria-label":"Link to github repository",height:"20px",style:{padding:"0 5px 0 0"}}),"Sample code"]})}),K(rt.Item,{className:Ei.stack,children:"Visit the GitHub repo to check the source code of this application. experience."}),K(rt.Item,{className:Ei.stack,children:at("a",{href:"https://github.com/Azure/openai-at-scale",target:"_blank",title:"Github repository link",style:{color:"rgb(1, 92, 218)"},children:["Azure/openai-at-scale",K(ec,{"aria-label":"NavigateExternalInline",iconName:"NavigateExternalInline",style:{paddingLeft:"5px"}})]})})]})}),o&&K(du,{role:"dialog",target:`#${t}`,className:Ei.callout,setInitialFocus:!0,onDismiss:i,children:at(rt,{children:[K(rt.Item,{children:at(To,{className:Ei.stack,children:[K("img",{src:gC,alt:"Github logo","aria-label":"Link to github repository",height:"20px",style:{padding:"0 5px 0 0"}}),"Sample code"]})}),K(rt.Item,{className:Ei.stack,children:"Visit the GitHub repo to check the source code of this application. experience."}),K(rt.Item,{className:Ei.stack,children:at("a",{href:"https://github.com/Azure/openai-at-scale",target:"_blank",title:"Github repository link",style:{color:"rgb(1, 92, 218)"},children:["Azure/openai-at-scale",K(ec,{"aria-label":"NavigateExternalInline",iconName:"NavigateExternalInline",style:{paddingLeft:"5px"}})]})})]})})]})}const cB=()=>at("div",{className:ga.layout,children:[K("header",{role:"banner",children:at(rt,{horizontal:!0,className:ga.header,children:[K(rt.Item,{align:"center",grow:!0,className:ga.headerTitle,children:K(dR,{to:"/",className:ga.headerTitleText,children:"OpenAI at Scale"})}),K(rt.Item,{align:"center",grow:!0,disableShrink:!0,className:ga.headerCommandBar,children:K(lB,{})}),K(rt.Item,{align:"center",grow:!0,disableShrink:!0,className:ga.headerAvatar,children:K("div",{className:ga.headerAvatar,children:K(uB,{})})})]})}),K(rR,{})]}),dB=()=>K("h1",{children:"404 Error"}),Pp=typeof window>"u"?global:window,Mp="@griffel/";function fB(e,t){return Pp[Symbol.for(Mp+e)]||(Pp[Symbol.for(Mp+e)]=t),Pp[Symbol.for(Mp+e)]}const hg=fB("DEFINITION_LOOKUP_TABLE",{}),Nd="data-make-styles-bucket",pg=7,ry="___",hB=ry.length+pg,pB=0,mB=1;function gB(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function vB(e){const t=e.length;if(t===pg)return e;for(let r=t;r<pg;r++)e+="0";return e}function Lb(e,t,r=[]){return ry+vB(gB(e+t))}function Bb(e,t){let r="";for(const n in e){const o=e[n];if(o){const i=Array.isArray(o);t==="rtl"?r+=(i?o[1]:o)+" ":r+=(i?o[0]:o)+" "}}return r.slice(0,-1)}function vC(e,t){const r={};for(const n in e){const o=Bb(e[n],t);if(o===""){r[n]="";continue}const i=Lb(o,t),a=i+" "+o;hg[i]=[e[n],t],r[n]=a}return r}const yC={};function mg(){let e=null,t="",r="";const n=new Array(arguments.length);for(let l=0;l<arguments.length;l++){const c=arguments[l];if(typeof c=="string"&&c!==""){const d=c.indexOf(ry);if(d===-1)t+=c+" ";else{const f=c.substr(d,hB);d>0&&(t+=c.slice(0,d)),r+=f,n[l]=f}}}if(r==="")return t.slice(0,-1);const o=yC[r];if(o!==void 0)return t+o;const i=[];for(let l=0;l<arguments.length;l++){const c=n[l];if(c){const d=hg[c];d&&(i.push(d[pB]),e=d[mB])}}const a=Object.assign.apply(Object,[{}].concat(i));let s=Bb(a,e);const u=Lb(s,e,n);return s=u+" "+s,yC[r]=s,hg[u]=[a,e],t+s}function yB(e){return Array.isArray(e)?e:[e]}function EB(e,t,r){const n=[];if(r[Nd]=t,e)for(const i in r)e.setAttribute(i,r[i]);function o(i){return e!=null&&e.sheet?e.sheet.insertRule(i,e.sheet.cssRules.length):n.push(i)}return{elementAttributes:r,insertRule:o,element:e,bucketName:t,cssRules(){return e!=null&&e.sheet?Array.from(e.sheet.cssRules).map(i=>i.cssText):n}}}const _B=["r","d","l","v","w","f","i","h","a","k","t","m"],EC=_B.reduce((e,t,r)=>(e[t]=r,e),{});function CB(e,t,r,n,o={}){const i=e==="m",a=i?e+o.m:e;if(!n.stylesheets[a]){const s=t&&t.createElement("style"),u=EB(s,e,{...n.styleElementAttributes,...i&&{media:o.m}});n.stylesheets[a]=u,t&&s&&t.head.insertBefore(s,SB(t,r,e,n,o))}return n.stylesheets[a]}function SB(e,t,r,n,o){const i=EC[r];let a=c=>i-EC[c.getAttribute(Nd)],s=e.head.querySelectorAll(`[${Nd}]`);if(r==="m"&&o){const c=e.head.querySelectorAll(`[${Nd}="${r}"]`);c.length&&(s=c,a=d=>n.compareMediaQueries(o.m,d.media))}const u=s.length;let l=u-1;for(;l>=0;){const c=s.item(l);if(a(c)>0)return c.nextSibling;l--}return u>0?s.item(0):t?t.nextSibling:null}let wB=0;const TB=(e,t)=>e<t?-1:e>t?1:0;function bB(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:r,insertionPoint:n,styleElementAttributes:o,compareMediaQueries:i=TB}=t,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:i,id:`d${wB++}`,insertCSSRules(s){for(const u in s){const l=s[u];for(let c=0,d=l.length;c<d;c++){const[f,h]=yB(l[c]),m=CB(u,e,n||null,a,h);if(!a.insertionCache[f]){a.insertionCache[f]=u;try{r?r(f)&&m.insertRule(f):m.insertRule(f)}catch{}}}}}};return a}function IB(e,t){const r={};let n=null,o=null;function i(a){const{dir:s,renderer:u}=a,l=s==="ltr",c=l?u.id:u.id+"r";return l?n===null&&(n=vC(e,s)):o===null&&(o=vC(e,s)),r[c]===void 0&&(u.insertCSSRules(t),r[c]=!0),l?n:o}return i}const kB=p.createContext(bB());function AB(){return p.useContext(kB)}const RB=p.createContext("ltr");function PB(){return p.useContext(RB)}function Ub(e,t){const r=IB(e,t);return function(){const o=PB(),i=AB();return r({dir:o,renderer:i})}}const Hb=p.createContext(void 0),X=()=>{},MB={useAccordionHeaderStyles_unstable:X,useAccordionItemStyles_unstable:X,useAccordionPanelStyles_unstable:X,useAccordionStyles_unstable:X,useAvatarStyles_unstable:X,useAvatarGroupStyles_unstable:X,useAvatarGroupItemStyles_unstable:X,useAvatarGroupPopoverStyles_unstable:X,useBadgeStyles_unstable:X,useCounterBadgeStyles_unstable:X,useCardHeaderStyles_unstable:X,useCardStyles_unstable:X,useCardFooterStyles_unstable:X,useCardPreviewStyles_unstable:X,usePresenceBadgeStyles_unstable:X,useButtonStyles_unstable:X,useCompoundButtonStyles_unstable:X,useMenuButtonStyles_unstable:X,useSplitButtonStyles_unstable:X,useToggleButtonStyles_unstable:X,useCheckboxStyles_unstable:X,useComboboxStyles_unstable:X,useDropdownStyles_unstable:X,useListboxStyles_unstable:X,useOptionStyles_unstable:X,useOptionGroupStyles_unstable:X,useDividerStyles_unstable:X,useInputStyles_unstable:X,useImageStyles_unstable:X,useLabelStyles_unstable:X,useLinkStyles_unstable:X,useMenuDividerStyles_unstable:X,useMenuGroupHeaderStyles_unstable:X,useMenuGroupStyles_unstable:X,useMenuItemCheckboxStyles_unstable:X,useMenuItemRadioStyles_unstable:X,useMenuItemStyles_unstable:X,useMenuListStyles_unstable:X,useMenuPopoverStyles_unstable:X,useMenuSplitGroupStyles_unstable:X,usePersonaStyles_unstable:X,usePopoverSurfaceStyles_unstable:X,useRadioGroupStyles_unstable:X,useRadioStyles_unstable:X,useSelectStyles_unstable:X,useSliderStyles_unstable:X,useSpinButtonStyles_unstable:X,useSpinnerStyles_unstable:X,useSwitchStyles_unstable:X,useTabStyles_unstable:X,useTabListStyles_unstable:X,useTextStyles_unstable:X,useTextareaStyles_unstable:X,useTooltipStyles_unstable:X,useDialogTitleStyles_unstable:X,useDialogBodyStyles_unstable:X,useDialogActionsStyles_unstable:X,useDialogSurfaceStyles_unstable:X,useDialogContentStyles_unstable:X,useProgressBarStyles_unstable:X,useToolbarButtonStyles_unstable:X,useToolbarRadioButtonStyles_unstable:X,useToolbarGroupStyles_unstable:X,useToolbarToggleButtonStyles_unstable:X,useToolbarDividerStyles_unstable:X,useToolbarStyles_unstable:X,useTableCellStyles_unstable:X,useTableRowStyles_unstable:X,useTableBodyStyles_unstable:X,useTableStyles_unstable:X,useTableHeaderStyles_unstable:X,useTableHeaderCellStyles_unstable:X,useTableResizeHandleStyles_unstable:X,useTableSelectionCellStyles_unstable:X,useTableCellActionsStyles_unstable:X,useTableCellLayoutStyles_unstable:X,useDataGridCellStyles_unstable:X,useDataGridRowStyles_unstable:X,useDataGridBodyStyles_unstable:X,useDataGridStyles_unstable:X,useDataGridHeaderStyles_unstable:X,useDataGridHeaderCellStyles_unstable:X,useDataGridSelectionCellStyles_unstable:X};Hb.Provider;function FB(){var e;return(e=p.useContext(Hb))!==null&&e!==void 0?e:MB}function NB(e,t){const r={};for(const n in e)t.indexOf(n)===-1&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function xB(e){const t={},r={},n=Object.keys(e.components);for(const o of n){const[i,a]=DB(e,o);t[o]=i,r[o]=a}return{slots:t,slotProps:r}}function DB(e,t){var r,n,o;if(e[t]===void 0)return[null,void 0];const{children:i,as:a,...s}=e[t],u=((r=e.components)===null||r===void 0?void 0:r[t])===void 0||typeof e.components[t]=="string"?a||((n=e.components)===null||n===void 0?void 0:n[t])||"div":e.components[t];if(typeof i=="function"){const d=i;return[p.Fragment,{children:d(u,s)}]}const c=typeof u=="string"&&((o=e[t])===null||o===void 0?void 0:o.as)?NB(e[t],["as"]):e[t];return[u,c]}const OB=(e,t)=>{const{required:r=!1,defaultProps:n}=t||{};if(e===null||e===void 0&&!r)return;let o={};return typeof e=="string"||typeof e=="number"||Array.isArray(e)||p.isValidElement(e)?o.children=e:typeof e=="object"&&(o={...e}),n?{...n,...o}:o},ut=(...e)=>{const t={};for(const r of e){const n=Array.isArray(r)?r:Object.keys(r);for(const o of n)t[o]=1}return t},LB=ut(["onAuxClick","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),BB=ut(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),UB=ut(["itemID","itemProp","itemRef","itemScope","itemType"]),Bt=ut(BB,LB,UB),HB=ut(Bt,["form"]),zb=ut(Bt,["height","loop","muted","preload","src","width"]),zB=ut(zb,["poster"]),KB=ut(Bt,["start"]),GB=ut(Bt,["value"]),qB=ut(Bt,["download","href","hrefLang","media","rel","target","type"]),VB=ut(Bt,["dateTime"]),Sh=ut(Bt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),WB=ut(Sh,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),jB=ut(Sh,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),$B=ut(Sh,["form","multiple","required"]),QB=ut(Bt,["selected","value"]),YB=ut(Bt,["cellPadding","cellSpacing"]),XB=Bt,JB=ut(Bt,["colSpan","rowSpan","scope"]),ZB=ut(Bt,["colSpan","headers","rowSpan","scope"]),e4=ut(Bt,["span"]),t4=ut(Bt,["span"]),r4=ut(Bt,["disabled","form"]),n4=ut(Bt,["acceptCharset","action","encType","encType","method","noValidate","target"]),o4=ut(Bt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),i4=ut(Bt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),a4=ut(Bt,["open","onCancel","onClose"]);function s4(e,t,r){const n=Array.isArray(t),o={},i=Object.keys(e);for(const a of i)(!n&&t[a]||n&&t.indexOf(a)>=0||a.indexOf("data-")===0||a.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(a))===-1)&&(o[a]=e[a]);return o}const u4={label:HB,audio:zb,video:zB,ol:KB,li:GB,a:qB,button:Sh,input:WB,textarea:jB,select:$B,option:QB,table:YB,tr:XB,th:JB,td:ZB,colGroup:e4,col:t4,fieldset:r4,form:n4,iframe:o4,img:i4,time:VB,dialog:a4};function l4(e,t,r){const n=e&&u4[e]||Bt;return n.as=1,s4(t,n,r)}const c4=Ub({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),d4=e=>{const{title:t,primaryFill:r="currentColor"}=e,n=_.__rest(e,["title","primaryFill"]),o=Object.assign(Object.assign({},n),{title:void 0,fill:r}),i=c4();return o.className=mg(i.root,o.className),t&&(o["aria-label"]=t),!o["aria-label"]&&!o["aria-labelledby"]?o["aria-hidden"]=!0:o.role="img",o},f4=(e,t)=>{const r=n=>{const o=d4(n);return p.createElement(e,Object.assign({},o))};return r.displayName=t,r},wh=f4,h4=e=>{const{fill:t="currentColor",className:r}=e;return p.createElement("svg",Object.assign({},e,{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:r}),p.createElement("path",{d:"M17.5 12a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-5.48 2c-.3.46-.53.97-.7 1.5H4.24a.75.75 0 0 0-.75.75v.9c0 .66.29 1.29.79 1.71C5.55 19.94 7.44 20.5 10 20.5c.6 0 1.16-.03 1.69-.09.25.5.56.96.93 1.38-.8.14-1.68.21-2.62.21-2.89 0-5.13-.66-6.7-2A3.75 3.75 0 0 1 2 17.16v-.91C2 15 3.01 14 4.25 14h7.77Zm5.48 0h-.09a.5.5 0 0 0-.4.4l-.01.1V17h-2.6a.5.5 0 0 0-.4.41v.18c.04.2.2.36.4.4l.1.01H17v2.6c.05.2.2.36.41.4h.18a.5.5 0 0 0 .4-.4l.01-.1V18h2.6a.5.5 0 0 0 .4-.41v-.18a.5.5 0 0 0-.4-.4l-.1-.01H18v-2.6a.5.5 0 0 0-.41-.4h-.09ZM10 2c.38 0 .7.28.74.65l.01.1v.75h3.5c1.24 0 2.25 1 2.25 2.25v4.5c0 .3-.06.6-.17.86-1.12.2-2.15.7-2.99 1.4H5.75c-1.24 0-2.25-1.01-2.25-2.26v-4.5c0-1.24 1-2.25 2.25-2.25h3.5v-.75c0-.35.23-.64.55-.72L9.9 2 10 2Zm4.25 3h-8.5a.75.75 0 0 0-.75.75v4.5c0 .42.34.75.75.75h8.5c.41 0 .75-.33.75-.75v-4.5a.75.75 0 0 0-.75-.75Zm-6.5 1.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.5 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z",fill:t}))},p4=wh(h4,"BotAdd24Regular"),m4=e=>{const{fill:t="currentColor",className:r}=e;return p.createElement("svg",Object.assign({},e,{width:28,height:28,viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",className:r}),p.createElement("path",{d:"M25.78 2.22c.3.3.3.77 0 1.06l-8.26 8.26a6.75 6.75 0 0 1-.5 8.98l-.21.22-9.56-9.55.23-.22a6.75 6.75 0 0 1 8.98-.5l8.26-8.25c.3-.3.77-.3 1.06 0ZM6.05 12.11l-3.7 2.25a.75.75 0 0 0-.13 1.17l10.25 10.25a.75.75 0 0 0 1.17-.14l2.25-3.69-9.84-9.84Z",fill:t}))},g4=wh(m4,"Broom28Filled"),v4=e=>{const{fill:t="currentColor",className:r}=e;return p.createElement("svg",Object.assign({},e,{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:r}),p.createElement("path",{d:"M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm0 1.67a8.34 8.34 0 0 0 0 16.66 8.34 8.34 0 0 0 0-16.66Zm0 10.83a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM12 7c.37 0 .69.28.74.65v4.6a.75.75 0 0 1-1.48.1l-.01-.1v-4.5c0-.41.33-.75.74-.75Z",fill:t}))},y4=wh(v4,"ErrorCircle24Regular"),E4=e=>{const{fill:t="currentColor",className:r}=e;return p.createElement("svg",Object.assign({},e,{width:28,height:28,viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",className:r}),p.createElement("path",{d:"M3.79 2.62a1.25 1.25 0 0 0-1.75 1.46l2.02 7.53a1 1 0 0 0 .82.73l9.89 1.41c.28.04.28.46 0 .5l-9.88 1.4a1 1 0 0 0-.83.74l-2.02 7.54a1.25 1.25 0 0 0 1.75 1.45l21.5-10.25c.95-.45.95-1.8 0-2.26L3.79 2.62Z",fill:t}))},_4=wh(E4,"Send28Filled"),C4=(e,t)=>{const{disabled:r=!1,required:n=!1,weight:o="regular",size:i="medium"}=e;return{disabled:r,required:OB(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"}}),weight:o,size:i,components:{root:"label",required:"span"},root:l4("label",{ref:t,...e})}},S4=e=>{const{slots:t,slotProps:r}=xB(e);return p.createElement(t.root,r.root,e.root.children,t.required&&p.createElement(t.required,r.required))},_C={root:"fui-Label",required:"fui-Label__required"},w4=Ub({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),T4=e=>{const t=w4();return e.root.className=mg(_C.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=mg(_C.required,t.required,e.disabled&&t.requiredDisabled,e.required.className)),e},Kb=p.forwardRef((e,t)=>{const r=C4(e,t);T4(r);const{useLabelStyles_unstable:n}=FB();return n(r),S4(r)});Kb.displayName="Label";const b4="_container_1xd99_1",I4="_stack_1xd99_8",k4="_stackItem_1xd99_12",A4="_stackItemConfig_1xd99_20",R4="_chatRoot_1xd99_30",P4="_chatContainer_1xd99_35",M4="_chatEmptyState_1xd99_43",F4="_chatEmptyStateTitle_1xd99_53",N4="_chatEmptyStateSubtitle_1xd99_60",x4="_chatMessageStream_1xd99_76",D4="_chatMessageGptMinWidth_1xd99_87",O4="_chatInput_1xd99_92",L4="_chatAnalysisPanel_1xd99_107",B4="_chatSettingsSeparator_1xd99_115",U4="_chatSettingsLabel_1xd99_119",H4="_loadingLogo_1xd99_126",z4="_commandsContainer_1xd99_130",K4="_commandButton_1xd99_137",Xt={container:b4,stack:I4,stackItem:k4,stackItemConfig:A4,chatRoot:R4,chatContainer:P4,chatEmptyState:M4,chatEmptyStateTitle:F4,chatEmptyStateSubtitle:N4,chatMessageStream:x4,chatMessageGptMinWidth:D4,chatInput:O4,chatAnalysisPanel:L4,chatSettingsSeparator:B4,chatSettingsLabel:U4,loadingLogo:H4,commandsContainer:z4,commandButton:K4};async function G4(e){var n,o,i,a,s,u,l,c,d,f,h;console.log("options.approach:",e.approach),console.log("chatApi options: ",(n=e.overrides)==null?void 0:n.promptSystemTemplate),console.log("sessionId: ",(o=e.sessionId)==null?void 0:o.sessionId);const t=await fetch("/chat",{method:"POST",headers:{Authorization:"Bearer "+((i=e.accessToken)==null?void 0:i.accessToken)||"",SessionId:((a=e.sessionId)==null?void 0:a.sessionId)||"","Content-Type":"application/json"},body:JSON.stringify({history:e.history,approach:e.approach,overrides:{top:(s=e.overrides)==null?void 0:s.top,temperature:(u=e.overrides)==null?void 0:u.temperature,prompt_system_template:(l=e.overrides)==null?void 0:l.promptSystemTemplate,maxResponse:(c=e.overrides)==null?void 0:c.maxResponse},sessionConfig:{pastMessages:(d=e.sessionConfig)==null?void 0:d.pastMessages},userInfo:{username:(f=e.userInfo)==null?void 0:f.username,email:(h=e.userInfo)==null?void 0:h.email}})}),r=await t.json();if(t.status>299||!t.ok)throw Error(r.error||"Unknown error");return r}var Gb=(e=>(e.RetrieveThenRead="rtr",e.ReadRetrieveRead="rrr",e.ReadDecomposeAsk="rda",e))(Gb||{});/*! @license DOMPurify 3.0.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.1/LICENSE */function Pa(e){return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(e)}function gg(e,t){return gg=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},gg(e,t)}function q4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xd(e,t,r){return q4()?xd=Reflect.construct:xd=function(o,i,a){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(o,s),l=new u;return a&&gg(l,a.prototype),l},xd.apply(null,arguments)}function V4(e,t){return j4(e)||Q4(e,t)||ny(e,t)||X4()}function Wn(e){return W4(e)||$4(e)||ny(e)||Y4()}function W4(e){if(Array.isArray(e))return vg(e)}function j4(e){if(Array.isArray(e))return e}function $4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Q4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,i=!1,a,s;try{for(r=r.call(e);!(o=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(u){i=!0,s=u}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw s}}return n}}function ny(e,t){if(e){if(typeof e=="string")return vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vg(e,t)}}function vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J4(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ny(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return i=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw s}}}}var qb=Object.entries,CC=Object.setPrototypeOf,Z4=Object.isFrozen,e3=Object.getPrototypeOf,t3=Object.getOwnPropertyDescriptor,Fr=Object.freeze,oo=Object.seal,r3=Object.create,Vb=typeof Reflect<"u"&&Reflect,yg=Vb.apply,Eg=Vb.construct;yg||(yg=function(t,r,n){return t.apply(r,n)});Fr||(Fr=function(t){return t});oo||(oo=function(t){return t});Eg||(Eg=function(t,r){return xd(t,Wn(r))});var n3=Un(Array.prototype.forEach),SC=Un(Array.prototype.pop),Vu=Un(Array.prototype.push),Dd=Un(String.prototype.toLowerCase),Fp=Un(String.prototype.toString),o3=Un(String.prototype.match),Vn=Un(String.prototype.replace),i3=Un(String.prototype.indexOf),a3=Un(String.prototype.trim),Jr=Un(RegExp.prototype.test),Np=s3(TypeError);function Un(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return yg(e,t,n)}}function s3(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Eg(e,r)}}function Me(e,t,r){r=r||Dd,CC&&CC(e,null);for(var n=t.length;n--;){var o=t[n];if(typeof o=="string"){var i=r(o);i!==o&&(Z4(t)||(t[n]=i),o=i)}e[o]=!0}return e}function vs(e){var t=r3(null),r=J4(qb(e)),n;try{for(r.s();!(n=r.n()).done;){var o=V4(n.value,2),i=o[0],a=o[1];t[i]=a}}catch(s){r.e(s)}finally{r.f()}return t}function ad(e,t){for(;e!==null;){var r=t3(e,t);if(r){if(r.get)return Un(r.get);if(typeof r.value=="function")return Un(r.value)}e=e3(e)}function n(o){return console.warn("fallback value for",o),null}return n}var wC=Fr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xp=Fr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dp=Fr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),u3=Fr(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Op=Fr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),l3=Fr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),TC=Fr(["#text"]),bC=Fr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Lp=Fr(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),IC=Fr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),sd=Fr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),c3=oo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),d3=oo(/<%[\w\W]*|[\w\W]*%>/gm),f3=oo(/\${[\w\W]*}/gm),h3=oo(/^data-[\-\w.\u00B7-\uFFFF]/),p3=oo(/^aria-[\-\w]+$/),m3=oo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),g3=oo(/^(?:\w+script|data):/i),v3=oo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),y3=oo(/^html$/i),E3=function(){return typeof window>"u"?null:window},_3=function(t,r){if(Pa(t)!=="object"||typeof t.createPolicy!="function")return null;var n=null,o="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(o)&&(n=r.currentScript.getAttribute(o));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Wb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E3(),t=function(A){return Wb(A)};if(t.version="3.0.1",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var r=e.document,n=e.document,o=e.DocumentFragment,i=e.HTMLTemplateElement,a=e.Node,s=e.Element,u=e.NodeFilter,l=e.NamedNodeMap,c=l===void 0?e.NamedNodeMap||e.MozNamedAttrMap:l,d=e.HTMLFormElement,f=e.DOMParser,h=e.trustedTypes,m=s.prototype,y=ad(m,"cloneNode"),E=ad(m,"nextSibling"),v=ad(m,"childNodes"),g=ad(m,"parentNode");if(typeof i=="function"){var C=n.createElement("template");C.content&&C.content.ownerDocument&&(n=C.content.ownerDocument)}var S=_3(h,r),w=S?S.createHTML(""):"",I=n,b=I.implementation,k=I.createNodeIterator,O=I.createDocumentFragment,L=I.getElementsByTagName,se=r.importNode,B={};t.isSupported=typeof qb=="function"&&typeof g=="function"&&b&&typeof b.createHTMLDocument<"u";var ae=c3,G=d3,oe=f3,me=h3,P=p3,T=g3,M=v3,F=m3,N=null,x=Me({},[].concat(Wn(wC),Wn(xp),Wn(Dp),Wn(Op),Wn(TC))),Y=null,de=Me({},[].concat(Wn(bC),Wn(Lp),Wn(IC),Wn(sd))),ye=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,ke=null,Ae=!0,Le=!0,ot=!1,it=!0,Ze=!1,ze=!1,nr=!1,Hn=!1,yt=!1,ft=!1,En=!1,ao=!0,ia=!1,aa="user-content-",ci=!0,Fo=!1,zn={},_n=null,di=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),sa=null,so=Me({},["audio","video","img","source","image","track"]),No=null,xo=Me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Do="http://www.w3.org/1998/Math/MathML",Oo="http://www.w3.org/2000/svg",$r="http://www.w3.org/1999/xhtml",uo=$r,ua=!1,fi=null,ku=Me({},[Do,Oo,$r],Fp),Cn,la=["application/xhtml+xml","text/html"],rs="text/html",It,Qr=null,Au=n.createElement("form"),ca=function(A){return A instanceof RegExp||A instanceof Function},hi=function(A){Qr&&Qr===A||((!A||Pa(A)!=="object")&&(A={}),A=vs(A),Cn=la.indexOf(A.PARSER_MEDIA_TYPE)===-1?Cn=rs:Cn=A.PARSER_MEDIA_TYPE,It=Cn==="application/xhtml+xml"?Fp:Dd,N="ALLOWED_TAGS"in A?Me({},A.ALLOWED_TAGS,It):x,Y="ALLOWED_ATTR"in A?Me({},A.ALLOWED_ATTR,It):de,fi="ALLOWED_NAMESPACES"in A?Me({},A.ALLOWED_NAMESPACES,Fp):ku,No="ADD_URI_SAFE_ATTR"in A?Me(vs(xo),A.ADD_URI_SAFE_ATTR,It):xo,sa="ADD_DATA_URI_TAGS"in A?Me(vs(so),A.ADD_DATA_URI_TAGS,It):so,_n="FORBID_CONTENTS"in A?Me({},A.FORBID_CONTENTS,It):di,V="FORBID_TAGS"in A?Me({},A.FORBID_TAGS,It):{},ke="FORBID_ATTR"in A?Me({},A.FORBID_ATTR,It):{},zn="USE_PROFILES"in A?A.USE_PROFILES:!1,Ae=A.ALLOW_ARIA_ATTR!==!1,Le=A.ALLOW_DATA_ATTR!==!1,ot=A.ALLOW_UNKNOWN_PROTOCOLS||!1,it=A.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=A.SAFE_FOR_TEMPLATES||!1,ze=A.WHOLE_DOCUMENT||!1,yt=A.RETURN_DOM||!1,ft=A.RETURN_DOM_FRAGMENT||!1,En=A.RETURN_TRUSTED_TYPE||!1,Hn=A.FORCE_BODY||!1,ao=A.SANITIZE_DOM!==!1,ia=A.SANITIZE_NAMED_PROPS||!1,ci=A.KEEP_CONTENT!==!1,Fo=A.IN_PLACE||!1,F=A.ALLOWED_URI_REGEXP||F,uo=A.NAMESPACE||$r,ye=A.CUSTOM_ELEMENT_HANDLING||{},A.CUSTOM_ELEMENT_HANDLING&&ca(A.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ye.tagNameCheck=A.CUSTOM_ELEMENT_HANDLING.tagNameCheck),A.CUSTOM_ELEMENT_HANDLING&&ca(A.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ye.attributeNameCheck=A.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),A.CUSTOM_ELEMENT_HANDLING&&typeof A.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ye.allowCustomizedBuiltInElements=A.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(Le=!1),ft&&(yt=!0),zn&&(N=Me({},Wn(TC)),Y=[],zn.html===!0&&(Me(N,wC),Me(Y,bC)),zn.svg===!0&&(Me(N,xp),Me(Y,Lp),Me(Y,sd)),zn.svgFilters===!0&&(Me(N,Dp),Me(Y,Lp),Me(Y,sd)),zn.mathMl===!0&&(Me(N,Op),Me(Y,IC),Me(Y,sd))),A.ADD_TAGS&&(N===x&&(N=vs(N)),Me(N,A.ADD_TAGS,It)),A.ADD_ATTR&&(Y===de&&(Y=vs(Y)),Me(Y,A.ADD_ATTR,It)),A.ADD_URI_SAFE_ATTR&&Me(No,A.ADD_URI_SAFE_ATTR,It),A.FORBID_CONTENTS&&(_n===di&&(_n=vs(_n)),Me(_n,A.FORBID_CONTENTS,It)),ci&&(N["#text"]=!0),ze&&Me(N,["html","head","body"]),N.table&&(Me(N,["tbody"]),delete V.tbody),Fr&&Fr(A),Qr=A)},Yr=Me({},["mi","mo","mn","ms","mtext"]),ns=Me({},["foreignobject","desc","title","annotation-xml"]),os=Me({},["title","style","font","a","script"]),Ee=Me({},xp);Me(Ee,Dp),Me(Ee,u3);var Be=Me({},Op);Me(Be,l3);var et=function(A){var z=g(A);(!z||!z.tagName)&&(z={namespaceURI:uo,tagName:"template"});var Q=Dd(A.tagName),pe=Dd(z.tagName);return fi[A.namespaceURI]?A.namespaceURI===Oo?z.namespaceURI===$r?Q==="svg":z.namespaceURI===Do?Q==="svg"&&(pe==="annotation-xml"||Yr[pe]):Boolean(Ee[Q]):A.namespaceURI===Do?z.namespaceURI===$r?Q==="math":z.namespaceURI===Oo?Q==="math"&&ns[pe]:Boolean(Be[Q]):A.namespaceURI===$r?z.namespaceURI===Oo&&!ns[pe]||z.namespaceURI===Do&&!Yr[pe]?!1:!Be[Q]&&(os[Q]||!Ee[Q]):!!(Cn==="application/xhtml+xml"&&fi[A.namespaceURI]):!1},Ft=function(A){Vu(t.removed,{element:A});try{A.parentNode.removeChild(A)}catch{A.remove()}},kt=function(A,z){try{Vu(t.removed,{attribute:z.getAttributeNode(A),from:z})}catch{Vu(t.removed,{attribute:null,from:z})}if(z.removeAttribute(A),A==="is"&&!Y[A])if(yt||ft)try{Ft(z)}catch{}else try{z.setAttribute(A,"")}catch{}},Lo=function(A){var z,Q;if(Hn)A="<remove></remove>"+A;else{var pe=o3(A,/^[\r\n\t ]+/);Q=pe&&pe[0]}Cn==="application/xhtml+xml"&&uo===$r&&(A='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+A+"</body></html>");var Ke=S?S.createHTML(A):A;if(uo===$r)try{z=new f().parseFromString(Ke,Cn)}catch{}if(!z||!z.documentElement){z=b.createDocument(uo,"template",null);try{z.documentElement.innerHTML=ua?w:Ke}catch{}}var Ne=z.body||z.documentElement;return A&&Q&&Ne.insertBefore(n.createTextNode(Q),Ne.childNodes[0]||null),uo===$r?L.call(z,ze?"html":"body")[0]:ze?z.documentElement:Ne},pi=function(A){return k.call(A.ownerDocument||A,A,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},is=function(A){return A instanceof d&&(typeof A.nodeName!="string"||typeof A.textContent!="string"||typeof A.removeChild!="function"||!(A.attributes instanceof c)||typeof A.removeAttribute!="function"||typeof A.setAttribute!="function"||typeof A.namespaceURI!="string"||typeof A.insertBefore!="function"||typeof A.hasChildNodes!="function")},mi=function(A){return Pa(a)==="object"?A instanceof a:A&&Pa(A)==="object"&&typeof A.nodeType=="number"&&typeof A.nodeName=="string"},Sn=function(A,z,Q){B[A]&&n3(B[A],function(pe){pe.call(t,z,Q,Qr)})},da=function(A){var z;if(Sn("beforeSanitizeElements",A,null),is(A))return Ft(A),!0;var Q=It(A.nodeName);if(Sn("uponSanitizeElement",A,{tagName:Q,allowedTags:N}),A.hasChildNodes()&&!mi(A.firstElementChild)&&(!mi(A.content)||!mi(A.content.firstElementChild))&&Jr(/<[/\w]/g,A.innerHTML)&&Jr(/<[/\w]/g,A.textContent))return Ft(A),!0;if(!N[Q]||V[Q]){if(!V[Q]&&Mc(Q)&&(ye.tagNameCheck instanceof RegExp&&Jr(ye.tagNameCheck,Q)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(Q)))return!1;if(ci&&!_n[Q]){var pe=g(A)||A.parentNode,Ke=v(A)||A.childNodes;if(Ke&&pe)for(var Ne=Ke.length,qe=Ne-1;qe>=0;--qe)pe.insertBefore(y(Ke[qe],!0),E(A))}return Ft(A),!0}return A instanceof s&&!et(A)||(Q==="noscript"||Q==="noembed")&&Jr(/<\/no(script|embed)/i,A.innerHTML)?(Ft(A),!0):(Ze&&A.nodeType===3&&(z=A.textContent,z=Vn(z,ae," "),z=Vn(z,G," "),z=Vn(z,oe," "),A.textContent!==z&&(Vu(t.removed,{element:A.cloneNode()}),A.textContent=z)),Sn("afterSanitizeElements",A,null),!1)},Pc=function(A,z,Q){if(ao&&(z==="id"||z==="name")&&(Q in n||Q in Au))return!1;if(!(Le&&!ke[z]&&Jr(me,z))){if(!(Ae&&Jr(P,z))){if(!Y[z]||ke[z]){if(!(Mc(A)&&(ye.tagNameCheck instanceof RegExp&&Jr(ye.tagNameCheck,A)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(A))&&(ye.attributeNameCheck instanceof RegExp&&Jr(ye.attributeNameCheck,z)||ye.attributeNameCheck instanceof Function&&ye.attributeNameCheck(z))||z==="is"&&ye.allowCustomizedBuiltInElements&&(ye.tagNameCheck instanceof RegExp&&Jr(ye.tagNameCheck,Q)||ye.tagNameCheck instanceof Function&&ye.tagNameCheck(Q))))return!1}else if(!No[z]){if(!Jr(F,Vn(Q,M,""))){if(!((z==="src"||z==="xlink:href"||z==="href")&&A!=="script"&&i3(Q,"data:")===0&&sa[A])){if(!(ot&&!Jr(T,Vn(Q,M,"")))){if(Q)return!1}}}}}}return!0},Mc=function(A){return A.indexOf("-")>0},J=function(A){var z,Q,pe,Ke;Sn("beforeSanitizeAttributes",A,null);var Ne=A.attributes;if(Ne){var qe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y};for(Ke=Ne.length;Ke--;){z=Ne[Ke];var ht=z,wr=ht.name,gi=ht.namespaceURI;if(Q=wr==="value"?z.value:a3(z.value),pe=It(wr),qe.attrName=pe,qe.attrValue=Q,qe.keepAttr=!0,qe.forceKeepAttr=void 0,Sn("uponSanitizeAttribute",A,qe),Q=qe.attrValue,!qe.forceKeepAttr&&(kt(wr,A),!!qe.keepAttr)){if(!it&&Jr(/\/>/i,Q)){kt(wr,A);continue}Ze&&(Q=Vn(Q,ae," "),Q=Vn(Q,G," "),Q=Vn(Q,oe," "));var fa=It(A.nodeName);if(Pc(fa,pe,Q)){if(ia&&(pe==="id"||pe==="name")&&(kt(wr,A),Q=aa+Q),S&&Pa(h)==="object"&&typeof h.getAttributeType=="function"&&!gi)switch(h.getAttributeType(fa,pe)){case"TrustedHTML":Q=S.createHTML(Q);break;case"TrustedScriptURL":Q=S.createScriptURL(Q);break}try{gi?A.setAttributeNS(gi,wr,Q):A.setAttribute(wr,Q),SC(t.removed)}catch{}}}}Sn("afterSanitizeAttributes",A,null)}},Pe=function te(A){var z,Q=pi(A);for(Sn("beforeSanitizeShadowDOM",A,null);z=Q.nextNode();)Sn("uponSanitizeShadowNode",z,null),!da(z)&&(z.content instanceof o&&te(z.content),J(z));Sn("afterSanitizeShadowDOM",A,null)};return t.sanitize=function(te){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z,Q,pe,Ke;if(ua=!te,ua&&(te="<!-->"),typeof te!="string"&&!mi(te)){if(typeof te.toString!="function")throw Np("toString is not a function");if(te=te.toString(),typeof te!="string")throw Np("dirty is not a string, aborting")}if(!t.isSupported)return te;if(nr||hi(A),t.removed=[],typeof te=="string"&&(Fo=!1),Fo){if(te.nodeName){var Ne=It(te.nodeName);if(!N[Ne]||V[Ne])throw Np("root node is forbidden and cannot be sanitized in-place")}}else if(te instanceof a)z=Lo("<!---->"),Q=z.ownerDocument.importNode(te,!0),Q.nodeType===1&&Q.nodeName==="BODY"||Q.nodeName==="HTML"?z=Q:z.appendChild(Q);else{if(!yt&&!Ze&&!ze&&te.indexOf("<")===-1)return S&&En?S.createHTML(te):te;if(z=Lo(te),!z)return yt?null:En?w:""}z&&Hn&&Ft(z.firstChild);for(var qe=pi(Fo?te:z);pe=qe.nextNode();)da(pe)||(pe.content instanceof o&&Pe(pe.content),J(pe));if(Fo)return te;if(yt){if(ft)for(Ke=O.call(z.ownerDocument);z.firstChild;)Ke.appendChild(z.firstChild);else Ke=z;return(Y.shadowroot||Y.shadowrootmod)&&(Ke=se.call(r,Ke,!0)),Ke}var ht=ze?z.outerHTML:z.innerHTML;return ze&&N["!doctype"]&&z.ownerDocument&&z.ownerDocument.doctype&&z.ownerDocument.doctype.name&&Jr(y3,z.ownerDocument.doctype.name)&&(ht="<!DOCTYPE "+z.ownerDocument.doctype.name+`>
`+ht),Ze&&(ht=Vn(ht,ae," "),ht=Vn(ht,G," "),ht=Vn(ht,oe," ")),S&&En?S.createHTML(ht):ht},t.setConfig=function(te){hi(te),nr=!0},t.clearConfig=function(){Qr=null,nr=!1},t.isValidAttribute=function(te,A,z){Qr||hi({});var Q=It(te),pe=It(A);return Pc(Q,pe,z)},t.addHook=function(te,A){typeof A=="function"&&(B[te]=B[te]||[],Vu(B[te],A))},t.removeHook=function(te){if(B[te])return SC(B[te])},t.removeHooks=function(te){B[te]&&(B[te]=[])},t.removeAllHooks=function(){B={}},t}var C3=Wb();const S3="_answerContainer_13phk_1",w3="_answerLogo_13phk_8",T3="_answerText_13phk_13",b3="_selected_13phk_39",I3="_citationLearnMore_13phk_43",k3="_citation_13phk_43",A3="_followupQuestionsList_13phk_65",R3="_followupQuestionLearnMore_13phk_69",P3="_followupQuestion_13phk_65",M3="_supContainer_13phk_88",F3="_retryButton_13phk_117",N3="_isLoading_13phk_122",Zo={answerContainer:S3,answerLogo:w3,answerText:T3,selected:b3,citationLearnMore:I3,citation:k3,followupQuestionsList:A3,followupQuestionLearnMore:R3,followupQuestion:P3,supContainer:M3,retryButton:F3,isLoading:N3};function x3(e){return{answerHtml:e.split(/\[([^\]]+)\]/g).join("")}}const D3=()=>K(p4,{primaryFill:"rgba(115, 118, 225, 1)","aria-hidden":"true","aria-label":"Answer logo"}),O3=({answer:e})=>{if(e==null||e.answer==null)return null;const t=e.answer,r=p.useMemo(()=>x3(t),[e]),n=C3.sanitize(r.answerHtml);return at(rt,{className:`${Zo.answerContainer}`,verticalAlign:"space-between",children:[K(rt.Item,{children:K("div",{className:Zo.answerLogo,children:K(D3,{})})}),K(rt.Item,{grow:!0,children:K("div",{className:Zo.answerText,dangerouslySetInnerHTML:{__html:n}})})]})};var oy=Ac(),Re=e=>kc(e,oy),iy=Ac();Re.write=e=>kc(e,iy);var Th=Ac();Re.onStart=e=>kc(e,Th);var ay=Ac();Re.onFrame=e=>kc(e,ay);var sy=Ac();Re.onFinish=e=>kc(e,sy);var Js=[];Re.setTimeout=(e,t)=>{let r=Re.now()+t,n=()=>{let i=Js.findIndex(a=>a.cancel==n);~i&&Js.splice(i,1),Di-=~i?1:0},o={time:r,handler:e,cancel:n};return Js.splice(jb(r),0,o),Di+=1,$b(),o};var jb=e=>~(~Js.findIndex(t=>t.time>e)||~Js.length);Re.cancel=e=>{Th.delete(e),ay.delete(e),sy.delete(e),oy.delete(e),iy.delete(e)};Re.sync=e=>{_g=!0,Re.batchedUpdates(e),_g=!1};Re.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...o){t=o,Re.onStart(r)}return n.handler=e,n.cancel=()=>{Th.delete(r),t=null},n};var uy=typeof window<"u"?window.requestAnimationFrame:()=>{};Re.use=e=>uy=e;Re.now=typeof performance<"u"?()=>performance.now():Date.now;Re.batchedUpdates=e=>e();Re.catch=console.error;Re.frameLoop="always";Re.advance=()=>{Re.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Yb()};var xi=-1,Di=0,_g=!1;function kc(e,t){_g?(t.delete(e),e(0)):(t.add(e),$b())}function $b(){xi<0&&(xi=0,Re.frameLoop!=="demand"&&uy(Qb))}function L3(){xi=-1}function Qb(){~xi&&(uy(Qb),Re.batchedUpdates(Yb))}function Yb(){let e=xi;xi=Re.now();let t=jb(xi);if(t&&(Xb(Js.splice(0,t),r=>r.handler()),Di-=t),!Di){L3();return}Th.flush(),oy.flush(e?Math.min(64,xi-e):16.667),ay.flush(),iy.flush(),sy.flush()}function Ac(){let e=new Set,t=e;return{add(r){Di+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return Di-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,Di-=t.size,Xb(t,n=>n(r)&&e.add(n)),Di+=e.size,t=e)}}}function Xb(e,t){e.forEach(r=>{try{t(r)}catch(n){Re.catch(n)}})}var B3=Object.defineProperty,U3=(e,t)=>{for(var r in t)B3(e,r,{get:t[r],enumerable:!0})},io={};U3(io,{assign:()=>z3,colors:()=>Qi,createStringInterpolator:()=>cy,skipAnimation:()=>Zb,to:()=>Jb,willAdvance:()=>dy});function Cg(){}var H3=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),$={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function qo(e,t){if($.arr(e)){if(!$.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var Oe=(e,t)=>e.forEach(t);function Mo(e,t,r){if($.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(let n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var dn=e=>$.und(e)?[]:$.arr(e)?e:[e];function wl(e,t){if(e.size){let r=Array.from(e);e.clear(),Oe(r,t)}}var nl=(e,...t)=>wl(e,r=>r(...t)),ly=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),cy,Jb,Qi=null,Zb=!1,dy=Cg,z3=e=>{e.to&&(Jb=e.to),e.now&&(Re.now=e.now),e.colors!==void 0&&(Qi=e.colors),e.skipAnimation!=null&&(Zb=e.skipAnimation),e.createStringInterpolator&&(cy=e.createStringInterpolator),e.requestAnimationFrame&&Re.use(e.requestAnimationFrame),e.batchedUpdates&&(Re.batchedUpdates=e.batchedUpdates),e.willAdvance&&(dy=e.willAdvance),e.frameLoop&&(Re.frameLoop=e.frameLoop)},Tl=new Set,Pn=[],Bp=[],Gf=0,bh={get idle(){return!Tl.size&&!Pn.length},start(e){Gf>e.priority?(Tl.add(e),Re.onStart(K3)):(eI(e),Re(Sg))},advance:Sg,sort(e){if(Gf)Re.onFrame(()=>bh.sort(e));else{let t=Pn.indexOf(e);~t&&(Pn.splice(t,1),tI(e))}},clear(){Pn=[],Tl.clear()}};function K3(){Tl.forEach(eI),Tl.clear(),Re(Sg)}function eI(e){Pn.includes(e)||tI(e)}function tI(e){Pn.splice(G3(Pn,t=>t.priority>e.priority),0,e)}function Sg(e){let t=Bp;for(let r=0;r<Pn.length;r++){let n=Pn[r];Gf=n.priority,n.idle||(dy(n),n.advance(e),n.idle||t.push(n))}return Gf=0,Bp=Pn,Bp.length=0,Pn=t,Pn.length>0}function G3(e,t){let r=e.findIndex(t);return r<0?e.length:r}var q3=(e,t,r)=>Math.min(Math.max(r,e),t),V3={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Jn="[-+]?\\d*\\.?\\d+",qf=Jn+"%";function Ih(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var W3=new RegExp("rgb"+Ih(Jn,Jn,Jn)),j3=new RegExp("rgba"+Ih(Jn,Jn,Jn,Jn)),$3=new RegExp("hsl"+Ih(Jn,qf,qf)),Q3=new RegExp("hsla"+Ih(Jn,qf,qf,Jn)),Y3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,X3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,J3=/^#([0-9a-fA-F]{6})$/,Z3=/^#([0-9a-fA-F]{8})$/;function eU(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=J3.exec(e))?parseInt(t[1]+"ff",16)>>>0:Qi&&Qi[e]!==void 0?Qi[e]:(t=W3.exec(e))?(ys(t[1])<<24|ys(t[2])<<16|ys(t[3])<<8|255)>>>0:(t=j3.exec(e))?(ys(t[1])<<24|ys(t[2])<<16|ys(t[3])<<8|RC(t[4]))>>>0:(t=Y3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Z3.exec(e))?parseInt(t[1],16)>>>0:(t=X3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=$3.exec(e))?(kC(AC(t[1]),ud(t[2]),ud(t[3]))|255)>>>0:(t=Q3.exec(e))?(kC(AC(t[1]),ud(t[2]),ud(t[3]))|RC(t[4]))>>>0:null}function Up(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function kC(e,t,r){let n=r<.5?r*(1+t):r+t-r*t,o=2*r-n,i=Up(o,n,e+1/3),a=Up(o,n,e),s=Up(o,n,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function ys(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function AC(e){return(parseFloat(e)%360+360)%360/360}function RC(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ud(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function PC(e){let t=eU(e);if(t===null)return e;t=t||0;let r=(t&4278190080)>>>24,n=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${r}, ${n}, ${o}, ${i})`}var uc=(e,t,r)=>{if($.fun(e))return e;if($.arr(e))return uc({range:e,output:t,extrapolate:r});if($.str(e.output[0]))return cy(e);let n=e,o=n.output,i=n.range||[0,1],a=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",u=n.easing||(l=>l);return l=>{let c=rU(l,i);return tU(l,i[c],i[c+1],o[c],o[c+1],u,a,s,n.map)}};function tU(e,t,r,n,o,i,a,s,u){let l=u?u(e):e;if(l<t){if(a==="identity")return l;a==="clamp"&&(l=t)}if(l>r){if(s==="identity")return l;s==="clamp"&&(l=r)}return n===o?n:t===r?e<=t?n:o:(t===-1/0?l=-l:r===1/0?l=l-t:l=(l-t)/(r-t),l=i(l),n===-1/0?l=-l:o===1/0?l=l+n:l=l*(o-n)+n,l)}function rU(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var nU=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);let n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return q3(0,1,o/e)},Vf=1.70158,ld=Vf*1.525,MC=Vf+1,FC=2*Math.PI/3,NC=2*Math.PI/4.5,cd=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,oU={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>MC*e*e*e-Vf*e*e,easeOutBack:e=>1+MC*Math.pow(e-1,3)+Vf*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ld+1)*2*e-ld)/2:(Math.pow(2*e-2,2)*((ld+1)*(e*2-2)+ld)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*FC),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*FC)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*NC))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*NC)/2+1,easeInBounce:e=>1-cd(1-e),easeOutBounce:cd,easeInOutBounce:e=>e<.5?(1-cd(1-2*e))/2:(1+cd(2*e-1))/2,steps:nU},gu=Symbol.for("FluidValue.get"),Wa=Symbol.for("FluidValue.observers"),Rn=e=>Boolean(e&&e[gu]),Hr=e=>e&&e[gu]?e[gu]():e,xC=e=>e[Wa]||null;function iU(e,t){e.eventObserved?e.eventObserved(t):e(t)}function lc(e,t){let r=e[Wa];r&&r.forEach(n=>{iU(n,t)})}var kH,AH,JC,rI=(JC=class{constructor(e){ue(this,kH);ue(this,AH);if(!e&&!(e=this.get))throw Error("Unknown getter");aU(this,e)}},kH=gu,AH=Wa,JC),aU=(e,t)=>nI(e,gu,t);function Iu(e,t){if(e[gu]){let r=e[Wa];r||nI(e,Wa,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function cc(e,t){let r=e[Wa];if(r&&r.has(t)){let n=r.size-1;n?r.delete(t):e[Wa]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var nI=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Od=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,sU=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,DC=new RegExp(`(${Od.source})(%|[a-z]+)`,"i"),uU=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,kh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,oI=e=>{let[t,r]=lU(e);if(!t||ly())return e;let n=window.getComputedStyle(document.documentElement).getPropertyValue(t);return n?n.trim():r&&r.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(r)||e:r&&kh.test(r)?oI(r):r||e},lU=e=>{let t=kh.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]},Hp,cU=(e,t,r,n,o)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${o})`,iI=e=>{Hp||(Hp=Qi?new RegExp(`(${Object.keys(Qi).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(o=>Hr(o).replace(kh,oI).replace(sU,PC).replace(Hp,PC)),r=t.map(o=>o.match(Od).map(Number)),n=r[0].map((o,i)=>r.map(a=>{if(!(i in a))throw Error('The arity of each "output" value must be equal');return a[i]})).map(o=>uc({...e,output:o}));return o=>{var s;let i=!DC.test(t[0])&&((s=t.find(u=>DC.test(u)))==null?void 0:s.replace(Od,"")),a=0;return t[0].replace(Od,()=>`${n[a++](o)}${i||""}`).replace(uU,cU)}},fy="react-spring: ",aI=e=>{let t=e,r=!1;if(typeof t!="function")throw new TypeError(`${fy}once requires a function parameter`);return(...n)=>{r||(t(...n),r=!0)}},dU=aI(console.warn);function fU(){dU(`${fy}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var hU=aI(console.warn);function pU(){hU(`${fy}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Ah(e){return $.str(e)&&(e[0]=="#"||/\d/.test(e)||!ly()&&kh.test(e)||e in(Qi||{}))}var hy=ly()?p.useEffect:p.useLayoutEffect,mU=()=>{let e=p.useRef(!1);return hy(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function sI(){let e=p.useState()[1],t=mU();return()=>{t.current&&e(Math.random())}}function gU(e,t){let[r]=p.useState(()=>({inputs:t,result:e()})),n=p.useRef(),o=n.current,i=o;return i?Boolean(t&&i.inputs&&vU(t,i.inputs))||(i={inputs:t,result:e()}):i=r,p.useEffect(()=>{n.current=i,o==r&&(r.inputs=r.result=void 0)},[i]),i.result}function vU(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var uI=e=>p.useEffect(e,yU),yU=[];function OC(e){let t=p.useRef();return p.useEffect(()=>{t.current=e}),t.current}var dc=Symbol.for("Animated:node"),EU=e=>!!e&&e[dc]===e,vo=e=>e&&e[dc],py=(e,t)=>H3(e,dc,t),Rh=e=>e&&e[dc]&&e[dc].getPayload(),lI=class{constructor(){ue(this,"payload");py(this,this)}getPayload(){return this.payload||[]}},Rc=class extends lI{constructor(t){super();ue(this,"done",!0);ue(this,"elapsedTime");ue(this,"lastPosition");ue(this,"lastVelocity");ue(this,"v0");ue(this,"durationProgress",0);this._value=t,$.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Rc(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,r){return $.num(t)&&(this.lastPosition=t,r&&(t=Math.round(t/r)*r,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,$.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},fc=class extends Rc{constructor(t){super(0);ue(this,"_string",null);ue(this,"_toString");this._toString=uc({output:[t,t]})}static create(t){return new fc(t)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(t){if($.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=uc({output:[this.getValue(),t]})),this._value=0,super.reset()}},Wf={dependencies:null},Ph=class extends lI{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return Mo(this.source,(r,n)=>{EU(r)?t[n]=r.getValue(e):Rn(r)?t[n]=Hr(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Oe(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return Mo(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Wf.dependencies&&Rn(e)&&Wf.dependencies.add(e);let t=Rh(e);t&&Oe(t,r=>this.add(r))}},cI=class extends Ph{constructor(t){super(t)}static create(t){return new cI(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let r=this.getPayload();return t.length==r.length?r.map((n,o)=>n.setValue(t[o])).some(Boolean):(super.setValue(t.map(_U)),!0)}};function _U(e){return(Ah(e)?fc:Rc).create(e)}function wg(e){let t=vo(e);return t?t.constructor:$.arr(e)?cI:Ah(e)?fc:Rc}var LC=(e,t)=>{let r=!$.fun(e)||e.prototype&&e.prototype.isReactComponent;return p.forwardRef((n,o)=>{let i=p.useRef(null),a=r&&p.useCallback(m=>{i.current=wU(o,m)},[o]),[s,u]=SU(n,t),l=sI(),c=()=>{let m=i.current;r&&!m||(m?t.applyAnimatedValues(m,s.getValue(!0)):!1)===!1&&l()},d=new CU(c,u),f=p.useRef();hy(()=>(f.current=d,Oe(u,m=>Iu(m,d)),()=>{f.current&&(Oe(f.current.deps,m=>cc(m,f.current)),Re.cancel(f.current.update))})),p.useEffect(c,[]),uI(()=>()=>{let m=f.current;Oe(m.deps,y=>cc(y,m))});let h=t.getComponentProps(s.getValue());return p.createElement(e,{...h,ref:a})})},CU=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Re.write(this.update)}};function SU(e,t){let r=new Set;return Wf.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Ph(e),Wf.dependencies=null,[e,r]}function wU(e,t){return e&&($.fun(e)?e(t):e.current=t),t}var BC=Symbol.for("AnimatedComponent"),TU=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=o=>new Ph(o),getComponentProps:n=o=>o}={})=>{let o={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},i=a=>{let s=UC(a)||"Anonymous";return $.str(a)?a=i[a]||(i[a]=LC(a,o)):a=a[BC]||(a[BC]=LC(a,o)),a.displayName=`Animated(${s})`,a};return Mo(e,(a,s)=>{$.arr(e)&&(s=UC(a)),i[s]=i(a)}),{animated:i}},UC=e=>$.str(e)?e:e&&$.str(e.displayName)?e.displayName:$.fun(e)&&e.name||null;function Sa(e,...t){return $.fun(e)?e(...t):e}var bl=(e,t)=>e===!0||!!(t&&e&&($.fun(e)?e(t):dn(e).includes(t))),dI=(e,t)=>$.obj(e)?t&&e[t]:e,fI=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,bU=e=>e,my=(e,t=bU)=>{let r=IU;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));let n={};for(let o of r){let i=t(e[o],o);$.und(i)||(n[o]=i)}return n},IU=["config","onProps","onStart","onChange","onPause","onResume","onRest"],kU={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function AU(e){let t={},r=0;if(Mo(e,(n,o)=>{kU[o]||(t[o]=n,r++)}),r)return t}function hI(e){let t=AU(e);if(t){let r={to:t};return Mo(e,(n,o)=>o in t||(r[o]=n)),r}return{...e}}function hc(e){return e=Hr(e),$.arr(e)?e.map(hc):Ah(e)?io.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function RU(e){for(let t in e)return!0;return!1}function Tg(e){return $.fun(e)||$.arr(e)&&$.obj(e[0])}function PU(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function MU(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var FU={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},bg={...FU.default,mass:1,damping:1,easing:oU.linear,clamp:!1},NU=class{constructor(){ue(this,"tension");ue(this,"friction");ue(this,"frequency");ue(this,"damping");ue(this,"mass");ue(this,"velocity",0);ue(this,"restVelocity");ue(this,"precision");ue(this,"progress");ue(this,"duration");ue(this,"easing");ue(this,"clamp");ue(this,"bounce");ue(this,"decay");ue(this,"round");Object.assign(this,bg)}};function xU(e,t,r){r&&(r={...r},HC(r,t),t={...r,...t}),HC(e,t),Object.assign(e,t);for(let a in bg)e[a]==null&&(e[a]=bg[a]);let{mass:n,frequency:o,damping:i}=e;return $.und(o)||(o<.01&&(o=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/o,2)*n,e.friction=4*Math.PI*i*n/o),e}function HC(e,t){if(!$.und(t.decay))e.duration=void 0;else{let r=!$.und(t.tension)||!$.und(t.friction);(r||!$.und(t.frequency)||!$.und(t.damping)||!$.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var zC=[],DU=class{constructor(){ue(this,"changed",!1);ue(this,"values",zC);ue(this,"toValues",null);ue(this,"fromValues",zC);ue(this,"to");ue(this,"from");ue(this,"config",new NU);ue(this,"immediate",!1)}};function pI(e,{key:t,props:r,defaultProps:n,state:o,actions:i}){return new Promise((a,s)=>{let u,l,c=bl(r.cancel??(n==null?void 0:n.cancel),t);if(c)h();else{$.und(r.pause)||(o.paused=bl(r.pause,t));let m=n==null?void 0:n.pause;m!==!0&&(m=o.paused||bl(m,t)),u=Sa(r.delay||0,t),m?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(l),l.cancel(),u=l.time-Re.now()}function f(){u>0&&!io.skipAnimation?(o.delayed=!0,l=Re.setTimeout(h,u),o.pauseQueue.add(d),o.timeouts.add(l)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(l),e<=(o.cancelId||0)&&(c=!0);try{i.start({...r,callId:e,cancel:c},a)}catch(m){s(m)}}})}var gy=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?Zs(e.get()):t.every(r=>r.noop)?mI(e.get()):Yn(e.get(),t.every(r=>r.finished)),mI=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Yn=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),Zs=e=>({value:e,cancelled:!0,finished:!1});function gI(e,t,r,n){let{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:u}=r;return!i&&e===s&&!t.reset?u:r.promise=(async()=>{r.asyncId=o,r.asyncTo=e;let l=my(t,(E,v)=>v==="onRest"?void 0:E),c,d,f=new Promise((E,v)=>(c=E,d=v)),h=E=>{let v=o<=(r.cancelId||0)&&Zs(n)||o!==r.asyncId&&Yn(n,!1);if(v)throw E.result=v,d(E),E},m=(E,v)=>{let g=new KC,C=new GC;return(async()=>{if(io.skipAnimation)throw pc(r),C.result=Yn(n,!1),d(C),C;h(g);let S=$.obj(E)?{...E}:{...v,to:E};S.parentId=o,Mo(l,(I,b)=>{$.und(S[b])&&(S[b]=I)});let w=await n.start(S);return h(g),r.paused&&await new Promise(I=>{r.resumeQueue.add(I)}),w})()},y;if(io.skipAnimation)return pc(r),Yn(n,!1);try{let E;$.arr(e)?E=(async v=>{for(let g of v)await m(g)})(e):E=Promise.resolve(e(m,n.stop.bind(n))),await Promise.all([E.then(c),f]),y=Yn(n.get(),!0,!1)}catch(E){if(E instanceof KC)y=E.result;else if(E instanceof GC)y=E.result;else throw E}finally{o==r.asyncId&&(r.asyncId=i,r.asyncTo=i?s:void 0,r.promise=i?u:void 0)}return $.fun(a)&&Re.batchedUpdates(()=>{a(y,n,n.item)}),y})()}function pc(e,t){wl(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var KC=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.");ue(this,"result")}},GC=class extends Error{constructor(){super("SkipAnimationSignal");ue(this,"result")}},Ig=e=>e instanceof vy,OU=1,vy=class extends rI{constructor(){super(...arguments);ue(this,"id",OU++);ue(this,"_priority",0)}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){let t=vo(this);return t&&t.getValue()}to(...t){return io.to(this,t)}interpolate(...t){return fU(),io.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,r=!1){lc(this,{type:"change",parent:this,value:t,idle:r})}_onPriorityChange(t){this.idle||bh.sort(this),lc(this,{type:"priority",parent:this,priority:t})}},ja=Symbol.for("SpringPhase"),vI=1,kg=2,Ag=4,zp=e=>(e[ja]&vI)>0,_i=e=>(e[ja]&kg)>0,Wu=e=>(e[ja]&Ag)>0,qC=(e,t)=>t?e[ja]|=kg|vI:e[ja]&=~kg,VC=(e,t)=>t?e[ja]|=Ag:e[ja]&=~Ag,LU=class extends vy{constructor(t,r){super();ue(this,"key");ue(this,"animation",new DU);ue(this,"queue");ue(this,"defaultProps",{});ue(this,"_state",{paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set});ue(this,"_pendingCalls",new Set);ue(this,"_lastCallId",0);ue(this,"_lastToId",0);ue(this,"_memoizedDuration",0);if(!$.und(t)||!$.und(r)){let n=$.obj(t)?{...t}:{...r,from:t};$.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(_i(this)||this._state.asyncTo)||Wu(this)}get goal(){return Hr(this.animation.to)}get velocity(){let t=vo(this);return t instanceof Rc?t.lastVelocity||0:t.getPayload().map(r=>r.lastVelocity||0)}get hasAnimated(){return zp(this)}get isAnimating(){return _i(this)}get isPaused(){return Wu(this)}get isDelayed(){return this._state.delayed}advance(t){let r=!0,n=!1,o=this.animation,{config:i,toValues:a}=o,s=Rh(o.to);!s&&Rn(o.to)&&(a=dn(Hr(o.to))),o.values.forEach((c,d)=>{if(c.done)return;let f=c.constructor==fc?1:s?s[d].lastPosition:a[d],h=o.immediate,m=f;if(!h){if(m=c.lastPosition,i.tension<=0){c.done=!0;return}let y=c.elapsedTime+=t,E=o.fromValues[d],v=c.v0!=null?c.v0:c.v0=$.arr(i.velocity)?i.velocity[d]:i.velocity,g,C=i.precision||(E==f?.005:Math.min(1,Math.abs(f-E)*.001));if($.und(i.duration))if(i.decay){let S=i.decay===!0?.998:i.decay,w=Math.exp(-(1-S)*y);m=E+v/(1-S)*(1-w),h=Math.abs(c.lastPosition-m)<=C,g=v*w}else{g=c.lastVelocity==null?v:c.lastVelocity;let S=i.restVelocity||C/10,w=i.clamp?0:i.bounce,I=!$.und(w),b=E==f?c.v0>0:E<f,k,O=!1,L=1,se=Math.ceil(t/L);for(let B=0;B<se&&(k=Math.abs(g)>S,!(!k&&(h=Math.abs(f-m)<=C,h)));++B){I&&(O=m==f||m>f==b,O&&(g=-g*w,m=f));let ae=-i.tension*1e-6*(m-f),G=-i.friction*.001*g,oe=(ae+G)/i.mass;g=g+oe*L,m=m+g*L}}else{let S=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,c.durationProgress>0&&(c.elapsedTime=i.duration*c.durationProgress,y=c.elapsedTime+=t)),S=(i.progress||0)+y/this._memoizedDuration,S=S>1?1:S<0?0:S,c.durationProgress=S),m=E+i.easing(S)*(f-E),g=(m-c.lastPosition)/t,h=S==1}c.lastVelocity=g,Number.isNaN(m)&&(console.warn("Got NaN while animating:",this),h=!0)}s&&!s[d].done&&(h=!1),h?c.done=!0:r=!1,c.setValue(m,i.round)&&(n=!0)});let u=vo(this),l=u.getValue();if(r){let c=Hr(o.to);(l!==c||n)&&!i.decay?(u.setValue(c),this._onChange(c)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(t){return Re.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(_i(this)){let{to:t,config:r}=this.animation;Re.batchedUpdates(()=>{this._onStart(),r.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,r){let n;return $.und(t)?(n=this.queue||[],this.queue=[]):n=[$.obj(t)?t:{...r,to:t}],Promise.all(n.map(o=>this._update(o))).then(o=>gy(this,o))}stop(t){let{to:r}=this.animation;return this._focus(this.get()),pc(this._state,t&&this._lastCallId),Re.batchedUpdates(()=>this._stop(r,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){let r=this.key||"",{to:n,from:o}=t;n=$.obj(n)?n[r]:n,(n==null||Tg(n))&&(n=void 0),o=$.obj(o)?o[r]:o,o==null&&(o=void 0);let i={to:n,from:o};return zp(this)||(t.reverse&&([n,o]=[o,n]),o=Hr(o),$.und(o)?vo(this)||this._set(n):this._set(o)),i}_update({...t},r){let{key:n,defaultProps:o}=this;t.default&&Object.assign(o,my(t,(s,u)=>/^on/.test(u)?dI(s,n):s)),jC(this,t,"onProps"),$u(this,"onProps",t,this);let i=this._prepareNode(t);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let a=this._state;return pI(++this._lastCallId,{key:n,props:t,defaultProps:o,state:a,actions:{pause:()=>{Wu(this)||(VC(this,!0),nl(a.pauseQueue),$u(this,"onPause",Yn(this,ju(this,this.animation.to)),this))},resume:()=>{Wu(this)&&(VC(this,!1),_i(this)&&this._resume(),nl(a.resumeQueue),$u(this,"onResume",Yn(this,ju(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(t.loop&&s.finished&&!(r&&s.noop)){let u=yI(t);if(u)return this._update(u,!0)}return s})}_merge(t,r,n){if(r.cancel)return this.stop(!0),n(Zs(this));let o=!$.und(t.to),i=!$.und(t.from);if(o||i)if(r.callId>this._lastToId)this._lastToId=r.callId;else return n(Zs(this));let{key:a,defaultProps:s,animation:u}=this,{to:l,from:c}=u,{to:d=l,from:f=c}=t;i&&!o&&(!r.default||$.und(d))&&(d=f),r.reverse&&([d,f]=[f,d]);let h=!qo(f,c);h&&(u.from=f),f=Hr(f);let m=!qo(d,l);m&&this._focus(d);let y=Tg(r.to),{config:E}=u,{decay:v,velocity:g}=E;(o||i)&&(E.velocity=0),r.config&&!y&&xU(E,Sa(r.config,a),r.config!==s.config?Sa(s.config,a):void 0);let C=vo(this);if(!C||$.und(d))return n(Yn(this,!0));let S=$.und(r.reset)?i&&!r.default:!$.und(f)&&bl(r.reset,a),w=S?f:this.get(),I=hc(d),b=$.num(I)||$.arr(I)||Ah(I),k=!y&&(!b||bl(s.immediate||r.immediate,a));if(m){let B=wg(d);if(B!==C.constructor)if(k)C=this._set(I);else throw Error(`Cannot animate between ${C.constructor.name} and ${B.name}, as the "to" prop suggests`)}let O=C.constructor,L=Rn(d),se=!1;if(!L){let B=S||!zp(this)&&h;(m||B)&&(se=qo(hc(w),I),L=!se),(!qo(u.immediate,k)&&!k||!qo(E.decay,v)||!qo(E.velocity,g))&&(L=!0)}if(se&&_i(this)&&(u.changed&&!S?L=!0:L||this._stop(l)),!y&&((L||Rn(l))&&(u.values=C.getPayload(),u.toValues=Rn(d)?null:O==fc?[1]:dn(I)),u.immediate!=k&&(u.immediate=k,!k&&!S&&this._set(l)),L)){let{onRest:B}=u;Oe(UU,G=>jC(this,r,G));let ae=Yn(this,ju(this,l));nl(this._pendingCalls,ae),this._pendingCalls.add(n),u.changed&&Re.batchedUpdates(()=>{var G;u.changed=!S,B==null||B(ae,this),S?Sa(s.onRest,ae):(G=u.onStart)==null||G.call(u,ae,this)})}S&&this._set(w),y?n(gI(r.to,r,this._state,this)):L?this._start():_i(this)&&!m?this._pendingCalls.add(n):n(mI(w))}_focus(t){let r=this.animation;t!==r.to&&(xC(this)&&this._detach(),r.to=t,xC(this)&&this._attach())}_attach(){let t=0,{to:r}=this.animation;Rn(r)&&(Iu(r,this),Ig(r)&&(t=r.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;Rn(t)&&cc(t,this)}_set(t,r=!0){let n=Hr(t);if(!$.und(n)){let o=vo(this);if(!o||!qo(n,o.getValue())){let i=wg(n);!o||o.constructor!=i?py(this,i.create(n)):o.setValue(n),o&&Re.batchedUpdates(()=>{this._onChange(n,r)})}}return vo(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,$u(this,"onStart",Yn(this,ju(this,t.to)),this))}_onChange(t,r){r||(this._onStart(),Sa(this.animation.onChange,t,this)),Sa(this.defaultProps.onChange,t,this),super._onChange(t,r)}_start(){let t=this.animation;vo(this).reset(Hr(t.to)),t.immediate||(t.fromValues=t.values.map(r=>r.lastPosition)),_i(this)||(qC(this,!0),Wu(this)||this._resume())}_resume(){io.skipAnimation?this.finish():bh.start(this)}_stop(t,r){if(_i(this)){qC(this,!1);let n=this.animation;Oe(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),lc(this,{type:"idle",parent:this});let o=r?Zs(this.get()):Yn(this.get(),ju(this,t??n.to));nl(this._pendingCalls,o),n.changed&&(n.changed=!1,$u(this,"onRest",o,this))}}};function ju(e,t){let r=hc(t),n=hc(e.get());return qo(n,r)}function yI(e,t=e.loop,r=e.to){let n=Sa(t);if(n){let o=n!==!0&&hI(n),i=(o||e).reverse,a=!o||o.reset;return mc({...e,loop:t,default:!1,pause:void 0,to:!i||Tg(r)?r:void 0,from:a?e.from:void 0,reset:a,...o})}}function mc(e){let{to:t,from:r}=e=hI(e),n=new Set;return $.obj(t)&&WC(t,n),$.obj(r)&&WC(r,n),e.keys=n.size?Array.from(n):null,e}function BU(e){let t=mc(e);return $.und(t.default)&&(t.default=my(t)),t}function WC(e,t){Mo(e,(r,n)=>r!=null&&t.add(n))}var UU=["onStart","onRest","onChange","onPause","onResume"];function jC(e,t,r){e.animation[r]=t[r]!==fI(t,r)?dI(t[r],e.key):void 0}function $u(e,t,...r){var n,o,i,a;(o=(n=e.animation)[t])==null||o.call(n,...r),(a=(i=e.defaultProps)[t])==null||a.call(i,...r)}var HU=["onStart","onChange","onRest"],zU=1,KU=class{constructor(e,t){ue(this,"id",zU++);ue(this,"springs",{});ue(this,"queue",[]);ue(this,"ref");ue(this,"_flush");ue(this,"_initialProps");ue(this,"_lastAsyncId",0);ue(this,"_active",new Set);ue(this,"_changed",new Set);ue(this,"_started",!1);ue(this,"_item");ue(this,"_state",{paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set});ue(this,"_events",{onStart:new Map,onChange:new Map,onRest:new Map});this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(let t in e){let r=e[t];$.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(mc(e)),this}start(e){let{queue:t}=this;return e?t=dn(e).map(mc):this.queue=[],this._flush?this._flush(this,t):(wI(this,t),Rg(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let r=this.springs;Oe(dn(t),n=>r[n].stop(!!e))}else pc(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if($.und(e))this.start({pause:!0});else{let t=this.springs;Oe(dn(e),r=>t[r].pause())}return this}resume(e){if($.und(e))this.start({pause:!1});else{let t=this.springs;Oe(dn(e),r=>t[r].resume())}return this}each(e){Mo(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,o=this._changed.size>0;(n&&!this._started||o&&!this._started)&&(this._started=!0,wl(e,([s,u])=>{u.value=this.get(),s(u,this,this._item)}));let i=!n&&this._started,a=o||i&&r.size?this.get():null;o&&t.size&&wl(t,([s,u])=>{u.value=a,s(u,this,this._item)}),i&&(this._started=!1,wl(r,([s,u])=>{u.value=a,s(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Re.onFrame(this._onFrame)}};function Rg(e,t){return Promise.all(t.map(r=>EI(e,r))).then(r=>gy(e,r))}async function EI(e,t,r){let{keys:n,to:o,from:i,loop:a,onRest:s,onResolve:u}=t,l=$.obj(t.default)&&t.default;a&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);let c=$.arr(o)||$.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):Oe(HU,y=>{let E=t[y];if($.fun(E)){let v=e._events[y];t[y]=({finished:g,cancelled:C})=>{let S=v.get(E);S?(g||(S.finished=!1),C&&(S.cancelled=!0)):v.set(E,{value:null,finished:g||!1,cancelled:C||!1})},l&&(l[y]=t[y])}});let d=e._state;t.pause===!d.paused?(d.paused=t.pause,nl(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(n||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),h=t.cancel===!0||fI(t,"cancel")===!0;(c||h&&d.asyncId)&&f.push(pI(++e._lastAsyncId,{props:t,state:d,actions:{pause:Cg,resume:Cg,start(y,E){h?(pc(d,e._lastAsyncId),E(Zs(e))):(y.onRest=s,E(gI(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});let m=gy(e,await Promise.all(f));if(a&&m.finished&&!(r&&m.noop)){let y=yI(t,a,o);if(y)return wI(e,[y]),EI(e,y,!0)}return u&&Re.batchedUpdates(()=>u(m,e,e.item)),m}function $C(e,t){let r={...e.springs};return t&&Oe(dn(t),n=>{$.und(n.keys)&&(n=mc(n)),$.obj(n.to)||(n={...n,to:void 0}),SI(r,n,o=>CI(o))}),_I(e,r),r}function _I(e,t){Mo(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,Iu(r,e))})}function CI(e,t){let r=new LU;return r.key=e,t&&Iu(r,t),r}function SI(e,t,r){t.keys&&Oe(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function wI(e,t){Oe(t,r=>{SI(e.springs,r,n=>CI(n,e))})}var Mh=({children:e,...t})=>{let r=p.useContext(jf),n=t.pause||!!r.pause,o=t.immediate||!!r.immediate;t=gU(()=>({pause:n,immediate:o}),[n,o]);let{Provider:i}=jf;return p.createElement(i,{value:t},e)},jf=GU(Mh,{});Mh.Provider=jf.Provider;Mh.Consumer=jf.Consumer;function GU(e,t){return Object.assign(e,p.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var qU=()=>{let e=[],t=function(n){pU();let o=[];return Oe(e,(i,a)=>{if($.und(n))o.push(i.start());else{let s=r(n,i,a);s&&o.push(i.start(s))}}),o};t.current=e,t.add=function(n){e.includes(n)||e.push(n)},t.delete=function(n){let o=e.indexOf(n);~o&&e.splice(o,1)},t.pause=function(){return Oe(e,n=>n.pause(...arguments)),this},t.resume=function(){return Oe(e,n=>n.resume(...arguments)),this},t.set=function(n){Oe(e,(o,i)=>{let a=$.fun(n)?n(i,o):n;a&&o.set(a)})},t.start=function(n){let o=[];return Oe(e,(i,a)=>{if($.und(n))o.push(i.start());else{let s=this._getProps(n,i,a);s&&o.push(i.start(s))}}),o},t.stop=function(){return Oe(e,n=>n.stop(...arguments)),this},t.update=function(n){return Oe(e,(o,i)=>o.update(this._getProps(n,o,i))),this};let r=function(n,o,i){return $.fun(n)?n(i,o):n};return t._getProps=r,t};function VU(e,t,r){let n=$.fun(t)&&t;n&&!r&&(r=[]);let o=p.useMemo(()=>n||arguments.length==3?qU():void 0,[]),i=p.useRef(0),a=sI(),s=p.useMemo(()=>({ctrls:[],queue:[],flush(v,g){let C=$C(v,g);return i.current>0&&!s.queue.length&&!Object.keys(C).some(S=>!v.springs[S])?Rg(v,g):new Promise(S=>{_I(v,C),s.queue.push(()=>{S(Rg(v,g))}),a()})}}),[]),u=p.useRef([...s.ctrls]),l=[],c=OC(e)||0;p.useMemo(()=>{Oe(u.current.slice(e,c),v=>{PU(v,o),v.stop(!0)}),u.current.length=e,d(c,e)},[e]),p.useMemo(()=>{d(0,Math.min(c,e))},r);function d(v,g){for(let C=v;C<g;C++){let S=u.current[C]||(u.current[C]=new KU(null,s.flush)),w=n?n(C,S):t[C];w&&(l[C]=BU(w))}}let f=u.current.map((v,g)=>$C(v,l[g])),h=p.useContext(Mh),m=OC(h),y=h!==m&&RU(h);hy(()=>{i.current++,s.ctrls=u.current;let{queue:v}=s;v.length&&(s.queue=[],Oe(v,g=>g())),Oe(u.current,(g,C)=>{o==null||o.add(g),y&&g.start({default:h});let S=l[C];S&&(MU(g,S.ref),g.ref?g.queue.push(S):g.start(S))})}),uI(()=>()=>{Oe(s.ctrls,v=>v.stop(!0))});let E=f.map(v=>({...v}));return o?[E,o]:E}function WU(e,t){let r=$.fun(e),[[n],o]=VU(1,r?e:[e],r?t||[]:t);return r||arguments.length==2?[n,o]:n}var jU=class extends vy{constructor(t,r){super();ue(this,"key");ue(this,"idle",!0);ue(this,"calc");ue(this,"_active",new Set);this.source=t,this.calc=uc(...r);let n=this._get(),o=wg(n);py(this,o.create(n))}advance(t){let r=this._get(),n=this.get();qo(r,n)||(vo(this).setValue(r),this._onChange(r,this.idle)),!this.idle&&QC(this._active)&&Kp(this)}_get(){let t=$.arr(this.source)?this.source.map(Hr):dn(Hr(this.source));return this.calc(...t)}_start(){this.idle&&!QC(this._active)&&(this.idle=!1,Oe(Rh(this),t=>{t.done=!1}),io.skipAnimation?(Re.batchedUpdates(()=>this.advance()),Kp(this)):bh.start(this))}_attach(){let t=1;Oe(dn(this.source),r=>{Rn(r)&&Iu(r,this),Ig(r)&&(r.idle||this._active.add(r),t=Math.max(t,r.priority+1))}),this.priority=t,this._start()}_detach(){Oe(dn(this.source),t=>{Rn(t)&&cc(t,this)}),this._active.clear(),Kp(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=dn(this.source).reduce((r,n)=>Math.max(r,(Ig(n)?n.priority:0)+1),0))}};function $U(e){return e.idle!==!1}function QC(e){return!e.size||Array.from(e).every($U)}function Kp(e){e.idle||(e.idle=!0,Oe(Rh(e),t=>{t.done=!0}),lc(e,{type:"idle",parent:e}))}io.assign({createStringInterpolator:iI,to:(e,t)=>new jU(e,t)});var TI=/^--/;function QU(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!TI.test(e)&&!(Il.hasOwnProperty(e)&&Il[e])?t+"px":(""+t).trim()}var YC={};function YU(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:n,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...u}=t,l=Object.values(u),c=Object.keys(u).map(d=>r||e.hasAttribute(d)?d:YC[d]||(YC[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));o!==void 0&&(e.textContent=o);for(let d in n)if(n.hasOwnProperty(d)){let f=QU(d,n[d]);TI.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,l[f])}),i!==void 0&&(e.scrollTop=i),a!==void 0&&(e.scrollLeft=a),s!==void 0&&e.setAttribute("viewBox",s)}var Il={animationIterationCount:!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,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},XU=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),JU=["Webkit","Ms","Moz","O"];Il=Object.keys(Il).reduce((e,t)=>(JU.forEach(r=>e[XU(r,t)]=e[t]),e),Il);var ZU=/^(matrix|translate|scale|rotate|skew)/,eH=/^(translate)/,tH=/^(rotate|skew)/,Gp=(e,t)=>$.num(e)&&e!==0?e+t:e,Ld=(e,t)=>$.arr(e)?e.every(r=>Ld(r,t)):$.num(e)?e===t:parseFloat(e)===t,rH=class extends Ph{constructor({x:e,y:t,z:r,...n}){let o=[],i=[];(e||t||r)&&(o.push([e||0,t||0,r||0]),i.push(a=>[`translate3d(${a.map(s=>Gp(s,"px")).join(",")})`,Ld(a,0)])),Mo(n,(a,s)=>{if(s==="transform")o.push([a||""]),i.push(u=>[u,u===""]);else if(ZU.test(s)){if(delete n[s],$.und(a))return;let u=eH.test(s)?"px":tH.test(s)?"deg":"";o.push(dn(a)),i.push(s==="rotate3d"?([l,c,d,f])=>[`rotate3d(${l},${c},${d},${Gp(f,u)})`,Ld(f,0)]:l=>[`${s}(${l.map(c=>Gp(c,u)).join(",")})`,Ld(l,s.startsWith("scale")?1:0)])}}),o.length&&(n.transform=new nH(o,i)),super(n)}},nH=class extends rI{constructor(t,r){super();ue(this,"_value",null);this.inputs=t,this.transforms=r}get(){return this._value||(this._value=this._get())}_get(){let t="",r=!0;return Oe(this.inputs,(n,o)=>{let i=Hr(n[0]),[a,s]=this.transforms[o]($.arr(i)?i:n.map(Hr));t+=" "+a,r=r&&s}),r?"none":t}observerAdded(t){t==1&&Oe(this.inputs,r=>Oe(r,n=>Rn(n)&&Iu(n,this)))}observerRemoved(t){t==0&&Oe(this.inputs,r=>Oe(r,n=>Rn(n)&&cc(n,this)))}eventObserved(t){t.type=="change"&&(this._value=null),lc(this,t)}},oH=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];io.assign({batchedUpdates:Al.unstable_batchedUpdates,createStringInterpolator:iI,colors:V3});var iH=TU(oH,{applyAnimatedValues:YU,createAnimatedStyle:e=>new rH(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),aH=iH.animated;const sH=()=>{const e=WU({from:{opacity:0},to:{opacity:1}}),t=10;return K(aH.div,{style:{...e},children:K(rt,{className:Zo.answerContainer,verticalAlign:"space-between",children:K(rt.Item,{grow:!0,children:K(KD,{className:Zo.isLoading,label:"Finding answer ...",barHeight:t})})})})},uH=({error:e,onRetry:t})=>at(rt,{className:Zo.answerContainer,verticalAlign:"space-between",children:[K("div",{className:Zo.answerLogo,children:K(y4,{"aria-hidden":"true","aria-label":"Error icon",primaryFill:"red"})}),K(rt.Item,{grow:!0,children:at("p",{className:Zo.answerText,children:[e,K("br",{}),K(Nx,{className:Zo.retryButton,onClick:t,text:"Retry"})]})})]}),lH="_questionInputContainer_16lqj_1",cH="_questionLogo_16lqj_9",dH="_questionInputTextArea_16lqj_13",fH="_questionInputTextAreaInput_16lqj_18",hH="_questionInputButtonsContainer_16lqj_22",pH="_questionInputSendButton_16lqj_28",mH="_questionInputSendButtonDisabled_16lqj_32",Es={questionInputContainer:lH,questionLogo:cH,questionInputTextArea:dH,questionInputTextAreaInput:fH,questionInputButtonsContainer:hH,questionInputSendButton:pH,questionInputSendButtonDisabled:mH},gH=({onSend:e,disabled:t,placeholder:r,clearOnSend:n})=>{Ic();const[o,i]=p.useState(""),a=()=>{t||!o.trim()||(e(o),n&&i(""))},s=c=>{c.key!=="Enter"||c.nativeEvent.isComposing||c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),a())},u=(c,d)=>{d?d.length<=1e3&&i(d):i("")},l=t||!o.trim();return at(rt,{horizontal:!0,className:Es.questionInputContainer,children:[K(qT,{className:Es.questionInputTextArea,inputClassName:Es.questionInputTextAreaInput,placeholder:r,multiline:!0,autoAdjustHeight:!0,resizable:!1,borderless:!0,value:o,onChange:u,onKeyDown:s}),K("div",{className:Es.questionInputButtonsContainer,children:K("div",{className:`${Es.questionInputSendButton} ${l?Es.questionInputSendButtonDisabled:""}`,"aria-label":"Ask question button",onClick:a,children:K(_4,{primaryFill:"rgba(115, 118, 225, 1)"})})})]})},vH="_container_hy3wk_1",yH="_logo_hy3wk_12",EH="_message_hy3wk_22",qp={container:vH,logo:yH,message:EH},_H=()=>{var r;const t={imageUrl:(r=Ic().user)==null?void 0:r.avatar};return K(el,{...t,initialsColor:Se.darkBlue,size:_e.size40,hidePersonaDetails:!0})},CH=({message:e})=>{var r;const t=Ic();return at("div",{className:qp.container,children:[K("div",{className:qp.message,children:e}),at("div",{className:qp.logo,children:[K(_H,{}),((r=t.user)==null?void 0:r.displayName)||"Anonymous"]})]})},SH="_container_1opm5_1",wH="_disabled_1opm5_8",XC={container:SH,disabled:wH},TH=({className:e,disabled:t,onClick:r})=>K("div",{className:`${XC.container} ${e??""} ${t&&XC.disabled}`,onClick:r,children:K(g4,{})}),bH=()=>{const[e,t]=p.useState(800),[r,n]=p.useState(""),[o,i]=p.useState(.5),[a,s]=p.useState(.95),[u,l]=p.useState(10),c=p.useRef(""),[d,f]=p.useState(!1),[h,m]=p.useState(),[y,E]=p.useState([]),v=Ic(),g=async O=>{var se,B,ae,G;console.log("make api request ....",O),c.current=O;const L={answer:void 0};E([...y,[O,L]]),console.log("answers: ",y),h&&m(void 0),f(!0);try{const me={history:[...y.map(T=>({user:T[0],bot:T[1].answer})),{user:O,bot:void 0}],approach:Gb.ReadRetrieveRead,overrides:{promptSystemTemplate:r.length===0?void 0:r,maxResponse:e,temperature:o,top:a},sessionConfig:{pastMessages:u},userInfo:{username:(se=v.user)==null?void 0:se.displayName,email:(B=v.user)==null?void 0:B.email},accessToken:{accessToken:((ae=v.accessToken)==null?void 0:ae.accessToken)||""},sessionId:{sessionId:((G=v.sessionId)==null?void 0:G.sessionId)||""}};console.log("request: ",me);const P=await G4(me);console.log("answer: ",P),console.log([...y,[O,P]]),E([...y,[O,P]])}catch(oe){m(oe)}finally{f(!1)}},C=()=>{c.current="",h&&m(void 0),E([])},S=(O,L)=>{n(L||"")},w=O=>t(O),I=O=>i(O),b=O=>s(O),k=O=>l(O);return K("div",{className:Xt.container,children:at(rt,{enableScopedSelectors:!0,disableShrink:!0,horizontal:!0,horizontalAlign:"center",verticalAlign:"center",className:Xt.stack,children:[K(rt.Item,{grow:!0,align:"stretch",disableShrink:!0,className:Xt.stackItem,children:K("div",{className:Xt.chatRoot,children:at("div",{className:Xt.chatContainer,children:[at("div",{className:Xt.chatMessageStream,children:[y.map((O,L)=>at("div",{children:[K(CH,{message:O[0]}),K(O3,{answer:O[1]},L)]},L)),d&&K(Ud,{children:K("div",{className:Xt.chatMessageGptMinWidth,children:K(sH,{})})}),h?K(Ud,{children:K("div",{className:Xt.chatMessageGptMinWidth,children:K(uH,{error:h.toString(),onRetry:()=>g(c.current)})})}):null]}),at("div",{className:Xt.chatInput,children:[K(TH,{className:Xt.commandButton,onClick:C,disabled:!c.current||d}),K(gH,{clearOnSend:!0,placeholder:"Type a new question (e.g. does my plan cover annual eye exams?)",disabled:d,onSend:O=>g(O)})]})]})})}),K(rt.Item,{grow:!0,align:"stretch",className:Xt.stackItemConfig,children:at("div",{className:Xt.commandsContainer,children:[K("div",{className:Xt.chatSettingsLabel,children:K(Kb,{children:"Parameters"})}),K(qT,{className:Xt.chatSettingsSeparator,defaultValue:r,label:"System Prompt",multiline:!0,autoAdjustHeight:!0,onChange:S}),K(nd,{className:Xt.chatSettingsSeparator,label:"Max response",min:1,max:4e3,step:1,showValue:!0,snapToStep:!0,defaultValue:e,onChange:w}),K(nd,{className:Xt.chatSettingsSeparator,label:"Temperature",min:0,max:1,step:.05,showValue:!0,snapToStep:!0,defaultValue:o,onChange:I}),K(nd,{className:Xt.chatSettingsSeparator,label:"Top P",min:0,max:1,step:.05,showValue:!0,snapToStep:!0,defaultValue:a,onChange:b}),K("h3",{children:"Session settings"}),K(nd,{className:Xt.chatSettingsSeparator,label:"Past message included",min:0,max:20,step:1,showValue:!0,snapToStep:!0,defaultValue:u,onChange:k})]})})]})})},dd={clientId:"57a15341-faad-4494-a209-7d64838b368e",tenantId:"72f988bf-86f1-41af-91ab-2d7cd011db47",redirectUri:"http://localhost:5000",authorityBaseUrl:"https://login.microsoftonline.com/"};DD();const gc=new Sb({auth:{clientId:dd.clientId,redirectUri:dd.redirectUri,authority:dd.authorityBaseUrl+dd.tenantId},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!0}}),Vp=gc.getAllAccounts();Vp&&Vp.length>0&&gc.setActiveAccount(Vp[0]);gc.addEventCallback(e=>{if(e.eventType===he.LOGIN_SUCCESS&&e.payload){const t=e.payload;gc.setActiveAccount(t.account)}});function IH({pca:e}){return K(lR,{children:K(kL,{instance:e,children:K(aB,{children:K(oR,{children:at(Td,{path:"/",element:K(cB,{}),children:[K(Td,{index:!0,element:K(bH,{})}),K(Td,{path:"*",element:K(dB,{})})]})})})})})}Wp.createRoot(document.getElementById("root")).render(K(La.StrictMode,{children:K(IH,{pca:gc})}));
//# sourceMappingURL=index-5316f52c.js.map
