PageSourceSearch

https://mango-cliff-0f2696a03.2.azurestaticapps.net/assets/index-DsuUHUPE.js

js mango-cliff-0f2696a03.2.azurestaticapps.net collected 2026-10-10 02:20:26 UTC 566,219 bytes, 237 lines download raw bytes

vendor: 5,941 bytes, lines 1-9
1var Yv=Object.defineProperty;var Jv=(t,e,n)=>e in t?Yv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ui=(t,e,n)=>Jv(t,typeof e!="symbol"?e+"":e,n);function Xv(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(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 r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Wr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function np(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rp={exports:{}},Ka={},op={exports:{}},z={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var ei=Symbol.for("react.element"),Zv=Symbol.for("react.portal"),e_=Symbol.for("react.fragment"),t_=Symbol.for("react.strict_mode"),n_=Symbol.for("react.profiler"),r_=Symbol.for("react.provider"),o_=Symbol.for("react.context"),i_=Symbol.for("react.forward_ref"),a_=Symbol.for("react.suspense"),s_=Symbol.for("react.memo"),l_=Symbol.for("react.lazy"),Fd=Symbol.iterator;function c_(t){return t===null||typeof t!="object"?null:(t=Fd&&t[Fd]||t["@@iterator"],typeof t=="function"?t:null)}var ip={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ap=Object.assign,sp={};function Hr(t,e,n){this.props=t,this.context=e,this.refs=sp,this.updater=n||ip}Hr.prototype.isReactComponent={};Hr.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Hr.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function lp(){}lp.prototype=Hr.prototype;function Nc(t,e,n){this.props=t,this.context=e,this.refs=sp,this.updater=n||ip}var bc=Nc.prototype=new lp;bc.constructor=Nc;ap(bc,Hr.prototype);bc.isPureReactComponent=!0;var Bd=Array.isArray,cp=Object.prototype.hasOwnProperty,Oc={current:null},up={key:!0,ref:!0,__self:!0,__source:!0};function dp(t,e,n){var r,o={},i=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)cp.call(e,r)&&!up.hasOwnProperty(r)&&(o[r]=e[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];o.children=c}if(t&&t.defaultProps)for(r in l=t.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:ei,type:t,key:i,ref:a,props:o,_owner:Oc.current}}function u_(t,e){return{$$typeof:ei,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Mc(t){return typeof t=="object"&&t!==null&&t.$$typeof===ei}function d_(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var zd=/\/+/g;function xs(t,e){return typeof t=="object"&&t!==null&&t.key!=null?d_(""+t.key):e.toString(36)}function Di(t,e,n,r,o){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case ei:case Zv:a=!0}}if(a)return a=t,o=o(a),t=r===""?"."+xs(a,0):r,Bd(o)?(n="",t!=null&&(n=t.replace(zd,"$&/")+"/"),Di(o,e,n,"",function(d){return d})):o!=null&&(Mc(o)&&(o=u_(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(zd,"$&/")+"/")+t)),e.push(o)),1;if(a=0,r=r===""?".":r+":",Bd(t))for(var l=0;l<t.length;l++){i=t[l];var c=r+xs(i,l);a+=Di(i,e,n,c,o)}else if(c=c_(t),typeof c=="function")for(t=c.call(t),l=0;!(i=t.next()).done;)i=i.value,c=r+xs(i,l++),a+=Di(i,e,n,c,o);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function di(t,e,n){if(t==null)return t;var r=[],o=0;return Di(t,r,"","",function(i){return e.call(n,i,o++)}),r}function h_(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Fe={current:null},Ui={transition:null},f_={ReactCurrentDispatcher:Fe,ReactCurrentBatchConfig:Ui,ReactCurrentOwner:Oc};function hp(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:di,forEach:function(t,e,n){di(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return di(t,function(){e++}),e},toArray:function(t){return di(t,function(e){return e})||[]},only:function(t){if(!Mc(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};z.Component=Hr;z.Fragment=e_;z.Profiler=n_;z.PureComponent=Nc;z.StrictMode=t_;z.Suspense=a_;
vendor: 9,034 bytes, lines 9-33
9z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f_;z.act=hp;z.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=ap({},t.props),o=t.key,i=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,a=Oc.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)cp.call(e,c)&&!up.hasOwnProperty(c)&&(r[c]=e[c]===void 0&&l!==void 0?l[c]:e[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:ei,type:t.type,key:o,ref:i,props:r,_owner:a}};z.createContext=function(t){return t={$$typeof:o_,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:r_,_context:t},t.Consumer=t};z.createElement=dp;z.createFactory=function(t){var e=dp.bind(null,t);return e.type=t,e};z.createRef=function(){return{current:null}};z.forwardRef=function(t){return{$$typeof:i_,render:t}};z.isValidElement=Mc;z.lazy=function(t){return{$$typeof:l_,_payload:{_status:-1,_result:t},_init:h_}};z.memo=function(t,e){return{$$typeof:s_,type:t,compare:e===void 0?null:e}};z.startTransition=function(t){var e=Ui.transition;Ui.transition={};try{t()}finally{Ui.transition=e}};z.unstable_act=hp;z.useCallback=function(t,e){return Fe.current.useCallback(t,e)};z.useContext=function(t){return Fe.current.useContext(t)};z.useDebugValue=function(){};z.useDeferredValue=function(t){return Fe.current.useDeferredValue(t)};z.useEffect=function(t,e){return Fe.current.useEffect(t,e)};z.useId=function(){return Fe.current.useId()};z.useImperativeHandle=function(t,e,n){return Fe.current.useImperativeHandle(t,e,n)};z.useInsertionEffect=function(t,e){return Fe.current.useInsertionEffect(t,e)};z.useLayoutEffect=function(t,e){return Fe.current.useLayoutEffect(t,e)};z.useMemo=function(t,e){return Fe.current.useMemo(t,e)};z.useReducer=function(t,e,n){return Fe.current.useReducer(t,e,n)};z.useRef=function(t){return Fe.current.useRef(t)};z.useState=function(t){return Fe.current.useState(t)};z.useSyncExternalStore=function(t,e,n){return Fe.current.useSyncExternalStore(t,e,n)};z.useTransition=function(){return Fe.current.useTransition()};z.version="18.3.1";op.exports=z;var k=op.exports;const Lc=np(k),p_=Xv({__proto__:null,default:Lc},[k]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var g_=k,m_=Symbol.for("react.element"),y_=Symbol.for("react.fragment"),v_=Object.prototype.hasOwnProperty,__=g_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w_={key:!0,ref:!0,__self:!0,__source:!0};function fp(t,e,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)v_.call(e,r)&&!w_.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)o[r]===void 0&&(o[r]=e[r]);return{$$typeof:m_,type:t,key:i,ref:a,props:o,_owner:__.current}}Ka.Fragment=y_;Ka.jsx=fp;Ka.jsxs=fp;rp.exports=Ka;var f=rp.exports,pp={exports:{}},ot={},gp={exports:{}},mp={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(t){function e(P,j){var F=P.length;P.push(j);e:for(;0<F;){var ie=F-1>>>1,Z=P[ie];if(0<o(Z,j))P[ie]=j,P[F]=Z,F=ie;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var j=P[0],F=P.pop();if(F!==j){P[0]=F;e:for(var ie=0,Z=P.length,On=Z>>>1;ie<On;){var Ut=2*(ie+1)-1,Is=P[Ut],Mn=Ut+1,ci=P[Mn];if(0>o(Is,F))Mn<Z&&0>o(ci,Is)?(P[ie]=ci,P[Mn]=F,ie=Mn):(P[ie]=Is,P[Ut]=F,ie=Ut);else if(Mn<Z&&0>o(ci,F))P[ie]=ci,P[Mn]=F,ie=Mn;else break e}}return j}function o(P,j){var F=P.sortIndex-j.sortIndex;return F!==0?F:P.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],d=[],p=1,s=null,u=3,h=!1,m=!1,v=!1,_=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(P){for(var j=n(d);j!==null;){if(j.callback===null)r(d);else if(j.startTime<=P)r(d),j.sortIndex=j.expirationTime,e(c,j);else break;j=n(d)}}function T(P){if(v=!1,w(P),!m)if(n(c)!==null)m=!0,$(E);else{var j=n(d);j!==null&&V(T,j.startTime-P)}}function E(P,j){m=!1,v&&(v=!1,g(O),O=-1),h=!0;var F=u;try{for(w(j),s=n(c);s!==null&&(!(s.expirationTime>j)||P&&!Ae());){var ie=s.callback;if(typeof ie=="function"){s.callback=null,u=s.priorityLevel;var Z=ie(s.expirationTime<=j);j=t.unstable_now(),typeof Z=="function"?s.callback=Z:s===n(c)&&r(c),w(j)}else r(c);s=n(c)}if(s!==null)var On=!0;else{var Ut=n(d);Ut!==null&&V(T,Ut.startTime-j),On=!1}return On}finally{s=null,u=F,h=!1}}var R=!1,N=null,O=-1,U=5,H=-1;function Ae(){return!(t.unstable_now()-H<U)}function pt(){if(N!==null){var P=t.unstable_now();H=P;var j=!0;try{j=N(!0,P)}finally{j?xt():(R=!1,N=null)}}else R=!1}var xt;if(typeof y=="function")xt=function(){y(pt)};else if(typeof MessageChannel<"u"){var at=new MessageChannel,Qr=at.port2;at.port1.onmessage=pt,xt=function(){Qr.postMessage(null)}}else xt=function(){_(pt,0)};function $(P){N=P,R||(R=!0,xt())}function V(P,j){O=_(function(){P(t.unstable_now())},j)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(P){P.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,$(E))},t.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<P?Math.floor(1e3/P):5},t.unstable_getCurrentPriorityLevel=function(){return u},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(P){switch(u){case 1:case 2:case 3:var j=3;break;default:j=u}var F=u;u=j;try{return P()}finally{u=F}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(P,j){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var F=u;u=P;try{return j()}finally{u=F}},t.unstable_scheduleCallback=function(P,j,F){var ie=t.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ie+F:ie):F=ie,P){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=F+Z,P={id:p++,callback:j,priorityLevel:P,startTime:F,expirationTime:Z,sortIndex:-1},F>ie?(P.sortIndex=F,e(d,P),n(c)===null&&P===n(d)&&(v?(g(O),O=-1):v=!0,V(T,F-ie))):(P.sortIndex=Z,e(c,P),m||h||(m=!0,$(E))),P},t.unstable_shouldYield=Ae,t.unstable_wrapCallback=function(P){var j=u;return function(){var F=u;u=j;try{return P.apply(this,arguments)}finally{u=F}}}})(mp);gp.exports=mp;var C_=gp.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var T_=k,rt=C_;function x(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var yp=new Set,xo={};function er(t,e){Pr(t,e),Pr(t+"Capture",e)}function Pr(t,e){for(xo[t]=e,t=0;t<e.length;t++)yp.add(e[t])}var qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pl=Object.prototype.hasOwnProperty,S_=/^[: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]*$/,Kd={},$d={};function A_(t){return pl.call($d,t)?!0:pl.call(Kd,t)?!1:S_.test(t)?$d[t]=!0:(Kd[t]=!0,!1)}function k_(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function E_(t,e,n,r){if(e===null||typeof e>"u"||k_(t,e,n,r))return!0;
vendor: 5,200 bytes, lines 33-34
33if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Be(t,e,n,r,o,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Re[t]=new Be(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Re[e]=new Be(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Re[t]=new Be(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Re[t]=new Be(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Re[t]=new Be(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Re[t]=new Be(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Re[t]=new Be(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Re[t]=new Be(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Re[t]=new Be(t,5,!1,t.toLowerCase(),null,!1,!1)});var Dc=/[\-:]([a-z])/g;function Uc(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Dc,Uc);Re[e]=new Be(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Dc,Uc);Re[e]=new Be(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Dc,Uc);Re[e]=new Be(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Re[t]=new Be(t,1,!1,t.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Re[t]=new Be(t,1,!1,t.toLowerCase(),null,!0,!0)});function jc(t,e,n,r){var o=Re.hasOwnProperty(e)?Re[e]:null;(o!==null?o.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(E_(e,n,o,r)&&(n=null),r||o===null?A_(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):o.mustUseProperty?t[o.propertyName]=n===null?o.type===3?!1:"":n:(e=o.attributeName,r=o.attributeNamespace,n===null?t.removeAttribute(e):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var Zt=T_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hi=Symbol.for("react.element"),lr=Symbol.for("react.portal"),cr=Symbol.for("react.fragment"),Hc=Symbol.for("react.strict_mode"),gl=Symbol.for("react.profiler"),vp=Symbol.for("react.provider"),_p=Symbol.for("react.context"),Fc=Symbol.for("react.forward_ref"),ml=Symbol.for("react.suspense"),yl=Symbol.for("react.suspense_list"),Bc=Symbol.for("react.memo"),rn=Symbol.for("react.lazy"),wp=Symbol.for("react.offscreen"),Gd=Symbol.iterator;function Yr(t){return t===null||typeof t!="object"?null:(t=Gd&&t[Gd]||t["@@iterator"],typeof t=="function"?t:null)}var le=Object.assign,Ps;function ao(t){if(Ps===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ps=e&&e[1]||""}return`
34`+Ps+t}var Rs=!1;function Ns(t,e){if(!t||Rs)return"";Rs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(d){var r=d}Reflect.construct(t,[],e)}else{try{e.call()}catch(d){r=d}t.call(e.prototype)}else{try{throw Error()}catch(d){r=d}t()}}
vendor: 16,736 bytes, lines 34-37
34catch(d){if(d&&r&&typeof d.stack=="string"){for(var o=d.stack.split(`
35`),i=r.stack.split(`
36`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var c=`
37`+o[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=l);break}}}finally{Rs=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?ao(t):""}function I_(t){switch(t.tag){case 5:return ao(t.type);case 16:return ao("Lazy");case 13:return ao("Suspense");case 19:return ao("SuspenseList");case 0:case 2:case 15:return t=Ns(t.type,!1),t;case 11:return t=Ns(t.type.render,!1),t;case 1:return t=Ns(t.type,!0),t;default:return""}}function vl(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case cr:return"Fragment";case lr:return"Portal";case gl:return"Profiler";case Hc:return"StrictMode";case ml:return"Suspense";case yl:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case _p:return(t.displayName||"Context")+".Consumer";case vp:return(t._context.displayName||"Context")+".Provider";case Fc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Bc:return e=t.displayName||null,e!==null?e:vl(t.type)||"Memo";case rn:e=t._payload,t=t._init;try{return vl(t(e))}catch{}}return null}function x_(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vl(e);case 8:return e===Hc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function En(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Cp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function P_(t){var e=Cp(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function fi(t){t._valueTracker||(t._valueTracker=P_(t))}function Tp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Cp(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Ji(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function _l(t,e){var n=e.checked;return le({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Vd(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=En(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Sp(t,e){e=e.checked,e!=null&&jc(t,"checked",e,!1)}function wl(t,e){Sp(t,e);var n=En(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Cl(t,e.type,n):e.hasOwnProperty("defaultValue")&&Cl(t,e.type,En(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function qd(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Cl(t,e,n){(e!=="number"||Ji(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var so=Array.isArray;function wr(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&r&&(t[n].defaultSelected=!0)}else{for(n=""+En(n),e=null,o=0;o<t.length;o++){if(t[o].value===n){t[o].selected=!0,r&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Tl(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(x(91));return le({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Qd(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(x(92));if(so(n)){if(1<n.length)throw Error(x(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:En(n)}}function Ap(t,e){var n=En(e.value),r=En(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function Wd(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function kp(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Sl(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?kp(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var pi,Ep=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,o)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(pi=pi||document.createElement("div"),pi.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=pi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Po(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var fo={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},R_=["Webkit","ms","Moz","O"];Object.keys(fo).forEach(function(t){R_.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),fo[e]=fo[t]})});function Ip(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||fo.hasOwnProperty(t)&&fo[t]?(""+e).trim():e+"px"}function xp(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ip(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}var N_=le({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 Al(t,e){if(e){if(N_[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(x(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(x(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(x(61))}if(e.style!=null&&typeof e.style!="object")throw Error(x(62))}}function kl(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var El=null;function zc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Il=null,Cr=null,Tr=null;function Yd(t){if(t=ri(t)){if(typeof Il!="function")throw Error(x(280));var e=t.stateNode;e&&(e=Qa(e),Il(t.stateNode,t.type,e))}}function Pp(t){Cr?Tr?Tr.push(t):Tr=[t]:Cr=t}function Rp(){if(Cr){var t=Cr,e=Tr;if(Tr=Cr=null,Yd(t),e)for(t=0;t<e.length;t++)Yd(e[t])}}function Np(t,e){return t(e)}function bp(){}var bs=!1;function Op(t,e,n){if(bs)return t(e,n);bs=!0;try{return Np(t,e,n)}finally{bs=!1,(Cr!==null||Tr!==null)&&(bp(),Rp())}}function Ro(t,e){var n=t.stateNode;if(n===null)return null;var r=Qa(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(x(231,e,typeof n));return n}var xl=!1;if(qt)try{var Jr={};Object.defineProperty(Jr,"passive",{get:function(){xl=!0}}),window.addEventListener("test",Jr,Jr),window.removeEventListener("test",Jr,Jr)}catch{xl=!1}function b_(t,e,n,r,o,i,a,l,c){var d=Array.prototype.slice.call(arguments,3);try{e.apply(n,d)}catch(p){this.onError(p)}}var po=!1,Xi=null,Zi=!1,Pl=null,O_={onError:function(t){po=!0,Xi=t}};function M_(t,e,n,r,o,i,a,l,c){po=!1,Xi=null,b_.apply(O_,arguments)}function L_(t,e,n,r,o,i,a,l,c){if(M_.apply(this,arguments),po){if(po){var d=Xi;po=!1,Xi=null}else throw Error(x(198));Zi||(Zi=!0,Pl=d)}}function tr(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Mp(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Jd(t){if(tr(t)!==t)throw Error(x(188))}function D_(t){var e=t.alternate;if(!e){if(e=tr(t),e===null)throw Error(x(188));return e!==t?null:t}for(var n=t,r=e;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Jd(o),t;if(i===r)return Jd(o),e;i=i.sibling}throw Error(x(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?t:e}function Lp(t){return t=D_(t),t!==null?Dp(t):null}function Dp(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Dp(t);if(e!==null)return e;t=t.sibling}return null}var Up=rt.unstable_scheduleCallback,Xd=rt.unstable_cancelCallback,U_=rt.unstable_shouldYield,j_=rt.unstable_requestPaint,ue=rt.unstable_now,H_=rt.unstable_getCurrentPriorityLevel,Kc=rt.unstable_ImmediatePriority,jp=rt.unstable_UserBlockingPriority,ea=rt.unstable_NormalPriority,F_=rt.unstable_LowPriority,Hp=rt.unstable_IdlePriority,$a=null,Lt=null;function B_(t){if(Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot($a,t,void 0,(t.current.flags&128)===128)}catch{}}var Ct=Math.clz32?Math.clz32:$_,z_=Math.log,K_=Math.LN2;function $_(t){return t>>>=0,t===0?32:31-(z_(t)/K_|0)|0}var gi=64,mi=4194304;function lo(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function ta(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,o=t.suspendedLanes,i=t.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=lo(l):(i&=a,i!==0&&(r=lo(i)))}else a=n&~o,a!==0?r=lo(a):i!==0&&(r=lo(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&o)&&(o=r&-r,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Ct(e),o=1<<n,r|=t[n],e&=~o;return r}function G_(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function V_(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,o=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-Ct(i),l=1<<a,c=o[a];c===-1?(!(l&n)||l&r)&&(o[a]=G_(l,e)):c<=e&&(t.expiredLanes|=l),i&=~l}}function Rl(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Fp(){var t=gi;return gi<<=1,!(gi&4194240)&&(gi=64),t}function Os(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ti(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ct(e),t[e]=n}function q_(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var o=31-Ct(n),i=1<<o;e[o]=0,r[o]=-1,t[o]=-1,n&=~i}}function $c(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Ct(n),o=1<<r;o&e|t[r]&e&&(t[r]|=e),n&=~o}}var Q=0;function Bp(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var zp,Gc,Kp,$p,Gp,Nl=!1,yi=[],fn=null,pn=null,gn=null,No=new Map,bo=new Map,an=[],Q_="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 Zd(t,e){switch(t){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":pn=null;break;case"mouseover":case"mouseout":gn=null;break;case"pointerover":case"pointerout":No.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":bo.delete(e.pointerId)}}function Xr(t,e,n,r,o,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},e!==null&&(e=ri(e),e!==null&&Gc(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function W_(t,e,n,r,o){switch(e){case"focusin":return fn=Xr(fn,t,e,n,r,o),!0;case"dragenter":return pn=Xr(pn,t,e,n,r,o),!0;case"mouseover":return gn=Xr(gn,t,e,n,r,o),!0;case"pointerover":var i=o.pointerId;return No.set(i,Xr(No.get(i)||null,t,e,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,bo.set(i,Xr(bo.get(i)||null,t,e,n,r,o)),!0}return!1}function Vp(t){var e=jn(t.target);if(e!==null){var n=tr(e);if(n!==null){if(e=n.tag,e===13){if(e=Mp(n),e!==null){t.blockedOn=e,Gp(t.priority,function(){Kp(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ji(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=bl(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);El=r,n.target.dispatchEvent(r),El=null}else return e=ri(n),e!==null&&Gc(e),t.blockedOn=n,!1;e.shift()}return!0}function eh(t,e,n){ji(t)&&n.delete(e)}function Y_(){Nl=!1,fn!==null&&ji(fn)&&(fn=null),pn!==null&&ji(pn)&&(pn=null),gn!==null&&ji(gn)&&(gn=null),No.forEac
vendor: 10,189 bytes, line 37
37h(eh),bo.forEach(eh)}function Zr(t,e){t.blockedOn===e&&(t.blockedOn=null,Nl||(Nl=!0,rt.unstable_scheduleCallback(rt.unstable_NormalPriority,Y_)))}function Oo(t){function e(o){return Zr(o,t)}if(0<yi.length){Zr(yi[0],t);for(var n=1;n<yi.length;n++){var r=yi[n];r.blockedOn===t&&(r.blockedOn=null)}}for(fn!==null&&Zr(fn,t),pn!==null&&Zr(pn,t),gn!==null&&Zr(gn,t),No.forEach(e),bo.forEach(e),n=0;n<an.length;n++)r=an[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<an.length&&(n=an[0],n.blockedOn===null);)Vp(n),n.blockedOn===null&&an.shift()}var Sr=Zt.ReactCurrentBatchConfig,na=!0;function J_(t,e,n,r){var o=Q,i=Sr.transition;Sr.transition=null;try{Q=1,Vc(t,e,n,r)}finally{Q=o,Sr.transition=i}}function X_(t,e,n,r){var o=Q,i=Sr.transition;Sr.transition=null;try{Q=4,Vc(t,e,n,r)}finally{Q=o,Sr.transition=i}}function Vc(t,e,n,r){if(na){var o=bl(t,e,n,r);if(o===null)Ks(t,e,r,ra,n),Zd(t,r);else if(W_(o,t,e,n,r))r.stopPropagation();else if(Zd(t,r),e&4&&-1<Q_.indexOf(t)){for(;o!==null;){var i=ri(o);if(i!==null&&zp(i),i=bl(t,e,n,r),i===null&&Ks(t,e,r,ra,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Ks(t,e,r,null,n)}}var ra=null;function bl(t,e,n,r){if(ra=null,t=zc(r),t=jn(t),t!==null)if(e=tr(t),e===null)t=null;else if(n=e.tag,n===13){if(t=Mp(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return ra=t,null}function qp(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(H_()){case Kc:return 1;case jp:return 4;case ea:case F_:return 16;case Hp:return 536870912;default:return 16}default:return 16}}var cn=null,qc=null,Hi=null;function Qp(){if(Hi)return Hi;var t,e=qc,n=e.length,r,o="value"in cn?cn.value:cn.textContent,i=o.length;for(t=0;t<n&&e[t]===o[t];t++);var a=n-t;for(r=1;r<=a&&e[n-r]===o[i-r];r++);return Hi=o.slice(t,1<r?1-r:void 0)}function Fi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function vi(){return!0}function th(){return!1}function it(t){function e(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?vi:th,this.isPropagationStopped=th,this}return le(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),e}var Fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qc=it(Fr),ni=le({},Fr,{view:0,detail:0}),Z_=it(ni),Ms,Ls,eo,Ga=le({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==eo&&(eo&&t.type==="mousemove"?(Ms=t.screenX-eo.screenX,Ls=t.screenY-eo.screenY):Ls=Ms=0,eo=t),Ms)},movementY:function(t){return"movementY"in t?t.movementY:Ls}}),nh=it(Ga),ew=le({},Ga,{dataTransfer:0}),tw=it(ew),nw=le({},ni,{relatedTarget:0}),Ds=it(nw),rw=le({},Fr,{animationName:0,elapsedTime:0,pseudoElement:0}),ow=it(rw),iw=le({},Fr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),aw=it(iw),sw=le({},Fr,{data:0}),rh=it(sw),lw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cw={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"},uw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dw(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=uw[t])?!!e[t]:!1}function Wc(){return dw}var hw=le({},ni,{key:function(t){if(t.key){var e=lw[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Fi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?cw[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wc,charCode:function(t){return t.type==="keypress"?Fi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Fi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),fw=it(hw),pw=le({},Ga,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oh=it(pw),gw=le({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wc}),mw=it(gw),yw=le({},Fr,{propertyName:0,elapsedTime:0,pseudoElement:0}),vw=it(yw),_w=le({},Ga,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),ww=it(_w),Cw=[9,13,27,32],Yc=qt&&"CompositionEvent"in window,go=null;qt&&"documentMode"in document&&(go=document.documentMode);var Tw=qt&&"TextEvent"in window&&!go,Wp=qt&&(!Yc||go&&8<go&&11>=go),ih=" ",ah=!1;function Yp(t,e){switch(t){case"keyup":return Cw.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ur=!1;function Sw(t,e){switch(t){case"compositionend":return Jp(e);case"keypress":return e.which!==32?null:(ah=!0,ih);case"textInput":return t=e.data,t===ih&&ah?null:t;default:return null}}function Aw(t,e){if(ur)return t==="compositionend"||!Yc&&Yp(t,e)?(t=Qp(),Hi=qc=cn=null,ur=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Wp&&e.locale!=="ko"?null:e.data;default:return null}}var kw={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 sh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!kw[t.type]:e==="textarea"}function Xp(t,e,n,r){Pp(r),e=oa(e,"onChange"),0<e.length&&(n=new Qc("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var mo=null,Mo=null;function Ew(t){cg(t,0)}function Va(t){var e=fr(t);if(Tp(e))return t}function Iw(t,e){if(t==="change")return e}var Zp=!1;if(qt){var Us;if(qt){var js="oninput"in document;if(!js){var lh=document.createElement("div");lh.setAttribute("oninput","return;"),js=typeof lh.oninput=="function"}Us=js}else Us=!1;Zp=Us&&(!document.documentMode||9<document.documentMode)}function ch(){mo&&(mo.detachEvent("onpropertychange",eg),Mo=mo=null)}function eg(t){if(t.propertyName==="value"&&Va(Mo)){var e=[];Xp(e,Mo,t,zc(t)),Op(Ew,e)}}function xw(t,e,n){t==="focusin"?(ch(),mo=e,Mo=n,mo.attachEvent("onpropertychange",eg)):t==="focusout"&&ch()}function Pw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Va(Mo)}function Rw(t,e){if(t==="click")return Va(e)}function Nw(t,e){if(t==="input"||t==="change")return Va(e)}function bw(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var At=typeof Object.is=="function"?Object.is:bw;function Lo(t,e){if(At(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!pl.call(e,o)||!At(t[o],e[o]))return!1}return!0}function uh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function dh(t,e){var n=uh(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=uh(n)}}function tg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?tg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ng(){for(var t=window,e=Ji();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ji(t.document)}return e}
vendor: 5,446 bytes, line 37
37function Jc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Ow(t){var e=ng(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&tg(n.ownerDocument.documentElement,n)){if(r!==null&&Jc(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!t.extend&&i>r&&(o=r,r=i,i=o),o=dh(n,i);var a=dh(n,r);o&&a&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Mw=qt&&"documentMode"in document&&11>=document.documentMode,dr=null,Ol=null,yo=null,Ml=!1;function hh(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ml||dr==null||dr!==Ji(r)||(r=dr,"selectionStart"in r&&Jc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yo&&Lo(yo,r)||(yo=r,r=oa(Ol,"onSelect"),0<r.length&&(e=new Qc("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=dr)))}function _i(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var hr={animationend:_i("Animation","AnimationEnd"),animationiteration:_i("Animation","AnimationIteration"),animationstart:_i("Animation","AnimationStart"),transitionend:_i("Transition","TransitionEnd")},Hs={},rg={};qt&&(rg=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);function qa(t){if(Hs[t])return Hs[t];if(!hr[t])return t;var e=hr[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in rg)return Hs[t]=e[n];return t}var og=qa("animationend"),ig=qa("animationiteration"),ag=qa("animationstart"),sg=qa("transitionend"),lg=new Map,fh="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 Pn(t,e){lg.set(t,e),er(e,[t])}for(var Fs=0;Fs<fh.length;Fs++){var Bs=fh[Fs],Lw=Bs.toLowerCase(),Dw=Bs[0].toUpperCase()+Bs.slice(1);Pn(Lw,"on"+Dw)}Pn(og,"onAnimationEnd");Pn(ig,"onAnimationIteration");Pn(ag,"onAnimationStart");Pn("dblclick","onDoubleClick");Pn("focusin","onFocus");Pn("focusout","onBlur");Pn(sg,"onTransitionEnd");Pr("onMouseEnter",["mouseout","mouseover"]);Pr("onMouseLeave",["mouseout","mouseover"]);Pr("onPointerEnter",["pointerout","pointerover"]);Pr("onPointerLeave",["pointerout","pointerover"]);er("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));er("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));er("onBeforeInput",["compositionend","keypress","textInput","paste"]);er("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));er("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));er("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var co="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(" "),Uw=new Set("cancel close invalid load scroll toggle".split(" ").concat(co));function ph(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,L_(r,e,void 0,t),t.currentTarget=null}function cg(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],o=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,d=l.currentTarget;if(l=l.listener,c!==i&&o.isPropagationStopped())break e;ph(o,l,d),i=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,d=l.currentTarget,l=l.listener,c!==i&&o.isPropagationStopped())break e;ph(o,l,d),i=c}}}if(Zi)throw t=Pl,Zi=!1,Pl=null,t}function te(t,e){var n=e[Hl];n===void 0&&(n=e[Hl]=new Set);var r=t+"__bubble";n.has(r)||(ug(e,t,2,!1),n.add(r))}function zs(t,e,n){var r=0;e&&(r|=4),ug(n,t,r,e)}var wi="_reactListening"+Math.random().toString(36).slice(2);
vendor: 6,017 bytes, lines 37-38
37function Do(t){if(!t[wi]){t[wi]=!0,yp.forEach(function(n){n!=="selectionchange"&&(Uw.has(n)||zs(n,!1,t),zs(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[wi]||(e[wi]=!0,zs("selectionchange",!1,e))}}function ug(t,e,n,r){switch(qp(e)){case 1:var o=J_;break;case 4:o=X_;break;default:o=Vc}n=o.bind(null,e,n,t),o=void 0,!xl||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),r?o!==void 0?t.addEventListener(e,n,{capture:!0,passive:o}):t.addEventListener(e,n,!0):o!==void 0?t.addEventListener(e,n,{passive:o}):t.addEventListener(e,n,!1)}function Ks(t,e,n,r,o){var i=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;a=a.return}for(;l!==null;){if(a=jn(l),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}l=l.parentNode}}r=r.return}Op(function(){var d=i,p=zc(n),s=[];e:{var u=lg.get(t);if(u!==void 0){var h=Qc,m=t;switch(t){case"keypress":if(Fi(n)===0)break e;case"keydown":case"keyup":h=fw;break;case"focusin":m="focus",h=Ds;break;case"focusout":m="blur",h=Ds;break;case"beforeblur":case"afterblur":h=Ds;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=tw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=mw;break;case og:case ig:case ag:h=ow;break;case sg:h=vw;break;case"scroll":h=Z_;break;case"wheel":h=ww;break;case"copy":case"cut":case"paste":h=aw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=oh}var v=(e&4)!==0,_=!v&&t==="scroll",g=v?u!==null?u+"Capture":null:u;v=[];for(var y=d,w;y!==null;){w=y;var T=w.stateNode;if(w.tag===5&&T!==null&&(w=T,g!==null&&(T=Ro(y,g),T!=null&&v.push(Uo(y,T,w)))),_)break;y=y.return}0<v.length&&(u=new h(u,m,null,n,p),s.push({event:u,listeners:v}))}}if(!(e&7)){e:{if(u=t==="mouseover"||t==="pointerover",h=t==="mouseout"||t==="pointerout",u&&n!==El&&(m=n.relatedTarget||n.fromElement)&&(jn(m)||m[Qt]))break e;if((h||u)&&(u=p.window===p?p:(u=p.ownerDocument)?u.defaultView||u.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=d,m=m?jn(m):null,m!==null&&(_=tr(m),m!==_||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=d),h!==m)){if(v=nh,T="onMouseLeave",g="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(v=oh,T="onPointerLeave",g="onPointerEnter",y="pointer"),_=h==null?u:fr(h),w=m==null?u:fr(m),u=new v(T,y+"leave",h,n,p),u.target=_,u.relatedTarget=w,T=null,jn(p)===d&&(v=new v(g,y+"enter",m,n,p),v.target=w,v.relatedTarget=_,T=v),_=T,h&&m)t:{for(v=h,g=m,y=0,w=v;w;w=or(w))y++;for(w=0,T=g;T;T=or(T))w++;for(;0<y-w;)v=or(v),y--;for(;0<w-y;)g=or(g),w--;for(;y--;){if(v===g||g!==null&&v===g.alternate)break t;v=or(v),g=or(g)}v=null}else v=null;h!==null&&gh(s,u,h,v,!1),m!==null&&_!==null&&gh(s,_,m,v,!0)}}e:{if(u=d?fr(d):window,h=u.nodeName&&u.nodeName.toLowerCase(),h==="select"||h==="input"&&u.type==="file")var E=Iw;else if(sh(u))if(Zp)E=Nw;else{E=Pw;var R=xw}else(h=u.nodeName)&&h.toLowerCase()==="input"&&(u.type==="checkbox"||u.type==="radio")&&(E=Rw);if(E&&(E=E(t,d))){Xp(s,E,n,p);break e}R&&R(t,u,d),t==="focusout"&&(R=u._wrapperState)&&R.controlled&&u.type==="number"&&Cl(u,"number",u.value)}switch(R=d?fr(d):window,t){case"focusin":(sh(R)||R.contentEditable==="true")&&(dr=R,Ol=d,yo=null);break;case"focusout":yo=Ol=dr=null;break;case"mousedown":Ml=!0;break;case"contextmenu":case"mouseup":case"dragend":Ml=!1,hh(s,n,p);break;case"selectionchange":if(Mw)break;case"keydown":case"keyup":hh(s,n,p)}var N;if(Yc)e:{switch(t){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else ur?Yp(t,n)&&(O="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Wp&&n.locale!=="ko"&&(ur||O!=="onCompositionStart"?O==="onCompositionEnd"&&ur&&(N=Qp()):(cn=p,qc="value"in cn?cn.value:cn.textContent,ur=!0)),R=oa(d,O),0<R.length&&(O=new rh(O,t,null,n,p),s.push({event:O,listeners:R}),N?O.data=N:(N=Jp(n),N!==null&&(O.data=N)))),(N=Tw?Sw(t,n):Aw(t,n))&&(d=oa(d,"onBeforeInput"),0<d.length&&(p=new rh("onBeforeInput","beforeinput",null,n,p),s.push({event:p,listeners:d}),p.data=N))}cg(s,e)})}function Uo(t,e,n){return{instance:t,listener:e,currentTarget:n}}function oa(t,e){for(var n=e+"Capture",r=[];t!==null;){var o=t,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ro(t,n),i!=null&&r.unshift(Uo(t,i,o)),i=Ro(t,e),i!=null&&r.push(Uo(t,i,o))),t=t.return}return r}function or(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function gh(t,e,n,r,o){for(var i=e._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,d=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&d!==null&&(l=d,o?(c=Ro(n,i),c!=null&&a.unshift(Uo(n,c,l))):o||(c=Ro(n,i),c!=null&&a.push(Uo(n,c,l)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var jw=/\r\n?/g,Hw=/\u0000|\uFFFD/g;function mh(t){return(typeof t=="string"?t:""+t).replace(jw,`
38`).replace(Hw,"")}function Ci(t,e,n){if(e=mh(e),mh(t)!==e&&n)throw Error(x(425))}function ia(){}var Ll=null,Dl=null;function Ul(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var jl=typeof setTimeout=="function"?setTimeout:void 0,Fw=typeof clearTimeout=="function"?clearTimeout:void 0,yh=typeof Promise=="function"?Promise:void 0,Bw=typeof queueMicrotask=="function"?queueMicrotask:typeof yh<"u"?function(t){return yh.resolve(null).then(t).cat
vendor: 4,790 bytes, line 38
38ch(zw)}:jl;function zw(t){setTimeout(function(){throw t})}function $s(t,e){var n=e,r=0;do{var o=n.nextSibling;if(t.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){t.removeChild(o),Oo(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Oo(e)}function mn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function vh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Br=Math.random().toString(36).slice(2),bt="__reactFiber$"+Br,jo="__reactProps$"+Br,Qt="__reactContainer$"+Br,Hl="__reactEvents$"+Br,Kw="__reactListeners$"+Br,$w="__reactHandles$"+Br;function jn(t){var e=t[bt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Qt]||n[bt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=vh(t);t!==null;){if(n=t[bt])return n;t=vh(t)}return e}t=n,n=t.parentNode}return null}function ri(t){return t=t[bt]||t[Qt],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function fr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(x(33))}function Qa(t){return t[jo]||null}var Fl=[],pr=-1;function Rn(t){return{current:t}}function ne(t){0>pr||(t.current=Fl[pr],Fl[pr]=null,pr--)}function ee(t,e){pr++,Fl[pr]=t.current,t.current=e}var In={},Le=Rn(In),Ge=Rn(!1),Gn=In;function Rr(t,e){var n=t.type.contextTypes;if(!n)return In;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Ve(t){return t=t.childContextTypes,t!=null}function aa(){ne(Ge),ne(Le)}function _h(t,e,n){if(Le.current!==In)throw Error(x(168));ee(Le,e),ee(Ge,n)}function dg(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(x(108,x_(t)||"Unknown",o));return le({},n,r)}function sa(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||In,Gn=Le.current,ee(Le,t),ee(Ge,Ge.current),!0}function wh(t,e,n){var r=t.stateNode;if(!r)throw Error(x(169));n?(t=dg(t,e,Gn),r.__reactInternalMemoizedMergedChildContext=t,ne(Ge),ne(Le),ee(Le,t)):ne(Ge),ee(Ge,n)}var Bt=null,Wa=!1,Gs=!1;function hg(t){Bt===null?Bt=[t]:Bt.push(t)}function Gw(t){Wa=!0,hg(t)}function Nn(){if(!Gs&&Bt!==null){Gs=!0;var t=0,e=Q;try{var n=Bt;for(Q=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Bt=null,Wa=!1}catch(o){throw Bt!==null&&(Bt=Bt.slice(t+1)),Up(Kc,Nn),o}finally{Q=e,Gs=!1}}return null}var gr=[],mr=0,la=null,ca=0,st=[],lt=0,Vn=null,Kt=1,$t="";function Ln(t,e){gr[mr++]=ca,gr[mr++]=la,la=t,ca=e}function fg(t,e,n){st[lt++]=Kt,st[lt++]=$t,st[lt++]=Vn,Vn=t;var r=Kt;t=$t;var o=32-Ct(r)-1;r&=~(1<<o),n+=1;var i=32-Ct(e)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Kt=1<<32-Ct(e)+o|n<<o|r,$t=i+t}else Kt=1<<i|n<<o|r,$t=t}function Xc(t){t.return!==null&&(Ln(t,1),fg(t,1,0))}function Zc(t){for(;t===la;)la=gr[--mr],gr[mr]=null,ca=gr[--mr],gr[mr]=null;for(;t===Vn;)Vn=st[--lt],st[lt]=null,$t=st[--lt],st[lt]=null,Kt=st[--lt],st[lt]=null}var et=null,Ze=null,re=!1,_t=null;function pg(t,e){var n=ut(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Ch(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,et=t,Ze=mn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,et=t,Ze=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Vn!==null?{id:Kt,overflow:$t}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=ut(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,et=t,Ze=null,!0):!1;default:return!1}}function Bl(t){return(t.mode&1)!==0&&(t.flags&128)===0}function zl(t){if(re){var e=Ze;if(e){var n=e;if(!Ch(t,e)){if(Bl(t))throw Error(x(418));e=mn(n.nextSibling);var r=et;e&&Ch(t,e)?pg(r,n):(t.flags=t.flags&-4097|2,re=!1,et=t)}}else{if(Bl(t))throw Error(x(418));t.flags=t.flags&-4097|2,re=!1,et=t}}}function Th(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;et=t}function Ti(t){if(t!==et)return!1;if(!re)return Th(t),re=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Ul(t.type,t.memoizedProps)),e&&(e=Ze)){if(Bl(t))throw gg(),Error(x(418));for(;e;)pg(t,e),e=mn(e.nextSibling)}if(Th(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(x(317)
vendor: 23,256 bytes, lines 38-40
38);e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Ze=mn(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Ze=null}}else Ze=et?mn(t.stateNode.nextSibling):null;return!0}function gg(){for(var t=Ze;t;)t=mn(t.nextSibling)}function Nr(){Ze=et=null,re=!1}function eu(t){_t===null?_t=[t]:_t.push(t)}var Vw=Zt.ReactCurrentBatchConfig;function to(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,t));var o=r,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(a){var l=o.refs;a===null?delete l[i]:l[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,t))}return t}function Si(t,e){throw t=Object.prototype.toString.call(e),Error(x(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Sh(t){var e=t._init;return e(t._payload)}function mg(t){function e(g,y){if(t){var w=g.deletions;w===null?(g.deletions=[y],g.flags|=16):w.push(y)}}function n(g,y){if(!t)return null;for(;y!==null;)e(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function o(g,y){return g=wn(g,y),g.index=0,g.sibling=null,g}function i(g,y,w){return g.index=w,t?(w=g.alternate,w!==null?(w=w.index,w<y?(g.flags|=2,y):w):(g.flags|=2,y)):(g.flags|=1048576,y)}function a(g){return t&&g.alternate===null&&(g.flags|=2),g}function l(g,y,w,T){return y===null||y.tag!==6?(y=Xs(w,g.mode,T),y.return=g,y):(y=o(y,w),y.return=g,y)}function c(g,y,w,T){var E=w.type;return E===cr?p(g,y,w.props.children,T,w.key):y!==null&&(y.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rn&&Sh(E)===y.type)?(T=o(y,w.props),T.ref=to(g,y,w),T.return=g,T):(T=qi(w.type,w.key,w.props,null,g.mode,T),T.ref=to(g,y,w),T.return=g,T)}function d(g,y,w,T){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=Zs(w,g.mode,T),y.return=g,y):(y=o(y,w.children||[]),y.return=g,y)}function p(g,y,w,T,E){return y===null||y.tag!==7?(y=$n(w,g.mode,T,E),y.return=g,y):(y=o(y,w),y.return=g,y)}function s(g,y,w){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Xs(""+y,g.mode,w),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case hi:return w=qi(y.type,y.key,y.props,null,g.mode,w),w.ref=to(g,null,y),w.return=g,w;case lr:return y=Zs(y,g.mode,w),y.return=g,y;case rn:var T=y._init;return s(g,T(y._payload),w)}if(so(y)||Yr(y))return y=$n(y,g.mode,w,null),y.return=g,y;Si(g,y)}return null}function u(g,y,w,T){var E=y!==null?y.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:l(g,y,""+w,T);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case hi:return w.key===E?c(g,y,w,T):null;case lr:return w.key===E?d(g,y,w,T):null;case rn:return E=w._init,u(g,y,E(w._payload),T)}if(so(w)||Yr(w))return E!==null?null:p(g,y,w,T,null);Si(g,w)}return null}function h(g,y,w,T,E){if(typeof T=="string"&&T!==""||typeof T=="number")return g=g.get(w)||null,l(y,g,""+T,E);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case hi:return g=g.get(T.key===null?w:T.key)||null,c(y,g,T,E);case lr:return g=g.get(T.key===null?w:T.key)||null,d(y,g,T,E);case rn:var R=T._init;return h(g,y,w,R(T._payload),E)}if(so(T)||Yr(T))return g=g.get(w)||null,p(y,g,T,E,null);Si(y,T)}return null}function m(g,y,w,T){for(var E=null,R=null,N=y,O=y=0,U=null;N!==null&&O<w.length;O++){N.index>O?(U=N,N=null):U=N.sibling;var H=u(g,N,w[O],T);if(H===null){N===null&&(N=U);break}t&&N&&H.alternate===null&&e(g,N),y=i(H,y,O),R===null?E=H:R.sibling=H,R=H,N=U}if(O===w.length)return n(g,N),re&&Ln(g,O),E;if(N===null){for(;O<w.length;O++)N=s(g,w[O],T),N!==null&&(y=i(N,y,O),R===null?E=N:R.sibling=N,R=N);return re&&Ln(g,O),E}for(N=r(g,N);O<w.length;O++)U=h(N,g,O,w[O],T),U!==null&&(t&&U.alternate!==null&&N.delete(U.key===null?O:U.key),y=i(U,y,O),R===null?E=U:R.sibling=U,R=U);return t&&N.forEach(function(Ae){return e(g,Ae)}),re&&Ln(g,O),E}function v(g,y,w,T){var E=Yr(w);if(typeof E!="function")throw Error(x(150));if(w=E.call(w),w==null)throw Error(x(151));for(var R=E=null,N=y,O=y=0,U=null,H=w.next();N!==null&&!H.done;O++,H=w.next()){N.index>O?(U=N,N=null):U=N.sibling;var Ae=u(g,N,H.value,T);if(Ae===null){N===null&&(N=U);break}t&&N&&Ae.alternate===null&&e(g,N),y=i(Ae,y,O),R===null?E=Ae:R.sibling=Ae,R=Ae,N=U}if(H.done)return n(g,N),re&&Ln(g,O),E;if(N===null){for(;!H.done;O++,H=w.next())H=s(g,H.value,T),H!==null&&(y=i(H,y,O),R===null?E=H:R.sibling=H,R=H);return re&&Ln(g,O),E}for(N=r(g,N);!H.done;O++,H=w.next())H=h(N,g,O,H.value,T),H!==null&&(t&&H.alternate!==null&&N.delete(H.key===null?O:H.key),y=i(H,y,O),R===null?E=H:R.sibling=H,R=H);return t&&N.forEach(function(pt){return e(g,pt)}),re&&Ln(g,O),E}function _(g,y,w,T){if(typeof w=="object"&&w!==null&&w.type===cr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case hi:e:{for(var E=w.key,R=y;R!==null;){if(R.key===E){if(E=w.type,E===cr){if(R.tag===7){n(g,R.sibling),y=o(R,w.props.children),y.return=g,g=y;break e}}else if(R.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rn&&Sh(E)===R.type){n(g,R.sibling),y=o(R,w.props),y.ref=to(g,R,w),y.return=g,g=y;break e}n(g,R);break}else e(g,R);R=R.sibling}w.type===cr?(y=$n(w.props.children,g.mode,T,w.key),y.return=g,g=y):(T=qi(w.type,w.key,w.props,null,g.mode,T),T.ref=to(g,y,w),T.return=g,g=T)}return a(g);case lr:e:{for(R=w.key;y!==null;){if(y.key===R)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(g,y.sibling),y=o(y,w.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else e(g,y);y=y.sibling}y=Zs(w,g.mode,T),y.return=g,g=y}return a(g);case rn:return R=w._init,_(g,y,R(w._payload),T)}if(so(w))return m(g,y,w,T);if(Yr(w))return v(g,y,w,T);Si(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,w),y.return=g,g=y):(n(g,y),y=Xs(w,g.mode,T),y.return=g,g=y),a(g)):n(g,y)}return _}var br=mg(!0),yg=mg(!1),ua=Rn(null),da=null,yr=null,tu=null;function nu(){tu=yr=da=null}function ru(t){var e=ua.current;ne(ua),t._currentValue=e}function Kl(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Ar(t,e){da=t,tu=yr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&($e=!0),t.firstContext=null)}function ht(t){var e=t._currentValue;if(tu!==t)if(t={context:t,memoizedValue:e,next:null},yr===null){if(da===null)throw Error(x(308));yr=t,da.dependencies={lanes:0,firstContext:t}}else yr=yr.next=t;return e}var Hn=null;function ou(t){Hn===null?Hn=[t]:Hn.push(t)}function vg(t,e,n,r){var o=e.interleaved;return o===null?(n.next=n,ou(e)):(n.next=o.next,o.next=n),e.interleaved=n,Wt(t,r)}function Wt(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var on=!1;function iu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _g(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Vt(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function yn(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var o=r.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),r.pending=e,Wt(t,n)}return o=r.interleaved,o===null?(e.next=e,ou(r)):(e.next=o.next,o.next=e),r.interleaved=e,Wt(t,n)}function Bi(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,$c(t,n)}}function Ah(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=e:i=i.next=e}else o=i=e;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function ha(t,e,n,r){var o=t.updateQueue;on=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,d=c.next;c.next=null,a===null?i=d:a.next=d,a=c;var p=t.alternate;p!==null&&(p=p.updateQueue,l=p.lastBaseUpdate,l!==a&&(l===null?p.firstBaseUpdate=d:l.next=d,p.lastBaseUpdate=c))}if(i!==null){var s=o.baseState;a=0,p=d=c=null,l=i;do{var u=l.lane,h=l.eventTime;if((r&u)===u){p!==null&&(p=p.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=t,v=l;switch(u=e,h=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){s=m.call(h,s,u);break e}s=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,u=typeof m=="function"?m.call(h,s,u):m,u==null)break e;s=le({},s,u);break e;case 2:on=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,u=o.effects,u===null?o.effects=[l]:u.push(l))}else h={eventTime:h,lane:u,tag:l.tag,payload:l.payload,callback:l.callback,next:null},p===null?(d=p=h,c=s):p=p.next=h,a|=u;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;u=l,l=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}while(!0);if(p===null&&(c=s),o.baseState=c,o.firstBaseUpdate=d,o.lastBaseUpdate=p,e=o.shared.interleaved,e!==null){o=e;do a|=o.lane,o=o.next;while(o!==e)}else i===null&&(o.shared.lanes=0);Qn|=a,t.lanes=a,t.memoizedState=s}}function kh(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(x(191,o));o.call(r)}}}var oi={},Dt=Rn(oi),Ho=Rn(oi),Fo=Rn(oi);function Fn(t){if(t===oi)throw Error(x(174));return t}function au(t,e){switch(ee(Fo,e),ee(Ho,t),ee(Dt,oi),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Sl(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Sl(e,t)}ne(Dt),ee(Dt,e)}function Or(){ne(Dt),ne(Ho),ne(Fo)}function wg(t){Fn(Fo.current);var e=Fn(Dt.current),n=Sl(e,t.type);e!==n&&(ee(Ho,t),ee(Dt,n))}function su(t){Ho.current===t&&(ne(Dt),ne(Ho))}var ae=Rn(0);function fa(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Vs=[];function lu(){for(var t=0;t<Vs.length;t++)Vs[t]._workInProgressVersionPrimary=null;Vs.length=0}var zi=Zt.ReactCurrentDispatcher,qs=Zt.ReactCurrentBatchConfig,qn=0,se=null,ye=null,Te=null,pa=!1,vo=!1,Bo=0,qw=0;function Ne(){throw Error(x(321))}function cu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!At(t[n],e[n]))return!1;return!0}function uu(t,e,n,r,o,i){if(qn=i,se=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,zi.current=t===null||t.memoizedState===null?Jw:Xw,t=n(r,o),vo){i=0;do{if(vo=!1,Bo=0,25<=i)throw Error(x(301));i+=1,Te=ye=null,e.updateQueue=null,zi.current=Zw,t=n(r,o)}while(vo)}if(zi.current=ga,e=ye!==null&&ye.next!==null,qn=0,Te=ye=se=null,pa=!1,e)throw Error(x(300));return t}function du(){var t=Bo!==0;return Bo=0,t}function Rt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?se.memoizedState=Te=t:Te=Te.next=t,Te}function ft(){if(ye===null){var t=se.alternate;t=t!==null?t.memoizedState:null}else t=ye.next;var e=Te===null?se.memoizedState:Te.next;if(e!==null)Te=e,ye=t;else{if(t===null)throw Error(x(310));ye=t,t={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},Te===null?se.memoizedState=Te=t:Te=Te.next=t}return Te}function zo(t,e){return typeof e=="function"?e(t):e}function Qs(t){var e=ft(),n=e.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=t;var r=ye,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=a=null,c=null,d=i;do{var p=d.lane;if((qn&p)===p)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:t(r,d.action);else{var s={lane:p,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(l=c=s,a=r):c=c.next=s,se.lanes|=p,Qn|=p}d=d.next}while(d!==null&&d!==i);c===null?a=r:c.next=l,At(r,e.memoizedState)||($e=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=c,n.lastRenderedState=r}if(t=n.interleaved,t!==null){o=t;do i=o.lane,se.lanes|=i,Qn|=i,o=o.next;while(o!==t)}else o===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Ws(t){var e=ft(),n=e.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=t;var r=n.dispatch,o=n.pending,i=e.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=t(i,a.action),a=a.next;while(a!==o);At(i,e.memoizedState)||($e=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function Cg(){}function Tg(t,e){var n=se,r=ft(),o=e(),i=!At(r.memoizedState,o);if(i&&(r.memoizedState=o,$e=!0),r=r.queue,hu(kg.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,Ko(9,Ag.bind(null,n,r,o,e),void 0,null),Se===null)throw Error(x(349));qn&30||Sg(n,e,o)}return o}function Sg(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=se.updateQueue,e===null?(e={lastEffect:null,stores:null},se.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Ag(t,e,n,r){e.value=n,e.getSnapshot=r,Eg(e)&&Ig(t)}function kg(t,e,n){return n(function(){Eg(e)&&Ig(t)})}function Eg(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!At(t,n)}catch{return!0}}function Ig(t){var e=Wt(t,1);e!==null&&Tt(e,t,1,-1)}function Eh(t){var e=Rt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:t},e.queue=t,t=t.dispatch=Yw.bind(null,se,t),[e.memoizedState,t]}function Ko(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=se.updateQueue,e===null?(e={lastEffect:null,stores:null},se.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function xg(){return ft().memoizedState}function Ki(t,e,n,r){var o=Rt();se.flags|=t,o.memoizedState=Ko(1|e,n,void 0,r===void 0?null:r)}function Ya(t,e,n,r){var o=ft();r=r===void 0?null:r;var i=void 0;if(ye!==null){var a=ye.memoizedState;if(i=a.destroy,r!==null&&cu(r,a.deps)){o.memoizedState=Ko(e,n,i,r);return}}se.flags|=t,o.memoizedState=Ko(1|e,n,i,r)}function Ih(t,e){return Ki(8390656,8,t,e)}function hu(t,e){return Ya(2048,8,t,e)}function Pg(t,e){return Ya(4,2,t,e)}function Rg(t,e){return Ya(4,4,t,e)}function Ng(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function bg(t,e,n){return n=n!=null?n.concat([t]):null,Ya(4,4,Ng.bind(null,e,t),n)}function fu(){}function Og(t,e){var n=ft();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&cu(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Mg(t,e){var n=ft();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&cu(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Lg(t,e,n){return qn&21?(At(n,e)||(n=Fp(),se.lanes|=n,Qn|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,$e=!0),t.memoizedState=n)}function Qw(t,e){var n=Q;Q=n!==0&&4>n?n:4,t(!0);var r=qs.transition;qs.transition={};try{t(!1),e()}finally{Q=n,qs.transition=r}}function Dg(){return ft().memoizedState}function Ww(t,e,n){var r=_n(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ug(t))jg(e,n);else if(n=vg(t,e,n,r),n!==null){var o=He();Tt(n,t,r,o),Hg(n,e,r)}}function Yw(t,e,n){var r=_n(t),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ug(t))jg(e,o);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,At(l,a)){var c=e.interleaved;c===null?(o.next=o,ou(e)):(o.next=c.next,c.next=o),e.interleaved=o;return}}catch{}finally{}n=vg(t,e,o,r),n!==null&&(o=He(),Tt(n,t,r,o),Hg(n,e,r))}}function Ug(t){var e=t.alternate;return t===se||e!==null&&e===se}function jg(t,e){vo=pa=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Hg(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,$c(t,n)}}var ga={readContext:ht,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},Jw={readContext:ht,useCallback:function(t,e){return Rt().memoizedState=[t,e===void 0?null:e],t},useContext:ht,useEffect:Ih,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Ki(4194308,4,Ng.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ki(4194308,4,t,e)},useInsertionEffect:function(t,e){return Ki(4,2,t,e)},useMemo:function(t,e){var n=Rt();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Rt();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Ww.bind(null,se,t),[r.memoizedState,t]},useRef:function(t){var e=Rt();return t={current:t},e.memoizedState=t},useState:Eh,useDebugValue:fu,useDeferredValue:function(t){return Rt().memoizedState=t},useTransition:function(){var t=Eh(!1),e=t[0];return t=Qw.bind(null,t[1]),Rt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=se,o=Rt();if(re){if(n===void 0)throw Error(x(407));n=n()}else{if(n=e(),Se===null)throw Error(x(349));qn&30||Sg(r,e,n)}o.memoizedState=n;var i={value:n,getSnapshot:e};return o.queue=i,Ih(kg.bind(null,r,i,t),[t]),r.flags|=2048,Ko(9,Ag.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Rt(),e=Se.identifierPrefix;if(re){var n=$t,r=Kt;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Bo++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=qw++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Xw={readContext:ht,useCallback:Og,useContext:ht,useEffect:hu,useImperativeHandle:bg,useInsertionEffect:Pg,useLayoutEffect:Rg,useMemo:Mg,useReducer:Qs,useRef:xg,useState:function(){return Qs(zo)},useDebugValue:fu,useDeferredValue:function(t){var e=ft();return Lg(e,ye.memoizedState,t)},useTransition:function(){var t=Qs(zo)[0],e=ft().memoizedState;return[t,e]},useMutableSource:Cg,useSyncExternalStore:Tg,useId:Dg,unstable_isNewReconciler:!1},Zw={readContext:ht,useCallback:Og,useContext:ht,useEffect:hu,useImperativeHandle:bg,useInsertionEffect:Pg,useLayoutEffect:Rg,useMemo:Mg,useReducer:Ws,useRef:xg,useState:function(){return Ws(zo)},useDebugValue:fu,useDeferredValue:function(t){var e=ft();return ye===null?e.memoizedState=t:Lg(e,ye.memoizedState,t)},useTransition:function(){var t=Ws(zo)[0],e=ft().memoizedState;return[t,e]},useMutableSource:Cg,useSyncExternalStore:Tg,useId:Dg,unstable_isNewReconciler:!1};function mt(t,e){if(t&&t.defaultProps){e=le({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function $l(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:le({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ja={isMounted:function(t){return(t=t._reactInternals)?tr(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=He(),o=_n(t),i=Vt(r,o);i.payload=e,n!=null&&(i.callback=n),e=yn(t,i,o),e!==null&&(Tt(e,t,o,r),Bi(e,t,o))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=He(),o=_n(t),i=Vt(r,o);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=yn(t,i,o),e!==null&&(Tt(e,t,o,r),Bi(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=He(),r=_n(t),o=Vt(n,r);o.tag=2,e!=null&&(o.callback=e),e=yn(t,o,r),e!==null&&(Tt(e,t,r,n),Bi(e,t,r))}};function xh(t,e,n,r,o,i,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,a):e.prototype&&e.prototype.isPureReactComponent?!Lo(n,r)||!Lo(o,i):!0}function Fg(t,e,n){var r=!1,o=In,i=e.contextType;return typeof i=="object"&&i!==null?i=ht(i):(o=Ve(e)?Gn:Le.current,r=e.contextTypes,i=(r=r!=null)?Rr(t,o):In),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Ja,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function Ph(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Ja.enqueueReplaceState(e,e.state,null)}function Gl(t,e,n,r){var o=t.stateNode;o.props=n,o.state=t.memoizedState,o.refs={},iu(t);var i=e.contextType;typeof i=="object"&&i!==null?o.context=ht(i):(i=Ve(e)?Gn:Le.current,o.context=Rr(t,i)),o.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&($l(t,e,i,n),o.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(e=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),e!==o.state&&Ja.enqueueReplaceState(o,o.state,null),ha(t,n,o,r),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function Mr(t,e){try{var n="",r=e;do n+=I_(r),r=r.return;while(r);var o=n}catch(i){o=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:t,source:e,stack:o,digest:null}}function Ys(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Vl(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var eC=typeof WeakMap=="function"?WeakMap:Map;function Bg(t,e,n){n=Vt(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){ya||(ya=!0,nc=r),Vl(t,e)},n}function zg(t,e,n){n=Vt(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var o=e.value;n.payload=function(){return r(o)},n.callback=function(){Vl(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Vl(t,e),t
vendor: 7,622 bytes, line 40
40ypeof r!="function"&&(vn===null?vn=new Set([this]):vn.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),n}function Rh(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new eC;var o=new Set;r.set(e,o)}else o=r.get(e),o===void 0&&(o=new Set,r.set(e,o));o.has(n)||(o.add(n),t=pC.bind(null,t,e,n),e.then(t,t))}function Nh(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function bh(t,e,n,r,o){return t.mode&1?(t.flags|=65536,t.lanes=o,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Vt(-1,1),e.tag=2,yn(n,e,1))),n.lanes|=1),t)}var tC=Zt.ReactCurrentOwner,$e=!1;function Ue(t,e,n,r){e.child=t===null?yg(e,null,n,r):br(e,t.child,n,r)}function Oh(t,e,n,r,o){n=n.render;var i=e.ref;return Ar(e,o),r=uu(t,e,n,r,i,o),n=du(),t!==null&&!$e?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Yt(t,e,o)):(re&&n&&Xc(e),e.flags|=1,Ue(t,e,r,o),e.child)}function Mh(t,e,n,r,o){if(t===null){var i=n.type;return typeof i=="function"&&!Cu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,Kg(t,e,i,r,o)):(t=qi(n.type,null,r,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Lo,n(a,r)&&t.ref===e.ref)return Yt(t,e,o)}return e.flags|=1,t=wn(i,r),t.ref=e.ref,t.return=e,e.child=t}function Kg(t,e,n,r,o){if(t!==null){var i=t.memoizedProps;if(Lo(i,r)&&t.ref===e.ref)if($e=!1,e.pendingProps=r=i,(t.lanes&o)!==0)t.flags&131072&&($e=!0);else return e.lanes=t.lanes,Yt(t,e,o)}return ql(t,e,n,r,o)}function $g(t,e,n){var r=e.pendingProps,o=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ee(_r,Je),Je|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ee(_r,Je),Je|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ee(_r,Je),Je|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,ee(_r,Je),Je|=r;return Ue(t,e,o,n),e.child}function Gg(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function ql(t,e,n,r,o){var i=Ve(n)?Gn:Le.current;return i=Rr(e,i),Ar(e,o),n=uu(t,e,n,r,i,o),r=du(),t!==null&&!$e?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Yt(t,e,o)):(re&&r&&Xc(e),e.flags|=1,Ue(t,e,n,o),e.child)}function Lh(t,e,n,r,o){if(Ve(n)){var i=!0;sa(e)}else i=!1;if(Ar(e,o),e.stateNode===null)$i(t,e),Fg(e,n,r),Gl(e,n,r,o),r=!0;else if(t===null){var a=e.stateNode,l=e.memoizedProps;a.props=l;var c=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=ht(d):(d=Ve(n)?Gn:Le.current,d=Rr(e,d));var p=n.getDerivedStateFromProps,s=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";s||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==d)&&Ph(e,a,r,d),on=!1;var u=e.memoizedState;a.state=u,ha(e,r,a,o),c=e.memoizedState,l!==r||u!==c||Ge.current||on?(typeof p=="function"&&($l(e,n,p,r),c=e.memoizedState),(l=on||xh(e,n,l,r,u,c,d))?(s||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=c),a.props=r,a.state=c,a.context=d,r=l):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,_g(t,e),l=e.memoizedProps,d=e.type===e.elementType?l:mt(e.type,l),a.props=d,s=e.pendingProps,u=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=ht(c):(c=Ve(n)?Gn:Le.current,c=Rr(e,c));var h=n.getDerivedStateFromProps;(p=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==s||u!==c)&&Ph(e,a,r,c),on=!1,u=e.memoizedState,a.state=u,ha(e,r,a,o);var m=e.memoizedState;l!==s||u!==m||Ge.current||on?(typeof h=="function"&&($l(e,n,h,r),m=e.memoizedState),(d=on||xh(e,n,d,r,u,m,c)||!1)?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&u===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&u===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=m),a.props=r,a.state=m,a.context=c,r=d):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&u===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&u===t.memoizedState||(e.flags|=1024),r=!1)}return Ql(t,e,n,r,i,o)}function Ql(t,e,n,r,o,i){Gg(t,e);var a=(e.flags&128)!==0;if(!r&&!a)return o&&wh(e,n,!1),Yt(t,e,i);r=e.stateNode,tC.current=e;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&a?(e.child=br(e,t.child,null,i),e.child=br(e,null,l,i)):Ue(t,e,l,i),e.memoizedState=r.state,o&&wh(e,n,!0),e.child}function Vg(t){var e=t.stateNode;e.pendingContext?_h(t,e.pendingContext,e.pendingContext!==e.context):e.context&&_h(t,e.context,!1),au(t,e.containerInfo)}function Dh(t,e,n,r,o){return Nr(),eu(o),e.flags|=256,Ue(t,e,n,r),e.child}var Wl={dehydrated:null,treeContext:null,retryLane:0};function Yl(t){return{baseLanes:t,cachePool:null,transitions:null}}function qg(t,e,n){var r=e.pendingProps,o=ae.current,i=!1,a=(e.flags&128)!==0,l;if((l=a)||(l=t!==null&&t.memoizedState===null?!1:(o&2)!==0),l?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(o|=1),ee(ae,o&1),t===null)return zl(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=r.children,t=r.fallback,i?(r=e.mode,i=e.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=es(a,r,0,null),t=$n(t,r,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Yl(n),e.memoizedState=Wl,t):pu(e,a));if(o=t.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return nC(t,e,a,r,l,o,n);if(i){i=r.fallback,a=e.mode,o=t.child,l=o.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&e.child!==o?(r=e.child,r.childLanes=0,r.pendingProps=c,e.deletions=null):(r=wn(o,c),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=wn(l,i):(i=$n(i,a,n,null),i.flags|=2),i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,a=t.child.memoizedState,a=a===null?Yl(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~n,e.memoizedState=Wl,r}return i=t.child,t=i.sibling,r=wn(i,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function pu(t,e){return e=es({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Ai(t,e,n,r){return r!==null&&eu(r),br(e,t.child,null,n),t=pu(e,e.pen
vendor: 5,152 bytes, line 40
40dingProps.children),t.flags|=2,e.memoizedState=null,t}function nC(t,e,n,r,o,i,a){if(n)return e.flags&256?(e.flags&=-257,r=Ys(Error(x(422))),Ai(t,e,a,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=r.fallback,o=e.mode,r=es({mode:"visible",children:r.children},o,0,null),i=$n(i,o,a,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,e.mode&1&&br(e,t.child,null,a),e.child.memoizedState=Yl(a),e.memoizedState=Wl,i);if(!(e.mode&1))return Ai(t,e,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(x(419)),r=Ys(i,r,void 0),Ai(t,e,a,r)}if(l=(a&t.childLanes)!==0,$e||l){if(r=Se,r!==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&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Wt(t,o),Tt(r,t,o,-1))}return wu(),r=Ys(Error(x(421))),Ai(t,e,a,r)}return o.data==="$?"?(e.flags|=128,e.child=t.child,e=gC.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,Ze=mn(o.nextSibling),et=e,re=!0,_t=null,t!==null&&(st[lt++]=Kt,st[lt++]=$t,st[lt++]=Vn,Kt=t.id,$t=t.overflow,Vn=e),e=pu(e,r.children),e.flags|=4096,e)}function Uh(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Kl(t.return,e,n)}function Js(t,e,n,r,o){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Qg(t,e,n){var r=e.pendingProps,o=r.revealOrder,i=r.tail;if(Ue(t,e,r.children,n),r=ae.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Uh(t,n,e);else if(t.tag===19)Uh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ee(ae,r),!(e.mode&1))e.memoizedState=null;else switch(o){case"forwards":for(n=e.child,o=null;n!==null;)t=n.alternate,t!==null&&fa(t)===null&&(o=n),n=n.sibling;n=o,n===null?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),Js(e,!1,o,n,i);break;case"backwards":for(n=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&fa(t)===null){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}Js(e,!0,n,null,i);break;case"together":Js(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function $i(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Yt(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Qn|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(x(153));if(e.child!==null){for(t=e.child,n=wn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=wn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function rC(t,e,n){switch(e.tag){case 3:Vg(e),Nr();break;case 5:wg(e);break;case 1:Ve(e.type)&&sa(e);break;case 4:au(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,o=e.memoizedProps.value;ee(ua,r._currentValue),r._currentValue=o;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(ee(ae,ae.current&1),e.flags|=128,null):n&e.child.childLanes?qg(t,e,n):(ee(ae,ae.current&1),t=Yt(t,e,n),t!==null?t.sibling:null);ee(ae,ae.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return Qg(t,e,n);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ee(ae,ae.current),r)break;return null;case 22:case 23:return e.lanes=0,$g(t,e,n)}return Yt(t,e,n)}var Wg,Jl,Yg,Jg;Wg=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Jl=function(){};Yg=function(t,e,n,r){var o=t.memoizedProps;if(o!==r){t=e.stateNode,Fn(Dt.current);var i=null;switch(n){case"input":o=_l(t,o),r=_l(t,r),i=[];break;case"select":o=le({},o,{value:void 0}),r=le({},r,{value:void 0}),i=[];break;case"textarea":o=Tl(t,o),r=Tl(t,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=ia)}Al(n,r);var a;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var l=o[d];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(xo.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(l=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}
vendor: 5,029 bytes, line 40
40else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(xo.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&te("scroll",t),i||l===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(e.updateQueue=d)&&(e.flags|=4)}};Jg=function(t,e,n,r){n!==r&&(e.flags|=4)};function no(t,e){if(!re)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function be(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var o=t.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function oC(t,e,n){var r=e.pendingProps;switch(Zc(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return be(e),null;case 1:return Ve(e.type)&&aa(),be(e),null;case 3:return r=e.stateNode,Or(),ne(Ge),ne(Le),lu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Ti(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,_t!==null&&(ic(_t),_t=null))),Jl(t,e),be(e),null;case 5:su(e);var o=Fn(Fo.current);if(n=e.type,t!==null&&e.stateNode!=null)Yg(t,e,n,r,o),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(x(166));return be(e),null}if(t=Fn(Dt.current),Ti(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[bt]=e,r[jo]=i,t=(e.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(o=0;o<co.length;o++)te(co[o],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":Vd(r,i),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},te("invalid",r);break;case"textarea":Qd(r,i),te("invalid",r)}Al(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Ci(r.textContent,l,t),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Ci(r.textContent,l,t),o=["children",""+l]):xo.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&te("scroll",r)}switch(n){case"input":fi(r),qd(r,i,!0);break;case"textarea":fi(r),Wd(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ia)}r=o,e.updateQueue=r,r!==null&&(e.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=kp(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=a.createElement(n,{is:r.is}):(t=a.createElement(n),n==="select"&&(a=t,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):t=a.createElementNS(t,n),t[bt]=e,t[jo]=r,Wg(t,e,!1,!1),e.stateNode=t;e:{switch(a=kl(n,r),n){case"dialog":te("cancel",t),te("close",t),o=r;break;case"iframe":case"object":case"embed":te("load",t),o=r;break;case"video":case"audio":for(o=0;o<co.length;o++)te(co[o],t);o=r;break;case"source":te("error",t),o=r;break;case"img":case"image":case"link":te("error",t),te("load",t),o=r;break;case"details":te("toggle",t),o=r;break;case"input":Vd(t,r),o=_l(t,r),te("invalid",t);break;case"option":o=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},o=le({},r,{value:void 0}),te("invalid",t);break;case"textarea":Qd(t,r),o=Tl(t,r),te("invalid",t);break;default:o=r}Al(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?xp(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Ep(t,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Po(t,c):typeof c=="number"&&Po(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(xo.hasOwnProperty(i)?c!=null&&i==="onScroll"&&te("scroll",t):c!=null&&jc(t,i,c,a))}switch(n){case"input":fi(t),qd(t,r,!1);break;case"textarea":fi(t),Wd(t);break;case"option":r.value!=null&&t.setAttribute("value",""+En(r.value));break;case"select":t.multiple=!!r.multiple,i=r.value,i!=null?wr(t,!!r.multiple,i,!1):r.defaultValue!=null&&wr(t,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=ia)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}
vendor: 27,575 bytes, line 40
40return be(e),null;case 6:if(t&&e.stateNode!=null)Jg(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(x(166));if(n=Fn(Fo.current),Fn(Dt.current),Ti(e)){if(r=e.stateNode,n=e.memoizedProps,r[bt]=e,(i=r.nodeValue!==n)&&(t=et,t!==null))switch(t.tag){case 3:Ci(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ci(r.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[bt]=e,e.stateNode=r}return be(e),null;case 13:if(ne(ae),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(re&&Ze!==null&&e.mode&1&&!(e.flags&128))gg(),Nr(),e.flags|=98560,i=!1;else if(i=Ti(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(x(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(x(317));i[bt]=e}else Nr(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;be(e),i=!1}else _t!==null&&(ic(_t),_t=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||ae.current&1?ve===0&&(ve=3):wu())),e.updateQueue!==null&&(e.flags|=4),be(e),null);case 4:return Or(),Jl(t,e),t===null&&Do(e.stateNode.containerInfo),be(e),null;case 10:return ru(e.type._context),be(e),null;case 17:return Ve(e.type)&&aa(),be(e),null;case 19:if(ne(ae),i=e.memoizedState,i===null)return be(e),null;if(r=(e.flags&128)!==0,a=i.rendering,a===null)if(r)no(i,!1);else{if(ve!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=fa(t),a!==null){for(e.flags|=128,no(i,!1),r=a.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)i=n,t=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,t=a.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ee(ae,ae.current&1|2),e.child}t=t.sibling}i.tail!==null&&ue()>Lr&&(e.flags|=128,r=!0,no(i,!1),e.lanes=4194304)}else{if(!r)if(t=fa(a),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),no(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!re)return be(e),null}else 2*ue()-i.renderingStartTime>Lr&&n!==1073741824&&(e.flags|=128,r=!0,no(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(n=i.last,n!==null?n.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ue(),e.sibling=null,n=ae.current,ee(ae,r?n&1|2:n&1),e):(be(e),null);case 22:case 23:return _u(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Je&1073741824&&(be(e),e.subtreeFlags&6&&(e.flags|=8192)):be(e),null;case 24:return null;case 25:return null}throw Error(x(156,e.tag))}function iC(t,e){switch(Zc(e),e.tag){case 1:return Ve(e.type)&&aa(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Or(),ne(Ge),ne(Le),lu(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return su(e),null;case 13:if(ne(ae),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(x(340));Nr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ne(ae),null;case 4:return Or(),null;case 10:return ru(e.type._context),null;case 22:case 23:return _u(),null;case 24:return null;default:return null}}var ki=!1,Me=!1,aC=typeof WeakSet=="function"?WeakSet:Set,L=null;function vr(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ce(t,e,r)}else n.current=null}function Xl(t,e,n){try{n()}catch(r){ce(t,e,r)}}var jh=!1;function sC(t,e){if(Ll=na,t=ng(),Jc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,d=0,p=0,s=t,u=null;t:for(;;){for(var h;s!==n||o!==0&&s.nodeType!==3||(l=a+o),s!==i||r!==0&&s.nodeType!==3||(c=a+r),s.nodeType===3&&(a+=s.nodeValue.length),(h=s.firstChild)!==null;)u=s,s=h;for(;;){if(s===t)break t;if(u===n&&++d===o&&(l=a),u===i&&++p===r&&(c=a),(h=s.nextSibling)!==null)break;s=u,u=s.parentNode}s=h}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Dl={focusedElem:t,selectionRange:n},na=!1,L=e;L!==null;)if(e=L,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,L=t;else for(;L!==null;){e=L;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,_=m.memoizedState,g=e.stateNode,y=g.getSnapshotBeforeUpdate(e.elementType===e.type?v:mt(e.type,v),_);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=e.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(T){ce(e,e.return,T)}if(t=e.sibling,t!==null){t.return=e.return,L=t;break}L=e.return}return m=jh,jh=!1,m}function _o(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var i=o.destroy;o.destroy=void 0,i!==void 0&&Xl(e,n,i)}o=o.next}while(o!==r)}}function Xa(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Zl(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Xg(t){var e=t.alternate;e!==null&&(t.alternate=null,Xg(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[bt],delete e[jo],delete e[Hl],delete e[Kw],delete e[$w])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Zg(t){return t.tag===5||t.tag===3||t.tag===4}function Hh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Zg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ec(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ia));else if(r!==4&&(t=t.child,t!==null))for(ec(t,e,n),t=t.sibling;t!==null;)ec(t,e,n),t=t.sibling}function tc(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(tc(t,e,n),t=t.sibling;t!==null;)tc(t,e,n),t=t.sibling}var Ee=null,yt=!1;function en(t,e,n){for(n=n.child;n!==null;)em(t,e,n),n=n.sibling}function em(t,e,n){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount($a,n)}catch{}switch(n.tag){case 5:Me||vr(n,e);case 6:var r=Ee,o=yt;Ee=null,en(t,e,n),Ee=r,yt=o,Ee!==null&&(yt?(t=Ee,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Ee.removeChild(n.stateNode));break;case 18:Ee!==null&&(yt?(t=Ee,n=n.stateNode,t.nodeType===8?$s(t.parentNode,n):t.nodeType===1&&$s(t,n),Oo(t)):$s(Ee,n.stateNode));break;case 4:r=Ee,o=yt,Ee=n.stateNode.containerInfo,yt=!0,en(t,e,n),Ee=r,yt=o;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Xl(n,e,a),o=o.next}while(o!==r)}en(t,e,n);break;case 1:if(!Me&&(vr(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ce(n,e,l)}en(t,e,n);break;case 21:en(t,e,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,en(t,e,n),Me=r):en(t,e,n);break;default:en(t,e,n)}}function Fh(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new aC),e.forEach(function(r){var o=mC.bind(null,t,r);n.has(r)||(n.add(r),r.then(o,o))})}}function gt(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=t,a=e,l=a;e:for(;l!==null;){switch(l.tag){case 5:Ee=l.stateNode,yt=!1;break e;case 3:Ee=l.stateNode.containerInfo,yt=!0;break e;case 4:Ee=l.stateNode.containerInfo,yt=!0;break e}l=l.return}if(Ee===null)throw Error(x(160));em(i,a,o),Ee=null,yt=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(d){ce(o,e,d)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)tm(e,t),e=e.sibling}function tm(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(gt(e,t),Pt(t),r&4){try{_o(3,t,t.return),Xa(3,t)}catch(v){ce(t,t.return,v)}try{_o(5,t,t.return)}catch(v){ce(t,t.return,v)}}break;case 1:gt(e,t),Pt(t),r&512&&n!==null&&vr(n,n.return);break;case 5:if(gt(e,t),Pt(t),r&512&&n!==null&&vr(n,n.return),t.flags&32){var o=t.stateNode;try{Po(o,"")}catch(v){ce(t,t.return,v)}}if(r&4&&(o=t.stateNode,o!=null)){var i=t.memoizedProps,a=n!==null?n.memoizedProps:i,l=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Sp(o,i),kl(l,a);var d=kl(l,i);for(a=0;a<c.length;a+=2){var p=c[a],s=c[a+1];p==="style"?xp(o,s):p==="dangerouslySetInnerHTML"?Ep(o,s):p==="children"?Po(o,s):jc(o,p,s,d)}switch(l){case"input":wl(o,i);break;case"textarea":Ap(o,i);break;case"select":var u=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?wr(o,!!i.multiple,h,!1):u!==!!i.multiple&&(i.defaultValue!=null?wr(o,!!i.multiple,i.defaultValue,!0):wr(o,!!i.multiple,i.multiple?[]:"",!1))}o[jo]=i}catch(v){ce(t,t.return,v)}}break;case 6:if(gt(e,t),Pt(t),r&4){if(t.stateNode===null)throw Error(x(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(v){ce(t,t.return,v)}}break;case 3:if(gt(e,t),Pt(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Oo(e.containerInfo)}catch(v){ce(t,t.return,v)}break;case 4:gt(e,t),Pt(t);break;case 13:gt(e,t),Pt(t),o=t.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(yu=ue())),r&4&&Fh(t);break;case 22:if(p=n!==null&&n.memoizedState!==null,t.mode&1?(Me=(d=Me)||p,gt(e,t),Me=d):gt(e,t),Pt(t),r&8192){if(d=t.memoizedState!==null,(t.stateNode.isHidden=d)&&!p&&t.mode&1)for(L=t,p=t.child;p!==null;){for(s=L=p;L!==null;){switch(u=L,h=u.child,u.tag){case 0:case 11:case 14:case 15:_o(4,u,u.return);break;case 1:vr(u,u.return);var m=u.stateNode;if(typeof m.componentWillUnmount=="function"){r=u,n=u.return;try{e=r,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(v){ce(r,n,v)}}break;case 5:vr(u,u.return);break;case 22:if(u.memoizedState!==null){zh(s);continue}}h!==null?(h.return=u,L=h):zh(s)}p=p.sibling}e:for(p=null,s=t;;){if(s.tag===5){if(p===null){p=s;try{o=s.stateNode,d?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=s.stateNode,c=s.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Ip("display",a))}catch(v){ce(t,t.return,v)}}}else if(s.tag===6){if(p===null)try{s.stateNode.nodeValue=d?"":s.memoizedProps}catch(v){ce(t,t.return,v)}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===t)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;p===s&&(p=null),s=s.return}p===s&&(p=null),s.sibling.return=s.return,s=s.sibling}}break;case 19:gt(e,t),Pt(t),r&4&&Fh(t);break;case 21:break;default:gt(e,t),Pt(t)}}function Pt(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(Zg(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Po(o,""),r.flags&=-33);var i=Hh(t);tc(t,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,l=Hh(t);ec(t,l,a);break;default:throw Error(x(161))}}catch(c){ce(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function lC(t,e,n){L=t,nm(t)}function nm(t,e,n){for(var r=(t.mode&1)!==0;L!==null;){var o=L,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||ki;if(!a){var l=o.alternate,c=l!==null&&l.memoizedState!==null||Me;l=ki;var d=Me;if(ki=a,(Me=c)&&!d)for(L=o;L!==null;)a=L,c=a.child,a.tag===22&&a.memoizedState!==null?Kh(o):c!==null?(c.return=a,L=c):Kh(o);for(;i!==null;)L=i,nm(i),i=i.sibling;L=o,ki=l,Me=d}Bh(t)}else o.subtreeFlags&8772&&i!==null?(i.return=o,L=i):Bh(t)}}function Bh(t){for(;L!==null;){var e=L;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Me||Xa(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Me)if(n===null)r.componentDidMount();else{var o=e.elementType===e.type?n.memoizedProps:mt(e.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&kh(e,i,r);break;case 3:var a=e.updateQueue;if(a!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}kh(e,a,n)}break;case 5:var l=e.stateNode;if(n===null&&e.flags&4){n=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var d=e.alternate;if(d!==null){var p=d.memoizedState;if(p!==null){var s=p.dehydrated;s!==null&&Oo(s)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}Me||e.flags&512&&Zl(e)}catch(u){ce(e,e.return,u)}}if(e===t){L=null;break}if(n=e.sibling,n!==null){n.return=e.return,L=n;break}L=e.return}}function zh(t){for(;L!==null;){var e=L;if(e===t){L=null;break}var n=e.sibling;if(n!==null){n.return=e.return,L=n;break}L=e.return}}function Kh(t){for(;L!==null;){var e=L;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{Xa(4,e)}catch(c){ce(e,n,c)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var o=e.return;try{r.componentDidMount()}catch(c){ce(e,o,c)}}var i=e.return;try{Zl(e)}catch(c){ce(e,i,c)}break;case 5:var a=e.return;try{Zl(e)}catch(c){ce(e,a,c)}}}catch(c){ce(e,e.return,c)}if(e===t){L=null;break}var l=e.sibling;if(l!==null){l.return=e.return,L=l;break}L=e.return}}var cC=Math.ceil,ma=Zt.ReactCurrentDispatcher,gu=Zt.ReactCurrentOwner,dt=Zt.ReactCurrentBatchConfig,K=0,Se=null,fe=null,Pe=0,Je=0,_r=Rn(0),ve=0,$o=null,Qn=0,Za=0,mu=0,wo=null,ze=null,yu=0,Lr=1/0,Ht=null,ya=!1,nc=null,vn=null,Ei=!1,un=null,va=0,Co=0,rc=null,Gi=-1,Vi=0;function He(){return K&6?ue():Gi!==-1?Gi:Gi=ue()}function _n(t){return t.mode&1?K&2&&Pe!==0?Pe&-Pe:Vw.transition!==null?(Vi===0&&(Vi=Fp()),Vi):(t=Q,t!==0||(t=window.event,t=t===void 0?16:qp(t.type)),t):1}function Tt(t,e,n,r){if(50<Co)throw Co=0,rc=null,Error(x(185));ti(t,n,r),(!(K&2)||t!==Se)&&(t===Se&&(!(K&2)&&(Za|=n),ve===4&&sn(t,Pe)),qe(t,r),n===1&&K===0&&!(e.mode&1)&&(Lr=ue()+500,Wa&&Nn()))}function qe(t,e){var n=t.callbackNode;V_(t,e);var r=ta(t,t===Se?Pe:0);if(r===0)n!==null&&Xd(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&Xd(n),e===1)t.tag===0?Gw($h.bind(null,t)):hg($h.bind(null,t)),Bw(function(){!(K&6)&&Nn()}),n=null;else{switch(Bp(r)){case 1:n=Kc;break;case 4:n=jp;break;case 16:n=ea;break;case 536870912:n=Hp;break;default:n=ea}n=um(n,rm.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function rm(t,e){if(Gi=-1,Vi=0,K&6)throw Error(x(327));var n=t.callbackNode;if(kr()&&t.callbackNode!==n)return null;var r=ta(t,t===Se?Pe:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=_a(t,r);else{e=r;var o=K;K|=2;var i=im();(Se!==t||Pe!==e)&&(Ht=null,Lr=ue()+500,Kn(t,e));do try{hC();break}catch(l){om(t,l)}while(!0);nu(),ma.current=i,K=o,fe!==null?e=0:(Se=null,Pe=0,e=ve)}if(e!==0){if(e===2&&(o=Rl(t),o!==0&&(r=o,e=oc(t,o))),e===1)throw n=$o,Kn(t,0),sn(t,r),qe(t,ue()),n;if(e===6)sn(t,r);else{if(o=t.current.alternate,!(r&30)&&!uC(o)&&(e=_a(t,r),e===2&&(i=Rl(t),i!==0&&(r=i,e=oc(t,i))),e===1))throw n=$o,Kn(t,0),sn(t,r),qe(t,ue()),n;switch(t.finishedWork=o,t.finishedLanes=r,e){case 0:case 1:throw Error(x(345));case 2:Dn(t,ze,Ht);break;case 3:if(sn(t,r),(r&130023424)===r&&(e=yu+500-ue(),10<e)){if(ta(t,0)!==0)break;if(o=t.suspendedLanes,(o&r)!==r){He(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=jl(Dn.bind(null,t,ze,Ht),e);break}Dn(t,ze,Ht);break;case 4:if(sn(t,r),(r&4194240)===r)break;for(e=t.eventTimes,o=-1;0<r;){var a=31-Ct(r);i=1<<a,a=e[a],a>o&&(o=a),r&=~i}if(r=o,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cC(r/1960))-r,10<r){t.timeoutHandle=jl(Dn.bind(null,t,ze,Ht),r);break}Dn(t,ze,Ht);break;case 5:Dn(t,ze,Ht);break;default:throw Error(x(329))}}}return qe(t,ue()),t.callbackNode===n?rm.bind(null,t):null}function oc(t,e){var n=wo;return t.current.memoizedState.isDehydrated&&(Kn(t,e).flags|=256),t=_a(t,e),t!==2&&(e=ze,ze=n,e!==null&&ic(e)),t}function ic(t){ze===null?ze=t:ze.push.apply(ze,t)}function uC(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!At(i(),o))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function sn(t,e){for(e&=~mu,e&=~Za,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Ct(e),r=1<<n;t[n]=-1,e&=~r}}function $h(t){if(K&6)throw Error(x(327));kr();var e=ta(t,0);if(!(e&1))return qe(t,ue()),null;var n=_a(t,e);if(t.tag!==0&&n===2){var r=Rl(t);r!==0&&(e=r,n=oc(t,r))}if(n===1)throw n=$o,Kn(t,0),sn(t,e),qe(t,ue()),n;if(n===6)throw Error(x(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Dn(t,ze,Ht),qe(t,ue()),null}function vu(t,e){var n=K;K|=1;try{return t(e)}finally{K=n,K===0&&(Lr=ue()+500,Wa&&Nn())}}function Wn(t){un!==null&&un.tag===0&&!(K&6)&&kr();var e=K;K|=1;var n=dt.transition,r=Q;try{if(dt.transition=null,Q=1,t)return t()}finally{Q=r,dt.transition=n,K=e,!(K&6)&&Nn()}}function _u(){Je=_r.current,ne(_r)}function Kn(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,Fw(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(Zc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&aa();break;case 3:Or(),ne(Ge),ne(Le),lu();break;case 5:su(r);break;case 4:Or();break;case 13:ne(ae);break;case 19:ne(ae);break;case 10:ru(r.type._context);break;case 22:case 23:_u()}n=n.return}if(Se=t,fe=t=wn(t.current,null),Pe=Je=e,ve=0,$o=null,mu=Za=Qn=0,ze=wo=null,Hn!==null){for(e=0;e<Hn.length;e++)if(n=Hn[e],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Hn=null}return t}function om(t,e){do{var n=fe;try{if(nu(),zi.current=ga,pa){for(var r=se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}pa=!1}if(qn=0,Te=ye=se=null,vo=!1,Bo=0,gu.current=null,n===null||n.return===null){ve=1,$o=e,fe=null;break}e:{var i=t,a=n.return,l=n,c=e;if(e=Pe,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,p=l,s=p.tag;if(!(p.mode&1)&&(s===0||s===11||s===15)){var u=p.alternate;u?(p.updateQueue=u.updateQueue,p.memoizedState=u.memoizedState,p.lanes=u.lanes):(p.updateQueue=null,p.memoizedState=null)}var h=Nh(a);if(h!==null){h.flags&=-257,bh(h,a,l,i,e),h.mode&1&&Rh(i,d,e),e=h,c=d;var m=e.updateQueue;if(m===null){var v=new Set;v.add(c),e.updateQueue=v}else m.add(c);break e}else{if(!(e&1)){Rh(i,d,e),wu();break e}c=Error(x(426))}}else if(re&&l.mode&1){var _=Nh(a);if(_!==null){!(_.flags&65536)&&(_.flags|=256),bh(_,a,l,i,e),eu(Mr(c,l));break e}}i=c=Mr(c,l),ve!==4&&(ve=2),wo===null?wo=[i]:wo.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=Bg(i,c,e);Ah(i,g);break e;case 1:l=c;var y=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(vn===null||!vn.has(w)))){i.flags|=65536,e&=-e,i.lanes|=e;var T=zg(i,l,e);Ah(i,T);break e}}i=i.return}while(i!==null)}sm(n)}catch(E){e=E,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(!0)}function im(){var t=ma.current;return ma.current=ga,t===null?ga:t}function wu(){(ve===0||ve===3||ve===2)&&(ve=4),Se===null||!(Qn&268435455)&&!(Za&268435455)||sn(Se,Pe)}function _a(t,e){var n=K;K|=2;var r=im();(Se!==t||Pe!==e)&&(Ht=null,Kn(t,e));do try{dC();break}catch(o){om(t,o)}while(!0);if(nu(),K=n,ma.current=r,fe!==null)throw Error(x(261));return Se=null,Pe=0,ve}function dC(){for(;fe!==null;)am(fe)}function hC(){for(;fe!==null&&!U_();)am(fe)}function am(t){var e=cm(t.alternate,t,Je);t.memoizedProps=t.pendingProps,e===null?sm(t):fe=e,gu.current=null}function sm(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=iC(n,e),n!==null){n.flags&=32767,fe=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ve=6,fe=null;return}}else if(n=oC(n,e,Je),n!==null){fe=n;return}if(e=e.sibling,e!==null){fe=e;return}fe=e=t}while(e!==null);ve===0&&(ve=5)}function Dn(t,e,n){var r=Q,o=dt.transition;try{dt.transition=null,Q=1,fC(t,e,n,r)}finally{dt.transition=o,Q=r}return null}function fC(t,e,n,r){do kr();while(un!==null);if(K&6)throw Error(x(327));n=t.finishedWork;var o=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(x(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(q_(t,i),t===Se&&(fe=Se=null,Pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ei||(Ei=!0,um(ea,function(){return kr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=dt.transition,dt.transition=null;var a=Q;Q=1;var l=K;K|=4,gu.current=null,sC(t,n),tm(n,t),Ow(Dl),na=!!Ll,Dl=Ll=null,t.current=n,lC(n),j_(),K=l,Q=a,dt.transition=i}else t.current=n;if(Ei&&(Ei=!1,un=t,va=o),i=t.pendingLanes,i===0&&(vn=null),B_(n.stateNode),qe(t,ue()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)o=e[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ya)throw ya=!1,t=nc,nc=null,t;return va&1&&t.tag!==0&&kr(),i=t.pendingLanes,i&1?t===rc?Co++:(Co=0,rc=t):Co=0,Nn(),null}function kr(){if(un!==null){var t=Bp(va),e=dt.transition,n=Q;try{if(dt.transition=null,Q=16>t?16:t,un===null)var r=!1;else{if(t=un,un=null,va=0,K&6)throw Error(x(331));var o=K;for(K|=4,L=t.current;L!==null;){var i=L,a=i.child;if(L.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var d=l[c];for(L=d;L!==null;){var p=L;switch(p.tag){case 0:case 11:case 15:_o(8,p,i)}var s=p.child;if(s!==null)s.return=p,L=s;else for(;L!==null;){p=L;var u=p.sibling,h=p.return;if(Xg(p),p===d){L=null;break}if(u!==null){u.return=h,L=u;break}L=h}}}var m=i.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var _=v.sibling;v.sibling=null,v=_}while(v!==null)}}L=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,L=a;else e:for(;L!==null;){if(i=L,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_o(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,L=g;break e}L=i.return}}var y=t.current;for(L=y;L!==null;){a=L;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,L=w;else e:for(a=y;L!==null;){if(l=L,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Xa(9,l)}}catch(E){ce(l,l.return,E)}if(l===a){L=null;break e}var T=l.sibling;if(T!==null){T.return=l.return,L=T;break e}L=l.return}}if(K=o,Nn(),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot($a,t)}catch{}r=!0}return r}finally{Q=n,dt.transition=e}}return!1}function Gh(t,e,n){e=Mr(n,e),e=Bg(t,e,1),t=yn(t,e,1),e=He(),t!==null&&(ti(t,1,e),qe(t,e))}function ce(t,e,n){if(t.tag===3)Gh(t,t,n);else for(;e!==null;){if(e.tag===3){Gh(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(vn===null||!vn.has(r))){t=Mr(n,t),t=zg(e,t,1),e=yn(e,t,1),t=He(),e!==null&&(ti(e,1,t),qe(e,t));break}}e=e.return}}function pC(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=He(),t.pingedLanes|=t.suspendedLanes&n,Se===t&&(Pe&n)===n&&(ve===4||ve===3&&(Pe&130023424)===Pe&&500>ue()-yu?Kn(t,0):mu|=n),qe(t,e)}function lm(t,e){e===0&&(t.mode&1?(e=mi,mi<<=1,!(mi&130023424)&&(mi=4194304)):e=1);var n=He();t=Wt(t,e),t!==null&&(ti(t,e,n),qe(t,n))}function gC(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),lm(t,n)}function mC(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,o=t.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(e),lm(t,n)}var cm;cm=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ge.current)$e=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return $e=!1,rC(t,e,n);$e=!!(t.flags&131072)}else $e=!1,re&&e.flags&1048576&&fg(e,ca,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;$i(t,e),t=e.pendingProps;var o=Rr(e,Le.current);Ar(e,n),o=uu(null,e,r,t,o,n);var i=du();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ve(r)?(i=!0,sa(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,iu(e),o.updater=Ja,e.stateNode=o,o._reactInternals=e,Gl(e,r,t,n),e=Ql(null,e,r,!0,i,n)):(e.tag=0,re&&i&&Xc(e),Ue(null,e,o,n),e=e.child),e;case 16:r=e.elementType;e:{switch($i(t,e),t=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=vC(r),t=mt(r,t),o){case 0:e=ql(null,e,r,t,n);break e;case 1:e=Lh(null,e,r,t,n);break e;case 11:e=Oh(null,e,r,t,n);break e;case 14:e=Mh(null,e,r,mt(r.type,t),n);break e}throw Error(x(306,r,""))}return e;case 0:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:mt(r,o),ql(t,e,r,o,n);case 1:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:mt(r,o),Lh(t,e,r,o,n);case 3:e:{if(Vg(e),t===null)throw Error(x(387));r=e.pendingProps,i=e.memoizedState,o=i.element,_g(t,e),ha(e,r,null,n);var a=e.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){o=Mr(Error(x(423)),e),e=Dh(t,e,r,n,o);break e}else if(r!==o){o=Mr(Error(x(424)),e),e=Dh(t,e,r,n,o);break e}else for(Ze=mn(e.stateNode.containerInfo.firstChild),et=e,re=!0,_t=null,n=yg(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nr(),r===o){e=Yt(t,e,n);break e}Ue(t,e,r,n)}e=e.child}return e;case 5:return wg(e),t===null&&zl(e),r=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,Ul(r,o)?a=null:i!==null&&Ul(r,i)&&(e.flags|=32),Gg(t,e),Ue(t,e,a,n),e.child;case 6:return t===null&&zl(e),null;case 13:return qg(t,e,n);case 4:return au(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=br(e,null,r,n):Ue(t,e,r,n),e.child;case 11:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:mt(r,o),Oh(t,e,r,o,n);case 7:return Ue(t,e,e.pendingProps,n),e.child;case 8:return Ue(t,e,e.pendingProps.children,n),e.child;case 12:return Ue(t,e,e.pendingProps.children,n),e.child;
vendor: 12,280 bytes, lines 40-49
40case 10:e:{if(r=e.type._context,o=e.pendingProps,i=e.memoizedProps,a=o.value,ee(ua,r._currentValue),r._currentValue=a,i!==null)if(At(i.value,a)){if(i.children===o.children&&!Ge.current){e=Yt(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Vt(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var p=d.pending;p===null?c.next=c:(c.next=p.next,p.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Kl(i.return,n,e),l.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(x(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Kl(a,n,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ue(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,r=e.pendingProps.children,Ar(e,n),o=ht(o),r=r(o),e.flags|=1,Ue(t,e,r,n),e.child;case 14:return r=e.type,o=mt(r,e.pendingProps),o=mt(r.type,o),Mh(t,e,r,o,n);case 15:return Kg(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:mt(r,o),$i(t,e),e.tag=1,Ve(r)?(t=!0,sa(e)):t=!1,Ar(e,n),Fg(e,r,o),Gl(e,r,o,n),Ql(null,e,r,!0,t,n);case 19:return Qg(t,e,n);case 22:return $g(t,e,n)}throw Error(x(156,e.tag))};function um(t,e){return Up(t,e)}function yC(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(t,e,n,r){return new yC(t,e,n,r)}function Cu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vC(t){if(typeof t=="function")return Cu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Fc)return 11;if(t===Bc)return 14}return 2}function wn(t,e){var n=t.alternate;return n===null?(n=ut(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function qi(t,e,n,r,o,i){var a=2;if(r=t,typeof t=="function")Cu(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case cr:return $n(n.children,o,i,e);case Hc:a=8,o|=8;break;case gl:return t=ut(12,n,e,o|2),t.elementType=gl,t.lanes=i,t;case ml:return t=ut(13,n,e,o),t.elementType=ml,t.lanes=i,t;case yl:return t=ut(19,n,e,o),t.elementType=yl,t.lanes=i,t;case wp:return es(n,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case vp:a=10;break e;case _p:a=9;break e;case Fc:a=11;break e;case Bc:a=14;break e;case rn:a=16,r=null;break e}throw Error(x(130,t==null?t:typeof t,""))}return e=ut(a,n,e,o),e.elementType=t,e.type=r,e.lanes=i,e}function $n(t,e,n,r){return t=ut(7,t,r,e),t.lanes=n,t}function es(t,e,n,r){return t=ut(22,t,r,e),t.elementType=wp,t.lanes=n,t.stateNode={isHidden:!1},t}function Xs(t,e,n){return t=ut(6,t,null,e),t.lanes=n,t}function Zs(t,e,n){return e=ut(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function _C(t,e,n,r,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Os(0),this.expirationTimes=Os(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Os(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tu(t,e,n,r,o,i,a,l,c){return t=new _C(t,e,n,l,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ut(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iu(i),t}function wC(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:lr,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function dm(t){if(!t)return In;t=t._reactInternals;e:{if(tr(t)!==t||t.tag!==1)throw Error(x(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Ve(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(x(171))}if(t.tag===1){var n=t.type;if(Ve(n))return dg(t,n,e)}return e}function hm(t,e,n,r,o,i,a,l,c){return t=Tu(n,r,!0,t,o,i,a,l,c),t.context=dm(null),n=t.current,r=He(),o=_n(n),i=Vt(r,o),i.callback=e??null,yn(n,i,o),t.current.lanes=o,ti(t,o,r),qe(t,r),t}function ts(t,e,n,r){var o=e.current,i=He(),a=_n(o);return n=dm(n),e.context===null?e.context=n:e.pendingContext=n,e=Vt(i,a),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=yn(o,e,a),t!==null&&(Tt(t,o,a,i),Bi(t,o,a)),a}function wa(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Vh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Su(t,e){Vh(t,e),(t=t.alternate)&&Vh(t,e)}function CC(){return null}var fm=typeof reportError=="function"?reportError:function(t){console.error(t)};function Au(t){this._internalRoot=t}ns.prototype.render=Au.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(x(409));ts(t,e,null,null)};ns.prototype.unmount=Au.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Wn(function(){ts(null,t,null,null)}),e[Qt]=null}};function ns(t){this._internalRoot=t}ns.prototype.unstable_scheduleHydration=function(t){if(t){var e=$p();t={blockedOn:null,target:t,priority:e};for(var n=0;n<an.length&&e!==0&&e<an[n].priority;n++);an.splice(n,0,t),n===0&&Vp(t)}};function ku(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function rs(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function qh(){}function TC(t,e,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var d=wa(a);i.call(d)}}var a=hm(e,r,t,0,null,!1,!1,"",qh);return t._reactRootContainer=a,t[Qt]=a.current,Do(t.nodeType===8?t.parentNode:t),Wn(),a}for(;o=t.lastChild;)t.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var d=wa(c);l.call(d)}}var c=Tu(t,0,!1,null,null,!1,!1,"",qh);return t._reactRootContainer=c,t[Qt]=c.current,Do(t.nodeType===8?t.parentNode:t),Wn(function(){ts(e,c,n,r)}),c}function os(t,e,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var c=wa(a);l.call(c)}}ts(e,a,t,o)}else a=TC(n,e,t,o,r);return wa(a)}zp=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=lo(e.pendingLanes);n!==0&&($c(e,n|1),qe(e,ue()),!(K&6)&&(Lr=ue()+500,Nn()))}break;case 13:Wn(function(){var r=Wt(t,1);if(r!==null){var o=He();Tt(r,t,1,o)}}),Su(t,1)}};Gc=function(t){if(t.tag===13){var e=Wt(t,134217728);if(e!==null){var n=He();Tt(e,t,134217728,n)}Su(t,134217728)}};Kp=function(t){if(t.tag===13){var e=_n(t),n=Wt(t,e);if(n!==null){var r=He();Tt(n,t,e,r)}Su(t,e)}};$p=function(){return Q};Gp=function(t,e){var n=Q;try{return Q=t,e()}finally{Q=n}};Il=function(t,e,n){switch(e){case"input":if(wl(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var o=Qa(r);if(!o)throw Error(x(90));Tp(r),wl(r,o)}}}break;case"textarea":Ap(t,n);break;case"select":e=n.value,e!=null&&wr(t,!!n.multiple,e,!1)}};Np=vu;bp=Wn;var SC={usingClientEntryPoint:!1,Events:[ri,fr,Qa,Pp,Rp,vu]},ro={findFiberByHostInstance:jn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},AC={bundleType:ro.bundleType,version:ro.version,rendererPackageName:ro.rendererPackageName,rendererConfig:ro.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Lp(t),t===null?null:t.stateNode},findFiberByHostInstance:ro.findFiberByHostInstance||CC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{$a=Ii.inject(AC),Lt=Ii}catch{}}ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SC;ot.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ku(e))throw Error(x(200));return wC(t,e,null,n)};ot.createRoot=function(t,e){if(!ku(t))throw Error(x(299));var n=!1,r="",o=fm;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Tu(t,1,!1,null,null,n,!1,r,o),t[Qt]=e.current,Do(t.nodeType===8?t.parentNode:t),new Au(e)};ot.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(x(188)):(t=Object.keys(t).join(","),Error(x(268,t)));return t=Lp(e),t=t===null?null:t.stateNode,t};ot.flushSync=function(t){return Wn(t)};ot.hydrate=function(t,e,n){if(!rs(e))throw Error(x(200));return os(null,t,e,!0,n)};ot.hydrateRoot=function(t,e,n){if(!ku(t))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=fm;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),e=hm(e,null,t,1,n??null,o,!1,i,a),t[Qt]=e.current,Do(t),r)for(t=0;t<r.length;t++)n=r[t],o=n._getVersion,o=o(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,o]:e.mutableSourceEagerHydrationData.push(n,o);return new ns(e)};ot.render=function(t,e,n){if(!rs(e))throw Error(x(200));return os(null,t,e,!1,n)};ot.unmountComponentAtNode=function(t){if(!rs(t))throw Error(x(40));return t._reactRootContainer?(Wn(function(){os(null,null,t,!1,function(){t._reactRootContainer=null,t[Qt]=null})}),!0):!1};ot.unstable_batchedUpdates=vu;ot.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!rs(n))throw Error(x(200));if(t==null||t._reactInternals===void 0)throw Error(x(38));return os(t,e,n,!1,r)};ot.version="18.3.1-next-f1338f8080-20240426";function pm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pm)}catch(t){console.error(t)}}pm(),pp.exports=ot;var kC=pp.exports,gm,Qh=kC;gm=Qh.createRoot,Qh.hydrateRoot;/**
41 * @remix-run/router v1.23.0
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function Go(){return Go=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Go.apply(this,arguments)}var dn;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(dn||(dn={}));const Wh="popstate";function EC(t){t===void 0&&(t={});function e(r,o){let{pathname:i,search:a,hash:l}=r.location;return ac("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}
vendor: 4,515 bytes, line 49
49function n(r,o){return typeof o=="string"?o:Ca(o)}return xC(e,n,null,t)}function pe(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function mm(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function IC(){return Math.random().toString(36).substr(2,8)}function Yh(t,e){return{usr:t.state,key:t.key,idx:e}}function ac(t,e,n,r){return n===void 0&&(n=null),Go({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?zr(e):e,{state:n,key:e&&e.key||r||IC()})}function Ca(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function zr(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function xC(t,e,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=dn.Pop,c=null,d=p();d==null&&(d=0,a.replaceState(Go({},a.state,{idx:d}),""));function p(){return(a.state||{idx:null}).idx}function s(){l=dn.Pop;let _=p(),g=_==null?null:_-d;d=_,c&&c({action:l,location:v.location,delta:g})}function u(_,g){l=dn.Push;let y=ac(v.location,_,g);d=p()+1;let w=Yh(y,d),T=v.createHref(y);try{a.pushState(w,"",T)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(T)}i&&c&&c({action:l,location:v.location,delta:1})}function h(_,g){l=dn.Replace;let y=ac(v.location,_,g);d=p();let w=Yh(y,d),T=v.createHref(y);a.replaceState(w,"",T),i&&c&&c({action:l,location:v.location,delta:0})}function m(_){let g=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof _=="string"?_:Ca(_);return y=y.replace(/ $/,"%20"),pe(g,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,g)}let v={get action(){return l},get location(){return t(o,a)},listen(_){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Wh,s),c=_,()=>{o.removeEventListener(Wh,s),c=null}},createHref(_){return e(o,_)},createURL:m,encodeLocation(_){let g=m(_);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:u,replace:h,go(_){return a.go(_)}};return v}var Jh;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Jh||(Jh={}));function PC(t,e,n){return n===void 0&&(n="/"),RC(t,e,n)}function RC(t,e,n,r){let o=typeof e=="string"?zr(e):e,i=Eu(o.pathname||"/",n);if(i==null)return null;let a=ym(t);NC(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let d=KC(i);l=FC(a[c],d)}return l}function ym(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(pe(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Cn([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),ym(i.children,e,p,d)),!(i.path==null&&!i.index)&&e.push({path:d,score:jC(d,i.index),routesMeta:p})};return t.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let c of vm(i.path))o(i,a,c)}),e}function vm(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=vm(r.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&l.push(...a),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function NC(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:HC(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const bC=/^:[\w-]+$/,OC=3,MC=2,LC=1,DC=10,UC=-2,Xh=t=>t==="*";function jC(t,e){let n=t.split("/"),r=n.length;return n.some(Xh)&&(r+=UC),e&&(r+=MC),n.filter(o=>!Xh(o)).reduce((o,i)=>o+(bC.test(i)?OC:i===""?LC:DC),r)}function HC(t,e){return t.length===e.length&&t.slice(0,-1).every((r,o)=>r===e[o])?t[t.length-1]-e[e.length-1]:0}function FC(t,e,n){let{routesMeta:r}=t,o={},i="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,p=i==="/"?e:e.slice(i.length)||"/",s=BC({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},p),u=c.route;if(!s)return null;
vendor: 14,022 bytes, lines 49-67
49Object.assign(o,s.params),a.push({params:o,pathname:Cn([i,s.pathname]),pathnameBase:qC(Cn([i,s.pathnameBase])),route:u}),s.pathnameBase!=="/"&&(i=Cn([i,s.pathnameBase]))}return a}function BC(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=zC(t.path,t.caseSensitive,t.end),o=e.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((d,p,s)=>{let{paramName:u,isOptional:h}=p;if(u==="*"){let v=l[s]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const m=l[s];return h&&!m?d[u]=void 0:d[u]=(m||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:t}}function zC(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),mm(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),r]}function KC(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return mm(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Eu(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function $C(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:o=""}=typeof t=="string"?zr(t):t;return{pathname:n?n.startsWith("/")?n:GC(n,e):e,search:QC(r),hash:WC(o)}}function GC(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function el(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function VC(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function _m(t,e){let n=VC(t);return e?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function wm(t,e,n,r){r===void 0&&(r=!1);let o;typeof t=="string"?o=zr(t):(o=Go({},t),pe(!o.pathname||!o.pathname.includes("?"),el("?","pathname","search",o)),pe(!o.pathname||!o.pathname.includes("#"),el("#","pathname","hash",o)),pe(!o.search||!o.search.includes("#"),el("#","search","hash",o)));let i=t===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let s=e.length-1;if(!r&&a.startsWith("..")){let u=a.split("/");for(;u[0]==="..";)u.shift(),s-=1;o.pathname=u.join("/")}l=s>=0?e[s]:"/"}let c=$C(o,l),d=a&&a!=="/"&&a.endsWith("/"),p=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||p)&&(c.pathname+="/"),c}const Cn=t=>t.join("/").replace(/\/\/+/g,"/"),qC=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),QC=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,WC=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function YC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const Cm=["post","put","patch","delete"];new Set(Cm);const JC=["get",...Cm];new Set(JC);/**
50 * React Router v6.30.1
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function Vo(){return Vo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Vo.apply(this,arguments)}const Iu=k.createContext(null),XC=k.createContext(null),nr=k.createContext(null),is=k.createContext(null),bn=k.createContext({outlet:null,matches:[],isDataRoute:!1}),Tm=k.createContext(null);function ZC(t,e){let{relative:n}=e===void 0?{}:e;ii()||pe(!1);let{basename:r,navigator:o}=k.useContext(nr),{hash:i,pathname:a,search:l}=km(t,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Cn([r,a])),o.createHref({pathname:c,search:l,hash:i})}function ii(){return k.useContext(is)!=null}function ai(){return ii()||pe(!1),k.useContext(is).location}function Sm(t){k.useContext(nr).static||k.useLayoutEffect(t)}function Am(){let{isDataRoute:t}=k.useContext(bn);return t?fT():eT()}function eT(){ii()||pe(!1);let t=k.useContext(Iu),{basename:e,future:n,navigator:r}=k.useContext(nr),{matches:o}=k.useContext(bn),{pathname:i}=ai(),a=JSON.stringify(_m(o,n.v7_relativeSplatPath)),l=k.useRef(!1);return Sm(()=>{l.current=!0}),k.useCallback(function(d,p){if(p===void 0&&(p={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let s=wm(d,JSON.parse(a),i,p.relative==="path");t==null&&e!=="/"&&(s.pathname=s.pathname==="/"?e:Cn([e,s.pathname])),(p.replace?r.replace:r.push)(s,p.state,p)},[e,r,a,i,t])}function tT(){let{matches:t}=k.useContext(bn),e=t[t.length-1];return e?e.params:{}}function km(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=k.useContext(nr),{matches:o}=k.useContext(bn),{pathname:i}=ai(),a=JSON.stringify(_m(o,r.v7_relativeSplatPath));return k.useMemo(()=>wm(t,JSON.parse(a),i,n==="path"),[t,a,i,n])}function nT(t,e){return rT(t,e)}function rT(t,e,n,r){ii()||pe(!1);let{navigator:o}=k.useContext(nr),{matches:i}=k.useContext(bn),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let d=ai(),p;if(e){var s;let _=typeof e=="string"?zr(e):e;c==="/"||(s=_.pathname)!=null&&s.startsWith(c)||pe(!1),p=_}else p=d;let u=p.pathname||"/",h=u;if(c!=="/"){let _=c.replace(/^\//,"").split("/");h="/"+u.replace(/^\//,"").split("/").slice(_.length).join("/")}let m=PC(t,{pathname:h}),v=lT(m&&m.map(_=>Object.assign({},_,{params:Object.assign({},l,_.params),pathname:Cn([c,o.encodeLocation?o.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?c:Cn([c,o.encodeLocation?o.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),i,n,r);return e&&v?k.createElement(is.Provider,{value:{location:Vo({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:dn.Pop}},v):v}function oT(){let t=hT(),e=YC(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),n?k.createElement("pre",{style:o},n):null,null)}const iT=k.createElement(oT,null);class aT extends k.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?k.createElement(bn.Provider,{value:this.props.routeContext},k.createElement(Tm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function sT(t){let{routeContext:e,match:n,children:r}=t,o=k.useContext(Iu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(bn.Provider,{value:e},r)}function lT(t,e,n,r){var o;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var i;if(!n)return null;if(n.errors)t=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,l=(o=n)==null?void 0:o.errors;if(l!=null){let p=a.findIndex(s=>s.route.id&&(l==null?void 0:l[s.route.id])!==void 0);p>=0||pe(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<a.length;p++){let s=a[p];if((s.route.HydrateFallback||s.route.hydrateFallbackElement)&&(d=p),s.route.id){let{loaderData:u,errors:h}=n,m=s.route.loader&&u[s.route.id]===void 0&&(!h||h[s.route.id]===void 0);if(s.route.lazy||m){c=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((p,s,u)=>{let h,m=!1,v=null,_=null;n&&(h=l&&s.route.id?l[s.route.id]:void 0,v=s.route.errorElement||iT,c&&(d<0&&u===0?(pT("route-fallback"),m=!0,_=null):d===u&&(m=!0,_=s.route.hydrateFallbackElement||null)));let g=e.concat(a.slice(0,u+1)),y=()=>{let w;return h?w=v:m?w=_:s.route.Component?w=k.createElement(s.route.Component,null):s.route.element?w=s.route.element:w=p,k.createElement(sT,{match:s,routeContext:{outlet:p,matches:g,isDataRoute:n!=null},children:w})};return n&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?k.createElement(aT,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):y()},null)}var Em=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Em||{}),Im=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Im||{});function cT(t){let e=k.useContext(Iu);return e||pe(!1),e}function uT(t){let e=k.useContext(XC);return e||pe(!1),e}function dT(t){let e=k.useContext(bn);return e||pe(!1),e}function xm(t){let e=dT(),n=e.matches[e.matches.length-1];return n.route.id||pe(!1),n.route.id}function hT(){var t;let e=k.useContext(Tm),n=uT(),r=xm();return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function fT(){let{router:t}=cT(Em.UseNavigateStable),e=xm(Im.UseNavigateStable),n=k.useRef(!1);return Sm(()=>{n.current=!0}),k.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,Vo({fromRouteId:e},i)))},[t,e])}const Zh={};function pT(t,e,n){Zh[t]||(Zh[t]=!0)}function gT(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function tn(t){pe(!1)}function mT(t){let{basename:e="/",children:n=null,location:r,navigationType:o=dn.Pop,navigator:i,static:a=!1,future:l}=t;ii()&&pe(!1);let c=e.replace(/^\/*/,"/"),d=k.useMemo(()=>({basename:c,navigator:i,static:a,future:Vo({v7_relativeSplatPath:!1},l)}),[c,l,i,a]);typeof r=="string"&&(r=zr(r));let{pathname:p="/",search:s="",hash:u="",state:h=null,key:m="default"}=r,v=k.useMemo(()=>{let _=Eu(p,c);return _==null?null:{location:{pathname:_,search:s,hash:u,state:h,key:m},navigationType:o}},[c,p,s,u,h,m,o]);return v==null?null:k.createElement(nr.Provider,{value:d},k.createElement(is.Provider,{children:n,value:v}))}function ef(t){let{children:e,location:n}=t;return nT(sc(e),n)}new Promise(()=>{});function sc(t,e){e===void 0&&(e=[]);let n=[];return k.Children.forEach(t,(r,o)=>{if(!k.isValidElement(r))return;let i=[...e,o];if(r.type===k.Fragment){n.push.apply(n,sc(r.props.children,i));return}r.type!==tn&&pe(!1),!r.props.index||!r.props.children||pe(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=sc(r.props.children,i)),n.push(a)}),n}/**
59 * React Router DOM v6.30.1
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */function lc(){return lc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},lc.apply(this,arguments)}function yT(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,i;for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function vT(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function _T(t,e){return t.button===0&&(!e||e==="_self")&&!vT(t)}const wT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],CT="6";try{window.__reactRouterVersion=CT}catch{}const TT="startTransition",tf=p_[TT];function ST(t){let{basename:e,children:n,future:r,window:o}=t,i=k.useRef();i.current==null&&(i.current=EC({window:o,v5Compat:!0}));let a=i.current,[l,c]=k.useState({action:a.action,location:a.location}),{v7_startTransition:d}=r||{},p=k.useCallback(s=>{d&&tf?tf(()=>c(s)):c(s)},[c,d]);return k.useLayoutEffect(()=>a.listen(p),[a,p]),k.useEffect(()=>gT(r),[r]),k.createElement(mT,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const AT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zt=k.forwardRef(function(e,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:c,to:d,preventScrollReset:p,viewTransition:s}=e,u=yT(e,wT),{basename:h}=k.useContext(nr),m,v=!1;
67if(typeof d=="string"&&kT.test(d)&&(m=d,AT))try{let w=new URL(window.location.href),T=d.startsWith("//")?new URL(w.protocol+d):new URL(d),E=Eu(T.pathname,h);T.origin===w.origin&&E!=null?d=E+T.search+T.hash:v=!0}catch{}let _=ZC(d,{relative:o}),g=ET(d,{replace:a,state:l,target:c,preventScrollReset:p,relative:o,viewTransition:s});function y(w){r&&r(w),w.defaultPrevented||g(w)}return k.createElement("a",lc({},u,{href:m||_,onClick:v||i?r:y,ref:n,target:c}))});var nf;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(nf||(nf={}));var rf;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(rf||(rf={}));function ET(t,e){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:l}=e===void 0?{}:e,c=Am(),d=ai(),p=km(t,{relative:a});return k.useCallback(s=>{if(_T(s,n)){s.preventDefault();let u=r!==void 0?r:Ca(d)===Ca(p);c(t,{replace:u,state:o,preventScrollReset:i,relative:a,viewTransition:l})}},[d,c,p,r,o,n,t,i,a,l])}/**
68 * @license lucide-react v0.344.0 - ISC
69 *
70 * This source code is licensed under the ISC license.
71 * See the LICENSE file in the root directory of this source tree.
72 */var IT={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
73 * @license lucide-react v0.344.0 - ISC
74 *
75 * This source code is licensed under the ISC license.
76 * See the LICENSE file in the root directory of this source tree.
77 */const xT=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),oe=(t,e)=>{const n=k.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:l="",children:c,...d},p)=>k.createElement("svg",{ref:p,...IT,width:o,height:o,stroke:r,strokeWidth:a?Number(i)*24/Number(o):i,className:["lucide",`lucide-${xT(t)}`,l].join(" "),...d},[...e.map(([s,u])=>k.createElement(s,u)),...Array.isArray(c)?c:[c]]));return n.displayName=`${t}`,n};/**
78 * @license lucide-react v0.344.0 - ISC
79 *
80 * This source code is licensed under the ISC license.
81 * See the LICENSE file in the root directory of this source tree.
82 */const PT=oe("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
83 * @license lucide-react v0.344.0 - ISC
84 *
85 * This source code is licensed under the ISC license.
86 * See the LICENSE file in the root directory of this source tree.
87 */const cc=oe("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/**
88 * @license lucide-react v0.344.0 - ISC
89 *
90 * This source code is licensed under the ISC license.
91 * See the LICENSE file in the root directory of this source tree.
92 */const RT=oe("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
93 * @license lucide-react v0.344.0 - ISC
94 *
95 * This source code is licensed under the ISC license.
96 * See the LICENSE file in the root directory of this source tree.
97 */const xu=oe("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
98 * @license lucide-react v0.344.0 - ISC
99 *
100 * This source code is licensed under the ISC license.
101 * See the LICENSE file in the root directory of this source tree.
102 */const NT=oe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
103 * @license lucide-react v0.344.0 - ISC
104 *
105 * This source code is licensed under the ISC license.
106 * See the LICENSE file in the root directory of this source tree.
107 */const bT=oe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
108 * @license lucide-react v0.344.0 - ISC
109 *
110 * This source code is licensed under the ISC license.
111 * See the LICENSE file in the root directory of this source tree.
112 */const OT=oe("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
113 * @license lucide-react v0.344.0 - ISC
114 *
115 * This source code is licensed under the ISC license.
116 * See the LICENSE file in the root directory of this source tree.
117 */const uc=oe("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
118 * @license lucide-react v0.344.0 - ISC
119 *
120 * This source code is licensed under the ISC license.
121 * See the LICENSE file in the root directory of this source tree.
122 */const dc=oe("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
123 * @license lucide-react v0.344.0 - ISC
124 *
125 * This source code is licensed under the ISC license.
126 * See the LICENSE file in the root directory of this source tree.
127 */const tl=oe("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
128 * @license lucide-react v0.344.0 - ISC
129 *
130 * This source code is licensed under the ISC license.
131 * See the LICENSE file in the root directory of this source tree.
132 */const nl=oe("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",ke
132y:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
133 * @license lucide-react v0.344.0 - ISC
134 *
135 * This source code is licensed under the ISC license.
136 * See the LICENSE file in the root directory of this source tree.
137 */const MT=oe("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
138 * @license lucide-react v0.344.0 - ISC
139 *
140 * This source code is licensed under the ISC license.
141 * See the LICENSE file in the root directory of this source tree.
142 */const LT=oe("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]);/**
143 * @license lucide-react v0.344.0 - ISC
144 *
145 * This source code is licensed under the ISC license.
146 * See the LICENSE file in the root directory of this source tree.
147 */const DT=oe("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
148 * @license lucide-react v0.344.0 - ISC
149 *
150 * This source code is licensed under the ISC license.
151 * See the LICENSE file in the root directory of this source tree.
152 */const UT=oe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
153 * @license lucide-react v0.344.0 - ISC
154 *
155 * This source code is licensed under the ISC license.
156 * See the LICENSE file in the root directory of this source tree.
157 */const jT=oe("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/**
158 * @license lucide-react v0.344.0 - ISC
159 *
160 * This source code is licensed under the ISC license.
161 * See the LICENSE file in the root directory of this source tree.
162 */const HT=oe("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
163 * @license lucide-react v0.344.0 - ISC
164 *
165 * This source code is licensed under the ISC license.
166 * See the LICENSE file in the root directory of this source tree.
167 */const Pm=oe("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
168 * @license lucide-react v0.344.0 - ISC
169 *
170 * This source code is licensed under the ISC license.
171 * See the LICENSE file in the root directory of this source tree.
172 */const Rm=oe("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
173 * @license lucide-react v0.344.0 - ISC
174 *
175 * This source code is licensed under the ISC license.
176 * See the LICENSE file in the root directory of this source tree.
177 */const Pu=oe("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/**
178 * @license lucide-react v0.344.0 - ISC
179 *
180 * This source code is licensed under the ISC license.
181 * See the LICENSE file in the root directory of this source tree.
182 */const rl=oe("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
183 * @license lucide-react v0.344.0 - ISC
184 *
185 * This source code is licensed under the ISC license.
186 * See the LICENSE file in the root directory of this source tree.
187 */const FT=oe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
188 * @license lucide-react v0.344.0 - ISC
189 *
190 * This source code is licensed under the ISC license.
191 * See the LICENSE file in the root directory of this source tree.
192 */const hc=oe("Volume2",[["polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5",key:"16drj5"}],["path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07",key:"ltjumu"}],["path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14",key:"1kegas"}]]);/**
193 * @license lucide-react v0.344.0 - ISC
194 *
195 * This source code is licensed under the ISC license.
196 * See the LICENSE file in the root directory of this source tree.
197 */const Nm=oe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),BT={},of=t=>{let e;const n=new Set,r=(p,s)=>{const u=typeof p=="function"?p(e):p;if(!Object.is(u,e)){const h=e;e=s??(typeof u!="object"||u===null)?u:Object.assign({}
197,e,u),n.forEach(m=>m(e,h))}},o=()=>e,c={setState:r,getState:o,getInitialState:()=>d,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(BT?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=e=t(r,o,c);return c},zT=t=>t?of(t):of;var bm={exports:{}},Om={},Mm={exports:{}},Lm={};/**
198 * @license React
199 * use-sync-external-store-shim.production.js
200 *
201 * Copyright (c) Meta Platforms, Inc. and affiliates.
202 *
203 * This source code is licensed under the MIT license found in the
204 * LICENSE file in the root directory of this source tree.
205 */var Dr=k;function KT(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var $T=typeof Object.is=="function"?Object.is:KT,GT=Dr.useState,VT=Dr.useEffect,qT=Dr.useLayoutEffect,QT=Dr.useDebugValue;function WT(t,e){var n=e(),r=GT({inst:{value:n,getSnapshot:e}}),o=r[0].inst,i=r[1];return qT(function(){o.value=n,o.getSnapshot=e,ol(o)&&i({inst:o})},[t,n,e]),VT(function(){return ol(o)&&i({inst:o}),t(function(){ol(o)&&i({inst:o})})},[t]),QT(n),n}function ol(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!$T(t,n)}catch{return!0}}function YT(t,e){return e()}var JT=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?YT:WT;Lm.useSyncExternalStore=Dr.useSyncExternalStore!==void 0?Dr.useSyncExternalStore:JT;Mm.exports=Lm;var XT=Mm.exports;/**
206 * @license React
207 * use-sync-external-store-shim/with-selector.production.js
208 *
209 * Copyright (c) Meta Platforms, Inc. and affiliates.
210 *
211 * This source code is licensed under the MIT license found in the
212 * LICENSE file in the root directory of this source tree.
213 */var as=k,ZT=XT;function eS(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var tS=typeof Object.is=="function"?Object.is:eS,nS=ZT.useSyncExternalStore,rS=as.useRef,oS=as.useEffect,iS=as.useMemo,aS=as.useDebugValue;Om.useSyncExternalStoreWithSelector=function(t,e,n,r,o){var i=rS(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=iS(function(){function c(h){if(!d){if(d=!0,p=h,h=r(h),o!==void 0&&a.hasValue){var m=a.value;if(o(m,h))return s=m}return s=h}if(m=s,tS(p,h))return m;var v=r(h);return o!==void 0&&o(m,v)?(p=h,m):(p=h,s=v)}var d=!1,p,s,u=n===void 0?null:n;return[function(){return c(e())},u===null?void 0:function(){return c(u())}]},[e,n,r,o]);var l=nS(t,i[0],i[1]);return oS(function(){a.hasValue=!0,a.value=l},[l]),aS(l),l};bm.exports=Om;var sS=bm.exports;const lS=np(sS),Dm={},{useDebugValue:cS}=Lc,{useSyncExternalStoreWithSelector:uS}=lS;let af=!1;const dS=t=>t;function hS(t,e=dS,n){(Dm?"production":void 0)!=="production"&&n&&!af&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),af=!0);const r=uS(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return cS(r),r}const fS=t=>{(Dm?"production":void 0)!=="production"&&typeof t!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof t=="function"?zT(t):t,n=(r,o)=>hS(e,r,o);return Object.assign(n,e),n},Ru=t=>fS,pS={};function gS(t,e){let n;try{n=t()}catch{return}return{getItem:o=>{var i;const a=c=>c===null?null:JSON.parse(c,void 0),l=(i=n.getItem(o))!=null?i:null;return l instanceof Promise?l.then(a):a(l)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,void 0)),removeItem:o=>n.removeItem(o)}}const qo=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(r){return qo(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return qo(r)(n)}}}},mS=(t,e)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:_=>_,version:0,merge:(_,g)=>({...g,..._}),...e},a=!1;const l=new Set,c=new Set;let d;
213try{d=i.getStorage()}catch{}if(!d)return t((..._)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(..._)},r,o);const p=qo(i.serialize),s=()=>{const _=i.partialize({...r()});let g;const y=p({state:_,version:i.version}).then(w=>d.setItem(i.name,w)).catch(w=>{g=w});if(g)throw g;return y},u=o.setState;o.setState=(_,g)=>{u(_,g),s()};const h=t((..._)=>{n(..._),s()},r,o);let m;const v=()=>{var _;if(!d)return;a=!1,l.forEach(y=>y(r()));const g=((_=i.onRehydrateStorage)==null?void 0:_.call(i,r()))||void 0;return qo(d.getItem.bind(d))(i.name).then(y=>{if(y)return i.deserialize(y)}).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return i.migrate(y.state,y.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return y.state}).then(y=>{var w;return m=i.merge(y,(w=r())!=null?w:h),n(m,!0),s()}).then(()=>{g==null||g(m,void 0),a=!0,c.forEach(y=>y(m))}).catch(y=>{g==null||g(void 0,y)})};return o.persist={setOptions:_=>{i={...i,..._},_.getStorage&&(d=_.getStorage())},clearStorage:()=>{d==null||d.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:_=>(l.add(_),()=>{l.delete(_)}),onFinishHydration:_=>(c.add(_),()=>{c.delete(_)})},v(),m||h},yS=(t,e)=>(n,r,o)=>{let i={storage:gS(()=>localStorage),partialize:v=>v,version:0,merge:(v,_)=>({..._,...v}),...e},a=!1;const l=new Set,c=new Set;let d=i.storage;if(!d)return t((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...v)},r,o);const p=()=>{const v=i.partialize({...r()});return d.setItem(i.name,{state:v,version:i.version})},s=o.setState;o.setState=(v,_)=>{s(v,_),p()};const u=t((...v)=>{n(...v),p()},r,o);o.getInitialState=()=>u;let h;const m=()=>{var v,_;if(!d)return;a=!1,l.forEach(y=>{var w;return y((w=r())!=null?w:u)});const g=((_=i.onRehydrateStorage)==null?void 0:_.call(i,(v=r())!=null?v:u))||void 0;return qo(d.getItem.bind(d))(i.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return[!0,i.migrate(y.state,y.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var w;const[T,E]=y;if(h=i.merge(E,(w=r())!=null?w:u),n(h,!0),T)return p()}).then(()=>{g==null||g(h,void 0),h=r(),a=!0,c.forEach(y=>y(h))}).catch(y=>{g==null||g(void 0,y)})};return o.persist={setOptions:v=>{i={...i,...v},v.storage&&(d=v.storage)},clearStorage:()=>{d==null||d.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:v=>(l.add(v),()=>{l.delete(v)}),onFinishHydration:v=>(c.add(v),()=>{c.delete(v)})},i.skipHydration||m(),h||u},vS=(t,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((pS?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),mS(t,e)):yS(t,e),Nu=vS;/*! @azure/msal-common v15.13.0 2025-09-24 */const A={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",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_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",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",NOT_AVAILABLE:"Not Available",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",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},hn={SUCCESS:200,SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR:400,CLIENT_ERROR_RANGE_START:400,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,REQUEST_TIMEOUT:408,GONE:410,TOO_MANY_REQUESTS:429,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR:500,SERVER_ERROR_RANGE_START:500,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,SERVER_ERROR_RANGE_END:599,MULTI_SIDED_ERROR:600},Bn={GET:"GET",POST:"POST"},Kr=[A.OPENID_SCOPE,A.PROFILE_SCOPE,A.OFFLINE_ACCESS_SCOPE],sf=[...Kr,A.EMAIL_SCOPE],je={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},lf={ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},Tn={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},xi={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},xe={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",
213NO_SESSION:"no_session"},bu={CODE:"code",IDTOKEN_TOKEN_REFRESHTOKEN:"id_token token refresh_token"},ss={QUERY:"query",FRAGMENT:"fragment"},_S={QUERY:"query"},Um={AUTHORIZATION_CODE_GRANT:"authorization_code",REFRESH_TOKEN_GRANT:"refresh_token"},Pi={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",GENERIC_ACCOUNT_TYPE:"Generic"},Qo={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},Ie={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},Ou="appmetadata",wS="client_info",Ta="1",Sa={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},Ye={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},ke={SCHEMA_VERSION:5,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"},q={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},To={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},cf={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},ir={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},il={CONFIGURED_NO_AUTO_DETECTION:"2",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},Un={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},CS={Pop:"pop"},jm=300;/*! @azure/msal-common v15.13.0 2025-09-24 */const Aa="unexpected_error",TS="post_request_failed";/*! @azure/msal-common v15.13.0 2025-09-24 */const uf={[Aa]:"Unexpected error in authentication.",[TS]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class J extends Error{constructor(e,n,r){const o=n?`${e}: ${n}`:e;super(o),Object.setPrototypeOf(this,J.prototype),this.errorCode=e||A.EMPTY_STRING,this.errorMessage=n||A.EMPTY_STRING,this.subError=r||A.EMPTY_STRING,this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function fc(t,e){return new J(t,e?`${uf[t]} ${e}`:uf[t])}/*! @azure/msal-common v15.13.0 2025-09-24 */const Mu="client_info_decoding_error",Hm="client_info_empty_error",Lu="token_parsing_error",Fm="null_or_empty_token",Ft="endpoints_resolution_error",Bm="network_error",zm="openid_config_error",Km="hash_not_deserialized",Ur="invalid_state",$m="state_mismatch",pc="state_not_found",Gm="nonce_mismatch",Du="auth_time_not_found",Vm="max_age_transpired",SS="multiple_matching_tokens",AS="multiple_matching_accounts",qm="multiple_matching_appMetadata",Qm="request_cannot_be_made",Wm="cannot_remove_empty_scope",Ym="cannot_append_scopeset",gc="empty_input_scopeset",kS="device_code_polling_cancelled",ES="device_code_expired",IS="device_code_unknown_error",Uu="no_account_in_silent_request",Jm="invalid_cache_record",ju="invalid_cache_environment",mc="no_account_found",yc="no_crypto_object",xS="unexpected_credential_type",PS="invalid_assertion",RS="invalid_client_credential",Sn="token_refresh_required",NS="user_timeout_reached",Xm="token_claims_cnf_required_for_signedjwt",Zm="authorization_code_missing_from_server_response",ey="binding_key_not_removed",ty="end_session_endpoint_not_supported",Hu="key_id_missing",bS="no_network_connectivity",OS="user_canceled",MS="missing_tenant_id_error",B="method_not_implemented",LS="nested_app_auth_bridge_disabled";/*! @azure/msal-common v15.13.0 2025-09-24 */const df={[Mu]:"The client info could not be parsed/decoded correctly",[Hm]:"The client info was empty",[Lu]:"Token cannot be parsed",[Fm]:"The token is null or empty",[Ft]:"Endpoints cannot be resolved",[Bm]:"Network request failed",[zm]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[Km]:"The hash parameters could not be deserialized",[Ur]:"State was not the expected format",[$m]:"State mismatch error",[pc]:"State not found",[Gm]:"Nonce mismatch error",[Du]:"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.",[Vm]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[SS]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[AS]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[qm]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[Qm]:"Token request cannot be made without authorization code or refresh token.",[Wm]:"Cannot remove null or empty scope from ScopeSet",[Ym]:"Cannot append ScopeSet",[gc]:"Empty input ScopeSet cannot be processed",[kS]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[ES]:"Device code is expired.",[IS]:"Device code stopped polling for unknown reasons.",[Uu]:"Please pass an account object, silent flow is not supported without account information",[Jm]:"Cache record object was null or undefined.",[ju]:"Invalid environment when attempting to create cache entry",[mc]:"No account found in cache for given key.",[yc]:"No crypto object detected.",[xS]:"Unexpected credential type.",[PS]:"Client assertion must meet requirements described 
213in https://tools.ietf.org/html/rfc7515",[RS]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[Sn]:"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.",[NS]:"User defined timeout for device code polling reached",[Xm]:"Cannot generate a POP jwt if the token_claims are not populated",[Zm]:"Server response does not contain an authorization code to proceed",[ey]:"Could not remove the credential's binding key from storage.",[ty]:"The provided authority does not support logout",[Hu]:"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.",[bS]:"No network connectivity. Check your internet connection.",[OS]:"User cancelled the flow.",[MS]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[B]:"This method has not been implemented",[LS]:"The nested app auth bridge is disabled"};class Fu extends J{constructor(e,n){super(e,n?`${df[e]}: ${n}`:df[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,Fu.prototype)}}function I(t,e){return new Fu(t,e)}/*! @azure/msal-common v15.13.0 2025-09-24 */const ka={createNewGuid:()=>{throw I(B)},base64Decode:()=>{throw I(B)},base64Encode:()=>{throw I(B)},base64UrlEncode:()=>{throw I(B)},encodeKid:()=>{throw I(B)},async getPublicKeyThumbprint(){throw I(B)},async removeTokenBindingKey(){throw I(B)},async clearKeystore(){throw I(B)},async signJwt(){throw I(B)},async hashString(){throw I(B)}};/*! @azure/msal-common v15.13.0 2025-09-24 */var W;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"})(W||(W={}));class Jt{constructor(e,n,r){this.level=W.Info;const o=()=>{},i=e||Jt.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:W.Info,this.correlationId=i.correlationId||A.EMPTY_STRING,this.packageName=n||A.EMPTY_STRING,this.packageVersion=r||A.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:W.Info}}clone(e,n,r){return new Jt({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,n)}logMessage(e,n){if(n.logLevel>this.level||!this.piiLoggingEnabled&&n.containsPii)return;const i=`${`[${new Date().toUTCString()}] : [${n.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${W[n.logLevel]} - ${e}`;this.executeCallback(n.logLevel,i,n.containsPii||!1)}executeCallback(e,n,r){this.localCallback&&this.localCallback(e,n,r)}error(e,n){this.logMessage(e,{logLevel:W.Error,containsPii:!1,correlationId:n||A.EMPTY_STRING})}errorPii(e,n){this.logMessage(e,{logLevel:W.Error,containsPii:!0,correlationId:n||A.EMPTY_STRING})}warning(e,n){this.logMessage(e,{logLevel:W.Warning,containsPii:!1,correlationId:n||A.EMPTY_STRING})}warningPii(e,n){this.logMessage(e,{logLevel:W.Warning,containsPii:!0,correlationId:n||A.EMPTY_STRING})}info(e,n){this.logMessage(e,{logLevel:W.Info,containsPii:!1,correlationId:n||A.EMPTY_STRING})}infoPii(e,n){this.logMessage(e,{logLevel:W.Info,containsPii:!0,correlationId:n||A.EMPTY_STRING})}verbose(e,n){this.logMessage(e,{logLevel:W.Verbose,containsPii:!1,correlationId:n||A.EMPTY_STRING})}verbosePii(e,n){this.logMessage(e,{logLevel:W.Verbose,containsPii:!0,correlationId:n||A.EMPTY_STRING})}trace(e,n){this.logMessage(e,{logLevel:W.Trace,containsPii:!1,correlationId:n||A.EMPTY_STRING})}tracePii(e,n){this.logMessage(e,{logLevel:W.Trace,containsPii:!0,correlationId:n||A.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-common v15.13.0 2025-09-24 */const ny="@azure/msal-common",Bu="15.13.0";/*! @azure/msal-common v15.13.0 2025-09-24 */const zu={None:"none"};/*! @azure/msal-common v15.13.0 2025-09-24 */const ry="redirect_uri_empty",DS="claims_request_parsing_error",oy="authority_uri_insecure",uo="url_parse_error",iy="empty_url_error",ay="empty_input_scopes_error",Ku="invalid_claims",sy="token_request_empty",ly="logout_request_empty",US="invalid_code_challenge_method",$u="pkce_params_missing",Gu="invalid_cloud_discovery_metadata",cy="invalid_authority_metadata",uy="untrusted_authority",ls="missing_ssh_jwk",dy="missing_ssh_kid",jS="missing_nonce_authentication_header",HS="invalid_authentication_header",hy="cannot_set_OIDCOptions",fy="cannot_allow_platform_broker",py="authority_mismatch",gy="invalid_request_method_for_EAR",my="invalid_authorize_post_body_parameters";/*! @azure/msal-common v15.13.0 2025-09-24 */const FS={[ry]:"A redirect URI is required for all calls, and none has been set.",[DS]:"Could not parse the given claims request object.",[oy]:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us
213/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[uo]:"URL could not be parsed into appropriate segments.",[iy]:"URL was empty or null.",[ay]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[Ku]:"Given claims parameter must be a stringified JSON object.",[sy]:"Token request was empty and not found in cache.",[ly]:"The logout request was null or undefined.",[US]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[$u]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[Gu]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[cy]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[uy]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[ls]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[dy]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[jS]:"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.",[HS]:"Invalid authentication header provided",[hy]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[fy]:"Cannot set allowPlatformBroker parameter to true when not in AAD protocol mode.",[py]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority.",[my]:"Invalid authorize post body parameters provided. If you are using authorizePostBodyParameters, the request method must be POST. Please check the request method and parameters.",[gy]:"Invalid request method for EAR protocol mode. The request method cannot be GET when using EAR protocol mode. Please change the request method to POST."};class Vu extends J{constructor(e){super(e,FS[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,Vu.prototype)}}function X(t){return new Vu(t)}/*! @azure/msal-common v15.13.0 2025-09-24 */class tt{static isEmptyObj(e){if(e)try{const n=JSON.parse(e);return Object.keys(n).length===0}catch{}return!0}static startsWith(e,n){return e.indexOf(n)===0}static endsWith(e,n){return e.length>=n.length&&e.lastIndexOf(n)===e.length-n.length}static queryStringToObject(e){const n={},r=e.split("&"),o=i=>decodeURIComponent(i.replace(/\+/g," "));return r.forEach(i=>{if(i.trim()){const[a,l]=i.split(/=(.+)/g,2);a&&l&&(n[o(a)]=o(l))}}),n}static trimArrayEntries(e){return e.map(n=>n.trim())}static removeEmptyStringsFromArray(e){return e.filter(n=>!!n)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,n){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(n)}}/*! @azure/msal-common v15.13.0 2025-09-24 */class _e{constructor(e){const n=e?tt.trimArrayEntries([...e]):[],r=n?tt.removeEmptyStringsFromArray(n):[];if(!r||!r.length)throw X(ay);this.scopes=new Set,r.forEach(o=>this.scopes.add(o))}static fromString(e){const r=(e||A.EMPTY_STRING).split(" ");return new _e(r)}static createSearchScopes(e){const n=e&&e.length>0?e:[...Kr],r=new _e(n);return r.containsOnlyOIDCScopes()?r.removeScope(A.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),r}containsScope(e){const n=this.printScopesLowerCase().split(" "),r=new _e(n);return e?r.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(n=>this.containsScope(n))}containsOnlyOIDCScopes(){let e=0;return sf.forEach(n=>{this.containsScope(n)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(n=>this.appendScope(n))}catch{throw I(Ym)}}removeScope(e){if(!e)throw I(Wm);this.scopes.delete(e.trim())}
213removeOIDCScopes(){sf.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw I(gc);const n=new Set;return e.scopes.forEach(r=>n.add(r.toLowerCase())),this.scopes.forEach(r=>n.add(r.toLowerCase())),n}intersectingScopeSets(e){if(!e)throw I(gc);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const n=this.unionScopeSets(e),r=e.getScopeCount(),o=this.getScopeCount();return n.size<o+r}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach(n=>e.push(n)),e}printScopes(){return this.scopes?this.asArray().join(" "):A.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v15.13.0 2025-09-24 */function hf(t,e){return!!t&&!!e&&t===e.split(".")[1]}function qu(t,e,n,r){if(r){const{oid:o,sub:i,tid:a,name:l,tfp:c,acr:d,preferred_username:p,upn:s,login_hint:u}=r,h=a||c||d||"";return{tenantId:h,localAccountId:o||i||"",name:l,username:p||s||"",loginHint:u,isHomeTenant:hf(h,t)}}else return{tenantId:n,localAccountId:e,username:"",isHomeTenant:hf(n,t)}}function Qu(t,e,n,r){let o=t;if(e){const{isHomeTenant:i,...a}=e;o={...t,...a}}if(n){const{isHomeTenant:i,...a}=qu(t.homeAccountId,t.localAccountId,t.tenantId,n);return o={...o,...a,idTokenClaims:n,idToken:r},o}return o}/*! @azure/msal-common v15.13.0 2025-09-24 */function $r(t,e){const n=BS(t);try{const r=e(n);return JSON.parse(r)}catch{throw I(Lu)}}function BS(t){if(!t)throw I(Fm);const n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!n||n.length<4)throw I(Lu);return n[2]}function yy(t,e){if(e===0||Date.now()-3e5>t+e)throw I(Vm)}/*! @azure/msal-common v15.13.0 2025-09-24 */function ff(t){if(!t)return t;let e=t.toLowerCase();return tt.endsWith(e,"?")?e=e.slice(0,-1):tt.endsWith(e,"?/")&&(e=e.slice(0,-2)),tt.endsWith(e,"/")||(e+="/"),e}function vy(t){return t.startsWith("#/")?t.substring(2):t.startsWith("#")||t.startsWith("?")?t.substring(1):t}function Ea(t){if(!t||t.indexOf("=")<0)return null;try{const e=vy(t),n=Object.fromEntries(new URLSearchParams(e));if(n.code||n.ear_jwe||n.error||n.error_description||n.state)return n}catch{throw I(Km)}return null}function Wo(t,e=!0,n){const r=new Array;return t.forEach((o,i)=>{!e&&n&&i in n?r.push(`${i}=${o}`):r.push(`${i}=${encodeURIComponent(o)}`)}),r.join("&")}function pf(t){if(!t)return t;const e=t.split("#")[0];try{const n=new URL(e),r=n.origin+n.pathname+n.search;return ff(r)}catch{return ff(e)}}/*! @azure/msal-common v15.13.0 2025-09-24 */class G{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw X(iy);e.includes("#")||(this._urlString=G.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let n=e.toLowerCase();return tt.endsWith(n,"?")?n=n.slice(0,-1):tt.endsWith(n,"?/")&&(n=n.slice(0,-2)),tt.endsWith(n,"/")||(n+="/"),n}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw X(uo)}if(!e.HostNameAndPort||!e.PathSegments)throw X(uo);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw X(oy)}static appendQueryString(e,n){return n?e.indexOf("?")<0?`${e}?${n}`:`${e}&${n}`:e}static removeHashFromUrl(e){return G.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const n=this.getUrlComponents(),r=n.PathSegments;return e&&r.length!==0&&(r[0]===Tn.COMMON||r[0]===Tn.ORGANIZATIONS)&&(r[0]=e),G.constructAuthorityUriFromObject(n)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),n=this.urlString.match(e);if(!n)throw X(uo);const r={Protocol:n[1],HostNameAndPort:n[4],AbsolutePath:n[5],QueryString:n[7]};let o=r.AbsolutePath.split("/");return o=o.filter(i=>i&&i.length>0),r.PathSegments=o,r.QueryString&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r}static getDomainFromUrl(e){const n=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=e.match(n);if(!r)throw X(uo);return r[2]}static getAbsoluteUrl(e,n){if(e[0]===A.FORWARD_SLASH){const o=new G(n).getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new G(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!Ea(e)}}/*! @azure/msal-common v15.13.0 2025-09-24 */const _y={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{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"]}]}},gf=_y.endpointMetadata,Wu=_y.instanceDiscoveryMetadata,wy=new Set;Wu.metadata.forEach(t=>
213{t.aliases.forEach(e=>{wy.add(e)})});function zS(t,e){var o;let n;const r=t.canonicalAuthority;if(r){const i=new G(r).getUrlComponents().HostNameAndPort;n=mf(i,(o=t.cloudDiscoveryMetadata)==null?void 0:o.metadata,Ye.CONFIG,e)||mf(i,Wu.metadata,Ye.HARDCODED_VALUES,e)||t.knownAuthorities}return n||[]}function mf(t,e,n,r){if(r==null||r.trace(`getAliasesFromMetadata called with source: ${n}`),t&&e){const o=Ia(e,t);if(o)return r==null||r.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${n}, returning aliases`),o.aliases;r==null||r.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${n}`)}return null}function KS(t){return Ia(Wu.metadata,t)}function Ia(t,e){for(let n=0;n<t.length;n++){const r=t[n];if(r.aliases.includes(e))return r}return null}/*! @azure/msal-common v15.13.0 2025-09-24 */const xa="cache_quota_exceeded",Yu="cache_error_unknown";/*! @azure/msal-common v15.13.0 2025-09-24 */const al={[xa]:"Exceeded cache storage capacity.",[Yu]:"Unexpected error occurred when using cache storage."};class Er extends J{constructor(e,n){const r=n||(al[e]?al[e]:al[Yu]);super(`${e}: ${r}`),Object.setPrototypeOf(this,Er.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=r}}function vc(t){return t instanceof Error?t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED"||t.message.includes("exceeded the quota")?new Er(xa):new Er(t.name,t.message):new Er(Yu)}/*! @azure/msal-common v15.13.0 2025-09-24 */class _c{constructor(e,n,r,o,i){this.clientId=e,this.cryptoImpl=n,this.commonLogger=r.clone(ny,Bu),this.staticAuthorityOptions=i,this.performanceClient=o}getAllAccounts(e,n){return this.buildTenantProfiles(this.getAccountsFilteredBy(e,n),n,e)}getAccountInfoFilteredBy(e,n){if(Object.keys(e).length===0||Object.values(e).every(o=>!o))return this.commonLogger.warning("getAccountInfoFilteredBy: Account filter is empty or invalid, returning null"),null;const r=this.getAllAccounts(e,n);return r.length>1?r.sort(i=>i.idTokenClaims?-1:1)[0]:r.length===1?r[0]:null}getBaseAccountInfo(e,n){const r=this.getAccountsFilteredBy(e,n);return r.length>0?r[0].getAccountInfo():null}buildTenantProfiles(e,n,r){return e.flatMap(o=>this.getTenantProfilesFromAccountEntity(o,n,r==null?void 0:r.tenantId,r))}getTenantedAccountInfoByFilter(e,n,r,o,i){let a=null,l;if(i&&!this.tenantProfileMatchesFilter(r,i))return null;const c=this.getIdToken(e,o,n,r.tenantId);return c&&(l=$r(c.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(l,i))?null:(a=Qu(e,r,l,c==null?void 0:c.secret),a)}getTenantProfilesFromAccountEntity(e,n,r,o){const i=e.getAccountInfo();let a=i.tenantProfiles||new Map;const l=this.getTokenKeys();if(r){const d=a.get(r);if(d)a=new Map([[r,d]]);else return[]}const c=[];return a.forEach(d=>{const p=this.getTenantedAccountInfoByFilter(i,l,d,n,o);p&&c.push(p)}),c}tenantProfileMatchesFilter(e,n){return!(n.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,n.localAccountId)||n.name&&e.name!==n.name||n.isHomeTenant!==void 0&&e.isHomeTenant!==n.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,n){return!(n&&(n.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,n.localAccountId)||n.loginHint&&!this.matchLoginHintFromTokenClaims(e,n.loginHint)||n.username&&!this.matchUsername(e.preferred_username,n.username)||n.name&&!this.matchName(e,n.name)||n.sid&&!this.matchSid(e,n.sid)))}async saveCacheRecord(e,n,r){var o;if(!e)throw I(Jm);try{e.account&&await this.setAccount(e.account,n),e.idToken&&(r==null?void 0:r.idToken)!==!1&&await this.setIdTokenCredential(e.idToken,n),e.accessToken&&(r==null?void 0:r.accessToken)!==!1&&await this.saveAccessToken(e.accessToken,n),e.refreshToken&&(r==null?void 0:r.refreshToken)!==!1&&await this.setRefreshTokenCredential(e.refreshToken,n),e.appMetadata&&this.setAppMetadata(e.appMetadata,n)}catch(i){throw(o=this.commonLogger)==null||o.error("CacheManager.saveCacheRecord: failed"),i instanceof J?i:vc(i)}}async saveAccessToken(e,n){const r={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},o=this.getTokenKeys(),i=_e.fromString(e.target);
213o.accessToken.forEach(a=>{if(!this.accessTokenKeyMatchesFilter(a,r,!1))return;const l=this.getAccessTokenCredential(a,n);l&&this.credentialMatchesFilter(l,r)&&_e.fromString(l.target).intersectingScopeSets(i)&&this.removeAccessToken(a,n)}),await this.setAccessTokenCredential(e,n)}getAccountsFilteredBy(e,n){const r=this.getAccountKeys(),o=[];return r.forEach(i=>{var d;const a=this.getAccount(i,n);if(!a||e.homeAccountId&&!this.matchHomeAccountId(a,e.homeAccountId)||e.username&&!this.matchUsername(a.username,e.username)||e.environment&&!this.matchEnvironment(a,e.environment)||e.realm&&!this.matchRealm(a,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(a,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(a,e.authorityType))return;const l={localAccountId:e==null?void 0:e.localAccountId,name:e==null?void 0:e.name},c=(d=a.tenantProfiles)==null?void 0:d.filter(p=>this.tenantProfileMatchesFilter(p,l));c&&c.length===0||o.push(a)}),o}credentialMatchesFilter(e,n){return!(n.clientId&&!this.matchClientId(e,n.clientId)||n.userAssertionHash&&!this.matchUserAssertionHash(e,n.userAssertionHash)||typeof n.homeAccountId=="string"&&!this.matchHomeAccountId(e,n.homeAccountId)||n.environment&&!this.matchEnvironment(e,n.environment)||n.realm&&!this.matchRealm(e,n.realm)||n.credentialType&&!this.matchCredentialType(e,n.credentialType)||n.familyId&&!this.matchFamilyId(e,n.familyId)||n.target&&!this.matchTarget(e,n.target)||(n.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==n.requestedClaimsHash||e.credentialType===Ie.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(n.tokenType&&!this.matchTokenType(e,n.tokenType)||n.tokenType===q.SSH&&n.keyId&&!this.matchKeyId(e,n.keyId)))}getAppMetadataFilteredBy(e){const n=this.getKeys(),r={};return n.forEach(o=>{if(!this.isAppMetadata(o))return;const i=this.getAppMetadata(o);i&&(e.environment&&!this.matchEnvironment(i,e.environment)||e.clientId&&!this.matchClientId(i,e.clientId)||(r[o]=i))}),r}getAuthorityMetadataByAlias(e){const n=this.getAuthorityMetadataKeys();let r=null;return n.forEach(o=>{if(!this.isAuthorityMetadata(o)||o.indexOf(this.clientId)===-1)return;const i=this.getAuthorityMetadata(o);i&&i.aliases.indexOf(e)!==-1&&(r=i)}),r}removeAllAccounts(e){this.getAllAccounts({},e).forEach(r=>{this.removeAccount(r,e)})}removeAccount(e,n){this.removeAccountContext(e,n);const r=this.getAccountKeys(),o=i=>i.includes(e.homeAccountId)&&i.includes(e.environment);r.filter(o).forEach(i=>{this.removeItem(i,n),this.performanceClient.incrementFields({accountsRemoved:1},n)})}removeAccountContext(e,n){const r=this.getTokenKeys(),o=i=>i.includes(e.homeAccountId)&&i.includes(e.environment);r.idToken.filter(o).forEach(i=>{this.removeIdToken(i,n)}),r.accessToken.filter(o).forEach(i=>{this.removeAccessToken(i,n)}),r.refreshToken.filter(o).forEach(i=>{this.removeRefreshToken(i,n)})}removeAccessToken(e,n){const r=this.getAccessTokenCredential(e,n);if(this.removeItem(e,n),this.performanceClient.incrementFields({accessTokensRemoved:1},n),!r||r.credentialType.toLowerCase()!==Ie.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()||r.tokenType!==q.POP)return;const o=r.keyId;o&&this.cryptoImpl.removeTokenBindingKey(o).catch(()=>{var i;this.commonLogger.error(`Failed to remove token binding key ${o}`,n),(i=this.performanceClient)==null||i.incrementFields({removeTokenBindingKeyFailure:1},n)})}removeAppMetadata(e){return this.getKeys().forEach(r=>{this.isAppMetadata(r)&&this.removeItem(r,e)}),!0}getIdToken(e,n,r,o,i){this.commonLogger.trace("CacheManager - getIdToken called");const a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:Ie.ID_TOKEN,clientId:this.clientId,realm:o},l=this.getIdTokensByFilter(a,n,r),c=l.size;if(c<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(c>1){let d=l;if(!o){const p=new Map;l.forEach((u,h)=>{u.realm===e.tenantId&&p.set(h,u)});const s=p.size;if(s<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),l.values().next().value;if(s===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),p.values().next().value;d=p}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),d.forEach((p,s)=>{this.removeIdToken(s,n)}),i&&n&&i.addFields({multiMatchedID:l.size},n),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),l.values().next().value}getIdTokensByFilter(e,n,r){const o=r&&r.idToken||this.getTokenKeys().idToken,i=new Map;return o.forEach(a=>{if(!this.idTokenKeyMatchesFilter(a,{clientId:this.clientId,...e}))return;const l=this.getIdTokenCredential(a,n);l&&this.credentialMatchesFilter(l,e)&&i.set(a,l)}),i}idTokenKeyMatchesFilter(e,n){const r=e.toLowerCase();return!(n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1)}removeIdToken(e,n){this.removeItem(e,n)}removeRefreshToken(e,n){this.removeItem(e,n)}getAccessToken(e,n,r,o){const i=n.correlationId;this.commonLogger.trace("CacheManager - getAccessToken called",i);const a=_e.createSearchScopes(n.scopes),l=n.authenticationScheme||q.BEARER,c=l.toLowerCase()!==q.BEARER.toLowerCase()?Ie.ACCESS_TOKEN_WITH_AUTH_SCHEME:Ie.ACCESS_TOKEN,d={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:c,clientId:this.clientId,realm:o||e.tenantId,target:a,tokenType:l,ke
213yId:n.sshKid,requestedClaimsHash:n.requestedClaimsHash},p=r&&r.accessToken||this.getTokenKeys().accessToken,s=[];p.forEach(h=>{if(this.accessTokenKeyMatchesFilter(h,d,!0)){const m=this.getAccessTokenCredential(h,i);m&&this.credentialMatchesFilter(m,d)&&s.push(m)}});const u=s.length;return u<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found",i),null):u>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them",i),s.forEach(h=>{this.removeAccessToken(this.generateCredentialKey(h),i)}),this.performanceClient.addFields({multiMatchedAT:s.length},i),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token",i),s[0])}accessTokenKeyMatchesFilter(e,n,r){const o=e.toLowerCase();if(n.clientId&&o.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&o.indexOf(n.homeAccountId.toLowerCase())===-1||n.realm&&o.indexOf(n.realm.toLowerCase())===-1||n.requestedClaimsHash&&o.indexOf(n.requestedClaimsHash.toLowerCase())===-1)return!1;if(n.target){const i=n.target.asArray();for(let a=0;a<i.length;a++){if(r&&!o.includes(i[a].toLowerCase()))return!1;if(!r&&o.includes(i[a].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e,n){const r=this.getTokenKeys(),o=[];return r.accessToken.forEach(i=>{if(!this.accessTokenKeyMatchesFilter(i,e,!0))return;const a=this.getAccessTokenCredential(i,n);a&&this.credentialMatchesFilter(a,e)&&o.push(a)}),o}getRefreshToken(e,n,r,o,i){this.commonLogger.trace("CacheManager - getRefreshToken called");const a=n?Ta:void 0,l={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:Ie.REFRESH_TOKEN,clientId:this.clientId,familyId:a},c=o&&o.refreshToken||this.getTokenKeys().refreshToken,d=[];c.forEach(s=>{if(this.refreshTokenKeyMatchesFilter(s,l)){const u=this.getRefreshTokenCredential(s,r);u&&this.credentialMatchesFilter(u,l)&&d.push(u)}});const p=d.length;return p<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(p>1&&i&&r&&i.addFields({multiMatchedRT:p},r),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),d[0])}refreshTokenKeyMatchesFilter(e,n){const r=e.toLowerCase();return!(n.familyId&&r.indexOf(n.familyId.toLowerCase())===-1||!n.familyId&&n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const n={environment:e,clientId:this.clientId},r=this.getAppMetadataFilteredBy(n),o=Object.keys(r).map(a=>r[a]),i=o.length;if(i<1)return null;if(i>1)throw I(qm);return o[0]}isAppMetadataFOCI(e){const n=this.readAppMetadataFromCache(e);return!!(n&&n.familyId===Ta)}matchHomeAccountId(e,n){return typeof e.homeAccountId=="string"&&n===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,n){const r=e.oid||e.sub;return n===r}matchLocalAccountIdFromTenantProfile(e,n){return e.localAccountId===n}matchName(e,n){var r;return n.toLowerCase()===((r=e.name)==null?void 0:r.toLowerCase())}matchUsername(e,n){return!!(e&&typeof e=="string"&&(n==null?void 0:n.toLowerCase())===e.toLowerCase())}matchUserAssertionHash(e,n){return!!(e.userAssertionHash&&n===e.userAssertionHash)}matchEnvironment(e,n){if(this.staticAuthorityOptions){const o=zS(this.staticAuthorityOptions,this.commonLogger);if(o.includes(n)&&o.includes(e.environment))return!0}const r=this.getAuthorityMetadataByAlias(n);return!!(r&&r.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,n){return e.credentialType&&n.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,n){return!!(e.clientId&&n===e.clientId)}matchFamilyId(e,n){return!!(e.familyId&&n===e.familyId)}matchRealm(e,n){var r;return((r=e.realm)==null?void 0:r.toLowerCase())===n.toLowerCase()}matchNativeAccountId(e,n){return!!(e.nativeAccountId&&n===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,n){return e.login_hint===n||e.preferred_username===n||e.upn===n}matchSid(e,n){return e.sid===n}matchAuthorityType(e,n){return!!(e.authorityType&&n.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,n){return e.credentialType!==Ie.ACCESS_TOKEN&&e.credentialType!==Ie.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:_e.fromString(e.target).containsScopeSet(n)}matchTokenType(e,n){return!!(e.tokenType&&e.tokenType===n)}matchKeyId(e,n){return!!(e.keyId&&e.keyId===n)}isAppMetadata(e){return e.indexOf(Ou)!==-1}isAuthorityMetadata(e){return e.indexOf(Sa.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${Sa.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,n){for(const r in n)e[r]=n[r];return e}}class $S extends _c{async setAccount(){throw I(B)}getAccount(){throw I(B)}async setIdTokenCredential(){throw I(B)}getIdTokenCredential(){throw I(B)}async setAccessTokenCredential(){throw I(B)}getAccessTokenCredential(){throw I(B)}async setRefreshTokenCredential(){throw I(B)}getRefreshTokenCredential(){throw I(B)}setAppMetadata(){throw I(B)}getAppMetadata(){throw I(B)}setServerTelemetry(){throw I(B)}getServerTelemetry(){throw I(B)}setAuthorityMetadata(){throw I(B)}getAuthorityMetadata(){throw I(B)}getAuthorityMetadataKeys(){throw I(B)}setThrottlingCache(){throw I(B)}getThrottlingCache(){throw I(B)}removeItem(){throw I(B)}getKeys(){throw I(B)}getAccountKeys(){throw I(B)}getTokenKeys(){throw I(B)}generateCredentialKey(){throw I(B)}generateAccountKey(){throw I(B)}}/*! @azure/msal-common v15.13.0 2025-09-24 */const Qe={AAD:"AAD",OIDC:"OIDC",EAR:"EAR"};/*! @azure/msal-common v15.13.0 2025-09-24 */const C={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",InitializeCache:"initializeCache",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",
213StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",GetAuthCodeUrl:"getAuthCodeUrl",GetStandardParams:"getStandardParams",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",HandleResponseEar:"handleResponseEar",HandleResponsePlatformBroker:"handleResponsePlatformBroker",HandleResponseCode:"handleResponseCode",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",ImportExistingCache:"importExistingCache",SetUserData:"setUserData",LocalStorageUpdated:"localStorageUpdated",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues",GenerateHKDF:"generateHKDF",GenerateBaseKey:"generateBaseKey",Base64Decode:"base64Decode",UrlEncodeArr:"urlEncodeArr",Encrypt:"encrypt",Decrypt:"decrypt",GenerateEarKey:"generateEarKey",DecryptEarResponse:"decryptEarResponse"},GS={InProgress:1};/*! @azure/msal-common v15.13.0 2025-09-24 */class yf{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class Cy{generateId(){return"callback-id"}startMeasurement(e,n){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:GS.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:n||""},measurement:new yf}}startPerformanceMeasurement(){return new yf}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-common v15.13.0 2025-09-24 */const Ty={tokenRenewalOffsetSeconds:jm,preventCorsPreflight:!1},VS={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:W.Info,correlationId:A.EMPTY_STRING},qS={claimsBasedCachingEnabled:!1},QS={async sendGetRequestAsync(){throw I(B)},async sendPostRequestAsync(){throw I(B)}}
213,WS={sku:A.SKU,version:Bu,cpu:A.EMPTY_STRING,os:A.EMPTY_STRING},YS={clientSecret:A.EMPTY_STRING,clientAssertion:void 0},JS={azureCloudInstance:zu.None,tenant:`${A.DEFAULT_COMMON_TENANT}`},XS={application:{appName:"",appVersion:""}};function ZS({authOptions:t,systemOptions:e,loggerOptions:n,cacheOptions:r,storageInterface:o,networkInterface:i,cryptoInterface:a,clientCredentials:l,libraryInfo:c,telemetry:d,serverTelemetryManager:p,persistencePlugin:s,serializableCache:u}){const h={...VS,...n};return{authOptions:eA(t),systemOptions:{...Ty,...e},loggerOptions:h,cacheOptions:{...qS,...r},storageInterface:o||new $S(t.clientId,ka,new Jt(h),new Cy),networkInterface:i||QS,cryptoInterface:a||ka,clientCredentials:l||YS,libraryInfo:{...WS,...c},telemetry:{...XS,...d},serverTelemetryManager:p||null,persistencePlugin:s||null,serializableCache:u||null}}function eA(t){return{clientCapabilities:[],azureCloudOptions:JS,skipAuthorityMetadataCache:!1,instanceAware:!1,encodeExtraQueryParams:!1,...t}}function Sy(t){return t.authOptions.authority.options.protocolMode===Qe.OIDC}/*! @azure/msal-common v15.13.0 2025-09-24 */const wt={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v15.13.0 2025-09-24 */function Pa(t,e){if(!t)throw I(Hm);try{const n=e(t);return JSON.parse(n)}catch{throw I(Mu)}}function Ir(t){if(!t)throw I(Mu);const e=t.split(Qo.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?A.EMPTY_STRING:e[1]}}/*! @azure/msal-common v15.13.0 2025-09-24 */const Yn="client_id",Ay="redirect_uri",tA="response_type",nA="response_mode",rA="grant_type",oA="claims",iA="scope",aA="refresh_token",sA="state",lA="nonce",cA="prompt",uA="code",dA="code_challenge",hA="code_challenge_method",fA="code_verifier",pA="client-request-id",gA="x-client-SKU",mA="x-client-VER",yA="x-client-OS",vA="x-client-CPU",_A="x-client-current-telemetry",wA="x-client-last-telemetry",CA="x-ms-lib-capability",TA="x-app-name",SA="x-app-ver",AA="post_logout_redirect_uri",kA="id_token_hint",EA="client_secret",IA="client_assertion",xA="client_assertion_type",ky="token_type",Ey="req_cnf",vf="return_spa_code",PA="nativebroker",RA="logout_hint",NA="sid",bA="login_hint",OA="domain_hint",MA="x-client-xtra-sku",Ra="brk_client_id",Na="brk_redirect_uri",wc="instance_aware",LA="ear_jwk",DA="ear_jwe_crypto";/*! @azure/msal-common v15.13.0 2025-09-24 */function cs(t,e,n){if(!e)return;const r=t.get(Yn);r&&t.has(Ra)&&(n==null||n.addFields({embeddedClientId:r,embeddedRedirectUri:t.get(Ay)},e))}function Ju(t,e){t.set(tA,e)}function UA(t,e){t.set(nA,e||_S.QUERY)}function jA(t){t.set(PA,"1")}function Xu(t,e,n=!0,r=Kr){n&&!r.includes("openid")&&!e.includes("openid")&&r.push("openid");const o=n?[...e||[],...r]:e||[],i=new _e(o);t.set(iA,i.printScopes())}function Zu(t,e){t.set(Yn,e)}function ed(t,e){t.set(Ay,e)}function HA(t,e){t.set(AA,e)}function FA(t,e){t.set(kA,e)}function BA(t,e){t.set(OA,e)}function Ri(t,e){t.set(bA,e)}function ba(t,e){t.set(je.CCS_HEADER,`UPN:${e}`)}function So(t,e){t.set(je.CCS_HEADER,`Oid:${e.uid}@${e.utid}`)}function _f(t,e){t.set(NA,e)}function td(t,e,n){const r=qA(e,n);try{JSON.parse(r)}catch{throw X(Ku)}t.set(oA,r)}function nd(t,e){t.set(pA,e)}function rd(t,e){t.set(gA,e.sku),t.set(mA,e.version),e.os&&t.set(yA,e.os),e.cpu&&t.set(vA,e.cpu)}function od(t,e){e!=null&&e.appName&&t.set(TA,e.appName),e!=null&&e.appVersion&&t.set(SA,e.appVersion)}function zA(t,e){t.set(cA,e)}function Iy(t,e){e&&t.set(sA,e)}function KA(t,e){t.set(lA,e)}function xy(t,e,n){if(e&&n)t.set(dA,e),t.set(hA,n);else throw X($u)}function $A(t,e){t.set(uA,e)}function GA(t,e){t.set(aA,e)}function VA(t,e){t.set(fA,e)}function Py(t,e){t.set(EA,e)}function Ry(t,e){e&&t.set(IA,e)}function Ny(t,e){e&&t.set(xA,e)}function by(t,e){t.set(rA,e)}function id(t){t.set(wS,"1")}function Oy(t){t.has(wc)||t.set(wc,"true")}function An(t,e){Object.entries(e).forEach(([n,r])=>{!t.has(n)&&r&&t.set(n,r)})}function qA(t,e){let n;if(!t)n={};else try{n=JSON.parse(t)}catch{throw X(Ku)}return e&&e.length>0&&(n.hasOwnProperty(xi.ACCESS_TOKEN)||(n[xi.ACCESS_TOKEN]={}),n[xi.ACCESS_TOKEN][xi.XMS_CC]={values:e}),JSON.stringify(n)}function ad(t,e){e&&(t.set(ky,q.POP),t.set(Ey,e))}
213function My(t,e){e&&(t.set(ky,q.SSH),t.set(Ey,e))}function Ly(t,e){t.set(_A,e.generateCurrentRequestHeaderValue()),t.set(wA,e.generateLastRequestHeaderValue())}function Dy(t){t.set(CA,To.X_MS_LIB_CAPABILITY_VALUE)}function QA(t,e){t.set(RA,e)}function us(t,e,n){t.has(Ra)||t.set(Ra,e),t.has(Na)||t.set(Na,n)}function WA(t,e){t.set(LA,encodeURIComponent(e)),t.set(DA,"eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0")}function YA(t,e){Object.entries(e).forEach(([n,r])=>{r&&t.set(n,r)})}/*! @azure/msal-common v15.13.0 2025-09-24 */const vt={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v15.13.0 2025-09-24 */function JA(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v15.13.0 2025-09-24 */function XA(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v15.13.0 2025-09-24 */function ZA(t){return t.hasOwnProperty("error")&&t.hasOwnProperty("error_description")}/*! @azure/msal-common v15.13.0 2025-09-24 */const nt=(t,e,n,r,o)=>(...i)=>{n.trace(`Executing function ${e}`);const a=r==null?void 0:r.startMeasurement(e,o);if(o){const l=e+"CallCount";r==null||r.incrementFields({[l]:1},o)}try{const l=t(...i);return a==null||a.end({success:!0}),n.trace(`Returning result from ${e}`),l}catch(l){n.trace(`Error occurred in ${e}`);try{n.trace(JSON.stringify(l))}catch{n.trace("Unable to print error message.")}throw a==null||a.end({success:!1},l),l}},S=(t,e,n,r,o)=>(...i)=>{n.trace(`Executing function ${e}`);const a=r==null?void 0:r.startMeasurement(e,o);if(o){const l=e+"CallCount";r==null||r.incrementFields({[l]:1},o)}return r==null||r.setPreQueueTime(e,o),t(...i).then(l=>(n.trace(`Returning result from ${e}`),a==null||a.end({success:!0}),l)).catch(l=>{n.trace(`Error occurred in ${e}`);try{n.trace(JSON.stringify(l))}catch{n.trace("Unable to print error message.")}throw a==null||a.end({success:!1},l),l})};/*! @azure/msal-common v15.13.0 2025-09-24 */class ds{constructor(e,n,r,o){this.networkInterface=e,this.logger=n,this.performanceClient=r,this.correlationId=o}async detectRegion(e,n){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(C.RegionDiscoveryDetectRegion,this.correlationId);let r=e;if(r)n.region_source=ir.ENVIRONMENT_VARIABLE;else{const i=ds.IMDS_OPTIONS;try{const a=await S(this.getRegionFromIMDS.bind(this),C.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(A.IMDS_VERSION,i);if(a.status===hn.SUCCESS&&(r=a.body,n.region_source=ir.IMDS),a.status===hn.BAD_REQUEST){const l=await S(this.getCurrentVersion.bind(this),C.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(i);if(!l)return n.region_source=ir.FAILED_AUTO_DETECTION,null;const c=await S(this.getRegionFromIMDS.bind(this),C.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(l,i);c.status===hn.SUCCESS&&(r=c.body,n.region_source=ir.IMDS)}}catch{return n.region_source=ir.FAILED_AUTO_DETECTION,null}}return r||(n.region_source=ir.FAILED_AUTO_DETECTION),r||null}async getRegionFromIMDS(e,n){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(C.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${A.IMDS_ENDPOINT}?api-version=${e}&format=text`,n,A.IMDS_TIMEOUT)}async getCurrentVersion(e){var n;(n=this.performanceClient)==null||n.addQueueMeasurement(C.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(`${A.IMDS_ENDPOINT}?format=json`,e);return r.status===hn.BAD_REQUEST&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}ds.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v15.13.0 2025-09-24 */function We(){return Math.round(new Date().getTime()/1e3)}function wf(t){return t.getTime()/1e3}function xr(t){return t?new Date(Number(t)*1e3):new Date}function Oa(t,e){const n=Number(t)||0;return We()+e>n}function ek(t,e){const n=Number(t)+e*24*60*60*1e3;return Date.now()>n}function tk(t){return Number(t)>We()}/*! @azure/msal-common v15.13.0 2025-09-24 */function hs(t,e,n,r,o){return{credentialType:Ie.ID_TOKEN,homeAccountId:t,environment:e,clientId:r,secret:n,realm:o,lastUpdatedAt:Date.now().toString()}}function fs(t,e,n,r,o,i,a,l,c,d,p,s,u,h,m){var _,g;const v={homeAccountId:t,credentialType:Ie.ACCESS_TOKEN,secret:n,cachedAt:We().toString(),expiresOn:a.toString(),extendedExpiresOn:l.toString(),environment:e,clientId:r,realm:o,target:i,tokenType:p||q.BEARER,lastUpdatedAt:Date.now().toString()};if(s&&(v.userAssertionHash=s),d&&(v.refreshOn=d.toString()),h&&(v.requestedClaims=h,v.requestedClaimsHash=m),((_=v.tokenType)==null?void 0:_.toLowerCase())!==q.BEARER.toLowerCase())switch(v.credentialType=Ie.ACCESS_TOKEN_WITH_AUTH_SCHEME,v.tokenType){case q.POP:const y=$r(n,c);if(!((g=y==null?void 0:y.cnf)!=null&&g.kid))throw I(Xm);v.keyId=y.cnf.kid;break;case q.SSH:v.keyId=u}return v}function Uy(t,e,n,r,o,i,a){const l={credentialType:Ie.REFRESH_TOKEN,homeAccountId:t,environment:e,clientId:r,secret:n,lastUpdatedAt:Date.now().toString()};return i&&(l.userAssertionHash=i),o&&(l.familyId=o),a&&(l.expiresOn=a.toString()),l}function sd(t){return t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")}function Cf(t){return t?sd(t)&&t.hasOwnProperty("realm")&&t.hasOwnProperty("target")&&(t.credentialType===Ie.ACCESS_TOKEN||t.credentialType===Ie.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function nk(t){return t?sd(t)&&t.hasOwnProperty("realm")&&t.credentialType===Ie.ID_TOKEN:!1}
213function Tf(t){return t?sd(t)&&t.credentialType===Ie.REFRESH_TOKEN:!1}function rk(t,e){const n=t.indexOf(ke.CACHE_KEY)===0;let r=!0;return e&&(r=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),n&&r}function ok(t,e){let n=!1;t&&(n=t.indexOf(To.THROTTLING_PREFIX)===0);let r=!0;return e&&(r=e.hasOwnProperty("throttleTime")),n&&r}function ik({environment:t,clientId:e}){return[Ou,t,e].join(Qo.CACHE_KEY_SEPARATOR).toLowerCase()}function ak(t,e){return e?t.indexOf(Ou)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function sk(t,e){return e?t.indexOf(Sa.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1}function Sf(){return We()+Sa.REFRESH_TIME_SECONDS}function Ni(t,e,n){t.authorization_endpoint=e.authorization_endpoint,t.token_endpoint=e.token_endpoint,t.end_session_endpoint=e.end_session_endpoint,t.issuer=e.issuer,t.endpointsFromNetwork=n,t.jwks_uri=e.jwks_uri}function sl(t,e,n){t.aliases=e.aliases,t.preferred_cache=e.preferred_cache,t.preferred_network=e.preferred_network,t.aliasesFromNetwork=n}function Af(t){return t.expiresAt<=We()}/*! @azure/msal-common v15.13.0 2025-09-24 */class Oe{constructor(e,n,r,o,i,a,l,c){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=n,this.cacheManager=r,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=l,this.correlationId=a,this.managedIdentity=c||!1,this.regionDiscovery=new ds(n,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(A.CIAM_AUTH_URL))return vt.Ciam;const n=e.PathSegments;if(n.length)switch(n[0].toLowerCase()){case A.ADFS:return vt.Adfs;case A.DSTS:return vt.Dsts}return vt.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new G(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw I(Ft)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw I(Ft)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw I(Ft)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw I(ty);return this.replacePath(this.metadata.end_session_endpoint)}else throw I(Ft)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw I(Ft)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw I(Ft)}canReplaceTenant(e){return e.PathSegments.length===1&&!Oe.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===vt.Default&&this.protocolMode!==Qe.OIDC}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let n=e;const o=new G(this.metadata.canonical_authority).getUrlComponents(),i=o.PathSegments;
213return this.canonicalAuthorityUrlComponents.PathSegments.forEach((l,c)=>{let d=i[c];if(c===0&&this.canReplaceTenant(o)){const p=new G(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];d!==p&&(this.logger.verbose(`Replacing tenant domain name ${d} with id ${p}`),d=p)}l!==d&&(n=n.replace(`/${d}/`,`/${l}/`))}),this.replaceTenant(n)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===vt.Adfs||this.protocolMode===Qe.OIDC&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){var o,i;(o=this.performanceClient)==null||o.addQueueMeasurement(C.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),n=await S(this.updateCloudDiscoveryMetadata.bind(this),C.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const r=await S(this.updateEndpointMetadata.bind(this),C.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,n,{source:r}),(i=this.performanceClient)==null||i.addFields({cloudDiscoverySource:n,authorityEndpointSource:r},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:Sf(),jwks_uri:""}),e}updateCachedMetadata(e,n,r){n!==Ye.CACHE&&(r==null?void 0:r.source)!==Ye.CACHE&&(e.expiresAt=Sf(),e.canonical_authority=this.canonicalAuthority);const o=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(o,e),this.metadata=e}async updateEndpointMetadata(e){var o,i,a;(o=this.performanceClient)==null||o.addQueueMeasurement(C.AuthorityUpdateEndpointMetadata,this.correlationId);const n=this.updateEndpointMetadataFromLocalSources(e);if(n){if(n.source===Ye.HARDCODED_VALUES&&(i=this.authorityOptions.azureRegionConfiguration)!=null&&i.azureRegion&&n.metadata){const l=await S(this.updateMetadataWithRegionalInformation.bind(this),C.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(n.metadata);Ni(e,l,!1),e.canonical_authority=this.canonicalAuthority}return n.source}let r=await S(this.getEndpointMetadataFromNetwork.bind(this),C.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return(a=this.authorityOptions.azureRegionConfiguration)!=null&&a.azureRegion&&(r=await S(this.updateMetadataWithRegionalInformation.bind(this),C.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r)),Ni(e,r,!0),Ye.NETWORK;throw I(zm,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const n=this.getEndpointMetadataFromConfig();if(n)return this.logger.verbose("Found endpoint metadata in authority configuration"),Ni(e,n,!1),{source:Ye.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const o=this.getEndpointMetadataFromHardcodedValues();if(o)return Ni(e,o,!1),{source:Ye.HARDCODED_VALUES,metadata:o};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const r=Af(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!r?(this.logger.verbose("Found endpoint metadata in the cache."),{source:Ye.CACHE}):(r&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new G(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw X(cy)}return null}async getEndpointMetadataFromNetwork(){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(C.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},n=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${n}`);try{const o=await this.networkInterface.sendGetRequestAsync(n,e);return JA(o.body)?o.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(o){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${o}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in gf?gf[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){var r,o,i;(r=this.performanceClient)==null||r.addQueueMeasurement(C.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const n=(o=this.authorityOptions.azureRegionConfiguration)==null?void 0:o.azureRegion;if(n){if(n!==A.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=il.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=n,Oe.replaceWithRegionalInformation(e,n);const a=await S(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),C.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)((i=this.authorityOptions.azureRegionConfiguration)==null?void 0:i.environmentRegion,this.regionDiscoveryMetadata);if(a)return this.regionDiscoveryMetadata.region_outcome=il.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=a,Oe.replaceWithRegionalInformation(e,a);this.regionDiscoveryMetadata.region_outcome=il.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(C.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const n=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(n)return n;const r=await S(this.getCloudDiscoveryMetadataFromNetwork.bind(this),C.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(r)return sl(e,r,!0),Ye.NETWORK;throw X(uy)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata  from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||A.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||A.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||A.NOT_APPLICABLE}`);const n=this.getCloudDiscoveryMetadataFromConfig();if(n)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),sl(e,n,!1),Ye.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const o=KS(this.hostnameAndPort);if(o)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),sl(e,o,!1),Ye.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const r=Af(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!r?(this.logger.verbose("Found cloud discovery metadata in the cache."),Ye.CACHE):(r&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===vt.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),Oe.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.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=Ia(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;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."),X(Gu)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),Oe.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(C.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${A.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,n={};let r=null;try{const i=await this.networkInterface.sendGetRequestAsync(e,n);let a,l;if(XA(i.body))a=i.body,l=a.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${a.tenant_discovery_endpoint}`);
213else if(ZA(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===A.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),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 []"),l=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),r=Ia(l,this.hostnameAndPort)}catch(i){if(i instanceof J)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
214Error: ${i.errorCode}
215Error Description: ${i.errorMessage}`);else{const a=i;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
216Error: ${a.name}
217Error Description: ${a.message}`)}return null}return r||(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."),r=Oe.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),r}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(n=>n&&G.getDomainFromUrl(n).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,n){let r;if(n&&n.azureCloudInstance!==zu.None){const o=n.tenant?n.tenant:A.DEFAULT_COMMON_TENANT;r=`${n.azureCloudInstance}/${o}/`}return r||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return A.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw I(Ft)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return wy.has(e)}static isPublicCloudAuthority(e){return A.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,n,r){const o=new G(e);o.validateAsUri();const i=o.getUrlComponents();let a=`${n}.${i.HostNameAndPort}`;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=`${n}.${A.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const l=G.constructAuthorityUriFromObject({...o.getUrlComponents(),HostNameAndPort:a}).urlString;return r?`${l}?${r}`:l}static replaceWithRegionalInformation(e,n){const r={...e};return r.authorization_endpoint=Oe.buildRegionalAuthorityString(r.authorization_endpoint,n),r.token_endpoint=Oe.buildRegionalAuthorityString(r.token_endpoint,n),r.end_session_endpoint&&(r.end_session_endpoint=Oe.buildRegionalAuthorityString(r.end_session_endpoint,n)),r}static transformCIAMAuthority(e){let n=e;const o=new G(e).getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(A.CIAM_AUTH_URL)){const i=o.HostNameAndPort.split(".")[0];n=`${n}${i}${A.AAD_TENANT_DOMAIN_SUFFIX}`}return n}}Oe.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Tn.COMMON,Tn.CONSUMERS,Tn.ORGANIZATIONS]);function lk(t){var o;const r=(o=new G(t).getUrlComponents().PathSegments.slice(-1)[0])==null?void 0:o.toLowerCase();switch(r){case Tn.COMMON:case Tn.ORGANIZATIONS:case Tn.CONSUMERS:return;default:return r}}function jy(t){return t.endsWith(A.FORWARD_SLASH)?t:`${t}${A.FORWARD_SLASH}`}function ck(t){const e=t.cloudDiscoveryMetadata;let n;if(e)try{n=JSON.parse(e)}catch{throw X(Gu)}return{canonicalAuthority:t.authority?jy(t.authority):void 0,knownAuthorities:t.knownAuthorities,cloudDiscoveryMetadata:n}}/*! @azure/msal-common v15.13.0 2025-09-24 */async function Hy(t,e,n,r,o,i,a){a==null||a.addQueueMeasurement(C.AuthorityFactoryCreateDiscoveredInstance,i);const l=Oe.transformCIAMAuthority(jy(t)),c=new Oe(l,e,n,r,o,i,a);try{return await S(c.resolveEndpointsAsync.bind(c),C.AuthorityResolveEndpointsAsync,o,a,i)(),c}catch{throw I(Ft)}}/*! @azure/msal-common v15.13.0 2025-09-24 */class rr extends J{constructor(e,n,r,o,i){super(e,n,r),this.name="ServerError",this.errorNo=o,this.status=i,Object.setPrototypeOf(this,rr.prototype)}}/*! @azure/msal-common v15.13.0 2025-09-24 */function ps(t,e,n){var r;return{clientId:t,authority:e.authority,scopes:e.scopes,homeAccountIdentifier:n,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,embeddedClientId:e.embeddedClientId||((r=e.tokenBodyParameters)==null?void 0:r.clientId)}}/*! @azure/msal-common v15.13.0 2025-09-24 */class Ot{static generateThrottlingStorageKey(e){return`${To.THROTTL
217ING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,n,r){var a;const o=Ot.generateThrottlingStorageKey(n),i=e.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){e.removeItem(o,r);return}throw new rr(((a=i.errorCodes)==null?void 0:a.join(" "))||A.EMPTY_STRING,i.errorMessage,i.subError)}}static postProcess(e,n,r,o){if(Ot.checkResponseStatus(r)||Ot.checkResponseForRetryAfter(r)){const i={throttleTime:Ot.calculateThrottleTime(parseInt(r.headers[je.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};e.setThrottlingCache(Ot.generateThrottlingStorageKey(n),i,o)}}static checkResponseStatus(e){return e.status===429||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(je.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const n=e<=0?0:e,r=Date.now()/1e3;return Math.floor(Math.min(r+(n||To.DEFAULT_THROTTLE_TIME_SECONDS),r+To.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,n,r,o){const i=ps(n,r,o),a=this.generateThrottlingStorageKey(i);e.removeItem(a,r.correlationId)}}/*! @azure/msal-common v15.13.0 2025-09-24 */class gs extends J{constructor(e,n,r){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,gs.prototype),this.name="NetworkError",this.error=e,this.httpStatus=n,this.responseHeaders=r}}function ho(t,e,n,r){return t.errorMessage=`${t.errorMessage}, additionalErrorInfo: error.name:${r==null?void 0:r.name}, error.message:${r==null?void 0:r.message}`,new gs(t,e,n)}/*! @azure/msal-common v15.13.0 2025-09-24 */class ld{constructor(e,n){this.config=ZS(e),this.logger=new Jt(this.config.loggerOptions,ny,Bu),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n}createTokenRequestHeaders(e){const n={};if(n[je.CONTENT_TYPE]=A.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case wt.HOME_ACCOUNT_ID:try{const r=Ir(e.credential);n[je.CCS_HEADER]=`Oid:${r.uid}@${r.utid}`}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case wt.UPN:n[je.CCS_HEADER]=`UPN: ${e.credential}`;break}return n}async executePostToTokenEndpoint(e,n,r,o,i,a){var c;a&&((c=this.performanceClient)==null||c.addQueueMeasurement(a,i));const l=await this.sendPostRequest(o,e,{body:n,headers:r},i);return this.config.serverTelemetryManager&&l.status<500&&l.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),l}async sendPostRequest(e,n,r,o){var a,l,c;Ot.preProcess(this.cacheManager,e,o);let i;try{i=await S(this.networkClient.sendPostRequestAsync.bind(this.networkClient),C.NetworkClientSendPostRequestAsync,this.logger,this.performanceClient,o)(n,r);const d=i.headers||{};(l=this.performanceClient)==null||l.addFields({refreshTokenSize:((a=i.body.refresh_token)==null?void 0:a.length)||0,httpVerToken:d[je.X_MS_HTTP_VERSION]||"",requestId:d[je.X_MS_REQUEST_ID]||""},o)}catch(d){if(d instanceof gs){const p=d.responseHeaders;throw p&&((c=this.performanceClient)==null||c.addFields({httpVerToken:p[je.X_MS_HTTP_VERSION]||"",requestId:p[je.X_MS_REQUEST_ID]||"",contentTypeHeader:p[je.CONTENT_TYPE]||void 0,contentLengthHeader:p[je.CONTENT_LENGTH]||void 0,httpStatus:d.httpStatus},o)),d.error}throw d instanceof J?d:I(Bm)}return Ot.postProcess(this.cacheManager,e,i,o),i}async updateAuthority(e,n){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(C.UpdateTokenEndpointAuthority,n);const r=`https://${e}/${this.authority.tenant}/`,o=await Hy(r,this.networkClient,this.cacheManager,this.authority.options,this.logger,n,this.performanceClient);this.authority=o}createTokenQueryParameters(e){const n=new Map;return e.embeddedClientId&&us(n,this.config.authOptions.clientId,this.config.authOptions.redirectUri),e.tokenQueryParameters&&An(n,e.tokenQueryParameters),nd(n,e.correlationId),cs(n,e.correlationId,this.performanceClient),Wo(n)}}/*! @azure/msal-common v15.13.0 2025-09-24 */function Fy(t){return t&&(t.tid||t.tfp||t.acr)||null}/*! @azure/msal-common v15.13.0 2025-09-24 */class kt{getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,loginHint:this.loginHint,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e])),dataBoundary:this.dataBoundary}}isSingleTenant(){return!this.tenantProfiles}static createAccount(e,n,r){var d,p,s,u,h,m,v;const o=new kt;n.authorityType===vt.Adfs?o.authorityType=Pi.ADFS_ACCOUNT_TYPE:n.protocolMode===Qe.OIDC?o.authorityType=Pi.GENERIC_ACCOUNT_TYPE:o.authorityType=Pi.MSSTS_ACCOUNT_TYPE;let i;e.clientInfo&&r&&(i=Pa(e.clientInfo,r),i.xms_tdbr&&(o.dataBoundary=i.xms_tdbr==="EU"?"EU":"None")),o.clientInfo=e.clientInfo,o.homeAccountId=e.homeAccountId,o.nativeAccountId=e.nativeAccountId;const a=e.environment||n&&n.getPreferredCache();if(!a)throw I(ju);o.environment=a,o.realm=(i==null?void 0:i.utid)||Fy(e.idTokenClaims)||"",o.localAccountId=(i==null?void 0:i.uid)||((d=e.idTokenClaims)==null?void 0:d.oid)||((p=e.idTokenClaims)==null?void 0:p.sub)||"";const l=((s=e.idTokenClaims)==null?void 0:s.preferred_username)||((u=e.idTokenClaims)==null?void 0:u.upn),c=(h=e.idTokenClaims)!=null&&h.emails?e.idTokenClaims.emails[0]:null;if(o.username=l||c||"",o.loginHint=(m=e.idTokenClaims)==null?void 0:m.login_hint,o.name=((v=e.idTokenClaims)==null?void 0:v.name)||"",o.cloudGraphHostName=e.cloudGraphHostName,o.msGraphHost=e.msGraphHost,e.tenantProfiles)o.tenantProfiles=e.tenantProfiles;else{const _=qu(e.homeAccountId,o.localAccountId,o.realm,e.idTokenClaims);o.tenantProfiles=[_]}return o}static createFromAccountInfo(e,n,r){var i;const o=new kt;
217return o.authorityType=e.authorityType||Pi.GENERIC_ACCOUNT_TYPE,o.homeAccountId=e.homeAccountId,o.localAccountId=e.localAccountId,o.nativeAccountId=e.nativeAccountId,o.realm=e.tenantId,o.environment=e.environment,o.username=e.username,o.name=e.name,o.loginHint=e.loginHint,o.cloudGraphHostName=n,o.msGraphHost=r,o.tenantProfiles=Array.from(((i=e.tenantProfiles)==null?void 0:i.values())||[]),o.dataBoundary=e.dataBoundary,o}static generateHomeAccountId(e,n,r,o,i){if(!(n===vt.Adfs||n===vt.Dsts)){if(e)try{const a=Pa(e,o.base64Decode);if(a.uid&&a.utid)return`${a.uid}.${a.utid}`}catch{}r.warning("No client info in response")}return(i==null?void 0:i.sub)||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,n,r){if(!e||!n)return!1;let o=!0;if(r){const i=e.idTokenClaims||{},a=n.idTokenClaims||{};o=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===n.homeAccountId&&e.localAccountId===n.localAccountId&&e.username===n.username&&e.tenantId===n.tenantId&&e.loginHint===n.loginHint&&e.environment===n.environment&&e.nativeAccountId===n.nativeAccountId&&o}}/*! @azure/msal-common v15.13.0 2025-09-24 */const Ma="no_tokens_found",By="native_account_unavailable",cd="refresh_token_expired",ud="ux_not_allowed",uk="interaction_required",dk="consent_required",hk="login_required",ms="bad_token";/*! @azure/msal-common v15.13.0 2025-09-24 */const kf=[uk,dk,hk,ms,ud],fk=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],pk={[Ma]:"No refresh token found in the cache. Please sign-in.",[By]:"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.",[cd]:"Refresh token has expired.",[ms]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve.",[ud]:"`c
217anShowUI` flag in Edge was set to false. User interaction required on web page. Please invoke an interactive API to resolve."};class Et extends J{constructor(e,n,r,o,i,a,l,c){super(e,n,r),Object.setPrototypeOf(this,Et.prototype),this.timestamp=o||A.EMPTY_STRING,this.traceId=i||A.EMPTY_STRING,this.correlationId=a||A.EMPTY_STRING,this.claims=l||A.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=c}}function zy(t,e,n){const r=!!t&&kf.indexOf(t)>-1,o=!!n&&fk.indexOf(n)>-1,i=!!e&&kf.some(a=>e.indexOf(a)>-1);return r||i||o}function La(t){return new Et(t,pk[t])}/*! @azure/msal-common v15.13.0 2025-09-24 */class Gr{static setRequestState(e,n,r){const o=Gr.generateLibraryState(e,r);return n?`${o}${A.RESOURCE_DELIM}${n}`:o}static generateLibraryState(e,n){if(!e)throw I(yc);const r={id:e.createNewGuid()};n&&(r.meta=n);const o=JSON.stringify(r);return e.base64Encode(o)}static parseRequestState(e,n){if(!e)throw I(yc);if(!n)throw I(Ur);try{const r=n.split(A.RESOURCE_DELIM),o=r[0],i=r.length>1?r.slice(1).join(A.RESOURCE_DELIM):A.EMPTY_STRING,a=e.base64Decode(o),l=JSON.parse(a);return{userRequestState:i||A.EMPTY_STRING,libraryState:l}}catch{throw I(Ur)}}}/*! @azure/msal-common v15.13.0 2025-09-24 */const gk={SW:"sw"};class jr{constructor(e,n){this.cryptoUtils=e,this.performanceClient=n}async generateCnf(e,n){var i;(i=this.performanceClient)==null||i.addQueueMeasurement(C.PopTokenGenerateCnf,e.correlationId);const r=await S(this.generateKid.bind(this),C.PopTokenGenerateCnf,n,this.performanceClient,e.correlationId)(e),o=this.cryptoUtils.base64UrlEncode(JSON.stringify(r));return{kid:r.kid,reqCnfString:o}}async generateKid(e){var r;return(r=this.performanceClient)==null||r.addQueueMeasurement(C.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:gk.SW}}async signPopToken(e,n,r){return this.signPayload(e,n,r)}async signPayload(e,n,r,o){const{resourceRequestMethod:i,resourceRequestUri:a,shrClaims:l,shrNonce:c,shrOptions:d}=r,p=a?new G(a):void 0,s=p==null?void 0:p.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:We(),m:i==null?void 0:i.toUpperCase(),u:s==null?void 0:s.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:s==null?void 0:s.AbsolutePath,q:s!=null&&s.QueryString?[[],s.QueryString]:void 0,client_claims:l||void 0,...o},n,d,r.correlationId)}}/*! @azure/msal-common v15.13.0 2025-09-24 */class mk{constructor(e,n){this.cache=e,this.hasChanged=n}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v15.13.0 2025-09-24 */class Jn{constructor(e,n,r,o,i,a,l){this.clientId=e,this.cacheStorage=n,this.cryptoObj=r,this.logger=o,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=l}validateTokenResponse(e,n){var r;if(e.error||e.error_description||e.suberror){const o=`Error(s): ${e.error_codes||A.NOT_AVAILABLE} - Timestamp: ${e.timestamp||A.NOT_AVAILABLE} - Description: ${e.error_description||A.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||A.NOT_AVAILABLE} - Trace ID: ${e.trace_id||A.NOT_AVAILABLE}`,i=(r=e.error_codes)!=null&&r.length?e.error_codes[0]:void 0,a=new rr(e.error,o,e.suberror,i,e.status);if(n&&e.status&&e.status>=hn.SERVER_ERROR_RANGE_START&&e.status<=hn.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.
218${a}`);return}else if(n&&e.status&&e.status>=hn.CLIENT_ERROR_RANGE_START&&e.status<=hn.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.
219${a}`);return}throw zy(e.error,e.error_description,e.suberror)?new Et(e.error,e.error_description,e.suberror,e.timestamp||A.EMPTY_STRING,e.trace_id||A.EMPTY_STRING,e.correlation_id||A.EMPTY_STRING,e.claims||A.EMPTY_STRING,i):a}}async handleServerTokenResponse(e,n,r,o,i,a,l,c,d){var m;(m=this.performanceClient)==null||m.addQueueMeasurement(C.HandleServerTokenResponse,e.correlation_id);let p;if(e.id_token){if(p=$r(e.id_token||A.EMPTY_STRING,this.cryptoObj.base64Decode),i&&i.nonce&&p.nonce!==i.nonce)throw I(Gm);if(o.maxAge||o.maxAge===0){const v=p.auth_time;if(!v)throw I(Du);yy(v,o.maxAge)}}this.homeAccountIdentifier=kt.generateHomeAccountId(e.client_info||A.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,p);let s;i&&i.state&&(s=Gr.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0;const u=this.generateCacheRecord(e,n,r,o,p,a,i);let h;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new mk(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(h)),l&&!c&&u.account){const v=this.cacheStorage.generateAccountKey(u.account.getAccountInfo());if(!this.cacheStorage.getAccount(v,o.correlationId))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Jn.generateAuthenticationResult(this.cryptoObj,n,u,!1,o,p,s,void 0,d)}await this.cacheStorage.saveCacheRecord(u,o.correlationId,o.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&h&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(h))}return Jn.generateAuthenticationResult(this.cryptoObj,n,u,!1,o,p,s,e,d)}generateCacheRecord(e,n,r,o,i,a,l){const c=n.getPreferredCache();if(!c)throw I(ju);const d=Fy(i);let p,s;e.id_token&&i&&(p=hs(this.homeAccountIdentifier,c,e.id_token,this.clientId,d||""),s=dd(this.cacheStorage,n,this.homeAccountIdentifier,this.cryptoObj.base64Decode,o.
219correlationId,i,e.client_info,c,d,l,void 0,this.logger));let u=null;if(e.access_token){const v=e.scope?_e.fromString(e.scope):new _e(o.scopes||[]),_=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,g=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,y=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,w=r+_,T=w+g,E=y&&y>0?r+y:void 0;u=fs(this.homeAccountIdentifier,c,e.access_token,this.clientId,d||n.tenant||"",v.printScopes(),w,T,this.cryptoObj.base64Decode,E,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}let h=null;if(e.refresh_token){let v;if(e.refresh_token_expires_in){const _=typeof e.refresh_token_expires_in=="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;v=r+_}h=Uy(this.homeAccountIdentifier,c,e.refresh_token,this.clientId,e.foci,a,v)}let m=null;return e.foci&&(m={clientId:this.clientId,environment:c,familyId:e.foci}),{account:s,idToken:p,accessToken:u,refreshToken:h,appMetadata:m}}static async generateAuthenticationResult(e,n,r,o,i,a,l,c,d){var w,T,E,R,N;let p=A.EMPTY_STRING,s=[],u=null,h,m,v=A.EMPTY_STRING;if(r.accessToken){if(r.accessToken.tokenType===q.POP&&!i.popKid){const O=new jr(e),{secret:U,keyId:H}=r.accessToken;if(!H)throw I(Hu);p=await O.signPopToken(U,H,i)}else p=r.accessToken.secret;s=_e.fromString(r.accessToken.target).asArray(),u=xr(r.accessToken.expiresOn),h=xr(r.accessToken.extendedExpiresOn),r.accessToken.refreshOn&&(m=xr(r.accessToken.refreshOn))}r.appMetadata&&(v=r.appMetadata.familyId===Ta?Ta:"");const _=(a==null?void 0:a.oid)||(a==null?void 0:a.sub)||"",g=(a==null?void 0:a.tid)||"";c!=null&&c.spa_accountid&&r.account&&(r.account.nativeAccountId=c==null?void 0:c.spa_accountid);const y=r.account?Qu(r.account.getAccountInfo(),void 0,a,(w=r.idToken)==null?void 0:w.secret):null;return{authority:n.canonicalAuthority,uniqueId:_,tenantId:g,scopes:s,account:y,idToken:((T=r==null?void 0:r.idToken)==null?void 0:T.secret)||"",idTokenClaims:a||{},accessToken:p,fromCache:o,expiresOn:u,extExpiresOn:h,refreshOn:m,correlationId:i.correlationId,requestId:d||A.EMPTY_STRING,familyId:v,tokenType:((E=r.accessToken)==null?void 0:E.tokenType)||A.EMPTY_STRING,state:l?l.userRequestState:A.EMPTY_STRING,cloudGraphHostName:((R=r.account)==null?void 0:R.cloudGraphHostName)||A.EMPTY_STRING,msGraphHost:((N=r.account)==null?void 0:N.msGraphHost)||A.EMPTY_STRING,code:c==null?void 0:c.spa_code,fromNativeBroker:!1}}}function dd(t,e,n,r,o,i,a,l,c,d,p,s){s==null||s.verbose("setCachedAccount called");const h=t.getAccountKeys().find(y=>y.startsWith(n));let m=null;h&&(m=t.getAccount(h,o));const v=m||kt.createAccount({homeAccountId:n,idTokenClaims:i,clientInfo:a,environment:l,cloudGraphHostName:d==null?void 0:d.cloud_graph_host_name,msGraphHost:d==null?void 0:d.msgraph_host,nativeAccountId:p},e,r),_=v.tenantProfiles||[],g=c||v.realm;if(g&&!_.find(y=>y.tenantId===g)){const y=qu(n,v.localAccountId,g,i);_.push(y)}return v.tenantProfiles=_,v}/*! @azure/msal-common v15.13.0 2025-09-24 */async function Ky(t,e,n){return typeof t=="string"?t:t({clientId:e,tokenEndpoint:n})}/*! @azure/msal-common v15.13.0 2025-09-24 */class $y extends ld{constructor(e,n){var r;super(e,n),this.includeRedirectUri=!0,this.oidcDefaultScopes=(r=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:r.defaultScopes}async acquireToken(e,n){var l,c;if((l=this.performanceClient)==null||l.addQueueMeasurement(C.AuthClientAcquireToken,e.correlationId),!e.code)throw I(Qm);const r=We(),o=await S(this.executeTokenRequest.bind(this),C.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),i=(c=o.headers)==null?void 0:c[je.X_MS_REQUEST_ID],a=new Jn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return a.validateTokenResponse(o.body),S(a.handleServerTokenResponse.bind(a),C.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,r,e,n,void 0,void 0,void 0,i)}getLogoutUri(e){if(!e)throw X(ly);const n=this.createLogoutUrlQueryString(e);return G.appendQueryString(this.authority.endSessionEndpoint,n)}async executeTokenRequest(e,n){var d;(d=this.performanceClient)==null||d.addQueueMeasurement(C.AuthClientExecuteTokenRequest,n.correlationId);const r=this.createTokenQueryParameters(n),o=G.appendQueryString(e.tokenEndpoint,r),i=await S(this.createTokenRequestBody.bind(this),C.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,n.correlationId)(n);let a;if(n.clientInfo)try{const p=Pa(n.clientInfo,this.cryptoUtils.base64Decode);a={credential:`${p.uid}${Qo.CLIENT_INFO_SEPARATOR}${p.utid}`,type:wt.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}const l=this.createTokenRequestHeaders(a||n.ccsCredential),c=ps(this.config.authOptions.clientId,n);return S(this.executePostToTokenEndpoint.bind(this),C.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,n.correlationId)(o,i,l,c,n.correlationId,C.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var o,i;(o=this.performanceClient)==null||o.addQueueMeasurement(C.AuthClientCreateTokenRequestBody,e.correlationId);const n=new Map;if(Zu(n,e.embeddedClientId||((i=e.tokenBodyParameters)==null?void 0:i[Yn])||this.config.authOptions.clientId),this.includeRedirectUri)ed(n,e.redirectUri);else if(!e.redirectUri)throw X(ry);if(Xu(n,e.scopes,!0,this.oidcDefaultScopes),$A(n,e.code),rd(n,this.config.libraryInfo),od(n,this.config.telemetry.application),Dy(n),this.serverTelemetryManager&&!Sy(this.config)&&Ly(n,this.serverTelemetryManager),e.codeVerifier&&VA(n,e.codeVerifier),this.config.clientCredentials.clientSecret&&Py(n,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const a=this.config.clientCredentials.clientAssertion;Ry(n,await Ky(a.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),Ny(n,a.assertionType)}if(by(n,Um.AUTHORIZATION_CODE_GRANT),id(n),e.authenticationScheme===q.POP){const a=new jr(this.cryptoUtils,this.performanceClient);let l;e.popKid?l=this.cryptoUtils.encodeKid(e.popKid):l=(await S(a.generateCnf.bind(a),C.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,ad(n,l)}else if(e.authenticationScheme===q.SSH)if(e.sshJwk)My(n,e.sshJwk);else throw X(ls);(!tt.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&td(n,e.claims,this.config.authOptions.clientCapabilities);let r;if(e.clientInfo)try{const a=Pa(e.clientInfo,this.cryptoUtils.base64Decode);r={credential:`${a.uid}${Qo.CLIENT_INFO_SEPARATOR}${a.utid}`,type:wt.HOME_ACCOUNT_ID}}catch(a){this.logger.verbose("Could not parse client info for CCS Header: "+a)}else r=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&r)switch(r.type){case wt.HOME_ACCOUNT_ID:try{const a=Ir(r.credential);So(n,a)}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}break;case wt.UPN:ba(n,r.credential);break}return e.embeddedClientId&&us(n,this.config.authOptions.clientId,this.config.authOptions.redirectUri),e.tokenBodyParameters&&An(n,e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[vf])&&An(n,{[vf]:"1"}),cs(n,e.correlationId,this.performanceClient),Wo(n)}createLogoutUrlQueryString(e){const n=new Map;return e.postLogoutRedirectUri&&HA(n,e.postLogoutRedirectUri),e.correlationId&&nd(n,e.correlationId),e.idTokenHint&&FA(n,e.idTokenHint),e.state&&Iy(n,e.state),e.logoutHint&&QA(n,e.logoutHint),e.extraQueryParameters&&An(n,e.extraQueryParameters),this.config.authOptions.instanceAware&&Oy(n),Wo(n,this.config.authOptions.encodeExtraQueryParams,e.extraQueryParameters)}}/*! @azure/msal-common v15.13.0 2025-09-24 */const yk=300;class vk extends ld{constructor(e,n){super(e,n)}async acquireToken(e){var a,l;(a=this.performanceClient)==null||a.addQueueMeasurement(C.RefreshTokenClientAcquireToken,e.correlationId);const n=We(),r=await S(this.executeTokenRequest.bind(this),C.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),o=(l=r.headers)==null?void 0:l[je.X_MS_REQUEST_ID],i=new Jn(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(r.body),S(i.handleServerTokenResponse.bind(i),C.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(r.body,this.authority,n,e,void 0,void 0,!0,e.forceCache,o)}async acquireTokenByRefreshToken(e){var r;if(!e)throw X(sy);if((r=this.performanceClient)==null||r.addQueueMeasurement(C.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw I(Uu);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await S(this.acquireTokenWithCachedRefreshToken.bind(this),C.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(o){const i=o instanceof Et&&o.errorCode===Ma,a=o instanceof rr&&o.errorCode===cf.INVALID_GRANT_ERROR&&o.subError===cf.CLIENT_MISMATCH_ERROR;if(i||a)return S(this.acquireTokenWithCachedRefreshToken.bind(this),C.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw o}return S(this.acquireTokenWithCachedRefreshToken.bind(this),C.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,n){var i,a,l;(i=this.performanceClient)==null||i.addQueueMeasurement(C.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const r=nt(this.cacheManager.getRefreshToken.bind(this.cacheManager),C.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,n,e.correlationId,void 0,this.performanceClient);if(!r)throw La(Ma);if(r.expiresOn&&Oa(r.expiresOn,e.refreshTokenExpirationOffsetSeconds||yk))throw(a=this.performanceClient)==null||a.addFields({rtExpiresOnMs:Number(r.expiresOn)},e.correlationId),La(cd);const o={...e,refreshToken:r.secret,authenticationScheme:e.authenticationScheme||q.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:wt.HOME_ACCOUNT_ID}};try{return await S(this.acquireToken.bind(this),C.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(o)}catch(c){if(c instanceof Et&&((l=this.performanceClient)==null||l.addFields({rtExpiresOnMs:Number(r.expiresOn)},e.correlationId),c.subError===ms)){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const d=this.cacheManager.generateCredentialKey(r);this.cacheManager.removeRefreshToken(d,e.correlationId)}throw c}}async executeTokenRequest(e,n){var c;(c=this.performanceClient)==null||c.addQueueMeasurement(C.RefreshTokenClientExecuteTokenRequest,e.correlationId);const r=this.createTokenQueryParameters(e),o=G.appendQueryString(n.tokenEndpoint,r),i=await S(this.createTokenRequestBody.bind(this),C.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),a=this.createTokenRequestHeaders(e.ccsCredential),l=ps(this.config.authOptions.clientId,e);return S(this.executePostToTokenEndpoint.bind(this),C.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(o,i,a,l,e.correlationId,C.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var r,o,i;(r=this.performanceClient)==null||r.addQueueMeasurement(C.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const n=new Map;if(Zu(n,e.embeddedClientId||((o=e.tokenBodyParameters)==null?void 0:o[Yn])||this.config.authOptions.clientId),e.redirectUri&&ed(n,e.redirectUri),Xu(n,e.scopes,!0,(i=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:i.defaultScopes),by(n,Um.REFRESH_TOKEN_GRANT),id(n),rd(n,this.config.libraryInfo),od(n,this.config.telemetry.application),Dy(n),this.serverTelemetryManager&&!Sy(this.config)&&Ly(n,this.serverTelemetryManager),GA(n,e.refreshToken),this.config.clientCredentials.clientSecret&&Py(n,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const a=this.config.clientCredentials.clientAssertion;Ry(n,await Ky(a.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),Ny(n,a.assertionType)}if(e.authenticationScheme===q.POP){const a=new jr(this.cryptoUtils,this.performanceClient);let l;e.popKid?l=this.cryptoUtils.encodeKid(e.popKid):l=(await S(a.generateCnf.bind(a),C.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,ad(n,l)}else if(e.authenticationScheme===q.SSH)if(e.sshJwk)My(n,e.sshJwk);else throw X(ls);if((!tt.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&td(n,e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case wt.HOME_ACCOUNT_ID:try{const a=Ir(e.ccsCredential.credential);So(n,a)}catch(a){this.logger.verbose("Could not parse home account ID for CCS Header: "+a)}break;case wt.UPN:ba(n,e.ccsCredential.credential);break}return e.embeddedClientId&&us(n,this.config.authOptions.clientId,this.config.authOptions.redirectUri),e.tokenBodyParameters&&An(n,e.tokenBodyParameters),cs(n,e.correlationId,this.performanceClient),Wo(n)}}/*! @azure/msal-common v15.13.0 2025-09-24 */class _k extends ld{constructor(e,n){super(e,n)}async acquireCachedToken(e){var c;(c=this.performanceClient)==null||c.addQueueMeasurement(C.SilentFlowClientAcquireCachedToken,e.correlationId);let n=Un.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!tt.isEmptyObj(e.claims))throw this.setCacheOutcome(Un.FORCE_REFRESH_OR_CLAIMS,e.correlationId),I(Sn);if(!e.account)throw I(Uu);const r=e.account.tenantId||lk(e.authority),o=this.cacheManager.getTokenKeys(),i=this.cacheManager.getAccessToken(e.account,e,o,r);if(i){if(tk(i.cachedAt)||Oa(i.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(Un.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),I(Sn);i.refreshOn&&Oa(i.refreshOn,0)&&(n=Un.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(Un.NO_CACHED_ACCESS_TOKEN,e.correlationId),I(Sn);const a=e.authority||this.authority.getPreferredCache(),l={account:this.cacheManager.getAccount(this.cacheManager.generateAccountKey(e.account),e.correlationId),accessToken:i,idToken:this.cacheManager.getIdToken(e.account,e.correlationId,o,r,this.performanceClient),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCac
219he(a)};return this.setCacheOutcome(n,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await S(this.generateResultFromCacheRecord.bind(this),C.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(l,e),n]}setCacheOutcome(e,n){var r,o;(r=this.serverTelemetryManager)==null||r.setCacheOutcome(e),(o=this.performanceClient)==null||o.addFields({cacheOutcome:e},n),e!==Un.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,n){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(C.SilentFlowClientGenerateResultFromCacheRecord,n.correlationId);let r;if(e.idToken&&(r=$r(e.idToken.secret,this.config.cryptoInterface.base64Decode)),n.maxAge||n.maxAge===0){const i=r==null?void 0:r.auth_time;if(!i)throw I(Du);yy(i,n.maxAge)}return Jn.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,n,r)}}/*! @azure/msal-common v15.13.0 2025-09-24 */const wk={sendGetRequestAsync:()=>Promise.reject(I(B)),sendPostRequestAsync:()=>Promise.reject(I(B))};/*! @azure/msal-common v15.13.0 2025-09-24 */function Ck(t,e,n,r){var l,c;const o=e.correlationId,i=new Map;Zu(i,e.embeddedClientId||((l=e.extraQueryParameters)==null?void 0:l[Yn])||t.clientId);const a=[...e.scopes||[],...e.extraScopesToConsent||[]];if(Xu(i,a,!0,(c=t.authority.options.OIDCOptions)==null?void 0:c.defaultScopes),ed(i,e.redirectUri),nd(i,o),UA(i,e.responseMode),id(i),e.prompt&&(zA(i,e.prompt),r==null||r.addFields({prompt:e.prompt},o)),e.domainHint&&(BA(i,e.domainHint),r==null||r.addFields({domainHintFromRequest:!0},o)),e.prompt!==xe.SELECT_ACCOUNT)if(e.sid&&e.prompt===xe.NONE)n.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),_f(i,e.sid),r==null||r.addFields({sidFromRequest:!0},o);else if(e.account){const d=Ak(e.account);let p=kk(e.account);if(p&&e.domainHint&&(n.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),p=null),p){n.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),Ri(i,p),r==null||r.addFields({loginHintFromClaim:!0},o);try{const s=Ir(e.account.homeAccountId);So(i,s)}catch{n.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(d&&e.prompt===xe.NONE){n.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),_f(i,d),r==null||r.addFields({sidFromClaim:!0},o);try{const s=Ir(e.account.homeAccountId);So(i,s)}catch{n.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)n.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),Ri(i,e.loginHint),ba(i,e.loginHint),r==null||r.addFields({loginHintFromRequest:!0},o);else if(e.account.username){n.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),Ri(i,e.account.username),r==null||r.addFields({loginHintFromUpn:!0},o);try{const s=Ir(e.account.homeAccountId);So(i,s)}catch{n.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(n.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),Ri(i,e.loginHint),ba(i,e.loginHint),r==null||r.addFields({loginHintFromRequest:!0},o));else n.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&KA(i,e.nonce),e.state&&Iy(i,e.state),(e.claims||t.clientCapabilities&&t.clientCapabilities.length>0)&&td(i,e.claims,t.clientCapabilities),e.embeddedClientId&&us(i,t.clientId,t.redirectUri),t.instanceAware&&(!e.extraQueryParameters||!Object.keys(e.extraQueryParameters).includes(wc))&&Oy(i),i}function hd(t,e,n,r){const o=Wo(e,n,r);return G.appendQueryString(t.authorizationEndpoint,o)}function Tk(t,e){if(Gy(t,e),!t.code)throw I(Zm);return t}function Gy(t,e){if(!t.state||!e)throw t.state?I(pc,"Cached State"):I(pc,"Server State");let n,r;try{n=decodeURIComponent(t.state)}catch{throw I(Ur,t.state)}try{r=decodeURIComponent(e)}catch{throw I(Ur,t.state)}if(n!==r)throw I($m);if(t.error||t.error_description||t.suberror){const o=Sk(t);throw zy(t.error,t.error_description,t.suberror)?new Et(t.error||"",t.error_description,t.suberror,t.timestamp||"",t.trace_id||"",t.correlation_id||"",t.claims||"",o):new rr(t.error||"",t.error_description,t.suberror,o)}}function Sk(t){var r,o;
219const e="code=",n=(r=t.error_uri)==null?void 0:r.lastIndexOf(e);return n&&n>=0?(o=t.error_uri)==null?void 0:o.substring(n+e.length):void 0}function Ak(t){var e;return((e=t.idTokenClaims)==null?void 0:e.sid)||null}function kk(t){var e;return t.loginHint||((e=t.idTokenClaims)==null?void 0:e.login_hint)||null}/*! @azure/msal-common v15.13.0 2025-09-24 */const Ef=",",Vy="|";function Ek(t){const{skus:e,libraryName:n,libraryVersion:r,extensionName:o,extensionVersion:i}=t,a=new Map([[0,[n,r]],[2,[o,i]]]);let l=[];if(e!=null&&e.length){if(l=e.split(Ef),l.length<4)return e}else l=Array.from({length:4},()=>Vy);return a.forEach((c,d)=>{var p,s;c.length===2&&((p=c[0])!=null&&p.length)&&((s=c[1])!=null&&s.length)&&Ik({skuArr:l,index:d,skuName:c[0],skuVersion:c[1]})}),l.join(Ef)}function Ik(t){const{skuArr:e,index:n,skuName:r,skuVersion:o}=t;n>=e.length||(e[n]=[r,o].join(Vy))}class Yo{constructor(e,n){this.cacheOutcome=Un.NOT_APPLICABLE,this.cacheManager=n,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||A.EMPTY_STRING,this.wrapperVer=e.wrapperVer||A.EMPTY_STRING,this.telemetryCacheKey=ke.CACHE_KEY+Qo.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${ke.VALUE_SEPARATOR}${this.cacheOutcome}`,n=[this.wrapperSKU,this.wrapperVer],r=this.getNativeBrokerErrorCode();r!=null&&r.length&&n.push(`broker_error=${r}`);const o=n.join(ke.VALUE_SEPARATOR),i=this.getRegionDiscoveryFields(),a=[e,i].join(ke.VALUE_SEPARATOR);return[ke.SCHEMA_VERSION,a,o].join(ke.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),n=Yo.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*n).join(ke.VALUE_SEPARATOR),o=e.errors.slice(0,n).join(ke.VALUE_SEPARATOR),i=e.errors.length,a=n<i?ke.OVERFLOW_TRUE:ke.OVERFLOW_FALSE,l=[i,a].join(ke.VALUE_SEPARATOR);return[ke.SCHEMA_VERSION,e.cacheHits,r,o,l].join(ke.CATEGORY_SEPARATOR)}cacheFailedRequest(e){const n=this.getLastRequests();n.errors.length>=ke.MAX_CACHED_ERRORS&&(n.failedRequests.shift(),n.failedRequests.shift(),n.errors.shift()),n.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof J?e.subError?n.errors.push(e.subError):e.errorCode?n.errors.push(e.errorCode):n.errors.push(e.toString()):n.errors.push(e.toString()):n.errors.push(ke.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n,this.correlationId)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),n=Yo.maxErrorsToSend(e),r=e.errors.length;if(n===r)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{const o={failedRequests:e.failedRequests.slice(n*2),errors:e.errors.slice(n),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o,this.correlationId)}}static maxErrorsToSend(e){let n,r=0,o=0;const i=e.errors.length;for(n=0;n<i;n++){const a=e.failedRequests[2*n]||A.EMPTY_STRING,l=e.failedRequests[2*n+1]||A.EMPTY_STRING,c=e.errors[n]||A.EMPTY_STRING;if(o+=a.toString().length+l.toString().length+c.length+3,o<ke.MAX_LAST_HEADER_BYTES)r+=1;else break}return r}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||A.EMPTY_STRING),e.push(this.regionSource||A.EMPTY_STRING),e.push(this.regionOutcome||A.EMPTY_STRING),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const n=this.getLastRequests();n.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId)}static makeExtraSkuString(e){return Ek(e)}}/*! @azure/msal-common v15.13.0 2025-09-24 */const qy="missing_kid_error",Qy="missing_alg_error";/*! @azure/msal-common v15.13.0 2025-09-24 */const xk={[qy]:"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.",[Qy]:"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."};class fd extends J{constructor(e,n){super(e,n),this.name="JoseHeaderError",Object.setPrototypeOf(this,fd.prototype)}}function If(t){return new fd(t,xk[t])}/*! @azure/msal-common v15.13.0 2025-09-24 */class pd{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw If(qy);if(!e.alg)throw If(Qy);const n=new pd({typ:e.typ||CS.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(n)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */const gd="pkce_not_created",md="ear_jwk_empty",Wy="ear_jwe_empty",Cc="crypto_nonexistent",ys="empty_navigate_uri",Yy="hash_empty_error",yd="no_state_in_hash",Jy="hash_does_not_contain_known_properties",Xy="unable_to_parse_state",Zy="state_interaction_type_mismatch",ev="interaction_in_progress",tv="popup_window_error",nv="empty_window_error",Jo="user_cancelled",Pk="monitor_popup_timeout",rv="monitor_window_timeout",ov="redirect_in_iframe",iv="block_iframe_reload",av="block_nested_popups",Rk="iframe_closed_prematurely",vs="silent_logout_unsupported",sv="no_account_error",Nk="silent_prompt_value_error",lv="no_token_request_cache_error",cv="unable_to_parse_token_request_cache_error",bk="auth_request_not_set_error",Ok="invalid_cache_type",_s="non_browser_environment",ar="database_not_open",Da="no_network_connectivity",uv="post_request_failed",dv="get_request_failed",Tc="failed_to_parse_response",hv="unable_to_load_token",vd="crypto_key_not_found",fv="auth_code_required",pv="auth_code_or_nativeAccountId_required",gv="spa_code_and_nativeAccountId_present",_d="database_unavailable",mv="unable_to_acquire_token_from_native_platform",yv="native_handshake_timeout",vv="native_extension_not_installed",wd="native_connection_not_established",Ao="uninitialized_public_client_application",_v="native_prompt_not_supported",wv="invalid_base64_string",Cv="invalid_pop_token_request",Tv="failed_to_build_headers",Sv="failed_to_parse_headers",Qi="failed_to_decrypt_ear_response",Ua="timed_out";/*! @azure/msal-browser v4.24.1 2025-09-30 */const jt="For more visit: aka.ms/msaljs/browser-errors",Mk={[gd]:"The PKCE code challenge and verifier could not be generated.",[md]:"No EAR encryption key provided. This is unexpected.",[Wy]:"Server response does not contain ear_jwe property. This is unexpected.",[Cc]:"The crypto object or function is not available.",[ys]:"Navigation URI is empty. Please check stack trace for more info.",[Yy]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${jt}`,[yd]:"Hash does not contain state. Please verify that the request originated from msal.",[Jy]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash.  ${jt}`,[Xy]:"Unable to parse state. Please verify that the request originated from msal.",[Zy]:"Hash contains state but the interaction type does not match the caller.",[ev]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.   ${jt}`,[tv]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[nv]:"window.open returned null or undefined window object.",[Jo]:"User cancelled the flow.",[Pk]:`Token acquisition in popup failed due to timeout.  ${jt}`,[rv]:`Token acquisition in iframe failed due to timeout.  ${jt}
219`,[ov]:"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.",[iv]:`Request was blocked inside an iframe because MSAL detected an authentication response.  ${jt}`,[av]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[Rk]:"The iframe being monitored was closed prematurely.",[vs]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[sv]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[Nk]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[lv]:"No token request found in cache.",[cv]:"The cached token request could not be parsed.",[bk]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[Ok]:"Invalid cache type",[_s]:"Login and token requests are not supported in non-browser environments.",[ar]:"Database is not open!",[Da]:"No network connectivity. Check your internet connection.",[uv]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[dv]:"Network request failed. Please check the network trace to determine root cause.",[Tc]:"Failed to parse network response. Check network trace.",[hv]:"Error loading token to cache.",[vd]:"Cryptographic Key or Keypair not found in browser storage.",[fv]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[pv]:"An authorization code or nativeAccountId must be provided to this flow.",[gv]:"Request cannot contain both spa code and native account id.",[_d]:"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.",[mv]:`Unable to acquire token from native platform.  ${jt}`,[yv]:"Timed out while attempting to establish connection to browser extension",[vv]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[wd]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize().  ${jt}`,[Ao]:`You must call and await the initialize function before attempting to call any other MSAL API.  ${jt}`,[_v]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[wv]:"Invalid base64 encoded string.",[Cv]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[Tv]:"Failed to build request headers object.",[Sv]:"Failed to parse response headers",[Qi]:"Failed to decrypt ear response",[Ua]:"The request timed out."};class si extends J{constructor(e,n){super(e,Mk[e],n),Object.setPrototypeOf(this,si.prototype),this.name="BrowserAuthError"}}function b(t,e){return new si(t,e)}/*! @azure/msal-browser v4.24.1 2025-09-30 */const Ke={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"},ct={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS",MICROSOFT_ENTRA_BROKERID:"MicrosoftEntra",DOM_API_NAME:"DOM API",PLATFORM_DOM_APIS:"get-token-and-sign-out",PLATFORM_DOM_PROVIDER:"PlatformAuthDOMHandler",PLATFORM_EXTENSION_PROVIDER:"PlatformAuthExtensionHandler"},oo={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},we={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},xf={GET:"GET",POST:"POST"},ln={SIGNIN:"signin",SIGNOUT:"signout"},he={ORIGIN_URI:"request.origin",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",VERIFIER:"code.verifier",INTERACTION_STATUS_KEY:"interaction.status",NATIVE_REQUEST:"request.native"},bi={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},Y={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var D;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(D||(D={}));const me={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},Pf={scopes:Kr},Av="jwk",Lk={React:"@azure/msal-react"},Sc="msal.db",Dk=1,Uk=`${Sc}.keys`,De={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},jk=[De.Default,De.Skip,De.RefreshTokenAndNetwork];/*! @azure/msal-browser v4.24.1 2025-09-30 */function Oi(t){return encodeURIComponent(Xo(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function xn(t){return kv(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Xo(t){return kv(new TextEncoder().encode(t))}function kv(t){const e=Array.from(t,n=>String.fromCodePoint(n)).join("");return btoa(e)}/*! @azure/msal-browser v4.24.1 2025-09-30 */function St(t){return new TextDecoder().decode(kn(t))}function kn(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw b(wv)}const n=atob(e);return Uint8Array.from(n,r=>r.codePointAt(0)||0)}/*! @azure/msal-browser v4.24.1 2025-09-30 */const Hk="RSASSA-PKCS1-v1_5",Vr="AES-GCM",Ev="HKDF",Cd="SHA-256",Fk=2048,Bk=new Uint8Array([1,0,1]),Rf="
2190123456789abcdef",Nf=new Uint32Array(1),Td="raw",Iv="encrypt",Sd="decrypt",zk="deriveKey",Kk="crypto_subtle_undefined",Ad={name:Hk,hash:Cd,modulusLength:Fk,publicExponent:Bk};function $k(t){if(!window)throw b(_s);if(!window.crypto)throw b(Cc);if(!t&&!window.crypto.subtle)throw b(Cc,Kk)}async function xv(t,e,n){e==null||e.addQueueMeasurement(C.Sha256Digest,n);const o=new TextEncoder().encode(t);return window.crypto.subtle.digest(Cd,o)}function Gk(t){return window.crypto.getRandomValues(t)}function ll(){return window.crypto.getRandomValues(Nf),Nf[0]}function It(){const t=Date.now(),e=ll()*1024+(ll()&1023),n=new Uint8Array(16),r=Math.trunc(e/2**30),o=e&2**30-1,i=ll();n[0]=t/2**40,n[1]=t/2**32,n[2]=t/2**24,n[3]=t/2**16,n[4]=t/2**8,n[5]=t,n[6]=112|r>>>8,n[7]=r,n[8]=128|o>>>24,n[9]=o>>>16,n[10]=o>>>8,n[11]=o,n[12]=i>>>24,n[13]=i>>>16,n[14]=i>>>8,n[15]=i;let a="";for(let l=0;l<n.length;l++)a+=Rf.charAt(n[l]>>>4),a+=Rf.charAt(n[l]&15),(l===3||l===5||l===7||l===9)&&(a+="-");return a}async function Vk(t,e){return window.crypto.subtle.generateKey(Ad,t,e)}async function cl(t){return window.crypto.subtle.exportKey(Av,t)}async function qk(t,e,n){return window.crypto.subtle.importKey(Av,t,Ad,e,n)}async function Qk(t,e){return window.crypto.subtle.sign(Ad,t,e)}async function kd(){const t=await Pv(),n={alg:"dir",kty:"oct",k:xn(new Uint8Array(t))};return Xo(JSON.stringify(n))}async function Wk(t){const e=St(t),r=JSON.parse(e).k,o=kn(r);return window.crypto.subtle.importKey(Td,o,Vr,!1,[Sd])}async function Yk(t,e){const n=e.split(".");if(n.length!==5)throw b(Qi,"jwe_length");const r=await Wk(t).catch(()=>{throw b(Qi,"import_key")});try{const o=new TextEncoder().encode(n[0]),i=kn(n[2]),a=kn(n[3]),l=kn(n[4]),c=l.byteLength*8,d=new Uint8Array(a.length+l.length);d.set(a),d.set(l,a.length);const p=await window.crypto.subtle.decrypt({name:Vr,iv:i,tagLength:c,additionalData:o},r,d);return new TextDecoder().decode(p)}catch{throw b(Qi,"decrypt")}}async function Pv(){const t=await window.crypto.subtle.generateKey({name:Vr,length:256},!0,[Iv,Sd]);return window.crypto.subtle.exportKey(Td,t)}async function bf(t){return window.crypto.subtle.importKey(Td,t,Ev,!1,[zk])}async function Rv(t,e,n){return window.crypto.subtle.deriveKey({name:Ev,salt:e,hash:Cd,info:new TextEncoder().encode(n)},t,{name:Vr,length:256},!1,[Iv,Sd])}async function Jk(t,e,n){const r=new TextEncoder().encode(e),o=window.crypto.getRandomValues(new Uint8Array(16)),i=await Rv(t,o,n),a=await window.crypto.subtle.encrypt({name:Vr,iv:new Uint8Array(12)},i,r);return{data:xn(new Uint8Array(a)),nonce:xn(o)}}async function Of(t,e,n,r){const o=kn(r),i=await Rv(t,kn(e),n),a=await window.crypto.subtle.decrypt({name:Vr,iv:new Uint8Array(12)},i,o);return new TextDecoder().decode(a)}async function Nv(t){const e=await xv(t),n=new Uint8Array(e);return xn(n)}/*! @azure/msal-browser v4.24.1 2025-09-30 */const ws="storage_not_supported",ge="stubbed_public_client_application_called",Ed="in_mem_redirect_unavailable";/*! @azure/msal-browser v4.24.1 2025-09-30 */const Wi={[ws]:"Given storage configuration option was not supported.",[ge]:"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",[Ed]:"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."};Wi[ws],Wi[ge],Wi[Ed];class Id extends J{constructor(e,n){super(e,n),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,Id.prototype)}}function de(t){return new Id(t,Wi[t])}/*! @azure/msal-browser v4.24.1 2025-09-30 */function bv(t){t.location.hash="",typeof t.history.replaceState=="function"&&t.history.replaceState(null,"",`${t.location.origin}${t.location.pathname}${t.location.search}`)}function Xk(t){const e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function xd(){return window.parent!==window}function Zk(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${Ke.POPUP_NAME_PREFIX}.`)===0}function Gt(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function eE(){const e=new G(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function tE(){if(G.hashContainsKnownProperties(window.location.hash)&&xd())throw b(iv)}function nE(t){if(xd()&&!t)throw b(ov)}function rE(){if(Zk())throw b(av)}function Ov(){if(typeof window>"u")throw b(_s)}function Mv(t){if(!t)throw b(Ao)}function Pd(t){Ov(),tE(),rE(),Mv(t)}function Mf(t,e){if(Pd(t),nE(e.system.allowRedirectInIframe),e.cache.cac
219heLocation===we.MemoryStorage&&!e.cache.storeAuthStateInCookie)throw de(Ed)}function Lv(t){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(t).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}function oE(){return It()}/*! @azure/msal-browser v4.24.1 2025-09-30 */class ja{navigateInternal(e,n){return ja.defaultNavigateWindow(e,n)}navigateExternal(e,n){return ja.defaultNavigateWindow(e,n)}static defaultNavigateWindow(e,n){return n.noHistory?window.location.replace(e):window.location.assign(e),new Promise((r,o)=>{setTimeout(()=>{o(b(Ua,"failed_to_redirect"))},n.timeout)})}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class iE{async sendGetRequestAsync(e,n){let r,o={},i=0;const a=Lf(n);try{r=await fetch(e,{method:xf.GET,headers:a})}catch(l){throw ho(b(window.navigator.onLine?dv:Da),void 0,void 0,l)}o=Df(r.headers);try{return i=r.status,{headers:o,body:await r.json(),status:i}}catch(l){throw ho(b(Tc),i,o,l)}}async sendPostRequestAsync(e,n){const r=n&&n.body||"",o=Lf(n);let i,a=0,l={};try{i=await fetch(e,{method:xf.POST,headers:o,body:r})}catch(c){throw ho(b(window.navigator.onLine?uv:Da),void 0,void 0,c)}l=Df(i.headers);try{return a=i.status,{headers:l,body:await i.json(),status:a}}catch(c){throw ho(b(Tc),a,l,c)}}}function Lf(t){try{const e=new Headers;if(!(t&&t.headers))return e;const n=t.headers;return Object.entries(n).forEach(([r,o])=>{e.append(r,o)}),e}catch(e){throw ho(b(Tv),void 0,void 0,e)}}function Df(t){try{const e={};return t.forEach((n,r)=>{e[r]=n}),e}catch{throw b(Sv)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */const aE=6e4,Ac=1e4,sE=3e4,Dv=2e3;function lE({auth:t,cache:e,system:n,telemetry:r},o){const i={clientId:A.EMPTY_STRING,authority:`${A.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:A.EMPTY_STRING,authorityMetadata:A.EMPTY_STRING,redirectUri:typeof window<"u"?Gt():"",postLogoutRedirectUri:A.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Qe.AAD,OIDCOptions:{serverResponseType:ss.FRAGMENT,defaultScopes:[A.OPENID_SCOPE,A.PROFILE_SCOPE,A.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:zu.None,tenant:A.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1,encodeExtraQueryParams:!1},a={cacheLocation:we.SessionStorage,cacheRetentionDays:5,temporaryCacheLocation:we.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===we.LocalStorage),claimsBasedCachingEnabled:!1},l={loggerCallback:()=>{},logLevel:W.Info,piiLoggingEnabled:!1},d={...{...Ty,loggerOptions:l,networkClient:o?new iE:wk,navigationClient:new ja,loadFrameTimeout:0,windowHashTimeout:(n==null?void 0:n.loadFrameTimeout)||aE,iframeHashTimeout:(n==null?void 0:n.loadFrameTimeout)||Ac,navigateFrameWait:0,redirectNavigationTimeout:sE,asyncPopups:!1,allowRedirectInIframe:!1,allowPlatformBroker:!1,nativeBrokerHandshakeTimeout:(n==null?void 0:n.nativeBrokerHandshakeTimeout)||Dv,pollIntervalMilliseconds:Ke.DEFAULT_POLL_INTERVAL_MS},...n,loggerOptions:(n==null?void 0:n.loggerOptions)||l},p={application:{appName:A.EMPTY_STRING,appVersion:A.EMPTY_STRING},client:new Cy};if((t==null?void 0:t.protocolMode)!==Qe.OIDC&&(t!=null&&t.OIDCOptions)&&new Jt(d.loggerOptions).warning(JSON.stringify(X(hy))),t!=null&&t.protocolMode&&t.protocolMode===Qe.OIDC&&(d!=null&&d.allowPlatformBroker))throw X(fy);return{auth:{...i,...t,OIDCOptions:{...i.OIDCOptions,...t==null?void 0:t.OIDCOptions}},cache:{...a,...e},system:d,telemetry:{...p,...r}}}/*! @azure/msal-browser v4.24.1 2025-09-30 */const cE="@azure/msal-browser",Xn="4.24.1";/*! @azure/msal-browser v4.24.1 2025-09-30 */const Ce="msal",Rd="browser",ul="-",nn=1,kc=1,uE=`${Ce}.${Rd}.log.level`,dE=`${Ce}.${Rd}.log.pii`,hE=`${Ce}.${Rd}.platform.auth.dom`,Uf=`${Ce}.version`,jf="account.keys",Hf="token.keys";function Nt(t=kc){return t<1?`${Ce}.${jf}`:`${Ce}.${t}.${jf}`}function zn(t,e=nn){return e<1?`${Ce}.${Hf}.${t}`:`${Ce}.${e}.${Hf}.${t}`}/*! @azure/msal-browser v4.24.1 2025-09-30 */class Nd{static loggerCallback(e,n){switch(e){case W.Error:console.error(n);return;case W.Info:console.info(n);return;case W.Verbose:console.debug(n);return;case W.Warning:console.warn(n);return;default:console.log(n);return}}constructor(e){var c;this.browserEnvironment=typeof window<"u",this.config=lE(e,this.browserEnvironment);let n;try{n=window[we.SessionStorage]}catch{}
219const r=n==null?void 0:n.getItem(uE),o=(c=n==null?void 0:n.getItem(dE))==null?void 0:c.toLowerCase(),i=o==="true"?!0:o==="false"?!1:void 0,a={...this.config.system.loggerOptions},l=r&&Object.keys(W).includes(r)?W[r]:void 0;l&&(a.loggerCallback=Nd.loggerCallback,a.logLevel=l),i!==void 0&&(a.piiLoggingEnabled=i),this.logger=new Jt(a,cE,Xn),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class Zn extends Nd{getModuleName(){return Zn.MODULE_NAME}getId(){return Zn.ID}async initialize(){return this.available=typeof window<"u",this.available}}Zn.MODULE_NAME="";Zn.ID="StandardOperatingContext";/*! @azure/msal-browser v4.24.1 2025-09-30 */class fE{constructor(){this.dbName=Sc,this.version=Dk,this.tableName=Uk,this.dbOpen=!1}async open(){return new Promise((e,n)=>{const r=window.indexedDB.open(this.dbName,this.version);r.addEventListener("upgradeneeded",o=>{o.target.result.createObjectStore(this.tableName)}),r.addEventListener("success",o=>{const i=o;this.db=i.target.result,this.dbOpen=!0,e()}),r.addEventListener("error",()=>n(b(_d)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((n,r)=>{if(!this.db)return r(b(ar));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);a.addEventListener("success",l=>{const c=l;this.closeConnection(),n(c.target.result)}),a.addEventListener("error",l=>{this.closeConnection(),r(l)})})}async setItem(e,n){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(b(ar));const l=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(n,e);l.addEventListener("success",()=>{this.closeConnection(),r()}),l.addEventListener("error",c=>{this.closeConnection(),o(c)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((n,r)=>{if(!this.db)return r(b(ar));const a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);a.addEventListener("success",()=>{this.closeConnection(),n()}),a.addEventListener("error",l=>{this.closeConnection(),r(l)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,n)=>{if(!this.db)return n(b(ar));const i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();i.addEventListener("success",a=>{const l=a;this.closeConnection(),e(l.target.result)}),i.addEventListener("error",a=>{this.closeConnection(),n(a)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((n,r)=>{if(!this.db)return r(b(ar));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);a.addEventListener("success",l=>{const c=l;this.closeConnection(),n(c.target.result===1)}),a.addEventListener("error",l=>{this.closeConnection(),r(l)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,n)=>{const r=window.indexedDB.deleteDatabase(Sc),o=setTimeout(()=>n(!1),200);r.addEventListener("success",()=>(clearTimeout(o),e(!0))),r.addEventListener("blocked",()=>(clearTimeout(o),e(!0))),r.addEventListener("error",()=>(clearTimeout(o),n(!1)))})}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class Cs{constructor(){this.cache=new Map}async initialize(){}getItem(e){return this.cache.get(e)||null}getUserData(e){return this.getItem(e)}setItem(e,n){this.cache.set(e,n)}async setUserData(e,n){this.setItem(e,n)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((n,r)=>{e.push(r)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}decryptData(){return Promise.resolve(null)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class pE{constructor(e){this.inMemoryCache=new Cs,this.indexedDBCache=new fE,this.logger=e}handleDatabaseAccessError(e){if(e instanceof si&&e.errorCode===_d)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}async getItem(e){const n=this.inMemoryCache.getItem(e);if(!n)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(r){this.handleDatabaseAccessError(r)}return n}async setItem(e,n){this.inMemoryCache.setItem(e,n);try{await this.indexedDBCache.setItem(e,n)}catch(r){this.handleDatabaseAccessError(r)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(n){this.handleDatabaseAccessError(n)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(n){this.handleDatabaseAccessError(n)}return e}async containsKey(e){const n=this.inMemoryCache.containsKey(e);if(!n)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(r){this.handleDatabaseAccessError(r)}return n}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}
219async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class Xt{constructor(e,n,r){this.logger=e,$k(r??!1),this.cache=new pE(this.logger),this.performanceClient=n}createNewGuid(){return It()}base64Encode(e){return Xo(e)}base64Decode(e){return St(e)}base64UrlEncode(e){return Oi(e)}encodeKid(e){return this.base64UrlEncode(JSON.stringify({kid:e}))}async getPublicKeyThumbprint(e){var p;const n=(p=this.performanceClient)==null?void 0:p.startMeasurement(C.CryptoOptsGetPublicKeyThumbprint,e.correlationId),r=await Vk(Xt.EXTRACTABLE,Xt.POP_KEY_USAGES),o=await cl(r.publicKey),i={e:o.e,kty:o.kty,n:o.n},a=Ff(i),l=await this.hashString(a),c=await cl(r.privateKey),d=await qk(c,!1,["sign"]);return await this.cache.setItem(l,{privateKey:d,publicKey:r.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),n&&n.end({success:!0}),l}async removeTokenBindingKey(e){if(await this.cache.removeItem(e),await this.cache.containsKey(e))throw I(ey)}async clearKeystore(){this.cache.clearInMemory();try{return await this.cache.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}async signJwt(e,n,r,o){var w;const i=(w=this.performanceClient)==null?void 0:w.startMeasurement(C.CryptoOptsSignJwt,o),a=await this.cache.getItem(n);if(!a)throw b(vd);const l=await cl(a.publicKey),c=Ff(l),d=Oi(JSON.stringify({kid:n})),p=pd.getShrHeaderString({...r==null?void 0:r.header,alg:l.alg,kid:d}),s=Oi(p);e.cnf={jwk:JSON.parse(c)};const u=Oi(JSON.stringify(e)),h=`${s}.${u}`,v=new TextEncoder().encode(h),_=await Qk(a.privateKey,v),g=xn(new Uint8Array(_)),y=`${h}.${g}`;return i&&i.end({success:!0}),y}async hashString(e){return Nv(e)}}Xt.POP_KEY_USAGES=["sign","verify"];Xt.EXTRACTABLE=!0;function Ff(t){return JSON.stringify(t,Object.keys(t).sort())}/*! @azure/msal-browser v4.24.1 2025-09-30 */const gE=24*60*60*1e3,Ec={Lax:"Lax",None:"None"};class Uv{initialize(){return Promise.resolve()}getItem(e){const n=`${encodeURIComponent(e)}`,r=document.cookie.split(";");for(let o=0;o<r.length;o++){const i=r[o],[a,...l]=decodeURIComponent(i).trim().split("="),c=l.join("=");if(a===n)return c}return""}getUserData(){throw I(B)}setItem(e,n,r,o=!0,i=Ec.Lax){let a=`${encodeURIComponent(e)}=${encodeURIComponent(n)};path=/;SameSite=${i};`;if(r){const l=mE(r);a+=`expires=${l};`}(o||i===Ec.None)&&(a+="Secure;"),document.cookie=a}async setUserData(){return Promise.reject(I(B))}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),n=[];return e.forEach(r=>{const o=decodeURIComponent(r).trim().split("=");n.push(o[0])}),n}containsKey(e){return this.getKeys().includes(e)}decryptData(){return Promise.resolve(null)}}function mE(t){const e=new Date;return new Date(e.getTime()+t*gE).toUTCString()}/*! @azure/msal-browser v4.24.1 2025-09-30 */function ko(t,e){const n=t.getItem(Nt(e));return n?JSON.parse(n):[]}function Eo(t,e,n){const r=e.getItem(zn(t,n));if(r){const o=JSON.parse(r);if(o&&o.hasOwnProperty("idToken")&&o.hasOwnProperty("accessToken")&&o.hasOwnProperty("refreshToken"))return o}return{idToken:[],accessToken:[],refreshToken:[]}}/*! @azure/msal-browser v4.24.1 2025-09-30 */function Ic(t){return t.hasOwnProperty("id")&&t.hasOwnProperty("nonce")&&t.hasOwnProperty("data")}/*! @azure/msal-browser v4.24.1 2025-09-30 */const Bf="msal.cache.encryption",yE="msal.broadcast.cache";class vE{constructor(e,n,r){if(!window.localStorage)throw de(ws);this.memoryStorage=new Cs,this.initialized=!1,this.clientId=e,this.logger=n,this.performanceClient=r,this.broadcast=new BroadcastChannel(yE)}async initialize(e){const n=new Uv,r=n.getItem(Bf);let o={key:"",id:""};if(r)try{o=JSON.parse(r)}catch{}if(o.key&&o.id){const i=nt(kn,C.Base64Decode,this.logger,this.performanceClient,e)(o.key);this.encryptionCookie={id:o.id,key:await S(bf,C.GenerateHKDF,this.logger,this.performanceClient,e)(i)}}else{const i=It(),a=await S(Pv,C.GenerateBaseKey,this.logger,this.performanceClient,e)(),l=nt(xn,C.UrlEncodeArr,this.logger,this.performanceClient,e)(new Uint8Array(a));this.encryptionCookie={id:i,key:await S(bf,C.GenerateHKDF,this.logger,this.performanceClient,e)(a)};const c={id:i,key:l};n.setItem(Bf,JSON.stringify(c),0,!0,Ec.None)}await S(this.importExistingCache.bind(this),C.ImportExistingCache,this.logger,this.performanceClient,e)(e),this.broadcast.addEventListener("message",this.updateCache.bind(this)),this.initialized=!0}getItem(e){return window.localStorage.getItem(e)}getUserData(e){if(!this.initialized)throw b(Ao);return this.memoryStorage.getItem(e)}async decryptData(e,n,r){if(!this.initialized||!this.encryptionCookie)throw b(Ao);if(n.id!==this.encryptionCookie.id)return this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},r),null;const o=await S(Of,C.Decrypt,this.logger,this.performanceClient,r)(this.encryptionCookie.ke
219y,n.nonce,this.getContext(e),n.data);if(!o)return null;try{return JSON.parse(o)}catch{return this.performanceClient.incrementFields({encryptedCacheCorruptionCount:1},r),null}}setItem(e,n){window.localStorage.setItem(e,n)}async setUserData(e,n,r,o){if(!this.initialized||!this.encryptionCookie)throw b(Ao);const{data:i,nonce:a}=await S(Jk,C.Encrypt,this.logger,this.performanceClient,r)(this.encryptionCookie.key,n,this.getContext(e)),l={id:this.encryptionCookie.id,nonce:a,data:i,lastUpdatedAt:o};this.memoryStorage.setItem(e,n),this.setItem(e,JSON.stringify(l)),this.broadcast.postMessage({key:e,value:n,context:this.getContext(e)})}removeItem(e){this.memoryStorage.containsKey(e)&&(this.memoryStorage.removeItem(e),this.broadcast.postMessage({key:e,value:null,context:this.getContext(e)})),window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}clear(){this.memoryStorage.clear(),ko(this).forEach(r=>this.removeItem(r));const n=Eo(this.clientId,this);n.idToken.forEach(r=>this.removeItem(r)),n.accessToken.forEach(r=>this.removeItem(r)),n.refreshToken.forEach(r=>this.removeItem(r)),this.getKeys().forEach(r=>{(r.startsWith(Ce)||r.indexOf(this.clientId)!==-1)&&this.removeItem(r)})}async importExistingCache(e){if(!this.encryptionCookie)return;let n=ko(this);n=await this.importArray(n,e),n.length?this.setItem(Nt(),JSON.stringify(n)):this.removeItem(Nt());const r=Eo(this.clientId,this);r.idToken=await this.importArray(r.idToken,e),r.accessToken=await this.importArray(r.accessToken,e),r.refreshToken=await this.importArray(r.refreshToken,e),r.idToken.length||r.accessToken.length||r.refreshToken.length?this.setItem(zn(this.clientId),JSON.stringify(r)):this.removeItem(zn(this.clientId))}async getItemFromEncryptedCache(e,n){if(!this.encryptionCookie)return null;const r=this.getItem(e);if(!r)return null;let o;try{o=JSON.parse(r)}catch{return null}return Ic(o)?o.id!==this.encryptionCookie.id?(this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},n),null):S(Of,C.Decrypt,this.logger,this.performanceClient,n)(this.encryptionCookie.key,o.nonce,this.getContext(e),o.data):(this.performanceClient.incrementFields({unencryptedCacheCount:1},n),o)}async importArray(e,n){const r=[],o=[];return e.forEach(i=>{const a=this.getItemFromEncryptedCache(i,n).then(l=>{l?(this.memoryStorage.setItem(i,l),r.push(i)):this.removeItem(i)});o.push(a)}),await Promise.all(o),r}getContext(e){let n="";return e.includes(this.clientId)&&(n=this.clientId),n}updateCache(e){this.logger.trace("Updating internal cache from broadcast event");const n=this.performanceClient.startMeasurement(C.LocalStorageUpdated);n.add({isBackground:!0});const{key:r,value:o,context:i}=e.data;if(!r){this.logger.error("Broadcast event missing key"),n.end({success:!1,errorCode:"noKey"});return}if(i&&i!==this.clientId){this.logger.trace(`Ignoring broadcast event from clientId: ${i}`),n.end({success:!1,errorCode:"contextMismatch"});return}o?(this.memoryStorage.setItem(r,o),this.logger.verbose("Updated 
219item in internal cache")):(this.memoryStorage.removeItem(r),this.logger.verbose("Removed item from internal cache")),n.end({success:!0})}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class _E{constructor(){if(!window.sessionStorage)throw de(ws)}async initialize(){}getItem(e){return window.sessionStorage.getItem(e)}getUserData(e){return this.getItem(e)}setItem(e,n){window.sessionStorage.setItem(e,n)}async setUserData(e,n){this.setItem(e,n)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}decryptData(){return Promise.resolve(null)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */const M={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache",BROKER_CONNECTION_ESTABLISHED:"msal:brokerConnectionEstablished"};/*! @azure/msal-browser v4.24.1 2025-09-30 */function zf(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}/*! @azure/msal-browser v4.24.1 2025-09-30 */class xc extends _c{constructor(e,n,r,o,i,a,l){super(e,r,o,i,l),this.cacheConfig=n,this.logger=o,this.internalStorage=new Cs,this.browserStorage=Kf(e,n.cacheLocation,o,i),this.temporaryCacheStorage=Kf(e,n.temporaryCacheLocation,o,i),this.cookieStorage=new Uv,this.eventHandler=a}async initialize(e){this.performanceClient.addFields({cacheLocation:this.cacheConfig.cacheLocation,cacheRetentionDays:this.cacheConfig.cacheRetentionDays},e),await this.browserStorage.initialize(e),await this.migrateExistingCache(e),this.trackVersionChanges(e)}async migrateExistingCache(e){const n=ko(this.browserStorage,0),r=Eo(this.clientId,this.browserStorage,0);this.performanceClient.addFields({oldAccountCount:n.length,oldAccessCount:r.accessToken.length,oldIdCount:r.idToken.length,oldRefreshCount:r.refreshToken.length},e);const o=ko(this.browserStorage,1),i=Eo(this.clientId,this.browserStorage,1);this.performanceClient.addFields({currAccountCount:o.length,currAccessCount:i.accessToken.length,currIdCount:i.idToken.length,currRefreshCount:i.refreshToken.length},e),await Promise.all([this.updateV0ToCurrent(kc,n,o,e),this.updateV0ToCurrent(nn,r.idToken,i.idToken,e),this.updateV0ToCurrent(nn,r.accessToken,i.accessToken,e),this.updateV0ToCurrent(nn,r.refreshToken,i.refreshToken,e)]),n.length>0?this.browserStorage.setItem(Nt(0),JSON.stringify(n)):this.browserStorage.removeItem(Nt(0)),o.length>0?this.browserStorage.setItem(Nt(1),JSON.stringify(o)):this.browserStorage.removeItem(Nt(1)),this.setTokenKeys(r,e,0),this.setTokenKeys(i,e,1)}async updateV0ToCurrent(e,n,r,o){const i=[];for(const a of[...n]){const l=this.browserStorage.getItem(a),c=this.validateAndParseJson(l||"");if(!c){zf(n,a);continue}c.lastUpdatedAt||(c.lastUpdatedAt=Date.now().toString(),this.setItem(a,JSON.stringify(c),o));const d=Ic(c)?await this.browserStorage.decryptData(a,c,o):c;let p;if(d&&(Cf(d)||Tf(d))&&(p=d.expiresOn),!d||ek(c.lastUpdatedAt,this.cacheConfig.cacheRetentionDays)||p&&Oa(p,jm)){this.browserStorage.removeItem(a),zf(n,a),this.performanceClient.incrementFields({expiredCacheRemovedCount:1},o);continue}if(this.cacheConfig.cacheLocation!==we.LocalStorage||Ic(c)){const s=`${Ce}.${e}${ul}${a}`,u=this.browserStorage.getItem(s);if(u){const h=this.validateAndParseJson(u);if(Number(c.lastUpdatedAt)>Number(h.lastUpdatedAt)){i.push(this.setUserData(s,JSON.stringify(d),o,
219c.lastUpdatedAt).then(()=>{this.performanceClient.incrementFields({updatedCacheFromV0Count:1},o)}));continue}}else{i.push(this.setUserData(s,JSON.stringify(d),o,c.lastUpdatedAt).then(()=>{r.push(s),this.performanceClient.incrementFields({upgradedCacheCount:1},o)}));continue}}}return Promise.all(i)}trackVersionChanges(e){const n=this.browserStorage.getItem(Uf);n&&(this.logger.info(`MSAL.js was last initialized by version: ${n}`),this.performanceClient.addFields({previousLibraryVersion:n},e)),n!==Xn&&this.setItem(Uf,Xn,e)}validateAndParseJson(e){if(!e)return null;try{const n=JSON.parse(e);return n&&typeof n=="object"?n:null}catch{return null}}setItem(e,n,r){let o=0,i=[];const a=20;for(let l=0;l<=a;l++)try{this.browserStorage.setItem(e,n),l>0&&(l<=o?this.removeAccessTokenKeys(i.slice(0,l),r,0):(this.removeAccessTokenKeys(i.slice(0,o),r,0),this.removeAccessTokenKeys(i.slice(o,l),r)));break}catch(c){const d=vc(c);if(d.errorCode===xa&&l<a){if(!i.length){const p=e===zn(this.clientId,0)?JSON.parse(n).accessToken:this.getTokenKeys(0).accessToken,s=e===zn(this.clientId)?JSON.parse(n).accessToken:this.getTokenKeys().accessToken;i=[...p,...s],o=p.length}if(i.length<=l)throw d;this.removeAccessToken(i[l],r,!1)}else throw d}}async setUserData(e,n,r,o){let i=0,a=[];const l=20;for(let c=0;c<=l;c++)try{await S(this.browserStorage.setUserData.bind(this.browserStorage),C.SetUserData,this.logger,this.performanceClient)(e,n,r,o),c>0&&(c<=i?this.removeAccessTokenKeys(a.slice(0,c),r,0):(this.removeAccessTokenKeys(a.slice(0,i),r,0),this.removeAccessTokenKeys(a.slice(i,c),r)));break}catch(d){const p=vc(d);if(p.errorCode===xa&&c<l){if(!a.length){const s=this.getTokenKeys(0).accessToken,u=this.getTokenKeys().accessToken;a=[...s,...u],i=s.length}if(a.length<=c)throw p;this.removeAccessToken(a[c],r,!1)}else throw p}}getAccount(e,n){this.logger.trace("BrowserCacheManager.getAccount called");const r=this.browserStorage.getUserData(e);if(!r)return this.removeAccountKeyFromMap(e,n),null;const o=this.validateAndParseJson(r);return!o||!kt.isAccountEntity(o)?null:_c.toObject(new kt,o)}async setAccount(e,n){this.logger.trace("BrowserCacheManager.setAccount called");const r=this.generateAccountKey(e.getAccountInfo()),o=Date.now().toString();e.lastUpdatedAt=o,await this.setUserData(r,JSON.stringify(e),n,o);const i=this.addAccountKeyToMap(r,n);this.cacheConfig.cacheLocation===we.LocalStorage&&i&&this.eventHandler.emitEvent(M.ACCOUNT_ADDED,void 0,e.getAccountInfo())}getAccountKeys(){return ko(this.browserStorage)}addAccountKeyToMap(e,n){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const r=this.getAccountKeys();return r.indexOf(e)===-1?(r.push(e),this.setItem(Nt(),JSON.stringify(r),n),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added"),!0):(this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map"),!1)}removeAccountKeyFromMap(e,n){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const r=this.getAccountKeys(),o=r.indexOf(e);if(o>-1){if(r.splice(o,1),r.length===0){this.removeItem(Nt());return}else this.setItem(Nt(),JSON.stringify(r),n);this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")}else this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}removeAccount(e,n){const r=this.getActiveAccount(n);(r==null?void 0:r.homeAccountId)===e.homeAccountId&&(r==null?void 0:r.environment)===e.environment&&this.setActiveAccount(null,n),super.removeAccount(e,n),this.removeAccountKeyFromMap(this.generateAccountKey(e),n),this.browserStorage.getKeys().forEach(o=>{o.includes(e.homeAccountId)&&o.includes(e.environment)&&this.browserStorage.removeItem(o)}),this.cacheConfig.cacheLocation===we.LocalStorage&&this.eventHandler.emitEvent(M.ACCOUNT_REMOVED,void 0,e)}removeIdToken(e,n){super.removeIdToken(e,n);const r=this.getTokenKeys(),o=r.idToken.indexOf(e);o>-1&&(this.logger.info("idToken removed from tokenKeys map"),r.idToken.splice(o,1),this.setTokenKeys(r,n))}removeAccessToken(e,n,r=!0){super.removeAccessToken(e,n),r&&this.removeAccessTokenKeys([e],n)}removeAccessTokenKeys(e,n,r=nn){this.logger.trace("removeAccessTokenKey called");const o=this.getTokenKeys(r);let i=0;if(e.forEach(a=>{const l=o.accessToken.indexOf(a);l>-1&&(o.accessToken.splice(l,1),i++)}),i>0){this.logger.info(`removed ${i} accessToken keys from tokenKeys map`),this.setTokenKeys(o,n,r);return}}removeRefreshToken(e,n){super.removeRefreshToken(e,n);const r=this.getTokenKeys(),o=r.refreshToken.indexOf(e);o>-1&&(this.logger.info("refreshToken removed from tokenKeys map"),r.refreshToken.splice(o,1),this.setTokenKeys(r,n))}getTokenKeys(e=nn){return Eo(this.clientId,this.browserStorage,e)}setTokenKeys(e,n,r=nn){if(e.idToken.length===0&&e.accessToken.length===0&&e.refreshToken.length===0){this.removeItem(zn(this.clientId,r));return}else this.setItem(zn(this.clientId,r),JSON.stringify(e),n)}getIdTokenCredential(e,n){const r=this.browserStorage.getUserData(e);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeIdToken(e,n),null;const o=this.validateAndParseJson(r);return!o||!nk(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),o)}async setIdTokenCredential(e,n){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const r=this.generateCredentialKey(e),o=Date.now().toString();e.lastUpdatedAt=o,await this.setUserData(r,JSON.stringify(e),n,o);const i=this.getTokenKeys();i.idToken.indexOf(r)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),i.idToken.push(r),this.setTokenKeys(i,n))}getAccessTokenCredential(e,n){const r=this.browserStorage.getUserData(e);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeAccessTokenKeys([e],n),null;const o=this.validateAndParseJson(r);return!o||!Cf(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),o)}async setAccessTokenCredential(e,n){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const r=this.generateCredentialKey(e),o=Date.now().toString();e.lastUpdatedAt=o,await this.setUserData(r,JSON.stringify(e),n,o);const i=this.getTokenKeys(),a=i.accessToken.indexOf(r);a!==-1&&i.accessToken.splice(a,1),this.logger.trace(`access token ${a===-1?"added to":"updated in"} map`),i.accessToken.push(r),this.setTokenKeys(i,n)}getRefreshTokenCredential(e,n){const r=this.browserStorage.getUserData(e);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeRefreshToken(e,n),null;const o=this.validateAndParseJson(r);return!o||!Tf(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),o)}async setRefreshTokenCredential(e,n){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const r=this.generateCredentialKey(e),o=Date.now().toString();e.lastUpdatedAt=o,await this.setUserData(r,JSON.stringify(e),n,o);const i=this.getTokenKeys();i.refreshToken.indexOf(r)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),i.refreshToken.push(r),this.setTokenKeys(i,n))}getAppMetadata(e){const n=this.browserStorage.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(n);return!r||!ak(e,r)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),r)}setAppMetadata(e,n){this.logger.trace("BrowserCacheManager.setAppMetadata called");const r=ik(e);this.setItem(r,JSON.stringify(e),n)}getServerTelemetry(e){const n=this.browserStorage.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const r=this.validateAndParseJson(n);return!r||!rk(e,r)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),r)}setServerTelemetry(e,n,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(n),r)}getAuthorityMetadata(e){const n=this.internalStorage.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const r=this.validateAndParseJson(n);return r&&sk(e,r)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),r):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(n=>this.isAuthorityMetadata(n))}setWrapperMetadata(e,n){this.internalStorage.setItem(bi.WRAPPER_SKU,e),this.internalStorage.setItem(bi.WRAPPER_VER,n)}getWrapperMetadata(){const e=this.internalStorage.getItem(bi.WRAPPER_SKU)||A.EMPTY_STRING,n=this.internalStorage.getItem(bi.WRAPPER_VER)||A.EMPTY_STRING;return[e,n]}setAuthorityMetadata(e,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(n))}getActiveAccount(e){const n=this.generateCacheKey(lf.ACTIVE_ACCOUNT_FILTERS),r=this.browserStorage.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters found"),null;const o=this.validateAndParseJson(r);return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:o.homeAccountId,localAccountId:o.localAccountId,tenantId:o.tenantId},e)):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e,n){const r=this.generateCacheKey(lf.ACTIVE_ACCOUNT_FILTERS);if(e){this.logger.verbose("setActiveAccount: Active account set");const o={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId,lastUpdatedAt:We().toString()};this.setItem(r,JSON.stringify(o),n)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r);this.eventHandler.emitEvent(M.ACTIVE_ACCOUNT_CHANGED)}getThrottlingCache(e){const n=this.browserStorage.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const r=this.validateAndParseJson(n);return!r||!ok(e,r)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),r)}setThrottlingCache(e,n,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(n),r)}getTemporaryCache(e,n){const r=n?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const i=this.cookieStorage.getItem(r);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}const o=this.temporaryCacheStorage.getItem(r);if(!o){if(this.cacheConfig.cacheLocation===we.LocalStorage){const i=this.browserStorage.getItem(r);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),i}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o}setTemporaryCache(e,n,r){const o=r?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(o,n,void 0,this.cacheConfig.secureCookies))}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(e))}getKeys(){return this.browserStorage.getKeys()}clear(e){this.removeAllAccounts(e),this.removeAppMetadata(e),this.temporaryCacheStorage.getKeys().forEac
219h(n=>{(n.indexOf(Ce)!==-1||n.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(n)}),this.browserStorage.getKeys().forEach(n=>{(n.indexOf(Ce)!==-1||n.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(n)}),this.internalStorage.clear()}clearTokensAndKeysWithClaims(e){this.performanceClient.addQueueMeasurement(C.ClearTokensAndKeysWithClaims,e);const n=this.getTokenKeys();let r=0;n.accessToken.forEach(o=>{const i=this.getAccessTokenCredential(o,e);i!=null&&i.requestedClaimsHash&&o.includes(i.requestedClaimsHash.toLowerCase())&&(this.removeAccessToken(o,e),r++)}),r>0&&this.logger.warning(`${r} access tokens with claims in the cache keys have been removed from the cache.`)}generateCacheKey(e){return tt.startsWith(e,Ce)?e:`${Ce}.${this.clientId}.${e}`}generateCredentialKey(e){const n=e.credentialType===Ie.REFRESH_TOKEN&&e.familyId||e.clientId,r=e.tokenType&&e.tokenType.toLowerCase()!==q.BEARER.toLowerCase()?e.tokenType.toLowerCase():"";return[`${Ce}.${nn}`,e.homeAccountId,e.environment,e.credentialType,n,e.realm||"",e.target||"",e.requestedClaimsHash||"",r].join(ul).toLowerCase()}generateAccountKey(e){const n=e.homeAccountId.split(".")[1];return[`${Ce}.${kc}`,e.homeAccountId,e.environment,n||e.tenantId||""].join(ul).toLowerCase()}resetRequestCache(){this.logger.trace("BrowserCacheManager.resetRequestCache called"),this.removeTemporaryItem(this.generateCacheKey(he.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(he.VERIFIER)),this.removeTemporaryItem(this.generateCacheKey(he.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(he.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(he.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cacheAuthorizeRequest(e,n){this.logger.trace("BrowserCacheManager.cacheAuthorizeRequest called");const r=Xo(JSON.stringify(e));if(this.setTemporaryCache(he.REQUEST_PARAMS,r,!0),n){const o=Xo(n);this.setTemporaryCache(he.VERIFIER,o,!0)}}getCachedRequest(){this.logger.trace("BrowserCacheManager.getCachedRequest called");const e=this.getTemporaryCache(he.REQUEST_PARAMS,!0);if(!e)throw b(lv);const n=this.getTemporaryCache(he.VERIFIER,!0);let r,o="";try{r=JSON.parse(St(e)),n&&(o=St(n))}catch(i){throw this.logger.errorPii(`Attempted to parse: ${e}`),this.logger.error(`Parsing cached token request threw with error: ${i}`),b(cv)}return[r,o]}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(he.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const n=this.validateAndParseJson(e);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){var r;const n=(r=this.getInteractionInProgress())==null?void 0:r.clientId;return e?n===this.clientId:!!n}getInteractionInProgress(){const e=`${Ce}.${he.INTERACTION_STATUS_KEY}`,n=this.getTemporaryCache(e,!1);try{return n?JSON.parse(n):null}catch{return this.logger.error("Cannot parse interaction status. Removing temporary cache items and clearing url hash. Retrying interaction should fix the error"),this.removeTemporaryItem(e),this.resetRequestCache(),bv(window),null}}setInteractionInProgress(e,n=ln.SIGNIN){var o;const r=`${Ce}.${he.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw b(ev);this.setTemporaryCache(r,JSON.stringify({clientId:this.clientId,type:n}),!1)}else!e&&((o=this.getInteractionInProgress())==null?void 0:o.clientId)===this.clientId&&this.removeTemporaryItem(r)}async hydrateCache(e,n){var l,c,d;const r=hs((l=e.account)==null?void 0:l.homeAccountId,(c=e.account)==null?void 0:c.environment,e.idToken,this.clientId,e.tenantId);let o;n.claims&&(o=await this.cryptoImpl.hashString(n.claims));const i=fs((d=e.account)==null?void 0:d.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?wf(e.expiresOn):0,e.extExpiresOn?wf(e.extExpiresOn):0,St,void 0,e.tokenType,void 0,n.sshKid,n.claims,o),a={idToken:r,accessToken:i};
219return this.saveCacheRecord(a,e.correlationId)}async saveCacheRecord(e,n,r){try{await super.saveCacheRecord(e,n,r)}catch(o){if(o instanceof Er&&this.performanceClient&&n)try{const i=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:i.refreshToken.length,cacheIdCount:i.idToken.length,cacheAtCount:i.accessToken.length},n)}catch{}throw o}}}function Kf(t,e,n,r){try{switch(e){case we.LocalStorage:return new vE(t,n,r);case we.SessionStorage:return new _E;case we.MemoryStorage:default:break}}catch(o){n.error(o)}return new Cs}const wE=(t,e,n,r)=>{const o={cacheLocation:we.MemoryStorage,cacheRetentionDays:5,temporaryCacheLocation:we.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new xc(t,o,ka,e,n,r)};/*! @azure/msal-browser v4.24.1 2025-09-30 */function CE(t,e,n,r,o){return t.verbose("getAllAccounts called"),n?e.getAllAccounts(o||{},r):[]}function TE(t,e,n,r){const o=n.getAccountInfoFilteredBy(t,r);return o?(e.verbose("getAccount: Account matching provided filter found, returning"),o):(e.verbose("getAccount: No matching account found, returning null"),null)}function SE(t,e,n,r){if(e.trace("getAccountByUsername called"),!t)return e.warning("getAccountByUsername: No username provided"),null;const o=n.getAccountInfoFilteredBy({username:t},r);return o?(e.verbose("getAccountByUsername: Account matching username found, returning"),e.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${t}`),o):(e.verbose("getAccountByUsername: No matching account found, returning null"),null)}function AE(t,e,n,r){if(e.trace("getAccountByHomeId called"),!t)return e.warning("getAccountByHomeId: No homeAccountId provided"),null;const o=n.getAccountInfoFilteredBy({homeAccountId:t},r);return o?(e.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),e.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${t}`),o):(e.verbose("getAccountByHomeId: No matching account found, returning null"),null)}function kE(t,e,n,r){if(e.trace("getAccountByLocalId called"),!t)return e.warning("getAccountByLocalId: No localAccountId provided"),null;const o=n.getAccountInfoFilteredBy({localAccountId:t},r);return o?(e.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),e.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${t}`),o):(e.verbose("getAccountByLocalId: No matching account found, returning null"),null)}function EE(t,e,n){e.setActiveAccount(t,n)}function IE(t,e){return t.getActiveAccount(e)}/*! @azure/msal-browser v4.24.1 2025-09-30 */const xE="msal.broadcast.event";class PE{constructor(e){this.eventCallbacks=new Map,this.logger=e||new Jt({}),typeof BroadcastChannel<"u"&&(this.broadcastChannel=new BroadcastChannel(xE)),this.invokeCrossTabCallbacks=this.invokeCrossTabCallbacks.bind(this)}addEventCallback(e,n,r){if(typeof window<"u"){const o=r||oE();return this.eventCallbacks.has(o)?(this.logger.error(`Event callback with id: ${o} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(o,[e,n||[]]),this.logger.verbose(`Event callback registered with id: ${o}`),o)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}emitEvent(e,n,r,o){var a;const i={eventType:e,interactionType:n||null,payload:r||null,error:o||null,timestamp:Date.now()};switch(e){case M.ACCOUNT_ADDED:case M.ACCOUNT_REMOVED:case M.ACTIVE_ACCOUNT_CHANGED:(a=this.broadcastChannel)==null||a.postMessage(i);break;default:this.invokeCallbacks(i);break}}invokeCallbacks(e){this.eventCallbacks.forEach(([n,r],o)=>{(r.length===0||r.includes(e.eventType))&&(this.logger.verbose(`Emitting event to callback ${o}: ${e.eventType}`),n.apply(null,[e]))})}invokeCrossTabCallbacks(e){const n=e.data;this.invokeCallbacks(n)}subscribeCrossTab(){var e;(e=this.broadcastChannel)==null||e.addEventListener("message",this.invokeCrossTabCallbacks)}unsubscribeCrossTab(){var e;(e=this.broadcastChannel)==null||e.removeEventListener("message",this.invokeCrossTabCallbacks)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class jv{constructor(e,n,r,o,i,a,l,c,d){this.config=e,this.browserStorage=n,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.platformAuthProvider=c,this.correlationId=d||It(),this.logger=o.clone(Ke.MSAL_SKU,Xn,this.correlationId),this.performanceClient=l}async clearCacheOnLogout(e,n){if(n)try{this.browserStorage.removeAccount(n,e),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),this.browserStorage.clear(e),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const n=e||this.config.auth.redirectUri;return G.getAbsoluteUrl(n,Gt())}initializeServerTelemetryManager(e,n){this.logger.verbose("initializeServerTelemetryManager called");const r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:n||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Yo(r,this.browserStorage)}async getDiscoveredAuthority(e){const{account:n}=e,r=e.requestExtraQueryParameters&&e.requestExtraQueryParameters.hasOwnProperty("instance_aware")?e.requestExtraQueryParameters.instance_aware:void 0;this.performanceClient.addQueueMeasurement(C.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const o={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},i=e.requestAuthority||this.config.auth.authority,a=r!=null&&r.length?r==="true":this.config.auth.instanceAware,l=n&&a?this.config.auth.authority.replace(G.getDomainFromUrl(i),n.environment):i,c=Oe.generateAuthority(l,e.requestAzureCloudOptions||this.config.auth.azureCloudOptions),d=await S(Hy,C.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(c,this.config.system.networkClient,this.browserStorage,o,this.logger,this.correlationId,this.performanceClient);if(n&&!d.isAlias(n.environment))throw X(py);return d}}/*! @azure/msal-browser v4.24.1 2025-09-30 */async function bd(t,e,n,r){n.addQueueMeasurement(C.InitializeBaseRequest,t.correlationId);const o=t.authority||e.auth.authority,i=[...t&&t.scopes||[]],a={...t,correlationId:t.correlationId,authority:o,scopes:i};if(!a.authenticationScheme)a.authenticationScheme=q.BEARER,r.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(a.authenticationScheme===q.SSH){if(!t.sshJwk)throw X(ls);if(!t.sshKid)throw X(dy)}r.verbose(`Authentication Scheme set to "${a.authenticationScheme}" as configured in Auth request`)}return e.cache.claimsBasedCachingEnabled&&t.claims&&!tt.isEmptyObj(t.claims)&&(a.requestedClaimsHash=await Nv(t.claims)),a}async function RE(t,e,n,r,o){r.addQueueMeasurement(C.InitializeSilentRequest,t.correlationId);const i=await S(bd,C.InitializeBaseRequest,o,r,t.correlationId)(t,n,r,o);return{...t,...i,account:e,forceRefresh:t.forceRefresh||!1}}function Hv(t,e){let n;const r=t.httpMethod;if(e===Qe.EAR){if(n=r||Bn.POST,n!==Bn.POST)throw X(gy)}else n=r||Bn.GET;if(t.authorizePostBodyParameters&&n!==Bn.POST)throw X(my);return n}/*! @azure/msal-browser v4.24.1 2025-09-30 */class qr extends jv{initializeLogoutRequest
219(e){this.logger.verbose("initializeLogoutRequest called",e==null?void 0:e.correlationId);const n={correlationId:this.correlationId||It(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const r=this.getLogoutHintFromIdTokenClaims(e.account);r&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=r)}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!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=G.getAbsoluteUrl(e.postLogoutRedirectUri,Gt())):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=G.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Gt())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=G.getAbsoluteUrl(Gt(),Gt())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n}getLogoutHintFromIdTokenClaims(e){const n=e.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}async createAuthCodeClient(e){this.performanceClient.addQueueMeasurement(C.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const n=await S(this.getClientConfiguration.bind(this),C.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e);return new $y(n,this.performanceClient)}async getClientConfiguration(e){const{serverTelemetryManager:n,requestAuthority:r,requestAzureCloudOptions:o,requestExtraQueryParameters:i,account:a}=e;this.performanceClient.addQueueMeasurement(C.StandardInteractionClientGetClientConfiguration,this.correlationId);const l=await S(this.getDiscoveredAuthority.bind(this),C.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)({requestAuthority:r,requestAzureCloudOptions:o,requestExtraQueryParameters:i,account:a}),c=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:l,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:c.loggerCallback,piiLoggingEnabled:c.piiLoggingEnabled,logLevel:c.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:n,libraryInfo:{sku:Ke.MSAL_SKU,version:Xn,cpu:A.EMPTY_STRING,os:A.EMPTY_STRING},telemetry:this.config.telemetry}}async initializeAuthorizationRequest(e,n){this.performanceClient.addQueueMeasurement(C.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const r=this.getRedirectUri(e.redirectUri),o={interactionType:n},i=Gr.setRequestState(this.browserCrypto,e&&e.state||A.EMPTY_STRING,o),l={...await S(bd,C.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)({...e,correlationId:this.correlationId},this.config,this.performanceClient,this.logger),redirectUri:r,state:i,nonce:e.nonce||It(),responseMode:this.config.auth.OIDCOptions.serverResponseType},c={...l,httpMethod:Hv(l,this.config.auth.protocolMode)};if(e.loginHint||e.sid)return c;const d=e.account||this.browserStorage.getActiveAccount(this.correlationId);return d&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${d.homeAccountId}`,this.correlationId),c.account=d),c}}/*! @azure/msal-browser v4.24.1 2025-09-30 */function NE(t,e){if(!e)return null;try{return Gr.parseRequestState(t,e).libraryState.meta}catch{throw I(Ur)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */function Io(t,e,n){const r=Ea(t);if(!r)throw vy(t)?(n.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),n.errorPii(`The ${e} detected is: ${t}`),b(Jy)):(n.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),b(Yy));return r}function bE(t,e,n){if(!t.state)throw b(yd);const r=NE(e,t.state);if(!r)throw b(Xy);if(r.interactionType!==n)throw b(Zy)}/*! @azure/msal-browser v4.24.1 2025-09-30 */class Fv{constructor(e,n,r,o,i){this.authModule=e,this.browserStorage=n,this.authCodeRequest=r,this.logger=o,this.performanceClient=i}async handleCodeResponse(e,n){this.performanceClient.addQueueMeasurement(C.HandleCodeResponse,n.correlationId);let r;try{r=Tk(e,n.state)}
219catch(o){throw o instanceof rr&&o.subError===Jo?b(Jo):o}return S(this.handleCodeResponseFromServer.bind(this),C.HandleCodeResponseFromServer,this.logger,this.performanceClient,n.correlationId)(r,n)}async handleCodeResponseFromServer(e,n,r=!0){if(this.performanceClient.addQueueMeasurement(C.HandleCodeResponseFromServer,n.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await S(this.authModule.updateAuthority.bind(this.authModule),C.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,n.correlationId)(e.cloud_instance_host_name,n.correlationId),r&&(e.nonce=n.nonce||void 0),e.state=n.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const i=this.createCcsCredentials(n);i&&(this.authCodeRequest.ccsCredential=i)}return await S(this.authModule.acquireToken.bind(this.authModule),C.AuthClientAcquireToken,this.logger,this.performanceClient,n.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:wt.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:wt.UPN}:null}}/*! @azure/msal-browser v4.24.1 2025-09-30 */const OE="ContentError",ME="PageException",Bv="user_switch";/*! @azure/msal-browser v4.24.1 2025-09-30 */const LE="USER_INTERACTION_REQUIRED",DE="USER_CANCEL",UE="NO_NETWORK",jE="DISABLED",HE="ACCOUNT_UNAVAILABLE",FE="UX_NOT_ALLOWED";/*! @azure/msal-browser v4.24.1 2025-09-30 */const BE=-2147186943,zE={[Bv]:"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."};class Mt extends J{constructor(e,n,r){super(e,n),Object.setPrototypeOf(this,Mt.prototype),this.name="NativeAuthError",this.ext=r}}function sr(t){if(t.ext&&t.ext.status&&t.ext.status===jE||t.ext&&t.ext.error&&t.ext.error===BE)return!0;switch(t.errorCode){case OE:case ME:return!0;default:return!1}}function Ha(t,e,n){if(n&&n.status)switch(n.status){case HE:return La(By);case LE:return new Et(t,e);case DE:return b(Jo);case UE:return b(Da);case FE:return La(ud)}return new Mt(t,zE[t]||e,n)}/*! @azure/msal-browser v4.24.1 2025-09-30 */class zv extends qr{async acquireToken(e){this.performanceClient.addQueueMeasurement(C.SilentCacheClientAcquireToken,e.correlationId);const n=this.initializeServerTelemetryManager(Y.acquireTokenSilent_silentFlow),r=await S(this.getClientConfiguration.bind(this),C.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),o=new _k(r,this.performanceClient);this.logger.verbose("Silent auth client created");try{const a=(await S(o.acquireCachedToken.bind(o),C.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),a}catch(i){throw i instanceof si&&i.errorCode===vd&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i}}logout(e){this.logger.verbose("logoutRedirect called");const n=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(n.correlationId,n==null?void 0:n.account)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class Yi extends jv{constructor(e,n,r,o,i,a,l,c,d,p,s,u){super(e,n,r,o,i,a,c,d,u),this.apiId=l,this.accountId=p,this.platformAuthProvider=d,this.nativeStorageManager=s,this.silentCacheClient=new zv(e,this.nativeStorageManager,r,o,i,a,c,d,u);const h=this.platformAuthProvider.getExtensionName();this.skus=Yo.makeExtraSkuString({libraryName:Ke.MSAL_SKU,libraryVersion:Xn,extensionName:h,extensionVersion:this.platformAuthProvider.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[MA]:this.skus}}async acquireToken(e,n){this.performanceClient.addQueueMeasurement(C.NativeInteractionClientAcquireToken,this.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const r=this.performanceClient.startMeasurement(C.NativeInteractionClientAcquireToken,this.correlationId),o=We(),i=this.initializeServerTelemetryManager(this.apiId);try{const a=await this.initializeNativeRequest(e);
219try{const c=await this.acquireTokensFromCache(this.accountId,a);return r.end({success:!0,isNativeBroker:!1,fromCache:!0}),c}catch(c){if(n===De.AccessToken)throw this.logger.info("MSAL internal Cache does not contain tokens, return error as per cache policy"),r.end({success:!1,brokerErrorCode:"cache_request_failed"}),c;this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const l=await this.platformAuthProvider.sendMessage(a);return await this.handleNativeResponse(l,a,o).then(c=>(r.end({success:!0,isNativeBroker:!0,requestId:c.requestId}),i.clearNativeBrokerErrorCode(),c)).catch(c=>{throw r.end({success:!1,errorCode:c.errorCode,subErrorCode:c.subError}),c})}catch(a){throw a instanceof Mt&&i.setNativeBrokerErrorCode(a.errorCode),r.end({success:!1}),a}}createSilentCacheRequest(e,n){return{authority:e.authority,correlationId:this.correlationId,scopes:_e.fromString(e.scope).asArray(),account:n,forceRefresh:!1}}async acquireTokensFromCache(e,n){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),I(mc);const r=this.browserStorage.getBaseAccountInfo({nativeAccountId:e},this.correlationId);if(!r)throw I(mc);try{const o=this.createSilentCacheRequest(n,r),i=await this.silentCacheClient.acquireToken(o),a={...r,idTokenClaims:i==null?void 0:i.idTokenClaims,idToken:i==null?void 0:i.idToken};return{...i,account:a}}catch(o){throw o}}async acquireTokenRedirect(e,n){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...r}=e;delete r.onRedirectNavigate;const o=await this.initializeNativeRequest(r);try{await this.platformAuthProvider.sendMessage(o)}catch(l){if(l instanceof Mt&&(this.initializeServerTelemetryManager(this.apiId).setNativeBrokerErrorCode(l.errorCode),sr(l)))throw l}this.browserStorage.setTemporaryCache(he.NATIVE_REQUEST,JSON.stringify(o),!0);const i={apiId:Y.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);n.end({success:!0}),await this.navigationClient.navigateExternal(a,i)}async handleRedirectPromise(e,n){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."),null;const r=this.browserStorage.getCachedNativeRequest();if(!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),e&&n&&(e==null||e.addFields({errorCode:"no_cached_request"},n)),null;const{prompt:o,...i}=r;o&&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(he.NATIVE_REQUEST));const a=We();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const l=await this.platformAuthProvider.sendMessage(i),c=await this.handleNativeResponse(l,i,a);return this.initializeServerTelemetryManager(this.apiId).clearNativeBrokerErrorCode(),e&&this.correlationId&&this.performanceClient.addFields({isNativeBroker:!0},this.correlationId),c}catch(l){throw l}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,n,r){var p,s;this.logger.trace("NativeInteractionClient - handleNativeResponse called.");const o=$r(e.id_token,St),i=this.createHomeAccountIdentifier(e,o),a=(p=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:n.accountId},this.correlationId))==null?void 0:p.homeAccountId;if((s=n.extraParameters)!=null&&s.child_client_id&&e.account.id!==n.accountId)this.logger.info("handleNativeServerResponse: Double broker flow detected, ignoring accountId mismatch");else if(i!==a&&e.account.id!==n.accountId)throw Ha(Bv);const l=await this.getDiscoveredAuthority({requestAuthority:n.authority}),c=dd(this.browserStorage,l,i,St,this.correlationId,o,e.client_info,void 0,o.tid,void 0,e.account.id,this.logger);e.expires_in=Number(e.expires_in);const d=await this.generateAuthenticationResult(e,n,o,c,l.canonicalAuthority,r);return await this.cacheAccount(c,this.correlationId),await this.cacheNativeTokens(e,n,i,o,e.access_token,d.tenantId,r),d}createHomeAccountIdentifier(e,n){return kt.generateHomeAccountId(e.client_info||A.EMPTY_STRING,vt.Default,this.logger,this.browserCrypto,n)}generateScopes(e,n){return n?_e.fromString(n):_e.fromString(e)}async generatePopAccessToken(e,n){if(n.tokenType===q.POP&&n.signPopToken){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const r=new jr(this.browserCrypto),o={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce};if(!n.keyId)throw I(Hu);return r.signPopToken(e.access_token,n.keyId,o)}else return e.access_token}async generateAuthenticationResult(e,n,r,o,i,a){const l=this.addTelemetryFromNativeResponse(e.properties.MATS),c=this.generateScopes(n.scope,e.scope),d=e.account.properties||{},p=d.UID||r.oid||r.sub||A.EMPTY_STRING,s=d.TenantId||r.tid||A.EMPTY_STRING,u=Qu(o.getAccountInfo(),void 0,r,e.id_token);
219u.nativeAccountId!==e.account.id&&(u.nativeAccountId=e.account.id);const h=await this.generatePopAccessToken(e,n),m=n.tokenType===q.POP?q.POP:q.BEARER;return{authority:i,uniqueId:p,tenantId:s,scopes:c.asArray(),account:u,idToken:e.id_token,idTokenClaims:r,accessToken:h,fromCache:l?this.isResponseFromCache(l):!1,expiresOn:xr(a+e.expires_in),tokenType:m,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}async cacheAccount(e,n){await this.browserStorage.setAccount(e,this.correlationId),this.browserStorage.removeAccountContext(e.getAccountInfo(),n)}cacheNativeTokens(e,n,r,o,i,a,l){const c=hs(r,n.authority,e.id_token||"",n.clientId,o.tid||""),d=n.tokenType===q.POP?A.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,p=l+d,s=this.generateScopes(e.scope,n.scope),u=fs(r,n.authority,i,n.clientId,o.tid||a,s.printScopes(),p,0,St,void 0,n.tokenType,void 0,n.keyId),h={idToken:c,accessToken:u};return this.nativeStorageManager.saveCacheRecord(h,this.correlationId,n.storeInCache)}getExpiresInValue(e,n){return e===q.POP?A.SHR_NONCE_VALIDITY:(typeof n=="string"?parseInt(n,10):n)||0}addTelemetryFromNativeResponse(e){const n=this.getMATSFromResponse(e);return n?(this.performanceClient.addFields({extensionId:this.platformAuthProvider.getExtensionId(),extensionVersion:this.platformAuthProvider.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}getMATSFromResponse(e){if(e)try{return JSON.parse(e)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const n=await this.getCanonicalAuthority(e),{scopes:r,...o}=e,i=new _e(r||[]);i.appendScopes(Kr);const a={...o,accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:i.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:this.getPrompt(e.prompt),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1,keyId:e.popKid};if(a.signPopToken&&e.popKid)throw b(Cv);if(this.handleExtraBrokerParams(a),a.extraParameters=a.extraParameters||{},a.extraParameters.telemetry=ct.MATS_TELEMETRY,e.authenticationScheme===q.POP){const l={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},c=new jr(this.browserCrypto);let d;if(a.keyId)d=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:a.keyId})),a.signPopToken=!1;else{const p=await S(c.generateCnf.bind(c),C.PopTokenGenerateCnf,this.logger,this.performanceClient,this.correlationId)(l,this.logger);d=p.reqCnfString,a.keyId=p.kid,a.signPopToken=!0}a.reqCnf=d}return this.addRequestSKUs(a),a}async getCanonicalAuthority(e){const n=e.authority||this.config.auth.authority;e.account&&await this.getDiscoveredAuthority({requestAuthority:n,requestAzureCloudOptions:e.azureCloudOptions,account:e.account});const r=new G(n);return r.validateAsUri(),r}getPrompt(e){switch(this.apiId){case Y.ssoSilent:case Y.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),xe.NONE}if(!e){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e){case xe.NONE:case xe.CONSENT:case xe.LOGIN:case xe.SELECT_ACCOUNT:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e} is not compatible with native flow`),b(_v)}
219}handleExtraBrokerParams(e){var i;const n=e.extraParameters&&e.extraParameters.hasOwnProperty(Ra)&&e.extraParameters.hasOwnProperty(Na)&&e.extraParameters.hasOwnProperty(Yn);if(!e.embeddedClientId&&!n)return;let r="";const o=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,r=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[Na],r=e.extraParameters[Yn]),e.extraParameters={child_client_id:r,child_redirect_uri:o},(i=this.performanceClient)==null||i.addFields({embeddedClientId:r,embeddedRedirectUri:o},this.correlationId)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */async function Od(t,e,n,r,o){const i=Ck({...t.auth,authority:e},n,r,o);if(rd(i,{sku:Ke.MSAL_SKU,version:Xn,os:"",cpu:""}),t.auth.protocolMode!==Qe.OIDC&&od(i,t.telemetry.application),n.platformBroker&&(jA(i),o.addFields({isPlatformAuthorizeRequest:!0},n.correlationId),n.authenticationScheme===q.POP)){const a=new Xt(r,o),l=new jr(a);let c;n.popKid?c=a.encodeKid(n.popKid):c=(await S(l.generateCnf.bind(l),C.PopTokenGenerateCnf,r,o,n.correlationId)(n,r)).reqCnfString,ad(i,c)}return cs(i,n.correlationId,o),i}async function Md(t,e,n,r,o){if(!n.codeChallenge)throw X($u);const i=await S(Od,C.GetStandardParams,r,o,n.correlationId)(t,e,n,r,o);return Ju(i,bu.CODE),xy(i,n.codeChallenge,A.S256_CODE_CHALLENGE_METHOD),An(i,n.extraQueryParameters||{}),hd(e,i,t.auth.encodeExtraQueryParams,n.extraQueryParameters)}async function Ld(t,e,n,r,o,i){if(!r.earJwk)throw b(md);const a=await Od(e,n,r,o,i);Ju(a,bu.IDTOKEN_TOKEN_REFRESHTOKEN),WA(a,r.earJwk);const l=new Map;An(l,r.extraQueryParameters||{});const c=hd(n,l,e.auth.encodeExtraQueryParams,r.extraQueryParameters);return Kv(t,c,a)}async function Dd(t,e,n,r,o,i){const a=await Od(e,n,r,o,i);Ju(a,bu.CODE),xy(a,r.codeChallenge,r.codeChallengeMethod||A.S256_CODE_CHALLENGE_METHOD),YA(a,r.authorizePostBodyParameters||{});const l=new Map;An(l,r.extraQueryParameters||{});const c=hd(n,l,e.auth.encodeExtraQueryParams,r.extraQueryParameters);return Kv(t,c,a)}function Kv(t,e,n){const r=t.createElement("form");return r.method="post",r.action=e,n.forEach((o,i)=>{const a=t.createElement("input");a.hidden=!0,a.name=i,a.value=o,r.appendChild(a)}),t.body.appendChild(r),r}async function $v(t,e,n,r,o,i,a,l,c,d){if(l.verbose("Account id found, calling WAM for token"),!d)throw b(wd);const p=new Xt(l,c),s=new Yi(r,o,p,l,a,r.system.navigationClient,n,c,d,e,i,t.correlationId),{userRequestState:u}=Gr.parseRequestState(p,t.state);return S(s.acquireToken.bind(s),C.NativeInteractionClientAcquireToken,l,c,t.correlationId)({...t,state:u,prompt:void 0})}async function Fa(t,e,n,r,o,i,a,l,c,d,p,s){if(Ot.removeThrottle(a,o.auth.clientId,t),e.accountId)return S($v,C.HandleResponsePlatformBroker,d,p,t.correlationId)(t,e.accountId,r,o,a,l,c,d,p,s);const u={...t,code:e.code||"",codeVerifier:n},h=new Fv(i,a,u,d,p);return await S(h.handleCodeResponse.bind(h),C.HandleCodeResponse,d,p,t.correlationId)(e,t)}async function Ud(t,e,n,r,o,i,a,l,c,d,p){if(Ot.removeThrottle(i,r.auth.clientId,t),Gy(e,t.state),!e.ear_jwe)throw b(Wy);if(!t.earJwk)throw b(md);const s=JSON.parse(await S(Yk,C.DecryptEarResponse,c,d,t.correlationId)(t.earJwk,e.ear_jwe));if(s.accountId)return S($v,C.HandleResponsePlatformBroker,c,d,t.correlationId)(t,s.accountId,n,r,i,a,l,c,d,p);const u=new Jn(r.auth.clientId,i,new Xt(c,d),c,null,null,d);u.validateTokenResponse(s);const h={code:"",state:t.state,nonce:t.nonce,client_info:s.client_info,cloud_graph_host_name:s.cloud_graph_host_name,cloud_instance_host_name:s.cloud_instance_host_name,cloud_instance_name:s.cloud_instance_name,msgraph_host:s.msgraph_host};return await S(u.handleServerTokenResponse.bind(u),C.HandleServerTokenResponse,c,d,t.correlationId)(s,o,We(),t,h,void 0,void 0,void 0,void 0)}/*! @azure/msal-browser v4.24.1 2025-09-30 */const KE=32;async function Ts(t,e,n){t.addQueueMeasurement(C.GeneratePkceCodes,n);const r=nt($E,C.GenerateCodeVerifier,e,t,n)(t,e,n),o=await S(GE,C.GenerateCodeChallengeFromVerifier,e,t,n)(r,t,e,n);return{verifier:r,challenge:o}}function $E(t,e,n){try{const r=new Uint8Array(KE);return nt(Gk,C.GetRandomValues,e,t,n)(r),xn(r)}catch{throw b(gd)}}async function GE(t,e,n,r){e.addQueueMeasurement(C.GenerateCodeChallengeFromVerifier,r);try{const o=await S(xv,C.Sha256Digest,n,e,r)(t,e,r);return xn(new Uint8Array(o))}catch{throw b(gd)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class Ba{constructor(e,n,r,o){this.logger=e,this.handshakeTimeoutMs=n,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(C.NativeMessageHandlerHandshake),this.platformAuthType=ct.PLATFORM_EXTENSION_PROVIDER}async sendMessage(e){this.logger.trace(this.platformAuthType+" - sendMessage called.");const n={method:oo.GetToken,request:e},r={channel:ct.CHANNEL_ID,extensionId:this.extensionId,responseId:It(),body:n};this.logger.trace(this.platformAuthType+" - Sending request to browser extension"),this.logger.tracePii(this.platformAuthType+` - Sending request to browser extension: ${JSON.stringify(r)}`),this.messageChannel.port1.postMessage(r);const o=await new Promise((a,l)=>{this.resolvers.set(r.responseId,{resolve:a,reject:l})});return this.validatePlatformBrokerResponse(o)}static async createProvider(e,n,r){e.trace("PlatformAuthExtensionH
219andler - createProvider called.");try{const o=new Ba(e,n,r,ct.PREFERRED_EXTENSION_ID);return await o.sendHandshakeRequest(),o}catch{const i=new Ba(e,n,r);return await i.sendHandshakeRequest(),i}}async sendHandshakeRequest(){this.logger.trace(this.platformAuthType+" - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:ct.CHANNEL_ID,extensionId:this.extensionId,responseId:It(),body:{method:oo.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=n=>{this.onChannelMessage(n)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((n,r)=>{this.handshakeResolvers.set(e.responseId,{resolve:n,reject:r}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),r(b(yv)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace(this.platformAuthType+" - onWindowMessage called"),e.source!==window)return;const n=e.data;if(!(!n.channel||n.channel!==ct.CHANNEL_ID)&&!(n.extensionId&&n.extensionId!==this.extensionId)&&n.body.method===oo.HandshakeRequest){const r=this.handshakeResolvers.get(n.responseId);if(!r){this.logger.trace(this.platformAuthType+`.onWindowMessage - resolver can't be found for request ${n.responseId}`);return}this.logger.verbose(n.extensionId?`Extension with id: ${n.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),r.reject(b(vv))}}onChannelMessage(e){this.logger.trace(this.platformAuthType+" - onChannelMessage called.");const n=e.data,r=this.resolvers.get(n.responseId),o=this.handshakeResolvers.get(n.responseId);try{const i=n.body.method;if(i===oo.Response){if(!r)return;const a=n.body.response;if(this.logger.trace(this.platformAuthType+" - Received response from browser extension"),this.logger.tracePii(this.platformAuthType+` - Received response from browser extension: ${JSON.stringify(a)}`),a.status!=="Success")r.reject(Ha(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?r.reject(Ha(a.result.code,a.result.description,a.result.ext)):r.resolve(a.result);else throw fc(Aa,"Event does not contain result.");this.resolvers.delete(n.responseId)}else if(i===oo.HandshakeResponse){if(!o){this.logger.trace(this.platformAuthType+`.onChannelMessage - resolver can't be found for request ${n.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=n.extensionId,this.extensionVersion=n.body.version,this.logger.verbose(this.platformAuthType+` - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(n.responseId)}}catch(i){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${i}`),this.logger.errorPii(`Unable to parse ${e}`),r?r.reject(i):o&&o.reject(i)}}validatePlatformBrokerResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw fc(Aa,"Response missing expected properties.")}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}getExtensionName(){var e;return this.getExtensionId()===ct.PREFERRED_EXTENSION_ID?"chrome":(e=this.getExtensionId())!=null&&e.length?"unknown":void 0}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class jd{constructor(e,n,r){this.logger=e,this.performanceClient=n,this.correlationId=r,this.platformAuthType=ct.PLATFORM_DOM_PRO
219VIDER}static async createProvider(e,n,r){var o;if(e.trace("PlatformAuthDOMHandler: createProvider called"),(o=window.navigator)!=null&&o.platformAuthentication){const i=await window.navigator.platformAuthentication.getSupportedContracts(ct.MICROSOFT_ENTRA_BROKERID);if(i!=null&&i.includes(ct.PLATFORM_DOM_APIS))return e.trace("Platform auth api available in DOM"),new jd(e,n,r)}}getExtensionId(){return ct.MICROSOFT_ENTRA_BROKERID}getExtensionVersion(){return""}getExtensionName(){return ct.DOM_API_NAME}async sendMessage(e){this.logger.trace(this.platformAuthType+" - Sending request to browser DOM API");try{const n=this.initializePlatformDOMRequest(e),r=await window.navigator.platformAuthentication.executeGetToken(n);return this.validatePlatformBrokerResponse(r)}catch(n){throw this.logger.error(this.platformAuthType+" - executeGetToken DOM API error"),n}}initializePlatformDOMRequest(e){this.logger.trace(this.platformAuthType+" - initializeNativeDOMRequest called");const{accountId:n,clientId:r,authority:o,scope:i,redirectUri:a,correlationId:l,state:c,storeInCache:d,embeddedClientId:p,extraParameters:s,...u}=e,h=this.getDOMExtraParams(u);return{accountId:n,brokerId:this.getExtensionId(),authority:o,clientId:r,correlationId:l||this.correlationId,extraParameters:{...s,...h},isSecurityTokenService:!1,redirectUri:a,scope:i,state:c,storeInCache:d,embeddedClientId:p}}validatePlatformBrokerResponse(e){if(e.hasOwnProperty("isSuccess")){if(e.hasOwnProperty("accessToken")&&e.hasOwnProperty("idToken")&&e.hasOwnProperty("clientInfo")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scopes")&&e.hasOwnProperty("expiresIn"))return this.logger.trace(this.platformAuthType+" - platform broker returned successful and valid response"),this.convertToPlatformBrokerResponse(e);if(e.hasOwnProperty("error")){const n=e;if(n.isSuccess===!1&&n.error&&n.error.code)throw this.logger.trace(this.platformAuthType+" - platform broker returned error response"),Ha(n.error.code,n.error.description,{error:parseInt(n.error.errorCode),protocol_error:n.error.protocolError,status:n.error.status,properties:n.error.properties})}}throw fc(Aa,"Response missing expected properties.")}convertToPlatformBrokerResponse(e){return this.logger.trace(this.platformAuthType+" - convertToNativeResponse called"),{access_token:e.accessToken,id_token:e.idToken,client_info:e.clientInfo,account:e.account,expires_in:e.expiresIn,scope:e.scopes,state:e.state||"",properties:e.properties||{},extendedLifetimeToken:e.extendedLifetimeToken??!1,shr:e.proofOfPossessionPayload}}getDOMExtraParams(e){return{...Object.entries(e).reduce((o,[i,a])=>(o[i]=String(a),o),{})}}}/*! @azure/msal-browser v4.24.1 2025-09-30 */async function VE(t,e,n,r){t.trace("getPlatformAuthProvider called",n);const o=qE();t.trace("Has client allowed platform auth via DOM API: "+o);let i;try{o&&(i=await jd.createProvider(t,e,n)),i||(t.trace("Platform auth via DOM API not available, checking for extension"),i=await Ba.createProvider(t,r||Dv,e))}catch(a){t.trace("Platform auth not available",a)}return i}function qE(){let t;try{return t=window[we.SessionStorage],(t==null?void 0:t.getItem(hE))==="true"}catch{return!1}}function Zo(t,e,n,r){if(e.trace("isPlatformAuthAllowed called"),!t.system.allowPlatformBroker)return e.trace("isPlatformAuthAllowed: allowPlatformBroker is not enabled, returning false"),!1;if(!n)return e.trace("isPlatformAuthAllowed: Platform auth provider is not initialized, returning false"),!1;if(r)switch(r){case q.BEARER:case q.POP:return e.trace("isPlatformAuthAllowed: authenticationScheme is supported, returning true"),!0;default:return e.trace("isPlatformAuthAllowed: authenticationScheme is not supported, returning false"),!1}return!0}/*! @azure/msal-browser v4.24.1 2025-09-30 */class QE extends qr{constructor(e,n,r,o,i,a,l,c,d,p){super(e,n,r,o,i,a,l,d,p),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=c,this.eventHandler=i}acquireToken(e,n){let r;try{if(r={popupName:this.generatePopupName(e.scopes||Kr,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window},this.performanceClient.addFields({isAsyncPopup:this.config.system.asyncPopups},this.correlationId),this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,r,n);{const i={...e,httpMethod:Hv(e,this.config.auth.protocolMode)};return this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),r.popup=this.openSizedPopup("about:blank",r),this.acquireTokenPopupAsync(i,r,n)}}catch(o){return Promise.reject(o)}}logout(e){try{this.logger.verbose("logoutPopup called");
219const n=this.initializeLogoutRequest(e),r={popupName:this.generateLogoutPopupName(n),popupWindowAttributes:(e==null?void 0:e.popupWindowAttributes)||{},popupWindowParent:(e==null?void 0:e.popupWindowParent)??window},o=e&&e.authority,i=e&&e.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,r,o,i)):(this.logger.verbose("asyncPopup set to false, opening popup"),r.popup=this.openSizedPopup("about:blank",r),this.logoutPopupAsync(n,r,o,i))}catch(n){return Promise.reject(n)}}async acquireTokenPopupAsync(e,n,r){this.logger.verbose("acquireTokenPopupAsync called");const o=await S(this.initializeAuthorizationRequest.bind(this),C.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,D.Popup);n.popup&&Lv(o.authority);const i=Zo(this.config,this.logger,this.platformAuthProvider,e.authenticationScheme);return o.platformBroker=i,this.config.auth.protocolMode===Qe.EAR?this.executeEarFlow(o,n):this.executeCodeFlow(o,n,r)}async executeCodeFlow(e,n,r){var c;const o=e.correlationId,i=this.initializeServerTelemetryManager(Y.acquireTokenPopup),a=r||await S(Ts,C.GeneratePkceCodes,this.logger,this.performanceClient,o)(this.performanceClient,this.logger,o),l={...e,codeChallenge:a.challenge};try{const d=await S(this.createAuthCodeClient.bind(this),C.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,o)({serverTelemetryManager:i,requestAuthority:l.authority,requestAzureCloudOptions:l.azureCloudOptions,requestExtraQueryParameters:l.extraQueryParameters,account:l.account});if(l.httpMethod===Bn.POST)return await this.executeCodeFlowWithPost(l,n,d,a.verifier);{const p=await S(Md,C.GetAuthCodeUrl,this.logger,this.performanceClient,o)(this.config,d.authority,l,this.logger,this.performanceClient),s=this.initiateAuthRequest(p,n);this.eventHandler.emitEvent(M.POPUP_OPENED,D.Popup,{popupWindow:s},null);const u=await this.monitorPopupForHash(s,n.popupWindowParent),h=nt(Io,C.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(u,this.config.auth.OIDCOptions.serverResponseType,this.logger);return await S(Fa,C.HandleResponseCode,this.logger,this.performanceClient,o)(e,h,a.verifier,Y.acquireTokenPopup,this.config,d,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}}catch(d){throw(c=n.popup)==null||c.close(),d instanceof J&&(d.setCorrelationId(this.correlationId),i.cacheFailedRequest(d)),d}}async executeEarFlow(e,n){const r=e.correlationId,o=await S(this.getDiscoveredAuthority.bind(this),C.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,r)({requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account}),i=await S(kd,C.GenerateEarKey,this.logger,this.performanceClient,r)(),a={...e,earJwk:i},l=n.popup||this.openPopup("about:blank",n);(await Ld(l.document,this.config,o,a,this.logger,this.performanceClient)).submit();const d=await S(this.monitorPopupForHash.bind(this),C.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,r)(l,n.popupWindowParent),p=nt(Io,C.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(d,this.config.auth.OIDCOptions.serverResponseType,this.logger);return S(Ud,C.HandleResponseEar,this.logger,this.performanceClient,r)(a,p,Y.acquireTokenPopup,this.config,o,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async executeCodeFlowWithPost(e,n,r,o){const i=e.correlationId,a=await S(this.getDiscoveredAuthority.bind(this),C.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,i)({requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account}),l=n.popup||this.openPopup("about:blank",n);(await Dd(l.document,this.config,a,e,this.logger,this.performanceClient)).submit();const d=await S(this.monitorPopupForHash.bind(this),C.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,i)(l,n.popupWindowParent),p=nt(Io,C.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(d,this.config.auth.OIDCOptions.serverResponseType,this.logger);return S(Fa,C.HandleResponseCode,this.logger,this.performanceClient,i)(e,p,o,Y.acquireTokenPopup,this.config,r,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async logoutPopupAsync(e,n,r,o){var a,l,c;this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(M.LOGOUT_START,D.Popup,e);const i=this.initializeServerTelemetryManager(Y.logoutPopup);try{await this.clearCacheOnLogout(this.correlationId,e.account);const d=await S(this.createAuthCodeClient.bind(this),C.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:i,requestAuthority:r,account:e.account||void 0});try{d.authority.endSessionEndpoint}catch{if((a=e.account)!=null&&a.homeAccountId&&e.postLogoutRedirectUri&&d.authority.protocolMode===Qe.OIDC){
219if(this.eventHandler.emitEvent(M.LOGOUT_SUCCESS,D.Popup,e),o){const u={apiId:Y.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},h=G.getAbsoluteUrl(o,Gt());await this.navigationClient.navigateInternal(h,u)}(l=n.popup)==null||l.close();return}}const p=d.getLogoutUri(e);this.eventHandler.emitEvent(M.LOGOUT_SUCCESS,D.Popup,e);const s=this.openPopup(p,n);if(this.eventHandler.emitEvent(M.POPUP_OPENED,D.Popup,{popupWindow:s},null),await this.monitorPopupForHash(s,n.popupWindowParent).catch(()=>{}),o){const u={apiId:Y.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},h=G.getAbsoluteUrl(o,Gt());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${h}`),await this.navigationClient.navigateInternal(h,u)}else this.logger.verbose("No main window navigation requested")}catch(d){throw(c=n.popup)==null||c.close(),d instanceof J&&(d.setCorrelationId(this.correlationId),i.cacheFailedRequest(d)),this.eventHandler.emitEvent(M.LOGOUT_FAILURE,D.Popup,null,d),this.eventHandler.emitEvent(M.LOGOUT_END,D.Popup),d}this.eventHandler.emitEvent(M.LOGOUT_END,D.Popup)}initiateAuthRequest(e,n){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,n);throw this.logger.error("Navigate url is empty"),b(ys)}monitorPopupForHash(e,n){return new Promise((r,o)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const i=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(i),o(b(Jo));return}let a="";try{a=e.location.href}catch{}if(!a||a==="about:blank")return;clearInterval(i);let l="";const c=this.config.auth.OIDCOptions.serverResponseType;e&&(c===ss.QUERY?l=e.location.search:l=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),r(l)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e,n)})}openPopup(e,n){try{let r;if(n.popup?(r=n.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),r.location.assign(e)):typeof n.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),r=this.openSizedPopup(e,n)),!r)throw b(nv);return r.focus&&r.focus(),this.currentWindow=r,n.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),r}catch(r){throw this.logger.error("error opening popup "+r.message),b(tv)}}openSizedPopup(e,{popupName:n,popupWindowAttributes:r,popupWindowParent:o}){var h,m,v,_;const i=o.screenLeft?o.screenLeft:o.screenX,a=o.screenTop?o.screenTop:o.screenY,l=o.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,c=o.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let d=(h=r.popupSize)==null?void 0:h.width,p=(m=r.popupSize)==null?void 0:m.height,s=(v=r.popupPosition)==null?void 0:v.top,u=(_=r.popupPosition)==null?void 0:_.left;return(!d||d<0||d>l)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),d=Ke.POPUP_WIDTH),(!p||p<0||p>c)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),p=Ke.POPUP_HEIGHT),(!s||s<0||s>c)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),s=Math.max(0,c/2-Ke.POPUP_HEIGHT/2+a)),(!u||u<0||u>l)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),u=Math.max(0,l/2-Ke.POPUP_WIDTH/2+i)),o.open(e,n,`width=${d}, height=${p}, top=${s}, left=${u}, scrollbars=yes`)}unloadWindow(e){this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e,n){e.close(),n.removeEventListener("beforeunload",this.unloadWindow)}generatePopupName(e,n){return`${Ke.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${n}.${this.correlationId}`}generateLogoutPopupName(e){const n=e.account&&e.account.homeAccountId;return`${Ke.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${n}.${this.correlationId}`}}/*! @azure/msal-browser v4.24.1 2025-09-30 */function WE(){if(typeof window>"u"||typeof window.performance>"u"||typeof window.performance.getEntriesByType!="function")return;const t=window.performance.getEntriesByType("navigation"),e=t.length?t[0]:void 0;return e==null?void 0:e.type}class YE extends qr{constructor(e,n,r,o,i,a,l,c,d,p){super(e,n,r,o,i,a,l,d,p),this.nativeStorage=c}async acquireToken(e){const n=await S(this.initializeAuthorizationRequest.bind(this),C.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,D.Redirect);n.platformBroker=Zo(this.config,this.logger,this.platformAuthProvider,e.authenticationScheme);const r=i=>{i.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.resetRequestCache(),this.eventHandler.emitEvent(M.RESTORE_FROM_BFCACHE,D.Redirect))},o=this.getRedirectStartPage(e.redirectStartPage);this.logger.verbosePii(`Redirect start page: ${o}`),this.browserStorage.setTemporaryCache(he.ORIGIN_URI,o,!0),window.addEventListener("pageshow",r);try{this.config.auth.protocolMode===Qe.EAR?await this.executeEarFlow(n):await this.executeCodeFlow(n,e.onRedirectNavigate)}catch(i){throw i instanceof J&&i.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",r),i}}async executeCodeFlow(e,n){const r=e.correlationId,o=this.initializeServerTelemetryManager(Y.acquireTokenRedirect),i=await S(Ts,C.GeneratePkceCodes,this.logger,this.performanceClient,r)(this.performanceClient,this.logger,r),a={...e,codeChallenge:i.challenge};this.browserStorage.cacheAuthorizeRequest(a,i.verifier);try{if(a.httpMethod===Bn.POST)return await this.executeCodeFlowWithPost(a);{const l=await S(this.createAuthCodeClient.bind(this),C.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:a.authority,requestAzureCloudOptions:a.azureCloudOptions,requestExtraQueryParameters:a.extraQueryParameters,account:a.account}),c=await S(Md,C.GetAuthCodeUrl,this.logger,this.performanceClient,e.correlationId)(this.config,l.authority,a,this.logger,this.performanceClient);return await this.initiateAuthRequest(c,n)}}catch(l){throw l instanceof J&&(l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l)),l}}
219async executeEarFlow(e){const n=e.correlationId,r=await S(this.getDiscoveredAuthority.bind(this),C.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,n)({requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account}),o=await S(kd,C.GenerateEarKey,this.logger,this.performanceClient,n)(),i={...e,earJwk:o};return this.browserStorage.cacheAuthorizeRequest(i),(await Ld(document,this.config,r,i,this.logger,this.performanceClient)).submit(),new Promise((l,c)=>{setTimeout(()=>{c(b(Ua,"failed_to_redirect"))},this.config.system.redirectNavigationTimeout)})}async executeCodeFlowWithPost(e){const n=e.correlationId,r=await S(this.getDiscoveredAuthority.bind(this),C.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,n)({requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return this.browserStorage.cacheAuthorizeRequest(e),(await Dd(document,this.config,r,e,this.logger,this.performanceClient)).submit(),new Promise((i,a)=>{setTimeout(()=>{a(b(Ua,"failed_to_redirect"))},this.config.system.redirectNavigationTimeout)})}async handleRedirectPromise(e="",n,r,o){const i=this.initializeServerTelemetryManager(Y.handleRedirectPromise);try{const[a,l]=this.getRedirectResponse(e||"");if(!a)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.resetRequestCache(),WE()!=="back_forward"?o.event.errorCode="no_server_response":this.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const c=this.browserStorage.getTemporaryCache(he.ORIGIN_URI,!0)||A.EMPTY_STRING,d=pf(c),p=pf(window.location.href);if(d===p&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),c.indexOf("#")>-1&&Xk(c),await this.handleResponse(a,n,r,i);if(this.config.auth.navigateToLoginRequestUrl){if(!xd()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(he.URL_HASH,l,!0);const s={apiId:Y.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let u=!0;if(!c||c==="null"){const h=eE();this.browserStorage.setTemporaryCache(he.ORIGIN_URI,h,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),u=await this.navigationClient.navigateInternal(h,s)}else this.logger.verbose(`Navigating to loginRequestUrl: ${c}`),u=await this.navigationClient.navigateInternal(c,s);if(!u)return await this.handleResponse(a,n,r,i)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(a,n,r,i);return null}catch(a){throw a instanceof J&&(a.setCorrelationId(this.correlationId),i.cacheFailedRequest(a)),a}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let n=e;n||(this.config.auth.OIDCOptions.serverResponseType===ss.QUERY?n=window.location.search:n=window.location.hash);let r=Ea(n);if(r){try{bE(r,this.browserCrypto,D.Redirect)}catch(i){return i instanceof J&&this.logger.error(`Interaction type validation failed due to ${i.errorCode}: ${i.errorMessage}`),[null,""]}return bv(window),this.logger.verbose("Hash contains known properties, returning response hash"),[r,n]}const o=this.browserStorage.getTemporaryCache(he.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(he.URL_HASH)),o&&(r=Ea(o),r)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[r,o]):[null,""]}async handleResponse(e,n,r,o){if(!e.state)throw b(yd);if(e.ear_jwe){const l=await S(this.getDiscoveredAuthority.bind(this),C.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,n.correlationId)({requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account});return S(Ud,C.HandleResponseEar,this.logger,this.performanceClient,n.correlationId)(n,e,Y.acquireTokenRedirect,this.config,l,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}const a=await S(this.createAuthCodeClient.bind(this),C.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:n.authority});return S(Fa,C.HandleResponseCode,this.logger,this.performanceClient,n.correlationId)(n,e,r,Y.acquireTokenRedirect,this.config,a,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async initiateAuthRequest(e,n){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const r={apiId:Y.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},o=n||this.config.auth.onRedirectNavigate;if(typeof o=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),o(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did n
219ot return false, navigating"),await this.navigationClient.navigateExternal(e,r);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await this.navigationClient.navigateExternal(e,r);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),b(ys)}async logout(e){var o;this.logger.verbose("logoutRedirect called");const n=this.initializeLogoutRequest(e),r=this.initializeServerTelemetryManager(Y.logout);try{this.eventHandler.emitEvent(M.LOGOUT_START,D.Redirect,e),await this.clearCacheOnLogout(this.correlationId,n.account);const i={apiId:Y.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=await S(this.createAuthCodeClient.bind(this),C.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:e&&e.authority,requestExtraQueryParameters:e==null?void 0:e.extraQueryParameters,account:e&&e.account||void 0});if(a.authority.protocolMode===Qe.OIDC)try{a.authority.endSessionEndpoint}catch{if((o=n.account)!=null&&o.homeAccountId){this.eventHandler.emitEvent(M.LOGOUT_SUCCESS,D.Redirect,n);return}}const l=a.getLogoutUri(n);if(this.eventHandler.emitEvent(M.LOGOUT_SUCCESS,D.Redirect,n),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(l)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,ln.SIGNOUT),await this.navigationClient.navigateExternal(l,i);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,ln.SIGNOUT),await this.navigationClient.navigateExternal(l,i);return}}catch(i){throw i instanceof J&&(i.setCorrelationId(this.correlationId),r.cacheFailedRequest(i)),this.eventHandler.emitEvent(M.LOGOUT_FAILURE,D.Redirect,null,i),this.eventHandler.emitEvent(M.LOGOUT_END,D.Redirect),i}this.eventHandler.emitEvent(M.LOGOUT_END,D.Redirect)}getRedirectStartPage(e){const n=e||window.location.href;return G.getAbsoluteUrl(n,Gt())}}/*! @azure/msal-browser v4.24.1 2025-09-30 */async function JE(t,e,n,r,o){if(e.addQueueMeasurement(C.SilentHandlerInitiateAuthRequest,r),!t)throw n.info("Navigate url is empty"),b(ys);return o?S(eI,C.SilentHandlerLoadFrame,n,e,r)(t,o,e,r):nt(tI,C.SilentHandlerLoadFrameSync,n,e,r)(t)}async function XE(t,e,n,r,o){const i=Ss();if(!i.contentDocument)throw"No document associated with iframe!";return(await Dd(i.contentDocument,t,e,n,r,o)).submit(),i}async function ZE(t,e,n,r,o){const i=Ss();if(!i.contentDocument)throw"No document associated with iframe!";return(await Ld(i.contentDocument,t,e,n,r,o)).submit(),i}async function $f(t,e,n,r,o,i,a){return r.addQueueMeasurement(C.SilentHandlerMonitorIframeForHash,i),new Promise((l,c)=>{e<Ac&&o.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${e}ms) than the default (${Ac}ms). This may result in timeouts.`);const d=window.setTimeout(()=>{window.clearInterval(p),c(b(rv))},e),p=window.setInterval(()=>{let s="";const u=t.contentWindow;try{s=u?u.location.href:""}catch{}if(!s||s==="about:blank")return;let h="";u&&(a===ss.QUERY?h=u.location.search:h=u.location.hash),window.clearTimeout(d),window.clearInterval(p),l(h)},n)}).finally(()=>{nt(nI,C.RemoveHiddenIframe,o,r,i)(t)})}function eI(t,e,n,r){return n.addQueueMeasurement(C.SilentHandlerLoadFrame,r),new Promise((o,i)=>{const a=Ss();window.setTimeout(()=>{if(!a){i("Unable to load iframe");return}a.src=t,o(a)},e)})}function tI(t){const e=Ss();return e.src=t,e}function Ss(){const t=document.createElement("iframe");return t.className="msalSilentIframe",t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(t),t}function nI(t){document.body===t.parentNode&&document.body.removeChild(t)}/*! @azure/msal-browser v4.24.1 2025-09-30 */class rI extends qr{constructor(e,n,r,o,i,a,l,c,d,p,s){super(e,n,r,o,i,a,c,p,s),this.apiId=l,this.nativeStorage=d}async acquireToken(e){this.performanceClient.addQueueMeasurement(C.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const n={...e};n.prompt?n.prompt!==xe.NONE&&n.prompt!==xe.NO_SESSION&&(this.logger.warning(`SilentIframeClient. Replacing invalid prompt ${n.prompt} with ${xe.NONE}`),n.prompt=xe.NONE):n.prompt=xe.NONE;const r=await S(this.initializeAuthorizationRequest.bind(this),C.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(n,D.Silent);return r.platformBroker=Zo(this.config,this.logger,this.platformAuthProvider,r.authenticationScheme),Lv(r.authority),this.config.auth.protocolMode===Qe.EAR?this.executeEarFlow(r):this.executeCodeFlow(r)}async executeCodeFlow(e){let n;const r=this.initializeServerTelemetryManager(this.apiId);try{return n=await S(this.createAuthCodeClient.bind(this),C.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:r,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account}),await S(this.silentTokenHelper.bind(this),C.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(n,e)}catch(o){if(o instanceof J&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),!n||!(o instanceof J)||o.errorCode!==Ke.INVA
219LID_GRANT_ERROR)throw o;return this.performanceClient.addFields({retryError:o.errorCode},this.correlationId),await S(this.silentTokenHelper.bind(this),C.SilentIframeClientTokenHelper,this.logger,this.performanceClient,this.correlationId)(n,e)}}async executeEarFlow(e){const n=e.correlationId,r=await S(this.getDiscoveredAuthority.bind(this),C.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,n)({requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account}),o=await S(kd,C.GenerateEarKey,this.logger,this.performanceClient,n)(),i={...e,earJwk:o},a=await S(ZE,C.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,n)(this.config,r,i,this.logger,this.performanceClient),l=this.config.auth.OIDCOptions.serverResponseType,c=await S($f,C.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,n)(a,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,n,l),d=nt(Io,C.DeserializeResponse,this.logger,this.performanceClient,n)(c,l,this.logger);return S(Ud,C.HandleResponseEar,this.logger,this.performanceClient,n)(i,d,this.apiId,this.config,r,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}logout(){return Promise.reject(b(vs))}async silentTokenHelper(e,n){const r=n.correlationId;this.performanceClient.addQueueMeasurement(C.SilentIframeClientTokenHelper,r);const o=await S(Ts,C.GeneratePkceCodes,this.logger,this.performanceClient,r)(this.performanceClient,this.logger,r),i={...n,codeChallenge:o.challenge};let a;if(n.httpMethod===Bn.POST)a=await S(XE,C.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,r)(this.config,e.authority,i,this.logger,this.performanceClient);else{const p=await S(Md,C.GetAuthCodeUrl,this.logger,this.performanceClient,r)(this.config,e.authority,i,this.logger,this.performanceClient);a=await S(JE,C.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,r)(p,this.performanceClient,this.logger,r,this.config.system.navigateFrameWait)}const l=this.config.auth.OIDCOptions.serverResponseType,c=await S($f,C.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,r)(a,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,r,l),d=nt(Io,C.DeserializeResponse,this.logger,this.performanceClient,r)(c,l,this.logger);return S(Fa,C.HandleResponseCode,this.logger,this.performanceClient,r)(n,d,o.verifier,this.apiId,this.config,e,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class oI extends qr{async acquireToken(e){this.performanceClient.addQueueMeasurement(C.SilentRefreshClientAcquireToken,e.correlationId);const n=await S(bd,C.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger),r={...e,...n};e.redirectUri&&(r.redirectUri=this.getRedirectUri(e.redirectUri));const o=this.initializeServerTelemetryManager(Y.acquireTokenSilent_silentFlow),i=await this.createRefreshTokenClient({serverTelemetryManager:o,authorityUrl:r.authority,azureCloudOptions:r.azureCloudOptions,account:r.account});return S(i.acquireTokenByRefreshToken.bind(i),C.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(r).catch(a=>{throw a.setCorrelationId(this.correlationId),o.cacheFailedRequest(a),a})}logout(){return Promise.reject(b(vs))}async createRefreshTokenClient(e){const n=await S(this.getClientConfiguration.bind(this),C.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new vk(n,this.performanceClient)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class iI{constructor(e,n,r,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=n,this.logger=r,this.cryptoObj=o}async loadExternalTokens(e,n,r){if(!this.isBrowserEnvironment)throw b(_s);const o=e.correlationId||It(),i=n.id_token?$r(n.id_token,St):void 0,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},l=e.authority?new Oe(Oe.generateAuthority(e.authority,e.azureCloudOptions),this.config.system.networkClient,this.storage,a,this.logger,e.correlationId||It()):void 0,c=await this.loadAccount(e,r.clientInfo||n.client_info||"",o,i,l),d=await this.loadIdToken(n,c.homeAccountId,c.environment,c.realm,o),p=await this.loadAccessToken(e,n,c.homeAccountId,c.environment,c.realm,r,o),s=await this.loadRefreshToken(n,c.homeAccountId,c.environment,o);return this.generateAuthenticationResult(e,{account:c,idToken:d,accessToken:p,refreshToken:s},i,l)}
219async loadAccount(e,n,r,o,i){if(this.logger.verbose("TokenCache - loading account"),e.account){const d=kt.createFromAccountInfo(e.account);return await this.storage.setAccount(d,r),d}else if(!i||!n&&!o)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),b(hv);const a=kt.generateHomeAccountId(n,i.authorityType,this.logger,this.cryptoObj,o),l=o==null?void 0:o.tid,c=dd(this.storage,i,a,St,r,o,n,i.hostnameAndPort,l,void 0,void 0,this.logger);return await this.storage.setAccount(c,r),c}async loadIdToken(e,n,r,o,i){if(!e.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const a=hs(n,r,e.id_token,this.config.auth.clientId,o);return await this.storage.setIdTokenCredential(a,i),a}async loadAccessToken(e,n,r,o,i,a,l){if(n.access_token)if(n.expires_in){if(!n.scope&&(!e.scopes||!e.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null}else return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;else return this.logger.verbose("TokenCache - no access token found in response"),null;this.logger.verbose("TokenCache - loading access token");const c=n.scope?_e.fromString(n.scope):new _e(e.scopes),d=a.expiresOn||n.expires_in+We(),p=a.extendedExpiresOn||(n.ext_expires_in||n.expires_in)+We(),s=fs(r,o,n.access_token,this.config.auth.clientId,i,c.printScopes(),d,p,St);return await this.storage.setAccessTokenCredential(s,l),s}async loadRefreshToken(e,n,r,o){if(!e.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const i=Uy(n,r,e.refresh_token,this.config.auth.clientId,e.foci,void 0,e.refresh_token_expires_in);return await this.storage.setRefreshTokenCredential(i,o),i}generateAuthenticationResult(e,n,r,o){var p,s,u;let i="",a=[],l=null,c;n!=null&&n.accessToken&&(i=n.accessToken.secret,a=_e.fromString(n.accessToken.target).asArray(),l=xr(n.accessToken.expiresOn),c=xr(n.accessToken.extendedExpiresOn));const d=n.account;return{authority:o?o.canonicalAuthority:"",uniqueId:n.account.localAccountId,tenantId:n.account.realm,scopes:a,account:d.getAccountInfo(),idToken:((p=n.idToken)==null?void 0:p.secret)||"",idTokenClaims:r||{},accessToken:i,fromCache:!0,expiresOn:l,correlationId:e.correlationId||"",requestId:"",extExpiresOn:c,familyId:((s=n.refreshToken)==null?void 0:s.familyId)||"",tokenType:((u=n==null?void 0:n.accessToken)==null?void 0:u.tokenType)||"",state:e.state||"",cloudGraphHostName:d.cloudGraphHostName||"",msGraphHost:d.msGraphHost||"",fromNativeBroker:!1}}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class aI extends $y{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v4.24.1 2025-09-30 */class sI extends qr{constructor(e,n,r,o,i,a,l,c,d,p){super(e,n,r,o,i,a,c,d,p),this.apiId=l}async acquireToken(e){if(!e.code)throw b(fv);const n=await S(this.initializeAuthorizationRequest.bind(this),C.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,D.Silent),r=this.initializeServerTelemetryManager(this.apiId);try{const o={...n,code:e.code},i=await S(this.getClientConfiguration.bind(this),C.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:r,requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),a=new aI(i);this.logger.verbose("Auth code client created");const l=new Fv(a,this.browserStorage,o,this.logger,this.performanceClient);return await S(l.handleCodeResponseFromServer.bind(l),C.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},n,!1)}catch(o){throw o instanceof J&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),o}}logout(){return Promise.reject(b(vs))}}/*! @azure/msal-browser v4.24.1 2025-09-30 */function lI(t,e,n){var a;const r=((a=window.msal)==null?void 0:a.clientIds)||[],o=r.length,i=r.filter(l=>l===t).length;i>1&&n.warning("There is already an instance of MSAL.js in the window with the same client id."),e.add({msalInstanceCount:o,sameClientIdInstanceCount:i})}/*! @azure/msal-browser v4.24.1 2025-09-30 */function Mi(t,e,n){try{Pd(t)}catch(r){throw e.end({success:!1},r,n),r}}class As{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.
219isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Xt(this.logger,this.performanceClient):ka,this.eventHandler=new PE(this.logger),this.browserStorage=this.isBrowserEnvironment?new xc(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler,ck(this.config.auth)):wE(this.config.auth.clientId,this.logger,this.performanceClient,this.eventHandler);const n={cacheLocation:we.MemoryStorage,cacheRetentionDays:5,temporaryCacheLocation:we.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new xc(this.config.auth.clientId,n,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler),this.tokenCache=new iI(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}static async createController(e,n){const r=new As(e);return await r.initialize(n),r}trackPageVisibility(e){e&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},e))}async initialize(e,n){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, exiting early."),this.initialized=!0,this.eventHandler.emitEvent(M.INITIALIZE_END);return}const r=(e==null?void 0:e.correlationId)||this.getRequestCorrelationId(),o=this.config.system.allowPlatformBroker,i=this.performanceClient.startMeasurement(C.InitializeClientApplication,r);if(this.eventHandler.emitEvent(M.INITIALIZE_START),!n)try{this.logMultipleInstances(i)}catch{}if(await S(this.browserStorage.initialize.bind(this.browserStorage),C.InitializeCache,this.logger,this.performanceClient,r)(r),o)try{this.platformAuthProvider=await VE(this.logger,this.performanceClient,r,this.config.system.nativeBrokerHandshakeTimeout)}catch(a){this.logger.verbose(a)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),nt(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),C.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient,r)(r)),this.config.system.asyncPopups&&await this.preGeneratePkceCodes(r),this.initialized=!0,this.eventHandler.emitEvent(M.INITIALIZE_END),i.end({allowPlatformBroker:o,success:!0})}async handleRedirectPromise(e){if(this.logger.verbose("handleRedirectPromise called"),Mv(this.initialized),this.isBrowserEnvironment){const n=e||"";let r=this.redirectResponse.get(n);return typeof r>"u"?(r=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(n,r),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),r}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async handleRedirectPromiseInternal(e){var c;if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;if(((c=this.browserStorage.getInteractionInProgress())==null?void 0:c.type)===ln.SIGNOUT)return this.logger.verbose("handleRedirectPromise removing interaction_in_progress flag and returning null after sign-out"),this.browserStorage.setInteractionInProgress(!1),Promise.resolve(null);const r=this.getAllAccounts(),o=this.browserStorage.getCachedNativeRequest(),i=o&&this.platformAuthProvider&&!e;let a;this.eventHandler.emitEvent(M.HANDLE_REDIRECT_START,D.Redirect);let l;try{if(i&&this.platformAuthProvider){a=this.performanceClient.startMeasurement(C.AcquireTokenRedirect,(o==null?void 0:o.correlationId)||""),this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a.add({isPlatformBrokerRequest:!0});const d=new Yi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Y.handleRedirectPromise,this.performanceClient,this.platformAuthProvider,o.accountId,this.nativeInternalStorage,o.correlationId);l=S(d.handleRedirectPromise.bind(d),C.HandleNativeRedirectPromiseMeasurement,this.logger,this.performanceClient,a.event.correlationId)(this.performanceClient,a.event.correlationId)}else{const[d,p]=this.browserStorage.getCachedRequest(),s=d.correlationId;a=this.performanceClient.startMeasurement(C.AcquireTokenRedirect,s),this.logger.trace("handleRedirectPromise - acquiring token from web flow");const u=this.createRedirectClient(s);l=S(u.handleRedirectPromise.bind(u),C.HandleRedirectPromiseMeasurement,this.logger,this.performanceClient,a.event.correlationId)(e,d,p,a)}}catch(d){throw this.browserStorage.resetRequestCache(),d}return l.then(d=>(d?(this.browserStorage.resetRequestCache(),r.length<this.getAllAccounts().length?(this.eventHandler.emitEvent(M.LOGIN_SUCCESS,D.Redirect,d),this.logger.verbose("handleRedirectResponse returned result, login success")):(this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_SUCCESS,D.Redirect,d),this.logger.verbose("handleRedirectResponse returned result, acquire token success")),a.end({success:!0},void 0,d.account)):a.event.errorCode?a.end({success:!1},void 0):a.discard(),this.eventHandler.emitEvent(M.HANDLE_REDIRECT_END,D.Redirect),d)).catch(d=>{this.browserStorage.resetRequestCache();const p=d;throw r.length>0?this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_FAILURE,D.Redirect,null,p):this.eventHandler.emitEvent(M.LOGIN_FAILURE,D.Redirect,null,p),this.eventHandler.emitEvent(M.HANDLE_REDIRECT_END,D.Redirect),a.end({success:!1},p),d})}async acquireTokenRedirect(e){const n=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",n);const r=this.performanceClient.startMeasurement(C.AcquireTokenPreRedirect,n);r.add({scenarioId:e.scenarioId});const o=e.onRedirectNavigate;if(o)e.onRedirectNavigate=a=>{const l=typeof o=="function"?o(a):void 0;return r.add({navigateCallbackResult:l!==!1}),r.event=r.end({success:!0},void 0,e.account)||r.event,l};else{const a=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=l=>{const c=typeof a=="function"?a(l):void 0;return r.add({navigateCallbackResult:c!==!1}),r.event=r.end({success:!0},void 0,e.account)||r.event,c}}const i=this.getAllAccounts().length>0;try{Mf(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0,ln.SIGNIN),i?this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_START,D.Redirect,e):this.eventHandler.emitEvent(M.LOGIN_START,D.Redirect,e);let a;return this.platformAuthProvider&&this.canUsePlatformBroker(e)?a=new Yi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Y.acquireTokenRedirect,this.performanceClient,this.platformAuthProvider,this.getNativeAccountId(e),this.nativeInternalStorage,n).acquireTokenRedirect(e,r).catch(c=>{if(r.add({brokerErrorName:c.name,brokerErrorCode:c.errorCode}),c instanceof Mt&&sr(c))return this.platformAuthProvider=void 0,this.createRedirectClient(n).acquireToken(e);if(c instanceof Et)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(n).acquireToken(e);throw c}):a=this.createRedirectClient(n).acquireToken(e),await a}catch(a){throw this.browserStorage.resetRequestCache(),r.event.status===2?this.performanceClient.startMeasurement(C.AcquireTokenRedirect,n).end({success:!1},a,e.account):r.end({success:!1},a,e.account),i?this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_FAILURE,D.Redirect,null,a):this.eventHandler.emitEvent(M.LOGIN_FAILURE,D.Redirect,null,a),a}}acquireTokenPopup(e){const n=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(C.AcquireTokenPopup,n);r.add({scenarioId:e.scenarioId});try{this.logger.verbose("acquireTokenPopup called",n),Mi(this.initialized,r,e.account),this.browserStorage.setInteractionInProgress(!0,ln.SIGNIN)}catch(l){return Promise.reject(l)}const o=this.getAllAccounts();o.length>0?this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_START,D.Popup,e):this.eventHandler.emitEvent(M.LOGIN_START,D.Popup,e);let i;const a=this.getPreGeneratedPkceCodes(n);return this.canUsePlatformBroker(e)?(r.add({isPlatformBrokerRequest:!0}),i=this.acquireTokenNative({...e,correlationId:n},Y.acquireTokenPopup).then(l=>(r.end({success:!0},void 0,l.account),l)).catch(l=>{if(r.add({brokerErrorName:l.name,brokerErrorCode:l.errorCode}),l instanceof Mt&&sr(l))return this.platformAuthProvider=void 0,this.createPopupClient(n).acquireToken(e,a);if(l instanceof Et)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(n).acquireToken(e,a);throw l})):i=this.createPopupClient(n).acquireToken(e,a),i.then(l=>(o.length<this.getAllAccounts().length?this.eventHandler.emitEvent(M.LOGIN_SUCCESS,D.Popup,l):this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_SUCCESS,D.Popup,l),r.end({success:!0,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length},void 0,l.account),l)).catch(l=>(o.length>0?this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_FAILURE,D.Popup,null,l):this.eventHandler.emitEvent(M.LOGIN_FAILURE,D.Popup,null,l),r.end({success:!1},l,e.account),Promise.reject(l))).finally(async()=>{this.browserStorage.setInteractionInProgress(!1),this.config.system.asyncPopups&&await this.preGeneratePkceCodes(n)})}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){var i,a,l;const n=this.getRequestCorrelationId(e),r={...e,prompt:e.prompt,correlationId:n};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(C.SsoSilent,n),(i=this.ssoSilentMeasurement)==null||i.add({scenarioId:e.scenarioId}),Mi(this.initialized,this.ssoSilentMeasurement,e.account),(a=this.ssoSilentMeasurement)==null||a.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(M.SSO_SILENT_START,D.Silent,r);let o;return this.canUsePlatformBroker(r)?((l=this.ssoSilentMeasurement)==null||l.add({isPlatformBrokerRequest:!0}),o=this.acquireTokenNative(r,Y.ssoSilent).catch(c=>{var d;if((d=this.ssoSilentMeasurement)==null||d.add({brokerErrorName:c.name,brokerErrorCode:c.errorCode}),c instanceof Mt&&sr(c))return this.platformAuthProvider=void 0,this.createSilentIframeClient(r.correlationId).acquireToken(r);throw c})):o=this.createSilentIframeClient(r.correlationId).acquireToken(r),o.then(c=>{var d;return this.eventHandler.emitEvent(M.SSO_SILENT_SUCCESS,D.Silent,c),(d=this.ssoSilentMeasurement)==null||d.end({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length},void 0,c.account),c}).catch(c=>{var d;throw this.eventHandler.emitEvent(M.SSO_SILENT_FAILURE,D.Silent,null,c),(d=this.ssoSilentMeasurement)==null||d.end({success:!1},c,e.account),c}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const n=this.getRequestCorrelationId(e);this.logger.trace("acquireTokenByCode called",n);const r=this.performanceClient.startMeasurement(C.AcquireTokenByCode,n);Mi(this.initialized,r),this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_BY_CODE_START,D.Silent,e),r.add({scenarioId:e.scenarioId});try{if(e.code&&e.nativeAccountId)throw b(gv);if(e.code){const o=e.code;let i=this.hybridAuthCodeResponses.get(o);return i?(this.logger.verbose("Existing acquireTokenByCode request found",n),r.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",n),i=this.acquireTokenByCodeAsync({...e,correlationId:n}).then(a=>(this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_BY_CODE_SUCCESS,D.Silent,a),this.hybridAuthCodeResponses.delete(o),r.end({success:!0,accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length},void 0,a.account),a)).catch(a=>{throw this.hybridAuthCodeResponses.delete(o),this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_BY_CODE_FAILURE,D.Silent,null,a),r.end({success:!1},a),a}),this.hybridAuthCodeResponses.set(o,i)),await i}else if(e.nativeAccountId)if(this.canUsePlatformBroker(e,e.nativeAccountId)){r.add({isPlatformBrokerRequest:!0});const o=await this.acquireTokenNative({...e,correlationId:n},Y.acquireTokenByCode,e.nativeAccountId).catch(i=>{throw i instanceof Mt&&sr(i)&&(this.platformAuthProvider=void 0),r.add({brokerErrorName:i.name,brokerErrorCode:i.errorCode}),i});return r.end({success:!0},void 0,o.account),o}else throw b(mv);else throw b(pv)}catch(o){throw this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_BY_CODE_FAILURE,D.Silent,null,o),r.end({success:!1},o),o}}async acquireTokenByCodeAsync(e){var o;return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(C.AcquireTokenByCodeAsync,e.correlationId),(o=this.acquireTokenByCodeAsyncMeasurement)==null||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(i=>{var a;return(a=this.acquireTokenByCodeAsyncMeasurement)==null||a.end({success:!0,fromCache:i.fromCache}),i}).catch(i=>{var a;throw(a=this.acquireTokenByCodeAsyncMeasurement)==null||a.end({success:!1},i),i}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,n){switch(this.performanceClient.addQueueMeasurement(C.AcquireTokenFromCache,e.correlationId),n){case De.Default:case De.AccessToken:case De.AccessTokenAndRefreshToken:const r=this.createSilentCacheClient(e.correlationId);return S(r.acquireToken.bind(r),C.SilentCacheClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw I(Sn)}}async acquireTokenByRefreshToken(e,n){switch(this.performanceClient.addQueueMeasurement(C.AcquireTokenByRefreshToken,e.correlationId),n){case De.Default:case De.AccessTokenAndRefreshToken:case De.RefreshToken:case De.RefreshTokenAndNetwork:const r=this.createSilentRefreshClient(e.correlationId);return S(r.acquireToken.bind(r),C.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw I(Sn)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(C.AcquireTokenBySilentIframe,e.correlationId);const n=this.createSilentIframeClient(e.correlationId);return S(n.acquireToken.bind(n),C.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const n=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",n),this.logoutRedirect({correlationId:n,...e})}async logoutRedirect(e){const n=this.getRequestCorrelationId(e);return Mf(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0,ln.SIGNOUT),this.createRedirectClient(n).logout(e)}logoutPopup(e){try{const n=this.getRequestCorrelationId(e);return Pd(this.initialized),this.browserStorage.setInteractionInProgress(!0,ln.SIGNOUT),this.createPopupClient(n).logout(e).finally(()=>{this.browserStorage.setInteractionInProgress(!1)})}catch(n){return Promise.reject(n)}}async clearCache(e){if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, returning early.");return}const n=this.getRequestCorrelationId(e);return this.createSilentCacheClient(n).logout(e)}getAllAccounts(e){const n=this.getRequestCorrelationId();return CE(thi
219s.logger,this.browserStorage,this.isBrowserEnvironment,n,e)}getAccount(e){const n=this.getRequestCorrelationId();return TE(e,this.logger,this.browserStorage,n)}getAccountByUsername(e){const n=this.getRequestCorrelationId();return SE(e,this.logger,this.browserStorage,n)}getAccountByHomeId(e){const n=this.getRequestCorrelationId();return AE(e,this.logger,this.browserStorage,n)}getAccountByLocalId(e){const n=this.getRequestCorrelationId();return kE(e,this.logger,this.browserStorage,n)}setActiveAccount(e){const n=this.getRequestCorrelationId();EE(e,this.browserStorage,n)}getActiveAccount(){const e=this.getRequestCorrelationId();return IE(this.browserStorage,e)}async hydrateCache(e,n){this.logger.verbose("hydrateCache called");const r=kt.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return await this.browserStorage.setAccount(r,e.correlationId),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,n)):this.browserStorage.hydrateCache(e,n)}async acquireTokenNative(e,n,r,o){if(this.logger.trace("acquireTokenNative called"),!this.platformAuthProvider)throw b(wd);return new Yi(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,n,this.performanceClient,this.platformAuthProvider,r||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e,o)}canUsePlatformBroker(e,n){if(this.logger.trace("canUsePlatformBroker called"),!this.platformAuthProvider)return this.logger.trace("canUsePlatformBroker: platform broker unavilable, returning false"),!1;if(!Zo(this.config,this.logger,this.platformAuthProvider,e.authenticationScheme))return this.logger.trace("canUsePlatformBroker: isBrokerAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case xe.NONE:case xe.CONSENT:case xe.LOGIN:case xe.SELECT_ACCOUNT:this.logger.trace("canUsePlatformBroker: prompt is compatible with platform broker flow");break;default:return this.logger.trace(`canUsePlatformBroker: prompt = ${e.prompt} is not compatible with platform broker flow, returning false`),!1}return!n&&!this.getNativeAccountId(e)?(this.logger.trace("canUsePlatformBroker: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){const n=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return n&&n.nativeAccountId||""}createPopupClient(e){return new QE(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.platformAuthProvider,e)}createRedirectClient(e){return new YE(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.platformAuthProvider,e)}createSilentIframeClient(e){return new rI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Y.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.platformAuthProvider,e)}createSilentCacheClient(e){return new zv(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.platformAuthProvider,e)}createSilentRefreshClient(e){return new oI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.platformAuthProvider,e)}createSilentAuthCodeClient(e){return new sI(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Y.acquireTokenByCode,this.performanceClient,this.platformAuthProvider,e)}addEventCallback(e,n){return this.eventHandler.addEventCallback(e,n)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return Ov(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){if(this.config.cache.cacheLocation!==we.LocalStorage){this.logger.info("Account storage events are only available when cacheLocation is set to localStorage");return}this.eventHandler.subscribeCrossTab()}
219disableAccountStorageEvents(){if(this.config.cache.cacheLocation!==we.LocalStorage){this.logger.info("Account storage events are only available when cacheLocation is set to localStorage");return}this.eventHandler.unsubscribeCrossTab()}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,n){this.browserStorage.setWrapperMetadata(e,n)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?It():A.EMPTY_STRING}async loginRedirect(e){const n=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",n),this.acquireTokenRedirect({correlationId:n,...e||Pf})}loginPopup(e){const n=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup({correlationId:n,...e||Pf})}async acquireTokenSilent(e){const n=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(C.AcquireTokenSilent,n);r.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),Mi(this.initialized,r,e.account),this.logger.verbose("acquireTokenSilent called",n);const o=e.account||this.getActiveAccount();if(!o)throw b(sv);return this.acquireTokenSilentDeduped(e,o,n).then(i=>(r.end({success:!0,fromCache:i.fromCache,accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length},void 0,i.account),{...i,state:e.state,correlationId:n})).catch(i=>{throw i instanceof J&&i.setCorrelationId(n),r.end({success:!1},i,o),i})}async acquireTokenSilentDeduped(e,n,r){const o=ps(this.config.auth.clientId,{...e,authority:e.authority||this.config.auth.authority},n.homeAccountId),i=JSON.stringify(o),a=this.activeSilentTokenRequests.get(i);if(typeof a>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r),this.performanceClient.addFields({deduped:!1},r);const l=S(this.acquireTokenSilentAsync.bind(this),C.AcquireTokenSilentAsync,this.logger,this.performanceClient,r)({...e,correlationId:r},n);return this.activeSilentTokenRequests.set(i,l),l.finally(()=>{this.activeSilentTokenRequests.delete(i)})}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),this.performanceClient.addFields({deduped:!0},r),a}async acquireTokenSilentAsync(e,n){const r=()=>this.trackPageVisibility(e.correlationId);this.performanceClient.addQueueMeasurement(C.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_START,D.Silent,e),e.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0},e.correlationId),document.addEventListener("visibilitychange",r);const o=await S(RE,C.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,n,this.config,this.performanceClient,this.logger),i=e.cacheLookupPolicy||De.Default;return this.acquireTokenSilentNoIframe(o,i).catch(async l=>{if(cI(l,i))if(this.activeIframeRequest)if(i!==De.Skip){const[d,p]=this.activeIframeRequest;this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${p}`,o.correlationId);const s=this.performanceClient.startMeasurement(C.AwaitConcurrentIframe,o.correlationId);s.add({awaitIframeCorrelationId:p});const u=await d;if(s.end({success:u}),u)return this.logger.verbose(`Parallel iframe request with correlationId: ${p} succeeded. Retrying cache and/or RT redemption`,o.correlationId),this.acquireTokenSilentNoIframe(o,i);throw this.logger.info(`Iframe request with correlationId: ${p} failed. Interaction is required.`),l}else return this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",o.correlationId),S(this.acquireTokenBySilentIframe.bind(this),C.AcquireTokenBySilentIframe,this.logger,this.performanceClient,o.correlationId)(o);else{let d;return this.activeIframeRequest=[new Promise(p=>{d=p}),o.correlationId],this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",o.correlationId),S(this.acquireTokenBySilentIframe.bind(this),C.AcquireTokenBySilentIframe,this.logger,this.performanceClient,o.correlationId)(o).then(p=>(d(!0),p)).catch(p=>{throw d(!1),p}).finally(()=>{this.activeIframeRequest=void 0})}else throw l}).then(l=>(this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_SUCCESS,D.Silent,l),this.performanceClient.addFields({fromCache:l.fromCache},e.correlationId),l)).catch(l=>{throw this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_FAILURE,D.Silent,null,l),l}).finally(()=>{document.removeEventListener("visibilitychange",r)})}async acquireTokenSilentNoIframe(e,n){return Zo(this.config,this.logger,this.platformAuthProvider,e.authenticationScheme)&&e.account.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),this.performanceClient.addFields({isPlatformBrokerRequest:!0},e.correlationId),this.acquireTokenNative(e,Y.acquireTokenSilent_silentFlow,e.account.nativeAccountId,n).catch(async r=>{throw this.performanceClient.addFields({brokerErrorName:r.name,brokerErrorCode:r.errorCode},e.correlationId),r instanceof Mt&&sr(r)?(this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.platformAuthProvider=void 0,I(Sn)):r})):(this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),n===De.AccessToken&&this.logger.verbose("acquireTokenSilent - cache lookup policy set to AccessToken, attempting to acquire token from local cache"),S(this.acquireTokenFromCache.bind(this),C.AcquireTokenFromCache,this.logger,this.performanceClient,e.correlationId)(e,n).catch(r=>{if(n===De.AccessToken)throw r;return this.eventHandler.emitEvent(M.ACQUIRE_TOKEN_NETWORK_START,D.Silent,e),S(this.acquireTokenByRefreshToken.bind(this),C.AcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,n)}))}async preGeneratePkceCodes(e){return this.logger.verbose("Generating new PKCE codes"),this.pkceCode=await S(Ts,C.GeneratePkceCodes,this.logger,this.performanceClient,e)(this.performanceClient,this.logger,e),Promise.resolve()}getPreGeneratedPkceCodes(e){this.logger.verbose("Attempting to pick up pre-generated PKCE codes");const n=this.pkceCode?{...this.pkceCode}:void 0;return this.pkceCode=void 0,this.logger.verbose(`${n?"Found":"Did not find"} pre-generated PKCE codes`),this.performanceClient.addFields({usePreGeneratedPkce:!!n},e),n}logMultipleInstances(e){const n=this.config.auth.clientId;if(!window)return;window.msal=window.msal||{},window.msal.clientIds=window.msal.clientIds||[],window.msal.clientIds.length>0&&this.logger.verbose("There is already an instance of MSAL.js in the window."),window.msal.clientIds.push(n),lI(n,e,this.logger)}}
219function cI(t,e){const n=!(t instanceof Et&&t.subError!==ms),r=t.errorCode===Ke.INVALID_GRANT_ERROR||t.errorCode===Sn,o=n&&r||t.errorCode===Ma||t.errorCode===cd,i=jk.includes(e);return o&&i}/*! @azure/msal-browser v4.24.1 2025-09-30 */async function uI(t,e){const n=new Zn(t);return await n.initialize(),As.createController(n,e)}/*! @azure/msal-browser v4.24.1 2025-09-30 */class Hd{static async createPublicClientApplication(e){const n=await uI(e);return new Hd(e,n)}constructor(e,n){this.isBroker=!1,this.controller=n||new As(new Zn(e))}async initialize(e){return this.controller.initialize(e,this.isBroker)}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,n){return this.controller.addEventCallback(e,n)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,n){return this.controller.initializeWrapperLibrary(e,n)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,n){return this.controller.hydrateCache(e,n)}clearCache(e){return this.controller.clearCache(e)}}/*! @azure/msal-browser v4.24.1 2025-09-30 */const dI={initialize:()=>Promise.reject(de(ge)),acquireTokenPopup:()=>Promise.reject(de(ge)),acquireTokenRedirect:()=>Promise.reject(de(ge)),acquireTokenSilent:()=>Promise.reject(de(ge)),acquireTokenByCode:()=>Promise.reject(de(ge)),getAllAccounts:()=>[],getAccount:()=>null,getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(de(ge)),loginPopup:()=>Promise.reject(de(ge)),loginRedirect:()=>Promise.reject(de(ge)),logout:()=>Promise.reject(de(ge)),logoutRedirect:()=>Promise.reject(de(ge)),logoutPopup:()=>Promise.reject(de(ge)),ssoSilent:()=>Promise.reject(de(ge)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw de(ge)},getLogger:()=>{throw de(ge)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw de(ge)},hydrateCache:()=>Promise.reject(de(ge)),clearCache:()=>Promise.reject(de(ge))};/*! @azure/msal-browser v4.24.1 2025-09-30 */class hI{static getInteractionStatusFromEvent(e,n){switch(e.eventType){case M.LOGIN_START:return me.Login;case M.SSO_SILENT_START:return me.SsoSilent;case M.ACQUIRE_TOKEN_START:if(e.interactionType===D.Redirect||e.interactionType===D.Popup)return me.AcquireToken;break;case M.HANDLE_REDIRECT_START:return me.HandleRedirect;case M.LOGOUT_START:return me.Logout;case M.SSO_SILENT_SUCCESS:case M.SSO_SILENT_FAILURE:if(n&&n!==me.SsoSilent)break;return me.None;case M.LOGOUT_END:if(n&&n!==me.Logout)break;return me.None;case M.HANDLE_REDIRECT_END:if(n&&n!==me.HandleRedirect)break;return me.None;case M.LOGIN_SUCCESS:case M.LOGIN_FAILURE:case M.ACQUIRE_TOKEN_SUCCESS:case M.ACQUIRE_TOKEN_FAILURE:case M.RESTORE_FROM_BFCACHE:if(e.interactionType===D.Redirect||e.
219interactionType===D.Popup){if(n&&n!==me.Login&&n!==me.AcquireToken)break;return me.None}break}return null}}const dl={auth:{clientId:"demo-client-id",authority:"https://demo-tenant.b2clogin.com/demo-tenant.onmicrosoft.com/B2C_1_signupsignin",knownAuthorities:["demo-tenant.b2clogin.com"],redirectUri:"http://localhost:3000",postLogoutRedirectUri:"http://localhost:3000"},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(t,e,n)=>{if(!n)switch(t){case W.Error:console.error(e);return;case W.Info:console.info(e);return;case W.Verbose:console.debug(e);return;case W.Warning:console.warn(e);return;default:return}}}}},Pc={authorities:{signUpSignIn:{authority:"https://demo-tenant.b2clogin.com/demo-tenant.onmicrosoft.com/B2C_1_signupsignin"},forgotPassword:{authority:"https://demo-tenant.b2clogin.com/demo-tenant.onmicrosoft.com/B2C_1_reset"},editProfile:{authority:"https://demo-tenant.b2clogin.com/demo-tenant.onmicrosoft.com/B2C_1_edit_profile"}}},Gv={scopes:["https://demo-tenant.onmicrosoft.com/api/access"]},Gf={scopes:[...Gv.scopes],authority:Pc.authorities.signUpSignIn.authority},fI={scopes:[...Gv.scopes],forceRefresh:!1};class pI{constructor(){ui(this,"msalInstance");this.msalInstance=new Hd(dl)}async initialize(){await this.msalInstance.initialize()}getMsalInstance(){return this.msalInstance}getAllAccounts(){return this.msalInstance.getAllAccounts()}getAccount(){const e=this.getAllAccounts();return e.length>0?e[0]:null}isAuthenticated(){return this.getAllAccounts().length>0}async signInRedirect(){const e={...Gf,redirectUri:dl.auth.redirectUri||window.location.origin};await this.msalInstance.loginRedirect(e)}async signInPopup(){const e={...Gf};try{return await this.msalInstance.loginPopup(e)}catch(n){return console.error("Sign in popup failed:",n),null}}async signOut(e){const n={account:e||this.getAccount(),postLogoutRedirectUri:dl.auth.postLogoutRedirectUri};await this.msalInstance.logoutRedirect(n)}async getAccessToken(){const e=this.getAccount();if(!e)return console.warn("No account found"),null;const n={...fI,account:e};try{return(await this.msalInstance.acquireTokenSilent(n)).accessToken}catch(r){console.warn("Silent token acquisition failed, attempting popup:",r);try{return(await this.msalInstance.acquireTokenPopup(n)).accessToken}catch(o){return console.error("Token acquisition failed:",o),null}}}async handleRedirectPromise(){try{return await this.msalInstance.handleRedirectPromise()}catch(e){return console.error("Handle redirect promise failed:",e),null}}getUserInfo(){const e=this.getAccount();return e?{id:e.localAccountId,username:e.username||e.name||"",email:e.username||"",name:e.name||e.username||""}:null}async editProfile(){const e={authority:Pc.authorities.editProfile.authority,scopes:[],redirectUri:window.location.origin};await this.msalInstance.loginRedirect(e)}async resetPassword(){const e={authority:Pc.authorities.forgotPassword.authority,scopes:[],redirectUri:window.location.origin};await this.msalInstance.loginRedirect(e)}isFromPolicy(e){var r,o;const n=this.getAccount();return((r=n==null?void 0:n.idTokenClaims)==null?void 0:r.tfp)===e||((o=n==null?void 0:n.idTokenClaims)==null?void 0:o.acr)===e}}const Xe=new pI,Vf="http://localhost:5001/api/v1";class Rc extends Error{constructor(e,n){super(n),this.status=e,this.name="ApiError"}}async function io(t,e={}){const n=await Xe.getAccessToken(),r={"Content-Type":"application/json",...e.headers};n&&(r.Authorization=`Bearer ${n}`);const o=await fetch(`${Vf}${t}`,{...e,credentials:"include",headers:r});if(!o.ok){if(o.status===401&&n){const a=await Xe.getAccessToken();if(a&&a!==n){r.Authorization=`Bearer ${a}`;const l=await fetch(`${Vf}${t}`,{...e,credentials:"include",headers:r});if(l.ok)return l.json()}throw await Xe.signInRedirect(),new Rc(401,"Authentication required")}throw new Rc(o.status,`HTTP error! status: ${o.status}`)}const i=o.headers.get("content-type");return i&&i.includes("application/json")?o.json():o.text()}const qf={getCurrentUser:async()=>{const t=Xe.getUserInfo();if(!t)throw new Rc(401,"Not authenticated");try{const e=await io("/user/profile");return{...t,...e}}catch(e){return console.warn("Failed to fetch backend user data:",e),{id:t.id,username:t.username,email:t.email,name:t.name,is_active:!0,created_at:new Date().toISOString()}}},getProgression:()=>io("/user/data/log/"),saveLogEntry:t=>io("/user/data/log/",{method:"POST",body:JSON.stringify(t)}),getHighScores:()=>io("/user/scores/"),updateUserSettings:t=>io("/user/settings",{method:"PUT",body:JSON.stringify(t)})},hl={interface_language:"sma",help_language:"no",enable_audio:!0,auto_play_audio:!0,enable_cache:!0,highscore_visible:!0},li=Ru()(Nu((t,e)=>({user:null,settings:hl,progression:[],totalPoints:0,isAuthenticated:!1,isLoading:!1,isInitialized:!1,initialize:async()=>{t({isLoading:!0});try{await Xe.initialize(),await Xe.handleRedirectPromise(),await e().checkAuthStatus(),t({isInitialized:!0})}catch(n){console.error("Failed to initialize auth:",n),t({isInitialized:!0})}finally{t({isLoading:!1})}},setUser:n=>t({user:n,isAuthenticated:!!n}
219),setLoading:n=>t({isLoading:n}),updateSettings:n=>{t(r=>({settings:{...hl,...r.settings,...n}}))},addLogEntry:n=>t(r=>{const o=[...r.progression,n],i=o.reduce((a,l)=>a+(l.points||0),0);return{progression:o,totalPoints:i}}),setProgression:n=>t(()=>{const r=n.reduce((o,i)=>o+(i.points||0),0);return{progression:n,totalPoints:r}}),calculateTotalPoints:()=>{const{progression:n}=e(),r=n.reduce((o,i)=>o+(i.points||0),0);t({totalPoints:r})},getPointsForCategory:n=>{const{progression:r}=e();return r.filter(o=>o.question_category===n).reduce((o,i)=>o+(i.points||0),0)},getCycleForCategory:n=>{const{progression:r}=e(),o=r.filter(i=>i.question_category===n).map(i=>i.cycle);return o.length>0?Math.max(...o):1},getCorrectAnswersForQuestion:(n,r)=>{const{progression:o}=e();return o.filter(i=>i.question_category===n&&i.question_category_level===r&&i.question_correct).length},signIn:async()=>{t({isLoading:!0});try{await Xe.signInRedirect()}catch(n){throw console.error("Sign in failed:",n),t({isLoading:!1}),n}},signInPopup:async()=>{t({isLoading:!0});try{await Xe.signInPopup()&&await e().checkAuthStatus()}catch(n){throw console.error("Sign in popup failed:",n),t({isLoading:!1}),n}},signOut:async()=>{try{await Xe.signOut(),t({user:null,isAuthenticated:!1,progression:[],totalPoints:0})}catch(n){throw console.error("Sign out failed:",n),n}},editProfile:async()=>{try{await Xe.editProfile()}catch(n){throw console.error("Edit profile failed:",n),n}},resetPassword:async()=>{try{await Xe.resetPassword()}catch(n){throw console.error("Reset password failed:",n),n}},checkAuthStatus:async()=>{try{if(Xe.isAuthenticated()){const n=await qf.getCurrentUser();let r=[];try{r=await qf.getProgression()}catch(i){console.warn("Failed to load user progression:",i),r=[{id:"1",game_name:"Word to Image",question_concept:"guvlie",question_concept_value:"guvlie",question_correct:!0,question_category:"nature_animals",question_category_level:1,points:10,cycle:1,timestamp:new Date},{id:"2",game_name:"Word to Image",question_concept:"bearsi",question_concept_value:"bearsi",question_correct:!0,question_category:"nature_animals",question_category_level:1,points:10,cycle:1,timestamp:new Date}]}const o=r.reduce((i,a)=>i+(a.points||0),0);t({user:n,isAuthenticated:!0,progression:r,totalPoints:o,isLoading:!1})}else t({user:null,isAuthenticated:!1,isLoading:!1,progression:[],totalPoints:0})}catch(n){console.error("Check auth status failed:",n),t({user:null,isAuthenticated:!1,isLoading:!1,progression:[],totalPoints:0})}}}),{name:"gielese-azure-user-store",partialize:t=>({settings:t.settings,progression:t.progression,totalPoints:t.totalPoints}),merge:(t,e)=>({...e,...t||{},settings:{...hl,...(t==null?void 0:t.settings)||{}}})})),ks=li,gI={back:"Back",home:"Home",learn:"Learn",practice:"Practice",wordlist:"Wordlist",points:"Points",changeLanguage:"Change Language"},mI={username:"Username",password:"Password",email:"E-mail",login:"Log in",logout:"Log out",newAccount:"New account?",useAccount:"Use an account?",createAccount:"Create an account?",forgotPassword:"Did you forget your password?",resetPassword:"Reset your password",accountCreated:"Your account was created, you may now begin!",loggedIn:"You are logged in, and may now begin!",alreadyLoggedIn:"You are already logged in. You may begin or log out.",playOffline:"You've chosen to play offline. Stats will sync when you are connected to the internet next.",repeat:"Repeat",submit:"Submit",passwordReset:"Your password has been reset.",mayLogIn:"You may now start the app and log in."},yI={begin:"Begin!",tjoho:"Correct! 🎉",completedCategory:"You completed the category!",completedLevel:"You completed the level!",playAgain:"Play again",nextLevel:"Continue",categoryList:"Category list",loading:"Loading question...",tryAgain:"Incorrect 😔",close:"Close",level:"Level",points:"Points",whichImageMatches:"Which image matches this word?",whichWordMatches:"Which word matches this image?",selectTranslation:"Select the correct translation",listenAndMatch:"🔊 Listen to the pronunciation and find the matching image",clickToHear:"💡 Click any choice to hear its pronunciation",noImage:"No image available",question:"Question",correctAnswer:"The correct answer was:",continue:"Continue",exitGame:"Exit Game",nextQuestion:"Next Question",noQuestions:"No questions available for this category.",backToHome:"Back to Home",playingAudio:"Playing audio...",playPronunciation:"Play pronunciation"},vI={translationLanguage:"Translation Language",helpLanguage:"Help Language",privacySettings:"Privacy Settings",audioSettings:"Audio Settings",performanceSettings:"Performance Settings",aboutGielese:"About Gïelese",enableAudio:"Enable Audio",audioDescription:"Enable sound effects and pronunciation audio",autoPlayAudio:"Auto-play Audio",autoPlayDescription:"Automatically play pronunciation when new questions appear",showScores:"Show in High Scores",showScoresDescription:"Display your progress on public leaderboards",enableNotifications:"Enable Notifications",notificationsDescription:"Allow the app to send you notifications",interfaceLanguage:"Interface Language",menuInstructions:"Language for menus and instructions",helpTranslations:"Language for translations and help text",enableCaching:"Enable Caching",enableCachingDescription:"Cache content for offline use and faster loading",aboutDescription:"Gïelese is an interactive South Sámi language learning application designed to help preserve and teach the South Sámi language through engaging games and exercises.",aboutModern:"This modern version is built with React and TypeScript, providing a fast and accessible learning experience across all devices.",version:"Version: 2.0.0",builtWithLove:"Built with ❤️ for the South Sámi community",settingsSaved:"Settings saved automatically",customizeExperience:"Customize your learning experience"},_I={statistics:"Statistics",topTen:"Top 10",yourStats:"Your stats",points:"points",learnWordsToSeeStats:"Learn some words to see stats!",playingAnonymously:"You are playing anonymously, so your points may not be stored if you leave the app."},wI={couldNotConnect:"Could not connect. Play offline?",checkEmail:"Check your email!",checkConnection:"Check your network connection and try again",mustBeConnected:"You must be connected to the internet to view high scores.",oops:"Oops! We had some problems.",emailMe:"Email me"},CI={aboutApp:"About this app",privacyPolicy:"Privacy policy",southSaamiApp:"South Sámi learning app",playNow:"Play now",getGooglePlay:"Get it on Google Play",getAppStore:"Download from App Store",apiTest:"API Test"},TI={title:"Welcome to Gïelese",description:"Learn South Sámi through interactive games and exercises. Practice vocabulary, pronunciation, and comprehension at your own pace.",interactiveLearning:"Interactive Learning",interactiveDescription:"Learn through word-to-image, image-to-word, and audio exercises",progressiveDifficulty:"Progressive Difficulty",progressiveDifficultyDescription:"Start with basics and advance through levels as you improve",trackProgress:"Track Progress",trackProgressDescription:"Monitor your learning journey and compete with others",chooseCategory:"Choose a Category",loadingCategories:"Loading c
219ategories..."},SI={navigation:gI,auth:mI,game:yI,settings:vI,stats:_I,errors:wI,app:CI,welcome:TI},AI={back:"Tilbake",home:"Hjem",learn:"Lær",practice:"Øv",wordlist:"Ordliste",points:"Poeng",changeLanguage:"Bytt språk"},kI={username:"Brukernavn",password:"Passord",email:"E-post",login:"Logg inn",logout:"Log ut",newAccount:"Ny konto?",useAccount:"Bruk en konto?",createAccount:"Lag en konto?",forgotPassword:"Har du glemt passordet ditt?",resetPassword:"Tilbakestill passord",accountCreated:"Kontoen din ble laget, du kan begynne!",loggedIn:"Du er innlogget, og kan begynne nå!",alreadyLoggedIn:"Du er allerede innlogget. Du kan begynne eller logge ut.",playOffline:"Du har valgt å spille offline. Brukerstatistikken vil bli synkronisert neste gang du er koplet til Internett.",repeat:"Gjenta",submit:"Send inn",passwordReset:"Passordet ditt har blitt tilbakestilt.",mayLogIn:"Du kan nå starte appen og logge inn."},EI={begin:"Begynn!",tjoho:"Jippi!",completedCategory:"Du fullførte emnet!",completedLevel:"Du fullførte nivået!",playAgain:"Spill igjen",nextLevel:"Neste nivå",categoryList:"Kategoriliste",loading:"Laster inn...",tryAgain:"Prøv igjen",close:"Lukk",level:"Nivå",points:"Poeng",whichImageMatches:"Hvilket bilde passer til dette ordet?",whichWordMatches:"Hvilket ord passer til dette bildet?",selectTranslation:"Velg riktig oversettelse",listenAndMatch:"🔊 Lytt til uttalen og finn det matchende bildet",clickToHear:"💡 Klikk på et valg for å høre uttalen",noImage:"Ingen bilde tilgjengelig",question:"Spørsmål",correctAnswer:"Det riktige svaret var:",continue:"Fortsett",exitGame:"Avslutt spill",nextQuestion:"Neste spørsmål",noQuestions:"Ingen spørsmål tilgjengelig for denne kategorien.",backToHome:"Tilbake til hjem",playingAudio:"Spiller lyd...",playPronunciation:"Spill uttale"},II={translationLanguage:"Oversettingsspråk",helpLanguage:"Hjelpespråk",playAudio:"Spill lyd?",showScore:"Vis poengene mine til andre?",yes:"Ja",no:"Nei",privacySettings:"Personverninnstillinger",audioSettings:"Lydinnstillinger",performanceSettings:"Ytelsesinnstillinger",aboutGielese:"Om Gïelese",enableAudio:"Aktiver lyd",audioDescription:"Aktiver lydeffekter og uttale",autoPlayAudio:"Automatisk avspilling",autoPlayDescription:"Spill automatisk uttale når nye spørsmål vises",showScores:"Vis poengsum",showScoresDescription:"Vis poenginformasjon under spilling",enableNotifications:"Aktiver varsler",notificationsDescription:"Tillat appen å sende deg varsler",interfaceLanguage:"Grensesnittspråk",menuInstructions:"Språk for menyer og instruksjoner",helpTranslations:"Språk for oversettelser og hjelpetekst",enableCaching:"Aktiver hurtigbuffer",enableCachingDescription:"Buffer innhold for frakoblet bruk og raskere lasting",aboutDescription:"Gïelese er en interaktiv sørsamisk språklæringsapplikasjon designet for å bevare og lære det sørsamiske språket gjennom engasjerende spill og øvelser.",aboutModern:"Denne moderne versjonen er bygget med React og TypeScript, og gir en rask og tilgjengelig læringsopplevelse på alle enheter.",version:"Versjon: 2.0.0",builtWithLove:"Bygget med ❤️ for det sørsamiske samfunnet",settingsSaved:"Innstillinger lagret automatisk",customizeExperience:"Tilpass læringsopplevelsen din"},xI={statistics:"Statistikk",topTen:"Ti på topp",yourStats:"Statistikken din",points:"poeng",learnWordsToSeeStats:"Lær deg ord for å se poengene dine.",playingAnonymously:"Du spiller anonymt, så poengene dine vil forsvinne hvis du forlater appen."},PI={couldNotConnect:"Kunne ikke kople til. Spill offline?",checkEmail:"Sjekk e-posten din!",checkConnection:"Sjekk nettverksforbindelsen din og prøv igjen",mustBeConnected:"Du må være koplet til Internett for å se ti-på-topplista.",oops:"Oisann! Det oppstod et problem.",emailMe:"Send meg en e-post"},RI={aboutApp:"Om denne appen",privacyPolicy:"Personvern",southSaamiApp:"Sørsamisk språkapp",playNow:"Spill nå",getGooglePlay:"Last ned fra Google Play",getAppStore:"Last ned fra App Store",apiTest:"API Test"},NI={title:"Velkommen til Gïelese",description:"Lær sørsamisk gjennom interaktive spill og øvelser. Øv ordforråd, uttale og forståelse i ditt eget tempo.",interactiveLearning:"Interaktiv læring",interactiveDescription:"Lær gjennom ord-til-bilde, bilde-til-ord og lydøvelser",progressiveDifficulty:"Gradvis vanskegrad",progressiveDifficultyDescription:"Start med grunnleggende og avancer gjennom nivåer når du forbedrer deg",trackProgress:"Spor framgang",trackProgressDescription:"Overvåk læringsreisen din og konkurer med andre",chooseCategory:"Velg en kategori",loadingCategories:"Laster inn kategorier..."},bI={navigation:AI,auth:kI,game:EI,settings:II,stats:xI,errors:PI,app:RI,welcome:NI},OI={back:"Bååstide",home:"Hïejme",learn:"Lïerh",practice:"Heerjehtallieh",wordlist:"Baakoelæstoe",points:"Poengh",changeLanguage:"Change Language"},MI={username:"Åtnoenomme",password:"Tjeakoesbaakoe",email:"E-påaste",login:"Tjaangh sïjse",logout:"Tjaangh ålma",newAccount:"Kontoem nåhtedh?",useAccount:"Kontoem nåhtedh?",createAccount:"Kontoem darjodh?",forgotPassword:"Dov tjeakoesbaakoem åajaldehteme?",resetPassword:"Orresth dov tjeakoesbaakoem",accountCreated:"Dov kontoem lea dorjeme, aelkieh!",loggedIn:"Datne leah dan sïjse loggeme, aelkieh!",alreadyLoggedIn:"Datne leah dan sïjse loggeme, aelkieh!",playOffline:"",repeat:"",submit:"",passwordReset:"",mayLogIn:""},LI={begin:"Aelkieh!",tjoho:"",completedCategory:"",completedLevel:"",playAgain:"",nextLevel:"",categoryList:"",loading:"Leesseminie...",tryAgain:"",close:"",level:"Level",points:"Points",whichImageMatches:"Which image matches this word?",whichWordMatches:"Which word matches this image?",selectTranslation:"Select the correct translation",listenAndMatch:"🔊 Listen to the pronunciation and find the matching image",clickToHear:"💡 Click any choice to hear its pronunciation",noImage:"No image available",question:"Question",correctAnswer:"The correct answer was:",continue:"Continue",exitGame:"Exit Game",nextQuestion:"Next Question",noQuestions:"No questions available for this category.",backToHome:"Back to Home",playingAudio:"Playing audio...",playPronunciation:"Play pronunciation"},DI={translationLanguage:"Jarkoestimmie gïele",helpLanguage:"Viehkiegïele",playAudio:"Tjoejem spealede?",showScore:"Mov poengh gaajhkide vuesehte?",yes:"Jaavoe",no:"Ijje",privacySettings:"Privaatsussetimmie",audioSettings:"Tjoeje-setimmie",performanceSettings:"Prestatiuvnah-setimmie",aboutGielese:"Gïelese bïjre",enableAudio:"Tjoejem tjalktjh",audioDescription:"Tjoeje-effekteh jïh tjoerem tjalktjh",autoPlayAudio:"Aeftiestim tjoeje speale",autoPlayDescription:"Åejjiem tjoerem speale goh orre gyöötjh båateme",showScores:"Poengh vuesehte",showScoresDescription:"Poengh-bïevnesh speleme gaajhtije vuesehte",enableNotifications:"Enable Notifications",notificationsDescription:"Allow the app to send you notifications",interfaceLanguage:"Interface Language",menuInstructions:"Language for menus and instructions",helpTranslations:"Language for translations and help text",enableCaching:"Enable Caching",enableCachingDescription:"Cache content for offline use and faster loading",aboutDescription:"Gïelese is an interactive South Sámi language learning application designed to help preserve and teach the South Sámi language through engaging games and exercises.",aboutModern:"This modern version is built with React and TypeScript, providing a fast and accessible learning experience across all devices.",version:"Version: 2.0.0",builtWithLove:"Built with ❤️ for the South Sámi community",settingsSaved:"Settings saved automatically",customizeExperience:"Customize your learning experience"},UI={statistics:"",topTen:"",yourStats:"",points:"poengh",learnWordsToSeeStats:"Lïerh naan baakoeh guktie statistihkem vuejnieh!",playingAnonymously:""},jI={couldNotConnect:"",checkEmail:"",checkConnection:"",mustBeConnected:"",oops:"",emailMe:""}
219,HI={aboutApp:"Daan appen bïjre",privacyPolicy:"",southSaamiApp:"South Sámi learning app",playNow:"Play now",getGooglePlay:"Get it on Google Play",getAppStore:"Download from App Store",apiTest:"API Test"},FI={title:"Buörebe båateme Gïelese dåaruj",description:"Lïerh åarjelsaemiengïelem jiengelistide soptsestimmieh jïh darkoestimmieh vuelnie. Baakoeh, tjoerem jïh goerkemem lïeredh dov voeresth.",interactiveLearning:"Jiengelisth lïeredh",interactiveDescription:"Lïerh baakoe-guvvie-böökte, böökte-guvvie-baakoe jïh tjoeje darkoestimmiej vuelnie",progressiveDifficulty:"Progressive Difficulty",progressiveDifficultyDescription:"Start with basics and advance through levels as you improve",trackProgress:"Track Progress",trackProgressDescription:"Monitor your learning journey and compete with others",chooseCategory:"Choose a Category",loadingCategories:"Loading categories..."},BI={navigation:OI,auth:MI,game:LI,settings:DI,stats:UI,errors:jI,app:HI,welcome:FI},zI={back:"Tillbaka",home:"Hem",learn:"Lär",practice:"Öva",wordlist:"Ordlista",points:"Poäng",changeLanguage:"Byt språk"},KI={username:"Användarnamn",password:"Lösenord",email:"E-post",login:"Logga in",logout:"Logga ut",newAccount:"Nytt konto?",useAccount:"Vill du använda ett konto?",createAccount:"Skapa ett konto?",forgotPassword:"Har du glömt ditt lösenord?",resetPassword:"Återställ lösenord",accountCreated:"Ditt konto är skapat, du kan börja!",loggedIn:"Du är inloggad och kan börja!",alreadyLoggedIn:"Du är redan inloggad. Du kan börja eller logga ut.",playOffline:"Du har valt att spela offline. Statistiken synkroniseras nästa gång du är ansluten till Internet.",repeat:"Upprepa",submit:"Skicka in",passwordReset:"Ditt lösenord har återställts.",mayLogIn:"Du kan nu starta appen och logga in."},$I={begin:"Börja!",tjoho:"Tjoho!",completedCategory:"Du klarade hela kategorin!",completedLevel:"Du klarade nivån!",playAgain:"Spela igen",nextLevel:"Nästa nivå",categoryList:"Kategorilista",loading:"Laddar...",tryAgain:"Försök igen",close:"Stäng",level:"Nivå",points:"Poäng",whichImageMatches:"Vilken bild matchar detta ord?",whichWordMatches:"Vilket ord matchar denna bild?",selectTranslation:"Välj rätt översättning",listenAndMatch:"🔊 Lyssna på uttalet och hitta den matchande bilden",clickToHear:"💡 Klicka på ett val för att höra uttalet",noImage:"Ingen bild tillgänglig",question:"Fråga",correctAnswer:"Det rätta svaret var:",continue:"Fortsätt",exitGame:"Lämna spel",nextQuestion:"Nästa fråga",noQuestions:"Inga frågor tillgängliga för denna kategori.",backToHome:"Tillbaka till hem",playingAudio:"Spelar ljud...",playPronunciation:"Spela uttal"},GI={translationLanguage:"Översättningsspråk",helpLanguage:"Hjälpspråk",privacySettings:"Integritetsinställningar",audioSettings:"Ljudinställningar",performanceSettings:"Prestationsinställningar",aboutGielese:"Om Gïelese",enableAudio:"Aktivera ljud",audioDescription:"Aktivera ljudeffekter och uttal",autoPlayAudio:"Spela ljud automatiskt",autoPlayDescription:"Spela automatiskt uttal när nya frågor visas",showScores:"Visa poäng",showScoresDescription:"Visa poänginformation under spel",enableNotifications:"Aktivera meddelanden",notificationsDescription:"Tillåt appen att skicka meddelanden till dig",interfaceLanguage:"Gränssnittsspråk",menuInstructions:"Språk för menyer och instruktioner",helpTranslations:"Språk för översättningar och hjälptext",enableCaching:"Aktivera cachning",enableCachingDescription:"Cachea innehåll för offline-användning och snabbare laddning",aboutDescription:"Gïelese är en interaktiv sydsamisk språkinlärningsapplikation designad för att bevara och lära ut det sydsamiska språket genom engagerande spel och övningar.",aboutModern:"Denna moderna version är byggd med React och TypeScript och ger en snabb och tillgänglig inlärningsupplevelse på alla enheter.",version:"Version: 2.0.0",builtWithLove:"Byggd med ❤️ för den sydsamiska gemenskapen",settingsSaved:"Inställningar sparade automatiskt",customizeExperience:"Anpassa din inlärningsupplevelse"},VI={statistics:"Statistik",topTen:"Topp tio",yourStats:"Din statistik",points:"poäng",learnWordsToSeeStats:"Lär dig ord för att se din poäng.",playingAnonymously:"Du spelar anonymt, så din poäng försvinner om du lämnar appen."},qI={couldNotConnect:"Kunde inte kopla till. Spela offline?",checkEmail:"Kolla din e-post!",checkConnection:"Kolla din 
219nätverksanslutning och försök igen",mustBeConnected:"Du måste vara ansluten till Internet för att se tio-i-topplistan.",oops:"Hoppsan! Det uppstod ett problem.",emailMe:"Maila mig"},QI={aboutApp:"Om denna app",privacyPolicy:"Integritet",southSaamiApp:"Sydsamisk språkapp",playNow:"Spela nu",getGooglePlay:"Ladda ner från Google Play",getAppStore:"Ladda ner från App Store",apiTest:"API Test"},WI={title:"Välkommen till Gïelese",description:"Lär dig sydsamiska genom interaktiva spel och övningar. Öva ordförråd, uttal och förståelse i din egen takt.",interactiveLearning:"Interaktiv inlärning",interactiveDescription:"Lär dig genom ord-till-bild, bild-till-ord och ljudövningar",progressiveDifficulty:"Progressiv svårighet",progressiveDifficultyDescription:"Börja med grunderna och avancera genom nivåer när du förbättras",trackProgress:"Spåra framsteg",trackProgressDescription:"Övervaka din läranderesan och tävla med andra",chooseCategory:"Välj en kategori",loadingCategories:"Laddar kategorier..."},YI={navigation:zI,auth:KI,game:$I,settings:GI,stats:VI,errors:qI,app:QI,welcome:WI},Qf={en:SI,no:bI,sma:BI,sv:YI},Vv=k.createContext(null),fl={en:{name:"English",nativeName:"English"},no:{name:"Norwegian",nativeName:"Norsk"},sma:{name:"South Sámi",nativeName:"Åarjelsaemiengïele"},sv:{name:"Swedish",nativeName:"Svenska"}};function Wf(t,e){return e.split(".").reduce((n,r)=>n==null?void 0:n[r],t)}function JI({children:t}){const[e,n]=k.useState(()=>localStorage.getItem("gielese-language")||"sma");k.useEffect(()=>{localStorage.setItem("gielese-language",e)},[e]);const r=(i,a)=>{const l=Wf(Qf[e],i);if(l&&l!=="")return l;const c=Wf(Qf.en,i);return c&&c!==""?c:a||i},o=Object.keys(fl).map(i=>({code:i,name:fl[i].name,nativeName:fl[i].nativeName}));return f.jsx(Vv.Provider,{value:{language:e,setLanguage:n,t:r,languages:o},children:t})}function Es(){const t=k.useContext(Vv);if(!t)throw new Error("useTranslation must be used within an I18nProvider");return t}function XI({children:t}){var v;const e=ai(),{totalPoints:n,user:r,isAuthenticated:o,signOut:i}=li(),{t:a,language:l,setLanguage:c,languages:d}=Es(),p=!1,[s,u]=k.useState(!1),h=k.useRef(null);k.useEffect(()=>{const _=g=>{h.current&&!h.current.contains(g.target)&&u(!1)};return document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}},[]);const m=_=>e.pathname===_;return f.jsxs("div",{className:"min-h-screen bg-gray-50",children:[f.jsx("header",{className:"bg-white shadow-md",children:f.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:f.jsxs("div",{className:"flex justify-between items-center py-4",children:[f.jsxs(zt,{to:"/",className:"flex items-center space-x-2",children:[f.jsx("h1",{className:"text-2xl font-display text-primary-700",children:"Gïelese"}),f.jsx("span",{className:"text-sm text-gray-600",children:a("app.southSaamiApp","South Sámi Learning")})]}),f.jsxs("div",{className:"flex items-center space-x-4",children:[p,f.jsx(zt,{to:"/api-test",className:"text-sm text-blue-600 hover:text-blue-800 border border-blue-300 px-2 py-1 rounded",children:a("app.apiTest","API Test")}),f.jsxs("div",{className:"relative",ref:h,children:[f.jsxs("button",{onClick:()=>u(!s),className:"flex items-center space-x-1 text-sm text-gray-600 hover:text-gray-800 border border-gray-300 px-2 py-1 rounded transition-colors",title:a("navigation.changeLanguage","Change Language"),children:[f.jsx(uc,{size:16}),f.jsx("span",{className:"hidden sm:inline",children:((v=d.find(_=>_.code===l))==null?void 0:v.nativeName)||"EN"}),f.jsx("span",{className:"sm:hidden",children:l.toUpperCase()}),f.jsx(bT,{size:14,className:`transition-transform ${s?"rotate-180":""}`})]}),s&&f.jsx("div",{className:"absolute right-0 mt-2 py-2 w-48 bg-white rounded-lg shadow-lg border border-gray-200 z-50",children:d.map(_=>f.jsxs("button",{onClick:()=>{c(_.code),u(!1)},className:`w-full px-4 py-2 text-left text-sm hover:bg-gray-100 transition-colors ${l===_.code?"bg-primary-50 text-primary-700 font-medium":"text-gray-700"}`,children:[f.jsx("span",{className:"font-medium",children:_.nativeName}),f.jsxs("span",{className:"text-gray-500 ml-2",children:["(",_.name,")"]})]},_.code))})]}),f.jsxs("div",{className:"flex items-center space-x-1 text-secondary-600",children:[f.jsxs("span",{className:"text-sm font-medium",children:[a("navigation.points","Points"),":"]}),f.jsx("span",{className:"text-lg font-bold",children:n})]}),p]})]})})}),f.jsx("main",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:t}),f.jsx("nav",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 px-4 py-2",children:f.jsxs("div",{className:"flex justify-around items-center max-w-md mx-auto",children:[f.jsxs(zt,{to:"/",className:`flex flex-col items-center space-y-1 p-2 rounded-lg transition-colors ${m("/")?"text-primary-600 bg-primary-50":"text-gray-600 hover:text-primary-600"}`,children:[f.jsx(dc,{size:20}),f.jsx("span",{className:"text-xs font-medium",children:a("navigation.home","Home")})]}),f.jsxs(zt,{to:"/stats",className:`flex flex-col items-center space-y-1 p-2 rounded-lg transition-colors ${m("/stats")?"text-primary-600 bg-primary-50":"text-gray-600 hover:text-primary-600"}`,children:[f.jsx(RT,{size:20}),f.jsx("span",{className:"text-xs font-medium",children:a("stats.statistics","Stats")}
219)]}),f.jsxs(zt,{to:"/settings",className:`flex flex-col items-center space-y-1 p-2 rounded-lg transition-colors ${m("/settings")?"text-primary-600 bg-primary-50":"text-gray-600 hover:text-primary-600"}`,children:[f.jsx(UT,{size:20}),f.jsx("span",{className:"text-xs font-medium",children:a("settings.translationLanguage","Settings")})]})]})}),f.jsx("div",{className:"pb-20"})]})}function Yf({children:t}){const{isAuthenticated:e,isLoading:n,isInitialized:r}=li();return f.jsx(f.Fragment,{children:t})}/*! @azure/msal-react v3.0.20 2025-09-24 */const ZI={instance:dI,inProgress:me.None,accounts:[],logger:new Jt({})},qv=k.createContext(ZI);qv.Consumer;/*! @azure/msal-react v3.0.20 2025-09-24 */function Jf(t,e){if(t.length!==e.length)return!1;const n=[...e];return t.every(r=>{const o=n.shift();return!r||!o?!1:r.homeAccountId===o.homeAccountId&&r.localAccountId===o.localAccountId&&r.username===o.username})}/*! @azure/msal-react v3.0.20 2025-09-24 */const e0="@azure/msal-react",Xf="3.0.20";/*! @azure/msal-react v3.0.20 2025-09-24 */const za={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},t0=(t,e)=>{const{type:n,payload:r}=e;let o=t.inProgress;switch(n){case za.UNBLOCK_INPROGRESS:t.inProgress===me.Startup&&(o=me.None,r.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case za.EVENT:const a=r.message,l=hI.getInteractionStatusFromEvent(a,t.inProgress);l&&(r.logger.info(`MsalProvider - ${a.eventType} results in setting inProgress from ${t.inProgress} to ${l}`),o=l);break;default:throw new Error(`Unknown action type: ${n}`)}if(o===me.Startup)return t;const i=r.instance.getAllAccounts();return o!==t.inProgress&&!Jf(i,t.accounts)?{...t,inProgress:o,accounts:i}:o!==t.inProgress?{...t,inProgress:o}:Jf(i,t.accounts)?t:{...t,accounts:i}};function n0({instance:t,children:e}){k.useEffect(()=>{t.initializeWrapperLibrary(Lk.React,Xf)},[t]);const n=k.useMemo(()=>t.getLogger().clone(e0,Xf),[t]),[r,o]=k.useReducer(t0,void 0,()=>({inProgress:me.Startup,accounts:[]}));k.useEffect(()=>{const a=t.addEventCallback(l=>{o({payload:{instance:t,logger:n,message:l},type:za.EVENT})});return n.verbose(`MsalProvider - Registered event callback with id: ${a}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{o({payload:{instance:t,logger:n},type:za.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{a&&(n.verbose(`MsalProvider - Removing event callback ${a}`),t.removeEventCallback(a))}},[t,n]);const i={instance:t,inProgress:r.inProgress,accounts:r.accounts,logger:n};return Lc.createElement(qv.Provider,{value:i},e)}function r0({children:t}){return f.jsx(n0,{instance:Xe.getMsalInstance(),children:t})}const Qv=Ru()(Nu((t,e)=>({concepts:[],questions:[],categories:[],isLoading:!1,error:null,setConcepts:n=>t({concepts:n}),setQuestions:n=>t({questions:n}),setCategories:n=>t({categories:n}),setLoading:n=>t({isLoading:n}),setError:n=>t({error:n}),getConceptById:n=>{const{concepts:r}=e();return r.find(o=>o.id===n)},getConceptsBySemantics:n=>{const{concepts:r}=e();return r.filter(o=>n.some(i=>o.semantics.includes(i)))},getQuestionsByCategory:n=>{const{questions:r}=e();return r.filter(o=>o.category===n)},getCategoryByName:n=>{const{categories:r}=e();return r.find(o=>o.category===n)}}),{name:"gielese-data-store",partialize:t=>({concepts:t.concepts,questions:t.questions,categories:t.categories})}));function o0(){const{categories:t,setCategories:e,setConcepts:n,setQuestions:r,setLoading:o}=Qv(),{t:i}=Es();return k.useEffect(()=>{let a=!1;(async()=>{if(!a){a=!0;try{o(!0);try{console.log("Loading concepts from static data...");const c=await fetch("/data/concepts.json");if(!c.ok)throw new Error(`Failed to load concepts: ${c.statusText}`);const d=await c.json();console.log("Loaded concepts:",d.length),console.log("Sample concept:",d[0]),console.log("Using concepts as-is from static data"),n(d);const p=new Map;d.forEach(m=>{m.semantics.forEach(v=>{p.set(v,(p.get(v)||0)+1)})}),console.log("Semantics found:",Object.fromEntries(p));const s=[],u=[];[{semantic:"NATURE/ANIMALS",category:"animals",name:"Animals (Eallit)"},{semantic:"FOOD",category:"food",name:"Food (Biebmu)"},{semantic:"BODY",category:"body",name:"Body Parts (Krohpp)"},{semantic:"TIME",category:"time",name:"Time (Aika)"},{semantic:"HOUSE",category:"house",name:"House (Viessu)"},{semantic:"NUMBERS",category:"numbers",name:"Numbers (Logut)"},{semantic:"NATURE/WORLD",category:"nature",name:"Nature (Luondu)"},{semantic:"FACE",category:"face",name:"Face (Njaalmeh)"},{semantic:"PHRASE",category:"phrases",name:"Phrases (Guelline)"},{semantic:"GREETING",category:"greetings",name:"Greetings (Buörredimmine)"},{semantic:"GENERAL",category:"general",name:"General (Oppalaš)"}
vendor: 35,201 bytes, lines 219-237
219].forEach(({semantic:m,category:v,name:_})=>{const g=p.get(m)||0;if(g>=4){const y=[{id:`${v}-img-to-word-1`,name:`${_} image to word`,type:"image_to_word",category:v,level:1,cycle:1,repetitions:1,filters:{from_language:"img",to_language:"sma",semantics:[m]},sound:!0,answers:4},{id:`${v}-word-to-img-1`,name:`${_} word to image`,type:"word_to_image",category:v,level:2,cycle:1,repetitions:1,filters:{from_language:"sma",to_language:"img",semantics:[m]},sound:!0,answers:4}];s.push(...y),u.push({category:v,name:`${_} (${g} words)`,semantics:[m],description:`Learn ${_.toLowerCase()} - ${g} concepts available`})}}),console.log("Created questions:",s),console.log("Created categories:",u),r(s),e(u)}catch(c){console.error("Failed to load concepts from static data:",c),e([]),r([])}}catch(c){console.error("Failed to load categories:",c)}finally{o(!1)}}})()},[]),f.jsxs("div",{className:"space-y-8",children:[f.jsxs("div",{className:"text-center space-y-4",children:[f.jsx("h1",{className:"text-4xl font-display text-gray-900",children:i("welcome.title")}),f.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:i("welcome.description")})]}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"card text-center",children:[f.jsx(xu,{className:"w-8 h-8 text-primary-600 mx-auto mb-2"}),f.jsx("h3",{className:"text-lg font-semibold mb-1",children:i("welcome.interactiveLearning")}),f.jsx("p",{className:"text-gray-600",children:i("welcome.interactiveDescription")})]}),f.jsxs("div",{className:"card text-center",children:[f.jsx(DT,{className:"w-8 h-8 text-secondary-600 mx-auto mb-2"}),f.jsx("h3",{className:"text-lg font-semibold mb-1",children:i("welcome.progressiveDifficulty")}),f.jsx("p",{className:"text-gray-600",children:i("welcome.progressiveDifficultyDescription")})]}),f.jsxs("div",{className:"card text-center",children:[f.jsx(FT,{className:"w-8 h-8 text-green-600 mx-auto mb-2"}),f.jsx("h3",{className:"text-lg font-semibold mb-1",children:i("welcome.trackProgress")}),f.jsx("p",{className:"text-gray-600",children:i("welcome.trackProgressDescription")})]})]}),f.jsxs("div",{className:"space-y-6",children:[f.jsx("h2",{className:"text-2xl font-display text-center text-gray-900",children:i("welcome.chooseCategory")}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:t.map(a=>f.jsxs(zt,{to:`/game/${a.category}`,className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[f.jsx("h3",{className:"text-xl font-semibold text-gray-800 mb-2",children:a.name}),a.description&&f.jsx("p",{className:"text-gray-600",children:a.description})]},a.category))}),t.length===0&&f.jsxs("div",{className:"text-center py-12",children:[f.jsx("div",{className:"loading-spinner mx-auto mb-4"}),f.jsx("p",{className:"text-gray-600",children:i("welcome.loadingCategories")})]})]})]})}const Zf={currentQuestion:null,isLoading:!1,isPlaying:!1,currentPoints:100,timeRemaining:0,answeredCorrectly:null,selectedAnswer:null},i0=Ru()(Nu(t=>({...Zf,setCurrentQuestion:e=>t({currentQuestion:e}),setLoading:e=>t({isLoading:e}),setPlaying:e=>t({isPlaying:e}),setCurrentPoints:e=>t({currentPoints:e}),addPoints:e=>t(n=>({currentPoints:Math.max(0,n.currentPoints+e)})),subtractPoints:e=>t(n=>({currentPoints:Math.max(0,n.currentPoints-e)})),setTimeRemaining:e=>t({timeRemaining:e}),setAnsweredCorrectly:e=>t({answeredCorrectly:e}),setSelectedAnswer:e=>t({selectedAnswer:e}),resetGame:()=>t(Zf)}),{name:"gielese-game-store",partialize:t=>({currentPoints:t.currentPoints})}));var Wv={};/*!
220 *  howler.js v2.2.4
221 *  howlerjs.com
222 *
223 *  (c) 2013-2020, James Simpson of GoldFire Studios
224 *  goldfirestudios.com
225 *
226 *  MIT License
227 */(function(t){(function(){var e=function(){this.init()};e.prototype={init:function(){var s=this||n;return s._counter=1e3,s._html5AudioPool=[],s.html5PoolSize=10,s._codecs={},s._howls=[],s._muted=!1,s._volume=1,s._canPlayEvent="canplaythrough",s._navigator=typeof window<"u"&&window.navigator?window.navigator:null,s.masterGain=null,s.noAudio=!1,s.usingWebAudio=!0,s.autoSuspend=!0,s.ctx=null,s.autoUnlock=!0,s._setup(),s},volume:function(s){var u=this||n;if(s=parseFloat(s),u.ctx||p(),typeof s<"u"&&s>=0&&s<=1){if(u._volume=s,u._muted)return u;u.usingWebAudio&&u.masterGain.gain.setValueAtTime(s,n.ctx.currentTime);for(var h=0;h<u._howls.length;h++)if(!u._howls[h]._webAudio)for(var m=u._howls[h]._getSoundIds(),v=0;v<m.length;v++){var _=u._howls[h]._soundById(m[v]);_&&_._node&&(_._node.volume=_._volume*s)}return u}return u._volume},mute:function(s){var u=this||n;u.ctx||p(),u._muted=s,u.usingWebAudio&&u.masterGain.gain.setValueAtTime(s?0:u._volume,n.ctx.currentTime);for(var h=0;h<u._howls.length;h++)if(!u._howls[h]._webAudio)for(var m=u._howls[h]._getSoundIds(),v=0;v<m.length;v++){var _=u._howls[h]._soundById(m[v]);_&&_._node&&(_._node.muted=s?!0:_._muted)}return u},stop:function(){for(var s=this||n,u=0;u<s._howls.length;u++)s._howls[u].stop();return s},unload:function(){for(var s=this||n,u=s._howls.length-1;u>=0;u--)s._howls[u].unload();return s.usingWebAudio&&s.ctx&&typeof s.ctx.close<"u"&&(s.ctx.close(),s.ctx=null,p()),s},codecs:function(s){return(this||n)._codecs[s.replace(/^x-/,"")]},_setup:function(){var s=this||n;if(s.state=s.ctx&&s.ctx.state||"suspended",s._autoSuspend(),!s.usingWebAudio)if(typeof Audio<"u")try{var u=new Audio;typeof u.oncanplaythrough>"u"&&(s._canPlayEvent="canplay")}catch{s.noAudio=!0}else s.noAudio=!0;try{var u=new Audio;u.muted&&(s.noAudio=!0)}catch{}return s.noAudio||s._setupCodecs(),s},_setupCodecs:function(){var s=this||n,u=null;try{u=typeof Audio<"u"?new Audio:null}catch{return s}if(!u||typeof u.canPlayType!="function")return s;var h=u.canPlayType("audio/mpeg;").replace(/^no$/,""),m=s._navigator?s._navigator.userAgent:"",v=m.match(/OPR\/(\d+)/g),_=v&&parseInt(v[0].split("/")[1],10)<33,g=m.indexOf("Safari")!==-1&&m.indexOf("Chrome")===-1,y=m.match(/Version\/(.*?) /),w=g&&y&&parseInt(y[1],10)<15;return s._codecs={mp3:!!(!_&&(h||u.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!h,opus:!!u.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!u.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!u.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(u.canPlayType('audio/wav; codecs="1"')||u.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!u.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!u.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(u.canPlayType("audio/x-m4a;")||u.canPlayType("audio/m4a;")||u.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(u.canPlayType("audio/x-m4b;")||u.canPlayType("audio/m4b;")||u.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(u.canPlayType("audio/x-mp4;")||u.canPlayType("audio/mp4;")||u.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!w&&u.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!w&&u.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!u.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(u.canPlayType("audio/x-flac;")||u.canPlayType("audio/flac;")).replace(/^no$/,"")},s},_unlockAudio:function(){var s=this||n;if(!(s._audioUnlocked||!s.ctx)){s._audioUnlocked=!1,s.autoUnlock=!1,!s._mobileUnloaded&&s.ctx.sampleRate!==44100&&(s._mobileUnloaded=!0,s.unload()),s._scratchBuffer=s.ctx.createBuffer(1,1,22050);var u=function(h){for(;s._html5AudioPool.length<s.html5PoolSize;)try{var m=new Audio;m._unlocked=!0,s._releaseHtml5Audio(m)}catch{s.noAudio=!0;break}for(var v=0;v<s._howls.length;v++)if(!s._howls[v]._webAudio)for(var _=s._howls[v]._getSoundIds(),g=0;g<_.length;g++){var y=s._howls[v]._soundById(_[g]);y&&y._node&&!y._node._unlocked&&(y._node._unlocked=!0,y._node.load())}s._autoResume();var w=s.ctx.createBufferSource();w.buffer=s._scratchBuffer,w.connect(s.ctx.destination),typeof w.start>"u"?w.noteOn(0):w.start(0),typeof s.ctx.resume=="function"&&s.ctx.resume(),w.onended=function(){w.disconnect(0),s._audioUnlocked=!0,document.removeEventListener("touchstart",u,!0),document.removeEventListener("touchend",u,!0),document.removeEventListener("click",u,!0),document.removeEventListener("keydown",u,!0);for(var T=0;T<s._howls.length;T++)s._howls[T]._emit("unlock")}};return document.addEventListener("touchstart",u,!0),document.addEventListener("touchend",u,!0),document.addEventListener("click",u,!0),document.addEventListener("keydown",u,!0),s}},_obtainHtml5Audio:function(){var s=this||n;if(s._html5AudioPool.length)return s._html5AudioPool.pop();var u=new Audio().play();return u&&typeof Promise<"u"&&(u instanceof Promise||typeof u.then=="function")&&u.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(s){var u=this||n;return s._unlocked&&u._html5AudioPool.push(s),u},_autoSuspend:function(){var s=this;if(!(!s.autoSuspend||!s.ctx||typeof s.ctx.suspend>"u"||!n.usingWebAudio)){for(var u=0;u<s._howls.length;u++)if(s._howls[u]._webAudio){for(var h=0;h<s._howls[u]._sounds.length;h++)if(!s._howls[u]._sounds[h]._paused)return s}return s._suspendTimer&&clearTimeout(s._suspendTimer),s._suspendTimer=setTimeout(function(){if(s.autoSuspend){s._suspendTimer=null,s.state="suspending";var m=function(){s.state="suspended",s._resumeAfterSuspend&&(delete s._resumeAfterSuspend,s._autoResume())};s.ctx.suspend().then(m,m)}},3e4),s}},_autoResume:function(){var s=this;if(!(!s.ctx||typeof s.ctx.resume>"u"||!n.usingWebAudio))return s.state==="running"&&s.ctx.state!=="interrupted"&&s._suspendTimer?(clearTimeout(s._suspendTimer),s._suspendTimer=null):s.state==="suspended"||s.state==="running"&&s.ctx.state==="interrupted"?(s.ctx.resume().then(function(){s.state="running";for(var u=0;u<s._howls.length;u++)s._howls[u]._emit("resume")}),s._suspendTimer&&(clearTimeout(s._suspendTimer),s._suspendTimer=null)):s.state==="suspending"&&(s._resumeAfterSuspend=!0),s}};var n=new e,r=function(s){var u=this;if(!s.src||s.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}u.init(s)};r.prototype={init:function(s){var u=this;return n.ctx||p(),u._autoplay=s.autoplay||!1,u._format=typeof s.format!="string"?s.format:[s.format],u._html5=s.html5||!1,u._muted=s.mute||!1,u._loop=s.loop||!1,u._pool=s.pool||5,u._preload=typeof s.preload=="boolean"||s.preload==="metadata"?s.preload:!0,u._rate=s.rate||1,u._sprite=s.sprite||{},u._src=typeof s.src!="string"?s.src:[s.src],u._volume=s.volume!==void 0?s.volume:1,u._xhr={method:s.xhr&&s.xhr.method?s.xhr.method:"GET",headers:s.xhr&&s.xhr.headers?s.xhr.headers:null,withCredentials:s.xhr&&s.xhr.withCredentials?s.xhr.withCredentials:!1},u._duration=0,u._state="unloaded",u._sounds=[],u._endTimers={},u._queue=[],u._playLock=!1,u._onend=s.onend?[{fn:s.onend}]:[],u._onfade=s.onfade?[{fn:s.onfade}]:[],u._onload=s.onload?[{fn:s.onload}]:[],u._onloaderror=s.onloaderror?[{fn:s.onloaderror}]:[],u._onplayerror=s.onplayerror?[{fn:s.onplayerror}]:[],u._onpause=s.onpause?[{fn:s.onpause}]:[],u._onplay=s.onplay?[{fn:s.onplay}]:[],u._onstop=s.onstop?[{fn:s.onstop}]:[],u._onmute=s.onmute?[{fn:s.onmute}]:[],u._onvolume=s.onvolume?[{fn:s.onvolume}]:[],u._onrate=s.onrate?[{fn:s.onrate}]:[],u._onseek=s.onseek?[{fn:s.onseek}]:[],u._onunlock=s.onunlock?[{fn:s.onunlock}]:[],u._onresume=[],u._webAudio=n.usingWebAudio&&!u._html5,typeof n.ctx<"u"&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(u),u._autoplay&&u._queue.push({event:"play",action:function(){u.play()}}),u._preload&&u._preload!=="none"&&u.load(),u},load:function(){var s=this,u=null;if(n.noAudio){s._emit("loaderror",null,"No audio support.");return}typeof s._src=="string"&&(s._src=[s._src]);for(var h=0;h<s._src.length;h++){var m,v;if(s._format&&s._format[h])m=s._format[h];else{if(v=s._src[h],typeof v!="string"){s._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}m=/^data:audio\/([^;,]+);/i.exec(v),m||(m=/\.([^.]+)$/.exec(v.split("?",1)[0])),m&&(m=m[1].toLowerCase())}if(m||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),m&&n.codecs(m)){u=s._src[h];break}}if(!u){s._emit("loaderror",null,"No codec support for selected audio sources.");return}return s._src=u,s._state="loading",window.location.protocol==="https:"&&u.slice(0,5)==="http:"&&(s._html5=!0,s._webAudio=!1),new o(s),s._webAudio&&a(s),s},play:function(s,u){var h=this,m=null;if(typeof s=="number")m=s,s=null;else{if(typeof s=="string"&&h._state==="loaded"&&!h._sprite[s])return null;if(typeof s>"u"&&(s="__default",!h._playLock)){for(var v=0,_=0;_<h._sounds.length;_++)h._sounds[_]._paused&&!h._sounds[_]._ended&&(v++,m=h._sounds[_]._id);v===1?s=null:m=null}}var g=m?h._soundById(m):h._inactiveSound();if(!g)return null;if(m&&!s&&(s=g._sprite||"__default"),h._state!=="loaded"){g._sprite=s,g._ended=!1;var y=g._id;return h._queue.push({event:"play",action:function(){h.play(y)}}),y}if(m&&!g._paused)return u||h._loadQueue("play"),g._id;h._webAudio&&n._autoResume();var w=Math.max(0,g._seek>0?g._seek:h._sprite[s][0]/1e3),T=Math.max(0,(h._sprite[s][0]+h._sprite[s][1])/1e3-w),E=T*1e3/Math.abs(g._rate),R=h._sprite[s][0]/1e3,N=(h._sprite[s][0]+h._sprite[s][1])/1e3;g._sprite=s,g._ended=!1;var O=function(){g._paused=!1,g._seek=w,g._start=R,g._stop=N,g._loop=!!(g._loop||h._sprite[s][2])};if(w>=N){h._ended(g);return}var U=g._node;if(h._webAudio){var H=function(){h._playLock=!1,O(),h._refreshBuffer(g);var at=g._muted||h._muted?0:g._volume;U.gain.setValueAtTime(at,n.ctx.currentTime),g._playStart=n.ctx.currentTime,typeof U.bufferSource.start>"u"?g._loop?U.bufferSource.noteGrainOn(0,w,86400):U.bufferSource.noteGrainOn(0,w,T):g._loop?U.bufferSource.start(0,w,86400):U.bufferSource.start(0,w,T),E!==1/0&&(h._endTimers[g._id]=setTimeout(h._ended.bind(h,g),E)),u||setTimeout(function(){h._emit("play",g._id),h._loadQueue()},0)};n.state==="running"&&n.ctx.state!=="interrupted"?H():(h._playLock=!0,h.once("resume",H),h._clearTimer(g._id))}else{var Ae=function(){U.currentTime=w,U.muted=g._muted||h._muted||n._muted||U.muted,U.volume=g._volume*n.volume(),U.playbackRate=g._rate;try{var at=U.play();if(at&&typeof Promise<"u"&&(at instanceof Promise||typeof at.then=="function")?(h._playLock=!0,O(),at.then(function(){h._playLock=!1,U._unlocked=!0,u?h._loadQueue():h._emit("play",g._id)}).catch(function(){h._playLock=!1,h._emit("playerror",g._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),g._ended=!0,g._paused=!0})):u||(h._playLock=!1,O(),h._emit("play",g._id)),U.playbackRate=g._rate,U.paused){h._emit("playerror",g._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}s!=="__default"||g._loop?h._endTimers[g._id]=setTimeout(h._ended.bind(h,g),E):(h._endTimers[g._id]=function(){h._ended(g),U.removeEventListener("ended",h._endTimers[g._id],!1)},U.addEventListener("ended",h._endTimers[g._id],!1))}catch(Qr){h._emit("playerror",g._id,Qr)}};U.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(U.src=h._src,U.load());var pt=window&&window.ejecta||!U.readyState&&n._navigator.isCocoonJS;if(U.readyState>=3||pt)Ae();else{h._playLock=!0,h._state="loading";var xt=function(){h._state="loaded",Ae(),U.removeEventListener(n._canPlayEvent,xt,!1)};U.addEventListener(n._canPlayEvent,xt,!1),h._clearTimer(g._id)}}return g._id},pause:function(s){var u=this;if(u._state!=="loaded"||u._playLock)return u._queue.push({event:"pause",action:function(){u.pause(s)}}),u;for(var h=u._getSoundIds(s),m=0;m<h.length;m++){u._clearTimer(h[m]);var v=u._soundById(h[m]);if(v&&!v._paused&&(v._seek=u.seek(h[m]),v._rateSeek=0,v._paused=!0,u._stopFade(h[m]),v._node))if(u._webAudio){if(!v._node.bufferSource)continue;typeof v._node.bufferSource.stop>"u"?v._node.bufferSource.noteOff(0):v._node.bufferSource.stop(0),u._cleanBuffer(v._node)}else(!isNaN(v._node.duration)||v._node.duration===1/0)&&v._node.pause();arguments[1]||u._emit("pause",v?v._id:null)}return u},stop:function(s,u){var h=this;if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"stop",action:function(){h.stop(s)}}),h;for(var m=h._getSoundIds(s),v=0;v<m.length;v++){h._clearTimer(m[v]);var _=h._soundById(m[v]);_&&(_._seek=_._start||0,_._rateSeek=0,_._paused=!0,_._ended=!0,h._stopFade(m[v]),_._node&&(h._webAudio?_._node.bufferSource&&(typeof _._node.bufferSource.stop>"u"?_._node.bufferSource.noteOff(0):_._node.bufferSource.stop(0),h._cleanBuffer(_._node)):(!isNaN(_._node.duration)||_._node.duration===1/0)&&(_._node.currentTime=_._start||0,_._node.pause(),_._node.duration===1/0&&h._clearSound(_._node))),u||h._emit("stop",_._id))}return h},mute:function(s,u){var h=this;if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"mute",action:function(){h.mute(s,u)}}),h;if(typeof u>"u")if(typeof s=="boolean")h._muted=s;else return h._muted;for(var m=h._getSoundIds(u),v=0;v<m.length;v++){var _=h._soundById(m[v]);_&&(_._muted=s,_._interval&&h._stopFade(_._id),h._webAudio&&_._node?_._node.gain.setValueAtTime(s?0:_._volume,n.ctx.currentTime):_._node&&(_._node.muted=n._muted?!0:s),h._emit("mute",_._id))}return h},volume:function(){var s=this,u=arguments,h,m;if(u.length===0)return s._volume;if(u.length===1||u.length===2&&typeof u[1]>"u"){var v=s._getSoundIds(),_=v.indexOf(u[0]);_>=0?m=parseInt(u[0],10):h=parseFloat(u[0])}else u.length>=2&&(h=parseFloat(u[0]),m=parseInt(u[1],10));var g;if(typeof h<"u"&&h>=0&&h<=1){if(s._state!=="loaded"||s._playLock)return s._queue.push({event:"volume",action:function(){s.volume.apply(s,u)}}),s;typeof m>"u"&&(s._volume=h),m=s._getSoundIds(m);for(var y=0;y<m.length;y++)g=s._soundById(m[y]),g&&(g._volume=h,u[2]||s._stopFade(m[y]),s._webAudio&&g._node&&!g._muted?g._node.gain.setValueAtTime(h,n.ctx.currentTime):g._node&&!g._muted&&(g._node.volume=h*n.volume()),s._emit("volume",g._id))}else return g=m?s._soundById(m):s._sounds[0],g?g._volume:0;return s},fade:function(s,u,h,m){var v=this;if(v._state!=="loaded"||v._playLock)return v._queue.push({event:"fade",action:function(){v.fade(s,u,h,m)}}),v;s=Math.min(Math.max(0,parseFloat(s)),1),u=Math.min(Math.max(0,parseFloat(u)),1),h=parseFloat(h),v.volume(s,m);for(var _=v._getSoundIds(m),g=0;g<_.length;g++){var y=v._soundById(_[g]);if(y){if(m||v._stopFade(_[g]),v._webAudio&&!y._muted){var w=n.ctx.currentTime,T=w+h/1e3;y._volume=s,y._node.gain.setValueAtTime(s,w),y._node.gain.linearRampToValueAtTime(u,T)}v._startFadeInterval(y,s,u,h,_[g],typeof m>"u")}}return v},_startFadeInterval:function(s,u,h,m,v,_){var g=this,y=u,w=h-u,T=Math.abs(w/.01),E=Math.max(4,T>0?m/T:m),R=Date.now();s._fadeTo=h,s._interval=setInterval(function(){var N=(Date.now()-R)/m;R=Date.now(),y+=w*N,y=Math.round(y*100)/100,w<0?y=Math.max(h,y):y=Math.min(h,y),g._webAudio?s._volume=y:g.volume(y,s._id,!0),_&&(g._volume=y),(h<u&&y<=h||h>u&&y>=h)&&(clearInterval(s._interval),s._interval=null,s._fadeTo=null,g.volume(h,s._id),g._emit("fade",s._id))},E)},_stopFade:function(s){var u=this,h=u._soundById(s);return h&&h._interval&&(u._webAudio&&h._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(h._interval),h._interval=null,u.volume(h._fadeTo,s),h._fadeTo=null,u._emit("fade",s)),u},loop:function(){var s=this,u=arguments,h,m,v;if(u.length===0)return s._loop;if(u.length===1)if(typeof u[0]=="boolean")h=u[0],s._loop=h;else return v=s._soundById(parseInt(u[0],10)),v?v._loop:!1;else u.length===2&&(h=u[0],m=parseInt(u[1],10));for(var _=s._getSoundIds(m),g=0;g<_.length;g++)v=s._soundById(_[g]),v&&(v._loop=h,s._webAudio&&v._node&&v._node.bufferSource&&(v._node.bufferSource.loop=h,h&&(v._node.bufferSource.loopStart=v._start||0,v._node.bufferSource.loopEnd=v._stop,s.playing(_[g])&&(s.pause(_[g],!0),s.play(_[g],!0)))));return s},rate:function(){var s=this,u=arguments,h,m;if(u.length===0)m=s._sounds[0]._id;else if(u.length===1){var v=s._getSoundIds(),_=v.indexOf(u[0]);_>=0?m=parseInt(u[0],10):h=parseFloat(u[0])}else u.length===2&&(h=parseFloat(u[0]),m=parseInt(u[1],10));var g;if(typeof h=="number"){if(s._state!=="loaded"||s._playLock)return s._queue.push({event:"rate",action:function(){s.rate.apply(s,u)}}),s;typeof m>"u"&&(s._rate=h),m=s._getSoundIds(m);for(var y=0;y<m.length;y++)if(g=s._soundById(m[y]),g){s.playing(m[y])&&(g._rateSeek=s.seek(m[y]),g._playStart=s._webAudio?n.ctx.currentTime:g._playStart),g._rate=h,s._webAudio&&g._node&&g._node.bufferSource?g._node.bufferSource.playbackRate.setValueAtTime(h,n.ctx.currentTime):g._node&&(g._node.playbackRate=h);var w=s.seek(m[y]),T=(s._sprite[g._sprite][0]+s._sprite[g._sprite][1])/1e3-w,E=T*1e3/Math.abs(g._rate);(s._endTimers[m[y]]||!g._paused)&&(s._clearTimer(m[y]),s._endTimers[m[y]]=setTimeout(s._ended.bind(s,g),E)),s._emit("rate",g._id)}}else return g=s._soundById(m),g?g._rate:s._rate;return s},seek:function(){var s=this,u=arguments,h,m;if(u.length===0)s._sounds.length&&(m=s._sounds[0]._id);else if(u.length===1){var v=s._getSoundIds(),_=v.indexOf(u[0]);_>=0?m=parseInt(u[0],10):s._sounds.length&&(m=s._sounds[0]._id,h=parseFloat(u[0]))}else u.length===2&&(h=parseFloat(u[0]),m=parseInt(u[1],10));if(typeof m>"u")return 0;if(typeof h=="number"&&(s._state!=="loaded"||s._playLock))return s._queue.push({event:"seek",action:function(){s.seek.apply(s,u)}}),s;var g=s._soundById(m);if(g)if(typeof h=="number"&&h>=0){var y=s.playing(m);y&&s.pause(m,!0),g._seek=h,g._ended=!1,s._clearTimer(m),!s._webAudio&&g._node&&!isNaN(g._node.duration)&&(g._node.currentTime=h);var w=function(){y&&s.play(m,!0),s._emit("seek",m)};if(y&&!s._webAudio){var T=function(){s._playLock?setTimeout(T,0):w()};setTimeout(T,0)}else w()}else if(s._webAudio){var E=s.playing(m)?n.ctx.currentTime-g._playStart:0,R=g._rateSeek?g._rateSeek-g._seek:0;return g._seek+(R+E*Math.abs(g._rate))}else return g._node.currentTime;return s},playing:function(s){var u=this;if(typeof s=="number"){var h=u._soundById(s);return h?!h._paused:!1}for(var m=0;m<u._sounds.length;m++)if(!u._sounds[m]._paused)return!0;return!1},duration:function(s){var u=this,h=u._duration,m=u._soundById(s);return m&&(h=u._sprite[m._sprite][1]/1e3),h},state:function(){return this._state},unload:function(){for(var s=this,u=s._sounds,h=0;h<u.length;h++)u[h]._paused||s.stop(u[h]._id),s._webAudio||(s._clearSound(u[h]._node),u[h]._node.removeEventListener("error",u[h]._errorFn,!1),u[h]._node.removeEventListener(n._canPlayEvent,u[h]._loadFn,!1),u[h]._node.removeEventListener("ended",u[h]._endFn,!1),n._releaseHtml5Audio(u[h]._node)),delete u[h]._node,s._clearTimer(u[h]._id);var m=n._howls.indexOf(s);m>=0&&n._howls.splice(m,1);var v=!0;for(h=0;h<n._howls.length;h++)if(n._howls[h]._src===s._src||s._src.indexOf(n._howls[h]._src)>=0){v=!1;break}return i&&v&&delete i[s._src],n.noAudio=!1,s._state="unloaded",s._sounds=[],s=null,null},on:function(s,u,h,m){var v=this,_=v["_on"+s];return typeof u=="function"&&_.push(m?{id:h,fn:u,once:m}:{id:h,fn:u}),v},off:function(s,u,h){var m=this,v=m["_on"+s],_=0;if(typeof u=="number"&&(h=u,u=null),u||h)for(_=0;_<v.length;_++){var g=h===v[_].id;if(u===v[_].fn&&g||!u&&g){v.splice(_,1);break}}else if(s)m["_on"+s]=[];else{var y=Object.keys(m);for(_=0;_<y.length;_++)y[_].indexOf("_on")===0&&Array.isArray(m[y[_]])&&(m[y[_]]=[])}return m},once:function(s,u,h){var m=this;return m.on(s,u,h,1),m},_emit:function(s,u,h){for(var m=this,v=m["_on"+s],_=v.length-1;_>=0;_--)(!v[_].id||v[_].id===u||s==="load")&&(setTimeout((function(g){g.call(this,u,h)}).bind(m,v[_].fn),0),v[_].once&&m.off(s,v[_].fn,v[_].id));return m._loadQueue(s),m},_loadQueue:function(s){var u=this;if(u._queue.length>0){var h=u._queue[0];h.event===s&&(u._queue.shift(),u._loadQueue()),s||h.action()}return u},_ended:function(s){var u=this,h=s._sprite;if(!u._webAudio&&s._node&&!s._node.paused&&!s._node.ended&&s._node.currentTime<s._stop)return setTimeout(u._ended.bind(u,s),100),u;var m=!!(s._loop||u._sprite[h][2]);if(u._emit("end",s._id),!u._webAudio&&m&&u.stop(s._id,!0).play(s._id),u._webAudio&&m){u._emit("play",s._id),s._seek=s._start||0,s._rateSeek=0,s._playStart=n.ctx.currentTime;var v=(s._stop-s._start)*1e3/Math.abs(s._rate);u._endTimers[s._id]=setTimeout(u._ended.bind(u,s),v)}return u._webAudio&&!m&&(s._paused=!0,s._ended=!0,s._seek=s._start||0,s._rateSeek=0,u._clearTimer(s._id),u._cleanBuffer(s._node),n._autoSuspend()),!u._webAudio&&!m&&u.stop(s._id,!0),u},_clearTimer:function(s){var u=this;if(u._endTimers[s]){if(typeof u._endTimers[s]!="function")clearTimeout(u._endTimers[s]);else{var h=u._soundById(s);h&&h._node&&h._node.removeEventListener("ended",u._endTimers[s],!1)}delete u._endTimers[s]}return u},_soundById:function(s){for(var u=this,h=0;h<u._sounds.length;h++)if(s===u._sounds[h]._id)return u._sounds[h];return null},_inactiveSound:function(){var s=this;s._drain();for(var u=0;u<s._sounds.length;u++)if(s._sounds[u]._ended)return s._sounds[u].reset();return new o(s)},_drain:function(){var s=this,u=s._pool,h=0,m=0;if(!(s._sounds.length<u)){for(m=0;m<s._sounds.length;m++)s._sounds[m]._ended&&h++;for(m=s._sounds.length-1;m>=0;m--){if(h<=u)return;s._sounds[m]._ended&&(s._webAudio&&s._sounds[m]._node&&s._sounds[m]._node.disconnect(0),s._sounds.splice(m,1),h--)}}},_getSoundIds:function(s){var u=this;if(typeof s>"u"){for(var h=[],m=0;m<u._sounds.length;m++)h.push(u._sounds[m]._id);return h}else return[s]},_refreshBuffer:function(s){var u=this;return s._node.bufferSource=n.ctx.createBufferSource(),s._node.bufferSource.buffer=i[u._src],s._panner?s._node.bufferSource.connect(s._panner):s._node.bufferSource.connect(s._node),s._node.bufferSource.loop=s._loop,s._loop&&(s._node.bufferSource.loopStart=s._start||0,s._node.bufferSource.loopEnd=s._stop||0),s._node.bufferSource.playbackRate.setValueAtTime(s._rate,n.ctx.currentTime),u},_cleanBuffer:function(s){var u=this,h=n._navigator&&n._navigator.vendor.indexOf("Apple")>=0;if(!s.bufferSource)return u;if(n._scratchBuffer&&s.bufferSource&&(s.bufferSource.onended=null,s.bufferSource.disconnect(0),h))try{s.bufferSource.buffer=n._scratchBuffer}catch{}return s.bufferSource=null,u},_clearSound:function(s){var u=/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent);u||(s.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var o=function(s){this._parent=s,this.init()};o.prototype={init:function(){var s=this,u=s._parent;return s._muted=u._muted,s._loop=u._loop,s._volume=u._volume,s._rate=u._rate,s._seek=0,s._paused=!0,s._ended=!0,s._sprite="__default",s._id=++n._counter,u._sounds.push(s),s.create(),s},create:function(){var s=this,u=s._parent,h=n._muted||s._muted||s._parent._muted?0:s._volume;return u._webAudio?(s._node=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),s._node.gain.setValueAtTime(h,n.ctx.currentTime),s._node.paused=!0,s._node.connect(n.masterGain)):n.noAudio||(s._node=n._obtainHtml5Audio(),s._errorFn=s._errorListener.bind(s),s._node.addEventListener("error",s._errorFn,!1),s._loadFn=s._loadListener.bind(s),s._node.addEventListener(n._canPlayEvent,s._loadFn,!1),s._endFn=s._endListener.bind(s),s._node.addEventListener("ended",s._endFn,!1),s._node.src=u._src,s._node.preload=u._preload===!0?"auto":u._preload,s._node.volume=h*n.volume(),s._node.load()),s},reset:function(){var s=this,u=s._parent;return s._muted=u._muted,s._loop=u._loop,s._volume=u._volume,s._rate=u._rate,s._seek=0,s._rateSeek=0,s._paused=!0,s._ended=!0,s._sprite="__default",s._id=++n._counter,s},_errorListener:function(){var s=this;s._parent._emit("loaderror",s._id,s._node.error?s._node.error.code:0),s._node.removeEventListener("error",s._errorFn,!1)},_loadListener:function(){var s=this,u=s._parent;u._duration=Math.ceil(s._node.duration*10)/10,Object.keys(u._sprite).length===0&&(u._sprite={__default:[0,u._duration*1e3]}),u._state!=="loaded"&&(u._state="loaded",u._emit("load"),u._loadQueue()),s._node.removeEventListener(n._canPlayEvent,s._loadFn,!1)},_endListener:function(){var s=this,u=s._parent;u._duration===1/0&&(u._duration=Math.ceil(s._node.duration*10)/10,u._sprite.__default[1]===1/0&&(u._sprite.__default[1]=u._duration*1e3),u._ended(s)),s._node.removeEventListener("ended",s._endFn,!1)}};var i={},a=function(s){var u=s._src;if(i[u]){s._duration=i[u].duration,d(s);return}if(/^data:[^;]+;base64,/.test(u)){for(var h=atob(u.split(",")[1]),m=new Uint8Array(h.length),v=0;v<h.length;++v)m[v]=h.charCodeAt(v);c(m.buffer,s)}else{var _=new XMLHttpRequest;_.open(s._xhr.method,u,!0),_.withCredentials=s._xhr.withCredentials,_.responseType="arraybuffer",s._xhr.headers&&Object.keys(s._xhr.headers).forEach(function(g){_.setRequestHeader(g,s._xhr.headers[g])}),_.onload=function(){var g=(_.status+"")[0];if(g!=="0"&&g!=="2"&&g!=="3"){s._emit("loaderror",null,"Failed loading audio file with status: "+_.status+".");return}c(_.response,s)},_.onerror=function(){s._webAudio&&(s._html5=!0,s._webAudio=!1,s._sounds=[],delete i[u],s.load())},l(_)}},l=function(s){try{s.send()}catch{s.onerror()}},c=function(s,u){var h=function(){u._emit("loaderror",null,"Decoding audio data failed.")},m=function(v){v&&u._sounds.length>0?(i[u._src]=v,d(u,v)):h()};typeof Promise<"u"&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(s).then(m).catch(h):n.ctx.decodeAudioData(s,m,h)},d=function(s,u){u&&!s._duration&&(s._duration=u.duration),Object.keys(s._sprite).length===0&&(s._sprite={__default:[0,s._duration*1e3]}),s._state!=="loaded"&&(s._state="loaded",s._emit("load"),s._loadQueue())},p=function(){if(n.usingWebAudio){try{typeof AudioContext<"u"?n.ctx=new AudioContext:typeof webkitAudioContext<"u"?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch{n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var s=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),u=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),h=u?parseInt(u[1],10):null;if(s&&h&&h<9){var m=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!m&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};t.Howler=n,t.Howl=r,typeof Wr<"u"?(Wr.HowlerGlobal=e,Wr.Howler=n,Wr.Howl=r,Wr.Sound=o):typeof window<"u"&&(window.HowlerGlobal=e,window.Howler=n,window.Howl=r,window.Sound=o)})();/*!
228 *  Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
229 *  
230 *  howler.js v2.2.4
231 *  howlerjs.com
232 *
233 *  (c) 2013-2020, James Simpson of GoldFire Studios
234 *  goldfirestudios.com
235 *
236 *  MIT License
237 */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(n){var r=this;if(!r.ctx||!r.ctx.listener)return r;for(var o=r._howls.length-1;o>=0;o--)r._howls[o].stereo(n);return r},HowlerGlobal.prototype.pos=function(n,r,o){var i=this;if(!i.ctx||!i.ctx.listener)return i;if(r=typeof r!="number"?i._pos[1]:r,o=typeof o!="number"?i._pos[2]:o,typeof n=="number")i._pos=[n,r,o],typeof i.ctx.listener.positionX<"u"?(i.ctx.listener.positionX.setTargetAtTime(i._pos[0],Howler.ctx.currentTime,.1),i.ctx.listener.positionY.setTargetAtTime(i._pos[1],Howler.ctx.currentTime,.1),i.ctx.listener.positionZ.setTargetAtTime(i._pos[2],Howler.ctx.currentTime,.1)):i.ctx.listener.setPosition(i._pos[0],i._pos[1],i._pos[2]);else return i._pos;return i},HowlerGlobal.prototype.orientation=function(n,r,o,i,a,l){var c=this;if(!c.ctx||!c.ctx.listener)return c;var d=c._orientation;if(r=typeof r!="number"?d[1]:r,o=typeof o!="number"?d[2]:o,i=typeof i!="number"?d[3]:i,a=typeof a!="number"?d[4]:a,l=typeof l!="number"?d[5]:l,typeof n=="number")c._orientation=[n,r,o,i,a,l],typeof c.ctx.listener.forwardX<"u"?(c.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),c.ctx.listener.forwardY.setTargetAtTime(r,Howler.ctx.currentTime,.1),c.ctx.listener.forwardZ.setTargetAtTime(o,Howler.ctx.currentTime,.1),c.ctx.listener.upX.setTargetAtTime(i,Howler.ctx.currentTime,.1),c.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),c.ctx.listener.upZ.setTargetAtTime(l,Howler.ctx.currentTime,.1)):c.ctx.listener.setOrientation(n,r,o,i,a,l);else return d;return c},Howl.prototype.init=function(n){return function(r){var o=this;return o._orientation=r.orientation||[1,0,0],o._stereo=r.stereo||null,o._pos=r.pos||null,o._pannerAttr={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:360,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:360,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:0,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:"inverse",maxDistance:typeof r.maxDistance<"u"?r.maxDistance:1e4,panningModel:typeof r.panningModel<"u"?r.panningModel:"HRTF",refDistance:typeof r.refDistance<"u"?r.refDistance:1,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:1},o._onstereo=r.onstereo?[{fn:r.onstereo}]:[],o._onpos=r.onpos?[{fn:r.onpos}]:[],o._onorientation=r.onorientation?[{fn:r.onorientation}]:[],n.call(this,r)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,r){var o=this;if(!o._webAudio)return o;if(o._state!=="loaded")return o._queue.push({event:"stereo",action:function(){o.stereo(n,r)}}),o;var i=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof r>"u")if(typeof n=="number")o._stereo=n,o._pos=[n,0,0];else return o._stereo;for(var a=o._getSoundIds(r),l=0;l<a.length;l++){var c=o._soundById(a[l]);if(c)if(typeof n=="number")c._stereo=n,c._pos=[n,0,0],c._node&&(c._pannerAttr.panningModel="equalpower",(!c._panner||!c._panner.pan)&&e(c,i),i==="spatial"?typeof c._panner.positionX<"u"?(c._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):c._panner.setPosition(n,0,0):c._panner.pan.setValueAtTime(n,Howler.ctx.currentTime)),o._emit("stereo",c._id);else return c._stereo}return o},Howl.prototype.pos=function(n,r,o,i){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"pos",action:function(){a.pos(n,r,o,i)}}),a;if(r=typeof r!="number"?0:r,o=typeof o!="number"?-.5:o,typeof i>"u")if(typeof n=="number")a._pos=[n,r,o];else return a._pos;for(var l=a._getSoundIds(i),c=0;c<l.length;c++){var d=a._soundById(l[c]);if(d)if(typeof n=="number")d._pos=[n,r,o],d._node&&((!d._panner||d._panner.pan)&&e(d,"spatial"),typeof d._panner.positionX<"u"?(d._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),d._panner.positionY.setValueAtTime(r,Howler.ctx.currentTime),d._panner.positionZ.setValueAtTime(o,Howler.ctx.currentTime)):d._panner.setPosition(n,r,o)),a._emit("pos",d._id);else return d._pos}return a},Howl.prototype.orientation=function(n,r,o,i){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"orientation",action:function(){a.orientation(n,r,o,i)}}),a;if(r=typeof r!="number"?a._orientation[1]:r,o=typeof o!="number"?a._orientation[2]:o,typeof i>"u")if(typeof n=="number")a._orientation=[n,r,o];else return a._orientation;for(var l=a._getSoundIds(i),c=0;c<l.length;c++){var d=a._soundById(l[c]);
237if(d)if(typeof n=="number")d._orientation=[n,r,o],d._node&&(d._panner||(d._pos||(d._pos=a._pos||[0,0,-.5]),e(d,"spatial")),typeof d._panner.orientationX<"u"?(d._panner.orientationX.setValueAtTime(n,Howler.ctx.currentTime),d._panner.orientationY.setValueAtTime(r,Howler.ctx.currentTime),d._panner.orientationZ.setValueAtTime(o,Howler.ctx.currentTime)):d._panner.setOrientation(n,r,o)),a._emit("orientation",d._id);else return d._orientation}return a},Howl.prototype.pannerAttr=function(){var n=this,r=arguments,o,i,a;if(!n._webAudio)return n;if(r.length===0)return n._pannerAttr;if(r.length===1)if(typeof r[0]=="object")o=r[0],typeof i>"u"&&(o.pannerAttr||(o.pannerAttr={coneInnerAngle:o.coneInnerAngle,coneOuterAngle:o.coneOuterAngle,coneOuterGain:o.coneOuterGain,distanceModel:o.distanceModel,maxDistance:o.maxDistance,refDistance:o.refDistance,rolloffFactor:o.rolloffFactor,panningModel:o.panningModel}),n._pannerAttr={coneInnerAngle:typeof o.pannerAttr.coneInnerAngle<"u"?o.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof o.pannerAttr.coneOuterAngle<"u"?o.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof o.pannerAttr.coneOuterGain<"u"?o.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof o.pannerAttr.distanceModel<"u"?o.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof o.pannerAttr.maxDistance<"u"?o.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof o.pannerAttr.refDistance<"u"?o.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof o.pannerAttr.rolloffFactor<"u"?o.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof o.pannerAttr.panningModel<"u"?o.pannerAttr.panningModel:n._panningModel});else return a=n._soundById(parseInt(r[0],10)),a?a._pannerAttr:n._pannerAttr;else r.length===2&&(o=r[0],i=parseInt(r[1],10));for(var l=n._getSoundIds(i),c=0;c<l.length;c++)if(a=n._soundById(l[c]),a){var d=a._pannerAttr;d={coneInnerAngle:typeof o.coneInnerAngle<"u"?o.coneInnerAngle:d.coneInnerAngle,coneOuterAngle:typeof o.coneOuterAngle<"u"?o.coneOuterAngle:d.coneOuterAngle,coneOuterGain:typeof o.coneOuterGain<"u"?o.coneOuterGain:d.coneOuterGain,distanceModel:typeof o.distanceModel<"u"?o.distanceModel:d.distanceModel,maxDistance:typeof o.maxDistance<"u"?o.maxDistance:d.maxDistance,refDistance:typeof o.refDistance<"u"?o.refDistance:d.refDistance,rolloffFactor:typeof o.rolloffFactor<"u"?o.rolloffFactor:d.rolloffFactor,panningModel:typeof o.panningModel<"u"?o.panningModel:d.panningModel};var p=a._panner;p||(a._pos||(a._pos=n._pos||[0,0,-.5]),e(a,"spatial"),p=a._panner),p.coneInnerAngle=d.coneInnerAngle,p.coneOuterAngle=d.coneOuterAngle,p.coneOuterGain=d.coneOuterGain,p.distanceModel=d.distanceModel,p.maxDistance=d.maxDistance,p.refDistance=d.refDistance,p.rolloffFactor=d.rolloffFactor,p.panningModel=d.panningModel}return n},Sound.prototype.init=function(n){return function(){var r=this,o=r._parent;r._orientation=o._orientation,r._stereo=o._stereo,r._pos=o._pos,r._pannerAttr=o._pannerAttr,n.call(this),r._stereo?o.stereo(r._stereo):r._pos&&o.pos(r._pos[0],r._pos[1],r._pos[2],r._id)}}(Sound.prototype.init),Sound.prototype.reset=function(n){return function(){var r=this,o=r._parent;return r._orientation=o._orientation,r._stereo=o._stereo,r._pos=o._pos,r._pannerAttr=o._pannerAttr,r._stereo?o.stereo(r._stereo):r._pos?o.pos(r._pos[0],r._pos[1],r._pos[2],r._id):r._panner&&(r._panner.disconnect(0),r._panner=void 0,o._refreshBuffer(r)),n.call(this)}}(Sound.prototype.reset);var e=function(n,r){r=r||"spatial",r==="spatial"?(n._panner=Howler.ctx.createPanner(),n._panner.coneInnerAngle=n._pannerAttr.coneInnerAngle,n._panner.coneOuterAngle=n._pannerAttr.coneOuterAngle,n._panner.coneOuterGain=n._pannerAttr.coneOuterGain,n._panner.distanceModel=n._pannerAttr.distanceModel,n._panner.maxDistance=n._pannerAttr.maxDistance,n._panner.refDistance=n._pannerAttr.refDistance,n._panner.rolloffFactor=n._pannerAttr.rolloffFactor,n._panner.panningModel=n._pannerAttr.panningModel,typeof n._panner.positionX<"u"?(n._panner.positionX.setValueAtTime(n._pos[0],Howler.ctx.currentTime),n._panner.positionY.setValueAtTime(n._pos[1],Howler.ctx.currentTime),n._panner.positionZ.setValueAtTime(n._pos[2],Howler.ctx.currentTime)):n._panner.setPosition(n._pos[0],n._pos[1],n._pos[2]),typeof n._panner.orientationX<"u"?(n._panner.orientationX.setValueAtTime(n._orientation[0],Howler.ctx.currentTime),n._panner.orientationY.setValueAtTime(n._orientation[1],Howler.ctx.currentTime),n._panner.orientationZ.setValueAtTime(n._orientation[2],Howler.ctx.currentTime)):n._panner.setOrientation(n._orientation[0],n._orientation[1],n._orientation[2])):(n._panner=Howler.ctx.createStereoPanner(),n._panner.pan.setValueAtTime(n._stereo,Howler.ctx.currentTime)),n._panner.connect(n._node),n._paused||n._parent.pause(n._id,!0).play(n._id,!0)}})()})(Wv);class a0{constructor(){ui(this,"sounds",new Map);ui(this,"isEnabled",!0)}setEnabled(e){this.isEnabled=e}createSound(e){return new Wv.Howl({src:[e],volume:.5,preload:!0,onloaderror:(n,r)=>{console.error("Audio load error:",r)},onplayerror:(n,r)=>{console.error("Audio play error:",r)}})}preload(e){return new Promise((n,r)=>{if(this.sounds.has(e)){n();return}const o=this.createSound(e);this.sounds.set(e,o),o.once("load",()=>n()),o.once("loaderror",r)})}play(e,n={}){return new Promise((r,o)=>{if(!this.isEnabled){r();return}let i=this.sounds.get(e);i||(i=this.createSound(e),this.sounds.set(e,i)),n.volume!==void 0&&i.volume(n.volume),i.once("end",()=>{var l;(l=n.onEnd)==null||l.call(n),r()}),i.once("playerror",o),i.play()===void 0&&o(new Error("Failed to play sound"))})}stop(e){if(e){const n=this.sounds.get(e);n==null||n.stop()}else this.sounds.forEach(n=>n.stop())}
237cleanup(){this.sounds.forEach(e=>e.unload()),this.sounds.clear()}}const ep=new a0;function s0(){const{category:t}=tT(),[e,n]=k.useState(0),{t:r}=Es(),{currentQuestion:o,isLoading:i,currentPoints:a,answeredCorrectly:l,selectedAnswer:c,setCurrentQuestion:d,setLoading:p,addPoints:s,subtractPoints:u,setAnsweredCorrectly:h,setSelectedAnswer:m}=i0(),{concepts:v,getQuestionsByCategory:_,getCategoryByName:g}=Qv(),{addLogEntry:y,settings:w,updateSettings:T}=ks();k.useEffect(()=>{w.auto_play_audio===void 0&&T({auto_play_audio:!0})},[w.auto_play_audio,T]);const E=g(t||""),R=_(t||""),[N,O]=k.useState(!1),[U,H]=k.useState(null);k.useEffect(()=>{t&&R.length>0&&v.length>0&&pt()},[t,R.length,v.length]);const Ae=()=>{U&&(clearTimeout(U),H(null)),pt()},pt=async()=>{p(!0);try{const $=R[Math.floor(Math.random()*R.length)];let V=v.filter(Z=>{var On;return(On=E==null?void 0:E.semantics)==null?void 0:On.some(Ut=>Z.semantics.includes(Ut))});if(($.type==="image_to_word"||$.type==="word_to_image")&&(V=V.filter(Z=>Z.image_path&&Z.image_path.trim()!=="")),V.length<4)throw new Error(`Not enough concepts with required media for this category. Found ${V.length} concepts with images.`);const P=V[Math.floor(Math.random()*V.length)],j=[P];for(;j.length<4;){const Z=V[Math.floor(Math.random()*V.length)];j.includes(Z)||j.push(Z)}const F=j.sort(()=>Math.random()-.5),ie={generator:$,question:P,choices:F,answer:P,current_count:0,question_total:V.length,total_correct:0};d(ie),h(null),m(null),n(30),$.type==="word_to_image"&&w.auto_play_audio&&w.enable_audio&&P.audio_path&&setTimeout(()=>{at(P)},500)}catch($){console.error("Failed to generate question:",$)}finally{p(!1)}},xt=async $=>{if(l!==null)return;m($.id.toString());const V=$.id===(o==null?void 0:o.answer.id);if(h(V),await Qr($),V){const j=Math.max(10,Math.floor(e/3));s(j)}else u(10);if(o){const j={id:crypto.randomUUID(),game_name:"leksa",question_concept:o.question.name,question_concept_value:o.question.name,question_correct:V,question_category:o.generator.category,question_category_level:o.generator.level,points:V?Math.max(10,Math.floor(e/3)):0,cycle:o.generator.cycle,timestamp:new Date};y(j)}const P=setTimeout(()=>{pt()},5e3);H(P)},at=async $=>{const V=$||(o==null?void 0:o.question);if(!(!(V!=null&&V.audio_path)||!w.enable_audio||N))try{O(!0),console.log("Playing audio:",V.audio_path),await ep.play(V.audio_path,{onEnd:()=>O(!1)})}catch(P){console.error("Failed to play audio:",P),O(!1)}},Qr=async $=>{if(!(!$.audio_path||!w.enable_audio||N))try{O(!0),console.log("Playing concept audio:",$.audio_path),await ep.play($.audio_path,{onEnd:()=>O(!1)})}catch(V){console.error("Failed to play concept audio:",V),O(!1)}};return i?f.jsx("div",{className:"game-container",children:f.jsxs("div",{className:"text-center py-12",children:[f.jsx("div",{className:"loading-spinner mx-auto mb-4"}),f.jsx("p",{className:"text-gray-600",children:r("game.loading","Loading question...")})]})}):o?f.jsxs("div",{className:"game-container",children:[f.jsxs("div",{className:"flex justify-between items-center mb-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-display text-gray-900",children:(E==null?void 0:E.name)||t}),f.jsxs("p",{className:"text-gray-600",children:[r("game.level")," ",o.generator.level]})]}),f.jsxs("div",{className:"text-right",children:[f.jsx("div",{className:"text-2xl font-bold text-secondary-600",children:a}),f.jsx("div",{className:"text-sm text-gray-600",children:r("game.points")})]})]}),f.jsxs("div",{className:"question-card",children:[f.jsxs("div",{className:"text-center mb-6",children:[f.jsx("h2",{className:"text-xl font-semibold mb-2",children:o.generator.type==="word_to_image"?r("game.whichImageMatches"):o.generator.type==="image_to_word"?r("game.whichWordMatches"):r("game.selectTranslation")}),w.enable_audio&&f.jsx("p",{className:"text-sm text-gray-500 mb-4",children:o.generator.type==="word_to_image"?r("game.listenAndMatch"):r("game.clickToHear")}),f.jsx("div",{className:"mb-6",children:o.generator.type==="image_to_word"?f.jsx("div",{className:"flex justify-center mb-4",children:o.question.image_path?f.jsx("img",{src:o.question.image_path,alt:"Question",className:"max-w-xs max-h-48 rounded-lg shadow-md",onError:()=>{console.error("Image failed to load:",o.question.image_path),console.error("Full question data:",o.question)},onLoad:()=>{console.log("Image loaded successfully:",o.question.image_path)}}):f.jsxs("div",{className:"text-red-500 p-4 border-2 border-red-300 rounded",children:[f.jsx("p",{children:r("game.noImage")}),f.jsxs("p",{className:"text-sm",children:[r("game.question"),": ",o.question.name]}),f.jsxs("p",{className:"text-sm",children:["Image path:"," ",o.question.image_path||"No image"]})]})}):f.jsxs("div",{className:"flex items-center justify-center space-x-4",children:[f.jsx("span",{className:`text-3xl font-display transition-all duration-200 ${N?"text-primary-800":"text-primary-700"}`,children:o.question.name}),o.question.audio_path&&w.enable_audio&&f.jsx("button",{onClick:at,disabled:N,className:`p-2 rounded-full transition-all duration-200 ${N?"text-primary-800 bg-primary-100 animate-pulse cursor-not-allowed":"text-primary-600 hover:text-primary-700 hover:bg-primary-50"}`,title:r(N?"game.playingAudio":"game.playPronunciation"),children:f.jsx(hc,{size:24})})]})})]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:o.choices.map($=>{let V="answer-choice";return c===$.id.toString()?l===!0&&$.id===o.answer.id?V+=" correct":l===!1&&$.id.toString()===c&&(V+=" incorrect"):l===!1&&$.id===o.answer.id&&(V+=" correct"),f.jsx("button",{onClick:()=>xt($),disabled:l!==null,className:V,children:o.generator.type==="word_to_image"?f.jsx("div",{className:"text-center relative",children:$.image_path&&f.jsx("img",{src:$.image_path,alt:$.name,className:"w-32 h-32 object-cover rounded-md mx-auto"})}):f.jsxs("span",{className:"text-lg font-medium flex items-center justify-center",children:[$.name,$.audio_path&&w.enable_audio&&f.jsx(hc,{size:14,className:"ml-1 text-gray-400"})]})},$.id)})}),l!==null&&f.jsxs("div",{className:"mt-6 text-center",children:[f.jsx("p",{className:`text-lg font-semibold ${l?"text-green-600":"text-red-600"}`,children:l?r("game.tjoho","Correct! 🎉"):r("game.tryAgain","Incorrect 😔")}),!l&&f.jsxs("p",{className:"text-gray-600 mt-1",children:[r("game.correctAnswer")," ",f.jsx("span",{className:"font-medium text-gray-800",children:o.answer.name})]}),f.jsx("button",{onClick:Ae,disabled:i,className:"mt-4 btn-primary",children:r("game.nextLevel","Continue")})]})]}),f.jsxs("div",{className:"flex justify-between items-center mt-6",children:[f.jsxs(zt,{to:"/",className:"text-gray-600 hover:text-gray-800",children:[f.jsx(dc,{className:"w-5 h-5 mr-1"}),r("game.exitGame")]}),f.jsxs("button",{onClick:Ae,disabled:i,className:"btn-secondary",children:[f.jsx(jT,{className:"w-4 h-4 mr-2"}),r("game.nextQuestion")]})]})]}):f.jsx("div",{className:"game-container",children:f.jsxs("div",{className:"text-center py-12",children:[f.jsx("p",{className:"text-gray-600 mb-4",children:r("game.noQuestions")}),f.jsxs(zt,{to:"/",className:"btn-primary",children:[f.jsx(dc,{className:"w-4 h-4 mr-2"}),r("game.backToHome")]})]})})}function l0(){const{progression:t=[],totalPoints:e=0,user:n}=ks(),r=k.useMemo(()=>{const a=new Map;return t.forEach(l=>{const c=l.question_category;if(!c)return;const d=a.get(c)||{totalQuestions:0,correctAnswers:0,totalPoints:0,cycle:1};d.totalQuestions++,l.question_correct&&d.correctAnswers++,d.totalPoints+=l.points||0,d.cycle=Math.max(d.cycle,l.cycle||1),a.set(c,d)}),Array.from(a.entries()).map(([l,c])=>({category:l,categoryName:c0(l),totalQuestions:c.totalQuestions,correctAnswers:c.correctAnswers,totalPoints:c.totalPoints,accuracy:c.totalQuestions>0?c.correctAnswers/c.totalQuestions*100:0,cycle:c.cycle,lastPlayed:u0(l,t)}))},[t]),o=k.useMemo(()=>{const a=t.length,l=t.filter(d=>d.question_correct).length,c=a>0?l/a*100:0;return{totalPoints:e,totalCorrectAnswers:l,totalQuestions:a,overallAccuracy:c,categoriesUnlocked:r.length,achievementsUnlocked:0,streak:d0(t),joinedDate:n!=null&&n.created_at?new Date(n.created_at):new Date}},[t,e,r.length,n]),i=k.useMemo(()=>{const a=[{id:"first_points",name:"First Steps",description:"Earn your first 10 points",iconName:"Star",unlocked:o.totalPoints>=10,progress:Math.min(o.totalPoints,10),maxProgress:10,points:5}
237,{id:"hundred_points",name:"Century Club",description:"Earn 100 points",iconName:"Trophy",unlocked:o.totalPoints>=100,progress:Math.min(o.totalPoints,100),maxProgress:100,points:25},{id:"thousand_points",name:"Point Master",description:"Earn 1,000 points",iconName:"Medal",unlocked:o.totalPoints>=1e3,progress:Math.min(o.totalPoints,1e3),maxProgress:1e3,points:100},{id:"perfect_ten",name:"Perfect Ten",description:"Answer 10 questions correctly in a row",iconName:"Target",unlocked:tp(t)>=10,progress:Math.min(tp(t),10),maxProgress:10,points:50},{id:"accuracy_master",name:"Accuracy Master",description:"Maintain 90% accuracy over 50+ questions",iconName:"Zap",unlocked:o.totalQuestions>=50&&o.overallAccuracy>=90,progress:o.totalQuestions>=50?o.overallAccuracy:o.totalQuestions*2,maxProgress:o.totalQuestions>=50?90:100,points:75},{id:"explorer",name:"Explorer",description:"Try 3 different categories",iconName:"BookOpen",unlocked:o.categoriesUnlocked>=3,progress:Math.min(o.categoriesUnlocked,3),maxProgress:3,points:30},{id:"completionist",name:"Completionist",description:"Reach cycle 5 in any category",iconName:"Award",unlocked:r.some(c=>c.cycle>=5),progress:Math.max(...r.map(c=>c.cycle),0),maxProgress:5,points:100},{id:"dedicated_learner",name:"Dedicated Learner",description:"Answer 100 questions",iconName:"TrendingUp",unlocked:o.totalQuestions>=100,progress:Math.min(o.totalQuestions,100),maxProgress:100,points:40}],l=a.filter(c=>c.unlocked).length;return o.achievementsUnlocked=l,a},[o,r,t]);return{userStats:o,categoryStats:r,achievements:i}}function c0(t){return{nature_animals:"Nature & Animals",food:"Food & Drink",body:"Body Parts",colors:"Colors",numbers:"Numbers",family:"Family",home:"Home & Objects",weather:"Weather",time:"Time",clothing:"Clothing"}[t]||t.replace("_"," ").replace(/\b\w/g,n=>n.toUpperCase())}function u0(t,e){const n=e.filter(o=>o.question_category===t);if(n.length===0)return;const r=n[n.length-1];return r.timestamp?new Date(r.timestamp):void 0}function d0(t){let e=0;for(let n=t.length-1;n>=0&&t[n].question_correct;n--)e++;return e}function tp(t){let e=0,n=0;return t.forEach(r=>{r.question_correct?(n++,e=Math.max(e,n)):n=0}),e}const h0={Trophy:Pu,Target:Pm,Award:cc,Star:HT,TrendingUp:Rm,Medal:LT,Zap:Nm,BookOpen:xu};function f0(){const{userStats:t,categoryStats:e,achievements:n}=l0();return f.jsxs("div",{className:"max-w-6xl mx-auto p-6",children:[f.jsxs("div",{className:"mb-8",children:[f.jsx("h1",{className:"text-3xl font-bold text-gray-800 mb-2",children:"Your Progress"}),f.jsx("p",{className:"text-gray-600",children:"Track your learning journey and achievements"})]}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8",children:[f.jsx(Li,{title:"Total Points",value:t.totalPoints.toLocaleString(),icon:f.jsx(Pu,{className:"w-6 h-6"}),color:"text-yellow-600",bgColor:"bg-yellow-50"}),f.jsx(Li,{title:"Accuracy",value:`${t.overallAccuracy.toFixed(1)}%`,icon:f.jsx(Pm,{className:"w-6 h-6"}),color:"text-green-600",bgColor:"bg-green-50"}),f.jsx(Li,{title:"Categories",value:t.categoriesUnlocked.toString(),icon:f.jsx(xu,{className:"w-6 h-6"}),color:"text-blue-600",bgColor:"bg-blue-50"}),f.jsx(Li,{title:"Current Streak",value:t.streak.toString(),icon:f.jsx(Nm,{className:"w-6 h-6"}),color:"text-orange-600",bgColor:"bg-orange-50"})]}),f.jsxs("div",{className:"mb-8",children:[f.jsxs("h2",{className:"text-2xl font-semibold text-gray-800 mb-4",children:["Achievements (",t.achievementsUnlocked,"/",n.length,")"]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:n.map(r=>f.jsx(g0,{achievement:r},r.id))})]}),f.jsxs("div",{className:"mb-8",children:[f.jsx("h2",{className:"text-2xl font-semibold text-gray-800 mb-4",children:"Category Performance"}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:e.map(r=>f.jsx(p0,{category:r},r.category))})]})]})}function Li({title:t,value:e,icon:n,color:r,bgColor:o}){return f.jsx("div",{className:"bg-white rounded-lg p-6 shadow-sm border border-gray-200",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-gray-600",children:t}),f.jsx("p",{className:"text-2xl font-bold text-gray-900",children:e})]}),f.jsx("div",{className:`${o} ${r} p-3 rounded-lg`,children:n})]})})}function p0({category:t}){return f.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-sm border border-gray-200",children:[f.jsxs("div",{className:"flex items-center justify-between mb-4",children:[f.jsx("h3",{className:"text-lg font-semibold text-gray-800",children:t.categoryName}),f.jsxs("span",{className:"text-sm text-gray-500",children:["Cycle ",t.cycle]})]}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"flex justify-between items-center",children:[f.jsx("span",{className:"text-sm text-gray-600",children:"Accuracy"}),f.jsxs("span",{className:"font-medium",children:[t.accuracy.toFixed(1),"%"]})]}),f.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:f.jsx("div",{className:"bg-blue-600 h-2 rounded-full transition-all duration-300",style:{width:`${Math.min(t.accuracy,100)}%`}})}),f.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-gray-600",children:"Correct: "}),f.jsxs("span",{className:"font-medium",children:[t.correctAnswers,"/",t.totalQuestions]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-gray-600",children:"Points: "}),f.jsx("span",{className:"font-medium",children:t.totalPoints})]})]})]})]})}function g0({achievement:t}){const e=h0[t.iconName],n=t.progress/t.maxProgress*100;return f.jsxs("div",{className:`bg-white rounded-lg p-6 shadow-sm border-2 transition-all duration-200 ${t.unlocked?"border-green-200 bg-green-50":"border-gray-200 hover:border-gray-300"}`,children:[f.jsxs("div",{className:"flex items-start justify-between mb-3",children:[f.jsx("div",{className:`p-2 rounded-lg ${t.unlocked?"bg-green-100 text-green-600":"bg-gray-100 text-gray-400"}`,children:e&&f.jsx(e,{className:"w-6 h-6"})}),t.unlocked&&f.jsxs("span",{className:"bg-green-100 text-green-800 text-xs font-medium px-2 py-1 rounded",children:["+",t.points," pts"]})]}),f.jsx("h3",{className:`font-semibold mb-1 ${t.unlocked?"text-gray-800":"text-gray-600"}`,children:t.name}),f.jsx("p",{className:`text-sm mb-3 ${t.unlocked?"text-gray-700":"text-gray-500"}`,children:t.description}),!t.unlocked&&f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex justify-between text-xs text-gray-600",children:[f.jsx("span",{children:"Progress"}),f.jsxs("span",{children:[t.progress,"/",t.maxProgress]})]}),f.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:f.jsx("div",{className:"bg-blue-500 h-2 rounded-full transition-all duration-300",style:{width:`${Math.min(n,100)}%`}})})]}),t.unlocked&&f.jsxs("div",{className:"flex items-center text-sm text-green-600",children:[f.jsx(Pu,{className:"w-4 h-4 mr-1"}),f.jsx("span",{children:"Unlocked!"})]})]})}function m0(){return f.jsx(f0,{})}function y0(){const{settings:t,updateSettings:e}=ks(),{t:n,language:r,setLanguage:o,languages:i}=Es(),[a,l]=k.useState(!1),c=(p,s)=>{e({[p]:s}),l(!0),setTimeout(()=>{l(!1)},1e3)},d=[{code:"sma",name:"South Sámi (Åarjelsaemiengiele)"},{code:"no",name:"Norwegian (Norsk)"},{code:"sv",name:"Swedish (Svenska)"}];return f.jsxs("div",{className:"space-y-8 max-w-2xl mx-auto",children:[f.jsxs("div",{className:"text-center",children:[f.jsx("h1",{className:"text-3xl font-display text-gray-900 mb-2",children:n("settings.translationLanguage","Settings")}),f.jsx("p",{className:"text-gray-600",children:n("settings.customizeExperience")})]}),a&&f.jsx("div",{className:"bg-green-50 text-green-800 p-3 rounded-lg text-center",children:n("settings.settingsSaved")}),f.jsxs("div",{className:"card space-y-6",children:[f.jsxs("h2",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx(hc,{className:"w-5 h-5 mr-2"}
237),n("settings.audioSettings","Audio Settings")]}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium text-gray-900",children:n("settings.enableAudio","Enable Audio")}),f.jsx("p",{className:"text-sm text-gray-600",children:n("settings.audioDescription","Enable sound effects and pronunciation audio")})]}),f.jsx("button",{onClick:()=>c("enable_audio",!t.enable_audio),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${t.enable_audio?"bg-primary-600":"bg-gray-200"}`,children:f.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enable_audio?"translate-x-6":"translate-x-1"}`})})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium text-gray-900",children:n("settings.autoPlayAudio","Auto-play Audio")}),f.jsx("p",{className:"text-sm text-gray-600",children:n("settings.autoPlayDescription","Automatically play pronunciation when new questions appear")})]}),f.jsx("button",{onClick:()=>c("auto_play_audio",!t.auto_play_audio),disabled:!t.enable_audio,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${t.auto_play_audio&&t.enable_audio?"bg-primary-600":"bg-gray-200"} ${t.enable_audio?"":"opacity-50 cursor-not-allowed"}`,children:f.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.auto_play_audio&&t.enable_audio?"translate-x-6":"translate-x-1"}`})})]})]})]}),f.jsxs("div",{className:"card space-y-6",children:[f.jsxs("h2",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx(uc,{className:"w-5 h-5 mr-2"}),n("settings.translationLanguage","Language Settings")]}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-gray-900 mb-2",children:n("settings.interfaceLanguage")}),f.jsx("select",{value:r,onChange:p=>{o(p.target.value),l(!0),setTimeout(()=>l(!1),1e3)},className:"w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500",children:i.map(p=>f.jsx("option",{value:p.code,children:p.nativeName},p.code))}),f.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n("settings.menuInstructions")})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium text-gray-900 mb-2",children:n("settings.helpLanguage","Help Language")}),f.jsx("select",{value:t.help_language,onChange:p=>c("help_language",p.target.value),className:"w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500",children:d.map(p=>f.jsx("option",{value:p.code,children:p.name},p.code))}),f.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n("settings.helpTranslations")})]})]})]}),f.jsxs("div",{className:"card space-y-6",children:[f.jsxs("h2",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx(OT,{className:"w-5 h-5 mr-2"}),n("settings.privacySettings","Privacy Settings")]}),f.jsx("div",{className:"space-y-4",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium text-gray-900",children:n("settings.showScores","Show in High Scores")}),f.jsx("p",{className:"text-sm text-gray-600",children:n("settings.showScoresDescription","Display your progress on public leaderboards")})]}),f.jsx("button",{onClick:()=>c("highscore_visible",!t.highscore_visible),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${t.highscore_visible?"bg-primary-600":"bg-gray-200"}`,children:f.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.highscore_visible?"translate-x-6":"translate-x-1"}`})})]})})]}),f.jsxs("div",{className:"card space-y-6",children:[f.jsxs("h2",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx(uc,{className:"w-5 h-5 mr-2"}),n("settings.performanceSettings","Performance Settings")]}),f.jsx("div",{className:"space-y-4",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("label",{className:"text-sm font-medium text-gray-900",children:n("settings.enableCaching")}),f.jsx("p",{className:"text-sm text-gray-600",children:n("settings.enableCachingDescription")})]}),f.jsx("button",{onClick:()=>c("enable_cache",!t.enable_cache),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${t.enable_cache?"bg-primary-600":"bg-gray-200"}`,children:f.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${t.enable_cache?"translate-x-6":"translate-x-1"}`})})]})})]}),f.jsxs("div",{className:"card space-y-4",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:n("settings.aboutGielese","About Gïelese")}),f.jsxs("div",{className:"text-sm text-gray-600 space-y-2",children:[f.jsx("p",{children:n("settings.aboutDescription")}),f.jsx("p",{children:n("settings.aboutModern")}),f.jsxs("div",{className:"pt-2 border-t border-gray-200",children:[f.jsx("p",{className:"font-medium",children:n("settings.version")}),f.jsx("p",{children:n("settings.builtWithLove")})]})]})]})]})}function v0(){const{user:t,totalPoints:e,progression:n,getPointsForCategory:r}=ks(),[o,i]=k.useState("profile");if(!t)return f.jsx("div",{className:"min-h-screen flex items-center justify-center",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Not logged in"}),f.jsx("p",{className:"text-gray-600",children:"Please log in to view your profile."})]})});const a=n.length,l=n.filter(u=>u.question_correct).length,c=a>0?Math.round(l/a*100):0,d=n.reduce((u,h)=>{const m=h.question_category;return u[m]||(u[m]={total:0,correct:0,points:0}),u[m].total++,h.question_correct&&u[m].correct++,u[m].points+=h.points,u},{}),p=[{id:"first_steps",name:"First Steps",description:"Complete your first question",earned:a>0,icon:"🎯"},{id:"nature_lover",name:"Nature Lover",description:"Score 50+ points in nature_animals category",earned:r("nature_animals")>=50,icon:"🌿"},{id:"food_expert",name:"Food Expert",description:"Score 50+ points in food category",earned:r("food")>=50,icon:"🍎"},{id:"accuracy_master",name:"Accuracy Master",description:"Achieve 80% accuracy with 10+ questions",earned:c>=80&&a>=10,icon:"🎯"},{id:"persistent",name:"Persistent Learner",description:"Answer 50+ questions",earned:a>=50,icon:"💪"},{id:"point_collector",name:"Point Collector",description:"Earn 200+ total points",earned:e>=200,icon:"⭐"}],s=p.filter(u=>u.earned);return f.jsx("div",{className:"min-h-screen bg-gray-50",children:f.jsxs("div",{className:"max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8",children:[f.jsxs("div",{className:"bg-white shadow rounded-lg mb-6",children:[f.jsx("div",{className:"px-6 py-4 border-b border-gray-200",children:f.jsxs("div",{className:"flex items-center space-x-4",children:[f.jsx("div",{className:"bg-primary-100 rounded-full p-3",children:f.jsx(rl,{className:"h-8 w-8 text-primary-600"})}),f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:t.username}),f.jsx("p",{className:"text-gray-600",children:t.email})]}),f.jsxs("div",{className:"ml-auto text-right",children:[f.jsx("div",{className:"text-2xl font-bold text-primary-600",children:e}),f.jsx("div",{className:"text-sm text-gray-500",children:"Total Points"})]})]})}),f.jsx("div",{className:"px-6",children:f.jsx("nav",{className:"flex space-x-8",children:[{id:"profile",name:"Profile",icon:rl},{id:"stats",name:"Statistics",icon:Rm},{id:"achievements",name:"Achievements",icon:cc}].map(({id:u,name:h,icon:m})=>f.jsxs("button",{onClick:()=>i(u),className:`py-4 px-1 border-b-2 font-medium text-sm flex items-center space-x-2 ${o===u?"border-primary-500 text-primary-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:[f.jsx(m,{className:"h-4 w-4"}),f.jsx("span",{children:h})]},u))})})]}),f.jsxs("div",{className:"bg-white shadow rounded-lg",children:[o==="profile"&&f.jsx("div",{className:"p-6",children:f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Account Information"}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center space-x-3",children:[f.jsx(rl,{className:"h-5 w-5 text-gray-400"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-gray-700",children:"Username"}),f.jsx("div",{className:"text-sm text-gray-900",children:t.username})]})]}),f.jsxs("div",{className:"flex items-center space-x-3",children:[f.jsx(MT,{className:"h-5 w-5 text-gray-400"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-gray-700",children:"Email"}),f.jsx("div",{className:"text-sm text-gray-900",children:t.email})]})]}),f.jsxs("div",{className:"flex items-center space-x-3",children:[f.jsx(NT,{className:"h-5 w-5 text-gray-400"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-gray-700",children:"Member since"}),f.jsx("div",{className:"text-sm text-gray-900",children:new Date(t.created_at).toLocaleDateString()})]})]})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Qu
237ick Stats"}),f.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[f.jsxs("div",{className:"bg-primary-50 rounded-lg p-4",children:[f.jsx("div",{className:"text-2xl font-bold text-primary-600",children:e}),f.jsx("div",{className:"text-sm text-primary-700",children:"Total Points"})]}),f.jsxs("div",{className:"bg-green-50 rounded-lg p-4",children:[f.jsxs("div",{className:"text-2xl font-bold text-green-600",children:[c,"%"]}),f.jsx("div",{className:"text-sm text-green-700",children:"Accuracy"})]}),f.jsxs("div",{className:"bg-blue-50 rounded-lg p-4",children:[f.jsx("div",{className:"text-2xl font-bold text-blue-600",children:a}),f.jsx("div",{className:"text-sm text-blue-700",children:"Questions"})]}),f.jsxs("div",{className:"bg-yellow-50 rounded-lg p-4",children:[f.jsx("div",{className:"text-2xl font-bold text-yellow-600",children:s.length}),f.jsx("div",{className:"text-sm text-yellow-700",children:"Achievements"})]})]})]})]})}),o==="stats"&&f.jsxs("div",{className:"p-6",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-6",children:"Learning Statistics"}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{children:[f.jsx("h4",{className:"text-md font-medium text-gray-700 mb-4",children:"Category Performance"}),f.jsx("div",{className:"space-y-4",children:Object.entries(d).map(([u,h])=>{const m=Math.round(h.correct/h.total*100);return f.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[f.jsxs("div",{className:"flex justify-between items-start mb-2",children:[f.jsx("div",{className:"capitalize font-medium text-gray-900",children:u.replace(/_/g," ")}),f.jsxs("div",{className:"text-sm text-primary-600 font-semibold",children:[h.points," pts"]})]}),f.jsxs("div",{className:"flex justify-between text-sm text-gray-600 mb-2",children:[f.jsxs("span",{children:[h.correct,"/",h.total," correct"]}),f.jsxs("span",{children:[m,"% accuracy"]})]}),f.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:f.jsx("div",{className:"bg-primary-600 h-2 rounded-full",style:{width:`${m}%`}})})]},u)})})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"text-md font-medium text-gray-700 mb-4",children:"Recent Activity"}),f.jsx("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:n.slice(-10).reverse().map((u,h)=>f.jsxs("div",{className:"flex items-center justify-between py-2 px-3 bg-gray-50 rounded",children:[f.jsxs("div",{className:"flex items-center space-x-3",children:[f.jsx("div",{className:`w-2 h-2 rounded-full ${u.question_correct?"bg-green-500":"bg-red-500"}`}),f.jsxs("div",{children:[f.jsx("div",{className:"text-sm font-medium text-gray-900",children:u.question_concept}),f.jsxs("div",{className:"text-xs text-gray-500 capitalize",children:[u.question_category.replace(/_/g," ")," •"," ",u.game_name]})]})]}),f.jsxs("div",{className:"text-sm text-primary-600 font-medium",children:["+",u.points]})]},h))})]})]})]}),o==="achievements"&&f.jsxs("div",{className:"p-6",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-6",children:"Achievements"}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:p.map(u=>f.jsxs("div",{className:`rounded-lg border-2 p-4 ${u.earned?"border-primary-200 bg-primary-50":"border-gray-200 bg-gray-50"}`,children:[f.jsxs("div",{className:"flex items-center space-x-3 mb-2",children:[f.jsx("span",{className:"text-2xl",children:u.icon}),f.jsx("div",{className:"flex-1",children:f.jsx("h4",{className:`font-medium ${u.earned?"text-primary-900":"text-gray-600"}`,children:u.name})}),u.earned&&f.jsx("div",{className:"text-primary-600",children:f.jsx(cc,{className:"h-5 w-5"})})]}),f.jsx("p",{className:`text-sm ${u.earned?"text-primary-700":"text-gray-500"}`,children:u.description})]},u.id))})]})]})]})})}function _0(){const[t,e]=k.useState(!1),[n,r]=k.useState(null),[o,i]=k.useState(!1),{signIn:a,signInPopup:l,isAuthenticated:c,isLoading:d,isInitialized:p,initialize:s}=li(),u=Am();k.useEffect(()=>{p||s()},[p,s]),k.useEffect(()=>{c&&p&&u("/")},[c,p,u]);const h=async(m=!1)=>{e(!0),r(null);try{m?await l():await a()}catch(v){console.error("Sign in failed:",v),r((v==null?void 0:v.message)||"Sign in failed. Please try again.")}finally{e(!1)}};return p?f.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col justify-center py-12 sm:px-6 lg:px-8",children:[f.jsxs("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:[f.jsx("div",{className:"flex justify-center",children:f.jsx(nl,{className:"h-12 w-12 text-primary-600"})}),f.jsx("h2",{className:"mt-6 text-center text-3xl font-extrabold text-gray-900",children:"Welcome to Gïelese"}),f.jsx("p",{className:"mt-2 text-center text-sm text-gray-600",children:"Sign in to continue your South Sámi language learning journey"})]}),f.jsx("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:f.jsxs("div",{className:"bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10",children:[n&&f.jsxs("div",{className:"mb-6 bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded flex items-start",children:[f.jsx(PT,{className:"h-5 w-5 text-red-500 mt-0.5 mr-3 flex-shrink-0"}),f.jsx("div",{children:f.jsx("p",{className:"text-sm",children:n})})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("button",{type:"button",onClick:()=>h(!1),disabled:t||d,className:"w-full flex justify-center items-center py-3 px-4 border border-transparent roun
237ded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed",children:t&&!o?f.jsxs(f.Fragment,{children:[f.jsx(tl,{className:"h-4 w-4 animate-spin mr-2"}),"Signing in..."]}):f.jsxs(f.Fragment,{children:[f.jsx(nl,{className:"h-4 w-4 mr-2"}),"Sign In with Azure AD B2C"]})}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-0 flex items-center",children:f.jsx("div",{className:"w-full border-t border-gray-300"})}),f.jsx("div",{className:"relative flex justify-center text-sm",children:f.jsx("span",{className:"px-2 bg-white text-gray-500",children:"or"})})]}),f.jsx("button",{type:"button",onClick:()=>{i(!0),h(!0)},disabled:t||d,className:"w-full flex justify-center items-center py-3 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed",children:t&&o?f.jsxs(f.Fragment,{children:[f.jsx(tl,{className:"h-4 w-4 animate-spin mr-2"}),"Opening sign in..."]}):f.jsxs(f.Fragment,{children:[f.jsx(nl,{className:"h-4 w-4 mr-2"}),"Sign In (Popup)"]})})]}),f.jsxs("div",{className:"mt-8",children:[f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-0 flex items-center",children:f.jsx("div",{className:"w-full border-t border-gray-300"})}),f.jsx("div",{className:"relative flex justify-center text-sm",children:f.jsx("span",{className:"px-2 bg-white text-gray-500",children:"New to Gïelese?"})})]}),f.jsx("div",{className:"mt-6 text-center",children:f.jsxs("p",{className:"text-sm text-gray-600",children:["Azure AD B2C handles both sign in and registration in one flow.",f.jsx("br",{}),'Click "Sign In" above and select "Sign up now" to create an account.']})})]}),f.jsx("div",{className:"mt-8 border-t border-gray-200 pt-6",children:f.jsxs("div",{className:"text-xs text-gray-500 space-y-2",children:[f.jsx("p",{children:f.jsx("strong",{children:"Sign In Options:"})}),f.jsxs("ul",{className:"space-y-1 ml-4",children:[f.jsx("li",{children:"• Create new account with email"}),f.jsx("li",{children:"• Sign in with existing account"}),f.jsx("li",{children:"• Reset forgotten password"}),f.jsx("li",{children:"• Social login (if configured)"})]}),f.jsxs("p",{className:"mt-3",children:[f.jsx("strong",{children:"Note:"})," This demo uses Azure AD B2C for secure, enterprise-grade authentication."]})]})}),f.jsx("div",{className:"mt-6",children:f.jsx(zt,{to:"/",className:"text-sm text-primary-600 hover:text-primary-500",children:"← Back to home"})})]})})]}):f.jsx("div",{className:"min-h-screen bg-gray-50 flex flex-col justify-center py-12 sm:px-6 lg:px-8",children:f.jsxs("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:[f.jsx("div",{className:"flex justify-center",children:f.jsx(tl,{className:"h-8 w-8 animate-spin text-primary-600"})}),f.jsx("h2",{className:"mt-6 text-center text-xl font-medium text-gray-900",children:"Initializing..."})]})})}function w0(){const{initialize:t,isInitialized:e}=li();return k.useEffect(()=>{},[!1,e,t]),f.jsx(JI,{children:f.jsx(r0,{children:f.jsxs(ef,{children:[f.jsx(tn,{path:"/login",element:f.jsx(_0,{})}),f.jsx(tn,{path:"/*",element:f.jsx(XI,{children:f.jsxs(ef,{children:[f.jsx(tn,{path:"/",element:f.jsx(o0,{})}),f.jsx(tn,{path:"/game/:category",element:f.jsx(s0,{})}),f.jsx(tn,{path:"/stats",element:f.jsx(Yf,{children:f.jsx(m0,{})})}),f.jsx(tn,{path:"/profile",element:f.jsx(Yf,{children:f.jsx(v0,{})})}),f.jsx(tn,{path:"/settings",element:f.jsx(y0,{})})]})})})]})})})}gm(document.getElementById("root")).render(f.jsx(k.StrictMode,{children:f.jsx(ST,{children:f.jsx(w0,{})})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.