vendor: 5,931 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/landing-nzemJhP3.js","assets/MarketingLayout-C-Eg1Utn.js","assets/index-CcyIbcaG.js","assets/MarketingLayout-DWkZANyP.css","assets/LogoMarquee-MGX7HuLX.js","assets/createLucideIcon-DdfQtFzQ.js","assets/search-BuXTxqkF.js","assets/send-BYSXssjB.js","assets/shield-check-DaAtO2L1.js","assets/sparkles-Dab42xIz.js","assets/building-complex-CXy85BpC.js","assets/map-pin-DYmtAtqq.js","assets/link-BrhglXOm.js","assets/landing-CPgBYM9t.css","assets/about-DgiFagav.js","assets/contact-DAvwRYzF.js","assets/index-C3zVpQPF.js","assets/label-DGXjj64F.js","assets/textarea-D6eHOcCI.js","assets/pricing-mmS_W_Ny.js","assets/stripe-Bdw5RntL.js","assets/api-Cn2saL-5.js","assets/check-Kw45fIYH.js","assets/chevron-down-ClwQSgbQ.js","assets/dashboard-B9V7asP0.js","assets/DashboardShell-J3-_Q-Wq.js","assets/button-D3wmQuRn.js","assets/x-D2y-LThH.js","assets/KeyboardHint-BuzV1Iay.js","assets/planLimits-e1UkNKhD.js","assets/badge-Cs57JPoP.js","assets/names-BPndJhzJ.js","assets/link-2-uHQgI6Do.js","assets/dialog-DN0RfVyZ.js","assets/shortlists-CiVX3zNg.js","assets/copy-Cwh_QgwZ.js","assets/sequenceDashboard-Bpk-i0VC.js","assets/relativeTime-Dkj-8CPr.js","assets/table-CGExvByL.js","assets/applicants-DK2wTujc.js","assets/arrow-left-DNXWMe49.js","assets/trash-DQvyOJWJ.js","assets/apply-B55I9gD0.js","assets/settings-BhxMrFIV.js","assets/workspace-BV_WqM39.js","assets/pipeline-DQTODRDq.js","assets/shortlists-DoDg53ip.js","assets/thumbs-up-pYVK6acY.js","assets/shortlist-D9kAzqg4.js","assets/privacyPolicy-CxuNwwJl.js","assets/LegalDocument-DasrxJfu.js","assets/termsOfService-CiZTxOty.js"])))=>i.map(i=>d[i]); 2function a_(i,a){for(var o=0;o<a.length;o++){const l=a[o];if(typeof l!="string"&&!Array.isArray(l)){for(const s in l)if(s!=="default"&&!(s in i)){const f=Object.getOwnPropertyDescriptor(l,s);f&&Object.defineProperty(i,s,f.get?f:{enumerable:!0,get:()=>l[s]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function o(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(s){if(s.ep)return;s.ep=!0;const f=o(s);fetch(s.href,f)}})();function i_(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var If={exports:{}},Co={};var Jg;function r_(){if(Jg)return Co;Jg=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function o(l,s,f){var d=null;if(f!==void 0&&(d=""+f),s.key!==void 0&&(d=""+s.key),"key"in s){f={};for(var p in s)p!=="key"&&(f[p]=s[p])}else f=s;return s=f.ref,{$$typeof:i,type:l,key:d,ref:s!==void 0?s:null,props:f}}return Co.Fragment=a,Co.jsx=o,Co.jsxs=o,Co}var Gg;function o_(){return Gg||(Gg=1,If.exports=r_()),If.exports}var se=o_(),Ff={exports:{}},xo={},$f={exports:{}},ed={};var Xg;function l_(){return Xg||(Xg=1,(function(i){function a(L,W){var oe=L.length;L.push(W);e:for(;0<oe;){var xe=oe-1>>>1,Ue=L[xe];if(0<s(Ue,W))L[xe]=W,L[oe]=Ue,oe=xe;else break e}}function o(L){return L.length===0?null:L[0]}function l(L){if(L.length===0)return null;var W=L[0],oe=L.pop();if(oe!==W){L[0]=oe;e:for(var xe=0,Ue=L.length,T=Ue>>>1;xe<T;){var M=2*(xe+1)-1,X=L[M],Y=M+1,F=L[Y];if(0>s(X,oe))Y<Ue&&0>s(F,X)?(L[xe]=F,L[Y]=oe,xe=Y):(L[xe]=X,L[M]=oe,xe=M);else if(Y<Ue&&0>s(F,oe))L[xe]=F,L[Y]=oe,xe=Y;else break e}}return W}function s(L,W){var oe=L.sortIndex-W.sortIndex;return oe!==0?oe:L.id-W.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();i.unstable_now=function(){return d.now()-p}}var g=[],m=[],y=1,v=null,w=3,_=!1,A=!1,O=!1,R=!1,x=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function q(L){for(var W=o(m);W!==null;){if(W.callback===null)l(m);else if(W.startTime<=L)l(m),W.sortIndex=W.expirationTime,a(g,W);else break;W=o(m)}}function Q(L){if(O=!1,q(L),!A)if(o(g)!==null)A=!0,ae||(ae=!0,Ce());else{var W=o(m);W!==null&&Le(Q,W.startTime-L)}}var ae=!1,G=-1,ne=5,he=-1;function Ae(){return R?!0:!(i.unstable_now()-he<ne)}function ge(){if(R=!1,ae){var L=i.unstable_now();he=L;var W=!0;try{e:{A=!1,O&&(O=!1,J(G),G=-1),_=!0;var oe=w;try{t:{for(q(L),v=o(g);v!==null&&!(v.expirationTime>L&&Ae());){var xe=v.callback;if(typeof xe=="function"){v.callback=null,w=v.priorityLevel;var Ue=xe(v.expirationTime<=L);if(L=i.unstable_now(),typeof Ue=="function"){v.callback=Ue,q(L),W=!0;break t}v===o(g)&&l(g),q(L)}else l(g);v=o(g)}if(v!==null)W=!0;else{var T=o(m);T!==null&&Le(Q,T.startTime-L),W=!1}}break e}finally{v=null,w=oe,_=!1}W=void 0}}finally{W?Ce():ae=!1}}}var Ce;if(typeof Z=="function")Ce=function(){Z(ge)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,st=rt.port2;rt.port1.onmessage=ge,Ce=function(){st.postMessage(null)}}else Ce=function(){x(ge,0)};function Le(L,W){G=x(function(){L(i.unstable_now())},W)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(L){L.callback=null},i.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<L?Math.floor(1e3/L):
vendor: 16,232 bytes, line 2
25},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_next=function(L){switch(w){case 1:case 2:case 3:var W=3;break;default:W=w}var oe=w;w=W;try{return L()}finally{w=oe}},i.unstable_requestPaint=function(){R=!0},i.unstable_runWithPriority=function(L,W){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var oe=w;w=L;try{return W()}finally{w=oe}},i.unstable_scheduleCallback=function(L,W,oe){var xe=i.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?xe+oe:xe):oe=xe,L){case 1:var Ue=-1;break;case 2:Ue=250;break;case 5:Ue=1073741823;break;case 4:Ue=1e4;break;default:Ue=5e3}return Ue=oe+Ue,L={id:y++,callback:W,priorityLevel:L,startTime:oe,expirationTime:Ue,sortIndex:-1},oe>xe?(L.sortIndex=oe,a(m,L),o(g)===null&&L===o(m)&&(O?(J(G),G=-1):O=!0,Le(Q,oe-xe))):(L.sortIndex=Ue,a(g,L),A||_||(A=!0,ae||(ae=!0,Ce()))),L},i.unstable_shouldYield=Ae,i.unstable_wrapCallback=function(L){var W=w;return function(){var oe=w;w=W;try{return L.apply(this,arguments)}finally{w=oe}}}})(ed)),ed}var Yg;function s_(){return Yg||(Yg=1,$f.exports=l_()),$f.exports}var td={exports:{}},fe={};var qg;function c_(){if(qg)return fe;qg=1;var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function _(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,R={};function x(T,M,X){this.props=T,this.context=M,this.refs=R,this.updater=X||A}x.prototype.isReactComponent={},x.prototype.setState=function(T,M){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,M,"setState")},x.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function J(){}J.prototype=x.prototype;function Z(T,M,X){this.props=T,this.context=M,this.refs=R,this.updater=X||A}var q=Z.prototype=new J;q.constructor=Z,O(q,x.prototype),q.isPureReactComponent=!0;var Q=Array.isArray;function ae(){}var G={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function he(T,M,X){var Y=X.ref;return{$$typeof:i,type:T,key:M,ref:Y!==void 0?Y:null,props:X}}function Ae(T,M){return he(T.type,M,T.props)}function ge(T){return typeof T=="object"&&T!==null&&T.$$typeof===i}function Ce(T){var M={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(X){return M[X]})}var rt=/\/+/g;function st(T,M){return typeof T=="object"&&T!==null&&T.key!=null?Ce(""+T.key):M.toString(36)}function Le(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ae,ae):(T.status="pending",T.then(function(M){T.status==="pending"&&(T.status="fulfilled",T.value=M)},function(M){T.status==="pending"&&(T.status="rejected",T.reason=M)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function L(T,M,X,Y,F){var I=typeof T;(I==="undefined"||I==="boolean")&&(T=null);var ee=!1;if(T===null)ee=!0;else switch(I){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(T.$$typeof){case i:case a:ee=!0;break;case y:return ee=T._init,L(ee(T._payload),M,X,Y,F)}}if(ee)return F=F(T),ee=Y===""?"."+st(T,0):Y,Q(F)?(X="",ee!=null&&(X=ee.replace(rt,"$&/")+"/"),L(F,M,X,"",function(Nr){return Nr})):F!=null&&(ge(F)&&(F=Ae(F,X+(F.key==null||T&&T.key===F.key?"":(""+F.key).replace(rt,"$&/")+"/")+ee)),M.push(F)),1;ee=0;var Ye=Y===""?".":Y+":";if(Q(T))for(var Me=0;Me<T.length;Me++)Y=T[Me],I=Ye+st(Y,Me),ee+=L(Y,M,X,I,F);else if(Me=_(T),typeof Me=="function")for(T=Me.call(T),Me=0;!(Y=T.next()).done;)Y=Y.value,I=Ye+st(Y,Me++),ee+=L(Y,M,X,I,F);else if(I==="object"){if(typeof T.then=="function")return L(Le(T),M,X,Y,F);throw M=String(T),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return ee}function W(T,M,X){if(T==null)return T;var Y=[],F=0;return L(T,Y,"","",function(I){return M.call(X,I,F++)}),Y}function oe(T){if(T._status===-1){var M=T._result;M=M(),M.then(function(X){(T._status===0||T._status===-1)&&(T._status=1,T._result=X)},function(X){(T._status===0||T._status===-1)&&(T._status=2,T._result=X)}),T._status===-1&&(T._status=0,T._result=M)}if(T._status===1)return T._result.default;throw T._result}var xe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Ue={map:W,forEach:function(T,M,X){W(T,function(){M.apply(this,arguments)},X)},count:function(T){var M=0;return W(T,function(){M++}),M},toArray:function(T){return W(T,function(M){return M})||[]},only:function(T){if(!ge(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return fe.Activity=v,fe.Children=Ue,fe.Component=x,fe.Fragment=o,fe.Profiler=s,fe.PureComponent=Z,fe.StrictMode=l,fe.Suspense=g,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,fe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return G.H.useMemoCache(T)}},fe.cache=function(T){return function(){return T.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(T,M,X){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Y=O({},T.props),F=T.key;if(M!=null)for(I in M.key!==void 0&&(F=""+M.key),M)!ne.call(M,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&M.ref===void 0||(Y[I]=M[I]);var I=arguments.length-2;if(I===1)Y.children=X;else if(1<I){for(var ee=Array(I),Ye=0;Ye<I;Ye++)ee[Ye]=arguments[Ye+2];Y.children=ee}return he(T.type,F,Y)},fe.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},fe.createElement=function(T,M,X){var Y,F={},I=null;if(M!=null)for(Y in M.key!==void 0&&(I=""+M.key),M)ne.call(M,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(F[Y]=M[Y]);var ee=arguments.length-2;if(ee===1)F.children=X;else if(1<ee){for(var Ye=Array(ee),Me=0;Me<ee;Me++)Ye[Me]=arguments[Me+2];F.children=Ye}if(T&&T.defaultProps)for(Y in ee=T.defaultProps,ee)F[Y]===void 0&&(F[Y]=ee[Y]);return he(T,I,F)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(T){return{$$typeof:p,render:T}},fe.isValidElement=ge,fe.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:oe}},fe.memo=function(T,M){return{$$typeof:m,type:T,compare:M===void 0?null:M}},fe.startTransition=function(T){var M=G.T,X={};G.T=X;try{var Y=T(),F=G.S;F!==null&&F(X,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(ae,xe)}catch(I){xe(I)}finally{M!==null&&X.types!==null&&(M.types=X.types),G.T=M}},fe.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},fe.use=function(T){return G.H.use(T)},fe.useActionState=function(T,M,X){return G.H.useActionState(T,M,X)},fe.useCallback=function(T,M){return G.H.useCallback(T,M)},fe.useContext=function(T){return G.H.useContext(T)},fe.useDebugValue=function(){},fe.useDeferredValue=function(T,M){return G.H.useDeferredValue(T,M)},fe.useEffect=function(T,M){return G.H.useEffect(T,M)},fe.useEffectEvent=function(T){return G.H.useEffectEvent(T)},fe.useId=function(){return G.H.useId()},fe.useImperativeHandle=function(T,M,X){return G.H.useImperativeHandle(T,M,X)},fe.useInsertionEffect=function(T,M){return G.H.useInsertionEffect(T,M)},fe.useLayoutEffect=function(T,M){return G.H.useLayoutEffect(T,M)},fe.useMemo=function(T,M){return G.H.useMemo(T,M)},fe.useOptimistic=function(T,M){return G.H.useOptimistic(T,M)},fe.useReducer=function(T,M,X){return G.H.useReducer(T,M,X)},fe.useRef=function(T){return G.H.useRef(T)},fe.useState=function(T){return G.H.useState(T)},fe.useSyncExternalStore=function(T,M,X){return G.H.useSyncExternalStore(T,M,X)},fe.useTransition=function(){return G.H.useTransition()},fe.version="19.2.7",fe}var Vg;function lh(){return Vg||(Vg=1,td.exports=c_()),td.exports}var nd={exports:{}},bt={};var Pg;function u_(){if(Pg)return bt;Pg=1;var i=lh();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var l={d:{f:o,r:function(){throw Error(a(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},s=Symbol.for("react.portal");function f(g,m,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:g,containerInfo:m,implementation:y}}var d=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,bt.createPortal=function(g,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return f(g,m,null,y)},bt.flushSync=function(g){var m=d.T,y=l.p;try{if(d.T=null,l.p=2,g)return g()}finally{d.T=m,l.p=y,l.d.f()}},bt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,l.d.C(g,m))},bt.prefetchDNS=function(g){typeof g=="string"&&l.d.D(g)},bt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var y=m.as,v=p(y,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?l.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:w,fetchPriority:_}):y==="script"&&l.d.X(g,{crossOrigin:v,integrity:w,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},bt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=p(m.as,m.crossOrigin);l.d.M(g,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&l.d.M(g)},bt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=p(y,m.crossOrigin);l.d.L(g,y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},bt.preloadModule=function(g,m){if(typeof g=="string")if(m){var y=p(m.as,m.crossOrigin);l.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else l.d.m(g)},bt.requestFormReset=function(g){l.d.r(g)},bt.unstable_batchedUpdates=function(g,m){return g(m)},bt.useFormState=function(g,m,y){return d.H.useFormState(g,m,y)},bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},bt.version="19.2.7",bt}var Wg;function f_(){if(Wg)return nd.exports;Wg=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),nd.exports=u_(),nd.exports}var Qg;function d_(){if(Qg)return xo;Qg=1;var i=s_(),a=lh(),o=f_();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(f(e)!==e)throw Error(l(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var c=n.return;if(c===null)break;var u=c.alternate;if(u===null){if(r=c.return,r!==null){n=r;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===n)return g(c),e;if(u===r)return g(c),t;u=u.sibling}throw Error(l(188))}if(n.return!==r.return)n=c,r=u;else{for(var h=!1,b=c.child;b;){if(b===n){h=!0,n=c,r=u;break}if(b===r){h=!0,r=c,n=u;break}b=b.sibling}if(!h){for(b=u.child;b;){if(b===n){h=!0,n=u,r=c;break}if(b===r){h=!0,r=u,n=c;break}b=b.sibling}if(!h)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,w=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Ae=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function Ce(e){return e===null||typeof e!="object"?null:(e=ge&&e[ge]||e["@@iterator"],typeof e=="function"?e:null)}var rt=Symbol.for("react.client.reference");function st(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===rt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case x:return"Profiler";case R:return"StrictMode";case Q:return"Suspense";case ae:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case Z:return e.displayName||"Context";case J:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:st(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return st(e(t))}catch{}}return null}var Le=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},xe=[],Ue=-1;function T(e){return{current:e}}function M(e){0>Ue||(e.current=xe[Ue],xe[Ue]=null,Ue--)}function X(e,t){Ue++,xe[Ue]=e.current,e.current=t}var Y=T(null),F=T(null),I=T(null),ee=T(null);function Ye(e,t){switch(X(I,t),X(F,e),X(Y,null),t.nodeType){case 9:case 11:e=(e
vendor: 12,032 bytes, lines 2-9
2=t.documentElement)&&(e=e.namespaceURI)?fg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=fg(t),e=dg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(Y),X(Y,e)}function Me(){M(Y),M(F),M(I)}function Nr(e){e.memoizedState!==null&&X(ee,e);var t=Y.current,n=dg(t,e.type);t!==n&&(X(F,e),X(Y,n))}function vl(e){F.current===e&&(M(Y),M(F)),ee.current===e&&(M(ee),Ao._currentValue=oe)}var Dc,Bh;function Wa(e){if(Dc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Dc=t&&t[1]||"",Bh=-1<n.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+Dc+e+Bh}var Uc=!1;function Mc(e,t){if(!e||Uc)return"";Uc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(j){var N=j}Reflect.construct(e,[],B)}else{try{B.call()}catch(j){N=j}e.call(B.prototype)}}else{try{throw Error()}catch(j){N=j}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(j){if(j&&N&&typeof j.stack=="string")return[j.stack,N.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),h=u[0],b=u[1];if(h&&b){var S=h.split(` 5`),U=b.split(` 6`);for(c=r=0;r<S.length&&!S[r].includes("DetermineComponentFrameRoot");)r++;for(;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;if(r===S.length||c===U.length)for(r=S.length-1,c=U.length-1;1<=r&&0<=c&&S[r]!==U[c];)c--;for(;1<=r&&0<=c;r--,c--)if(S[r]!==U[c]){if(r!==1||c!==1)do if(r--,c--,0>c||S[r]!==U[c]){var H=` 7`+S[r].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=r&&0<=c);break}}}finally{Uc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Wa(n):""}function Mb(e,t){switch(e.tag){case 26:case 27:case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return e.child!==t&&t!==null?Wa("Suspense Fallback"):Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return Mc(e.type,!1);case 11:return Mc(e.type.render,!1);case 1:return Mc(e.type,!0);case 31:return Wa("Activity");default:return""}}function Jh(e){try{var t="",n=null;do t+=Mb(e,n),n=e,e=e.return;while(e);return t}catch(r){return` 8Error generating stack: `+r.message+` 9`+r.stack}}var Nc=Object.prototype.hasOwnProperty,jc=i.unstable_scheduleCallback,Hc=i.unstable_cancelCallback,Nb=i.unstable_shouldYield,jb=i.unstable_requestPaint,jt=i.unstable_now,Hb=i.unstable_getCurrentPriorityLevel,Gh=i.unstable_ImmediatePriority,Xh=i.unstable_UserBlockingPriority,bl=i.unstable_NormalPriority,Lb=i.unstable_LowPriority,Yh=i.unstable_IdlePriority,Kb=i.log,Zb=i.unstable_setDisableYieldValue,jr=null,Ht=null;function da(e){if(typeof Kb=="function"&&Zb(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(jr,e)}catch{}}var Lt=Math.clz32?Math.clz32:Gb,Bb=Math.log,Jb=Math.LN2;function Gb(e){return e>>>=0,e===0?32:31-(Bb(e)/Jb|0)|0}var wl=256,Sl=262144,_l=4194304;function Qa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function El(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var c=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var b=r&134217727;return b!==0?(r=b&~u,r!==0?c=Qa(r):(h&=b,h!==0?c=Qa(h):n||(n=b&~e,n!==0&&(c=Qa(n))))):(b=r&~u,b!==0?c=Qa(b):h!==0?c=Qa(h):n||(n=r&~e,n!==0&&(c=Qa(n)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:c}function Hr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Xb(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qh(){var e=_l;return _l<<=1,(_l&62914560)===0&&(_l=4194304),e}function Lc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Lr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yb(e,t,n,r,c,u){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,S=e.expirationTimes,U=e.hiddenUpdates;for(n=h&~n;0<n;){var H=31-Lt(n),B=1<<H;b[H]=0,S[H]=-1;var N=U[H];if(N!==null)for(U[H]=null,H=0;H<N.length;H++){var j=N[H];j!==null&&(j.lane&=-536870913)}n&=~B}r!==0&&Vh(e,r,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function Vh(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Lt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ph(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Lt(n),c=1<<r;c&t|e[r]&t&&(e[r]|=t),n&=~c}}function Wh(e,t){var n=t&-t;return n=(n&42)!==0?1:Kc(n),(n&(e.suspendedLanes|t))!==0?0:n}function Kc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Zc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qh(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:Ng(e.type))}function Ih(e,t){var n=W.p;try{return W.p=e,t()}finally{W.p=n}}var ha=Math.random().toString(36).slice(2),dt="__reactFiber$"+ha,kt="__reactProps$"+ha,Ri="__reactContainer$"+ha,Bc="__reactEvents$"+ha,qb="__reactListeners$"+ha,Vb="__reactHandles$"+ha,Fh="__reactResources$"+ha,Kr="__reactMarker$"+ha;function Jc(e){delete e[dt],delete e[kt],delete e[Bc],delete e[qb],delete e[Vb]}function Oi(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ri]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bg(e);e!==null;){if(n=e[dt])return n;e=bg(e)}return t}e=n,n=e.parentNode}return null}function Ci(e){if(e=e[dt]||e[Ri]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Zr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function xi(e){var t=e[Fh];return t||(t=e[Fh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ct(e){e[Kr]=!0}var $h=new Set,ep={};function Ia(e,t){zi(e,t),zi(e+"Capture",t)}function zi(e,t){for(ep[e]=t,e=0;e<t.length;e++)$h.add(t[e])}var Pb=RegExp("^[: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]*$"),tp={},np={};function Wb(e){return Nc.call(np,e)?!0:Nc.call(tp,e)?!1:Pb.test(e)?np[e]=!0:(tp[e]=!0,!1)}function Tl(e,t,n){if(Wb(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Al(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Bn(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ap(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qb(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gc(e){if(!e._valueTracker){var t=ap(e)?"checked":"value";e._valueTracker=Qb(e,t,""+e[t])}}function ip(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ap(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ib=/[\n"\\]/g;function It(e){return e.replace(Ib,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xc(e,t,n,r,c,u,h,b){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Yc(e,h,Qt(t)):n!=null?Yc(e,h,Qt(n)):r!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Qt(b):e.removeAttribute("name")}function rp(e,t,n,r,c,u,h,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Gc(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}r=r??c,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=b?e.checked:!!r,e.defaultChecked=!!r,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Gc(e)}function Yc(e,t,n){t==="number"&&kl(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Di(e,t,n,r){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,r&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function op(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function lp(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(l(92));if(Le(r)){if(1<r.length)throw Error(l(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Gc(e)}function Ui(e,t){if(t){var n=e.firstChild;
9if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fb=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));
vendor: 12,330 bytes, line 9
9function sp(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||Fb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function cp(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var c in t)r=t[c],t.hasOwnProperty(c)&&n[c]!==r&&sp(e,c,r)}else for(var u in t)t.hasOwnProperty(u)&&sp(e,u,t[u])}function qc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $b=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ew=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Rl(e){return ew.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jn(){}var Vc=null;function Pc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mi=null,Ni=null;function up(e){var t=Ci(e);if(t&&(e=t.stateNode)){var n=e[kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xc(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var c=r[kt]||null;if(!c)throw Error(l(90));Xc(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&ip(r)}break e;case"textarea":op(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Di(e,!!n.multiple,t,!1)}}}var Wc=!1;function fp(e,t,n){if(Wc)return e(t,n);Wc=!0;try{var r=e(t);return r}finally{if(Wc=!1,(Mi!==null||Ni!==null)&&(ps(),Mi&&(t=Mi,e=Ni,Ni=Mi=null,up(t),e)))for(t=0;t<e.length;t++)up(e[t])}}function Br(e,t){var n=e.stateNode;if(n===null)return null;var r=n[kt]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qc=!1;if(Gn)try{var Jr={};Object.defineProperty(Jr,"passive",{get:function(){Qc=!0}}),window.addEventListener("test",Jr,Jr),window.removeEventListener("test",Jr,Jr)}catch{Qc=!1}var pa=null,Ic=null,Ol=null;function dp(){if(Ol)return Ol;var e,t=Ic,n=t.length,r,c="value"in pa?pa.value:pa.textContent,u=c.length;for(e=0;e<n&&t[e]===c[e];e++);var h=n-e;for(r=1;r<=h&&t[n-r]===c[u-r];r++);return Ol=c.slice(e,1<r?1-r:void 0)}function Cl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xl(){return!0}function hp(){return!1}function Rt(e){function t(n,r,c,u,h){this._reactName=n,this._targetInst=c,this.type=r,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?xl:hp,this.isPropagationStopped=hp,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=xl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=xl)},persist:function(){},isPersistent:xl}),t}var Fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zl=Rt(Fa),Gr=v({},Fa,{view:0,detail:0}),tw=Rt(Gr),Fc,$c,Xr,Dl=v({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xr&&(Xr&&e.type==="mousemove"?(Fc=e.screenX-Xr.screenX,$c=e.screenY-Xr.screenY):$c=Fc=0,Xr=e),Fc)},movementY:function(e){return"movementY"in e?e.movementY:$c}}),pp=Rt(Dl),nw=v({},Dl,{dataTransfer:0}),aw=Rt(nw),iw=v({},Gr,{relatedTarget:0}),eu=Rt(iw),rw=v({},Fa,{animationName:0,elapsedTime:0,pseudoElement:0}),ow=Rt(rw),lw=v({},Fa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sw=Rt(lw),cw=v({},Fa,{data:0}),mp=Rt(cw),uw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dw[e])?!!t[e]:!1}function tu(){return hw}var pw=v({},Gr,{key:function(e){if(e.key){var t=uw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Cl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tu,charCode:function(e){return e.type==="keypress"?Cl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Cl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mw=Rt(pw),yw=v({},Dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yp=Rt(yw),gw=v({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tu}),vw=Rt(gw),bw=v({},Fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ww=Rt(bw),Sw=v({},Dl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),_w=Rt(Sw),Ew=v({},Fa,{newState:0,oldState:0}),Tw=Rt(Ew),Aw=[9,13,27,32],nu=Gn&&"CompositionEvent"in window,Yr=null;Gn&&"documentMode"in document&&(Yr=document.documentMode);var kw=Gn&&"TextEvent"in window&&!Yr,gp=Gn&&(!nu||Yr&&8<Yr&&11>=Yr),vp=" ",bp=!1;function wp(e,t){switch(e){case"keyup":return Aw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ji=!1;function Rw(e,t){switch(e){case"compositionend":return Sp(t);case"keypress":return t.which!==32?null:(bp=!0,vp);case"textInput":return e=t.data,e===vp&&bp?null:e;default:return null}}function Ow(e,t){if(ji)return e==="compositionend"||!nu&&wp(e,t)?(e=dp(),Ol=Ic=pa=null,ji=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return gp&&t.locale!=="ko"?null:t.data;default:return null}}var Cw={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 _p(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cw[e.type]:t==="textarea"}function Ep(e,t,n,r){Mi?Ni?Ni.push(r):Ni=[r]:Mi=r,t=Ss(t,"onChange"),0<t.length&&(n=new zl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qr=null,Vr=null;function xw(e){rg(e,0)}function Ul(e){var t=Zr(e);if(ip(t))return e}function Tp(e,t){if(e==="change")return t}var Ap=!1;if(Gn){var au;if(Gn){var iu="oninput"in document;if(!iu){var kp=document.createElement("div");kp.setAttribute("oninput","return;"),iu=typeof kp.oninput=="function"}au=iu}else au=!1;Ap=au&&(!document.documentMode||9<document.documentMode)}function Rp(){qr&&(qr.detachEvent("onpropertychange",Op),Vr=qr=null)}function Op(e){if(e.propertyName==="value"&&Ul(Vr)){var t=[];Ep(t,Vr,e,Pc(e)),fp(xw,t)}}function zw(e,t,n){e==="focusin"?(Rp(),qr=t,Vr=n,qr.attachEvent("onpropertychange",Op)):e==="focusout"&&Rp()}function Dw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ul(Vr)}function Uw(e,t){if(e==="click")return Ul(t)}function Mw(e,t){if(e==="input"||e==="change")return Ul(t)}function Nw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:Nw;function Pr(e,t){if(Kt(e,t))return!0;
vendor: 20,651 bytes, line 9
9if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var c=n[r];if(!Nc.call(t,c)||!Kt(e[c],t[c]))return!1}return!0}function Cp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xp(e,t){var n=Cp(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cp(n)}}function zp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kl(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kl(e.document)}return t}function ru(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var jw=Gn&&"documentMode"in document&&11>=document.documentMode,Hi=null,ou=null,Wr=null,lu=!1;function Up(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lu||Hi==null||Hi!==kl(r)||(r=Hi,"selectionStart"in r&&ru(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}),Wr&&Pr(Wr,r)||(Wr=r,r=Ss(ou,"onSelect"),0<r.length&&(t=new zl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hi)))}function $a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Li={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},su={},Mp={};Gn&&(Mp=document.createElement("div").style,"AnimationEvent"in window||(delete Li.animationend.animation,delete Li.animationiteration.animation,delete Li.animationstart.animation),"TransitionEvent"in window||delete Li.transitionend.transition);function ei(e){if(su[e])return su[e];if(!Li[e])return e;var t=Li[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mp)return su[e]=t[n];return e}var Np=ei("animationend"),jp=ei("animationiteration"),Hp=ei("animationstart"),Hw=ei("transitionrun"),Lw=ei("transitionstart"),Kw=ei("transitioncancel"),Lp=ei("transitionend"),Kp=new Map,cu="abort auxClick beforeToggle 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(" ");cu.push("scrollEnd");function pn(e,t){Kp.set(e,t),Ia(t,[e])}var Ml=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ft=[],Ki=0,uu=0;function Nl(){for(var e=Ki,t=uu=Ki=0;t<e;){var n=Ft[t];Ft[t++]=null;var r=Ft[t];Ft[t++]=null;var c=Ft[t];Ft[t++]=null;var u=Ft[t];if(Ft[t++]=null,r!==null&&c!==null){var h=r.pending;h===null?c.next=c:(c.next=h.next,h.next=c),r.pending=c}u!==0&&Zp(n,c,u)}}function jl(e,t,n,r){Ft[Ki++]=e,Ft[Ki++]=t,Ft[Ki++]=n,Ft[Ki++]=r,uu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function fu(e,t,n,r){return jl(e,t,n,r),Hl(e)}function ti(e,t){return jl(e,null,null,t),Hl(e)}function Zp(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var c=!1,u=e.return;u!==null;)u.childLanes|=n,r=u.alternate,r!==null&&(r.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(c=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,c&&t!==null&&(c=31-Lt(n),e=u.hiddenUpdates,r=e[c],r===null?e[c]=[t]:r.push(t),t.lane=n|536870912),u):null}function Hl(e){if(50<vo)throw vo=0,Sf=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Zi={};function Zw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,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 Zt(e,t,n,r){return new Zw(e,t,n,r)}function du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xn(e,t){var n=e.alternate;return n===null?(n=Zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Bp(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ll(e,t,n,r,c,u){var h=0;if(r=e,typeof e=="function")du(e)&&(h=1);else if(typeof e=="string")h=YS(e,n,Y.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=Zt(31,n,t,c),e.elementType=he,e.lanes=u,e;case O:return ni(n.children,c,u,t);case R:h=8,c|=24;break;case x:return e=Zt(12,n,t,c|2),e.elementType=x,e.lanes=u,e;case Q:return e=Zt(13,n,t,c),e.elementType=Q,e.lanes=u,e;case ae:return e=Zt(19,n,t,c),e.elementType=ae,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:h=10;break e;case J:h=9;break e;case q:h=11;break e;case G:h=14;break e;case ne:h=16,r=null;break e}h=29,n=Error(l(130,e===null?"null":typeof e,"")),r=null}return t=Zt(h,n,t,c),t.elementType=e,t.type=r,t.lanes=u,t}function ni(e,t,n,r){return e=Zt(7,e,r,t),e.lanes=n,e}function hu(e,t,n){return e=Zt(6,e,null,t),e.lanes=n,e}function Jp(e){var t=Zt(18,null,null,0);return t.stateNode=e,t}function pu(e,t,n){return t=Zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gp=new WeakMap;function $t(e,t){if(typeof e=="object"&&e!==null){var n=Gp.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Jh(t)},Gp.set(e,t),t)}return{value:e,source:t,stack:Jh(t)}}var Bi=[],Ji=0,Kl=null,Qr=0,en=[],tn=0,ma=null,Cn=1,xn="";function Yn(e,t){Bi[Ji++]=Qr,Bi[Ji++]=Kl,Kl=e,Qr=t}function Xp(e,t,n){en[tn++]=Cn,en[tn++]=xn,en[tn++]=ma,ma=e;var r=Cn;e=xn;var c=32-Lt(r)-1;r&=~(1<<c),n+=1;var u=32-Lt(t)+c;if(30<u){var h=c-c%5;u=(r&(1<<h)-1).toString(32),r>>=h,c-=h,Cn=1<<32-Lt(t)+c|n<<c|r,xn=u+e}else Cn=1<<u|n<<c|r,xn=e}function mu(e){e.return!==null&&(Yn(e,1),Xp(e,1,0))}function yu(e){for(;e===Kl;)Kl=Bi[--Ji],Bi[Ji]=null,Qr=Bi[--Ji],Bi[Ji]=null;for(;e===ma;)ma=en[--tn],en[tn]=null,xn=en[--tn],en[tn]=null,Cn=en[--tn],en[tn]=null}function Yp(e,t){en[tn++]=Cn,en[tn++]=xn,en[tn++]=ma,Cn=t.id,xn=t.overflow,ma=e}var ht=null,Ge=null,_e=!1,ya=null,nn=!1,gu=Error(l(519));function ga(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ir($t(t,e)),gu}function qp(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dt]=e,t[kt]=r,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<wo.length;n++)be(wo[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),rp(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),lp(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||cg(t.textContent,n)?(r.popover!=null&&(be("beforetoggle",t),be("toggle",t)),r.onScroll!=null&&be("scroll",t),r.onScrollEnd!=null&&be("scrollend",t),r.onClick!=null&&(t.onclick=Jn),t=!0):t=!1,t||ga(e,!0)}function Vp(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:ht=ht.return}}function Gi(e){if(e!==ht)return!1;if(!_e)return Vp(e),_e=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||jf(e.type,e.memoizedProps)),n=!n),n&&Ge&&ga(e),Vp(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ge=vg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Ge=vg(e)}else t===27?(t=Ge,za(e.type)?(e=Bf,Bf=null,Ge=e):Ge=t):Ge=ht?rn(e.stateNode.nextSibling):null;return!0}function ai(){Ge=ht=null,_e=!1}function vu(){var e=ya;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),ya=null),e}function Ir(e){ya===null?ya=[e]:ya.push(e)}var bu=T(null),ii=null,qn=null;function va(e,t,n){X(bu,t._currentValue),t._currentValue=n}function Vn(e){e._currentValue=bu.current,M(bu)}function wu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Su(e,t,n,r){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var u=c.dependencies;if(u!==null){var h=c.child;u=u.firstContext;e:for(;u!==null;){var b=u;u=c;for(var S=0;S<t.length;S++)if(b.context===t[S]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),wu(u.return,n,e),r||(h=null);break e}u=b.next}}else if(c.tag===18){if(h=c.return,h===null)throw Error(l(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),wu(h,n,e),h=null}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===e){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}}function Xi(e,t,n,r){e=null;for(var c=t,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var h=c.alternate;if(h===null)throw Error(l(387));if(h=h.memoizedProps,h!==null){var b=c.type;Kt(c.pendingProps.value,h.value)||(e!==null?e.push(b):e=[b])}}else if(c===ee.current){if(h=c.alternate,h===null)throw Error(l(387));h.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Ao):e=[Ao])}c=c.return}e!==null&&Su(t,e,n,r),t.flags|=262144}function Zl(e){for(e=e.firstContext;e!==null;){if(!Kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ri(e){ii=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Pp(ii,e)}function Bl(e,t){return ii===null&&ri(e),Pp(e,t)}function Pp(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qn===null){if(e===null)throw Error(l(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return n}var Bw=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Jw=i.unstable_scheduleCallback,Gw=i.unstable_NormalPriority,et={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _u(){return{controller:new Bw,data:new Map,refCount:0}}function Fr(e){e.refCount--,e.refCount===0&&Jw(Gw,function(){e.controller.abort()})}var $r=null,Eu=0,Yi=0,qi=null;function Xw(e,t){if($r===null){var n=$r=[];Eu=0,Yi=Rf(),qi={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Eu++,t.then(Wp,Wp),t}function Wp(){if(--Eu===0&&$r!==null){qi!==null&&(qi.status="fulfilled");var e=$r;$r=null,Yi=0,qi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Yw(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(r.status="rejected",r.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),r}var Qp=L.S;L.S=function(e,t){Uy=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Xw(e,t),Qp!==null&&Qp(e,t)};var oi=T(null);function Tu(){var e=oi.current;return e!==null?e:Je.pooledCache}function Jl(e,t){t===null?X(oi,oi.current):X(oi,t.pool)}function Ip(){var e=Tu();return e===null?null:{parent:et._currentValue,pool:e}}var Vi=Error(l(460)),Au=Error(l(474)),Gl=Error(l(542)),Xl={then:function(){}};function Fp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $p(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Jn,Jn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tm(e),e;default:if(typeof t.status=="string")t.then(Jn,Jn);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=r}},function(r){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tm(e),e}throw si=t,Vi}}function li(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(si=n,Vi):n}}var si=null;function em(){if(si===null)throw Error(l(459));var e=si;return si=null,e}function tm(e){if(e===Vi||e===Gl)throw Error(l(483))}var Pi=null,eo=0;function Yl(e){var t=eo;return eo+=1,Pi===null&&(Pi=[]),$p(Pi,e,t)}function to(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ql(e,t){throw t.$$typeof===w?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function nm(e){function t(C,E){if(e){var D=C.deletions;D===null?(C.deletions=[E],C.flags|=16):D.push(E)}}function n(C,E){if(!e)return null;for(;E!==null;)t(C,E),E=E.sibling;return null}function r(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function c(C,E){return C=Xn(C,E),C.index=0,C.sibling=null,C}function u(C,E,D){return C.index=D,e?(D=C.alternate,D!==null?(D=D.index,D<E?(C.flags|=67108866,E):D):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function h(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function b(C,E,D,K){return E===null||E.tag!==6?(E=hu(D,C.mode,K),E.return=C,E):(E=c(E,D),E.return=C,E)}function S(C,E,D,K){var ie=D.type;return ie===O?H(C,E,D.props.children,K,D.key):E!==null&&(E.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ne&&li(ie)===E.type)?(E=c(E,D.props),to(E,D),E.return=C,E):(E=Ll(D.type,D.key,D.props,null,C.mode,K),to(E,D),E.return=C,E)}function U(C,E,D,K){return E===null||E.tag!==4||E.stateNode.containerInfo!==D.containerInfo||E.stateNode.implementation!==D.implementation?(E=pu(D,C.mode,K),E.return=C,E):(E=c(E,D.children||[]),E.return=C,E)}function H(C,E,D,K,ie){return E===null||E.tag!==7?(E=ni(D,C.mode,K,ie),E.return=C,E):(E=c(E,D),E.return=C,E)}function B(C,E,D){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=hu(""+E,C.mode,D),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _:return D=Ll(E.type,E.key,E.props,null,C.mode,D),to(D,E),D.return=C,D;case A:return E=pu(E,C.mode,D),E.return=C,E;case ne:return E=li(E),B(C,E,D)}if(Le(E)||Ce(E))return E=ni(E,C.mode,D,null),E.return=C,E;if(typeof E.then=="function")return B(C,Yl(E),D);if(E.$$typeof===Z)return B(C,Bl(C,E),D);ql(C,E)}return null}function N(C,E,D,K){var ie=E!==null?E.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ie!==null?null:b(C,E,""+D,K);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case _:return D.key===ie?S(C,E,D,K):null;case A:return D.key===ie?U(C,E,D,K):null;case ne:return D=li(D),N(C,E,D,K)}if(Le(D)||Ce(D))return ie!==null?null:H(C,E,D,K,null);if(typeof D.then=="function")return N(C,E,Yl(D),K);if(D.$$typeof===Z)return N(C,E,Bl(C,D),K);ql(C,D)}return null}function j(C,E,D,K,ie){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return C=C.get(D)||null,b(E,C,""+K,ie);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case _:return C=C.get(K.key===null?D:K.key)||null,S(E,C,K,ie);case A:return C=C.get(K.key===null?D:K.key)||null,U(E,C,K,ie);case ne:return K=li(K),j(C,E,D,K,ie)}if(Le(K)||Ce(K))return C=C.get(D)||null,H(E,C,K,ie,null);if(typeof K.then=="function")return j(C,E,D,Yl(K),ie);if(K.$$typeof===Z)return j(C,E,D,Bl(E,K),ie);ql(E,K)}return null}function $(C,E,D,K){for(var ie=null,ke=null,te=E,pe=E=0,Se=null;te!==null&&pe<D.length;pe++){te.index>pe?(Se=te,te=null):Se=te.sibling;var Re=N(C,te,D[pe],K);if(Re===null){te===null&&(te=Se);break}e&&te&&Re.alternate===null&&t(C,te),E=u(Re,E,pe),ke===null?ie=Re:ke.sibling=Re,ke=Re,te=Se}if(pe===D.length)return n(C,te),_e&&Yn(C,pe),ie;if(te===null){for(;pe<D.length;pe++)te=B(C,D[pe],K),te!==null&&(E=u(te,E,pe),ke===null?ie=te:ke.sibling=te,ke=te);return _e&&Yn(C,pe),ie}for(te=r(te);pe<D.length;pe++)Se=j(te,C,pe,D[pe],K),Se!==null&&(e&&Se.alternate!==null&&te.delete(Se.key===null?pe:Se.key),E=u(Se,E,pe),ke===null?ie=Se:ke.sibling=Se,ke=Se);return e&&te.forEach(function(ja){return t(C,ja)}),_e&&Yn(C,pe),ie}function le(C,E,D,K){if(D==null)throw Error(l(151));for(var ie=null,ke=null,te=E,pe=E=0,Se=null,Re=D.next();te!==null&&!Re.done;pe++,Re=D.next()){te.index>pe?(Se=te,te=null):Se=te.sibling;var ja=N(C,te,Re.value,K);if(ja===null){te===null&&(te=Se);break}e&&te&&ja.alternate===null&&t(C,te),E=u(ja,E,pe),ke===null?ie=ja:ke.sibling=ja,ke=ja,te=Se}if(Re.done)return n(C,te),_e&&Yn(C,pe),ie;if(te===null){for(;!Re.done;pe++,Re=D.next())Re=B(C,Re.value,K),Re!==null&&(E=u(Re,E,pe),ke===null?ie=Re:ke.sibling=Re,ke=Re);return _e&&Yn(C,pe),ie}for(te=r(te);!Re.done;pe++,Re=D.next())Re=j(te,C,pe,Re.value,K),Re!==null&&(e&&Re.alternate!==null&&te.delete(Re.key===null?pe:Re.key),E=u(Re,E,pe),ke===null?ie=Re:ke.sibling=Re,ke=Re);return e&&te.forEach(function(n_){return t(C,n_)}),_e&&Yn(C,pe),ie}function Be(C,E,D,K){if(typeof D=="object"&&D!==null&&D.type===O&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case _:e:{for(var ie=D.key;E!==null;){if(E.key===ie){if(ie=D.type,ie===O){if(E.tag===7){n(C,E.sibling),K=c(E,D.props.children),K.return=C,C=K;break e}}else if(E.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===ne&&li(ie)===E.type){n(C,E.sibling),K=c(E,D.props),to(K,D),K.return=C,C=K;break e}n(C,E);break}else t(C,E);E=E.sibling}D.type===O?(K=ni(D.props.children,C.mode,K,D.key),K.return=C,C=K):(K=Ll(D.type,D.key,D.props,null,C.mode,K),to(K,D),K.return=C,C=K)}return h(C);case A:e:{for(ie=D.key;E!==null;){if(E.key===ie)if(E.tag===4&&E.stateNode.containerInfo===D.containerInfo&&E.stateNode.implementation===D.implementation){n(C,E.sibling),K=c(E,D.children||[]),K.return=C,C=K;break e}else{n(C,E);break}else t(C,E);E=E.sibling}K=pu(D,C.mode,K),K.return=C,C=K}return h(C);case ne:return D=li(D),Be(C,E,D,K)}if(Le(D))return $(C,E,D,K);if(Ce(D)){if(ie=Ce(D),typeof ie!="function")throw Error(l(150));return D=ie.call(D),le(C,E,D,K)}if(typeof D.then=="function")return Be(C,E,Yl(D),K);if(D.$$typeof===Z)return Be(C,E,Bl(C,D),K);ql(C,D)}
vendor: 4,676 bytes, line 9
9return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,E!==null&&E.tag===6?(n(C,E.sibling),K=c(E,D),K.return=C,C=K):(n(C,E),K=hu(D,C.mode,K),K.return=C,C=K),h(C)):n(C,E)}return function(C,E,D,K){try{eo=0;var ie=Be(C,E,D,K);return Pi=null,ie}catch(te){if(te===Vi||te===Gl)throw te;var ke=Zt(29,te,null,C.mode);return ke.lanes=K,ke.return=C,ke}}}var ci=nm(!0),am=nm(!1),ba=!1;function ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ru(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ze&2)!==0){var c=r.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),r.pending=t,t=Hl(e),Zp(e,null,n),t}return jl(e,r,t,n),Hl(e)}function no(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ph(e,n)}}function Ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var c=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?c=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?c=u=t:u=u.next=t}else c=u=t;n={baseState:r.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Cu=!1;function ao(){if(Cu){var e=qi;if(e!==null)throw e}}function io(e,t,n,r){Cu=!1;var c=e.updateQueue;ba=!1;var u=c.firstBaseUpdate,h=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var S=b,U=S.next;S.next=null,h===null?u=U:h.next=U,h=S;var H=e.alternate;H!==null&&(H=H.updateQueue,b=H.lastBaseUpdate,b!==h&&(b===null?H.firstBaseUpdate=U:b.next=U,H.lastBaseUpdate=S))}if(u!==null){var B=c.baseState;h=0,H=U=S=null,b=u;do{var N=b.lane&-536870913,j=N!==b.lane;if(j?(we&N)===N:(r&N)===N){N!==0&&N===Yi&&(Cu=!0),H!==null&&(H=H.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var $=e,le=b;N=t;var Be=n;switch(le.tag){case 1:if($=le.payload,typeof $=="function"){B=$.call(Be,B,N);break e}B=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=le.payload,N=typeof $=="function"?$.call(Be,B,N):$,N==null)break e;B=v({},B,N);break e;case 2:ba=!0}}N=b.callback,N!==null&&(e.flags|=64,j&&(e.flags|=8192),j=c.callbacks,j===null?c.callbacks=[N]:j.push(N))}else j={lane:N,tag:b.tag,payload:b.payload,callback:b.callback,next:null},H===null?(U=H=j,S=B):H=H.next=j,h|=N;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;j=b,b=j.next,j.next=null,c.lastBaseUpdate=j,c.shared.pending=null}}while(!0);H===null&&(S=B),c.baseState=S,c.firstBaseUpdate=U,c.lastBaseUpdate=H,u===null&&(c.shared.lanes=0),ka|=h,e.lanes=h,e.memoizedState=B}}function im(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function rm(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)im(n[e],t)}var Wi=T(null),Vl=T(0);function om(e,t){e=na,X(Vl,e),X(Wi,t),na=e|t.baseLanes}function xu(){X(Vl,na),X(Wi,Wi.current)}function zu(){na=Vl.current,M(Wi),M(Vl)}var Bt=T(null),an=null;function _a(e){var t=e.alternate;X(Fe,Fe.current&1),X(Bt,e),an===null&&(t===null||Wi.current!==null||t.memoizedState!==null)&&(an=e)}function Du(e){X(Fe,Fe.current),X(Bt,e),an===null&&(an=e)}function lm(e){e.tag===22?(X(Fe,Fe.current),X(Bt,e),an===null&&(an=e)):Ea()}function Ea(){X(Fe,Fe.current),X(Bt,Bt.current)}function Jt(e){M(Bt),an===e&&(an=null),M(Fe)}var Fe=T(0);function Pl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Kf(n)||Zf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pn=0,de=null,Ke=null,tt=null,Wl=!1,Qi=!1,ui=!1,Ql=0,ro=0,Ii=null,qw=0;function Qe(){throw Error(l(321))}function Uu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function Mu(e,t,n,r,c,u){return Pn=u,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e
vendor: 8,228 bytes, line 9
9===null||e.memoizedState===null?Xm:Wu,ui=!1,u=n(r,c),ui=!1,Qi&&(u=cm(t,n,r,c)),sm(e),u}function sm(e){L.H=so;var t=Ke!==null&&Ke.next!==null;if(Pn=0,tt=Ke=de=null,Wl=!1,ro=0,Ii=null,t)throw Error(l(300));e===null||nt||(e=e.dependencies,e!==null&&Zl(e)&&(nt=!0))}function cm(e,t,n,r){de=e;var c=0;do{if(Qi&&(Ii=null),ro=0,Qi=!1,25<=c)throw Error(l(301));if(c+=1,tt=Ke=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}L.H=Ym,u=t(n,r)}while(Qi);return u}function Vw(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?oo(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(de.flags|=1024),t}function Nu(){var e=Ql!==0;return Ql=0,e}function ju(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Hu(e){if(Wl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wl=!1}Pn=0,tt=Ke=de=null,Qi=!1,ro=Ql=0,Ii=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?de.memoizedState=tt=e:tt=tt.next=e,tt}function $e(){if(Ke===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=tt===null?de.memoizedState:tt.next;if(t!==null)tt=t,Ke=e;else{if(e===null)throw de.alternate===null?Error(l(467)):Error(l(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},tt===null?de.memoizedState=tt=e:tt=tt.next=e}return tt}function Il(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function oo(e){var t=ro;return ro+=1,Ii===null&&(Ii=[]),e=$p(Ii,e,t),t=de,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Xm:Wu),e}function Fl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return oo(e);if(e.$$typeof===Z)return pt(e)}throw Error(l(438,String(e)))}function Lu(e){var t=null,n=de.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=de.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Il(),de.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Ae;return t.index++,n}function Wn(e,t){return typeof t=="function"?t(e):t}function $l(e){var t=$e();return Ku(t,Ke,e)}function Ku(e,t,n){var r=e.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=n;var c=e.baseQueue,u=r.pending;if(u!==null){if(c!==null){var h=c.next;c.next=u.next,u.next=h}t.baseQueue=c=u,r.pending=null}if(u=e.baseState,c===null)e.memoizedState=u;else{t=c.next;var b=h=null,S=null,U=t,H=!1;do{var B=U.lane&-536870913;if(B!==U.lane?(we&B)===B:(Pn&B)===B){var N=U.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),B===Yi&&(H=!0);else if((Pn&N)===N){U=U.next,N===Yi&&(H=!0);continue}else B={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},S===null?(b=S=B,h=u):S=S.next=B,de.lanes|=N,ka|=N;B=U.action,ui&&n(u,B),u=U.hasEagerState?U.eagerState:n(u,B)}else N={lane:B,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},S===null?(b=S=N,h=u):S=S.next=N,de.lanes|=B,ka|=B;U=U.next}while(U!==null&&U!==t);if(S===null?h=u:S.next=b,!Kt(u,e.memoizedState)&&(nt=!0,H&&(n=qi,n!==null)))throw n;e.memoizedState=u,e.baseState=h,e.baseQueue=S,r.lastRenderedState=u}return c===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Zu(e){var t=$e(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,c=n.pending,u=t.memoizedState;if(c!==null){n.pending=null;var h=c=c.next;do u=e(u,h.action),h=h.next;while(h!==c);Kt(u,t.memoizedState)||(nt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function um(e,t,n){var r=de,c=$e(),u=_e;if(u){if(n===void 0)throw Error(l(407));n=n()}else n=t();var h=!Kt((Ke||c).memoizedState,n);if(h&&(c.memoizedState=n,nt=!0),c=c.queue,Gu(hm.bind(null,r,c,e),[e]),c.getSnapshot!==t||h||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,Fi(9,{destroy:void 0},dm.bind(null,r,c,n,t),null),Je===null)throw Error(l(349));u||(Pn&127)!==0||fm(r,t,n)}return n}function fm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t=Il(),de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dm(e,t,n,r){t.value=n,t.getSnapshot=r,pm(t)&&mm(e)}function hm(e,t,n){return n(function(){pm(t)&&mm(e)})}function pm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function mm(e){var t=ti(e,2);t!==null&&Dt(t,e,2)}function Bu(e){var t=Et();if(typeof e=="function"){var n=e;if(e=n(),ui){da(!0);try{n()}finally{da(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t}function ym(e,t,n,r){return e.baseState=n,Ku(e,Ke,typeof r=="function"?r:Wn)}function Pw(e,t,n,r,c){if(ns(e))throw Error(l(485));if(e=t.action,e!==null){var u={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};L.T!==null?n(!0):u.isTransition=!1,r(u),n=t.pending,n===null?(u.next=t.pending=u,gm(t,u)):(u.next=n.next,t.pending=n.next=u)}}function gm(e,t){var n=t.action,r=t.payload,c=e.state;if(t.isTransition){var u=L.T,h={};L.T=h;try{var b=n(c,r),S=L.S;S!==null&&S(h,b),vm(e,t,b)}catch(U){Ju(e,t,U)}finally{u!==null&&h.types!==null&&(u.types=h.types),L.T=u}}else try{u=n(c,r),vm(e,t,u)}catch(U){Ju(e,t,U)}}function vm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){bm(e,t,r)},function(r){return Ju(e,t,r)}):bm(e,t,n)}function bm(e,t,n){t.status="fulfilled",t.value=n,wm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gm(e,n)))}function Ju(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,wm(t),t=t.next;while(t!==r)}e.action=null}function wm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Sm(e,t){return t}function _m(e,t){if(_e){var n=Je.formState;if(n!==null){e:{var r=de;if(_e){if(Ge){t:{for(var c=Ge,u=nn;c.nodeType!==8;){if(!u){c=null;break t}if(c=rn(c.nextSibling),c===null){c=null;break t}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){Ge=rn(c.nextSibling),r=c.data==="F!";break e}}ga(r)}r=!1}r&&(t=n[0])}}return n=Et(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sm,lastRenderedState:t},n.queue=r,n=Bm.bind(null,de,r),r.dispatch=n,r=Bu(!1),u=Pu.bind(null,de,!1,r.queue),r=Et(),c={state:t,dispatch:null,action:e,pending:null},r.queue=c,n=Pw.bind(null,de,c,u,n),c.dispatch=n,r.memoizedState=e,[t,n,!1]}function Em(e){var t=$e();return Tm(t,Ke,e)}function Tm(e,t,n){if(t=Ku(e,t,Sm)[0],e=$l(Wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=oo(t)}catch(h){throw h===Vi?Gl:h}else r=t;t=$e();var c=t.queue,u=c.dispatch;return n!==t.memoizedState&&(de.flags|=2048,Fi(9,{destroy:void 0},Ww.bind(null,c,n),null)),[r,u,e]}function Ww(e,t){e.action=t}function Am(e){var t=$e(),n=Ke;if(n!==null)return Tm(t,n,e);$e(),t=t.memoizedState,n=$e();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Fi(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=de.updateQueue,t===null&&(t=Il(),de.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function km(){return $e().memoizedState}function es(e,t,n,r){var c=Et();de.flags|=e,c.memoizedState=Fi(1|t,{destroy:void 0},n,r===void 0?null:r)}function ts(e,t,n,r){var c=$e();r=r===void 0?null:r;var u=c.memoizedState.inst;Ke!==null&&r!==null&&Uu(r,Ke.memoizedState.deps)?c.memoizedState=Fi(t,u,n,r):(de.flags|=e,c.memoizedState=Fi(1|t,u,n,r))}function Rm(e,t){es(8390656,8,e,t)}function Gu(e,t){ts(2048,8,e,t)}function Qw(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Il(),de.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}
vendor: 4,500 bytes, line 9
9function Om(e){var t=$e().memoizedState;return Qw({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Cm(e,t){return ts(4,2,e,t)}function xm(e,t){return ts(4,4,e,t)}function zm(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dm(e,t,n){n=n!=null?n.concat([e]):null,ts(4,4,zm.bind(null,t,e),n)}function Xu(){}function Um(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Uu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Mm(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Uu(t,r[1]))return r[0];if(r=e(),ui){da(!0);try{e()}finally{da(!1)}}return n.memoizedState=[r,t],r}function Yu(e,t,n){return n===void 0||(Pn&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ny(),de.lanes|=e,ka|=e,n)}function Nm(e,t,n,r){return Kt(n,t)?n:Wi.current!==null?(e=Yu(e,n,r),Kt(e,t)||(nt=!0),e):(Pn&42)===0||(Pn&1073741824)!==0&&(we&261930)===0?(nt=!0,e.memoizedState=n):(e=Ny(),de.lanes|=e,ka|=e,t)}function jm(e,t,n,r,c){var u=W.p;W.p=u!==0&&8>u?u:8;var h=L.T,b={};L.T=b,Pu(e,!1,t,n);try{var S=c(),U=L.S;if(U!==null&&U(b,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var H=Yw(S,r);lo(e,t,H,Yt(e))}else lo(e,t,r,Yt(e))}catch(B){lo(e,t,{then:function(){},status:"rejected",reason:B},Yt())}finally{W.p=u,h!==null&&b.types!==null&&(h.types=b.types),L.T=h}}function Iw(){}function qu(e,t,n,r){if(e.tag!==5)throw Error(l(476));var c=Hm(e).queue;jm(e,c,t,oe,n===null?Iw:function(){return Lm(e),n(r)})}function Hm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lm(e){var t=Hm(e);t.next===null&&(t=e.alternate.memoizedState),lo(e,t.next.queue,{},Yt())}function Vu(){return pt(Ao)}function Km(){return $e().memoizedState}function Zm(){return $e().memoizedState}function Fw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Yt();e=wa(n);var r=Sa(t,e,n);r!==null&&(Dt(r,t,n),no(r,t,n)),t={cache:_u()},e.payload=t;return}t=t.return}}function $w(e,t,n){var r=Yt();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ns(e)?Jm(t,n):(n=fu(e,t,n,r),n!==null&&(Dt(n,e,r),Gm(n,t,r)))}function Bm(e,t,n){var r=Yt();lo(e,t,n,r)}function lo(e,t,n,r){var c={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ns(e))Jm(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,b=u(h,n);if(c.hasEagerState=!0,c.eagerState=b,Kt(b,h))return jl(e,t,c,0),Je===null&&Nl(),!1}catch{}if(n=fu(e,t,c,r),n!==null)return Dt(n,e,r),Gm(n,t,r),!0}return!1}function Pu(e,t,n,r){if(r={lane:2,revertLane:Rf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e)){if(t)throw Error(l(479))}else t=fu(e,n,r,2),t!==null&&Dt(t,e,2)}function ns(e){var t=e.alternate;return e===de||t!==null&&t===de}function Jm(e,t){Qi=Wl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gm(e,t,n){if((n&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ph(e,n)}}var so={readContext:pt,use:Fl,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};so.useEffectEvent=Qe;var Xm={readContext:pt,use:Fl,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Rm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,es(4194308,4,zm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){es(4,2,e,t)},useMemo:function(e,t){var n=Et();t=t===void 0?null:t;var r=e();if(ui){da(!0);try{e()}finally{da(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Et();if(n!==void 0){var c=n(t);
vendor: 6,916 bytes, line 9
9if(ui){da(!0);try{n(t)}finally{da(!1)}}}else c=t;return r.memoizedState=r.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},r.queue=e,e=e.dispatch=$w.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=Bu(e);var t=e.queue,n=Bm.bind(null,de,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xu,useDeferredValue:function(e,t){var n=Et();return Yu(n,e,t)},useTransition:function(){var e=Bu(!1);return e=jm.bind(null,de,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=de,c=Et();if(_e){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),Je===null)throw Error(l(349));(we&127)!==0||fm(r,t,n)}c.memoizedState=n;var u={value:n,getSnapshot:t};return c.queue=u,Rm(hm.bind(null,r,u,e),[e]),r.flags|=2048,Fi(9,{destroy:void 0},dm.bind(null,r,u,n,t),null),n},useId:function(){var e=Et(),t=Je.identifierPrefix;if(_e){var n=xn,r=Cn;n=(r&~(1<<32-Lt(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ql++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=qw++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Vu,useFormState:_m,useActionState:_m,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Pu.bind(null,de,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lu,useCacheRefresh:function(){return Et().memoizedState=Fw.bind(null,de)},useEffectEvent:function(e){var t=Et(),n={impl:e};return t.memoizedState=n,function(){if((ze&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},Wu={readContext:pt,use:Fl,useCallback:Um,useContext:pt,useEffect:Gu,useImperativeHandle:Dm,useInsertionEffect:Cm,useLayoutEffect:xm,useMemo:Mm,useReducer:$l,useRef:km,useState:function(){return $l(Wn)},useDebugValue:Xu,useDeferredValue:function(e,t){var n=$e();return Nm(n,Ke.memoizedState,e,t)},useTransition:function(){var e=$l(Wn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:oo(e),t]},useSyncExternalStore:um,useId:Km,useHostTransitionStatus:Vu,useFormState:Em,useActionState:Em,useOptimistic:function(e,t){var n=$e();return ym(n,Ke,e,t)},useMemoCache:Lu,useCacheRefresh:Zm};Wu.useEffectEvent=Om;var Ym={readContext:pt,use:Fl,useCallback:Um,useContext:pt,useEffect:Gu,useImperativeHandle:Dm,useInsertionEffect:Cm,useLayoutEffect:xm,useMemo:Mm,useReducer:Zu,useRef:km,useState:function(){return Zu(Wn)},useDebugValue:Xu,useDeferredValue:function(e,t){var n=$e();return Ke===null?Yu(n,e,t):Nm(n,Ke.memoizedState,e,t)},useTransition:function(){var e=Zu(Wn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:oo(e),t]},useSyncExternalStore:um,useId:Km,useHostTransitionStatus:Vu,useFormState:Am,useActionState:Am,useOptimistic:function(e,t){var n=$e();return Ke!==null?ym(n,Ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Lu,useCacheRefresh:Zm};Ym.useEffectEvent=Om;function Qu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Iu={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yt(),c=wa(r);c.payload=t,n!=null&&(c.callback=n),t=Sa(e,c,r),t!==null&&(Dt(t,e,r),no(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yt(),c=wa(r);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=Sa(e,c,r),t!==null&&(Dt(t,e,r),no(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yt(),r=wa(n);r.tag=2,t!=null&&(r.callback=t),t=Sa(e,r,n),t!==null&&(Dt(t,e,n),no(t,e,n))}};function qm(e,t,n,r,c,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,h):t.prototype&&t.prototype.isPureReactComponent?!Pr(n,r)||!Pr(c,u):!0}function Vm(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Iu.enqueueReplaceState(t,t.state,null)}function fi(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Pm(e){Ml(e)}function Wm(e){console.error(e)}function Qm(e){Ml(e)}function as(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Im(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Fu(e,t,n){return n=wa(n),n.tag=3,n.payload={element:null},n.callback=function(){as(e,t)},n}function Fm(e){return e=wa(e),e.tag=3,e}function $m(e,t,n,r){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var u=r.value;e.payload=function(){return c(u)},e.callback=function(){Im(t,n,r)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Im(t,n,r),typeof c!="function"&&(Ra===null?Ra=new Set([this]):Ra.add(this));var b=r.stack;this.componentDidCatch(r.value,{componentStack:b!==null?b:""})})}function eS(e,t,n,r,c){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Xi(t,n,c,!0),n=Bt.current,n!==null){switch(n.tag){case 31:case 13:return an===null?ms():n.alternate===null&&Ie===0&&(Ie=3),n.flags&=-257,n.flags|=65536,n.lanes=c,r===Xl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Tf(e,r,c)),!1;case 22:return n.flags|=65536,r===Xl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Tf(e,r,c)),!1}throw Error(l(435,n.tag))}return Tf(e,r,c),ms(),!1}if(_e)return t=Bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,r!==gu&&(e=Error(l(422),{cause:r}),Ir($t(e,n)))):(r!==gu&&(t=Error(l(423),{cause:r}),Ir($t(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,r=$t(r,n),c=Fu(e.stateNode,r,c),Ou(e,c),Ie!==4&&(Ie=2)),!1;var u=Error(l(520),{cause:r});if(u=$t(u,n),go===null?go=[u]:go.push(u),Ie!==4&&(Ie=2),t===null)return!0;r=$t(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Fu(n.stateNode,r,e),Ou(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ra===null||!Ra.has(u))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Fm(c),$m(c,e,n,r),Ou(n,c),!1}n=n.return}while(n!==null);return!1}var $u=Error(l(461)),nt=!1;function mt(e,t,n,r){t.child=e===null?am(t,null,n,r):ci(t,e.child,n,r)}function ey(e,t,n,r,c){n=n.render;var u=t.ref;if("ref"in r){var h={};for(var b in r)b!=="ref"&&(h[b]=r[b])}else h=r;return ri(t),r=Mu(e,t,n,h,u,c),b=Nu(),e!==null&&!nt?(ju(e,t,c),Qn(e,t,c)):(_e&&b&&mu(t),t.flags|=1,mt(e,t,r,c),t.child)}
vendor: 9,560 bytes, line 9
9function ty(e,t,n,r,c){if(e===null){var u=n.type;return typeof u=="function"&&!du(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,ny(e,t,u,r,c)):(e=Ll(n.type,null,r,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!sf(e,c)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Pr,n(h,r)&&e.ref===t.ref)return Qn(e,t,c)}return t.flags|=1,e=Xn(u,r),e.ref=t.ref,e.return=t,t.child=e}function ny(e,t,n,r,c){if(e!==null){var u=e.memoizedProps;if(Pr(u,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=u,sf(e,c))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,Qn(e,t,c)}return ef(e,t,n,r,c)}function ay(e,t,n,r){var c=r.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(r=t.child=e.child,c=0;r!==null;)c=c|r.lanes|r.childLanes,r=r.sibling;r=c&~u}else r=0,t.child=null;return iy(e,t,u,n,r)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jl(t,u!==null?u.cachePool:null),u!==null?om(t,u):xu(),lm(t);else return r=t.lanes=536870912,iy(e,t,u!==null?u.baseLanes|n:n,n,r)}else u!==null?(Jl(t,u.cachePool),om(t,u),Ea(),t.memoizedState=null):(e!==null&&Jl(t,null),xu(),Ea());return mt(e,t,c,n),t.child}function co(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function iy(e,t,n,r,c){var u=Tu();return u=u===null?null:{parent:et._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Jl(t,null),xu(),lm(t),e!==null&&Xi(e,t,r,!0),t.childLanes=c,null}function is(e,t){return t=os({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ry(e,t,n){return ci(t,e.child,null,n),e=is(t,t.pendingProps),e.flags|=2,Jt(t),t.memoizedState=null,e}function tS(e,t,n){var r=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(r.mode==="hidden")return e=is(t,r),t.lanes=536870912,co(null,e);if(Du(t),(e=Ge)?(e=gg(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ma!==null?{id:Cn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=Jp(e),n.return=t,t.child=n,ht=t,Ge=null)):e=null,e===null)throw ga(t);return t.lanes=536870912,null}return is(t,r)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(Du(t),c)if(t.flags&256)t.flags&=-257,t=ry(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(nt||Xi(e,t,n,!1),c=(n&e.childLanes)!==0,nt||c){if(r=Je,r!==null&&(h=Wh(r,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,ti(e,h),Dt(r,e,h),$u;ms(),t=ry(e,t,n)}else e=u.treeContext,Ge=rn(h.nextSibling),ht=t,_e=!0,ya=null,nn=!1,e!==null&&Yp(t,e),t=is(t,r),t.flags|=4096;return t}return e=Xn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function rs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ef(e,t,n,r,c){return ri(t),n=Mu(e,t,n,r,void 0,c),r=Nu(),e!==null&&!nt?(ju(e,t,c),Qn(e,t,c)):(_e&&r&&mu(t),t.flags|=1,mt(e,t,n,c),t.child)}function oy(e,t,n,r,c,u){return ri(t),t.updateQueue=null,n=cm(t,r,n,c),sm(e),r=Nu(),e!==null&&!nt?(ju(e,t,u),Qn(e,t,u)):(_e&&r&&mu(t),t.flags|=1,mt(e,t,n,u),t.child)}function ly(e,t,n,r,c){if(ri(t),t.stateNode===null){var u=Zi,h=n.contextType;typeof h=="object"&&h!==null&&(u=pt(h)),u=new n(r,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Iu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=r,u.state=t.memoizedState,u.refs={},ku(t),h=n.contextType,u.context=typeof h=="object"&&h!==null?pt(h):Zi,u.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Qu(t,n,h,r),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Iu.enqueueReplaceState(u,u.state,null),io(t,r,u,c),ao(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,S=fi(n,b);u.props=S;var U=u.context,H=n.contextType;h=Zi,typeof H=="object"&&H!==null&&(h=pt(H));var B=n.getDerivedStateFromProps;H=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,H||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||U!==h)&&Vm(t,u,r,h),ba=!1;var N=t.memoizedState;u.state=N,io(t,r,u,c),ao(),U=t.memoizedState,b||N!==U||ba?(typeof B=="function"&&(Qu(t,n,B,r),U=t.memoizedState),(S=ba||qm(t,n,S,r,N,U,h))?(H||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=U),u.props=r,u.state=U,u.context=h,r=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Ru(e,t),h=t.memoizedProps,H=fi(n,h),u.props=H,B=t.pendingProps,N=u.context,U=n.contextType,S=Zi,typeof U=="object"&&U!==null&&(S=pt(U)),b=n.getDerivedStateFromProps,(U=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==B||N!==S)&&Vm(t,u,r,S),ba=!1,N=t.memoizedState,u.state=N,io(t,r,u,c),ao();var j=t.memoizedState;h!==B||N!==j||ba||e!==null&&e.dependencies!==null&&Zl(e.dependencies)?(typeof b=="function"&&(Qu(t,n,b,r),j=t.memoizedState),(H=ba||qm(t,n,H,r,N,j,S)||e!==null&&e.dependencies!==null&&Zl(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,j,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,j,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=j),u.props=r,u.state=j,u.context=S,r=H):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),r=!1)}return u=r,rs(e,t),r=(t.flags&128)!==0,u||r?(u=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&r?(t.child=ci(t,e.child,null,c),t.child=ci(t,null,n,c)):mt(e,t,n,c),t.memoizedState=u.state,e=t.child):e=Qn(e,t,c),e}function sy(e,t,n,r){return ai(),t.flags|=256,mt(e,t,n,r),t.child}var tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nf(e){return{baseLanes:e,cachePool:Ip()}}function af(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Xt),e}function cy(e,t,n){var r=t.pendingProps,c=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(Fe.current&2)!==0),h&&(c=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(c?_a(t):Ea(),(e=Ge)?(e=gg(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ma!==null?{id:Cn,overflow:xn}:null,retryLane:536870912,hydrationErrors:null},n=Jp(e),n.return=t,t.child=n,ht=t,Ge=null)):e=null,e===null)throw ga(t);return Zf(e)?t.lanes=32:t.lanes=536870912,null}var b=r.children;return r=r.fallback,c?(Ea(),c=t.mode,b=os({mode:"hidden",children:b},c),r=ni(r,c,n,null),b.return=t,r.return=t,b.sibling=r,t.child=b,r=t.child,r.memoizedState=nf(n),r.childLanes=af(e,h,n),t.memoizedState=tf,co(null,r)):(_a(t),rf(t,b))}var S=e.memoizedState;if(S!==null&&(b=S.dehydrated,b!==null)){if(u)t.flags&256?(_a(t),t.flags&=-257,t=of(e,t,n)):t.memoizedState!==null?(Ea(),t.child=e.child,t.flags|=128,t=null):(Ea(),b=r.fallback,c=t.mode,r=os({mode:"visible",children:r.children},c),b=ni(b,c,n,null),b.flags|=2,r.return=t,b.return=t,r.sibling=b,t.child=r,ci(t,e.child,null,n),r=t.child,r.memoizedState=nf(n),r.childLanes=af(e,h,n),t.memoizedState=tf,t=co(null,r));else if(_a(t),Zf(b)){if(h=b.nextSibling&&b.nextSibling.dataset,h)var U=h.dgst;h=U,r=Error(l(419)),r.stack="",r.digest=h,Ir({value:r,source:null,stack:null}),t=of(e,t,n)}else if(nt||Xi(e,t,n,!1),h=(n&e.childLanes)!==0,nt||h){if(h=Je,h!==null&&(r=Wh(h,n),r!==0&&r!==S.retryLane))throw S.retryLane=r,ti(e,r),Dt(h,e,r),$u;Kf(b)||ms(),t=of(e,t,n)}else Kf(b)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ge=rn(b.nextSibling),ht=t,_e=!0,ya=null,nn=!1,e!==null&&Yp(t,e),t=rf(t,r.children),t.flags|=4096);return t}return c?(Ea(),b=r.fallback,c=t.mode,S=e.child,U=S.sibling,r=Xn(S,{mode:"hidden",children:r.children}),r.subtreeFlags=S.subtreeFlags&65011712,U!==null?b=Xn(U,b):(b=ni(b,c,n,null),b.flags|=2),b.return=t,r.return=t,r.sibling=b,t.child=r,co(null,r),r=t.child,b=e.child.memoizedState,b
vendor: 4,136 bytes, line 9
9===null?b=nf(n):(c=b.cachePool,c!==null?(S=et._currentValue,c=c.parent!==S?{parent:S,pool:S}:c):c=Ip(),b={baseLanes:b.baseLanes|n,cachePool:c}),r.memoizedState=b,r.childLanes=af(e,h,n),t.memoizedState=tf,co(e.child,r)):(_a(t),n=e.child,e=n.sibling,n=Xn(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function rf(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=Zt(22,e,null,t),e.lanes=0,e}function of(e,t,n){return ci(t,e.child,null,n),e=rf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uy(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),wu(e.return,t,n)}function lf(e,t,n,r,c,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:c,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=r,h.tail=n,h.tailMode=c,h.treeForkCount=u)}function fy(e,t,n){var r=t.pendingProps,c=r.revealOrder,u=r.tail;r=r.children;var h=Fe.current,b=(h&2)!==0;if(b?(h=h&1|2,t.flags|=128):h&=1,X(Fe,h),mt(e,t,r,n),r=_e?Qr:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uy(e,n,t);else if(e.tag===19)uy(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Pl(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),lf(t,!1,c,n,u,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Pl(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}lf(t,!0,n,null,u,r);break;case"together":lf(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ka|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=Xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Zl(e)))}function nS(e,t,n){switch(t.tag){case 3:Ye(t,t.stateNode.containerInfo),va(t,et,e.memoizedState.cache),ai();break;case 27:case 5:Nr(t);break;case 4:Ye(t,t.stateNode.containerInfo);break;case 10:va(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Du(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(_a(t),t.flags|=128,null):(n&t.child.childLanes)!==0?cy(e,t,n):(_a(t),e=Qn(e,t,n),e!==null?e.sibling:null);_a(t);break;case 19:var c=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Xi(e,t,n,!1),r=(n&t.childLanes)!==0),c){if(r)return fy(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),X(Fe,Fe.current),r)break;return null;case 22:return t.lanes=0,ay(e,t,n,t.pendingProps);case 24:va(t,et,e.memoizedState.cache)}return Qn(e,t,n)}function dy(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!sf(e,n)&&(t.flags&128)===0)return nt=!1,nS(e,t,n);nt=(e.flags&131072)!==0}else nt=!1,_e&&(t.flags&1048576)!==0&&Xp(t,Qr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=li(t.elementType),t.type=e,typeof e=="function")du(e)?(r=fi(e,r),t.tag=1,t=ly(null,t,e,r,n)):(t.tag=0,t=ef(null,t,e,r,n));else{if(e!=null){var c=e.$$typeof;if(c===q){t.tag=11,t=ey(null,t,e,r,n);break e}else if(c===G){t.tag=14,t=ty(null,t,e,r,n);break e}}throw t=st(e)||e,Error(l(306,t,""))}}return t;case 0:return ef(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,c=fi(r,t.pendingProps),ly(e,t,r,c,n);case 3:e:{if(Ye(t,t.stateNode.containerInfo),e===null)throw Error(l(387));
vendor: 5,722 bytes, line 9
9r=t.pendingProps;var u=t.memoizedState;c=u.element,Ru(e,t),io(t,r,null,n);var h=t.memoizedState;if(r=h.cache,va(t,et,r),r!==u.cache&&Su(t,[et],n,!0),ao(),r=h.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=sy(e,t,r,n);break e}else if(r!==c){c=$t(Error(l(424)),t),Ir(c),t=sy(e,t,r,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ge=rn(e.firstChild),ht=t,_e=!0,ya=null,nn=!0,n=am(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ai(),r===c){t=Qn(e,t,n);break e}mt(e,t,r,n)}t=t.child}return t;case 26:return rs(e,t),e===null?(n=Eg(t.type,null,t.pendingProps,null))?t.memoizedState=n:_e||(n=t.type,e=t.pendingProps,r=_s(I.current).createElement(n),r[dt]=t,r[kt]=e,yt(r,n,e),ct(r),t.stateNode=r):t.memoizedState=Eg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Nr(t),e===null&&_e&&(r=t.stateNode=wg(t.type,t.pendingProps,I.current),ht=t,nn=!0,c=Ge,za(t.type)?(Bf=c,Ge=rn(r.firstChild)):Ge=c),mt(e,t,t.pendingProps.children,n),rs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((c=r=Ge)&&(r=DS(r,t.type,t.pendingProps,nn),r!==null?(t.stateNode=r,ht=t,Ge=rn(r.firstChild),nn=!1,c=!0):c=!1),c||ga(t)),Nr(t),c=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,r=u.children,jf(c,u)?r=null:h!==null&&jf(c,h)&&(t.flags|=32),t.memoizedState!==null&&(c=Mu(e,t,Vw,null,null,n),Ao._currentValue=c),rs(e,t),mt(e,t,r,n),t.child;case 6:return e===null&&_e&&((e=n=Ge)&&(n=US(n,t.pendingProps,nn),n!==null?(t.stateNode=n,ht=t,Ge=null,e=!0):e=!1),e||ga(t)),null;case 13:return cy(e,t,n);case 4:return Ye(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ci(t,null,r,n):mt(e,t,r,n),t.child;case 11:return ey(e,t,t.type,t.pendingProps,n);case 7:return mt(e,t,t.pendingProps,n),t.child;case 8:return mt(e,t,t.pendingProps.children,n),t.child;case 12:return mt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,va(t,t.type,r.value),mt(e,t,r.children,n),t.child;case 9:return c=t.type._context,r=t.pendingProps.children,ri(t),c=pt(c),r=r(c),t.flags|=1,mt(e,t,r,n),t.child;case 14:return ty(e,t,t.type,t.pendingProps,n);case 15:return ny(e,t,t.type,t.pendingProps,n);case 19:return fy(e,t,n);case 31:return tS(e,t,n);case 22:return ay(e,t,n,t.pendingProps);case 24:return ri(t),r=pt(et),e===null?(c=Tu(),c===null&&(c=Je,u=_u(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=n),c=u),t.memoizedState={parent:r,cache:c},ku(t),va(t,et,c)):((e.lanes&n)!==0&&(Ru(e,t),io(t,null,null,n),ao()),c=e.memoizedState,u=t.memoizedState,c.parent!==r?(c={parent:r,cache:r},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),va(t,et,r)):(r=u.cache,va(t,et,r),r!==c.cache&&Su(t,[et],n,!0))),mt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function In(e){e.flags|=4}function cf(e,t,n,r,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Ky())e.flags|=8192;else throw si=Xl,Au}else e.flags&=-16777217}function hy(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Og(t))if(Ky())e.flags|=8192;else throw si=Xl,Au}function ls(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qh():536870912,e.lanes|=t,nr|=t)}function uo(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,r|=c.subtreeFlags&65011712,r|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function aS(e,t,n){var r=t.pendingProps;switch(yu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Vn(et),Me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?In(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,vu())),Xe(t),null;case 26:var c=t.type,u=t.memoizedState;return e===null?(In(t),u!==null?(Xe(t),hy(t,u)):(Xe(t),cf(t,c,null,r,n))):u?u!==e.memoizedState?(In(t),Xe(t),hy(t,u)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&In(t),Xe(t),cf(t,c,e,r,n)),null;case 27:if(vl(t),n=I.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&In(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Xe(t),null}e=Y.current,Gi(t)?qp(t):(e=wg(c,r,n),t.stateNode=e,In(t))}return Xe(t),null;case 5:if(vl(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&In(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Xe(t),null}if(u=Y.current,Gi(t))qp(t);else{var h=_s(I.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;
vendor: 25,006 bytes, line 9
9case"select":u=typeof r.is=="string"?h.createElement("select",{is:r.is}):h.createElement("select"),r.multiple?u.multiple=!0:r.size&&(u.size=r.size);break;default:u=typeof r.is=="string"?h.createElement(c,{is:r.is}):h.createElement(c)}}u[dt]=t,u[kt]=r;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(yt(u,c,r),c){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&In(t)}}return Xe(t),cf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&In(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(l(166));if(e=I.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,c=ht,c!==null)switch(c.tag){case 27:case 5:r=c.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||cg(e.nodeValue,n)),e||ga(t,!0)}else e=_s(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Xe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[dt]=t}else ai(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=vu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Jt(t),t):(Jt(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Xe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!c)throw Error(l(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[dt]=t}else ai(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),c=!1}else c=vu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Jt(t),t):(Jt(t),null)}return Jt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,c=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(c=r.alternate.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==c&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ls(t,t.updateQueue),Xe(t),null);case 4:return Me(),e===null&&zf(t.stateNode.containerInfo),Xe(t),null;case 10:return Vn(t.type),Xe(t),null;case 19:if(M(Fe),r=t.memoizedState,r===null)return Xe(t),null;if(c=(t.flags&128)!==0,u=r.rendering,u===null)if(c)uo(r,!1);else{if(Ie!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Pl(e),u!==null){for(t.flags|=128,uo(r,!1),e=u.updateQueue,t.updateQueue=e,ls(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Bp(n,e),n=n.sibling;return X(Fe,Fe.current&1|2),_e&&Yn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&jt()>ds&&(t.flags|=128,c=!0,uo(r,!1),t.lanes=4194304)}else{if(!c)if(e=Pl(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,ls(t,e),uo(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!_e)return Xe(t),null}else 2*jt()-r.renderingStartTime>ds&&n!==536870912&&(t.flags|=128,c=!0,uo(r,!1),t.lanes=4194304);r.isBackwards?(u.sibling=t.child,t.child=u):(e=r.last,e!==null?e.sibling=u:t.child=u,r.last=u)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=jt(),e.sibling=null,n=Fe.current,X(Fe,c?n&1|2:n&1),_e&&Yn(t,r.treeForkCount),e):(Xe(t),null);case 22:case 23:return Jt(t),zu(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(n&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&ls(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&M(oi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Vn(et),Xe(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function iS(e,t){switch(yu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(et),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vl(t),null;case 31:if(t.memoizedState!==null){if(Jt(t),t.alternate===null)throw Error(l(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(Fe),null;case 4:return Me(),null;case 10:return Vn(t.type),null;case 22:case 23:return Jt(t),zu(),e!==null&&M(oi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vn(et),null;case 25:return null;default:return null}}function py(e,t){switch(yu(t),t.tag){case 3:Vn(et),Me();break;case 26:case 27:case 5:vl(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&Jt(t);break;case 13:Jt(t);break;case 19:M(Fe);break;case 10:Vn(t.type);break;case 22:case 23:Jt(t),zu(),e!==null&&M(oi);break;case 24:Vn(et)}}function fo(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var c=r.next;n=c;do{if((n.tag&e)===e){r=void 0;var u=n.create,h=n.inst;r=u(),h.destroy=r}n=n.next}while(n!==c)}}catch(b){He(t,t.return,b)}}function Ta(e,t,n){try{var r=t.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var u=c.next;r=u;do{if((r.tag&e)===e){var h=r.inst,b=h.destroy;if(b!==void 0){h.destroy=void 0,c=t;var S=n,U=b;try{U()}catch(H){He(c,S,H)}}}r=r.next}while(r!==u)}}catch(H){He(t,t.return,H)}}function my(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{rm(t,n)}catch(r){He(e,e.return,r)}}}function yy(e,t,n){n.props=fi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){He(e,t,r)}}function ho(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(c){He(e,t,c)}}function zn(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(c){He(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){He(e,t,c)}else n.current=null}function gy(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(c){He(e,e.return,c)}}function uf(e,t,n){try{var r=e.stateNode;kS(r,e.type,n,t),r[kt]=t}catch(c){He(e,e.return,c)}}function vy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&za(e.type)||e.tag===4}function ff(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&za(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function df(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jn));else if(r!==4&&(r===27&&za(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(df(e,t,n),e=e.sibling;e!==null;)df(e,t,n),e=e.sibling}function ss(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&za(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ss(e,t,n),e=e.sibling;e!==null;)ss(e,t,n),e=e.sibling}function by(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);yt(t,r,n),t[dt]=e,t[kt]=n}catch(u){He(e,e.return,u)}}var Fn=!1,at=!1,hf=!1,wy=typeof WeakSet=="function"?WeakSet:Set,ut=null;function rS(e,t){if(e=e.containerInfo,Mf=Cs,e=Dp(e),ru(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var c=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,b=-1,S=-1,U=0,H=0,B=e,N=null;t:for(;;){for(var j;B!==n||c!==0&&B.nodeType!==3||(b=h+c),B!==u||r!==0&&B.nodeType!==3||(S=h+r),B.nodeType===3&&(h+=B.nodeValue.length),(j=B.firstChild)!==null;)N=B,B=j;for(;;){if(B===e)break t;if(N===n&&++U===c&&(b=h),N===u&&++H===r&&(S=h),(j=B.nextSibling)!==null)break;B=N,N=B.parentNode}B=j}n=b===-1||S===-1?null:{start:b,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Nf={focusedElem:e,selectionRange:n},Cs=!1,ut=t;ut!==null;)if(t=ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ut=e;else for(;ut!==null;){switch(t=ut,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,c=u.memoizedProps,u=u.memoizedState,r=n.stateNode;try{var $=fi(n.type,c);e=r.getSnapshotBeforeUpdate($,u),r.__reactInternalSnapshotBeforeUpdate=e}catch(le){He(n,n.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Lf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Lf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,ut=e;break}ut=t.return}}function Sy(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ea(e,n),r&4&&fo(5,n);break;case 1:if(ea(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){He(n,n.return,h)}else{var c=fi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){He(n,n.return,h)}}r&64&&my(n),r&512&&ho(n,n.return);break;case 3:if(ea(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{rm(e,t)}catch(h){He(n,n.return,h)}}break;case 27:t===null&&r&4&&by(n);case 26:case 5:ea(e,n),t===null&&r&4&&gy(n),r&512&&ho(n,n.return);break;case 12:ea(e,n);break;case 31:ea(e,n),r&4&&Ty(e,n);break;case 13:ea(e,n),r&4&&Ay(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=pS.bind(null,n),MS(e,n))));break;case 22:if(r=n.memoizedState!==null||Fn,!r){t=t!==null&&t.memoizedState!==null||at,c=Fn;var u=at;Fn=r,(at=t)&&!u?ta(e,n,(n.subtreeFlags&8772)!==0):ea(e,n),Fn=c,at=u}break;case 30:break;default:ea(e,n)}}function _y(e){var t=e.alternate;t!==null&&(e.alternate=null,_y(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Jc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qe=null,Ot=!1;function $n(e,t,n){for(n=n.child;n!==null;)Ey(e,t,n),n=n.sibling}function Ey(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(jr,n)}catch{}switch(n.tag){case 26:at||zn(n,t),$n(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:at||zn(n,t);var r=qe,c=Ot;za(n.type)&&(qe=n.stateNode,Ot=!1),$n(e,t,n),_o(n.stateNode),qe=r,Ot=c;break;case 5:at||zn(n,t);case 6:if(r=qe,c=Ot,qe=null,$n(e,t,n),qe=r,Ot=c,qe!==null)if(Ot)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(u){He(n,t,u)}else try{qe.removeChild(n.stateNode)}catch(u){He(n,t,u)}break;case 18:qe!==null&&(Ot?(e=qe,mg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ur(e)):mg(qe,n.stateNode));break;case 4:r=qe,c=Ot,qe=n.stateNode.containerInfo,Ot=!0,$n(e,t,n),qe=r,Ot=c;break;case 0:case 11:case 14:case 15:Ta(2,n,t),at||Ta(4,n,t),$n(e,t,n);break;case 1:at||(zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&yy(n,t,r)),$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:at=(r=at)||n.memoizedState!==null,$n(e,t,n),at=r;break;default:$n(e,t,n)}}function Ty(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ur(e)}catch(n){He(t,t.return,n)}}}function Ay(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ur(e)}catch(n){He(t,t.return,n)}}function oS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wy),t;default:throw Error(l(435,e.tag))}}function cs(e,t){var n=oS(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var c=mS.bind(null,e,r);r.then(c,c)}})}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var c=n[r],u=e,h=t,b=h;e:for(;b!==null;){switch(b.tag){case 27:if(za(b.type)){qe=b.stateNode,Ot=!1;break e}break;case 5:qe=b.stateNode,Ot=!1;break e;case 3:case 4:qe=b.stateNode.containerInfo,Ot=!0;break e}b=b.return}if(qe===null)throw Error(l(160));Ey(u,h,c),qe=null,Ot=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ky(t,e),t=t.sibling}var mn=null;function ky(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ct(t,e),xt(e),r&4&&(Ta(3,e,e.return),fo(3,e),Ta(5,e,e.return));break;case 1:Ct(t,e),xt(e),r&512&&(at||n===null||zn(n,n.return)),r&64&&Fn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var c=mn;if(Ct(t,e),xt(e),r&512&&(at||n===null||zn(n,n.return)),r&4){var u=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(r){case"title":u=c.getElementsByTagName("title")[0],(!u||u[Kr]||u[dt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(r),c.head.insertBefore(u,c.querySelector("head > title"))),yt(u,r,n),u[dt]=e,ct(u),r=u;break e;case"link":var h=kg("link","href",c).get(r+(n.href||""));if(h){for(var b=0;b<h.length;b++)if(u=h[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(b,1);break t}}u=c.createElement(r),yt(u,r,n),c.head.appendChild(u);break;case"meta":if(h=kg("meta","content",c).get(r+(n.content||""))){for(b=0;b<h.length;b++)if(u=h[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(b,1);break t}}u=c.createElement(r),yt(u,r,n),c.head.appendChild(u);break;default:throw Error(l(468,r))}u[dt]=e,ct(u),r=u}e.stateNode=r}else Rg(c,e.type,e.stateNode);else e.stateNode=Ag(c,r,e.memoizedProps);else u!==r?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,r===null?Rg(c,e.type,e.stateNode):Ag(c,r,e.memoizedProps)):r===null&&e.stateNode!==null&&uf(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ct(t,e),xt(e),r&512&&(at||n===null||zn(n,n.return)),n!==null&&r&4&&uf(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ct(t,e),xt(e),r&512&&(at||n===null||zn(n,n.return)),e.flags&32){c=e.stateNode;try{Ui(c,"")}catch($){He(e,e.return,$)}}r&4&&e.stateNode!=null&&(c=e.memoizedProps,uf(e,c,n!==null?n.memoizedProps:c)),r&1024&&(hf=!0);break;case 6:if(Ct(t,e),xt(e),r&4){if(e.stateNode===null)throw Error(l(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch($){He(e,e.return,$)}}break;case 3:if(As=null,c=mn,mn=Es(t.containerInfo),Ct(t,e),mn=c,xt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ur(t.containerInfo)}catch($){He(e,e.return,$)}hf&&(hf=!1,Ry(e));break;case 4:r=mn,mn=Es(e.stateNode.containerInfo),Ct(t,e),xt(e),mn=r;break;case 12:Ct(t,e),xt(e);break;case 31:Ct(t,e),xt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cs(e,r)));break;case 13:Ct(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(fs=jt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cs(e,r)));break;case 22:c=e.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,U=Fn,H=at;if(Fn=U||c,at=H||S,Ct(t,e),at=H,Fn=U,xt(e),r&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||S||Fn||at||di(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){S=n=t;try{if(u=S.stateNode,c)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{b=S.stateNode;var B=S.memoizedProps.style,N=B!=null&&B.hasOwnProperty("display")?B.display:null;b.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch($){He(S,S.return,$)}}}else if(t.tag===6){if(n===null){S=t;try{S.stateNode.nodeValue=c?"":S.memoizedProps}catch($){He(S,S.return,$)}}}else if(t.tag===18){if(n===null){S=t;try{var j=S.stateNode;c?yg(j,!0):yg(S.stateNode,!1)}catch($){He(S,S.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,cs(e,n))));break;case 19:Ct(t,e),xt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cs(e,r)));break;case 30:break;case 21:break;default:Ct(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(vy(r)){n=r;break}r=r.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var c=n.stateNode,u=ff(e);ss(e,u,c);break;case 5:var h=n.stateNode;n.flags&32&&(Ui(h,""),n.flags&=-33);var b=ff(e);ss(e,b,h);break;case 3:case 4:var S=n.stateNode.containerInfo,U=ff(e);df(e,U,S);break;default:throw Error(l(161))}}catch(H){He(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ry(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ry(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ea(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Sy(e,t.alternate,t),t=t.sibling}function di(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ta(4,t,t.return),di(t);break;case 1:zn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&yy(t,t.return,n),di(t);break;case 27:_o(t.stateNode);case 26:case 5:zn(t,t.return),di(t);break;case 22:t.memoizedState===null&&di(t);break;case 30:di(t);break;default:di(t)}e=e.sibling}}function ta(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,c=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:ta(c,u,n),fo(4,u);break;case 1:if(ta(c,u,n),r=u,c=r.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(U){He(r,r.return,U)}if(r=u,c=r.updateQueue,c!==null){var b=r.stateNode;try{var S=c.shared.hiddenCallbacks;if(S!==null)for(c.shared.hiddenCallbacks=null,c=0;c<S.length;c++)im(S[c],b)}catch(U){He(r,r.return,U)}}n&&h&64&&my(u),ho(u,u.return);break;case 27:by(u);case 26:case 5:ta(c,u,n),n&&r===null&&h&4&&gy(u),ho(u,u.return);break;case 12:ta(c,u,n);break;case 31:ta(c,u,n),n&&h&4&&Ty(c,u);break;case 13:ta(c,u,n),n&&h&4&&Ay(c,u);break;case 22:u.memoizedState===null&&ta(c,u,n),ho(u,u.return);break;case 30:break;default:ta(c,u,n)}t=t.sibling}}function pf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Fr(n))}function mf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fr(e))}function yn(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Oy(e,t,n,r),t=t.sibling}function Oy(e,t,n,r){var c=t.flags;switch(t.tag){case 0:case 11:case 15:yn(e,t,n,r),c&2048&&fo(9,t);break;case 1:yn(e,t,n,r);break;case 3:yn(e,t,n,r),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fr(e)));break;case 12:if(c&2048){yn(e,t,n,r),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,b=u.onPostCommit;typeof b=="function"&&b(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){He(t,t.return,S)}}else yn(e,t,n,r);break;case 31:yn(e,t,n,r);break;case 13:yn(e,t,n,r);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?yn(e,t,n,r):po(e,t):u._visibility&2?yn(e,t,n,r):(u._visibility|=2,$i(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),c&2048&&pf(h,t);break;case 24:yn(e,t,n,r),c&2048&&mf(t.alternate,t);break;default:yn(e,t,n,r)}}function $i(e,t,n,r,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,h=t,b=n,S=r,U=h.flags;switch(h.tag){case 0:case 11:case 15:$i(u,h,b,S,c),fo(8,h);break;case 23:break;case 22:var H=h.stateNode;h.memoizedState!==null?H._visibility&2?$i(u,h,b,S,c):po(u,h):(H._visibility|=2,$i(u,h,b,S,c)),c&&U&2048&&pf(h.alternate,h);break;case 24:$i(u,h,b,S,c),c&&U&2048&&mf(h.alternate,h);break;default:$i(u,h,b,S,c)}t=t.sibling}}function po(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,c=r.flags;switch(r.tag){case 22:po(n,r),c&2048&&pf(r.alternate,r);break;case 24:po(n,r),c&2048&&mf(r.alternate,r);break;default:po(n,r)}t=t.sibling}}var mo=8192;function er(e,t,n){if(e.subtreeFlags&mo)for(e=e.child;e!==null;)Cy(e,t,n),e=e.sibling}function Cy(e,t,n){switch(e.tag){case 26:er(e,t,n),e.flags&mo&&e.memoizedState!==null&&qS(n,mn,e.memoizedState,e.memoizedProps);break;case 5:er(e,t,n);break;case 3:case 4:var r=mn;mn=Es(e.stateNode.containerInfo),er(e,t,n),mn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=mo,mo=16777216,er(e,t,n),mo=r):er(e,t,n));break;default:er(e,t,n)}}function xy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function yo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ut=r,Dy(r,e)}xy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zy(e),e=e.sibling}function zy(e){switch(e.tag){case 0:case 11:case 15:yo(e),e.flags&2048&&Ta(9,e,e.return);break;case 3:yo(e);break;case 12:yo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,us(e)):yo(e);break;default:yo(e)}}function us(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ut=r,Dy(r,e)}xy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ta(8,t,t.return),us(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,us(t));break;default:us(t)}e=e.sibling}}function Dy(e,t){for(;ut!==null;){var n=ut;switch(n.tag){case 0:case 11:case 15:Ta(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Fr(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ut=r;else e:for(n=e;ut!==null;){r=ut;var c=r.sibling,u=r.return;if(_y(r),r===n){ut=null;break e}if(c!==null){c.return=u,ut=c;break e}ut=u}}}var lS={getCacheForType:function(e){var t=pt(et),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return pt(et).controller.signal}},sS=typeof WeakMap=="function"?WeakMap:Map,ze=0,Je=null,ve=null,we=0,je=0,Gt=null,Aa=!1,tr=!1,yf=!1,na=0,Ie=0,ka=0,hi=0,gf=0,Xt=0,nr=0,go=null,zt=null,vf=!1,fs=0,Uy=0,ds=1/0,hs=null,Ra=null,ot=0,Oa=null,ar=null,aa=0,bf=0,wf=null,My=null,vo=0,Sf=null;function Yt(){return(ze&2)!==0&&we!==0?we&-we:L.T!==null?Rf():Qh()}function Ny(){if(Xt===0)if((we&536870912)===0||_e){var e=Sl;Sl<<=1,(Sl&3932160)===0&&(Sl=262144),Xt=e}else Xt=536870912;return e=Bt.current,e!==null&&(e.flags|=32),Xt}function Dt(e,t,n){(e===Je&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(ir(e,0),Ca(e,we,Xt,!1)),Lr(e,n),((ze&2)===0||e!==Je)&&(e===Je&&((ze&2)===0&&(hi|
vendor: 24,201 bytes, lines 9-10
9=n),Ie===4&&Ca(e,we,Xt,!1)),Dn(e))}function jy(e,t,n){if((ze&6)!==0)throw Error(l(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Hr(e,t),c=r?fS(e,t):Ef(e,t,!0),u=r;do{if(c===0){tr&&!r&&Ca(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!cS(n)){c=Ef(e,t,!1),u=!1;continue}if(c===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var b=e;c=go;var S=b.current.memoizedState.isDehydrated;if(S&&(ir(b,h).flags|=256),h=Ef(b,h,!1),h!==2){if(yf&&!S){b.errorRecoveryDisabledLanes|=u,hi|=u,c=4;break e}u=zt,zt=c,u!==null&&(zt===null?zt=u:zt.push.apply(zt,u))}c=h}if(u=!1,c!==2)continue}}if(c===1){ir(e,0),Ca(e,t,0,!0);break}e:{switch(r=e,u=c,u){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ca(r,t,Xt,!Aa);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(c=fs+300-jt(),10<c)){if(Ca(r,t,Xt,!Aa),El(r,0,!0)!==0)break e;aa=t,r.timeoutHandle=hg(Hy.bind(null,r,n,zt,hs,vf,t,Xt,hi,nr,Aa,u,"Throttled",-0,0),c);break e}Hy(r,n,zt,hs,vf,t,Xt,hi,nr,Aa,u,null,-0,0)}}break}while(!0);Dn(e)}function Hy(e,t,n,r,c,u,h,b,S,U,H,B,N,j){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jn},Cy(t,u,B);var $=(u&62914560)===u?fs-jt():(u&4194048)===u?Uy-jt():0;if($=VS(B,$),$!==null){aa=u,e.cancelPendingCommit=$(Yy.bind(null,e,t,u,n,r,c,h,b,S,H,B,null,N,j)),Ca(e,u,h,!U);return}}Yy(e,t,u,n,r,c,h,b,S)}function cS(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var c=n[r],u=c.getSnapshot;c=c.value;try{if(!Kt(u(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ca(e,t,n,r){t&=~gf,t&=~hi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var c=t;0<c;){var u=31-Lt(c),h=1<<u;r[u]=-1,c&=~h}n!==0&&Vh(e,n,t)}function ps(){return(ze&6)===0?(bo(0),!1):!0}function _f(){if(ve!==null){if(je===0)var e=ve.return;else e=ve,qn=ii=null,Hu(e),Pi=null,eo=0,e=ve;for(;e!==null;)py(e.alternate,e),e=e.return;ve=null}}function ir(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,CS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),aa=0,_f(),Je=e,ve=n=Xn(e.current,null),we=t,je=0,Gt=null,Aa=!1,tr=Hr(e,t),yf=!1,nr=Xt=gf=hi=ka=Ie=0,zt=go=null,vf=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var c=31-Lt(r),u=1<<c;t|=e[c],r&=~u}return na=t,Nl(),n}function Ly(e,t){de=null,L.H=so,t===Vi||t===Gl?(t=em(),je=3):t===Au?(t=em(),je=4):je=t===$u?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gt=t,ve===null&&(Ie=1,as(e,$t(t,e.current)))}function Ky(){var e=Bt.current;return e===null?!0:(we&4194048)===we?an===null:(we&62914560)===we||(we&536870912)!==0?e===an:!1}function Zy(){var e=L.H;return L.H=so,e===null?so:e}function By(){var e=L.A;return L.A=lS,e}function ms(){Ie=4,Aa||(we&4194048)!==we&&Bt.current!==null||(tr=!0),(ka&134217727)===0&&(hi&134217727)===0||Je===null||Ca(Je,we,Xt,!1)}function Ef(e,t,n){var r=ze;ze|=2;var c=Zy(),u=By();(Je!==e||we!==t)&&(hs=null,ir(e,t)),t=!1;var h=Ie;e:do try{if(je!==0&&ve!==null){var b=ve,S=Gt;switch(je){case 8:_f(),h=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(t=!0);var U=je;if(je=0,Gt=null,rr(e,b,S,U),n&&tr){h=0;break e}break;default:U=je,je=0,Gt=null,rr(e,b,S,U)}}uS(),h=Ie;break}catch(H){Ly(e,H)}while(!0);return t&&e.shellSuspendCounter++,qn=ii=null,ze=r,L.H=c,L.A=u,ve===null&&(Je=null,we=0,Nl()),h}function uS(){for(;ve!==null;)Jy(ve)}function fS(e,t){var n=ze;ze|=2;var r=Zy(),c=By();Je!==e||we!==t?(hs=null,ds=jt()+500,ir(e,t)):tr=Hr(e,t);e:do try{if(je!==0&&ve!==null){t=ve;var u=Gt;t:switch(je){case 1:je=0,Gt=null,rr(e,t,u,1);break;case 2:case 9:if(Fp(u)){je=0,Gt=null,Gy(t);break}t=function(){je!==2&&je!==9||Je!==e||(je=7),Dn(e)},u.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Fp(u)?(je=0,Gt=null,Gy(t)):(je=0,Gt=null,rr(e,t,u,7));break;case 5:var h=null;switch(ve.tag){case 26:h=ve.memoizedState;case 5:case 27:var b=ve;if(h?Og(h):b.stateNode.complete){je=0,Gt=null;var S=b.sibling;if(S!==null)ve=S;else{var U=b.return;U!==null?(ve=U,ys(U)):ve=null}break t}}je=0,Gt=null,rr(e,t,u,5);break;case 6:je=0,Gt=null,rr(e,t,u,6);break;case 8:_f(),Ie=6;break e;default:throw Error(l(462))}}dS();break}catch(H){Ly(e,H)}while(!0);return qn=ii=null,L.H=r,L.A=c,ze=n,ve!==null?0:(Je=null,we=0,Nl(),Ie)}function dS(){for(;ve!==null&&!Nb();)Jy(ve)}function Jy(e){var t=dy(e.alternate,e,na);e.memoizedProps=e.pendingProps,t===null?ys(e):ve=t}function Gy(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=oy(n,t,t.pendingProps,t.type,void 0,we);break;case 11:t=oy(n,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:Hu(t);default:py(n,t),t=ve=Bp(t,na),t=dy(n,t,na)}e.memoizedProps=e.pendingProps,t===null?ys(e):ve=t}function rr(e,t,n,r){qn=ii=null,Hu(t),Pi=null,eo=0;var c=t.return;try{if(eS(e,c,t,n,we)){Ie=1,as(e,$t(n,e.current)),ve=null;return}}catch(u){if(c!==null)throw ve=c,u;Ie=1,as(e,$t(n,e.current)),ve=null;return}t.flags&32768?(_e||r===1?e=!0:tr||(we&536870912)!==0?e=!1:(Aa=e=!0,(r===2||r===9||r===3||r===6)&&(r=Bt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Xy(t,e)):ys(t)}function ys(e){var t=e;do{if((t.flags&32768)!==0){Xy(t,Aa);return}e=t.return;var n=aS(t.alternate,t,na);if(n!==null){ve=n;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Ie===0&&(Ie=5)}function Xy(e,t){do{var n=iS(e.alternate,e);if(n!==null){n.flags&=32767,ve=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=n}while(e!==null);Ie=6,ve=null}function Yy(e,t,n,r,c,u,h,b,S){e.cancelPendingCommit=null;do gs();while(ot!==0);if((ze&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(u=t.lanes|t.childLanes,u|=uu,Yb(e,n,u,h,b,S),e===Je&&(ve=Je=null,we=0),ar=t,Oa=e,aa=n,bf=u,wf=c,My=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yS(bl,function(){return Qy(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=L.T,L.T=null,c=W.p,W.p=2,h=ze,ze|=4;try{rS(e,t,n)}finally{ze=h,W.p=c,L.T=r}}ot=1,qy(),Vy(),Py()}}function qy(){if(ot===1){ot=0;var e=Oa,t=ar,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var r=W.p;W.p=2;var c=ze;ze|=4;try{ky(t,e);var u=Nf,h=Dp(e.containerInfo),b=u.focusedElem,S=u.selectionRange;if(h!==b&&b&&b.ownerDocument&&zp(b.ownerDocument.documentElement,b)){if(S!==null&&ru(b)){var U=S.start,H=S.end;if(H===void 0&&(H=U),"selectionStart"in b)b.selectionStart=U,b.selectionEnd=Math.min(H,b.value.length);else{var B=b.ownerDocument||document,N=B&&B.defaultView||window;if(N.getSelection){var j=N.getSelection(),$=b.textContent.length,le=Math.min(S.start,$),Be=S.end===void 0?le:Math.min(S.end,$);!j.extend&&le>Be&&(h=Be,Be=le,le=h);var C=xp(b,le),E=xp(b,Be);if(C&&E&&(j.rangeCount!==1||j.anchorNode!==C.node||j.anchorOffset!==C.offset||j.focusNode!==E.node||j.focusOffset!==E.offset)){var D=B.createRange();D.setStart(C.node,C.offset),j.removeAllRanges(),le>Be?(j.addRange(D),j.extend(E.node,E.offset)):(D.setEnd(E.node,E.offset),j.addRange(D))}}}}for(B=[],j=b;j=j.parentNode;)j.nodeType===1&&B.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<B.length;b++){var K=B[b];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Cs=!!Mf,Nf=Mf=null}finally{ze=c,W.p=r,L.T=n}}e.current=t,ot=2}}function Vy(){if(ot===2){ot=0;var e=Oa,t=ar,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var r=W.p;W.p=2;var c=ze;ze|=4;try{Sy(e,t.alternate,t)}finally{ze=c,W.p=r,L.T=n}}ot=3}}function Py(){if(ot===4||ot===3){ot=0,jb();var e=Oa,t=ar,n=aa,r=My;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,ar=Oa=null,Wy(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Ra=null),Zc(n),t=t.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(jr,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=L.T,c=W.p,W.p=2,L.T=null;try{for(var u=e.onRecoverableError,h=0;h<r.length;h++){var b=r[h];u(b.value,{componentStack:b.stack})}}finally{L.T=t,W.p=c}}(aa&3)!==0&&gs(),Dn(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Sf?vo++:(vo=0,Sf=e):vo=0,bo(0)}}function Wy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fr(t)))}function gs(){return qy(),Vy(),Py(),Qy()}function Qy(){if(ot!==5)return!1;var e=Oa,t=bf;bf=0;var n=Zc(aa),r=L.T,c=W.p;try{W.p=32>n?32:n,L.T=null,n=wf,wf=null;var u=Oa,h=aa;if(ot=0,ar=Oa=null,aa=0,(ze&6)!==0)throw Error(l(331));var b=ze;if(ze|=4,zy(u.current),Oy(u,u.current,h,n),ze=b,bo(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(jr,u)}catch{}return!0}finally{W.p=c,L.T=r,Wy(e,t)}}function Iy(e,t,n){t=$t(n,t),t=Fu(e.stateNode,t,2),e=Sa(e,t,2),e!==null&&(Lr(e,2),Dn(e))}function He(e,t,n){if(e.tag===3)Iy(e,e,n);else for(;t!==null;){if(t.tag===3){Iy(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ra===null||!Ra.has(r))){e=$t(n,e),n=Fm(2),r=Sa(t,n,2),r!==null&&($m(n,r,t,e),Lr(r,2),Dn(r));break}}t=t.return}}function Tf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sS;var c=new Set;r.set(t,c)}else c=r.get(t),c===void 0&&(c=new Set,r.set(t,c));c.has(n)||(yf=!0,c.add(n),e=hS.bind(null,e,t,n),t.then(e,e))}function hS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Je===e&&(we&n)===n&&(Ie===4||Ie===3&&(we&62914560)===we&&300>jt()-fs?(ze&2)===0&&ir(e,0):gf|=n,nr===we&&(nr=0)),Dn(e)}function Fy(e,t){t===0&&(t=qh()),e=ti(e,t),e!==null&&(Lr(e,t),Dn(e))}function pS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fy(e,n)}function mS(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}r!==null&&r.delete(t),Fy(e,n)}function yS(e,t){return jc(e,t)}var vs=null,or=null,Af=!1,bs=!1,kf=!1,xa=0;function Dn(e){e!==or&&e.next===null&&(or===null?vs=or=e:or=or.next=e),bs=!0,Af||(Af=!0,vS())}function bo(e,t){if(!kf&&bs){kf=!0;do for(var n=!1,r=vs;r!==null;){if(e!==0){var c=r.pendingLanes;if(c===0)var u=0;else{var h=r.suspendedLanes,b=r.pingedLanes;u=(1<<31-Lt(42|e)+1)-1,u&=c&~(h&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,ng(r,u))}else u=we,u=El(r,r===Je?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||Hr(r,u)||(n=!0,ng(r,u));r=r.next}while(n);kf=!1}}function gS(){$y()}function $y(){bs=Af=!1;var e=0;xa!==0&&OS()&&(e=xa);for(var t=jt(),n=null,r=vs;r!==null;){var c=r.next,u=eg(r,t);u===0?(r.next=null,n===null?vs=c:n.next=c,c===null&&(or=n)):(n=r,(e!==0||(u&3)!==0)&&(bs=!0)),r=c}ot!==0&&ot!==5||bo(e),xa!==0&&(xa=0)}function eg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-Lt(u),b=1<<h,S=c[h];S===-1?((b&n)===0||(b&r)!==0)&&(c[h]=Xb(b,t)):S<=t&&(e.expiredLanes|=b),u&=~b}if(t=Je,n=we,n=El(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Hc(r),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Hr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Hc(r),Zc(n)){case 2:case 8:n=Xh;break;case 32:n=bl;break;case 268435456:n=Yh;break;default:n=bl}return r=tg.bind(null,e),n=jc(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Hc(r),e.callbackPriority=2,e.callbackNode=null,2}function tg(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(gs()&&e.callbackNode!==n)return null;var r=we;return r=El(e,e===Je?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(jy(e,r,t),eg(e,jt()),e.callbackNode!=null&&e.callbackNode===n?tg.bind(null,e):null)}function ng(e,t){if(gs())return null;jy(e,t,!0)}function vS(){xS(function(){(ze&6)!==0?jc(Gh,gS):$y()})}function Rf(){if(xa===0){var e=Yi;e===0&&(e=wl,wl<<=1,(wl&261888)===0&&(wl=256)),xa=e}return xa}function ag(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rl(""+e)}function ig(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bS(e,t,n,r,c){if(t==="submit"&&n&&n.stateNode===c){var u=ag((c[kt]||null).action),h=r.submitter;h&&(t=(t=h[kt]||null)?ag(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var b=new zl("action","action",null,r,c);e.push({event:b,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(xa!==0){var S=h?ig(c,h):new FormData(c);qu(n,{pending:!0,data:S,method:c.method,action:u},null,S)}}else typeof u=="function"&&(b.preventDefault(),S=h?ig(c,h):new FormData(c),qu(n,{pending:!0,data:S,method:c.method,action:u},u,S))},currentTarget:c}]})}}for(var Of=0;Of<cu.length;Of++){var Cf=cu[Of],wS=Cf.toLowerCase(),SS=Cf[0].toUpperCase()+Cf.slice(1);pn(wS,"on"+SS)}pn(Np,"onAnimationEnd"),pn(jp,"onAnimationIteration"),pn(Hp,"onAnimationStart"),pn("dblclick","onDoubleClick"),pn("focusin","onFocus"),pn("focusout","onBlur"),pn(Hw,"onTransitionRun"),pn(Lw,"onTransitionStart"),pn(Kw,"onTransitionCancel"),pn(Lp,"onTransitionEnd"),zi("onMouseEnter",["mouseout","mouseover"]),zi("onMouseLeave",["mouseout","mouseover"]),zi("onPointerEnter",["pointerout","pointerover"]),zi("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wo="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(" "),_S=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wo));function rg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],c=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var h=r.length-1;0<=h;h--){var b=r[h],S=b.instance,U=b.currentTarget;if(b=b.listener,S!==u&&c.isPropagationStopped())break e;u=b,c.currentTarget=U;try{u(c)}catch(H){Ml(H)}c.currentTarget=null,u=S}else for(h=0;h<r.length;h++){if(b=r[h],S=b.instance,U=b.currentTarget,b=b.listener,S!==u&&c.isPropagationStopped())break e;u=b,c.currentTarget=U;try{u(c)}catch(H){Ml(H)}c.currentTarget=null,u=S}}}}function be(e,t){var n=t[Bc];n===void 0&&(n=t[Bc]=new Set);var r=e+"__bubble";n.has(r)||(og(t,e,2,!1),n.add(r))}function xf(e,t,n){var r=0;t&&(r|=4),og(n,e,r,t)}var ws="_reactListening"+Math.random().toString(36).slice(2);function zf(e){if(!e[ws]){e[ws]=!0,$h.forEach(function(n){n!=="selectionchange"&&(_S.has(n)||xf(n,!1,e),xf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ws]||(t[ws]=!0,xf("selectionchange",!1,t))}}function og(e,t,n,r){switch(Ng(t)){case 2:var c=QS;break;case 8:c=IS;break;default:c=qf}n=c.bind(null,t,n,e),c=void 0,!Qc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),r?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Df(e,t,n,r,c){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var h=r.tag;if(h===3||h===4){var b=r.stateNode.containerInfo;if(b===c)break;if(h===4)for(h=r.return;h!==null;){var S=h.tag;if((S===3||S===4)&&h.stateNode.containerInfo===c)return;h=h.return}for(;b!==null;){if(h=Oi(b),h===null)return;if(S=h.tag,S===5||S===6||S===26||S===27){r=u=h;continue e}b=b.parentNode}}r=r.return}fp(function(){var U=u,H=Pc(n),B=[];e:{var N=Kp.get(e);if(N!==void 0){var j=zl,$=e;switch(e){case"keypress":if(Cl(n)===0)break e;case"keydown":case"keyup":j=mw;break;case"focusin":$="focus",j=eu;break;case"focusout":$="blur",j=eu;break;case"beforeblur":case"afterblur":j=eu;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":j=pp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=aw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=vw;break;case Np:case jp:case Hp:j=ow;break;case Lp:j=ww;break;case"scroll":case"scrollend":j=tw;break;case"wheel":j=_w;break;case"copy":case"cut":case"paste":j=sw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=yp;break;case"toggle":case"beforetoggle":j=Tw}var le=(t&4)!==0,Be=!le&&(e==="scroll"||e==="scrollend"),C=le?N!==null?N+"Capture":null:N;le=[];for(var E=U,D;E!==null;){var K=E;if(D=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||D===null||C===null||(K=Br(E,C),K!=null&&le.push(So(E,K,D))),Be)break;E=E.return}0<le.length&&(N=new j(N,$,null,n,H),B.push({event:N,listeners:le}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",N&&n!==Vc&&($=n.relatedTarget||n.fromElement)&&(Oi($)||$[Ri]))break e;if((j||N)&&(N=H.window===H?H:(N=H.ownerDocument)?N.defaultView||N.parentWindow:window,j?($=n.relatedTarget||n.toElement,j=U,$=$?Oi($):null,$!==null&&(Be=f($),le=$.tag,$!==Be||le!==5&&le!==27&&le!==6)&&($=null)):(j=null,$=U),j!==$)){if(le=pp,K="onMouseLeave",C="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(le=yp,K="onPointerLeave",C="onPointerEnter",E="pointer"),Be=j==null?N:Zr(j),D=$==null?N:Zr($),N=new le(K,E+"leave",j,n,H),N.target=Be,N.relatedTarget=D,K=null,Oi(H)===U&&(le=new le(C,E+"enter",$,n,H),le.target=D,le.relatedTarget=Be,K=le),Be=K,j&&$)t:{for(le=ES,C=j,E=$,D=0,K=C;K;K=le(K))D++;K=0;for(var ie=E;ie;ie=le(ie))K++;for(;0<D-K;)C=le(C),D--;for(;0<K-D;)E=le(E),K--;for(;D--;){if(C===E||E!==null&&C===E.alternate){le=C;break t}C=le(C),E=le(E)}le=null}else le=null;j!==null&&lg(B,N,j,le,!1),$!==null&&Be!==null&&lg(B,Be,$,le,!0)}}e:{if(N=U?Zr(U):window,j=N.nodeName&&N.nodeName.toLowerCase(),j==="select"||j==="input"&&N.type==="file")var ke=Tp;else if(_p(N))if(Ap)ke=Mw;else{ke=Dw;var te=zw}else j=N.nodeName,!j||j.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?U&&qc(U.elementType)&&(ke=Tp):ke=Uw;if(ke&&(ke=ke(e,U))){Ep(B,ke,n,H);break e}te&&te(e,N,U),e==="focusout"&&U&&N.type==="number"&&U.memoizedProps.value!=null&&Yc(N,"number",N.value)}switch(te=U?Zr(U):window,e){case"focusin":(_p(te)||te.contentEditable==="true")&&(Hi=te,ou=U,Wr=null);break;case"focusout":Wr=ou=Hi=null;break;case"mousedown":lu=!0;break;case"contextmenu":case"mouseup":case"dragend":lu=!1,Up(B,n,H);break;case"selectionchange":if(jw)break;case"keydown":case"keyup":Up(B,n,H)}var pe;if(nu)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else ji?wp(e,n)&&(Se="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Se="onCompositionStart");Se&&(gp&&n.locale!=="ko"&&(ji||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&ji&&(pe=dp()):(pa=H,Ic="value"in pa?pa.value:pa.textContent,ji=!0)),te=Ss(U,Se),0<te.length&&(Se=new mp(Se,e,null,n,H),B.push({event:Se,listeners:te}),pe?Se.data=pe:(pe=Sp(n),pe!==null&&(Se.data=pe)))),(pe=kw?Rw(e,n):Ow(e,n))&&(Se=Ss(U,"onBeforeInput"),0<Se.length&&(te=new mp("onBeforeInput","beforeinput",null,n,H),B.push({event:te,listeners:Se}),te.data=pe)),bS(B,e,U,n,H)}rg(B,t)})}function So(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ss(e,t){for(var n=t+"Capture",r=[];e!==null;){var c=e,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=Br(e,n),c!=null&&r.unshift(So(e,c,u)),c=Br(e,t),c!=null&&r.push(So(e,c,u))),e.tag===3)return r;e=e.return}return[]}function ES(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lg(e,t,n,r,c){for(var u=t._reactName,h=[];n!==null&&n!==r;){var b=n,S=b.alternate,U=b.stateNode;if(b=b.tag,S!==null&&S===r)break;b!==5&&b!==26&&b!==27||U===null||(S=U,c?(U=Br(n,u),U!=null&&h.unshift(So(n,U,S))):c||(U=Br(n,u),U!=null&&h.push(So(n,U,S)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var TS=/\r\n?/g,AS=/\u0000|\uFFFD/g;function sg(e){return(typeof e=="string"?e:""+e).replace(TS,` 10`).replace(AS,"")}function cg(e,t){return t=sg(t),sg(e)===t}function Ze(e,t,n,r,c,u){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ui(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ui(e,""+r);break;case"className":Al(e,"class",r);break;case"tabIndex":Al(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Al(e,n,r);break;case"style":cp(e,r,u);break;case"data":if(t!=="object"){Al(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Rl(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&Ze(e,t,"name",c.name,c,null),Ze(e,t,"formEncType",c.formEncType,c,null),Ze(e,t,"formMethod",c.formMethod,c,null),Ze(e,t,"formTarget",c.formTarget,c,null)):(Ze(e,t,"encType",c.encType,c,null),Ze(e,t,"method",c.method,c,null),Ze(e,t,"target",c.target,c,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Rl(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Jn);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(n=r.__html,n!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Rl(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":be("beforetoggle",e),be("toggle",e),Tl(e,"popover",r);break;case"xlinkActuate":Bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Bn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Bn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Bn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Bn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Tl(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=$b.get(n)||n,Tl(e,n,r))}}function Uf(e,t,n,r,c,u){switch(n){case"style":cp(e,r,u);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(n=r.__html,n!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Ui(e,r):(typeof r=="number"||typeof r=="bigint")&&Ui(e,""+r);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ep.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),u=e[kt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,c),typeof r=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,c);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):Tl(e,n,r)}}}function yt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var r=!1,c=!1,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":r=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ze(e,t,u,h,n,null)}}c&&Ze(e,t,"srcSet",n.srcSet,n,null),r&&Ze(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var b=u=h=c=null,S=null,U=null;for(r in n)if(n.hasOwnProperty(r)){var H=n[r];if(H!=null)switch(r){case"name":c=H;break;case"type":h=H;break;case"checked":S=H;break;case"defaultChecked":U=H;break;case"value":u=H;break;case"defaultValue":b=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(l(137,t));break;default:Ze(e,t,r,H,n,null)}}rp(e,u,b,S,U,h,c,!1);return;case"select":be("invalid",e),r=h=u=null;for(c in n)if(n.hasOwnProperty(c)&&(b=n[c],b!=null))switch(c){case"value":u=b;break;case"defaultValue":h=b;break;case"multiple":r=b;default:Ze(e,t,c,b,n,null)}t=u,n=h,e.multiple=!!r,t!=null?Di(e,!!r,t,!1):n!=null&&Di(e,!!r,n,!0);return;case"textarea":be("invalid",e),u=c=r=null;for(h in n)if(n.hasOwnProperty(h)&&(b=n[h],b!=null))switch(h){case"value":r=b;break;case"defaultValue":c=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(l(91));break;default:Ze(e,t,h,b,n,null)}lp(e,r,c,u);return;case"option":for(S in n)n.hasOwnProperty(S)&&(r=n[S],r!=null)&&(S==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ze(e,t,S,r,n,null));return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(r=0;r<wo.length;r++)be(wo[r],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in n)if(n.hasOwnProperty(U)&&(r=n[U],r!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ze(e,t,U,r,n,null)}return;default:if(qc(t)){for(H in n)n.hasOwnProperty(H)&&(r=n[H],r!==void 0&&Uf(e,t,H,r,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(r=n[b],r!=null&&Ze(e,t,b,r,n,null))}function kS(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,h=null,b=null,S=null,U=null,H=null;for(j in n){var B=n[j];if(n.hasOwnProperty(j)&&B!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":S=B;default:r.hasOwnProperty(j)||Ze(e,t,j,null,r,B)}}for(var N in r){var j=r[N];if(B=n[N],r.hasOwnProperty(N)&&(j!=null||B!=null))switch(N){case"type":u=j;break;case"name":c=j;break;case"checked":U=j;break;case"defaultChecked":H=j;break;case"value":h=j;break;case"defaultValue":b=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(137,t));break;default:j!==B&&Ze(e,t,N,j,r,B)}}Xc(e,h,b,S,U,H,u,c);return;case"select":j=h=b=N=null;for(u in n)if(S=n[u],n.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":j=S;default:r.hasOwnProperty(u)||Ze(e,t,u,null,r,S)}for(c in r)if(u=r[c],S=n[c],r.hasOwnProperty(c)&&(u!=null||S!=null))switch(c){case"value":N=u;break;case"defaultValue":b=u;break;case"multiple":h=u;default:u!==S&&Ze(e,t,c,u,r,S)}t=b,n=h,r=j,N!=null?Di(e,!!n,N,!1):!!r!=!!n&&(t!=null?Di(e,!!n,t,!0):Di(e,!!n,n?[]:"",!1));return;case"textarea":j=N=null;for(b in n)if(c=n[b],n.hasOwnProperty(b)&&c!=null&&!r.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ze(e,t,b,null,r,c)}for(h in r)if(c=r[h],u=n[h],r.hasOwnProperty(h)&&(c!=null||u!=null))switch(h){case"value":N=c;break;case"defaultValue":j=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==u&&Ze(e,t,h,c,r,u)}op(e,N,j);return;case"option":for(var $ in n)N=n[$],n.hasOwnProperty($)&&N!=null&&!r.hasOwnProperty($)&&($==="selected"?e.selected=!1:Ze(e,t,$,null,r,N));for(S in r)N=r[S],j=n[S],r.hasOwnProperty(S)&&N!==j&&(N!=null||j!=null)&&(S==="selected"?e.selected=N&&t
vendor: 5,126 bytes, line 10
10ypeof N!="function"&&typeof N!="symbol":Ze(e,t,S,N,r,j));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var le in n)N=n[le],n.hasOwnProperty(le)&&N!=null&&!r.hasOwnProperty(le)&&Ze(e,t,le,null,r,N);for(U in r)if(N=r[U],j=n[U],r.hasOwnProperty(U)&&N!==j&&(N!=null||j!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(l(137,t));break;default:Ze(e,t,U,N,r,j)}return;default:if(qc(t)){for(var Be in n)N=n[Be],n.hasOwnProperty(Be)&&N!==void 0&&!r.hasOwnProperty(Be)&&Uf(e,t,Be,void 0,r,N);for(H in r)N=r[H],j=n[H],!r.hasOwnProperty(H)||N===j||N===void 0&&j===void 0||Uf(e,t,H,N,r,j);return}}for(var C in n)N=n[C],n.hasOwnProperty(C)&&N!=null&&!r.hasOwnProperty(C)&&Ze(e,t,C,null,r,N);for(B in r)N=r[B],j=n[B],!r.hasOwnProperty(B)||N===j||N==null&&j==null||Ze(e,t,B,N,r,j)}function ug(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function RS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var c=n[r],u=c.transferSize,h=c.initiatorType,b=c.duration;if(u&&b&&ug(h)){for(h=0,b=c.responseEnd,r+=1;r<n.length;r++){var S=n[r],U=S.startTime;if(U>b)break;var H=S.transferSize,B=S.initiatorType;H&&ug(B)&&(S=S.responseEnd,h+=H*(S<b?1:(b-U)/(S-U)))}if(--r,t+=8*(u+h)/(c.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mf=null,Nf=null;function _s(e){return e.nodeType===9?e:e.ownerDocument}function fg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function dg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function jf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hf=null;function OS(){var e=window.event;return e&&e.type==="popstate"?e===Hf?!1:(Hf=e,!0):(Hf=null,!1)}var hg=typeof setTimeout=="function"?setTimeout:void 0,CS=typeof clearTimeout=="function"?clearTimeout:void 0,pg=typeof Promise=="function"?Promise:void 0,xS=typeof queueMicrotask=="function"?queueMicrotask:typeof pg<"u"?function(e){return pg.resolve(null).then(e).catch(zS)}:hg;function zS(e){setTimeout(function(){throw e})}function za(e){return e==="head"}function mg(e,t){var n=t,r=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(c),ur(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")_o(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,_o(n);for(var u=n.firstChild;u;){var h=u.nextSibling,b=u.nodeName;u[Kr]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&_o(e.ownerDocument.body);n=c}while(n);ur(t)}function yg(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function Lf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Lf(n),Jc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function DS(e,t,n,r){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Kr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=rn(e.nextSibling),e===null)break}return null}function US(e,t,n){if(t==="")return null;for(;
vendor: 5,924 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=rn(e.nextSibling),e===null))return null;return e}function gg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=rn(e.nextSibling),e===null))return null;return e}function Kf(e){return e.data==="$?"||e.data==="$~"}function Zf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function MS(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bf=null;function vg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return rn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function bg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function wg(e,t,n){switch(t=_s(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function _o(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Jc(e)}var on=new Map,Sg=new Set;function Es(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ia=W.d;W.d={f:NS,r:jS,D:HS,C:LS,L:KS,m:ZS,X:JS,S:BS,M:GS};function NS(){var e=ia.f(),t=ps();return e||t}function jS(e){var t=Ci(e);t!==null&&t.tag===5&&t.type==="form"?Lm(t):ia.r(e)}var lr=typeof document>"u"?null:document;function _g(e,t,n){var r=lr;if(r&&typeof t=="string"&&t){var c=It(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),Sg.has(c)||(Sg.add(c),e={rel:e,crossOrigin:n,href:t},r.querySelector(c)===null&&(t=r.createElement("link"),yt(t,"link",e),ct(t),r.head.appendChild(t)))}}function HS(e){ia.D(e),_g("dns-prefetch",e,null)}function LS(e,t){ia.C(e,t),_g("preconnect",e,t)}function KS(e,t,n){ia.L(e,t,n);var r=lr;if(r&&e&&t){var c='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+It(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+It(n.imageSizes)+'"]')):c+='[href="'+It(e)+'"]';var u=c;switch(t){case"style":u=sr(e);break;case"script":u=cr(e)}on.has(u)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),on.set(u,e),r.querySelector(c)!==null||t==="style"&&r.querySelector(Eo(u))||t==="script"&&r.querySelector(To(u))||(t=r.createElement("link"),yt(t,"link",e),ct(t),r.head.appendChild(t)))}}function ZS(e,t){ia.m(e,t);var n=lr;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+It(r)+'"][href="'+It(e)+'"]',u=c;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=cr(e)}if(!on.has(u)&&(e=v({rel:"modulepreload",href:e},t),on.set(u,e),n.querySelector(c)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(To(u)))return}r=n.createElement("link"),yt(r,"link",e),ct(r),n.head.appendChild(r)}}}function BS(e,t,n){ia.S(e,t,n);var r=lr;if(r&&e){var c=xi(r).hoistableStyles,u=sr(e);t=t||"default";var h=c.get(u);if(!h){var b={loading:0,preload:null};if(h=r.querySelector(Eo(u)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=on.get(u))&&Jf(e,n);var S=h=r.createElement("link");ct(S),yt(S,"link",e),S._p=new Promise(function(U,H){S.onload=U,S.onerror=H}),S.addEventListener("load",function(){b.loading|=1}),S.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Ts(h,t,r)}h={type:"stylesheet",instance:h,count:1,state:b},c.set(u,h)}}}function JS(e,t){ia.X(e,t);var n=lr;if(n&&e){var r=xi(n).hoistableScripts,c=cr(e),u=r.get(c);u||(u=n.querySelector(To(c)),u||(e=v({src:e,async:!0},t),(t=on.get(c))&&Gf(e,t),u=n.createElement("script"),ct(u),yt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(c,u))}}function GS(e,t){ia.M(e,t);var n=lr;if(n&&e){var r=xi(n).hoistableScripts,c=cr(e),u=r.get(c);u||(u=n.querySelector(To(c)),u||(e=v({src:e,async:!0,type:"module"},t),(t=on.get(c))&&Gf(e,t),u=n.createElement("script"),ct(u),yt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(c,u))}}function Eg(e,t,n,r){var c=(c=I.current)?Es(c):null;if(!c)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=sr(n.href),n=xi(c).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=sr(n.href);var u=xi(c).hoistableStyles,h=u.get(e);if(h||(c=c.ownerDocument||c,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=c.querySelector(Eo(e)))&&!u._p&&(h.instance=u,h.state.loading=5),on.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},on.set(e,n),u||XS(c,e,n,h.state))),t&&r===null)throw Error(l(528,""));return h}if(t&&r!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?
vendor: 4,261 bytes, line 10
10(t=cr(n),n=xi(c).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function sr(e){return'href="'+It(e)+'"'}function Eo(e){return'link[rel="stylesheet"]['+e+"]"}function Tg(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function XS(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),yt(t,"link",n),ct(t),e.head.appendChild(t))}function cr(e){return'[src="'+It(e)+'"]'}function To(e){return"script[async]"+e}function Ag(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+It(n.href)+'"]');if(r)return t.instance=r,ct(r),r;var c=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ct(r),yt(r,"style",c),Ts(r,n.precedence,e),t.instance=r;case"stylesheet":c=sr(n.href);var u=e.querySelector(Eo(c));if(u)return t.state.loading|=4,t.instance=u,ct(u),u;r=Tg(n),(c=on.get(c))&&Jf(r,c),u=(e.ownerDocument||e).createElement("link"),ct(u);var h=u;return h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),yt(u,"link",r),t.state.loading|=4,Ts(u,n.precedence,e),t.instance=u;case"script":return u=cr(n.src),(c=e.querySelector(To(u)))?(t.instance=c,ct(c),c):(r=n,(c=on.get(u))&&(r=v({},n),Gf(r,c)),e=e.ownerDocument||e,c=e.createElement("script"),ct(c),yt(c,"link",r),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Ts(r,n.precedence,e));return t.instance}function Ts(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=r.length?r[r.length-1]:null,u=c,h=0;h<r.length;h++){var b=r[h];if(b.dataset.precedence===t)u=b;else if(u!==c)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Jf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Gf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var As=null;function kg(e,t,n){if(As===null){var r=new Map,c=As=new Map;c.set(n,r)}else c=As,r=c.get(n),r||(r=new Map,c.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var u=n[c];if(!(u[Kr]||u[dt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var b=r.get(h);b?b.push(u):r.set(h,[u])}}return r}function Rg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function YS(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Og(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qS(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=sr(r.href),u=t.querySelector(Eo(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ks.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,ct(u);return}u=t.ownerDocument||t,r=Tg(r),(c=on.get(c))&&Jf(r,c),u=u.createElement("link"),ct(u);var h=u;h._p=new Promise(function(b,S){h.onload=b,h.onerror=S}),yt(u,"link",r),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),
vendor: 4,218 bytes, line 10
10(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ks.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Xf=0;function VS(e,t){return e.stylesheets&&e.count===0&&Os(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Os(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*RS());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Os(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(c)}}:null}function ks(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Os(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Rs=null;function Os(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rs=new Map,t.forEach(PS,e),Rs=null,ks.call(e))}function PS(e,t){if(!(t.state.loading&4)){var n=Rs.get(e);if(n)var r=n.get(null);else{n=new Map,Rs.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var h=c[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),r=h)}r&&n.set(null,r)}c=t.instance,h=c.getAttribute("data-precedence"),u=n.get(h)||r,u===r&&n.set(null,c),n.set(h,c),this.count++,r=ks.bind(this),c.addEventListener("load",r),c.addEventListener("error",r),u?u.parentNode.insertBefore(c,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Ao={$$typeof:Z,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function WS(e,t,n,r,c,u,h,b,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Lc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lc(0),this.hiddenUpdates=Lc(null),this.identifierPrefix=r,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Cg(e,t,n,r,c,u,h,b,S,U,H,B){return e=new WS(e,t,n,h,S,U,H,B,b),t=1,u===!0&&(t|=24),u=Zt(3,null,null,t),e.current=u,u.stateNode=e,t=_u(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:r,isDehydrated:n,cache:t},ku(u),e}function xg(e){return e?(e=Zi,e):Zi}function zg(e,t,n,r,c,u){c=xg(c),r.context===null?r.context=c:r.pendingContext=c,r=wa(t),r.payload={element:n},u=u===void 0?null:u,u!==null&&(r.callback=u),n=Sa(e,r,t),n!==null&&(Dt(n,e,t),no(n,e,t))}function Dg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yf(e,t){Dg(e,t),(e=e.alternate)&&Dg(e,t)}function Ug(e){if(e.tag===13||e.tag===31){var t=ti(e,67108864);t!==null&&Dt(t,e,67108864),Yf(e,67108864)}}function Mg(e){if(e.tag===13||e.tag===31){var t=Yt();t=Kc(t);var n=ti(e,t);n!==null&&Dt(n,e,t),Yf(e,t)}}var Cs=!0;function QS(e,t,n,r){var c=L.T;L.T=null;var u=W.p;try{W.p=2,qf(e,t,n,r)}finally{W.p=u,L.T=c}}function IS(e,t,n,r){var c=L.T;L.T=null;var u=W.p;try{W.p=8,qf(e,t,n,r)}finally{W.p=u,L.T=c}}function qf(e,t,n,r){if(Cs){var c=Vf(r);if(c===null)Df(e,t,r,xs,n),jg(e,r);else if($S(c,e,t,n,r))r.stopPropagation();else if(jg(e,r),t&4&&-1<FS.indexOf(e)){for(;c!==null;){var u=Ci(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=Qa(u.pendingLanes);if(h!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;h;){var S=1<<31-Lt(h);b.entanglements[1]|=S,h&=~S}Dn(u),(ze&6)===0&&(ds=jt()+500,bo(0))}}break;case 31:case 13:b=ti(u,2),b!==null&&Dt(b,u,2),ps(),Yf(u,2)}if(u=Vf(r),u===null&&Df(e,t,r,xs,n),u===c)break;c=u}c!==null&&r.stopPropagation()}else Df(e,t,r,null,n)}}function Vf(e){return e=Pc(e),Pf(e)}var xs=null;function Pf(e){if(xs=null,e=Oi(e),e!==null){var t=f(e);
vendor: 4,261 bytes, line 10
10if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=p(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xs=e,null}function Ng(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Hb()){case Gh:return 2;case Xh:return 8;case bl:case Lb:return 32;case Yh:return 268435456;default:return 32}default:return 32}}var Wf=!1,Da=null,Ua=null,Ma=null,ko=new Map,Ro=new Map,Na=[],FS="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".split(" ");function jg(e,t){switch(e){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":ko.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ro.delete(t.pointerId)}}function Oo(e,t,n,r,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[c]},t!==null&&(t=Ci(t),t!==null&&Ug(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function $S(e,t,n,r,c){switch(t){case"focusin":return Da=Oo(Da,e,t,n,r,c),!0;case"dragenter":return Ua=Oo(Ua,e,t,n,r,c),!0;case"mouseover":return Ma=Oo(Ma,e,t,n,r,c),!0;case"pointerover":var u=c.pointerId;return ko.set(u,Oo(ko.get(u)||null,e,t,n,r,c)),!0;case"gotpointercapture":return u=c.pointerId,Ro.set(u,Oo(Ro.get(u)||null,e,t,n,r,c)),!0}return!1}function Hg(e){var t=Oi(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Ih(e.priority,function(){Mg(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Ih(e.priority,function(){Mg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vf(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Vc=r,n.target.dispatchEvent(r),Vc=null}else return t=Ci(n),t!==null&&Ug(t),e.blockedOn=n,!1;t.shift()}return!0}function Lg(e,t,n){zs(e)&&n.delete(t)}function e_(){Wf=!1,Da!==null&&zs(Da)&&(Da=null),Ua!==null&&zs(Ua)&&(Ua=null),Ma!==null&&zs(Ma)&&(Ma=null),ko.forEach(Lg),Ro.forEach(Lg)}function Ds(e,t){e.blockedOn===t&&(e.blockedOn=null,Wf||(Wf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,e_)))}var Us=null;function Kg(e){Us!==e&&(Us=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Us===e&&(Us=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],c=e[t+2];if(typeof r!="function"){if(Pf(r||n)===null)continue;break}var u=Ci(n);u!==null&&(e.splice(t,3),t-=3,qu(u,{pending:!0,data:c,method:n.method,action:r},r,c))}}))}function ur(e){function t(S){return Ds(S,e)}Da!==null&&Ds(Da,e),Ua!==null&&Ds(Ua,e),Ma!==null&&Ds(Ma,e),ko.forEac
vendor: 4,290 bytes, line 10
10h(t),Ro.forEach(t);for(var n=0;n<Na.length;n++){var r=Na[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Na.length&&(n=Na[0],n.blockedOn===null);)Hg(n),n.blockedOn===null&&Na.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var c=n[r],u=n[r+1],h=c[kt]||null;if(typeof u=="function")h||Kg(n);else if(h){var b=null;if(u&&u.hasAttribute("formAction")){if(c=u,h=u[kt]||null)b=h.formAction;else if(Pf(c)!==null)continue}else b=h.action;typeof b=="function"?n[r+1]=b:(n.splice(r,3),r-=3),Kg(n)}}}function Zg(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return c=h})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Qf(e){this._internalRoot=e}Ms.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,r=Yt();zg(n,r,e,t,null,null)},Ms.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zg(e.current,2,null,e,null,null),ps(),t[Ri]=null}};function Ms(e){this._internalRoot=e}Ms.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Na.length&&t!==0&&t<Na[n].priority;n++);Na.splice(n,0,e),n===0&&Hg(e)}};var Bg=a.version;if(Bg!=="19.2.7")throw Error(l(527,Bg,"19.2.7"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var t_={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{jr=Ns.inject(t_),Ht=Ns}catch{}}return xo.createRoot=function(e,t){if(!s(e))throw Error(l(299));var n=!1,r="",c=Pm,u=Wm,h=Qm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Cg(e,1,!1,null,null,n,r,null,c,u,h,Zg),e[Ri]=t.current,zf(e),new Qf(t)},xo.hydrateRoot=function(e,t,n){if(!s(e))throw Error(l(299));var r=!1,c="",u=Pm,h=Wm,b=Qm,S=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),t=Cg(e,1,!0,t,n??null,r,c,S,u,h,b,Zg),t.context=xg(null),n=t.current,r=Yt(),r=Kc(r),c=wa(r),c.callback=null,Sa(n,c,r),n=r,t.current.lanes=n,Lr(t,n),Dn(t),e[Ri]=t.current,zf(e),new Ms(t)},xo.version="19.2.7",xo}var Ig;function h_(){if(Ig)return Ff.exports;Ig=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(a){console.error(a)}}return i(),Ff.exports=d_(),Ff.exports}var p_=h_(),z=lh();const tl=i_(z),G2=a_({__proto__:null,default:tl},[z]);var Ud=function(i,a){return Ud=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(o[s]=l[s])},Ud(i,a)};function m_(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");Ud(i,a);function o(){this.constructor=i}
10i.prototype=a===null?Object.create(a):(o.prototype=a.prototype,new o)}var Pe=function(){return Pe=Object.assign||function(a){for(var o,l=1,s=arguments.length;l<s;l++){o=arguments[l];for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(a[f]=o[f])}return a},Pe.apply(this,arguments)};function Fg(i,a){var o={};for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&a.indexOf(l)<0&&(o[l]=i[l]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,l=Object.getOwnPropertySymbols(i);s<l.length;s++)a.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(i,l[s])&&(o[l[s]]=i[l[s]]);return o}function sn(i,a,o,l){function s(f){return f instanceof o?f:new o(function(d){d(f)})}return new(o||(o=Promise))(function(f,d){function p(y){try{m(l.next(y))}catch(v){d(v)}}function g(y){try{m(l.throw(y))}catch(v){d(v)}}function m(y){y.done?f(y.value):s(y.value).then(p,g)}m((l=l.apply(i,a||[])).next())})}function cn(i,a){var o={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},l,s,f,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=p(0),d.throw=p(1),d.return=p(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function p(m){return function(y){return g([m,y])}}function g(m){if(l)throw new TypeError("Generator is already executing.");for(;d&&(d=0,m[0]&&(o=0)),o;)try{if(l=1,s&&(f=m[0]&2?s.return:m[0]?s.throw||((f=s.return)&&f.call(s),0):s.next)&&!(f=f.call(s,m[1])).done)return f;switch(s=0,f&&(m=[m[0]&2,f.value]),m[0]){case 0:case 1:f=m;break;case 4:return o.label++,{value:m[1],done:!1};case 5:o.label++,s=m[1],m=[0];continue;case 7:m=o.ops.pop(),o.trys.pop();continue;default:if(f=o.trys,!(f=f.length>0&&f[f.length-1])&&(m[0]===6||m[0]===2)){o=0;continue}if(m[0]===3&&(!f||m[1]>f[0]&&m[1]<f[3])){o.label=m[1];break}if(m[0]===6&&o.label<f[1]){o.label=f[1],f=m;break}if(f&&o.label<f[2]){o.label=f[2],o.ops.push(m);break}f[2]&&o.ops.pop(),o.trys.pop();continue}m=a.call(i,o)}catch(y){m=[6,y],s=0}finally{l=f=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function y_(i,a,o){for(var l=0,s=a.length,f;l<s;l++)(f||!(l in a))&&(f||(f=Array.prototype.slice.call(a,0,l)),f[l]=a[l]);return i.concat(f||Array.prototype.slice.call(a))}function Mt(i,a){var o={};for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&a.indexOf(l)<0&&(o[l]=i[l]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(l=Object.getOwnPropertySymbols(i);s<l.length;s++)a.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(i,l[s])&&(o[l[s]]=i[l[s]])}return o}function js(i,a,o,l){if(typeof a=="function"?i!==a||!l:!a.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(i):l?l.value:a.get(i)}function $g(i,a,o,l,s){if(typeof a=="function"?i!==a||!0:!a.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a.set(i,o),o}function e0(i,a){this.v=i,this.k=a}function ev(i,a){(a==null||a>i.length)&&(a=i.length);for(var o=0,l=Array(a);o<a;o++)l[o]=i[o];return l}function ye(i,a,o){if(typeof i=="function"?i===a:i.has(a))return arguments.length<3?a:o;throw new TypeError("Private element is not present on this object")}function g_(i){return new e0(i,0)}function t0(i,a){if(a.has(i))throw new TypeError("Cannot initialize the same private elements twice on an object")}function k(i,a){return i.get(ye(i,a))}function ue(i,a,o){t0(i,a),a.set(i,o)}function re(i,a,o){return i.set(ye(i,a),o),o}function sh(i,a){t0(i,a),a.add(i)}function V(i,a,o){return(a=(function(l){var s=(function(f,d){if(typeof f!="object"||!f)return f;var p=f[Symbol.toPrimitive];if(p!==void 0){var g=p.call(f,d);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)})(l,"string");return typeof s=="symbol"?s:s+""})(a))in i?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o,i}function tv(i,a){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);a&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),o.push.apply(o,l)}return o}function P(i){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};
10a%2?tv(Object(o),!0).forEach(function(l){V(i,l,o[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):tv(Object(o)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(o,l))})}return i}function nv(i,a){if(i==null)return{};var o,l,s=(function(d,p){if(d==null)return{};var g={};for(var m in d)if({}.hasOwnProperty.call(d,m)){if(p.indexOf(m)!==-1)continue;g[m]=d[m]}return g})(i,a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(i);for(l=0;l<f.length;l++)o=f[l],a.indexOf(o)===-1&&{}.propertyIsEnumerable.call(i,o)&&(s[o]=i[o])}return s}function Pt(i,a){return(function(o){if(Array.isArray(o))return o})(i)||(function(o,l){var s=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(s!=null){var f,d,p,g,m=[],y=!0,v=!1;try{if(p=(s=s.call(o)).next,l===0){if(Object(s)!==s)return;y=!1}else for(;!(y=(f=p.call(s)).done)&&(m.push(f.value),m.length!==l);y=!0);}catch(w){v=!0,d=w}finally{try{if(!y&&s.return!=null&&(g=s.return(),Object(g)!==g))return}finally{if(v)throw d}}return m}})(i,a)||(function(o,l){if(o){if(typeof o=="string")return ev(o,l);var s={}.toString.call(o).slice(8,-1);return s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set"?Array.from(o):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?ev(o,l):void 0}})(i,a)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function v_(i){return function(){return new Go(i.apply(this,arguments))}}function Go(i){var a,o;function l(f,d){try{var p=i[f](d),g=p.value,m=g instanceof e0;Promise.resolve(m?g.v:g).then(function(y){if(m){var v=f==="return"&&g.k?f:"next";if(!g.k||y.done)return l(v,y);y=i[v](y).value}s(!!p.done,y)},function(y){l("throw",y)})}catch(y){s(2,y)}}function s(f,d){f===2?a.reject(d):a.resolve({value:d,done:f}),(a=a.next)?l(a.key,a.arg):o=null}this._invoke=function(f,d){return new Promise(function(p,g){var m={key:f,arg:d,resolve:p,reject:g,next:null};o?o=o.next=m:(a=o=m,l(f,d))})},typeof i.return!="function"&&(this.return=void 0)}typeof SuppressedError=="function"&&SuppressedError,Go.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Go.prototype.next=function(i){return this._invoke("next",i)},Go.prototype.throw=function(i){return this._invoke("throw",i)},Go.prototype.return=function(i){return this._invoke("return",i)};const b_={timeoutInSeconds:60},Md=1e4,av="memory",Nd={name:"auth0-spa-js",version:"2.22.0"},n0=()=>Date.now(),wt="default";class De extends Error{constructor(a,o){super(o),this.error=a,this.error_description=o,Object.setPrototypeOf(this,De.prototype)}static fromPayload(a){let o=a.error,l=a.error_description;return new De(o,l)}}class ch extends De{constructor(a,o,l){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;super(a,o),this.state=l,this.appState=s,Object.setPrototypeOf(this,ch.prototype)}}class uh extends De{constructor(a,o,l,s){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;super(a,o),this.connection=l,this.state=s,this.appState=f,Object.setPrototypeOf(this,uh.prototype)}}class Cr extends De{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Cr.prototype)}}class fh extends Cr{constructor(a){super(),this.popup=a,Object.setPrototypeOf(this,fh.prototype)}}class dh extends De{constructor(a){super("cancelled","Popup closed"),this.popup=a,Object.setPrototypeOf(this,dh.prototype)}}class hh extends De{constructor(){super("popup_open","Unable to open a popup for loginWithPopup - window.open returned `null`"),Object.setPrototypeOf(this,hh.prototype)}}class nl extends De{constructor(a,o,l,s){super(a,o),this.mfa_token=l,this.mfa_requirements=s,Object.setPrototypeOf(this,nl.prototype)}}class Tc extends De{constructor(a,o){super("missing_refresh_token","Missing Refresh Token (audience: '".concat(fc(a,["default"]),"', scope: '").concat(fc(o),"')")),this.audience=a,this.scope=o,Object.setPrototypeOf(this,Tc.prototype)}}class ph extends De{constructor(a,o){super("missing_scopes","Missing requested scopes after refresh (audience: '".concat(fc(a,["default"]),"', missing scope: '").concat(fc(o),"')")),this.audience=a,this.scope=o,Object.setPrototypeOf(this,ph.prototype)}}
11class Ac extends De{constructor(a){super("use_dpop_nonce","Server rejected DPoP proof: wrong nonce"),this.newDpopNonce=a,Object.setPrototypeOf(this,Ac.prototype)}}function fc(i){return i&&!(arguments.length>1&&arguments[1]!==void 0?arguments[1]:[]).includes(i)?i:""}const dc=()=>window.crypto,zo=()=>{const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let a="";for(;a.length<43;){const o=dc().getRandomValues(new Uint8Array(43-a.length));for(const l of o)a.length<43&&l<198&&(a+=i[l%66])}return a},ad=i=>btoa(i),w_=[{key:"name",type:["string"]},{key:"version",type:["string","number"]},{key:"env",type:["object"]}],jd=function(i){let a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return Object.keys(i).reduce((o,l)=>{if(a&&l==="env")return o;const s=w_.find(f=>f.key===l);return s&&s.type.includes(typeof i[l])&&(o[l]=i[l]),o},{})},Xo=i=>{var a=i.clientId,o=Mt(i,["clientId"]);return new URLSearchParams((l=>Object.keys(l).filter(s=>l[s]!==void 0).reduce((s,f)=>Object.assign(Object.assign({},s),{[f]:l[f]}),{}))(Object.assign({client_id:a},o))).toString()},iv=async i=>await dc().subtle.digest({name:"SHA-256"},new TextEncoder().encode(i)),rv=i=>(a=>decodeURIComponent(atob(a).split("").map(o=>
vendor: 6,609 bytes, line 11
11"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))(i.replace(/_/g,"/").replace(/-/g,"+")),ov=i=>{const a=new Uint8Array(i);return(o=>{const l={"+":"-","/":"_","=":""};return o.replace(/[+/=]/g,s=>l[s])})(window.btoa(String.fromCharCode(...Array.from(a))))};var Ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a0={},mh={};Object.defineProperty(mh,"__esModule",{value:!0});var S_=(function(){function i(){var a=this;this.locked=new Map,this.addToLocked=function(o,l){var s=a.locked.get(o);s===void 0?l===void 0?a.locked.set(o,[]):a.locked.set(o,[l]):l!==void 0&&(s.unshift(l),a.locked.set(o,s))},this.isLocked=function(o){return a.locked.has(o)},this.lock=function(o){return new Promise(function(l,s){a.isLocked(o)?a.addToLocked(o,l):(a.addToLocked(o),l())})},this.unlock=function(o){var l=a.locked.get(o);if(l!==void 0&&l.length!==0){var s=l.pop();a.locked.set(o,l),s!==void 0&&setTimeout(s,0)}else a.locked.delete(o)}}return i.getInstance=function(){return i.instance===void 0&&(i.instance=new i),i.instance},i})();mh.default=function(){return S_.getInstance()};var Sn=Ai&&Ai.__awaiter||function(i,a,o,l){return new(o||(o=Promise))(function(s,f){function d(m){try{g(l.next(m))}catch(y){f(y)}}function p(m){try{g(l.throw(m))}catch(y){f(y)}}function g(m){m.done?s(m.value):new o(function(y){y(m.value)}).then(d,p)}g((l=l.apply(i,a||[])).next())})},_n=Ai&&Ai.__generator||function(i,a){var o,l,s,f,d={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return f={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function p(g){return function(m){return(function(y){if(o)throw new TypeError("Generator is already executing.");for(;d;)try{if(o=1,l&&(s=2&y[0]?l.return:y[0]?l.throw||((s=l.return)&&s.call(l),0):l.next)&&!(s=s.call(l,y[1])).done)return s;switch(l=0,s&&(y=[2&y[0],s.value]),y[0]){case 0:case 1:s=y;break;case 4:return d.label++,{value:y[1],done:!1};case 5:d.label++,l=y[1],y=[0];continue;case 7:y=d.ops.pop(),d.trys.pop();continue;default:if(s=d.trys,!((s=s.length>0&&s[s.length-1])||y[0]!==6&&y[0]!==2)){d=0;continue}if(y[0]===3&&(!s||y[1]>s[0]&&y[1]<s[3])){d.label=y[1];break}if(y[0]===6&&d.label<s[1]){d.label=s[1],s=y;break}if(s&&d.label<s[2]){d.label=s[2],d.ops.push(y);break}s[2]&&d.ops.pop(),d.trys.pop();continue}y=a.call(i,d)}catch(v){y=[6,v],l=0}finally{o=s=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}})([g,m])}}},Do=Ai;Object.defineProperty(a0,"__esModule",{value:!0});var fr=mh,id="browser-tabs-lock-key",Hs={key:function(i){return Sn(Do,void 0,void 0,function(){return _n(this,function(a){throw new Error("Unsupported")})})},getItem:function(i){return Sn(Do,void 0,void 0,function(){return _n(this,function(a){throw new Error("Unsupported")})})},clear:function(){return Sn(Do,void 0,void 0,function(){return _n(this,function(i){return[2,window.localStorage.clear()]})})},removeItem:function(i){return Sn(Do,void 0,void 0,function(){return _n(this,function(a){throw new Error("Unsupported")})})},setItem:function(i,a){return Sn(Do,void 0,void 0,function(){return _n(this,function(o){throw new Error("Unsupported")})})},keySync:function(i){return window.localStorage.key(i)},getItemSync:function(i){return window.localStorage.getItem(i)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(i){return window.localStorage.removeItem(i)},setItemSync:function(i,a){return window.localStorage.setItem(i,a)}};function rd(i){return new Promise(function(a){return setTimeout(a,i)})}function od(i){for(var a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",o="",l=0;l<i;l++)o+=a[Math.floor(61*Math.random())];return o}var __=(function(){function i(a){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+od(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=a,i.waiters===void 0&&(i.waiters=[])}return i.prototype.acquireLock=function(a,o){return o===void 0&&(o=5e3),Sn(this,void 0,void 0,function(){var l,s,f,d,p,g,m;return _n(this,function(y){switch(y.label){case 0:l=Date.now()+od(4),s=Date.now()+o,f=id+"-"+a,d=this.storageHandler===void 0?Hs:this.storageHandler,y.label=1;case 1:return Date.now()<s?[4,rd(30)]:[3,8];case 2:return y.sent(),d.getItemSync(f)!==null?[3,5]:(p=this.id+"-"+a+"-"+l,[4,rd(Math.floor(25*Math.random()))]);case 3:return y.sent(),d.setItemSync(f,JSON.stringify({id:this.id,iat:l,timeoutKey:p,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,rd(30)];case 4:return y.sent(),(g=d.getItemSync(f))!==null&&(m=JSON.parse(g)).id===this.id&&m.iat===l?(this.acquiredIatSet.add(l),this.refreshLockWhileAcquired(f,l),[2,!0]):[3,7];case 5:return i.lockCorrector(this.storageHandler===void 0?Hs:this.storageHandler),[4,this.waitForSomethingToChange(s)];case 6:y.sent(),y.label=7;case 7:return l=Date.now()+od(4),[3,1];case 8:return[2,!1]}})})},i.prototype.refreshLockWhileAcquired=function(a,o){return Sn(this,void 0,void 0,function(){var l=this;return _n(this,function(s){return setTimeout(function(){return Sn(l,void 0,void 0,function(){var f,d,p;return _n(this,function(g){switch(g.label){case 0:return[4,fr.default().lock(o)];case 1:return g.sent(),this.acquiredIatSet.has(o)?(f=this.storageHandler===void 0?Hs:this.storageHandler,(d=f.getItemSync(a))===null?(fr.default().unlock(o),[2]):((p=JSON.parse(d)).timeRefreshed=Date.now(),f.setItemSync(a,JSON.stringify(p)),fr.default().unlock(o),this.refreshLockWhileAcquired(a,o),[2])):(fr.default().unlock(o),[2])}})})},1e3),[2]})})},i.prototype.waitForSomethingToChange=function(a){return Sn(this,void 0,void 0,function(){return _n(this,function(o){switch(o.label){case 0:return[4,new Promise(function(l){var s=!1,f=Date.now(),d=!1;function p(){if(d||(window.removeEventListener("storage",p),i.removeFromWaiting(p),clearTimeout(g),d=!0),!s){s=!0;var m=50-(Date.now()-f);m>0?setTimeout(l,m):l(null)}}window.addEventListener("storage",p),i.addToWaiting(p);var g=setTimeout(p,Math.max(0,a-Date.now()))})];case 1:return o.sent(),[2]}})})},i.addToWaiting=function(a){this.removeFromWaiting(a),i.waiters!==void 0&&i.waiters.push(a)},i.removeFromWaiting=function(a){i.waiters!==void 0&&(i.waiters=i.waiters.filter(function(o){return o!==a}))},i.notifyWaiters=function(){i.waiters!==void 0&&i.waiters.slice().forEac
11h(function(a){return a()})},i.prototype.releaseLock=function(a){return Sn(this,void 0,void 0,function(){return _n(this,function(o){switch(o.label){case 0:return[4,this.releaseLock__private__(a)];case 1:return[2,o.sent()]}})})},i.prototype.releaseLock__private__=function(a){return Sn(this,void 0,void 0,function(){var o,l,s,f;return _n(this,function(d){switch(d.label){case 0:return o=this.storageHandler===void 0?Hs:this.storageHandler,l=id+"-"+a,(s=o.getItemSync(l))===null?[2]:(f=JSON.parse(s)).id!==this.id?[3,2]:[4,fr.default().lock(f.iat)];case 1:d.sent(),this.acquiredIatSet.delete(f.iat),o.removeItemSync(l),fr.default().unlock(f.iat),i.notifyWaiters(),d.label=2;case 2:return[2]}})})},i.lockCorrector=function(a){for(var o=Date.now()-5e3,l=a,s=[],f=0;;){var d=l.keySync(f);if(d===null)break;s.push(d),f++}for(var p=!1,g=0;g<s.length;g++){var m=s[g];if(m.includes(id)){var y=l.getItemSync(m);if(y!==null){var v=JSON.parse(y);(v.timeRefreshed===void 0&&v.timeAcquired<o||v.timeRefreshed!==void 0&&v.timeRefreshed<o)&&(l.removeItemSync(m),p=!0)}}}p&&i.notifyWaiters()},i.waiters=void 0,i})(),E_=a0.default=__;class T_{async runWithLock(a,o,l){const s=new AbortController,f=setTimeout(()=>s.abort(),o);try{return await navigator.locks.request(a,{mode:"exclusive",signal:s.signal},async d=>{if(clearTimeout(f),!d)throw new Error("Lock not available");return await l()})}catch(d){throw clearTimeout(f),d?.name==="AbortError"?new Cr:d}}}class A_{constructor(){this.activeLocks=new Set,this.lock=new E_,this.pagehideHandler=()=>{this.activeLocks.forEach(a=>this.lock.releaseLock(a)),this.activeLocks.clear()}}async runWithLock(a,o,l){let s=!1;for(let f=0;f<10&&!s;f++)s=await this.lock.acquireLock(a,o);if(!s)throw new Cr;this.activeLocks.add(a),this.activeLocks.size===1&&typeof window<"u"&&window.addEventListener("pagehide",this.pagehideHandler);try{return await l()}finally{this.activeLocks.delete(a),await this.lock.releaseLock(a),this.activeLocks.size===0&&typeof window<"u"&&window.removeEventListener("pagehide",this.pagehideHandler)}}}function k_(){return typeof navigator<"u"&&typeof((i=navigator.locks)===null||i===void 0?void 0:i.request)=="function"?new T_:new A_;var i}let ld=null;const R_=new TextEncoder,O_=new TextDecoder;function Po(i){return typeof i=="string"?R_.encode(i):O_.decode(i)}function lv(i){if(typeof i.modulusLength!="number"||i.modulusLength<2048)throw new x_(`${i.name} modulusLength must be at least 2048 bits`)}async function C_(i,a,o){if(o.usages.includes("sign")===!1)throw new TypeError('private CryptoKey instances used for signing assertions must include "sign" in their "usages"');const l=`${Wo(Po(JSON.stringify(i)))}.${Wo(Po(JSON.stringify(a)))}`;return`${l}.${Wo(await crypto.subtle.sign((function(s){switch(s.algorithm.name){case"ECDSA":return{name:s.algorithm.name,hash:"SHA-256"};case"RSA-PSS":return lv(s.algorithm),{name:s.algorithm.name,saltLength:32};case"RSASSA-PKCS1-v1_5":return lv(s.algorithm),{name:s.algorithm.name};case"Ed25519":return{name:s.algorithm.name}}throw new _i})(o),o,Po(l)))}`}let Hd;Uint8Array.prototype.toBase64?Hd=i=>(i instanceof ArrayBuffer&&(i=new Uint8Array(i)),i.toBase64({alphabet:"base64url",omitPadding:!0})):Hd=a=>{a instanceof ArrayBuffer&&(a=new Uint8Array(a));const o=[];for(let l=0;l<a.byteLength;l+=32768)o.push(String.fromCharCode.apply(null,a.subarray(l,l+32768)));return btoa(o.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};function Wo(i){return Hd(i)}class _i extends Error{constructor(a){var o;super(a??"operation not supported"),this.name=this.constructor.name,(o=Error.captureStackTrace)===null||o===void 0||o.call(Error,this,this.constructor)}}class x_ extends Error{constructor(a){var o;super(a),this.name=this.constructor.name,(o=Error.captureStackTrace)===null||o===void 0||o.call(Error,this,this.constructor)}}function z_(i){switch(i.algorithm.name){case"RSA-PSS":return(function(a){if(a.algorithm.hash.name==="SHA-256")return"PS256";throw new _i("unsupported RsaHashedKeyAlgorithm hash name")})(i);case"RSASSA-PKCS1-v1_5":return(function(a){if(a.algorithm.hash.name==="SHA-256")return"RS256";throw new _i("unsupported RsaHashedKeyAlgorithm hash name")})(i);
11case"ECDSA":return(function(a){if(a.algorithm.namedCurve==="P-256")return"ES256";throw new _i("unsupported EcKeyAlgorithm namedCurve")})(i);case"Ed25519":return"Ed25519";default:throw new _i("unsupported CryptoKey algorithm name")}}function i0(i){return i instanceof CryptoKey}function r0(i){return i0(i)&&i.type==="public"}async function D_(i,a,o,l,s,f){const d=i?.privateKey,p=i?.publicKey;if(!i0(g=d)||g.type!=="private")throw new TypeError('"keypair.privateKey" must be a private CryptoKey');var g;if(!r0(p))throw new TypeError('"keypair.publicKey" must be a public CryptoKey');if(p.extractable!==!0)throw new TypeError('"keypair.publicKey.extractable" must be true');if(typeof a!="string")throw new TypeError('"htu" must be a string');if(typeof o!="string")throw new TypeError('"htm" must be a string');if(l!==void 0&&typeof l!="string")throw new TypeError('"nonce" must be a string or undefined');if(s!==void 0&&typeof s!="string")throw new TypeError('"accessToken" must be a string or undefined');return C_({alg:z_(d),typ:"dpop+jwt",jwk:await o0(p)},Object.assign(Object.assign({},f),{iat:Math.floor(Date.now()/1e3),jti:crypto.randomUUID(),htm:o,nonce:l,htu:a,ath:s?Wo(await crypto.subtle.digest("SHA-256",Po(s))):void 0}),d)}async function o0(i){const{kty:a,e:o,n:l,x:s,y:f,crv:d}=await crypto.subtle.exportKey("jwk",i);return{kty:a,crv:d,e:o,n:l,x:s,y:f}}const l0="dpop-nonce",U_=["authorization_code","refresh_token","urn:ietf:params:oauth:grant-type:token-exchange","urn:okta:params:oauth:grant-type:webauthn","http://auth0.com/oauth/grant-type/mfa-oob","http://auth0.com/oauth/grant-type/mfa-otp","http://auth0.com/oauth/grant-type/mfa-rec
11overy-code"];function M_(){return(async function(i,a){var o;let l;if(i.length===0)throw new TypeError('"alg" must be a non-empty string');switch(i){case"PS256":l={name:"RSA-PSS",hash:"SHA-256",modulusLength:2048,publicExponent:new Uint8Array([1,0,1])};break;case"RS256":l={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256",modulusLength:2048,publicExponent:new Uint8Array([1,0,1])};break;case"ES256":l={name:"ECDSA",namedCurve:"P-256"};break;case"Ed25519":l={name:"Ed25519"};break;default:throw new _i}return crypto.subtle.generateKey(l,(o=a?.extractable)!==null&&o!==void 0&&o,["sign","verify"])})("ES256",{extractable:!1})}function N_(i){return(async function(a){if(!r0(a))throw new TypeError('"publicKey" must be a public CryptoKey');if(a.extractable!==!0)throw new TypeError('"publicKey.extractable" must be true');const o=await o0(a);let l;switch(o.kty){case"EC":l={crv:o.crv,kty:o.kty,x:o.x,y:o.y};break;case"OKP":l={crv:o.crv,kty:o.kty,x:o.x};break;case"RSA":l={e:o.e,kty:o.kty,n:o.n};break;default:throw new _i("unsupported JWK kty")}return Wo(await crypto.subtle.digest({name:"SHA-256"},Po(JSON.stringify(l))))})(i.publicKey)}function j_(i){let a=i.keyPair,o=i.url,l=i.method,s=i.nonce,f=i.accessToken;const d=(function(p){const g=new URL(p);return g.search="",g.hash="",g.href})(o);return D_(a,d,l,s,f)}const Ld=(i,a)=>new Promise(function(o,l){const s=new MessageChannel;s.port1.onmessage=function(f){f.data.error?l(new Error(f.data.error)):o(f.data),s.port1.close()},a.postMessage(i,[s.port2])}),s0=(i,a,o)=>{const l=new AbortController;let s;return a.signal=l.signal,Promise.race([fetch(i,a),new Promise((f,d)=>{s=setTimeout(()=>{l.abort(),d(new Error("Timeout when executing 'fetch'"))},o)})]).finally(()=>{clearTimeout(s)})},H_=async function(i,a,o,l,s,f){let d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:Md;return s?(async(p,g,m,y,v,w,_,A,O)=>Ld({type:"refresh",auth:{audience:g,scope:m},timeout:v,fetchUrl:p,fetchOptions:y,useFormData:_,useMrrt:A,skipTokenStorage:O},w))(i,a,o,l,d,s,f,arguments.length>7?arguments[7]:void 0,arguments.length>8?arguments[8]:void 0):(async(p,g,m)=>{const y=await s0(p,g,m);return{ok:y.ok,json:await y.json(),headers:(v=y.headers,[...v].reduce((w,_)=>{let A=Pt(_,2),O=A[0],R=A[1];return w[O]=R,w},{}))};var v})(i,l,d)};async function c0(i,a,o,l,s,f,d,p,g,m,y){if(g){const Q=await g.generateProof({url:i,method:s.method||"GET",nonce:await g.getNonce()});s.headers=Object.assign(Object.assign({},s.headers),{dpop:Q})}let v,w=null;for(let Q=0;Q<3;Q++)try{v=await H_(i,o,l,s,f,d,a,p,y),w=null;break}catch(ae){w=ae}if(w)throw w;const _=v.json,A=_.error,O=_.error_description,R=Mt(_,["error","error_description"]),x=v,J=x.headers,Z=x.ok;let q;if(g&&(q=J[l0],q&&await g.setNonce(q)),!Z){const Q=O||"HTTP error. Unable to fetch ".concat(i);if(A==="mfa_required")throw new nl(A,Q,R.mfa_token,R.mfa_requirements);if(A==="missing_refresh_token")throw new Tc(o,l);if(A==="use_dpop_nonce"){if(!g||!q||m)throw new Ac(q);return c0(i,a,o,l,s,f,d,p,g,!0,y)}throw new De(A||"request_error",Q)}return R}async function sv(i,a,o){var l=i.baseUrl,s=i.timeout,f=i.audience,d=i.scope,p=i.auth0Client,g=i.useFormData,m=i.useMrrt,y=i.dpop,v=Mt(i,["baseUrl","timeout","audience","scope","auth0Client","useFormData","useMrrt","dpop"]);const w=v.grant_type==="urn:ietf:params:oauth:grant-type:token-exchange",_=v.grant_type==="urn:okta:params:oauth:grant-type:webauthn",A=v.grant_type==="refresh_token"&&m,O=w||_||A,R=Object.assign(Object.assign(Object.assign({},v),O&&f&&{audience:f}),O&&d&&{scope:d}),x=_||!g,J=x?JSON.stringify(R):Xo(R),Z=(q=v.grant_type,U_.includes(q));var q;return await c0("".concat(l,"/oauth/token"),s,f||wt,d,{method:"POST",body:J,headers:{"Content-Type":x?"application/json":"application/x-www-form-urlencoded","Auth0-Client":btoa(JSON.stringify(jd(p||Nd)))}},a,g,m,Z?y:void 0,void 0,o)}const tc=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return(l=a.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(l))).join(" ");var l},Uo=(i,a,o)=>{let l;return o&&(l=i[o]),l||(l=i[wt]),tc(l,a)},Ei="@@auth0spajs@@",wi="@@user@@";class At{constructor(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ei,l=arguments.length>2?arguments[2]:void 0;this.prefix=o,this.suffix=l,this.clientId=a.clientId,this.scope=a.scope,this.audience=a.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(
11Boolean).join("::")}static fromKey(a){const o=Pt(a.split("::"),4),l=o[0],s=o[1],f=o[2],d=o[3];return new At({clientId:s,scope:d,audience:f},l)}static fromCacheEntry(a){const o=a.scope,l=a.audience,s=a.client_id;return new At({scope:o,audience:l,clientId:s})}}class L_{set(a,o){localStorage.setItem(a,JSON.stringify(o))}get(a){const o=window.localStorage.getItem(a);if(o)try{return JSON.parse(o)}catch{return}}remove(a){localStorage.removeItem(a)}allKeys(){return Object.keys(window.localStorage).filter(a=>a.startsWith(Ei))}}class u0{constructor(){this.enclosedCache=(function(){let a={};return{set(o,l){a[o]=l},get(o){const l=a[o];if(l)return l},remove(o){delete a[o]},allKeys:()=>Object.keys(a)}})()}}class K_{constructor(a,o,l){this.cache=a,this.keyManifest=o,this.nowProvider=l||n0}async setIdToken(a,o,l){var s;const f=this.getIdTokenCacheKey(a);await this.cache.set(f,{id_token:o,decodedToken:l}),await((s=this.keyManifest)===null||s===void 0?void 0:s.add(f))}async getIdToken(a){const o=await this.cache.get(this.getIdTokenCacheKey(a.clientId));if(!o&&a.scope&&a.audience){const l=await this.get(a);return!l||!l.id_token||!l.decodedToken?void 0:{id_token:l.id_token,decodedToken:l.decodedToken}}if(o)return{id_token:o.id_token,decodedToken:o.decodedToken}}async get(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=arguments.length>2&&arguments[2]!==void 0&&arguments[2],s=arguments.length>3?arguments[3]:void 0;var f;let d=await this.cache.get(a.toKey()),p=a;if(!d){const y=await this.getCacheKeys();if(!y)return;const v=this.matchExistingCacheKey(a,y);if(v&&(d=await this.cache.get(v),p=At.fromKey(v)),!d&&l&&s!=="cache-only")return this.getEntryWithRefreshToken(a,y)}if(!d)return;const g=await this.nowProvider(),m=Math.floor(g/1e3);return d.expiresAt-o<m?d.body.refresh_token?this.modifiedCachedEntry(d,p):(await this.cache.remove(p.toKey()),void await((f=this.keyManifest)===null||f===void 0?void 0:f.remove(p.toKey()))):d.body}async modifiedCachedEntry(a,o){const l={refresh_token:a.body.refresh_token,audience:a.body.audience,scope:a.body.scope},s={body:l,expiresAt:a.expiresAt};return await this.cache.set(o.toKey(),s),{refresh_token:l.refresh_token,audience:l.audience,scope:l.scope}}async set(a){var o;const l=new At({clientId:a.client_id,scope:a.scope,audience:a.audience}),s=await this.wrapCacheEntry(a);await this.cache.set(l.toKey(),s),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(l.toKey()))}async remove(a,o,l){const s=new At({clientId:a,scope:l,audience:o});await this.cache.remove(s.toKey())}async stripRefreshToken(a){var o;const l=await this.getCacheKeys();if(l)for(const s of l){const f=await this.cache.get(s);((o=f?.body)===null||o===void 0?void 0:o.refresh_token)===a&&(delete f.body.refresh_token,await this.cache.set(s,f))}}async clear(a){var o;const l=await this.getCacheKeys();l&&(await l.filter(s=>!a||s.includes(a)).reduce(async(s,f)=>{await s,await this.cache.remove(f)},Promise.resolve()),await((o=this.keyManifest)===null||o===void 0?void 0:o.clear()))}async wrapCacheEntry(a){const o=await this.nowProvider();return{body:a,expiresAt:Math.floor(o/1e3)+a.expires_in}}async getCacheKeys(){var a;return this.keyManifest?(a=await this.keyManifest.get())===null||a===void 0?void 0:a.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(a){return new At({clientId:a},Ei,wi).toKey()}matchExistingCacheKey(a,o){return o.filter(l=>{var s;const f=At.fromKey(l),d=new Set(f.scope&&f.scope.split(" ")),p=((s=a.scope)===null||s===void 0?void 0:s.split(" "))||[],g=f.scope&&p.reduce((m,y)=>m&&d.has(y),!0);return f.prefix===Ei&&f.clientId===a.clientId&&f.audience===a.audience&&g})[0]}async getEntryWithRefreshToken(a,o){var l;for(const s of o){const f=At.fromKey(s);if(f.prefix===Ei&&f.clientId===a.clientId){const d=await this.cache.get(s);if(!((l=d?.body)===null||l===void 0)&&l.refresh_token)return{refresh_token:d.body.refresh_token,audience:d.body.audience,scope:d.body.scope}}}}async getRefreshTokensByAudience(a,o){var l;const s=await this.getCacheKeys();if(!s)return[];const f=new Set;for(const d of s){const p=At.fromKey(d);if(p.prefix===Ei&&p.clientId===o&&p.audience===a){const g=await this.cache.get(d);!((l=g?.body)===null||l===void 0)&&l.refresh_token&&f.add(g.body.refresh_token)}}return Array.from(f)}async updateEntry(a,o){var l;const s=await this.getCacheKeys();if(s)for(const f of s){const d=await this.cache.get(f);((l=d?.body)===null||l===void 0?void 0:l.refresh_token)===a&&(d.body.refresh_token=o,await this.cache.set(f,d))}}}class Z_{constructor(a,o,l){this.storage=a,this.clientId=o,this.cookieDomain=l,this.storageKey="".concat("a0.spajs.txs",".").concat(this.clientId)}create(a){this.storage.save(this.storageKey,a,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Mo=i=>typeof i=="number",B_=["iss","aud","exp","nbf","iat","jti","azp","
11nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],J_=i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(f=>{const d=f.split("."),p=Pt(d,3),g=p[0],m=p[1],y=p[2];if(d.length!==3||!g||!m||!y)throw new Error("ID token could not be decoded");const v=JSON.parse(rv(m)),w={__raw:f},_={};return Object.keys(v).forEach(A=>{w[A]=v[A],B_.includes(A)||(_[A]=v[A])}),{encoded:{header:g,payload:m,signature:y},header:JSON.parse(rv(g)),claims:w,user:_}})(i.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==i.iss)throw new Error('Issuer (iss) claim mismatch in the ID token; expected "'.concat(i.iss,'", found "').concat(a.claims.iss,'"'));if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error('Signature algorithm of "'.concat(a.header.alg,'" is not supported. Expected the ID token to be signed with "RS256".'));if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(i.aud))throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(i.aud,'" but was not one of "').concat(a.claims.aud.join(", "),'"'));if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==i.aud)throw new Error('Authorized Party (azp) claim mismatch in the ID token; expected "'.concat(i.aud,'", found "').concat(a.claims.azp,'"'))}}else if(a.claims.aud!==i.aud)throw new Error('Audience (aud) claim mismatch in the ID token; expected "'.concat(i.aud,'" but found "').concat(a.claims.aud,'"'));if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error('Nonce (nonce) claim mismatch in the ID token; expected "'.concat(i.nonce,'", found "').concat(a.claims.nonce,'"'))}if(i.max_age&&!Mo(a.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(a.claims.exp==null||!Mo(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Mo(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const o=i.leeway||60,l=new Date(i.now||Date.now()),s=new Date(0);if(s.setUTCSeconds(a.claims.exp+o),l>s)throw new Error("Expiration Time (exp) claim error in the ID token; current time (".concat(l,") is after expiration time (").concat(s,")"));if(a.claims.nbf!=null&&Mo(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-o),l<f)throw new Error("Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (".concat(l,") is before ").concat(f))}if(a.claims.auth_time!=null&&Mo(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+o),l>f)throw new Error("Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (".concat(l,") is after last auth at ").concat(f))}if(i.organization){const f=i.organization.trim();if(f.startsWith("org_")){const d=f;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error('Organization ID (org_id) claim mismatch in the ID token; expected "'.concat(d,'", found "').concat(a.claims.org_id,'"'))}else{const d=f.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error('Organization Name (org_name) claim mismatch in the ID token; expected "'.concat(d,'", found "').concat(a.claims.org_name,'"'))}}return a};var al=Ai&&Ai.__assign||function(){return al=Object.assign||function(i){for(var a,o=1,l=arguments.length;o<l;o++)for(var s in a=arguments[o])Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s]);return i},al.apply(this,arguments)};function No(i,a){if(!a)return"";var o="; "+i;return a===!0?o:o+"="+a}function G_(i,a,o){return encodeURIComponent(i).replace(/%(23|24|26|2B|5E|60|7C)/g,decode
11URIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(a).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+(function(l){if(typeof l.expires=="number"){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*l.expires),l.expires=s}return No("Expires",l.expires?l.expires.toUTCString():"")+No("Domain",l.domain)+No("Path",l.path)+No("Secure",l.secure)+No("SameSite",l.sameSite)})(o)}function X_(){return(function(i){for(var a={},o=i?i.split("; "):[],l=/(%[\dA-F]{2})+/gi,s=0;s<o.length;s++){var f=o[s].split("="),d=f.slice(1).join("=");d.charAt(0)==='"'&&(d=d.slice(1,-1));try{a[f[0].replace(l,decodeURIComponent)]=d.replace(l,decodeURIComponent)}catch{}}return a})(document.cookie)}var Y_=function(i){return X_()[i]};function f0(i,a,o){document.cookie=G_(i,a,al({path:"/"},o))}var d0=f0,h0=function(i,a){f0(i,"",al(al({},a),{expires:-1}))};const vr={get(i){const a=Y_(i);if(a!==void 0)return JSON.parse(a)},save(i,a,o){let l={};window.location.protocol==="https:"&&(l={secure:!0,sameSite:"none"}),o?.daysUntilExpire&&(l.expires=o.daysUntilExpire),o?.cookieDomain&&(l.domain=o.cookieDomain),d0(i,JSON.stringify(a),l)},remove(i,a){let o={};a?.cookieDomain&&(o.domain=a.cookieDomain),h0(i,o)}},sd="_legacy_",q_={get(i){return vr.get(i)||vr.get("".concat(sd).concat(i))},save(i,a,o){let l={};window.location.protocol==="https:"&&(l={secure:!0}),o?.daysUntilExpire&&(l.expires=o.daysUntilExpire),o?.cookieDomain&&(l.domain=o.cookieDomain),d0("".concat(sd).concat(i),JSON.stringify(a),l),vr.save(i,a,o)},remove(i,a){let o={};a?.cookieDomain&&(o.domain=a.cookieDomain),h0(i,o),vr.remove(i,a),vr.remove("".concat(sd).concat(i),a)}},V_={get(i){if(typeof sessionStorage>"u")return;const a=sessionStorage.getItem(i);return a!=null?JSON.parse(a):void 0},save(i,a){sessionStorage.setItem(i,JSON.stringify(a))},remove(i){sessionStorage.removeItem(i)}};var Ga;(function(i){i.Code="code",i.ConnectCode="connect_code"})(Ga||(Ga={}));function P_(i,a,o){var l=a===void 0?null:a,s=(function(g,m){var y=atob(g);if(m){for(var v=new Uint8Array(y.length),w=0,_=y.length;w<_;++w)v[w]=y.charCodeAt(w);return String.fromCharCode.apply(null,new Uint16Array(v.buffer))}return y})(i,o!==void 0&&o),f=s.indexOf(` 12`,10)+1,d=s.substring(f)+(l?"//# sourceMappingURL="+l:""),p=new Blob([d],{type:"application/javascript"});return URL.createObjectURL(p)}var cv,uv,fv,cd,W_=(cv="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7ZnVuY3Rpb24gZShlLHQpeyhudWxsPT10fHx0PmUubGVuZ3RoKSYmKHQ9ZS5sZW5ndGgpO2Zvcih2YXIgcj0wLG89QXJyYXkodCk7cjx0O3IrKylvW3JdPWVbcl07cmV0dXJuIG99ZnVuY3Rpb24gdCh0LHIpe3JldHVybiBmdW5jdGlvbihlKXtpZihBcnJheS5pc0FycmF5KGUpKXJldHVybiBlfSh0KXx8ZnVuY3Rpb24oZSx0KXt2YXIgcj1udWxsPT1lP251bGw6InVuZGVmaW5lZCIhPXR5cGVvZiBTeW1ib2wmJmVbU3ltYm9sLml0ZXJhdG9yXXx8ZVsiQEBpdGVyYXRvciJdO2lmKG51bGwhPXIpe3ZhciBvLG4scyxpLGE9W10sYz0hMCxsPSExO3RyeXtpZihzPShyPXIuY2FsbChlKSkubmV4dCwwPT09dCl7aWYoT2JqZWN0KHIpIT09cilyZXR1cm47Yz0hMX1lbHNlIGZvcig7IShjPShvPXMuY2FsbChyKSkuZG9uZSkmJihhLnB1c2goby52YWx1ZSksYS5sZW5ndGghPT10KTtjPSEwKTt9Y2F0Y2goZSl7bD0hMCxuPWV9ZmluYWxseXt0cnl7aWYoIWMmJm51bGwhPXIucmV0dXJuJiYoaT1yLnJldHVybigpLE9iamVjdChpKSE9PWkpKXJldHVybn1maW5hbGx5e2lmKGwpdGhyb3cgbn19cmV0dXJuIGF9fSh0LHIpfHxmdW5jdGlvbih0LHIpe2lmKHQpe2lmKCJzdHJpbmciPT10eXBlb2YgdClyZXR1cm4gZSh0LHIpO3ZhciBvPXt9LnRvU3RyaW5nLmNhbGwodCkuc2xpY2UoOCwtMSk7cmV0dXJuIk9iamVjdCI9PT1vJiZ0LmNvbnN0cnVjdG9yJiYobz10LmNvbnN0cnVjdG9yLm5hbWUpLCJNYXAiPT09b3x8IlNldCI9PT1vP0FycmF5LmZyb20odCk6IkFyZ3VtZW50cyI9PT1vfHwvXig/OlVpfEkpbnQoPzo4fDE2fDMyKSg/OkNsYW1wZWQpP0FycmF5JC8udGVzdChvKT9lKHQscik6dm9pZCAwfX0odCxyKXx8ZnVuY3Rpb24oKXt0aHJvdyBuZXcgVHlwZUVycm9yKCJJbnZhbGlkIGF0dGVtcHQgdG8gZGVzdHJ1Y3R1cmUgbm9uLWl0ZXJhYmxlIGluc3RhbmNlLlxuSW4gb3JkZXIgdG8gYmUgaXRlcmFibGUsIG5vbi1hcnJheSBvYmplY3RzIG11c3QgaGF2ZSBhIFtTeW1ib2wuaXRlcmF0b3JdKCkgbWV0aG9kLiIpfSgpfWNsYXNzIHIgZXh0ZW5kcyBFcnJvcntjb25zdHJ1Y3RvcihlLHQpe3N1cGVyKHQpLHRoaXMuZXJyb3I9ZSx0aGlzLmVycm9yX2Rlc2NyaXB0aW9uPXQsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsci5wcm90b3R5cGUpfXN0YXRpYyBmcm9tUGF5bG9hZChlKXtsZXQgdD1lLmVycm9yLG89ZS5lcnJvcl9kZXNjcmlwdGlvbjtyZXR1cm4gbmV3IHIodCxvKX19Y2xhc3MgbyBleHRlbmRzIHJ7Y29uc3RydWN0b3IoZSx0KXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIiwiTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyIuY29uY2F0KG4oZSxbImRlZmF1bHQiXSksIicsIHNjb3BlOiAnIikuY29uY2F0KG4odCksIicpIikpLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXQsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsby5wcm90b3R5cGUpfX1mdW5jdGlvbiBuKGUpe3JldHVybiBlJiYhKGFyZ3VtZW50cy5sZW5ndGg+MSYmdm9pZCAwIT09YXJndW1lbnRzWzFdP2FyZ3VtZW50c1sxXTpbXSkuaW5jbHVkZXMoZSk/ZToiIn0iZnVuY3Rpb24iPT10eXBlb2YgU3VwcHJlc3NlZEVycm9yJiZTdXBwcmVzc2VkRXJyb3I7Y29uc3Qgcz1lPT57dmFyIHQ9ZS5jbGllbnRJZCxyPWZ1bmN0aW9uKGUsdCl7dmFyIHI9e307Zm9yKHZhciBvIGluIGUpT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGUsbykmJnQuaW5kZXhPZihvKTwwJiYocltvXT1lW29dKTtpZihudWxsIT1lJiYiZnVuY3Rpb24iPT10eXBlb2YgT2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyl7dmFyIG49MDtmb3Iobz1PYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKGUpO248by5sZW5ndGg7bisrKXQuaW5kZXhPZihvW25dKTwwJiZPYmplY3QucHJvdG90eXBlLnByb3BlcnR5SXNFbnVtZXJhYmxlLmNhbGwoZSxvW25dKSYmKHJbb1tuXV09ZVtvW25dXSl9cmV0dXJuIHJ9KGUsWyJjbGllbnRJZCJdKTtyZXR1cm4gbmV3IFVSTFNlYXJjaFBhcmFtcygoZT0+T2JqZWN0LmtleXMoZSkuZmlsdGVyKHQ9PnZvaWQgMCE9PWVbdF0pLnJlZHVjZSgodCxyKT0+T2JqZWN0LmFzc2lnbihPYmplY3QuYXNzaWduKHt9LHQpLHtbcl06ZVtyXX0pLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmc
12oKX07bGV0IGk9e30sYT1udWxsO2NvbnN0IGM9KGUsdCk9PiIiLmNvbmNhdChlLCJ8IikuY29uY2F0KHQpLGw9KGUsdCk9PnQuc3RhcnRzV2l0aCgiIi5jb25jYXQoZSwifCIpKSx1PWU9PntPYmplY3QuZW50cmllcyhpKS5mb3JFYWNoKHI9PntsZXQgbz10KHIsMiksbj1vWzBdO29bMV09PT1lJiZkZWxldGUgaVtuXX0pfSxmPWU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKChlLHQpPT57clt0XT1lfSkscn0sZD1hc3luYyBlPT57bGV0IHIsbixhPWUuZGF0YSx1PWEudGltZW91dCxkPWEuYXV0aCxoPWEuZmV0Y2hVcmwscD1hLmZldGNoT3B0aW9ucyx5PWEudXNlRm9ybURhdGEsZz1hLnVzZU1ycnQsYj1hLnNraXBUb2tlblN0b3JhZ2UsTz10KGUucG9ydHMsMSlbMF0saz17fTtjb25zdCBtPWR8fHt9LGo9bS5hdWRpZW5jZSx2PW0uc2NvcGU7dHJ5e2NvbnN0IGU9eT9mKHAuYm9keSk6SlNPTi5wYXJzZShwLmJvZHkpO2lmKCFlLnJlZnJlc2hfdG9rZW4mJiJyZWZyZXNoX3Rva2VuIj09PWUuZ3JhbnRfdHlwZSl7aWYobj0oKGUsdCk9PmlbYyhlLHQpXSkoaix2KSwhbiYmZyl7Y29uc3QgZT1pLmxhdGVzdF9yZWZyZXNoX3Rva2VuLHQ9KChlLHQpPT4hIU9iamVjdC5rZXlzKGkpLmZpbmQocj0+e2lmKCJsYXRlc3RfcmVmcmVzaF90b2tlbiIhPT1yKXtjb25zdCBvPWwodCxyKSxuPXIuc3BsaXQoInwiKVsxXS5zcGxpdCgiICIpLHM9ZS5zcGxpdCgiICIpLmV2ZXJ5KGU9Pm4uaW5jbHVkZXMoZSkpO3JldHVybiBvJiZzfX0pKSh2LGopO2UmJiF0JiYobj1lKX1pZighbil0aHJvdyBuZXcgbyhqLHYpO3AuYm9keT15P3MoT2JqZWN0LmFzc2lnbihPYmplY3QuYXNzaWduKHt9LGUpLHtyZWZyZXNoX3Rva2VuOm59KSk6SlNPTi5zdHJpbmdpZnkoT2JqZWN0LmFzc2lnbihPYmplY3QuYXNzaWduKHt9LGUpLHtyZWZyZXNoX3Rva2VuOm59KSl9bGV0IGEsZDsiZnVuY3Rpb24iPT10eXBlb2YgQWJvcnRDb250cm9sbGVyJiYoYT1uZXcgQWJvcnRDb250cm9sbGVyLHAuc2lnbmFsPWEuc2lnbmFsKTt0cnl7ZD1hd2FpdCBQcm9taXNlLnJhY2UoWyhNPXUsbmV3IFByb21pc2UoZT0+c2V0VGltZW91dChlLE0pKSksZmV0Y2goaCxPYmplY3QuYXNzaWduKHt9LHApKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIE8ucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFkKXJldHVybiBhJiZhLmFib3J0KCksdm9pZCBPLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO2lmKFM9ZC5oZWFkZXJzLGs9Wy4uLlNdLnJlZHVjZSgoZSxyKT0+e2xldCBvPXQociwyKSxuPW9bMF0scz1vWzFdO3JldHVybiBlW25dPXMsZX0se30pLHI9YXdhaXQgZC5qc29uKCksYilyZXR1cm4gZGVsZXRlIHIucmVmcmVzaF90b2tlbix2b2lkIE8ucG9zdE1lc3NhZ2Uoe29rOmQub2ssanNvbjpyLGhlYWRlcnM6a30pO3IucmVmcmVzaF90b2tlbj8oZyYmKGkubGF0ZXN0X3JlZnJlc2hfdG9rZW49ci5yZWZyZXNoX3Rva2VuLF89bix3PXIucmVmcmVzaF90b2tlbixPYmplY3QuZW50cmllcyhpKS5mb3JFYWNoKGU9PntsZXQgcj10KGUsMiksbz1yWzBdO3JbMV09PT1fJiYoaVtvXT13KX0pKSwoKGUsdCxyKT0+e2lbYyh0LHIpXT1lfSkoci5yZWZyZXNoX3Rva2VuLGosdiksZGVsZXRlIHIucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIGlbYyhlLHQpXX0pKGosdiksTy5wb3N0TWVzc2FnZSh7b2s6ZC5vayxqc29uOnIsaGVhZGVyczprfSl9Y2F0Y2goZSl7Ty5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9LGhlYWRlcnM6a30pfXZhciBfLHcsUyxNfSxoPWFzeW5jIGU9PntsZXQgcj1lLmRhdGEsbz1yLnRpbWVvdXQsbj1yLmF1dGgsYT1yLmZldGNoVXJsLGM9ci5mZXRjaE9wdGlvbnMsZD1yLnVzZUZvcm1EYXRhLGg9dChlLnBvcnRzLDEpWzBdO2NvbnN0IHA9KG58fHt9KS5hdWRpZW5jZTt0cnl7Y29uc3QgZT0oZT0+e2NvbnN0IHI9bmV3IFNldDtyZXR1cm4gT2JqZWN0LmVud
12HJpZXMoaSkuZm9yRWFjaChvPT57bGV0IG49dChvLDIpLHM9blswXSxpPW5bMV07bChlLHMpJiZyLmFkZChpKX0pLEFycmF5LmZyb20ocil9KShwKTtpZigwPT09ZS5sZW5ndGgpcmV0dXJuIHZvaWQgaC5wb3N0TWVzc2FnZSh7b2s6ITB9KTtjb25zdCByPWQ/ZihjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtmb3IoY29uc3QgdCBvZiBlKXtjb25zdCBlPWQ/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3Rva2VuOnR9KSk6SlNPTi5zdHJpbmdpZnkoT2JqZWN0LmFzc2lnbihPYmplY3QuYXNzaWduKHt9LHIpLHt0b2tlbjp0fSkpO2xldCBuLGksbCxmOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihuPW5ldyBBYm9ydENvbnRyb2xsZXIsaT1uLnNpZ25hbCk7dHJ5e2Y9YXdhaXQgUHJvbWlzZS5yYWNlKFtuZXcgUHJvbWlzZShlPT57bD1zZXRUaW1lb3V0KGUsbyl9KSxmZXRjaChhLE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxjKSx7Ym9keTplLHNpZ25hbDppfSkpXSkuZmluYWxseSgoKT0+Y2xlYXJUaW1lb3V0KGwpKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBoLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZilyZXR1cm4gbiYmbi5hYm9ydCgpLHZvaWQgaC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtpZighZi5vayl7bGV0IGU7dHJ5e2NvbnN0IHQ9SlNPTi5wYXJzZShhd2FpdCBmLnRleHQoKSk7ZT10LmVycm9yX2Rlc2NyaXB0aW9ufWNhdGNoKGUpe31yZXR1cm4gdm9pZCBoLnBvc3RNZXNzYWdlKHtlcnJvcjplfHwiSFRUUCBlcnJvciAiLmNvbmNhdChmLnN0YXR1cyl9KX11KHQpfWgucG9zdE1lc3NhZ2Uoe29rOiEwfSl9Y2F0Y2goZSl7aC5wb3N0TWVzc2FnZSh7ZXJyb3I6ZS5tZXNzYWdlfHwiVW5rbm93biBlcnJvciBkdXJpbmcgdG9rZW4gcmV2b2NhdGlvbiJ9KX19LHA9KGUsdCk9PntpZighYSlyZXR1cm4hMTt0cnl7Y29uc3Qgcj1uZXcgVVJMKGEpLm9yaWdpbixvPW5ldyBVUkwoZS5mZXRjaFVybCk7cmV0dXJuIG8ub3JpZ2luPT09ciYmby5wYXRobmFtZT09PXR9Y2F0Y2goZSl7cmV0dXJuITF9fTthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIixlPT57Y29uc3Qgcj1lLmRhdGEsbz10KGUucG9ydHMsMSlbMF07aWYoISgidHlwZSJpbiByKXx8ImluaXQiIT09ci50eXBlKXJldHVybiJ0eXBlImluIHImJiJjbGVhciI9PT1yLnR5cGU/KGk9e30sdm9pZChudWxsPT1vfHxvLnBvc3RNZXNzYWdlKHtvazohMH0pKSk6InR5cGUiaW4gciYmInJldm9rZSI9PT1yLnR5cGU/cChyLCIvb2F1dGgvcmV2b2tlIik/dm9pZCBoKGUpOnZvaWQobnVsbD09b3x8by5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ImludmFsaWRfZmV0Y2hfdXJsIixlcnJvcl9kZXNjcmlwdGlvbjoiVW5hdXRob3JpemVkIGZldGNoIFVSTCJ9LGhlYWRlcnM6e319KSk6dm9pZCgiZmV0Y2hVcmwiaW4gciYmcChyLCIvb2F1dGgvdG9rZW4iKT9kKGUpOm51bGw9PW98fG8ucG9zdE1lc3NhZ2Uoe29rOiExLGpzb246e2Vycm9yOiJpbnZhbGlkX2ZldGNoX3VybCIsZXJyb3JfZGVzY3JpcHRpb246IlVuYXV0aG9yaXplZCBmZXRjaCBVUkwifSxoZWFkZXJzOnt9fSkpO2lmKG51bGw9PT1hKXRyeXtuZXcgVVJMKHIuYWxsb3dlZEJhc2VVcmwpLGE9ci5hbGxvd2VkQmFzZVVybH1jYXRjaChlKXtyZXR1cm59fSl9KCk7Cgo=",uv=null,fv=!1,function(i){return cd=cd||P_(cv,uv,fv),new Worker(cd,i)});const ud={};class Q_{constructor(a,o){this.cache=a,this.clientId=o,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(a){var o;const l=new Set(((o=await this.cache.get(this.manifestKey))===null||o===void 0?void 0:o.keys)||[]);l.add(a),await this.cache.set(this.manifestKey,{keys:[...l]})}async remove(a){const o=await this.cache.get(this.manifestKey);if(o){const l=new Set(o.keys);return l.delete(a),l.size>0?await this.cache.set(this.manifestKey,{keys:[...l]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(a){return"".concat(Ei,"::").concat(a)}}const dv="auth0.is.authenticated",I_={memory:()=>new u0().enclosedCache,localstorage:()=>new L_},hv=i=>I_[i],pv=i=>{const a=i.openUrl,o=i.onRedirect,l=Mt(i,["openUrl","onRedirect"]);return Object.assign(Object.assign({},l),{openUrl:a===!1||a?a:o})},mv=(i,a)=>{const o=a?.split(" ")||[];return(i?.split(" ")||[]).every(l=>o.includes(l))},pi={NONCE:"nonce",KEYPAIR:"keypair"};class F_{constructor(a){this.clientId=a}getVersion(){return 1}createDbHandle(){const a=window.indexedDB.open("auth0-spa-js",this.getVersion());return new Promise((o,l)=>{a.onupgradeneeded=()=>Object.values(pi).forEach(s=>a.result.createObjectStore(s)),a.onerror=()=>l(a.error),a.onsuccess=()=>o(a.result)})}async getDbHandle(){return this.dbHandle||(this.dbHandle=await this.createDbHandle()),this.dbHandle}async executeDbRequest(a,o,l){const s=l((await this.getDbHandle()).transaction(a,o).objectStore(a));return new Promise((f,d)=>{s.onsuccess=()=>f(s.result),s.onerror=()=>d(s.error)})}buildKey(a){const o=a?"_".concat(a):"auth0";return"".concat(this.clientId,"::").concat(o)}setNonce(a,o){return this.save(pi.NONCE,this.buildKey(o),a)}setKeyPair(a){return this.save(pi.KEYPAIR,this.buildKey(),a)}async save(a,o,l){await this.executeDbRequest(a,"readwrite",s=>s.put(l,o))}findNonce(a){return this.find(pi.NONCE,this.buildKey(a))}findKeyPair(){return this.find(pi.KEYPAIR,this.buildKey())}find(a,o){return this.executeDbRequest(a,"readonly",l=>l.get(o))}async deleteBy(a,o){const l=await this.executeDbRequest(a,"readonly",s=>s.getAllKeys());await Promise.all(l?.filter(o).map(s=>this.executeDbRequest(a,"readwrite",f=>f.delete(s)))||[])}deleteByClientId(a,o){return this.deleteBy(a,l=>typeof l=="string"&&l.startsWith("".concat(o,"::")))}clearNonces(){return this.deleteByClientId(pi.NONCE,this.clientId)}clearKeyPairs(){return this.deleteByClientId(pi.KEYPAIR,this.clientId)}}class $_{constructor(a){this.storage=new F_(a)}getNonce(a){return this.storage.findNonce(a)}setNonce(a,o){return this.storage.setNonce(a,o)}async getOrGenerateKeyPair(){let a=await this.storage.findKeyPair();return a||(a=await M_(),await this.storage.setKeyPair(a)),a}async generateProof(a){const o=await this.getOrGenerateKeyPair();return j_(Object.assign({keyPair:o},a))}async calculateThumbprint(){return N_(await this.getOrGenerateKeyPair())}async clear(){await Promise.all([this.storage.clearNonces(),this.storage.clearKeyPairs()])}}var br;(function(i){i.Bearer="Bearer",i.DPoP="DPoP"})(br||(br={}));class eE{constructor(a,o){this.hooks=o,this.config=Object.assign(Object.assign({},a),{fetch:a.fetch||(typeof window>"u"?fetch:window.fetch.bind(window))})}isAbsoluteUrl(a){return/^(https?:)?\/\//i.test(a)}buildUrl(a,o){if(o){if(this.isAbsoluteUrl(o))return o;if(a)return"".concat(a.replace(/\/?\/$/,""),"/").concat(o.replace(/^\/+/,""))}throw new TypeError("`url` must be absolute or `baseUrl` non-empty.")}getAccessToken(a){return this.config.getAccessToken?this.config.getAccessToken(a):this.hooks.getAccessToken(a)}
12extractUrl(a){return typeof a=="string"?a:a instanceof URL?a.href:a.url}buildBaseRequest(a,o){if(!this.config.baseUrl)return new Request(a,o);const l=this.buildUrl(this.config.baseUrl,this.extractUrl(a)),s=a instanceof Request?new Request(l,a):l;return new Request(s,o)}setAuthorizationHeader(a,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:br.Bearer;a.headers.set("authorization","".concat(l," ").concat(o))}async setDpopProofHeader(a,o){if(!this.config.dpopNonceId)return;const l=await this.hooks.getDpopNonce(),s=await this.hooks.generateDpopProof({accessToken:o,method:a.method,nonce:l,url:a.url});a.headers.set("dpop",s)}async prepareRequest(a,o){const l=await this.getAccessToken(o);let s,f;typeof l=="string"?(s=this.config.dpopNonceId?br.DPoP:br.Bearer,f=l):(s=l.token_type,f=l.access_token),this.setAuthorizationHeader(a,f,s),s===br.DPoP&&await this.setDpopProofHeader(a,f)}getHeader(a,o){return Array.isArray(a)?new Headers(a).get(o)||"":typeof a.get=="function"?a.get(o)||"":a[o]||""}hasUseDpopNonceError(a){if(a.status!==401)return!1;const o=this.getHeader(a.headers,"www-authenticate");return o.includes("invalid_dpop_nonce")||o.includes("use_dpop_nonce")}async handleResponse(a,o){const l=this.getHeader(a.headers,l0);if(l&&await this.hooks.setDpopNonce(l),!this.hasUseDpopNonceError(a))return a;if(!l||!o.onUseDpopNonceError)throw new Ac(l);return o.onUseDpopNonceError()}async internalFetchWithAuth(a,o,l,s){const f=this.buildBaseRequest(a,o);await this.prepareRequest(f,s);const d=await this.config.fetch(f);return this.handleResponse(d,l)}fetchWithAuth(a,o,l){const s={onUseDpopNonceError:()=>this.internalFetchWithAuth(a,o,Object.assign(Object.assign({},s),{onUseDpopNonceError:void 0}),l)};return this.internalFetchWithAuth(a,o,s,l)}}class tE{constructor(a,o){this.myAccountFetcher=a,this.apiBase=o}async connectAccount(a){const o=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/connected-accounts/connect"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},{scope:["create:me:connected_accounts"]});return this._handleResponse(o)}async completeAccount(a){const o=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/connected-accounts/complete"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},{scope:["create:me:connected_accounts"]});return this._handleResponse(o)}async getFactors(){const a=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/factors"),{method:"GET"},{scope:["read:me:factors"]});return(await this._handleResponse(a)).factors}async getAuthenticationMethods(a){const o=a?"?".concat(new URLSearchParams({type:a})):"",l=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods").concat(o),{method:"GET"},{scope:["read:me:authentication_methods"]});return(await this._handleResponse(l)).authentication_methods}async getAuthenticationMethod(a){const o=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods/").concat(encodeURIComponent(a)),{method:"GET"},{scope:["read:me:authentication_methods"]});return this._handleResponse(o)}async deleteAuthenticationMethod(a){const o=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods/").concat(encodeURIComponent(a)),{method:"DELETE"},{scope:["delete:me:authentication_methods"]});o.ok||await this._handleResponse(o)}async updateAuthenticationMethod(a,o){const l=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods/").concat(encodeURIComponent(a)),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)},{scope:["update:me:authentication_methods"]});return this._handleResponse(l)}async enrollmentChallenge(a){var o;const l=await this.myAccountFetcher.fetchWithAuth("".concat(this.apiBase,"v1/authentication-methods"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},{scope:["create:me:authentication_methods"]}),s=await this._handleResponse(l),f=(o=l.headers.get("location"))!==null&&o!==void 0?o:"",d=decodeURIComponent(f.split("/").pop()||"");return Object.assign(Object.assign({},s),{id:d,location:f})}async enrollmentVerify(a){const o=a,l=o.location;o.type;const s=Mt(o,["location","type"]),f=await this.myAccountFetcher.fetchWithAuth("".concat(l,"/verify"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)},{scope:["create:me:authentication_methods"]});return this._handleResponse(f)}
12async _handleResponse(a){let o;try{o=await a.text(),o=JSON.parse(o)}catch(l){throw new hc({type:"invalid_json",status:a.status,title:"Invalid JSON response",detail:o||String(l)})}if(a.ok)return o;throw new hc(o)}}class hc extends Error{constructor(a){let o=a.type,l=a.status,s=a.title,f=a.detail,d=a.validation_errors;super(f),this.name="MyAccountApiError",this.type=o,this.status=l,this.title=s,this.detail=f,this.validation_errors=d,Object.setPrototypeOf(this,hc.prototype)}}const nE={otp:{authenticatorTypes:["otp"]},sms:{authenticatorTypes:["oob"],oobChannels:["sms"]},email:{authenticatorTypes:["oob"],oobChannels:["email"]},push:{authenticatorTypes:["oob"],oobChannels:["auth0"]},voice:{authenticatorTypes:["oob"],oobChannels:["voice"]}},aE="http://auth0.com/oauth/grant-type/mfa-otp",iE="http://auth0.com/oauth/grant-type/mfa-oob",rE="http://auth0.com/oauth/grant-type/mfa-recovery-code";var Ls,fd;let Kd;(typeof navigator>"u"||(Ls=navigator.userAgent)===null||Ls===void 0||(fd=Ls.startsWith)===null||fd===void 0||!fd.call(Ls,"Mozilla/5.0 "))&&(Kd="".concat("oauth4webapi","/").concat("v3.8.6"));function xr(i,a){if(i==null)return!1;try{return i instanceof a||Object.getPrototypeOf(i)[Symbol.toStringTag]===a.prototype[Symbol.toStringTag]}catch{return!1}}const St="ERR_INVALID_ARG_VALUE",Nt="ERR_INVALID_ARG_TYPE";function Ne(i,a,o){const l=new TypeError(i,{cause:o});return Object.assign(l,{code:a}),l}const dn=Symbol(),Zd=Symbol(),Bd=Symbol(),On=Symbol(),sa=Symbol(),oE=new TextEncoder,lE=new TextDecoder;function Er(i){return typeof i=="string"?oE.encode(i):lE.decode(i)}let Jd,p0;Uint8Array.prototype.toBase64?Jd=i=>(i instanceof ArrayBuffer&&(i=new Uint8Array(i)),i.toBase64({alphabet:"base64url",omitPadding:!0})):Jd=a=>{a instanceof ArrayBuffer&&(a=new Uint8Array(a));const o=[];for(let l=0;l<a.byteLength;l+=32768)o.push(String.fromCharCode.apply(null,a.subarray(l,l+32768)));return btoa(o.join("")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")};function Ti(i){return typeof i=="string"?p0(i):Jd(i)}p0=Uint8Array.fromBase64?i=>{try{return Uint8Array.fromBase64(i,{alphabet:"base64url"})}catch(a){throw Ne("The input to be decoded is not correctly encoded.",St,a)}}:i=>{try{const a=atob(i.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"")),o=new Uint8Array(a.length);for(let l=0;l<a.length;l++)o[l]=a.charCodeAt(l);return o}catch(a){throw Ne("The input to be decoded is not correctly encoded.",St,a)}};class Vt extends Error{constructor(a,o){var l;super(a,o),V(this,"code",void 0),this.name=this.constructor.name,this.code=Yd,(l=Error.captureStackTrace)===null||l===void 0||l.call(Error,this,this.constructor)}}class yh extends Error{constructor(a,o){var l;super(a,o),V(this,"code",void 0),this.name=this.constructor.name,o!=null&&o.code&&(this.code=o?.code),(l=Error.captureStackTrace)===null||l===void 0||l.call(Error,this,this.constructor)}}function ce(i,a,o){return new yh(i,{code:a,cause:o})}function sE(i,a){if((function(o,l){if(!(o instanceof CryptoKey))throw Ne("".concat(l," must be a CryptoKey"),Nt)})(i,a),i.type!=="private")throw Ne("".concat(a," must be a private CryptoKey"),St)}function pc(i){return i!==null&&typeof i=="object"&&!Array.isArray(i)}function kc(i){xr(i,Headers)&&(i=Object.fromEntries(i.entries()));const a=new Headers(i??{});if(Kd&&!a.has("user-agent")&&a.set("user-agent",Kd),a.has("authorization"))throw Ne('"options.headers" must not include the "authorization" header name',St);return a}function m0(i,a){if(a!==void 0){if(typeof a=="function"&&(a=a(i.href)),!(a instanceof AbortSignal))throw Ne('"options.signal" must return or be an instance of AbortSignal',Nt);return a}}function yv(i){return i.includes("//")?i.replace("//","/"):i}async function cE(i,a){return(async function(o,l,s,f){if(!(o instanceof URL))throw Ne('"'.concat(l,'" must be an instance of URL'),Nt);gh(o,f?.[dn]!==!0);const d=s(new URL(o.href)),p=kc(f?.headers);return p.set("accept","application/json"),(f?.[On]||fetch)(d.href,{body:void 0,headers:Object.fromEntries(p.entries()),method:"GET",redirect:"manual",signal:m0(d,f?.signal)}
12)})(i,"issuerIdentifier",o=>{switch(a?.algorithm){case void 0:case"oidc":(function(l,s){l.pathname=yv("".concat(l.pathname,"/").concat(s))})(o,".well-known/openid-configuration");break;case"oauth2":(function(l,s){let f=arguments.length>2&&arguments[2]!==void 0&&arguments[2];l.pathname==="/"?l.pathname=s:l.pathname=yv("".concat(s,"/").concat(f?l.pathname:l.pathname.replace(/(\/)$/,"")))})(o,".well-known/oauth-authorization-server");break;default:throw Ne('"options.algorithm" must be "oidc" (default), or "oauth2"',St)}return o},a)}function qa(i,a,o,l,s){try{if(typeof i!="number"||!Number.isFinite(i))throw Ne("".concat(o," must be a number"),Nt,s);if(i>0)return;if(a){if(i!==0)throw Ne("".concat(o," must be a non-negative number"),St,s);return}throw Ne("".concat(o," must be a positive number"),St,s)}catch(f){throw l?ce(f.message,l,s):f}}function it(i,a,o,l){try{if(typeof i!="string")throw Ne("".concat(a," must be a string"),Nt,l);if(i.length===0)throw Ne("".concat(a," must not be empty"),St,l)}catch(s){throw o?ce(s.message,o,l):s}}function y0(i){(function(a,o){if(w0(a)!==o)throw(function(l){let s='"response" content-type must be ';for(var f=arguments.length,d=new Array(f>1?f-1:0),p=1;p<f;p++)d[p-1]=arguments[p];if(d.length>2){const g=d.pop();s+="".concat(d.join(", "),", or ").concat(g)}else d.length===2?s+="".concat(d[0]," or ").concat(d[1]):s+=d[0];return ce(s,_0,l)})(a,o)})(i,"application/json")}function g0(){return Ti(crypto.getRandomValues(new Uint8Array(32)))}function uE(i){switch(i.algorithm.name){case"RSA-PSS":return(function(a){switch(a.algorithm.hash.name){case"SHA-256":return"PS256";case"SHA-384":return"PS384";case"SHA-512":return"PS512";default:throw new Vt("unsupported RsaHashedKeyAlgorithm hash name",{cause:a})}})(i);case"RSASSA-PKCS1-v1_5":return(function(a){switch(a.algorithm.hash.name){case"SHA-256":return"RS256";case"SHA-384":return"RS384";case"SHA-512":return"RS512";default:throw new Vt("unsupported RsaHashedKeyAlgorithm hash name",{cause:a})}})(i);case"ECDSA":return(function(a){switch(a.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512";default:throw new Vt("unsupported EcKeyAlgorithm namedCurve",{cause:a})}})(i);case"Ed25519":case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return i.algorithm.name;case"EdDSA":return"Ed25519";default:throw new Vt("unsupported CryptoKey algorithm name",{cause:i})}}function mc(i){const a=i?.[Zd];return typeof a=="number"&&Number.isFinite(a)?a:0}function Gd(i){const a=i?.[Bd];return typeof a=="number"&&Number.isFinite(a)&&Math.sign(a)!==-1?a:30}function yc(){return Math.floor(Date.now()/1e3)}function kn(i){if(typeof i!="object"||i===null)throw Ne('"as" must be an object',Nt);it(i.issuer,'"as.issuer"')}function Rn(i){if(typeof i!="object"||i===null)throw Ne('"client" must be an object',Nt);it(i.client_id,'"client.client_id"')}function gv(i){return it(i,'"clientSecret"'),(a,o,l,s)=>{l.set("client_id",o.client_id),l.set("client_secret",i)}}function fE(i,a){const o=(f=i)instanceof CryptoKey?{key:f}:f?.key instanceof CryptoKey?(f.kid!==void 0&&it(f.kid,'"kid"'),{key:f.key,kid:f.kid}):{},l=o.key,s=o.kid;var f;return sE(l,'"clientPrivateKey.key"'),async(d,p,g,m)=>{const y={alg:uE(l),kid:s},v=(function(w,_){const A=yc()+mc(_);return{jti:g0(),aud:w.issuer,exp:A+60,iat:A,nbf:A,iss:_.client_id,sub:_.client_id}})(d,p);g.set("client_id",p.client_id),g.set("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),g.set("client_assertion",await(async function(w,_,A){if(!A.usages.includes("sign"))throw Ne('CryptoKey instances used for signing assertions must include "sign" in their "usages"',St);const O="".concat(Ti(Er(JSON.stringify(w))),".").concat(Ti(Er(JSON.stringify(_)))),R=Ti(await crypto.subtle.sign((function(x){switch(x.algorithm.name){case"ECDSA":return{name:x.algorithm.name,hash:xE(x)};case"RSA-PSS":switch(wv(x),x.algorithm.hash.name){case"SHA-256":case"SHA-384":case"SHA-512":return{name:x.algorithm.name,saltLength:parseInt(x.algorithm.hash.name.slice(-3),10)>>3};default:throw new Vt("unsupported RSA-PSS hash name",{cause:x})}case"RSASSA-PKCS1-v1_5":return wv(x),x.algorithm.name;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":case"Ed25519":return x.algorithm.name}throw new Vt("unsupported CryptoKey algorithm name",{cause:x})})(A),A,Er(O)));return"".concat(O,".").concat(R)})(y,v,l))}}const dE=URL.parse?(i,a)=>URL.parse(i,a):(i,a)=>{try{return new URL(i,a)}catch{return null}};function gh(i,a){if(a&&i.protocol!=="https:")throw ce("only requests to HTTPS are allowed",E0,i);if(i.protocol!=="https:"&&i.protocol!=="http:")throw ce("only HTTP and HTTPS requests are allowed",T0,i)}function vv(i,a,o,l){let s;
12if(typeof i!="string"||!(s=dE(i)))throw ce("authorization server metadata does not contain a valid ".concat(o?'"as.mtls_endpoint_aliases.'.concat(a,'"'):'"as.'.concat(a,'"')),i===void 0?OE:CE,{attribute:o?"mtls_endpoint_aliases.".concat(a):a});return gh(s,l),s}function ol(i,a,o,l){return o&&i.mtls_endpoint_aliases&&a in i.mtls_endpoint_aliases?vv(i.mtls_endpoint_aliases[a],a,o,l):vv(i[a],a,o,l)}class Rc extends Error{constructor(a,o){var l;super(a,o),V(this,"cause",void 0),V(this,"code",void 0),V(this,"error",void 0),V(this,"status",void 0),V(this,"error_description",void 0),V(this,"response",void 0),this.name=this.constructor.name,this.code=kE,this.cause=o.cause,this.error=o.cause.error,this.status=o.response.status,this.error_description=o.cause.error_description,Object.defineProperty(this,"response",{enumerable:!1,value:o.response}),(l=Error.captureStackTrace)===null||l===void 0||l.call(Error,this,this.constructor)}}class v0 extends Error{constructor(a,o){var l,s;super(a,o),V(this,"cause",void 0),V(this,"code",void 0),V(this,"error",void 0),V(this,"error_description",void 0),this.name=this.constructor.name,this.code=RE,this.cause=o.cause,this.error=o.cause.get("error"),this.error_description=(l=o.cause.get("error_description"))!==null&&l!==void 0?l:void 0,(s=Error.captureStackTrace)===null||s===void 0||s.call(Error,this,this.constructor)}}class vh extends Error{constructor(a,o){var l;super(a,o),V(this,"cause",void 0),V(this,"code",void 0),V(this,"response",void 0),V(this,"status",void 0),this.name=this.constructor.name,this.code=AE,this.cause=o.cause,this.status=o.response.status,this.response=o.response,Object.defineProperty(this,"response",{enumerable:!1}),(l=Error.captureStackTrace)===null||l===void 0||l.call(Error,this,this.constructor)}}const gc="[a-zA-Z0-9!#$%&\\'\\*\\+\\-\\.\\^_`\\|~]+",hE="("+gc+')\\s*=\\s*"((?:[^"\\\\]|\\\\[\\s\\S])*)"',pE="("+gc+")\\s*=\\s*("+gc+")",mE=new RegExp("^[,\\s]*("+gc+")"),yE=new RegExp("^[,\\s]*"+hE+"[,\\s]*(.*)"),gE=new RegExp("^[,\\s]*"+pE+"[,\\s]*(.*)"),vE=new RegExp("^([a-zA-Z0-9\\-\\._\\~\\+\\/]+={0,2})(?:$|[,\\s])(.*)");async function bh(i,a,o){if(i.status!==a){let s;var l;throw(function(f){let d;if(d=(function(p){if(!xr(p,Response))throw Ne('"response" must be an instance of Response',Nt);const g=p.headers.get("www-authenticate");if(g===null)return;const m=[];let y=g;for(;y;){var v;let O=y.match(mE);const R=(v=O)===null||v===void 0?void 0:v[1].toLowerCase();if(!R)return;const x=y.substring(O[0].length);if(x&&!x.match(/^[\s,]/))return;const J=x.match(/^\s+(.*)$/),Z=!!J;y=J?J[1]:void 0;const q={};let Q;if(Z)for(;y;){let G,ne;if(O=y.match(yE)){var w=Pt(O,4);if(G=w[1],ne=w[2],y=w[3],ne.includes("\\"))try{ne=JSON.parse('"'.concat(ne,'"'))}catch{}q[G.toLowerCase()]=ne}else{if(!(O=y.match(gE))){if(O=y.match(vE)){if(Object.keys(q).length)break;var _=Pt(O,3);Q=_[1],y=_[2];break}return}var A=Pt(O,4);G=A[1],ne=A[2],y=A[3],q[G.toLowerCase()]=ne}}else y=x||void 0;const ae={scheme:R,parameters:q};Q&&(ae.token68=Q),m.push(ae)}return m.length?m:void 0})(f))throw new vh("server responded with a challenge in the WWW-Authenticate HTTP Header",{cause:d,response:f})})(i),(s=await(async function(f){if(f.status>399&&f.status<500){sl(f),y0(f);try{const d=await f.clone().json();if(pc(d)&&typeof d.error=="string"&&d.error.length)return d}catch{}}})(i))?(await((l=i.body)===null||l===void 0?void 0:l.cancel()),new Rc("server responded with an error in the response body",{cause:s,response:i})):ce('"response" is not a conform '.concat(o," response (unexpected HTTP status code)"),_h,i)}}function b0(i){if(!Sh.has(i))throw Ne('"options.DPoP" is not a valid DPoPHandle',St)}function w0(i){var a;return(a=i.headers.get("content-type"))===null||a===void 0?void 0:a.split(";")[0]}async function wh(i,a,o,l,s,f,d){return await o(i,a,s,f),f.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),(d?.[On]||fetch)(l.href,{body:s,headers:Object.fromEntries(f.entries()),method:"POST",redirect:"manual",signal:m0(l,d?.signal)})}async function ll(i,a,o,l,s,f){var d;const p=ol(i,"token_endpoint",a.use_mtls_endpoint_aliases,f?.[dn]!==!0);s.set("grant_type",l);const g=kc(f?.headers);g.set("accept","application/json"),f?.DPoP!==void 0&&(b0(f.DPoP),await f.DPoP.addProof(p,g,"POST"));const m=await wh(i,a,o,p,s,g,f);return f==null||(d=f.DPoP)===null||d===void 0||d.cacheNonce(m,p),m}const S0=new WeakMap,bE=new WeakMap;function Xd(i){if(!i.id_token)return;const a=S0.get(i);if(!a)throw Ne('"ref" was already garbage collected or did not resolve from the proper sources',St);return a}
12async function kr(i,a,o,l,s,f){if(kn(i),Rn(a),!xr(o,Response))throw Ne('"response" must be an instance of Response',Nt);await bh(o,200,"Token Endpoint"),sl(o);const d=await Oc(o);if(it(d.access_token,'"response" body "access_token" property',Ee,{body:d}),it(d.token_type,'"response" body "token_type" property',Ee,{body:d}),d.token_type=d.token_type.toLowerCase(),d.expires_in!==void 0){let p=typeof d.expires_in!="number"?parseFloat(d.expires_in):d.expires_in;qa(p,!0,'"response" body "expires_in" property',Ee,{body:d}),d.expires_in=p}if(d.refresh_token!==void 0&&it(d.refresh_token,'"response" body "refresh_token" property',Ee,{body:d}),d.scope!==void 0&&typeof d.scope!="string")throw ce('"response" body "scope" property must be a string',Ee,{body:d});if(d.id_token!==void 0){it(d.id_token,'"response" body "id_token" property',Ee,{body:d});const p=["aud","exp","iat","iss","sub"];a.require_auth_time===!0&&p.push("auth_time"),a.default_max_age!==void 0&&(qa(a.default_max_age,!0,'"client.default_max_age"'),p.push("auth_time")),l!=null&&l.length&&p.push(...l);const g=await(async function(v,w,_,A,O){let R,x,J=v.split("."),Z=J[0],q=J[1],Q=J.length;if(Q===5){if(O===void 0)throw new Vt("JWE decryption is not configured",{cause:v});var ae=(v=await O(v)).split(".");Z=ae[0],q=ae[1],Q=ae.length}if(Q!==3)throw ce("Invalid JWT",Ee,v);try{R=JSON.parse(Er(Ti(Z)))}catch(ne){throw ce("failed to parse JWT Header body as base64url encoded JSON",vc,ne)}if(!pc(R))throw ce("JWT Header must be a top level object",Ee,v);if(w(R),R.crit!==void 0)throw new Vt('no JWT "crit" header parameter extensions are supported',{cause:{header:R}});try{x=JSON.parse(Er(Ti(q)))}catch(ne){throw ce("failed to parse JWT Payload body as base64url encoded JSON",vc,ne)}if(!pc(x))throw ce("JWT Payload must be a top level object",Ee,v);const G=yc()+_;if(x.exp!==void 0){if(typeof x.exp!="number")throw ce('unexpected JWT "exp" (expiration time) claim type',Ee,{claims:x});if(x.exp<=G-A)throw ce('unexpected JWT "exp" (expiration time) claim value, expiration is past current timestamp',il,{claims:x,now:G,tolerance:A,claim:"exp"})}if(x.iat!==void 0&&typeof x.iat!="number")throw ce('unexpected JWT "iat" (issued at) claim type',Ee,{claims:x});if(x.iss!==void 0&&typeof x.iss!="string")throw ce('unexpected JWT "iss" (issuer) claim type',Ee,{claims:x});if(x.nbf!==void 0){if(typeof x.nbf!="number")throw ce('unexpected JWT "nbf" (not before) claim type',Ee,{claims:x});if(x.nbf>G+A)throw ce('unexpected JWT "nbf" (not before) claim value',il,{claims:x,now:G,tolerance:A,claim:"nbf"})}if(x.aud!==void 0&&typeof x.aud!="string"&&!Array.isArray(x.aud))throw ce('unexpected JWT "aud" (audience) claim type',Ee,{claims:x});return{header:R,claims:x,jwt:v}})(d.id_token,DE.bind(void 0,a.id_token_signed_response_alg,i.id_token_signing_alg_values_supported,"RS256"),mc(a),Gd(a),s).then(EE.bind(void 0,p)).then(SE.bind(void 0,i)).then(wE.bind(void 0,a.client_id)),m=g.claims,y=g.jwt;if(Array.isArray(m.aud)&&m.aud.length!==1){if(m.azp===void 0)throw ce('ID Token "aud" (audience) claim includes additional untrusted audiences',oa,{claims:m,claim:"aud"});if(m.azp!==a.client_id)throw ce('unexpected ID Token "azp" (authorized party) claim value',oa,{expected:a.client_id,claims:m,claim:"azp"})}m.auth_time!==void 0&&qa(m.auth_time,!0,'ID Token "auth_time" (authentication time)',Ee,{claims:m}),bE.set(o,y),S0.set(d,m)}if(f?.[d.token_type]!==void 0)f[d.token_type](o,d);else if(d.token_type!=="dpop"&&d.token_type!=="bearer")throw new Vt("unsupported `token_type` value",{cause:{body:d}});return d}function wE(i,a){if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(i))throw ce('unexpected JWT "aud" (audience) claim value',oa,{expected:i,claims:a.claims,claim:"aud"})}else if(a.claims.aud!==i)throw ce('unexpected JWT "aud" (audience) claim value',oa,{expected:i,claims:a.claims,claim:"aud"});return a}function SE(i,a){var o,l;const s=(o=(l=i[A0])===null||l===void 0?void 0:l.call(i,a))!==null&&o!==void 0?o:i.issuer;if(a.claims.iss!==s)throw ce('unexpected JWT "iss" (issuer) claim value',oa,{expected:s,claims:a.claims,claim:"iss"});return a}const Sh=new WeakSet,bv=Symbol(),_E={aud:"audience",c_hash:"code hash",client_id:"client id",exp:"expiration time",iat:"issued at",iss:"issuer",jti:"jwt id",nonce:"nonce",s_hash:"state hash",sub:"subject",ath:"access token hash",htm:"http method",htu:"http uri",cnf:"confirmation",auth_time:"authentication time"};function EE(i,a){for(const o of i)if(a.claims[o]===void 0)throw ce('JWT "'.concat(o,'" (').concat(_E[o],") claim missing"),Ee,{claims:a.claims});return a}const dd=Symbol(),hd=Symbol();async function TE(i,a,o,l){return typeof l?.expectedNonce=="string"||typeof l?.maxAge=="number"||l!=null&&l.requireIdToken?(async function(s,f,d,p,g,m,y){const v=[];switch(p){case void 0:p=dd;break;case dd:break;default:it(p,'"expectedNonce" argument'),v.push("nonce")}switch(g!=null||(g=f.default_max_age),g){case void 0:g=hd;break;case hd:break;default:qa(g,!0,'"maxAge" argument'),v.push("auth_time")}const w=await kr(s,f,d,v,m,y);it(w.id_token,'"response" body "id_token" property',Ee,{body:w});const _=Xd(w);if(g!==hd){const A=yc()+mc(f),O=Gd(f);if(_.auth_time+g<A-O)throw ce("too much time has elapsed since the last End-User authentication",il,{claims:_,now:A,tolerance:O,claim:"auth_time"})}if(p===dd){if(_.nonce!==void 0)throw ce('unexpected ID Token "nonce" claim value',oa,{expected:void 0,claims:_,claim:"nonce"})}else if(_.nonce!==p)throw ce('unexpected ID Token "nonce" claim value',oa,{expected:p,claims:_,claim:"nonce"});return w})(i,a,o,l.expectedNonce,l.maxAge,l[sa],l.recognizedTokenTypes):(async function(s,f,d,p,g){const m=await kr(s,f,d,void 0,p,g),y=Xd(m);if(y){if(f.default_max_age!==void 0){qa(f.default_max_age,!0,'"client.default_max_age"');const v=yc()+mc(f),w=Gd(f);if(y.auth_time+f.default_max_age<v-w)throw ce("too much time has elapsed since the last End-User authentication",il,{claims:y,now:v,tolerance:w,claim:"auth_time"})}if(y.nonce!==void 0)throw ce('unexpected ID Token "nonce" claim value',oa,{expected:void 0,claims:y,claim:"nonce"})}return m})(i,a,o,l?.[sa],l?.recognizedTokenTypes)}const AE="OAUTH_WWW_AUTHENTICATE_CHALLENGE",kE="OAUTH_RESPONSE_BODY_ERROR",Yd="OAUTH_UNSUPPORTED_OPERATION",RE="OAUTH_AUTHORIZATION_RESPONSE_E
12RROR",vc="OAUTH_PARSE_ERROR",Ee="OAUTH_INVALID_RESPONSE",_0="OAUTH_RESPONSE_IS_NOT_JSON",_h="OAUTH_RESPONSE_IS_NOT_CONFORM",E0="OAUTH_HTTP_REQUEST_FORBIDDEN",T0="OAUTH_REQUEST_PROTOCOL_FORBIDDEN",il="OAUTH_JWT_TIMESTAMP_CHECK_FAILED",oa="OAUTH_JWT_CLAIM_COMPARISON_FAILED",qd="OAUTH_JSON_ATTRIBUTE_COMPARISON_FAILED",OE="OAUTH_MISSING_SERVER_METADATA",CE="OAUTH_INVALID_SERVER_METADATA";function sl(i){if(i.bodyUsed)throw Ne('"response" body has been used already',St)}function wv(i){const a=i.algorithm;if(typeof a.modulusLength!="number"||a.modulusLength<2048)throw new Vt("unsupported ".concat(a.name," modulusLength"),{cause:i})}function xE(i){switch(i.algorithm.namedCurve){case"P-256":return"SHA-256";case"P-384":return"SHA-384";case"P-521":return"SHA-512";default:throw new Vt("unsupported ECDSA namedCurve",{cause:i})}}async function zE(i){if(i.method!=="POST")throw Ne("form_post responses are expected to use the POST method",St,{cause:i});if(w0(i)!=="application/x-www-form-urlencoded")throw Ne("form_post responses are expected to use the application/x-www-form-urlencoded content-type",St,{cause:i});return(async function(a){if(a.bodyUsed)throw Ne("form_post Request instances must contain a readable body",St,{cause:a});return a.text()})(i)}function DE(i,a,o,l){if(i===void 0)if(Array.isArray(a)){if(!a.includes(l.alg))throw ce('unexpected JWT "alg" header parameter',Ee,{header:l,expected:a,reason:"authorization server metadata"})}else{if(o===void 0)throw ce('missing client or server configuration to verify used JWT "alg" header parameter',void 0,{client:i,issuer:a,fallback:o});if(typeof o=="string"?l.alg!==o:typeof o=="function"?!o(l.alg):!o.includes(l.alg))throw ce('unexpected JWT "alg" header parameter',Ee,{header:l,expected:o,reason:"default value"})}else if(typeof i=="string"?l.alg!==i:!i.includes(l.alg))throw ce('unexpected JWT "alg" header parameter',Ee,{header:l,expected:i,reason:"client configuration"})}function Si(i,a){const o=i.getAll(a),l=o[0];if(o.length>1)throw ce('"'.concat(a,'" parameter must be provided only once'),Ee);return l}const UE=Symbol(),ME=Symbol();function NE(i,a,o,l){if(kn(i),Rn(a),o instanceof URL&&(o=o.searchParams),!(o instanceof URLSearchParams))throw Ne('"parameters" must be an instance of URLSearchParams, or URL',Nt);if(Si(o,"response"))throw ce('"parameters" contains a JARM response, use validateJwtAuthResponse() instead of validateAuthResponse()',Ee,{parameters:o});const s=Si(o,"iss"),f=Si(o,"state");if(!s&&i.authorization_response_iss_parameter_supported)throw ce('response parameter "iss" (issuer) missing',Ee,{parameters:o});if(s&&s!==i.issuer)throw ce('unexpected "iss" (issuer) response parameter value',Ee,{expected:i.issuer,parameters:o});switch(l){case void 0:case ME:if(f!==void 0)throw ce('unexpected "state" response parameter encountered',Ee,{expected:void 0,parameters:o});break;case UE:break;default:if(it(l,'"expectedState" argument'),f!==l)throw ce(f===void 0?'response parameter "state" missing':'unexpected "state" response parameter value',Ee,{expected:l,parameters:o})}if(Si(o,"error"))throw new v0("authorization response from the server is an error",{cause:o});const d=Si(o,"id_token"),p=Si(o,"token");if(d!==void 0||p!==void 0)throw new Vt("implicit and hybrid flows are not supported");return g=new URLSearchParams(o),Sh.add(g),g;var g}async function Oc(i){let a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:y0;try{a=await i.json()}catch(l){throw o(i),ce('failed to parse "response" body as JSON',vc,l)}if(!pc(a))throw ce('"response" body must be a top level object',Ee,{body:a});return a}const pd=Symbol(),A0=Symbol(),bc=new TextEncoder,Rr=new TextDecoder;function k0(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];const l=a.reduce((d,p)=>d+p.length,0),s=new Uint8Array(l);let f=0;for(const d of a)s.set(d,f),f+=d.length;return s}function Tr(i){const a=new Uint8Array(i.length);for(let o=0;o<i.length;o++){const l=i.charCodeAt(o);if(l>127)throw new TypeError("non-ASCII string encountered in encode()");a[o]=l}return a}function R0(i){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(i);const a=atob(i),o=new Uint8Array(a.length);for(let l=0;l<a.length;
12l++)o[l]=a.charCodeAt(l);return o}function cl(i){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(typeof i=="string"?i:Rr.decode(i),{alphabet:"base64url"});let a=i;a instanceof Uint8Array&&(a=Rr.decode(a)),a=a.replace(/-/g,"+").replace(/_/g,"/");try{return R0(a)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}function md(i){let a=i;return typeof a=="string"&&(a=bc.encode(a)),Uint8Array.prototype.toBase64?a.toBase64({alphabet:"base64url",omitPadding:!0}):(function(o){if(Uint8Array.prototype.toBase64)return o.toBase64();const l=[];for(let s=0;s<o.length;s+=32768)l.push(String.fromCharCode.apply(null,o.subarray(s,s+32768)));return btoa(l.join(""))})(a).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}const Ba=function(i){return new TypeError("CryptoKey does not support this operation, its ".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"algorithm.name"," must be ").concat(i))},dr=(i,a)=>i.name===a;function yd(i,a){var o;if(o=i.hash,parseInt(o.name.slice(4),10)!==a)throw Ba("SHA-".concat(a),"algorithm.hash")}function jE(i,a,o){switch(a){case"HS256":case"HS384":case"HS512":if(!dr(i.algorithm,"HMAC"))throw Ba("HMAC");yd(i.algorithm,parseInt(a.slice(2),10));break;case"RS256":case"RS384":case"RS512":if(!dr(i.algorithm,"RSASSA-PKCS1-v1_5"))throw Ba("RSASSA-PKCS1-v1_5");yd(i.algorithm,parseInt(a.slice(2),10));break;case"PS256":case"PS384":case"PS512":if(!dr(i.algorithm,"RSA-PSS"))throw Ba("RSA-PSS");yd(i.algorithm,parseInt(a.slice(2),10));break;
12case"Ed25519":case"EdDSA":if(!dr(i.algorithm,"Ed25519"))throw Ba("Ed25519");break;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":if(!dr(i.algorithm,a))throw Ba(a);break;case"ES256":case"ES384":case"ES512":{if(!dr(i.algorithm,"ECDSA"))throw Ba("ECDSA");const l=(function(s){switch(s){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}})(a);if(i.algorithm.namedCurve!==l)throw Ba(l,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}(function(l,s){if(s&&!l.usages.includes(s))throw new TypeError("CryptoKey does not support this operation, its usages must include ".concat(s,"."))})(i,o)}function O0(i,a){for(var o=arguments.length,l=new Array(o>2?o-2:0),s=2;s<o;s++)l[s-2]=arguments[s];if((l=l.filter(Boolean)).length>2){const d=l.pop();i+="one of type ".concat(l.join(", "),", or ").concat(d,".")}else l.length===2?i+="one of type ".concat(l[0]," or ").concat(l[1],"."):i+="of type ".concat(l[0],".");if(a==null)i+=" Received ".concat(a);else if(typeof a=="function"&&a.name)i+=" Received function ".concat(a.name);else if(typeof a=="object"&&a!=null){var f;(f=a.constructor)!==null&&f!==void 0&&f.name&&(i+=" Received an instance of ".concat(a.constructor.name))}return i}const Sv=function(i,a){for(var o=arguments.length,l=new Array(o>2?o-2:0),s=2;s<o;s++)l[s-2]=arguments[s];return O0("Key for the ".concat(i," algorithm must be "),a,...l)};class vt extends Error{constructor(a,o){var l;super(a,o),V(this,"code","ERR_JOSE_GENERIC"),this.name=this.constructor.name,(l=Error.captureStackTrace)===null||l===void 0||l.call(Error,this,this.constructor)}}V(vt,"code","ERR_JOSE_GENERIC");class vn extends vt{constructor(a,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"unspecified",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unspecified";super(a,{cause:{claim:l,reason:s,payload:o}}),V(this,"code","ERR_JWT_CLAIM_VALIDATION_FAILED"),V(this,"claim",void 0),V(this,"reason",void 0),V(this,"payload",void 0),this.claim=l,this.reason=s,this.payload=o}}V(vn,"code","ERR_JWT_CLAIM_VALIDATION_FAILED");class Vd extends vt{constructor(a,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"unspecified",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unspecified";super(a,{cause:{claim:l,reason:s,payload:o}}),V(this,"code","ERR_JWT_EXPIRED"),V(this,"claim",void 0),V(this,"reason",void 0),V(this,"payload",void 0),this.claim=l,this.reason=s,this.payload=o}}V(Vd,"code","ERR_JWT_EXPIRED");class C0 extends vt{constructor(){super(...arguments),V(this,"code","ERR_JOSE_ALG_NOT_ALLOWED")}}V(C0,"code","ERR_JOSE_ALG_NOT_ALLOWED");class qt extends vt{constructor(){super(...arguments),V(this,"code","ERR_JOSE_NOT_SUPPORTED")}}V(qt,"code","ERR_JOSE_NOT_SUPPORTED");V(class extends vt{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"decryption operation failed",arguments.length>1?arguments[1]:void 0),V(this,"code","ERR_JWE_DECRYPTION_FAILED")}},"code","ERR_JWE_DECRYPTION_FAILED");V(class extends vt{constructor(){super(...arguments),V(this,"code","ERR_JWE_INVALID")}},"code","ERR_JWE_INVALID");class Ve extends vt{constructor(){super(...arguments),V(this,"code","ERR_JWS_INVALID")}}V(Ve,"code","ERR_JWS_INVALID");class wn extends vt{constructor(){super(...arguments),V(this,"code","ERR_JWT_INVALID")}}V(wn,"code","ERR_JWT_INVALID");V(class extends vt{constructor(){super(...arguments),V(this,"code","ERR_JWK_INVALID")}},"code","ERR_JWK_INVALID");class Eh extends vt{constructor(){super(...arguments),V(this,"code","ERR_JWKS_INVALID")}}V(Eh,"code","ERR_JWKS_INVALID");class Th extends vt{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"no applicable key found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),V(this,"code","ERR_JWKS_NO_MATCHING_KEY")}}V(Th,"code","ERR_JWKS_NO_MATCHING_KEY");class x0 extends vt{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"multiple matching keys found in the JSON Web Key Set",arguments.length>1?arguments[1]:void 0),V(this,Symbol.asyncIterator,void 0),V(this,"code","
12ERR_JWKS_MULTIPLE_MATCHING_KEYS")}}V(x0,"code","ERR_JWKS_MULTIPLE_MATCHING_KEYS");class z0 extends vt{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"request timed out",arguments.length>1?arguments[1]:void 0),V(this,"code","ERR_JWKS_TIMEOUT")}}V(z0,"code","ERR_JWKS_TIMEOUT");class D0 extends vt{constructor(){super(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"signature verification failed",arguments.length>1?arguments[1]:void 0),V(this,"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED")}}V(D0,"code","ERR_JWS_SIGNATURE_VERIFICATION_FAILED");const U0=i=>{if(i?.[Symbol.toStringTag]==="CryptoKey")return!0;try{return i instanceof CryptoKey}catch{return!1}},M0=i=>i?.[Symbol.toStringTag]==="KeyObject",_v=i=>U0(i)||M0(i);function Ev(i,a){if(i)throw new TypeError("".concat(a," can only be called once"))}function Tv(i,a,o){try{return cl(i)}catch{throw new o("Failed to base64url decode the ".concat(a))}}function Nn(i){if(typeof(a=i)!="object"||a===null||Object.prototype.toString.call(i)!=="[object Object]")return!1;var a;if(Object.getPrototypeOf(i)===null)return!0;let o=i;for(;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(i)===o}function N0(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];const l=a.filter(Boolean);if(l.length===0||l.length===1)return!0;let s;for(const f of l){const d=Object.keys(f);if(s&&s.size!==0)for(const p of d){if(s.has(p))return!1;s.add(p)}else s=new Set(d)}return!0}const Pd=i=>Nn(i)&&typeof i.kty=="string";function j0(i,a){if(i.startsWith("RS")||i.startsWith("PS")){const o=a.algorithm.modulusLength;if(typeof o!="number"||o<2048)throw new TypeError("".concat(i," requires key modulusLength to be 2048 bits or larger"))}}function H0(i,a){const o="SHA-".concat(i.slice(-3));switch(i){case"HS256":case"HS384":case"HS512":return{hash:o,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:o,name:"RSA-PSS",saltLength:parseInt(i.slice(-3),10)>>3};case"RS256":case"RS384":case"RS512":return{hash:o,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:o,name:"ECDSA",namedCurve:a.namedCurve};
12case"Ed25519":case"EdDSA":return{name:"Ed25519"};case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return{name:i};default:throw new qt("alg ".concat(i," is not supported either by JOSE or your javascript runtime"))}}async function L0(i,a,o){if(a instanceof Uint8Array){if(!i.startsWith("HS"))throw new TypeError((function(l){for(var s=arguments.length,f=new Array(s>1?s-1:0),d=1;d<s;d++)f[d-1]=arguments[d];return O0("Key must be ",l,...f)})(a,"CryptoKey","KeyObject","JSON Web Key"));return crypto.subtle.importKey("raw",a,{hash:"SHA-".concat(i.slice(-3)),name:"HMAC"},!1,[o])}return jE(a,i,o),a}const Ks='Invalid or unsupported JWK "alg" (Algorithm) Parameter value';async function nc(i){var a,o;if(!i.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const l=(function(p){let g,m;switch(p.kty){case"AKP":switch(p.alg){case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":g={name:p.alg},m=p.priv?["sign"]:["verify"];break;default:throw new qt(Ks)}break;case"RSA":switch(p.alg){case"PS256":case"PS384":case"PS512":g={name:"RSA-PSS",hash:"SHA-".concat(p.alg.slice(-3))},m=p.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":g={name:"RSASSA-PKCS1-v1_5",hash:"SHA-".concat(p.alg.slice(-3))},m=p.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":g={name:"RSA-OAEP",hash:"SHA-".concat(parseInt(p.alg.slice(-3),10)||1)},m=p.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new qt(Ks)}break;case"EC":switch(p.alg){case"ES256":case"ES384":case"ES512":g={name:"ECDSA",namedCurve:{ES256:"P-256",ES384:"P-384",ES512:"P-521"}[p.alg]},m=p.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":g={name:"ECDH",namedCurve:p.crv},m=p.d?["deriveBits"]:[];break;default:throw new qt(Ks)}break;
12case"OKP":switch(p.alg){case"Ed25519":case"EdDSA":g={name:"Ed25519"},m=p.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":g={name:p.crv},m=p.d?["deriveBits"]:[];break;default:throw new qt(Ks)}break;default:throw new qt('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:g,keyUsages:m}})(i),s=l.algorithm,f=l.keyUsages,d=P({},i);return d.kty!=="AKP"&&delete d.alg,delete d.use,crypto.subtle.importKey("jwk",d,s,(a=i.ext)!==null&&a!==void 0?a:!i.d&&!i.priv,(o=i.key_ops)!==null&&o!==void 0?o:f)}const hr="given KeyObject instance cannot be used for this algorithm";let Xa;const Av=async function(i,a,o){let l=arguments.length>3&&arguments[3]!==void 0&&arguments[3];Xa||(Xa=new WeakMap);let s=Xa.get(i);if(s!=null&&s[o])return s[o];const f=await nc(P(P({},a),{},{alg:o}));return l&&Object.freeze(i),s?s[o]=f:Xa.set(i,{[o]:f}),f};async function K0(i,a){if(i instanceof Uint8Array||U0(i))return i;if(M0(i)){if(i.type==="secret")return i.export();if("toCryptoKey"in i&&typeof i.toCryptoKey=="function")try{return((l,s)=>{Xa||(Xa=new WeakMap);let f=Xa.get(l);if(f!=null&&f[s])return f[s];const d=l.type==="public",p=!!d;let g;if(l.asymmetricKeyType==="x25519"){switch(s){case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":break;default:throw new TypeError(hr)}g=l.toCryptoKey(l.asymmetricKeyType,p,d?[]:["deriveBits"])}if(l.asymmetricKeyType==="ed25519"){if(s!=="EdDSA"&&s!=="Ed25519")throw new TypeError(hr);g=l.toCryptoKey(l.asymmetricKeyType,p,[d?"verify":"sign"])}switch(l.asymmetricKeyType){case"ml-dsa-44":case"ml-dsa-65":case"ml-dsa-87":if(s!==l.asymmetricKeyType.toUpperCase())throw new TypeError(hr);g=l.toCryptoKey(l.asymmetricKeyType,p,[d?"verify":"sign"])}if(l.asymmetricKeyType==="rsa"){let y;switch(s){case"RSA-OAEP":y="SHA-1";break;case"RS256":case"PS256":case"RSA-OAEP-256":y="SHA-256";break;case"RS384":case"PS384":case"RSA-OAEP-384":y="SHA-384";break;case"RS512":case"PS512":case"RSA-OAEP-512":y="SHA-512";break;default:throw new TypeError(hr)}if(s.startsWith("RSA-OAEP"))return l.toCryptoKey({name:"RSA-OAEP",hash:y},p,d?["encrypt"]:["decrypt"]);g=l.toCryptoKey({name:s.startsWith("PS")?"RSA-PSS":"RSASSA-PKCS1-v1_5",hash:y},p,[d?"verify":"sign"])}if(l.asymmetricKeyType==="ec"){var m;const y=new Map([["prime256v1","P-256"],["secp384r1","P-384"],["secp521r1","P-521"]]).get((m=l.asymmetricKeyDetails)===null||m===void 0?void 0:m.namedCurve);if(!y)throw new TypeError(hr);const v={ES256:"P-256",ES384:"P-384",ES512:"P-521"};v[s]&&y===v[s]&&(g=l.toCryptoKey({name:"ECDSA",namedCurve:y},p,[d?"verify":"sign"])),s.startsWith("ECDH-ES")&&(g=l.toCryptoKey({name:"ECDH",namedCurve:y},p,d?[]:["deriveBits"]))}if(!g)throw new TypeError(hr);return f?f[s]=g:Xa.set(l,{[s]:g}),g})(i,a)}catch(l){if(l instanceof TypeError)throw l}let o=i.export({format:"jwk"});return Av(i,o,a)}if(Pd(i))return i.k?cl(i.k):Av(i,i,a,!0);throw new Error("unreachable")}const gd=(i,a)=>{if(i.byteLength!==a.length)return!1;for(let o=0;o<i.byteLength;o++)if(i[o]!==a[o])return!1;return!0},Qo=i=>{const a=i.data[i.pos++];if(128&a){const o=127&a;let l=0;for(let s=0;s<o;s++)l=l<<8|i.data[i.pos++];return l}return a},Io=(i,a,o)=>{if(i.data[i.pos++]!==a)throw new Error(o)},kv=(i,a)=>{const o=i.data.subarray(i.pos,i.pos+a);return i.pos+=a,o},HE=i=>{const a=(s=>{Io(s,6,"Expected algorithm OID");const f=Qo(s);return kv(s,f)})(i);if(gd(a,[43,101,110]))return"X25519";if(!gd(a,[42,134,72,206,61,2,1]))throw new Error("Unsupported key algorithm");Io(i,6,"Expected curve OID");const o=Qo(i),l=kv(i,o);for(const s of[{name:"P-256",oid:[42,134,72,206,61,3,1,7]},{name:"P-384",oid:[43,129,4,0,34]},{name:"P-521",oid:[43,129,4,0,35]}]){const f=s.name,d=s.oid;if(gd(l,d))return f}throw new Error("Unsupported named curve")},LE=async(i,a,o,l)=>{var s;let f,d;const p=()=>["sign"];switch(o){case"PS256":case"PS384":case"PS512":f={name:"RSA-PSS",hash:"SHA-".concat(o.slice(-3))},d=p();break;case"RS256":case"RS384":case"RS512":f={name:"RSASSA-PKCS1-v1_5",hash:"SHA-".concat(o.slice(-3))},d=p();break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":f={name:"RSA-OAEP",hash:"SHA-".concat(parseInt(o.slice(-3),10)||1)},d=["decrypt","unwrapKey"];break;case"ES256":case"ES384":case"ES512":f={name:"ECDSA",namedCurve:{ES256:"P-256",ES384:"P-384",ES512:"P-521"}[o]},d=p();break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":try{const g=l.getNamedCurve(a);f=g==="X25519"?{name:"X25519"}:{name:"ECDH",namedCurve:g}}catch{throw new qt("Invalid or unsupported key format")}d=["deriveBits"];break;
12case"Ed25519":case"EdDSA":f={name:"Ed25519"},d=p();break;case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":f={name:o},d=p();break;default:throw new qt('Invalid or unsupported "alg" (Algorithm) value')}return crypto.subtle.importKey(i,a,f,(s=l?.extractable)!==null&&s!==void 0?s:!1,d)},KE=(i,a,o)=>{var l;const s=((d,p)=>R0(d.replace(p,"")))(i,/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g);let f=o;return a!=null&&(l=a.startsWith)!==null&&l!==void 0&&l.call(a,"ECDH-ES")&&(f||(f={}),f.getNamedCurve=d=>{const p={data:d,pos:0};return(function(g){Io(g,48,"Invalid PKCS#8 structure"),Qo(g),Io(g,2,"Expected version field");const m=Qo(g);g.pos+=m,Io(g,48,"Expected algorithm identifier"),Qo(g)})(p),HE(p)}),LE("pkcs8",s,a,f)};async function Z0(i,a,o){if(typeof i!="string"||i.indexOf("-----BEGIN PRIVATE KEY-----")!==0)throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return KE(i,a,o)}function B0(i,a,o,l,s){if(s.crit!==void 0&&l?.crit===void 0)throw new i('"crit" (Critical) Header Parameter MUST be integrity protected');if(!l||l.crit===void 0)return new Set;if(!Array.isArray(l.crit)||l.crit.length===0||l.crit.some(d=>typeof d!="string"||d.length===0))throw new i('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let f;f=o!==void 0?new Map([...Object.entries(o),...a.entries()]):a;for(const d of l.crit){if(!f.has(d))throw new qt('Extension Header Parameter "'.concat(d,'" is not recognized'));if(s[d]===void 0)throw new i('Extension Header Parameter "'.concat(d,'" is missing'));if(f.get(d)&&l[d]===void 0)throw new i('Extension Header Parameter "'.concat(d,'" MUST be integrity protected'))}return new Set(l.crit)}const pr=i=>i?.[Symbol.toStringTag],vd=(i,a,o)=>{if(a.use!==void 0){let f;switch(o){case"sign":case"verify":f="sig";break;case"encrypt":case"decrypt":f="enc"}if(a.use!==f)throw new TypeError('Invalid key for this operation, its "use" must be "'.concat(f,'" when present'))}if(a.alg!==void 0&&a.alg!==i)throw new TypeError('Invalid key for this operation, its "alg" must be "'.concat(i,'" when present'));if(Array.isArray(a.key_ops)){var l,s;let f;switch(!0){case(o==="sign"||o==="verify"):case i==="dir":case i.includes("CBC-HS"):f=o;break;case i.startsWith("PBES2"):f="deriveBits";break;case/^A\d{3}(?:GCM)?(?:KW)?$/.test(i):f=!i.includes("GCM")&&i.endsWith("KW")?o==="encrypt"?"wrapKey":"unwrapKey":o;break;case(o==="encrypt"&&i.startsWith("RSA")):f="wrapKey";break;case o==="decrypt":f=i.startsWith("RSA")?"unwrapKey":"deriveBits"}if(f&&((l=a.key_ops)===null||l===void 0||(s=l.includes)===null||s===void 0?void 0:s.call(l,f))===!1)throw new TypeError('Invalid key for this operation, its "key_ops" must include "'.concat(f,'" when present'))}return!0};function J0(i,a,o){switch(i.substring(0,2)){case"A1":case"A2":case"di":case"HS":case"PB":((l,s,f)=>{if(!(s instanceof Uint8Array)){if(Pd(s)){if((d=>d.kty==="oct"&&typeof d.k=="string")(s)&&vd(l,s,f))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!_v(s))throw new TypeError(Sv(l,s,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"));if(s.type!=="secret")throw new TypeError("".concat(pr(s),' instances for symmetric algorithms must be of type "secret"'))}})(i,a,o);break;default:((l,s,f)=>{if(Pd(s))switch(f){case"decrypt":case"sign":if((d=>d.kty!=="oct"&&(d.kty==="AKP"&&typeof d.priv=="string"||typeof d.d=="string"))(s)&&vd(l,s,f))return;throw new TypeError("JSON Web Key for this operation must be a private JWK");case"encrypt":case"verify":if((d=>d.kty!=="oct"&&d.d===void 0&&d.priv===void 0)(s)&&vd(l,s,f))return;throw new TypeError("JSON Web Key for this operation must be a public JWK")}if(!_v(s))throw new TypeError(Sv(l,s,"CryptoKey","KeyObject","JSON Web Key"));if(s.type==="secret")throw new TypeError("".concat(pr(s),' instances for asymmetric algorithms must not be of type "secret"'));if(s.type==="public")switch(f){case"sign":throw new TypeError("".concat(pr(s),' instances for asymmetric algorithm signing must be of type "private"'));case"decrypt":throw new TypeError("".concat(pr(s),' instances for asymmetric algorithm decryption must be of type "private"'))}if(s.type==="private")switch(f){case"verify":throw new TypeError("".concat(pr(s),' instances for asymmetric algorithm verifying must be of type "public"'));case"encrypt":throw new TypeError("".concat(pr(s),' instances for asymmetric algorithm encryption must be of type "public"'))}})(i,a,o)}}var Zs,bd;let jn,Rv;(typeof navigator>"u"||(Zs=navigator.userAgent)===null||Zs===void 0||(bd=Zs.startsWith)===null||bd===void 0||!bd.call(Zs,"Mozilla/5.0 "))&&(Rv="".concat("openid-client","/").concat("v6.8.4"),jn={"user-agent":Rv});const gt=i=>ac.get(i);let ac,Bs;function G0(i){return i!==void 0?gv(i):(Bs||(Bs=new WeakMap),(a,o,l,s)=>{let f;
12return(f=Bs.get(o))||((function(d,p){if(typeof d!="string")throw Hn("".concat(p," must be a string"),fl);if(d.length===0)throw Hn("".concat(p," must not be empty"),ul)})(o.client_secret,'"metadata.client_secret"'),f=gv(o.client_secret),Bs.set(o,f)),f(a,o,l,s)})}const Tn=On,ul="ERR_INVALID_ARG_VALUE",fl="ERR_INVALID_ARG_TYPE";function Hn(i,a,o){const l=new TypeError(i,{cause:o});return Object.assign(l,{code:a}),l}function ZE(i){return(async function(a){return it(a,"codeVerifier"),Ti(await crypto.subtle.digest("SHA-256",Er(a)))})(i)}function BE(){return g0()}class wc extends Error{constructor(a,o){var l;super(a,o),V(this,"code",void 0),this.name=this.constructor.name,this.code=o?.code,(l=Error.captureStackTrace)===null||l===void 0||l.call(Error,this,this.constructor)}}function Tt(i,a,o){return new wc(i,{cause:a,code:o})}function _t(i){if(i instanceof TypeError||i instanceof wc||i instanceof Rc||i instanceof v0||i instanceof vh)throw i;if(i instanceof yh)switch(i.code){case E0:throw Tt("only requests to HTTPS are allowed",i,i.code);case T0:throw Tt("only requests to HTTP or HTTPS are allowed",i,i.code);case _h:throw Tt("unexpected HTTP response status code",i.cause,i.code);case _0:throw Tt("unexpected response content-type",i.cause,i.code);case vc:throw Tt("parsing error occured",i,i.code);case Ee:throw Tt("invalid response encountered",i,i.code);case oa:throw Tt("unexpected JWT claim value encountered",i,i.code);case qd:throw Tt("unexpected JSON attribute value encountered",i,i.code);case il:throw Tt("JWT timestamp claim value failed validation",i,i.code);default:throw Tt(i.message,i,i.code)}if(i instanceof Vt)throw Tt("unsupported operation",i,i.code);if(i instanceof DOMException)switch(i.name){case"OperationError":throw Tt("runtime operation error",i,Yd);case"NotSupportedError":throw Tt("runtime unsupported operation",i,Yd);case"TimeoutError":throw Tt("operation timed out",i,"OAUTH_TIMEOUT");case"AbortError":throw Tt("operation aborted",i,"OAUTH_ABORT")}throw new wc("something went wrong",{cause:i})}async function JE(i,a,o,l,s){const f=await(async function(g,m){var y,v;if(!(g instanceof URL))throw Hn('"server" must be an instance of URL',fl);const w=!g.href.includes("/.well-known/"),_=(y=m?.timeout)!==null&&y!==void 0?y:30,A=AbortSignal.timeout(1e3*_),O=await(w?cE(g,{algorithm:m?.algorithm,[On]:m?.[Tn],[dn]:m==null||(v=m.execute)===null||v===void 0?void 0:v.includes(xv),signal:A,headers:new Headers(jn)}):(m?.[Tn]||fetch)((gh(g,m==null||(R=m.execute)===null||R===void 0||!R.includes(xv)),g.href),{headers:Object.fromEntries(new Headers(P({accept:"application/json"},jn)).entries()),body:void 0,method:"GET",redirect:"manual",signal:A})).then(x=>(async function(J,Z){const q=J;if(!(q instanceof URL)&&q!==pd)throw Ne('"expectedIssuerIdentifier" must be an instance of URL',Nt);if(!xr(Z,Response))throw Ne('"response" must be an instance of Response',Nt);if(Z.status!==200)throw ce('"response" is not a conform Authorization Server Metadata response (unexpected HTTP status code)',_h,Z);sl(Z);const Q=await Oc(Z);if(it(Q.issuer,'"response" body "issuer" property',Ee,{body:Q}),q!==pd&&new URL(Q.issuer).href!==q.href)throw ce('"response" body "issuer" property does not match the expected value',qd,{expected:q.href,body:Q,attribute:"issuer"});return Q})(pd,x)).catch(_t);var R;return w&&new URL(O.issuer).href!==g.href&&((function(x,J,Z){return!(x.origin!=="https://login.microsoftonline.com"||Z!=null&&Z.algorithm&&Z.algorithm!=="oidc"||(J[X0]=!0,0))})(g,O,m)||(function(x,J){return!(!x.hostname.endsWith(".b2clogin.com")||J!=null&&J.algorithm&&J.algorithm!=="oidc")})(g,m)||(()=>{throw new wc("discovered metadata issuer does not match the expected issuer",{code:qd,cause:{expected:g.href,body:O,attribute:"issuer"}})})()),O})(i,s),d=new Or(f,a,o,l);let p=gt(d);if(s!=null&&s[Tn]&&(p.fetch=s[Tn]),s!=null&&s.timeout&&(p.timeout=s.timeout),s!=null&&s.execute)for(const g of s.execute)g(d);return d}new TextDecoder;const X0=Symbol();class Or{constructor(a,o,l,s){var f,d,p,g,m;if(typeof o!="string"||!o.length)throw Hn('"clientId" must be a non-empty string',fl);if(typeof l=="string"&&(l={client_secret:l}),((f=l)===null||f===void 0?void 0:f.client_id)!==void 0&&o!==l.client_id)throw Hn('"clientId" and "metadata.client_id" must be the same',ul);const y=P(P({},structuredClone(l)),{},{client_id:o});let v;y[Zd]=(d=(p=l)===null||p===void 0?void 0:p[Zd])!==null&&d!==void 0?d:0,y[Bd]=(g=(m=l)===null||m===void 0?void 0:m[Bd])!==null&&g!==void 0?g:30,v=s||(typeof y.client_secret=="string"&&y.client_secret.length?G0(y.client_secret):(O,R,x,J)=>{x.set("client_id",R.client_id)});let w=Object.freeze(y);const _=structuredClone(a);X0 in a&&(_[A0]=O=>{let R=O.claims.tid;return a.issuer.replace("{tenantid}",R)});let A=Object.freeze(_);ac||(ac=new WeakMap),ac.set(this,{__proto__:null,as:A,c:w,auth:v,tlsOnly:!0,jwksCache:{}})}serverMetadata(){const a=structuredClone(gt(this).as);return(function(o){Object.defineProperties(o,(function(l){return{supportsPKCE:{__proto__:null,value(){var s;let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"S256";return((s=l.code_challenge_methods_supported)===null||s===void 0?void 0:s.includes(f))===!0}}}})(o))})(a),a}clientMetadata(){return structuredClone(gt(this).c)}get timeout(){return gt(this).timeout}set timeout(a){gt(this).timeout=a}get[Tn](){return gt(this).fetch}set[Tn](a){gt(this).fetch=a}}function dl(i){Object.defineProperties(i,(function(a){let o;if(a.expires_in!==void 0){const l=new Date;l.setSeconds(l.getSeconds()+a.expires_in),o=l.getTime()}
12return{expiresIn:{__proto__:null,value(){if(o){const l=Date.now();return o>l?Math.floor((o-l)/1e3):0}}},claims:{__proto__:null,value(){try{return Xd(this)}catch{return}}}}})(i))}async function Ov(i,a,o){var l;let s=arguments.length>3&&arguments[3]!==void 0&&arguments[3];const f=(l=i.headers.get("retry-after"))===null||l===void 0?void 0:l.trim();if(f===void 0)return;let d;if(/^\d+$/.test(f))d=parseInt(f,10);else{const p=new Date(f);if(Number.isFinite(p.getTime())){const g=new Date,m=p.getTime()-g.getTime();m>0&&(d=Math.ceil(m/1e3))}}if(s&&!Number.isFinite(d))throw new yh("invalid Retry-After header value",{cause:i});d>a&&await Y0(d-a,o)}function Y0(i,a){return new Promise((o,l)=>{const s=f=>{try{a.throwIfAborted()}catch(p){return void l(p)}if(f<=0)return void o();const d=Math.min(f,5);setTimeout(()=>s(f-d),1e3*d)};s(i)})}async function Cv(i,a){ua(i);const o=gt(i),l=o.as,s=o.c,f=o.auth,d=o.fetch,p=o.tlsOnly,g=o.timeout;return(async function(m,y,v,w,_){kn(m),Rn(y);const A=ol(m,"backchannel_authentication_endpoint",y.use_mtls_endpoint_aliases,_?.[dn]!==!0),O=new URLSearchParams(w);O.set("client_id",y.client_id);const R=kc(_?.headers);return R.set("accept","application/json"),wh(m,y,v,A,O,R,_)})(l,s,f,a,{[On]:d,[dn]:!p,headers:new Headers(jn),signal:ki(g)}).then(m=>(async function(y,v,w){if(kn(y),Rn(v),!xr(w,Response))throw Ne('"response" must be an instance of Response',Nt);await bh(w,200,"Backchannel Authentication Endpoint"),sl(w);const _=await Oc(w);it(_.auth_req_id,'"response" body "auth_req_id" property',Ee,{body:_});let A=typeof _.expires_in!="number"?parseFloat(_.expires_in):_.expires_in;return qa(A,!0,'"response" body "expires_in" property',Ee,{body:_}),_.expires_in=A,_.interval!==void 0&&qa(_.interval,!1,'"response" body "interval" property',Ee,{body:_}),_})(l,s,m)).catch(_t)}async function q0(i,a,o,l){var s,f;ua(i),o=new URLSearchParams(o);let d=(s=a.interval)!==null&&s!==void 0?s:5;const p=(f=l?.signal)!==null&&f!==void 0?f:AbortSignal.timeout(1e3*a.expires_in);try{await Y0(d,p)}catch(G){_t(G)}const g=gt(i),m=g.as,y=g.c,v=g.auth,w=g.fetch,_=g.tlsOnly,A=g.nonRepudiation,O=g.timeout,R=g.decrypt,x=(G,ne)=>q0(i,P(P({},a),{},{interval:G}),o,P(P({},l),{},{signal:p,flag:ne})),J=(function(G,ne){const he=ki(ne);if(!he)return{signal:G,cleanup(){}};const Ae=new AbortController,ge=Ce=>{const rt=Ce.target;Ae.abort(rt.reason)};return G.aborted?Ae.abort(G.reason):he.aborted?Ae.abort(he.reason):(G.addEventListener("abort",ge,{once:!0}),he.addEventListener("abort",ge,{once:!0})),{signal:Ae.signal,cleanup(){G.removeEventListener("abort",ge),he.removeEventListener("abort",ge)}}})(p,O),Z=await(async function(G,ne,he,Ae,ge){kn(G),Rn(ne),it(Ae,'"authReqId"');const Ce=new URLSearchParams(ge?.additionalParameters);return Ce.set("auth_req_id",Ae),ll(G,ne,he,"urn:openid:params:grant-type:ciba",Ce,ge)})(m,y,v,a.auth_req_id,{[On]:w,[dn]:!_,additionalParameters:o,DPoP:l?.DPoP,headers:new Headers(jn),signal:J.signal}).catch(_t).finally(J.cleanup);var q;if(Z.status===503&&Z.headers.has("retry-after"))return await Ov(Z,d,p,!0),await((q=Z.body)===null||q===void 0?void 0:q.cancel()),x(d);const Q=(async function(G,ne,he,Ae){return kr(G,ne,he,void 0,Ae?.[sa],Ae?.recognizedTokenTypes)})(m,y,Z,{[sa]:R});let ae;try{ae=await Q}catch(G){if(zr(G,l))return x(d,la);if(G instanceof Rc)switch(G.error){case"slow_down":d+=5;case"authorization_pending":return await Ov(G.response,d,p),x(d)}_t(G)}return ae.id_token&&await A?.(Z),dl(ae),ae}function xv(i){gt(i).tlsOnly=!1}async function Wd(i,a,o,l,s){if(ua(i),!(s?.flag===la||a instanceof URL||(function(G,ne){try{return Object.getPrototypeOf(G)[Symbol.toStringTag]===ne}catch{return!1}})(a,"Request")))throw Hn('"currentUrl" must be an instance of URL, or Request',fl);let f,d;const p=gt(i),g=p.as,m=p.c,y=p.auth,v=p.fetch,w=p.tlsOnly,_=p.jarm,A=p.hybrid,O=p.nonRepudiation,R=p.timeout,x=p.decrypt,J=p.implicit;if(s?.flag===la)f=s.authResponse,d=s.redirectUri;else{if(!(a instanceof URL)){const G=a;switch(a=new URL(a.url),G.method){case"GET":break;case"POST":const ne=new URLSearchParams(await zE(G));if(A)a.hash=ne.toString();else for(const he of ne.entries()){var Z=Pt(he,2);const Ae=Z[0],ge=Z[1];a.searchParams.append(Ae,ge)}break;
12default:throw Hn("unexpected Request HTTP method",ul)}}switch(d=(function(G){return(G=new URL(G)).search="",G.hash="",G.href})(a),!0){case!!_:f=await _(a,o?.expectedState);break;case!!A:f=await A(a,o?.expectedNonce,o?.expectedState,o?.maxAge);break;case!!J:throw new TypeError("authorizationCodeGrant() cannot be used by response_type=id_token clients");default:try{f=NE(g,m,a.searchParams,o?.expectedState)}catch(G){_t(G)}}}const q=await(async function(G,ne,he,Ae,ge,Ce,rt){if(kn(G),Rn(ne),!Sh.has(Ae))throw Ne('"callbackParameters" must be an instance of URLSearchParams obtained from "validateAuthResponse()", or "validateJwtAuthResponse()',St);it(ge,'"redirectUri"');const st=Si(Ae,"code");if(!st)throw ce('no authorization code in "callbackParameters"',Ee);const Le=new URLSearchParams(rt?.additionalParameters);return Le.set("redirect_uri",ge),Le.set("code",st),Ce!==bv&&(it(Ce,'"codeVerifier"'),Le.set("code_verifier",Ce)),ll(G,ne,he,"authorization_code",Le,rt)})(g,m,y,f,d,o?.pkceCodeVerifier||bv,{additionalParameters:l,[On]:v,[dn]:!w,DPoP:s?.DPoP,headers:new Headers(jn),signal:ki(R)}).catch(_t);typeof o?.expectedNonce!="string"&&typeof o?.maxAge!="number"||(o.idTokenExpected=!0);const Q=TE(g,m,q,{expectedNonce:o?.expectedNonce,maxAge:o?.maxAge,requireIdToken:o?.idTokenExpected,[sa]:x});let ae;try{ae=await Q}catch(G){if(zr(G,s))return Wd(i,void 0,o,l,P(P({},s),{},{flag:la,authResponse:f,redirectUri:d}));_t(G)}return ae.id_token&&await O?.(q),dl(ae),ae}async function V0(i,a,o,l){ua(i),o=new URLSearchParams(o);const s=gt(i),f=s.as,d=s.c,p=s.auth,g=s.fetch,m=s.tlsOnly,y=s.nonRepudiation,v=s.timeout,w=s.decrypt,_=await(async function(R,x,J,Z,q){kn(R),Rn(x),it(Z,'"refreshToken"');const Q=new URLSearchParams(q?.additionalParameters);return Q.set("refresh_token",Z),ll(R,x,J,"refresh_token",Q,q)})(f,d,p,a,{[On]:g,[dn]:!m,additionalParameters:o,DPoP:l?.DPoP,headers:new Headers(jn),signal:ki(v)}).catch(_t),A=(async function(R,x,J,Z){return kr(R,x,J,void 0,Z?.[sa],Z?.recognizedTokenTypes)})(f,d,_,{[sa]:w});let O;try{O=await A}catch(R){if(zr(R,l))return V0(i,a,o,P(P({},l),{},{flag:la}));_t(R)}return O.id_token&&await y?.(_),dl(O),O}async function P0(i,a,o){ua(i),a=new URLSearchParams(a);const l=gt(i),s=l.as,f=l.c,d=l.auth,p=l.fetch,g=l.tlsOnly,m=l.timeout,y=await(async function(_,A,O,R,x){return kn(_),Rn(A),ll(_,A,O,"client_credentials",new URLSearchParams(R),x)})(s,f,d,a,{[On]:p,[dn]:!g,DPoP:o?.DPoP,headers:new Headers(jn),signal:ki(m)}).catch(_t),v=(async function(_,A,O,R){return kr(_,A,O,void 0,void 0,void 0)})(s,f,y);let w;try{w=await v}catch(_){if(zr(_,o))return P0(i,a,P(P({},o),{},{flag:la}));_t(_)}return dl(w),w}function Qd(i,a){ua(i);const o=gt(i),l=o.as,s=o.c,f=o.tlsOnly,d=o.hybrid,p=o.jarm,g=o.implicit,m=ol(l,"authorization_endpoint",!1,f);if((a=new URLSearchParams(a)).has("client_id")||a.set("client_id",s.client_id),!a.has("request_uri")&&!a.has("request")){if(a.has("response_type")||a.set("response_type",d?"code id_token":g?"id_token":"code"),g&&!a.has("nonce"))throw Hn("response_type=id_token clients must provide a nonce parameter in their authorization request parameters",ul);p&&a.set("response_mode","jwt")}for(const v of a.entries()){var y=Pt(v,2);const w=y[0],_=y[1];m.searchParams.append(w,_)}return m}async function W0(i,a,o){ua(i);const l=Qd(i,a),s=gt(i),f=s.as,d=s.c,p=s.auth,g=s.fetch,m=s.tlsOnly,y=s.timeout,v=await(async function(A,O,R,x,J){var Z;kn(A),Rn(O);const q=ol(A,"pushed_authorization_request_endpoint",O.use_mtls_endpoint_aliases,J?.[dn]!==!0),Q=new URLSearchParams(x);Q.set("client_id",O.client_id);const ae=kc(J?.headers);ae.set("accept","application/json"),J?.DPoP!==void 0&&(b0(J.DPoP),await J.DPoP.addProof(q,ae,"POST"));const G=await wh(A,O,R,q,Q,ae,J);return J==null||(Z=J.DPoP)===null||Z===void 0||Z.cacheNonce(G,q),G})(f,d,p,l.searchParams,{[On]:g,[dn]:!m,DPoP:o?.DPoP,headers:new Headers(jn),signal:ki(y)}).catch(_t),w=(async function(A,O,R){if(kn(A),Rn(O),!xr(R,Response))throw Ne('"response" must be an instance of Response',Nt);await bh(R,201,"Pushed Authorization Request Endpoint"),sl(R);const x=await Oc(R);it(x.request_uri,'"response" body "request_uri" property',Ee,{body:x});let J=typeof x.expires_in!="number"?parseFloat(x.expires_in):x.expires_in;return qa(J,!0,'"response" body "expires_in" property',Ee,{body:x}),x.expires_in=J,x})(f,d,v);let _;try{_=await w}catch(A){if(zr(A,o))return W0(i,a,P(P({},o),{},{flag:la}));_t(A)}return Qd(i,{request_uri:_.request_uri})}function ua(i){if(!(i instanceof Or))throw Hn('"config" must be an instance of Configuration',fl);if(Object.getPrototypeOf(i)!==Or.prototype)throw Hn("subclassing Configuration is not allowed",ul)}function ki(i){return i?AbortSignal.timeout(1e3*i):void 0}function zr(i,a){return!(a==null||!a.DPoP||a.flag===la)&&(function(o){if
12(o instanceof vh){const l=o.cause,s=l[0];return l.length===1&&s.scheme==="dpop"&&s.parameters.error==="use_dpop_nonce"}return o instanceof Rc&&o.error==="use_dpop_nonce"})(i)}Object.freeze(Or.prototype);const la=Symbol();async function Va(i,a,o,l){ua(i);const s=gt(i),f=s.as,d=s.c,p=s.auth,g=s.fetch,m=s.tlsOnly,y=s.timeout,v=s.decrypt,w=s.nonRepudiation,_=await(async function(x,J,Z,q,Q,ae){return kn(x),Rn(J),it(q,'"grantType"'),ll(x,J,Z,q,new URLSearchParams(Q),ae)})(f,d,p,a,new URLSearchParams(o),{[On]:g,[dn]:!m,DPoP:l?.DPoP,headers:new Headers(jn),signal:ki(y)}).catch(_t);let A;a==="urn:ietf:params:oauth:grant-type:token-exchange"&&(A={n_a:()=>{}});const O=(async function(x,J,Z,q){return kr(x,J,Z,void 0,q?.[sa],q?.recognizedTokenTypes)})(f,d,_,{[sa]:v,recognizedTokenTypes:A});let R;try{R=await O}catch(x){if(zr(x,l))return Va(i,a,o,P(P({},l),{},{flag:la}));_t(x)}return R.id_token&&await w?.(_),dl(R),R}async function GE(i,a,o){if(!Nn(i))throw new Ve("Flattened JWS must be an object");if(i.protected===void 0&&i.header===void 0)throw new Ve('Flattened JWS must have either of the "protected" or "header" members');if(i.protected!==void 0&&typeof i.protected!="string")throw new Ve("JWS Protected Header incorrect type");if(i.payload===void 0)throw new Ve("JWS Payload missing");if(typeof i.signature!="string")throw new Ve("JWS Signature missing or incorrect type");if(i.header!==void 0&&!Nn(i.header))throw new Ve("JWS Unprotected Header incorrect type");let l={};if(i.protected)try{const O=cl(i.protected);l=JSON.parse(Rr.decode(O))}catch{throw new Ve("JWS Protected Header is invalid")}if(!N0(l,i.header))throw new Ve("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const s=P(P({},l),i.header);let f=!0;if(B0(Ve,new Map([["b64",!0]]),o?.crit,l,s).has("b64")&&(f=l.b64,typeof f!="boolean"))throw new Ve('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const d=s.alg;if(typeof d!="string"||!d)throw new Ve('JWS "alg" (Algorithm) Header Parameter missing or invalid');const p=o&&(function(O,R){if(R!==void 0&&(!Array.isArray(R)||R.some(x=>typeof x!="string")))throw new TypeError('"'.concat(O,'" option must be an array of strings'));if(R)return new Set(R)})("algorithms",o.algorithms);if(p&&!p.has(d))throw new C0('"alg" (Algorithm) Header Parameter value not allowed');if(f){if(typeof i.payload!="string")throw new Ve("JWS Payload must be a string")}else if(typeof i.payload!="string"&&!(i.payload instanceof Uint8Array))throw new Ve("JWS Payload must be a string or an Uint8Array instance");let g=!1;typeof a=="function"&&(a=await a(l,i),g=!0),J0(d,a,"verify");const m=k0(i.protected!==void 0?Tr(i.protected):new Uint8Array,Tr("."),typeof i.payload=="string"?f?Tr(i.payload):bc.encode(i.payload):i.payload),y=Tv(i.signature,"signature",Ve),v=await K0(a,d);if(!await(async function(O,R,x,J){const Z=await L0(O,R,"verify");j0(O,Z);const q=H0(O,Z.algorithm);try{return await crypto.subtle.verify(q,Z,x,J)}catch{return!1}})(d,v,y,m))throw new D0;let _;_=f?Tv(i.payload,"payload",Ve):typeof i.payload=="string"?bc.encode(i.payload):i.payload;const A={payload:_};return i.protected!==void 0&&(A.protectedHeader=l),i.header!==void 0&&(A.unprotectedHeader=i.header),g?P(P({},A),{},{key:v}):A}const Ja=i=>Math.floor(i.getTime()/1e3),XE=86400,YE=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i;function Fo(i){const a=YE.exec(i);if(!a||a[4]&&a[1])throw new TypeError("Invalid time period format");const o=parseFloat(a[2]);let l;switch(a[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":l=Math.round(o);break;case"minute":case"minutes":case"min":case"mins":case"m":l=Math.round(60*o);break;case"hour":case"hours":case"hr":case"hrs":case"h":l=Math.round(3600*o);break;case"day":case"days":case"d":l=Math.round(o*XE);break;case"week":case"weeks":case"w":l=Math.round(604800*o);break;default:l=Math.round(31557600*o)}return a[1]==="-"||a[4]==="ago"?-l:l}function mr(i,a){if(!Number.isFinite(a))throw new TypeError("Invalid ".concat(i," input"));return a}const zv=i=>i.includes("/")?i.toLowerCase():"application/".concat(i.toLowerCase());function qE(i,a){let o,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{o=JSON.parse(Rr.decode(a))}catch{}if(!Nn(o))throw new wn("JWT Claims Set must be a top-level JSON object");const s=l.typ;
12if(s&&(typeof i.typ!="string"||zv(i.typ)!==zv(s)))throw new vn('unexpected "typ" JWT header value',o,"typ","check_failed");const f=l.requiredClaims,d=f===void 0?[]:f,p=l.issuer,g=l.subject,m=l.audience,y=l.maxTokenAge,v=[...d];y!==void 0&&v.push("iat"),m!==void 0&&v.push("aud"),g!==void 0&&v.push("sub"),p!==void 0&&v.push("iss");for(const x of new Set(v.reverse()))if(!(x in o))throw new vn('missing required "'.concat(x,'" claim'),o,x,"missing");if(p&&!(Array.isArray(p)?p:[p]).includes(o.iss))throw new vn('unexpected "iss" claim value',o,"iss","check_failed");if(g&&o.sub!==g)throw new vn('unexpected "sub" claim value',o,"sub","check_failed");if(m&&(w=o.aud,_=typeof m=="string"?[m]:m,!(typeof w=="string"?_.includes(w):Array.isArray(w)&&_.some(Set.prototype.has.bind(new Set(w))))))throw new vn('unexpected "aud" claim value',o,"aud","check_failed");var w,_;let A;switch(typeof l.clockTolerance){case"string":A=Fo(l.clockTolerance);break;case"number":A=l.clockTolerance;break;case"undefined":A=0;break;default:throw new TypeError("Invalid clockTolerance option type")}const O=l.currentDate,R=Ja(O||new Date);if((o.iat!==void 0||y)&&typeof o.iat!="number")throw new vn('"iat" claim must be a number',o,"iat","invalid");if(o.nbf!==void 0){if(typeof o.nbf!="number")throw new vn('"nbf" claim must be a number',o,"nbf","invalid");if(o.nbf>R+A)throw new vn('"nbf" claim timestamp check failed',o,"nbf","check_failed")}if(o.exp!==void 0){if(typeof o.exp!="number")throw new vn('"exp" claim must be a number',o,"exp","invalid");if(o.exp<=R-A)throw new Vd('"exp" claim timestamp check failed',o,"exp","check_failed")}if(y){const x=R-o.iat;if(x-A>(typeof y=="number"?y:Fo(y)))throw new Vd('"iat" claim timestamp check failed (too far in the past)',o,"iat","check_failed");if(x<0-A)throw new vn('"iat" claim timestamp check failed (it should be in the past)',o,"iat","check_failed")}return o}var lt=new WeakMap;class VE{constructor(a){if(ue(this,lt,void 0),!Nn(a))throw new TypeError("JWT Claims Set MUST be an object");re(lt,this,structuredClone(a))}data(){return bc.encode(JSON.stringify(k(lt,this)))}get iss(){return k(lt,this).iss}set iss(a){k(lt,this).iss=a}get sub(){return k(lt,this).sub}set sub(a){k(lt,this).sub=a}get aud(){return k(lt,this).aud}set aud(a){k(lt,this).aud=a}set jti(a){k(lt,this).jti=a}set nbf(a){typeof a=="number"?k(lt,this).nbf=mr("setNotBefore",a):a instanceof Date?k(lt,this).nbf=mr("setNotBefore",Ja(a)):k(lt,this).nbf=Ja(new Date)+Fo(a)}set exp(a){typeof a=="number"?k(lt,this).exp=mr("setExpirationTime",a):a instanceof Date?k(lt,this).exp=mr("setExpirationTime",Ja(a)):k(lt,this).exp=Ja(new Date)+Fo(a)}set iat(a){a===void 0?k(lt,this).iat=Ja(new Date):a instanceof Date?k(lt,this).iat=mr("setIssuedAt",Ja(a)):k(lt,this).iat=mr("setIssuedAt",typeof a=="string"?Ja(new Date)+Fo(a):a)}}async function PE(i,a,o){var l;const s=await(async function(d,p,g){if(d instanceof Uint8Array&&(d=Rr.decode(d)),typeof d!="string")throw new Ve("Compact JWS must be a string or Uint8Array");const m=d.split("."),y=m[0],v=m[1],w=m[2];if(m.length!==3)throw new Ve("Invalid Compact JWS");const _=await GE({payload:v,protected:y,signature:w},p,g),A={payload:_.payload,protectedHeader:_.protectedHeader};return typeof p=="function"?P(P({},A),{},{key:_.key}):A})(i,a,o);if((l=s.protectedHeader.crit)!==null&&l!==void 0&&l.includes("b64")&&s.protectedHeader.b64===!1)throw new wn("JWTs MUST NOT use unencoded payload");const f={payload:qE(s.protectedHeader,s.payload,o),protectedHeader:s.protectedHeader};return typeof a=="function"?P(P({},f),{},{key:s.key}):f}var Js=new WeakMap,gn=new WeakMap,Ha=new WeakMap;class WE{constructor(a){if(ue(this,Js,void 0),ue(this,gn,void 0),ue(this,Ha,void 0),!(a instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");re(Js,this,a)}setProtectedHeader(a){return Ev(k(gn,this),"setProtectedHeader"),re(gn,this,a),this}setUnprotectedHeader(a){return Ev(k(Ha,this),"setUnprotectedHeader"),re(Ha,this,a),this}async sign(a,o){if(!k(gn,this)&&!k(Ha,this))throw new Ve("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!N0(k(gn,this),k(Ha,this)))throw new Ve("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const l=P(P({},k(gn,this)),k(Ha,this));let s=!0;if(B0(Ve,new Map([["b64",!0]]),o?.crit,k(gn,this),l).has("b64")&&(s=k(gn,this).b64,typeof s!="boolean"))throw new Ve('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const f=l.alg;
12if(typeof f!="string"||!f)throw new Ve('JWS "alg" (Algorithm) Header Parameter missing or invalid');let d,p,g,m;J0(f,a,"sign"),s?(d=md(k(Js,this)),p=Tr(d)):(p=k(Js,this),d=""),k(gn,this)?(g=md(JSON.stringify(k(gn,this))),m=Tr(g)):(g="",m=new Uint8Array);const y=k0(m,Tr("."),p),v=await K0(a,f),w=await(async function(A,O,R){const x=await L0(A,O,"sign");j0(A,x);const J=await crypto.subtle.sign(H0(A,x.algorithm),x,R);return new Uint8Array(J)})(f,v,y),_={signature:md(w),payload:d};return k(Ha,this)&&(_.header=k(Ha,this)),k(gn,this)&&(_.protected=g),_}}var Gs=new WeakMap;class QE{constructor(a){ue(this,Gs,void 0),re(Gs,this,new WE(a))}setProtectedHeader(a){return k(Gs,this).setProtectedHeader(a),this}async sign(a,o){const l=await k(Gs,this).sign(a,o);if(l.payload===void 0)throw new TypeError("use the flattened module for creating JWS with b64: false");return"".concat(l.protected,".").concat(l.payload,".").concat(l.signature)}}var yr=new WeakMap,Un=new WeakMap;class IE{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(this,yr,void 0),ue(this,Un,void 0),re(Un,this,new VE(a))}setIssuer(a){return k(Un,this).iss=a,this}setSubject(a){return k(Un,this).sub=a,this}setAudience(a){return k(Un,this).aud=a,this}setJti(a){return k(Un,this).jti=a,this}setNotBefore(a){return k(Un,this).nbf=a,this}setExpirationTime(a){return k(Un,this).exp=a,this}setIssuedAt(a){return k(Un,this).iat=a,this}setProtectedHeader(a){return re(yr,this,a),this}async sign(a,o){var l;const s=new QE(k(Un,this).data());if(s.setProtectedHeader(k(yr,this)),Array.isArray((l=k(yr,this))===null||l===void 0?void 0:l.crit)&&k(yr,this).crit.includes("b64")&&k(yr,this).b64===!1)throw new wn("JWTs MUST NOT use unencoded payload");return s.sign(a,o)}}function FE(i){return Nn(i)}var Xs,wd,Ys=new WeakMap,Sd=new WeakMap;class $E{constructor(a){if(ue(this,Ys,void 0),ue(this,Sd,new WeakMap),!(function(o){return o&&typeof o=="object"&&Array.isArray(o.keys)&&o.keys.every(FE)})(a))throw new Eh("JSON Web Key Set malformed");re(Ys,this,structuredClone(a))}jwks(){return k(Ys,this)}async getKey(a,o){const l=P(P({},a),o?.header),s=l.alg,f=l.kid,d=(function(y){switch(typeof y=="string"&&y.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";case"ML":return"AKP";default:throw new qt('Unsupported "alg" value for a JSON Web Key Set')}})(s),p=k(Ys,this).keys.filter(y=>{let v=d===y.kty;if(v&&typeof f=="string"&&(v=f===y.kid),!v||typeof y.alg!="string"&&d!=="AKP"||(v=s===y.alg),v&&typeof y.use=="string"&&(v=y.use==="sig"),v&&Array.isArray(y.key_ops)&&(v=y.key_ops.includes("verify")),v)switch(s){case"ES256":v=y.crv==="P-256";break;case"ES384":v=y.crv==="P-384";break;case"ES512":v=y.crv==="P-521";break;
12case"Ed25519":case"EdDSA":v=y.crv==="Ed25519"}return v}),g=p[0],m=p.length;if(m===0)throw new Th;if(m!==1){const y=new x0,v=k(Sd,this);throw y[Symbol.asyncIterator]=v_(function*(){for(const w of p)try{yield yield g_(Dv(v,w,s))}catch{}}),y}return Dv(k(Sd,this),g,s)}}async function Dv(i,a,o){const l=i.get(a)||i.set(a,{}).get(a);if(l[o]===void 0){const s=await(async function(f,d,p){var g;if(!Nn(f))throw new TypeError("JWK must be an object");let m;switch(d!=null||(d=f.alg),m!=null||(m=(g=void 0)!==null&&g!==void 0?g:f.ext),f.kty){case"oct":if(typeof f.k!="string"||!f.k)throw new TypeError('missing "k" (Key Value) Parameter value');return cl(f.k);case"RSA":if("oth"in f&&f.oth!==void 0)throw new qt('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');return nc(P(P({},f),{},{alg:d,ext:m}));case"AKP":if(typeof f.alg!="string"||!f.alg)throw new TypeError('missing "alg" (Algorithm) Parameter value');if(d!==void 0&&d!==f.alg)throw new TypeError("JWK alg and alg option value mismatch");return nc(P(P({},f),{},{ext:m}));case"EC":case"OKP":return nc(P(P({},f),{},{alg:d,ext:m}));default:throw new qt('Unsupported "kty" (Key Type) Parameter value')}})(P(P({},a),{},{ext:!0}),o);if(s instanceof Uint8Array||s.type!=="public")throw new Eh("JSON Web Key Set members must be public keys");l[o]=s}return l[o]}function Uv(i){const a=new $E(i),o=async(l,s)=>a.getKey(l,s);return Object.defineProperties(o,{jwks:{value:()=>structuredClone(a.jwks()),enumerable:!1,configurable:!1,writable:!1}}),o}let Id;(typeof navigator>"u"||(Xs=navigator.userAgent)===null||Xs===void 0||(wd=Xs.startsWith)===null||wd===void 0||!wd.call(Xs,"Mozilla/5.0 "))&&(Id="".concat("jose","/").concat("v6.2.3"));const Q0=Symbol(),ic=Symbol();var _d=new WeakMap,Ed=new WeakMap,Td=new WeakMap,qs=new WeakMap,mi=new WeakMap,ra=new WeakMap,La=new WeakMap,Ad=new WeakMap,yi=new WeakMap,gi=new WeakMap;class eT{constructor(a,o){if(ue(this,_d,void 0),ue(this,Ed,void 0),ue(this,Td,void 0),ue(this,qs,void 0),ue(this,mi,void 0),ue(this,ra,void 0),ue(this,La,void 0),ue(this,Ad,void 0),ue(this,yi,void 0),ue(this,gi,void 0),!(a instanceof URL))throw new TypeError("url must be an instance of URL");var l,s;re(_d,this,new URL(a.href)),re(Ed,this,typeof o?.timeoutDuration=="number"?o?.timeoutDuration:5e3),re(Td,this,typeof o?.cooldownDuration=="number"?o?.cooldownDuration:3e4),re(qs,this,typeof o?.cacheMaxAge=="number"?o?.cacheMaxAge:6e5),re(La,this,new Headers(o?.headers)),Id&&!k(La,this).has("User-Agent")&&k(La,this).set("User-Agent",Id),k(La,this).has("accept")||(k(La,this).set("accept","application/json"),k(La,this).append("accept","application/jwk-set+json")),re(Ad,this,o?.[Q0]),o?.[ic]!==void 0&&(re(gi,this,o?.[ic]),l=o?.[ic],s=k(qs,this),typeof l=="object"&&l!==null&&"uat"in l&&typeof l.uat=="number"&&!(Date.now()-l.uat>=s)&&"jwks"in l&&Nn(l.jwks)&&Array.isArray(l.jwks.keys)&&Array.prototype.every.call(l.jwks.keys,Nn)&&(re(mi,this,k(gi,this).uat),re(yi,this,Uv(k(gi,this).jwks))))}pendingFetch(){return!!k(ra,this)}coolingDown(){return typeof k(mi,this)=="number"&&Date.now()<k(mi,this)+k(Td,this)}fresh(){return typeof k(mi,this)=="number"&&Date.now()<k(mi,this)+k(qs,this)}jwks(){var a;return(a=k(yi,this))===null||a===void 0?void 0:a.jwks()}async getKey(a,o){k(yi,this)&&this.fresh()||await this.reload();try{return await k(yi,this).call(this,a,o)}catch(l){if(l instanceof Th&&this.coolingDown()===!1)return await this.reload(),k(yi,this).call(this,a,o);throw l}}async reload(){k(ra,this)&&(typeof WebSocketPair<"u"||typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"||typeof EdgeRuntime<"u"&&EdgeRuntime==="vercel")&&re(ra,this,void 0),k(ra,this)||re(ra,this,(async function(a,o,l){const f=await(arguments.length>3&&arguments[3]!==void 0?arguments[3]:fetch)(a,{method:"GET",signal:l,redirect:"manual",headers:o}).catch(d=>{throw d.name==="TimeoutError"?new z0:d});if(f.status!==200)throw new vt("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await f.json()}catch{throw new vt("Failed to parse the JSON Web Key Set HTTP response as JSON")}})(k(_d,this).href,k(La,this),AbortSignal.timeout(k(Ed,this)),k(Ad,this)).then(a=>{re(yi,this,Uv(a)),k(gi,this)&&(k(gi,this).uat=Date.now(),k(gi,this).jwks=a),re(mi,this,Date.now()),re(ra,this,void 0)}).catch(a=>{throw re(ra,this,void 0),a})),await k(ra,this)}}const tT=["mfaToken"],nT=["mfaToken"];var vi,Vs,jo,bi,Ho,Lo,Ko,Zo,Ps,Ws,rc,oc,$o,lc,sc,Qs,ln,Is,Fs,bn,Mn,wr,me,un,Bo,el,Ar,$s,Te;function Ya(i){var a,o;if(typeof i!="object"||i===null)return{error:"unknown_error",error_description:String(i)};const l=i,s={error:(a=l.error)!==null&&a!==void 0?a:"",error_description:(o=l.error_description)!==null&&o!==void 0?o:"",message:l.message};if(l.error==="mfa_required"&&l.cause){s.mfa_token=typeof l.cause.mfa_token=="string"?l.cause.mfa_token:void 0;const f=l.cause.mfa_requirements;typeof f=="object"&&f!==null&&(s.mfa_requirements=f)}return s}
12var Mv=class extends Error{constructor(i,a){super(a),V(this,"code",void 0),this.name="NotSupportedError",this.code=i}},Kn=class extends Error{constructor(i,a,o){super(a),V(this,"cause",void 0),V(this,"code",void 0),this.code=i,this.cause=o&&{error:o.error,error_description:o.error_description,message:o.message,mfa_token:o.mfa_token,mfa_requirements:o.mfa_requirements}}},Nv=class extends Kn{constructor(i,a){super("token_by_code_error",i,a),this.name="TokenByCodeError"}},aT=class extends Kn{constructor(i,a){super("token_by_client_credentials_error",i,a),this.name="TokenByClientCredentialsError"}},iT=class extends Kn{constructor(i,a){super("token_by_refresh_token_error",i,a),this.name="TokenByRefreshTokenError"}},rT=class extends Kn{constructor(i,a){super("token_by_password_error",i,a),this.name="TokenByPasswordError"}},kd=class extends Kn{constructor(i,a){super("token_for_connection_error",i,a),this.name="TokenForConnectionErrorCode"}},En=class extends Kn{constructor(i,a){super("token_exchange_error",i,a),this.name="TokenExchangeError"}},Ka=class extends Error{constructor(i){super(i),V(this,"code","verify_logout_token_error"),this.name="VerifyLogoutTokenError"}},Rd=class extends Kn{constructor(i){super("backchannel_authentication_error","There was an error when trying to use Client-Initiated Backchannel Authentication.",i),V(this,"code","backchannel_authentication_error"),this.name="BackchannelAuthenticationError"}},oT=class extends Kn{constructor(i){super("build_authorization_url_error","There was an error when trying to build the authorization URL.",i),this.name="BuildAuthorizationUrlError"}},lT=class extends Kn{constructor(i){super("build_link_user_url_error","There was an error when trying to build the Link User URL.",i),this.name="BuildLinkUserUrlError"}},sT=class extends Kn{constructor(i){super("build_unlink_user_url_error","There was an error when trying to build the Unlink User URL.",i),this.name="BuildUnlinkUserUrlError"}},I0=class extends Error{constructor(){super("The client secret or client assertion signing key must be provided."),V(this,"code","missing_client_auth_error"),this.name="MissingClientAuthError"}},Yo=class extends Error{constructor(i){super(i),V(this,"code","organization_validation_error"),this.name="OrganizationValidationError"}};function Fd(i){return Object.entries(i).filter(a=>Pt(a,2)[1]!==void 0).reduce((a,o)=>P(P({},a),{},{[o[0]]:o[1]}),{})}function Ah(i){if(!i.trim())throw new Yo("organization must not be blank")}function kh(i,a){if(!i)return;const o=a.trim();if(o.startsWith("org_")){const l=i.org_id;if(typeof l!="string")throw new Yo("Organization Id (org_id) claim must be a string present in the ID token");if(l!==o)throw new Yo('Organization Id (org_id) claim value mismatch in the ID token; expected "'.concat(o,'", found "').concat(l,'"'))}else{const l=i.org_name;if(typeof l!="string")throw new Yo("Organization Name (org_name) claim must be a string present in the ID token");if(l.toLowerCase()!==o.toLowerCase())throw new Yo('Organization Name (org_name) claim value mismatch in the ID token; expected "'.concat(o,'", found "').concat(l,'"'))}}var hl=class extends Error{constructor(i,a,o){super(a),V(this,"cause",void 0),V(this,"code",void 0),this.code=i,this.cause=o&&{error:o.error,error_description:o.error_description,message:o.message}}},$d=class extends hl{constructor(i,a){super("mfa_list_authenticators_error",i,a),this.name="MfaListAuthenticatorsError"}},eh=class extends hl{constructor(i,a){super("mfa_enrollment_error",i,a),this.name="MfaEnrollmentError"}},jv=class extends hl{constructor(i,a){super("mfa_delete_authenticator_error",i,a),this.name="MfaDeleteAuthenticatorError"}},th=class extends hl{constructor(i,a){super("mfa_challenge_error",i,a),this.name="MfaChallengeError"}},Hv=class extends hl{constructor(i,a){super("mfa_verify_error",i,a),this.name="MfaVerifyError"}};function cT(i){return{id:i.id,authenticatorType:i.authenticator_type,active:i.active,name:i.name,oobChannels:i.oob_channels,type:i.type}}var fn=class F0{constructor(a,o,l,s,f,d,p){V(this,"accessToken",void 0),V(this,"idToken",void 0),V(this,"refreshToken",void 0),V(this,"expiresAt",void 0),V(this,"scope",void 0),V(this,"claims",void 0),V(this,"authorizationDetail
12s",void 0),V(this,"tokenType",void 0),V(this,"issuedTokenType",void 0),V(this,"recoveryCode",void 0),V(this,"act",void 0),this.accessToken=a,this.idToken=l,this.refreshToken=s,this.expiresAt=o,this.scope=f,this.claims=d,this.authorizationDetails=p}static fromTokenEndpointResponse(a){const o=a.id_token?a.claims():void 0,l=new F0(a.access_token,Math.floor(Date.now()/1e3)+Number(a.expires_in),a.id_token,a.refresh_token,a.scope,o,a.authorization_details);return l.tokenType=a.token_type,l.issuedTokenType=a.issued_token_type,l}},uT={otp:"http://auth0.com/oauth/grant-type/mfa-otp",oob:"http://auth0.com/oauth/grant-type/mfa-oob","recovery-code":"http://auth0.com/oauth/grant-type/mfa-recovery-code"},fT=(vi=new WeakMap,Vs=new WeakMap,jo=new WeakMap,bi=new WeakMap,Ho=new WeakMap,class{constructor(i){var a;ue(this,vi,void 0),ue(this,Vs,void 0),ue(this,jo,void 0),ue(this,bi,void 0),ue(this,Ho,void 0),re(vi,this,"https://".concat(i.domain)),re(Vs,this,i.clientId),re(jo,this,i.clientSecret),re(bi,this,(a=i.customFetch)!==null&&a!==void 0?a:function(){return fetch(...arguments)}),re(Ho,this,i.getConfiguration)}async listAuthenticators(i){const a="".concat(k(vi,this),"/mfa/authenticators"),o=i.mfaToken,l=await k(bi,this).call(this,a,{method:"GET",headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"}});if(!l.ok){let s;try{s=await l.json()}catch{throw new $d("Failed to list authenticators")}throw new $d(s.error_description||"Failed to list authenticators",s)}return(await l.json()).map(cT)}async enrollAuthenticator(i){const a="".concat(k(vi,this),"/mfa/associate"),o=i.mfaToken,l=nv(i,tT),s={authenticator_types:l.authenticatorTypes};"oobChannels"in l&&(s.oob_channels=l.oobChannels),"phoneNumber"in l&&l.phoneNumber&&(s.phone_number=l.phoneNumber),"email"in l&&l.email&&(s.email=l.email);const f=await k(bi,this).call(this,a,{method:"POST",headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"},body:JSON.stringify(s)});if(!f.ok){let d;try{d=await f.json()}catch{throw new eh("Failed to enroll authenticator")}throw new eh(d.error_description||"Failed to enroll authenticator",d)}return(function(d){if(d.authenticator_type==="otp")return{authenticatorType:"otp",secret:d.secret,barcodeUri:d.barcode_uri,recoveryCodes:d.recovery_codes,id:d.id};if(d.authenticator_type==="oob")return{authenticatorType:"oob",oobChannel:d.oob_channel,oobCode:d.oob_code,bindingMethod:d.binding_method,id:d.id,barcodeUri:d.barcode_uri,recoveryCodes:d.recovery_codes};throw new Error("Unexpected authenticator type: ".concat(d.authenticator_type))})(await f.json())}async deleteAuthenticator(i){const a=i.authenticatorId,o=i.mfaToken,l="".concat(k(vi,this),"/mfa/authenticators/").concat(encodeURIComponent(a)),s=await k(bi,this).call(this,l,{method:"DELETE",headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"}});if(!s.ok){let f;try{f=await s.json()}catch{throw new jv("Failed to delete authenticator")}throw new jv(f.error_description||"Failed to delete authenticator",f)}}async challengeAuthenticator(i){const a="".concat(k(vi,this),"/mfa/challenge"),o=i.mfaToken,l=nv(i,nT),s={mfa_token:o,client_id:k(Vs,this),challenge_type:l.challengeType};k(jo,this)&&(s.client_secret=k(jo,this)),l.authenticatorId&&(s.authenticator_id=l.authenticatorId);const f=await k(bi,this).call(this,a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!f.ok){let d;try{d=await f.json()}catch{throw new th("Failed to challenge authenticator")}throw new th(d.error_description||"Failed to challenge authenticator",d)}return(function(d){const p={challengeType:d.challenge_type};return d.oob_code!==void 0&&(p.oobCode=d.oob_code),d.binding_method!==void 0&&(p.bindingMethod=d.binding_method),p})(await f.json())}async verify(i){if(!k(Ho,this))throw new Error("MFA verify requires a configuration provider (getConfiguration was not set)");const a=await k(Ho,this).call(this),o={mfa_token:i.mfaToken};i.audience&&(o.audience=i.audience),i.factorType==="otp"?o.otp=i.otp:i.factorType==="oob"?(o.oob_code=i.oobCode,i.bindingCode&&(o.binding_code=i.bindingCode)):i.factorType==="recovery-code"&&(o.recovery_code=i.recoveryCode);try{const d=await Va(a,uT[i.factorType],o),p=fn.fromTokenEndpointResponse(d);return d.recovery_code&&(p.recoveryCode=d.recovery_code),p}catch(d){var l,s,f;if(d instanceof Hv)throw d;const p=d;throw new Hv(p.error_description||p.message||"Failed to verify MFA challenge",{error:(l=p.error)!==null&&l!==void 0?l:"mfa_verify_error",error_description:(s=(f=p.error_description)!==null&&f!==void 0?f:p.message)!==null&&s!==void 0?s:"Failed to verify MFA challenge"})}}}
12),Rh=class extends Error{constructor(i,a,o){super(a),V(this,"cause",void 0),V(this,"code",void 0),this.code=i,this.cause=o&&{error:o.error,error_description:o.error_description,message:o.message}}},dT=class extends Rh{constructor(i,a){super("passkey_register_error",i,a),this.name="PasskeyRegisterError"}},hT=class extends Rh{constructor(i,a){super("passkey_challenge_error",i,a),this.name="PasskeyChallengeError"}},pT=class extends Rh{constructor(i,a){super("passkey_get_token_error",i,a),this.name="PasskeyGetTokenError",this.cause=a&&{error:a.error,error_description:a.error_description,message:a.message,mfa_token:a.mfa_token,mfa_requirements:a.mfa_requirements}}},$0="urn:okta:params:oauth:grant-type:webauthn",mT=(Lo=new WeakMap,Ko=new WeakMap,Zo=new WeakMap,Ps=new WeakMap,Ws=new WeakSet,class{constructor(i){var a;sh(this,Ws),ue(this,Lo,void 0),ue(this,Ko,void 0),ue(this,Zo,void 0),ue(this,Ps,void 0),re(Lo,this,"https://".concat(i.domain)),re(Ko,this,i.clientId),re(Zo,this,(a=i.customFetch)!==null&&a!==void 0?a:function(){return fetch(...arguments)}),re(Ps,this,i.grantRequest)}async register(i){const a="".concat(k(Lo,this),"/passkey/register"),o=P(P(P(P(P(P(P(P({},i.email&&{email:i.email}),i.name&&{name:i.name}),i.phoneNumber&&{phone_number:i.phoneNumber}),i.username&&{username:i.username}),i.givenName&&{given_name:i.givenName}),i.familyName&&{family_name:i.familyName}),i.nickname&&{nickname:i.nickname}),i.picture&&{picture:i.picture}),l={client_id:k(Ko,this),user_profile:o};i.realm&&(l.realm=i.realm),i.organization&&(l.organization=i.organization),i.userMetadata&&(l.user_metadata=i.userMetadata);const s=await k(Zo,this).call(this,a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!s.ok){const p=await ye(Ws,this,Lv).call(this,s);throw new dT(p.error_description||"Failed to request signup challenge",p)}return{authSession:(d=await s.json()).auth_session,authnParamsPublicKey:P({},d.authn_params_public_key)};var d}async challenge(i){const a="".concat(k(Lo,this),"/passkey/challenge"),o={client_id:k(Ko,this)};i!=null&&i.realm&&(o.realm=i.realm),i!=null&&i.organization&&(o.organization=i.organization);const l=await k(Zo,this).call(this,a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!l.ok){const d=await ye(Ws,this,Lv).call(this,l);throw new hT(d.error_description||"Failed to request login challenge",d)}return{authSession:(f=await l.json()).auth_session,authnParamsPublicKey:P({},f.authn_params_public_key)};var f}async getTokenByPasskey(i){i.organization!==void 0&&Ah(i.organization);const a=new URLSearchParams({auth_session:i.authSession,authn_response:JSON.stringify(i.credential)});let o;i.realm&&a.append("realm",i.realm),i.scope&&a.append("scope",i.scope),i.audience&&a.append("audience",i.audience),i.organization&&a.append("organization",i.organization);try{o=await k(Ps,this).call(this,$0,a)}catch(l){const s=Ya(l);throw new pT(s.error_description||"Failed to exchange passkey credential for tokens.",s)}return i.organization&&kh(o.claims,i.organization),o}});async function Lv(i){try{return await i.json()}catch{return{error:"unknown_error",error_description:"HTTP ".concat(i.status," ").concat(i.statusText)}}}var eb=class extends Error{constructor(i,a,o){super(a),V(this,"cause",void 0),V(this,"code",void 0),Object.setPrototypeOf(this,new.target.prototype),this.code=i,this.cause=o&&{error:o.error,error_description:o.error_description,message:o.message,mfa_token:o.mfa_token,mfa_requirements:o.mfa_requirements}}},nh=class extends eb{constructor(i,a){super("passwordless_start_error",i,a),this.name="PasswordlessStartError"}},tb=class extends eb{constructor(i,a){super("passwordless_verify_error",i,a),this.name="PasswordlessVerifyError"}};function nb(i){return/^\+[1-9]\d{1,14}$/.test(i)}var yT=(rc=new WeakMap,oc=new WeakMap,$o=new WeakMap,lc=new WeakMap,sc=new WeakMap,Qs=new WeakSet,class{constructor(i){var a;sh(this,Qs),ue(this,rc,void 0),ue(this,oc,void 0),ue(this,$o,void 0),ue(this,lc,void 0),ue(this,sc,void 0),re(oc,this,i.domain),re(rc,this,"https://".concat(i.domain)),re($o,this,i.clientId),re(lc,this,(a=i.customFetch)!==null&&a!==void 0?a:function(){return fetch(...arguments)}),re(sc,this,{clientSecret:i.clientSecret,clientAssertionSigningKey:i.clientAssertionSigningKey,clientAssertionSigningAlg:i.clientAssertionSigningAlg,useMtls:i.useMtls})}async sendEmail(i){await ye(Qs,this,Kv).call(this,(function(a){var o;const l=(o=a.send)!==null&&o!==void 0?o:"code",s={email:a.email,connection:"email",send:l};return l==="link"&&a.authParams&&(s.authParams=a.authParams),s})(i),"Failed to send passwordless email",i.language)}async sendSms(i){if(!nb(i.phoneNumber))throw new nh("Phone number must be in E.164 format (e.g. +14155550100).");await ye(Qs,this,Kv).call(this,(function(a){return{phone_number:a.phoneNumber,connection:"sms"}})(i),"Failed to send passwordless SMS",i.language)}});async function Kv(i,a,o){var l;const s=await(async function(g,m,y){if(g.useMtls)return{};if(g.clientAssertionSigningKey){var v;const w=(v=g.clientAssertionSigningAlg)!==null&&v!==void 0?v:"RS256",_=g.clientAssertionSigningKey instanceof CryptoKey?g.clientAssertionSigningKey:await Z0(g.clientAssertionSigningKey,w);return{client_assertion:await new IE({}).setProtectedHeader({alg:w}).setIssuer(m).setSubject(m).setAudience("https://".concat(y,"/")).setJti(crypto.randomUUID()).setIssuedAt().setExpirationTime("".concat(120,"s")).sign(_),client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}if(g.clientSecret)return{client_secret:g.clientSecret};throw new I0})(k(sc,this),k($o,this),k(oc,this)),f=P(P({client_id:k($o,this)},i),s);let d,p;try{d=await k(lc,this).call(this,"".concat(k(rc,this),"/passwordless/start"),{method:"POST",headers:P({"Content-Type":"application/json"}
12,o?{"x-request-language":o}:{}),body:JSON.stringify(f)})}catch{throw new nh("".concat(a,": a network error occurred."))}if(!d.ok){if(d.status!==204)try{p=await d.json()}catch{p=void 0}throw new nh(((l=p)===null||l===void 0?void 0:l.error_description)||a,p)}}var gT=(ln=new WeakMap,Is=new WeakMap,Fs=new WeakMap,class{constructor(i,a){ue(this,ln,new Map),ue(this,Is,void 0),ue(this,Fs,void 0),re(Fs,this,Math.max(1,Math.floor(i))),re(Is,this,Math.max(0,Math.floor(a)))}get(i){const a=k(ln,this).get(i);if(a){if(!(Date.now()>=a.expiresAt))return k(ln,this).delete(i),k(ln,this).set(i,a),a.value;k(ln,this).delete(i)}}set(i,a){for(k(ln,this).has(i)&&k(ln,this).delete(i),k(ln,this).set(i,{value:a,expiresAt:Date.now()+k(Is,this)});k(ln,this).size>k(Fs,this);){const o=k(ln,this).keys().next().value;if(o===void 0)break;k(ln,this).delete(o)}}}),Zv=new Map;function Bv(i){return{ttlMs:1e3*(typeof i?.ttl=="number"?i.ttl:600),maxEntries:typeof i?.maxEntries=="number"&&i.maxEntries>0?i.maxEntries:100}}var Jv=class{static createDiscoveryCache(i){const a=(o=i.maxEntries,l=i.ttlMs,"".concat(o,":").concat(l));var o,l;let s=(f=a,Zv.get(f));var f;return s||(s=new gT(i.maxEntries,i.ttlMs),Zv.set(a,s)),s}static createJwksCache(){return{}}},ah="openid profile email offline_access",vT=Object.freeze(new Set(["grant_type","client_id","client_secret","client_assertion","client_assertion_type","subject_token","subject_token_type","requested_token_type","actor_token","actor_token_type","audience","aud","resource","resources","resource_indicator","scope","connection","login_hint","organization","assertion"]));function ab(i){if(i==null)throw new En("subject_token is required");if(typeof i!="string")throw new En("subject_token must be a string");if(i.trim().length===0)throw new En("subject_token cannot be blank or whitespace");if(i!==i.trim())throw new En("subject_token must not include leading or trailing whitespace");if(/^bearer\s+/i.test(i))throw new En("subject_token must not include the 'Bearer ' prefix")}function ib(i,a){if(a)for(const l of Object.entries(a)){var o=Pt(l,2);const s=o[0],f=o[1];if(!vT.has(s))if(Array.isArray(f)){if(f.length>20)throw new En("Parameter '".concat(s,"' exceeds maximum array size of ").concat(20));f.forEach(d=>{i.append(s,d)})}else i.append(s,f)}}var rb="urn:ietf:params:oauth:token-type:access_token",bT=(bn=new WeakMap,Mn=new WeakMap,wr=new WeakMap,me=new WeakMap,un=new WeakMap,Bo=new WeakMap,el=new WeakMap,Ar=new WeakMap,$s=new WeakMap,Te=new WeakSet,class{constructor(i){var a,o,l,s;if(sh(this,Te),ue(this,bn,void 0),ue(this,Mn,void 0),ue(this,wr,void 0),ue(this,me,void 0),ue(this,un,void 0),ue(this,Bo,void 0),ue(this,el,void 0),ue(this,Ar,void 0),ue(this,$s,void 0),V(this,"mfa",void 0),V(this,"passkey",void 0),V(this,"passwordless",void 0),re(me,this,i),i.useMtls&&!i.customFetch)throw new Mv("mtls_without_custom_fetch_not_supported","Using mTLS without a custom fetch implementation is not supported");re(un,this,(function(d,p){if(p.enabled===!1)return d;const g={name:p.name,version:p.version},m=btoa(JSON.stringify(g));return async(y,v)=>{const w=y instanceof Request?new Headers(y.headers):new Headers;return v!=null&&v.headers&&new Headers(v.headers).forEach((_,A)=>{w.set(A,_)}),w.set("Auth0-Client",m),d(y,P(P({},v),{},{headers:w}))}})((a=i.customFetch)!==null&&a!==void 0?a:function(){return fetch(...arguments)},((o=i.telemetry)==null?void 0:o.enabled)===!1?o:{enabled:!0,name:(l=o?.name)!==null&&l!==void 0?l:"@auth0/auth0-auth-js",version:(s=o?.version)!==null&&s!==void 0?s:"1.10.0"}));const f=Bv(i.discoveryCache);re(el,this,Jv.createDiscoveryCache(f)),re(Ar,this,new Map),re($s,this,Jv.createJwksCache()),this.mfa=new fT({domain:k(me,this).domain,clientId:k(me,this).clientId,clientSecret:k(me,this).clientSecret,customFetch:k(un,this),getConfiguration:async()=>(await ye(Te,this,ft).call(this)).configuration}),this.passkey=new mT({domain:k(me,this).domain,clientId:k(me,this).clientId,customFetch:k(un,this),grantRequest:async(d,p)=>{const g=(await ye(Te,this,ft).call(this)).serverMetadata,m=await ye(Te,this,ih).call(this,g);m[Tn]=(function(v,w){return(_,A)=>{const O=A?.body;if(w!==$0||!(O instanceof URLSearchParams))return v(_,A);const R={};for(const Z of O){var x=Pt(Z,2);const q=x[0],Q=x[1];R[q]=q==="authn_response"?JSON.parse(Q):Q}const J=new Headers(A?.headers);return J.set("Content-Type","application/json"),v(_,P(P({},A),{},{headers:J,body:JSON.stringify(R)}))}})(k(un,this),d);const y=await Va(m,d,p);return fn.fromTokenEndpointResponse(y)}}),this.passwordless=new yT({domain:k(me,this).domain,clientId:k(me,this).clientId,customFetch:k(un,this),clientSecret:k(me,this).clientSecret,clientAssertionSigningKey:k(me,this).clientAssertionSigningKey,clientAssertionSigningAlg:k(me,this).clientAssertionSigningAlg,useMtls:k(me,this).useMtls})}async getServerMetadata(){return(await ye(Te,this,ft).call(this)).serverMetadata}async buildAuthorizationUrl(i){const a=(await ye(Te,this,ft).call(this)).serverMetadata;if(i!=null&&i.pushedAuthorizationRequests&&!a.pushed_authorization_request_endpoint)throw new Mv("par_not_supported_error","The Auth0 tenant does not have pushed authorization requests enabled. Learn how to enable it here: https://auth0.com/docs/get-started/applications/configure-par");try{return await ye(Te,this,Od).call(this,i)}catch(o){throw new oT(o)}}async buildLinkUserUrl(i){try{const a=await ye(Te,this,Od).call(this,{authorizationParams:P(P({},i.authorizationParams),{},{requested_connection:i.connection,requested_connection_scope:i.connectionScope,scope:"openid link_account offline_access",id_token_hint:i.idToken})});return{linkUserUrl:a.authorizationUrl,codeVerifier:a.codeVerifier}}catch(a){throw new lT(a)}}async buildUnlinkUserUrl(i){try{const a=await ye(Te,this,Od).call(this,{authorizationParams:P(P({},i.authorizationParams),{},{requested_connection:i.connection,scope:"openid unlink_account",id_token_hint:i.idToken})});return{unlinkUserUrl:a.authorizationUrl,codeVerifier:a.codeVerifier}}catch(a){throw new sT(a)}}async backchannelAuthentication(i){const a=await ye(Te,this,ft).call(this),o=a.configuration,l=a.serverMetadata,s=Fd(P(P({},k(me,this).authorizationParams),i?.authorizationParams)),f=new URLSearchParams(P(P({
12scope:ah},s),{},{client_id:k(me,this).clientId,binding_message:i.bindingMessage,login_hint:JSON.stringify({format:"iss_sub",iss:l.issuer,sub:i.loginHint.sub})}));i.requestedExpiry&&f.append("requested_expiry",i.requestedExpiry.toString()),i.authorizationDetails&&f.append("authorization_details",JSON.stringify(i.authorizationDetails));try{const d=await Cv(o,f),p=await q0(o,d);return fn.fromTokenEndpointResponse(p)}catch(d){throw new Rd(d)}}async initiateBackchannelAuthentication(i){const a=await ye(Te,this,ft).call(this),o=a.configuration,l=a.serverMetadata,s=Fd(P(P({},k(me,this).authorizationParams),i?.authorizationParams)),f=new URLSearchParams(P(P({scope:ah},s),{},{client_id:k(me,this).clientId,binding_message:i.bindingMessage,login_hint:JSON.stringify({format:"iss_sub",iss:l.issuer,sub:i.loginHint.sub})}));i.requestedExpiry&&f.append("requested_expiry",i.requestedExpiry.toString()),i.authorizationDetails&&f.append("authorization_details",JSON.stringify(i.authorizationDetails));try{const d=await Cv(o,f);return{authReqId:d.auth_req_id,expiresIn:d.expires_in,interval:d.interval}}catch(d){throw new Rd(d)}}async backchannelAuthenticationGrant(i){let a=i.authReqId;const o=(await ye(Te,this,ft).call(this)).configuration,l=new URLSearchParams({auth_req_id:a});try{const s=await Va(o,"urn:openid:params:grant-type:ciba",l);return fn.fromTokenEndpointResponse(s)}catch(s){throw new Rd(s)}}async getTokenForConnection(i){var a;if(i.refreshToken&&i.accessToken)throw new kd("Either a refresh or access token should be specified, but not both.");const o=(a=i.accessToken)!==null&&a!==void 0?a:i.refreshToken;if(!o)throw new kd("Either a refresh or access token must be specified.");try{return await this.exchangeToken({connection:i.connection,subjectToken:o,subjectTokenType:i.accessToken?rb:"urn:ietf:params:oauth:token-type:refresh_token",loginHint:i.loginHint})}catch(l){throw l instanceof En?new kd(l.message,l.cause):l}}async exchangeToken(i){return"connection"in i?ye(Te,this,ST).call(this,i):ye(Te,this,_T).call(this,i)}async getTokenByCode(i,a){const o=(await ye(Te,this,ft).call(this)).configuration;let l;a.organization!==void 0&&Ah(a.organization);try{const s=await Wd(o,i,{pkceCodeVerifier:a.codeVerifier});l=fn.fromTokenEndpointResponse(s)}catch(s){throw new Nv("There was an error while trying to request a token.",Ya(s))}return a.organization&&kh(l.claims,a.organization),l}async getTokenByMagicLinkCode(i,a){const o=(await ye(Te,this,ft).call(this)).configuration;try{const l=await Wd(o,i,{expectedState:a?.expectedState});return fn.fromTokenEndpointResponse(l)}catch(l){const s=l instanceof Error&&l.message?l.message:"There was an error while trying to request a token.";throw new Nv(s,l)}}async getTokenByRefreshToken(i){const a=(await ye(Te,this,ft).call(this)).configuration,o=new URLSearchParams;i.audience&&o.append("audience",i.audience),i.scope&&o.append("scope",i.scope);try{const l=await V0(a,i.refreshToken,o);return fn.fromTokenEndpointResponse(l)}catch(l){throw new iT("The access token has expired and there was an error while trying to refresh it.",Ya(l))}}async getTokenByPassword(i){const a=(await ye(Te,this,ft).call(this)).configuration,o=new URLSearchParams({username:i.username,password:i.password});i.audience&&o.append("audience",i.audience),i.scope&&o.append("scope",i.scope),i.realm&&o.append("realm",i.realm);let l=a;if(i.auth0ForwardedFor){const s=await ye(Te,this,Oh).call(this);l=new Or(a.serverMetadata(),k(me,this).clientId,k(me,this).clientSecret,s),l[Tn]=(f,d)=>k(un,this).call(this,f,P(P({},d),{},{headers:P(P({},d.headers),{},{"auth0-forwarded-for":i.auth0ForwardedFor})}))}try{const s=await Va(l,"password",o);return fn.fromTokenEndpointResponse(s)}catch(s){throw new rT("There was an error while trying to request a token.",Ya(s))}}async getTokenByPasswordlessEmail(i){const a=new URLSearchParams({username:i.email,otp:i.code,realm:"email"});return i.audience&&a.append("audience",i.audience),i.scope&&a.append("scope",i.scope),ye(Te,this,Gv).call(this,a)}async getTokenByPasswordlessSms(i){if(!nb(i.phoneNumber))throw new tb("Phone number must be in E.164 format (e.g. +14155550100).");const a=new URLSearchParams({username:i.phoneNumber,otp:i.code,realm:"sms"});return i.audience&&a.append("audience",i.audience),i.scope&&a.append("scope",i.scope),ye(Te,this,Gv).call(this,a)}async getTokenByClientCredentials(i){const a=(await ye(Te,this,ft).call(this)).configuration;try{const o=new URLSearchParams({audience:i.audience});i.organization&&o.append("organization",i.organization);const l=await P0(a,o);return fn.fromTokenEndpointResponse(l)}catch(o){throw new aT("There was an error while trying to request a token.",Ya(o))}}async buildLogoutUrl(i){const a=await ye(Te,this,ft).call(this),o=a.configuration;if(!a.serverMetadata.end_session_endpoint){const l=new URL("https://".concat(k(me,this).domain,"/v2/logout"));return l.searchParams.set("returnTo",i.returnTo),l.searchParams.set("client_id",k(me,this).clientId),l}return(function(l,s){ua(l);const f=gt(l),d=f.as,p=f.c,g=ol(d,"end_session_endpoint",!1,f.tlsOnly);(s=new URLSearchParams(s)).has("client_id")||s.set("client_id",p.client_id);for(const y of s.entries()){var m=Pt(y,2);const v=m[0],w=m[1];g.searchParams.append(v,w)}return g})(o,{post_logout_redirect_uri:i.returnTo})}async verifyLogoutToken(i){const a=(await ye(Te,this,ft).call(this)).serverMetadata,o=Bv(k(me,this).discoveryCache),l=a.jwks_uri;k(Bo,this)||re(Bo,this,(function(f,d){const p=new eT(f,d),g=async(m,y)=>p.getKey(m,y);return Object.defineProperties(g,{coolingDown:{get:()=>p.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>p.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>p.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>p.pendingFetch(),enumerable:!0,configurable:!1},jwks:{value:()=>p.jwks(),enumerable:!0,configurable:!1,writable:!1}}),g})(new URL(l),{cacheMaxAge:o.ttlMs,[Q0]:k(un,this),[ic]:k($s,this)}));const s=(await PE(i.logoutToken,k(Bo,this),{issuer:a.issuer,audience:k(me,this).clientId,algorithms:["RS256"],requiredClaims:["iat"]})).payload;if(!("sid"in s)&&!("sub"in s))throw new Ka('either "sid" or "sub" (or both) claims must be present');
12if("sid"in s&&typeof s.sid!="string")throw new Ka('"sid" claim must be a string');if("sub"in s&&typeof s.sub!="string")throw new Ka('"sub" claim must be a string');if("nonce"in s)throw new Ka('"nonce" claim is prohibited');if(!("events"in s))throw new Ka('"events" claim is missing');if(typeof s.events!="object"||s.events===null)throw new Ka('"events" claim must be an object');if(!("http://schemas.openid.net/event/backchannel-logout"in s.events))throw new Ka('"http://schemas.openid.net/event/backchannel-logout" member is missing in the "events" claim');if(typeof s.events["http://schemas.openid.net/event/backchannel-logout"]!="object")throw new Ka('"http://schemas.openid.net/event/backchannel-logout" member in the "events" claim must be an object');return{sid:s.sid,sub:s.sub}}});function wT(){const i=k(me,this).domain.toLowerCase();return"".concat(i,"|mtls:").concat(k(me,this).useMtls?"1":"0")}async function ih(i){const a=await ye(Te,this,Oh).call(this),o=new Or(i,k(me,this).clientId,k(me,this).clientSecret,a);return o[Tn]=k(un,this),o}async function ft(){if(k(bn,this)&&k(Mn,this))return{configuration:k(bn,this),serverMetadata:k(Mn,this)};const i=ye(Te,this,wT).call(this),a=k(el,this).get(i);if(a)return re(Mn,this,a.serverMetadata),re(bn,this,await ye(Te,this,ih).call(this,a.serverMetadata)),{configuration:k(bn,this),serverMetadata:k(Mn,this)};const o=k(Ar,this).get(i);if(o){const f=await o;return re(Mn,this,f.serverMetadata),re(bn,this,await ye(Te,this,ih).call(this,f.serverMetadata)),{configuration:k(bn,this),serverMetadata:k(Mn,this)}}const l=(async()=>{const f=await ye(Te,this,Oh).call(this),d=await JE(new URL("https://".concat(k(me,this).domain)),k(me,this).clientId,{use_mtls_endpoint_aliases:k(me,this).useMtls},f,{[Tn]:k(un,this)}),p=d.serverMetadata();return k(el,this).set(i,{serverMetadata:p}),{configuration:d,serverMetadata:p}})(),s=l.then(f=>({serverMetadata:f.serverMetadata}));s.catch(()=>{}),k(Ar,this).set(i,s);try{const f=await l,d=f.configuration,p=f.serverMetadata;re(bn,this,d),re(Mn,this,p),k(bn,this)[Tn]=k(un,this)}finally{k(Ar,this).delete(i)}return{configuration:k(bn,this),serverMetadata:k(Mn,this)}}async function ST(i){var a,o;const l=(await ye(Te,this,ft).call(this)).configuration;if("audience"in i||"resource"in i)throw new En("audience and resource parameters are not supported for Token Vault exchanges");ab(i.subjectToken);const s=new URLSearchParams({connection:i.connection,subject_token:i.subjectToken,subject_token_type:(a=i.subjectTokenType)!==null&&a!==void 0?a:rb,requested_token_type:(o=i.requestedTokenType)!==null&&o!==void 0?o:"http://auth0.com/oauth/token-type/federated-connection-access-token"});i.loginHint&&s.append("login_hint",i.loginHint),i.scope&&s.append("scope",i.scope),ib(s,i.extra);try{const f=await Va(l,"urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token",s);return fn.fromTokenEndpointResponse(f)}catch(f){throw new En("Failed to exchange token for connection '".concat(i.connection,"'."),Ya(f))}}async function _T(i){const a=(await ye(Te,this,ft).call(this)).configuration;if(ab(i.subjectToken),i.organization!==void 0&&Ah(i.organization),i.actorToken!==void 0&&i.actorTokenType===void 0)throw new En("actorTokenType is required when actorToken is provided");const o=new URLSearchParams({subject_token_type:i.subjectTokenType,subject_token:i.subjectToken});let l,s;i.audience&&o.append("audience",i.audience),i.scope&&o.append("scope",i.scope),i.requestedTokenType&&o.append("requested_token_type",i.requestedTokenType),i.organization&&o.append("organization",i.organization),i.actorToken&&o.append("actor_token",i.actorToken),i.actorTokenType&&o.append("actor_token_type",i.actorTokenType),ib(o,i.extra);try{s=await Va(a,"urn:ietf:params:oauth:grant-type:token-exchange",o),l=fn.fromTokenEndpointResponse(s)}catch(d){throw new En("Failed to exchange token of type '".concat(i.subjectTokenType,"'").concat(i.audience?" for audience '".concat(i.audience,"'"):"","."),Ya(d))}var f;if(i.organization&&kh(l.claims,i.organization),i.actorToken)if((f=l.claims)!==null&&f!==void 0&&f.act)l.act=l.claims.act;else try{l.act=(function(d){if(typeof d!="string")throw new wn("JWTs must use Compact JWS serialization, JWT must be a string");const p=d.split("."),g=p[1],m=p.length;if(m===5)throw new wn("Only JWTs using Compact JWS serialization can be decoded");
12if(m!==3)throw new wn("Invalid JWT");if(!g)throw new wn("JWTs must contain a payload");let y,v;try{y=cl(g)}catch{throw new wn("Failed to base64url decode the payload")}try{v=JSON.parse(Rr.decode(y))}catch{throw new wn("Failed to parse the decoded payload as JSON")}if(!Nn(v))throw new wn("Invalid JWT Claims Set");return v})(s.access_token).act}catch{}return l}async function Gv(i){const a=(await ye(Te,this,ft).call(this)).configuration;try{const o=await Va(a,"http://auth0.com/oauth/grant-type/passwordless/otp",i);return fn.fromTokenEndpointResponse(o)}catch(o){throw new tb("There was an error while trying to request a token.",Ya(o))}}async function Oh(){return k(wr,this)||re(wr,this,(async()=>{if(!k(me,this).clientSecret&&!k(me,this).clientAssertionSigningKey&&!k(me,this).useMtls)throw new I0;if(k(me,this).useMtls)return(a,o,l,s)=>{l.set("client_id",o.client_id)};let i=k(me,this).clientAssertionSigningKey;return!i||i instanceof CryptoKey||(i=await Z0(i,k(me,this).clientAssertionSigningAlg||"RS256")),i?(function(a,o){return fE(a)})(i):G0(k(me,this).clientSecret)})().catch(i=>{throw re(wr,this,void 0),i})),k(wr,this)}async function Od(i){const a=(await ye(Te,this,ft).call(this)).configuration,o=BE(),l=await ZE(o),s=Fd(P(P({},k(me,this).authorizationParams),i?.authorizationParams)),f=new URLSearchParams(P(P({scope:ah},s),{},{client_id:k(me,this).clientId,code_challenge:l,code_challenge_method:"S256"}));return{authorizationUrl:i!=null&&i.pushedAuthorizationRequests?await W0(a,f):await Qd(a,f),codeVerifier:o}}class Pa extends De{constructor(a,o){super(a,o),Object.setPrototypeOf(this,Pa.prototype)}static fromPayload(a){let o=a.error,l=a.error_description;return new Pa(o,l)}}class Sc extends Pa{constructor(a,o){super(a,o),Object.setPrototypeOf(this,Sc.prototype)}}class Ch extends Pa{constructor(a,o){super(a,o),Object.setPrototypeOf(this,Ch.prototype)}}class xh extends Pa{constructor(a,o){super(a,o),Object.setPrototypeOf(this,xh.prototype)}}class Sr extends Pa{constructor(a,o){super(a,o),Object.setPrototypeOf(this,Sr.prototype)}}class zh extends Pa{constructor(a,o){super(a,o),Object.setPrototypeOf(this,zh.prototype)}}class ET{constructor(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:6e5;this.contexts=new Map,this.ttlMs=a}set(a,o){this.cleanup(),this.contexts.set(a,Object.assign(Object.assign({},o),{createdAt:Date.now()}))}get(a){const o=this.contexts.get(a);if(o){if(!(Date.now()-o.createdAt>this.ttlMs))return o;this.contexts.delete(a)}}remove(a){this.contexts.delete(a)}cleanup(){const a=Date.now();for(const l of this.contexts){var o=Pt(l,2);const s=o[0];a-o[1].createdAt>this.ttlMs&&this.contexts.delete(s)}}get size(){return this.contexts.size}}class TT{constructor(a,o){this.authJsMfaClient=a,this.auth0Client=o,this.contextManager=new ET}setMFAAuthDetails(a,o,l,s){this.contextManager.set(a,{scope:o,audience:l,mfaRequirements:s})}async getAuthenticators(a){var o,l,s;const f=this.contextManager.get(a);if(!f)throw new Sc("invalid_request","MFA context not found for this MFA token");const d=(l=(o=f.mfaRequirements)===null||o===void 0?void 0:o.challenge)===null||l===void 0?void 0:l.map(p=>p.type);try{const p=await this.authJsMfaClient.listAuthenticators({mfaToken:a});return d&&d.length!==0?p.filter(g=>!!g.type&&d.includes(g.type)):p}catch(p){throw p instanceof $d?new Sc((s=p.cause)===null||s===void 0?void 0:s.error,p.message):p}}async enroll(a){var o;const l=(function(s){const f=nE[s.factorType];return Object.assign(Object.assign(Object.assign({mfaToken:s.mfaToken,authenticatorTypes:f.authenticatorTypes},f.oobChannels&&{oobChannels:f.oobChannels}),"phoneNumber"in s&&{phoneNumber:s.phoneNumber}),"email"in s&&{email:s.email})})(a);try{return await this.authJsMfaClient.enrollAuthenticator(l)}catch(s){throw s instanceof eh?new Ch((o=s.cause)===null||o===void 0?void 0:o.error,s.message):s}}async challenge(a){var o;try{const l={challengeType:a.challengeType,mfaToken:a.mfaToken};return a.authenticatorId&&(l.authenticatorId=a.authenticatorId),await this.authJsMfaClient.challengeAuthenticator(l)}catch(l){throw l instanceof th?new xh((o=l.cause)===null||o===void 0?void 0:o.error,l.message):l}}async getEnrollmentFactors(a){const o=this.contextManager.get(a);if(!o||!o.mfaRequirements)throw new zh("mfa_context_not_found","MFA context not found for this MFA token. Please retry the original request to get a new MFA token.");return o.mfaRequirements.enroll&&o.mfaRequirements.enroll.length!==0?o.mfaRequirements.enroll:[]}async verify(a){const o=this.contextManager.get(a.mfaToken);if(!o)throw new Sr("mfa_context_not_found","MFA context not found for this MFA token. Please retry the original request to get a new MFA token.");const l=(function(d){return"otp"in d&&d.otp?aE:"oobCode"in d&&d.oobCode?iE:"recoveryCode"in d&&d.recoveryCode?r
12E:void 0})(a);if(!l)throw new Sr("invalid_request","Unable to determine grant type. Provide one of: otp, oobCode, or recoveryCode.");const s=o.scope,f=o.audience;try{const d=await this.auth0Client._requestTokenForMfa({grant_type:l,mfaToken:a.mfaToken,scope:s,audience:f,otp:a.otp,oob_code:a.oobCode,binding_code:a.bindingCode,recovery_code:a.recoveryCode});return this.contextManager.remove(a.mfaToken),d}catch(d){throw d instanceof Sr?new Sr(d.error,d.error_description):d}}}class _r extends Error{constructor(a,o,l){super(o),this.name="PasskeyError",this.code=a,this.cause=l,Object.setPrototypeOf(this,_r.prototype)}}var qo,Vo;class AT{constructor(a,o){qo.set(this,void 0),Vo.set(this,void 0),$g(this,qo,a),$g(this,Vo,o)}async signup(a){if(!window.PublicKeyCredential)throw new _r("passkey_not_supported","WebAuthn is not supported in this browser.");const o=a.scope,l=a.audience,s=Mt(a,["scope","audience"]),f=await js(this,qo,"f").register(s),d=(p=f.authnParamsPublicKey,Object.assign(Object.assign({},p),{challenge:Cd(p.challenge),user:Object.assign(Object.assign({},p.user),{id:Cd(p.user.id)}),pubKeyCredParams:p.pubKeyCredParams,authenticatorSelection:p.authenticatorSelection}));var p;const g=await navigator.credentials.create({publicKey:d});if(!g)throw new _r("passkey_cancelled","Passkey creation was cancelled or no credential was returned.");const m=(function(y){var v;const w=y.response;return{id:y.id,rawId:Za(y.rawId),type:y.type,authenticatorAttachment:(v=y.authenticatorAttachment)!==null&&v!==void 0?v:void 0,response:{clientDataJSON:Za(w.clientDataJSON),attestationObject:Za(w.attestationObject)},clientExtensionResults:y.getClientExtensionResults()}})(g);return js(this,Vo,"f")._requestTokenForPasskey({authSession:f.authSession,credential:m,realm:s.realm,organization:s.organization,scope:o,audience:l})}async login(a){if(!window.PublicKeyCredential)throw new _r("passkey_not_supported","WebAuthn is not supported in this browser.");const o=a||{},l=o.scope,s=o.audience,f=Mt(o,["scope","audience"]),d=await js(this,qo,"f").challenge(Object.keys(f).length>0?f:void 0),p=(g=d.authnParamsPublicKey,Object.assign(Object.assign({},g),{challenge:Cd(g.challenge)}));var g;const m=await navigator.credentials.get({publicKey:p});if(!m)throw new _r("passkey_cancelled","Passkey authentication was cancelled or no credential was returned.");const y=(function(v){var w;const _=v.response;return{id:v.id,rawId:Za(v.rawId),type:v.type,authenticatorAttachment:(w=v.authenticatorAttachment)!==null&&w!==void 0?w:void 0,response:{clientDataJSON:Za(_.clientDataJSON),authenticatorData:Za(_.authenticatorData),signature:Za(_.signature),userHandle:_.userHandle?Za(_.userHandle):void 0},clientExtensionResults:v.getClientExtensionResults()}})(m);return js(this,Vo,"f")._requestTokenForPasskey({authSession:d.authSession,credential:y,realm:f.realm,organization:f.organization,scope:l,audience:s})}}function Za(i){const a=new Uint8Array(i),o=Array.from(a,l=>String.fromCharCode(l)).join("");return btoa(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function Cd(i){const a=i.replace(/-/g,"+").replace(/_/g,"/"),o=a+"=".repeat((4-a.length%4)%4),l=atob(o),s=new Uint8Array(l.length);for(let f=0;f<l.length;f++)s[f]=l.charCodeAt(f);return s.buffer}qo=new WeakMap,Vo=new WeakMap;class kT{constructor(a){let o,l;if(this.userCache=new u0().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),a),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),a.authorizationParams)}),typeof window<"u"&&(()=>{if(!dc())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(dc().subtle===void 0)throw new Error(` 13 auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information. 14 `)})(),this.lockManager=(ld||(ld=k_()),ld),a.cache&&a.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),a.cache)l=a.cache;else{if(o=a.cacheLocation||av,!hv(o))throw new Error('Invalid cac
14he location "'.concat(o,'"'));l=hv(o)()}var s;this.httpTimeoutMs=a.httpTimeoutInSeconds?1e3*a.httpTimeoutInSeconds:Md,this.cookieStorage=a.legacySameSiteCookie===!1?vr:q_,this.orgHintCookieName=(s=this.options.clientId,"auth0.".concat(s,".organization_hint")),this.isAuthenticatedCookieName=(m=>"auth0.".concat(m,".is.authenticated"))(this.options.clientId),this.sessionCheckExpiryDays=a.sessionCheckExpiryDays||1;const f=a.useCookiesForTransactions?this.cookieStorage:V_;var d;this.scope=(function(m,y){for(var v=arguments.length,w=new Array(v>2?v-2:0),_=2;_<v;_++)w[_-2]=arguments[_];if(typeof m!="object")return{[wt]:tc(y,m,...w)};let A={[wt]:tc(y,...w)};return Object.keys(m).forEach(O=>{const R=m[O];A[O]=tc(y,R,...w)}),A})(this.options.authorizationParams.scope,"openid",this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Z_(f,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||n0,this.cacheManager=new K_(l,l.allKeys?void 0:new Q_(l,this.options.clientId),this.nowProvider),this.dpop=this.options.useDpop?new $_(this.options.clientId):void 0,this.domainUrl=(d=this.options.domain,/^https?:\/\//.test(d)?d:"https://".concat(d)),this.tokenIssuer=((m,y)=>m?m.startsWith("https://")?m:"https://".concat(m,"/"):"".concat(y,"/"))(this.options.issuer,this.domainUrl);const p="".concat(this.domainUrl,"/me/"),g=this.createFetcher(Object.assign(Object.assign({},this.options.useDpop&&{dpopNonceId:"__auth0_my_account_api__"}),{getAccessToken:m=>{var y;return this.getTokenSilently({authorizationParams:{scope:(y=m?.scope)===null||y===void 0?void 0:y.join(" "),audience:p},detailedResponse:!0})}}));this.myAccount=new tE(g,p),this.authJsClient=new bT({domain:this.options.domain,clientId:this.options.clientId}),this.mfa=new TT(this.authJsClient.mfa,this),this.passkey=new AT(this.authJsClient.passkey,this),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&o===av&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new W_,this.worker.postMessage({type:"init",allowedBaseUrl:this.domainUrl}))}getConfiguration(){return Object.freeze({domain:this.options.domain,clientId:this.options.clientId})}_url(a){const o=this.options.auth0Client||Nd,l=jd(o,!0),s=encodeURIComponent(btoa(JSON.stringify(l)));return"".concat(this.domainUrl).concat(a,"&auth0Client=").concat(s)}_authorizeUrl(a){return this._url("/authorize?".concat(Xo(a)))}async _verifyIdToken(a,o,l){const s=await this.nowProvider();return J_({iss:this.tokenIssuer,aud:this.options.clientId,id_token:a,nonce:o,organization:l,leeway:this.options.leeway,max_age:(f=this.options.authorizationParams.max_age,typeof f!="string"?f:parseInt(f,10)||void 0),now:s});var f}_processOrgHint(a){a?this.cookieStorage.save(this.orgHintCookieName,a,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}_extractSessionTransferToken(a){return new URLSearchParams(window.location.search).get(a)||void 0}_clearSessionTransferTokenFromUrl(a){try{const o=new URL(window.location.href);o.searchParams.has(a)&&(o.searchParams.delete(a),window.history.replaceState({},"",o.toString()))}catch{}}_applySessionTransferToken(a){const o=this.options.sessionTransferTokenQueryParamName;if(!o||a.session_transfer_token)return a;const l=this._extractSessionTransferToken(o);return l?(this._clearSessionTransferTokenFromUrl(o),Object.assign(Object.assign({},a),{session_transfer_token:l})):a}async _prepareAuthorizeUrl(a,o,l){var s;const f=ad(zo()),d=ad(zo()),p=zo(),g=await iv(p),m=ov(g),y=await((s=this.dpop)===null||s===void 0?void 0:s.calculateThumbprint()),v=((_,A,O,R,x,J,Z,q,Q)=>Object.assign(Object.assign(Object.assign({client_id:_.clientId},_.authorizationParams),O),{scope:Uo(A,O.scope,O.audience),response_type:"code",response_mode:q||"query",state:R,nonce:x,redirect_uri:Z||_.authorizationParams.redirect_uri,code_challenge:J,code_challenge_method:"S256",dpop_jkt:Q}))(this.options,this.scope,a,f,d,m,a.redirect_uri||this.options.authorizationParams.redirect_uri||l,o?.response_mode,y),w=this._authorizeUrl(v);return{nonce:d,code_verifier:p,scope:v.scope,audience:v.audience||wt,redirect_uri:v.redirect_uri,state:f,url:w}}async loginWithPopup(a,o){var l;if(a=a||{},!(o=o||{}).popup&&(o.popup=(g=>{const m=window.screenX+(window.innerWidth-400)/2,y=window.screenY+(window.innerHeight-600)/2;return window.open(g,"auth0:authorize:popup","left=".concat(m,",top=").concat(y,",width=").concat(400,",height=").concat(600,",resizable,scrollbars=yes,status=1"))})(""),!o.popup))throw new hh;const s=this._applySessionTransferToken(a.authorizationParams||{}),f=await this._prepareAuthorizeUrl(s,{response_mode:"web_message"},window.location.origin);o.popup.location.href=f.url;const d=await((g,m)=>new Promise((y,v)=>{let w;const _=setInterval(()=>{g.popup&&g.popup.closed&&(clearInterval(_),clearTimeout(A),window.removeEventListener("message",w,!1),v(new dh(g.popup)))},1e3),A=setTimeout(()=>{clearInterval(_),v(new fh(g.popup)),window.removeEventListener("message",w,!1)},1e3*(g.timeoutInSeconds||60));w=function(O){if(O.origin===m&&O.data&&O.data.type==="authorization_response"){if(clearTimeout(A),clearInterval(_),window.removeEventListener("message",w,!1),g.closePopup!==!1&&g.popup.close(),O.data.response.error)return v(De.fromPayload(O.data.response));y(O.data.response)}},window.addEventListener("message",w)}))(Object.assign(Object.assign({},o),{timeoutInSeconds:o.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}),new URL(f.url).origin);if(f.state!==d.state)throw new De("state_mismatch","Invalid state");const p=((l=a.authorizationParams)===null||l===void 0?void 0:l.organization)||this.options.authorizationParams.organization;
14await this._requestToken({audience:f.audience,scope:f.scope,code_verifier:f.code_verifier,grant_type:"authorization_code",code:d.code,redirect_uri:f.redirect_uri},{nonceIn:f.nonce,organization:p})}async getUser(){var a;if(await this._isSessionCeilingReached())return;const o=await this._getIdTokenFromCache();return(a=o?.decodedToken)===null||a===void 0?void 0:a.user}async getIdTokenClaims(){var a;if(await this._isSessionCeilingReached())return;const o=await this._getIdTokenFromCache();return(a=o?.decodedToken)===null||a===void 0?void 0:a.claims}async loginWithRedirect(){var a;const o=pv(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),l=o.openUrl,s=o.fragment,f=o.appState,d=Mt(o,["openUrl","fragment","appState"]),p=((a=d.authorizationParams)===null||a===void 0?void 0:a.organization)||this.options.authorizationParams.organization,g=this._applySessionTransferToken(d.authorizationParams||{}),m=await this._prepareAuthorizeUrl(g),y=m.url,v=Mt(m,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},v),{appState:f,response_type:Ga.Code}),p&&{organization:p}));const w=s?"".concat(y,"#").concat(s):y;l?await l(w):window.location.assign(w)}async handleRedirectCallback(){const a=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location.href).split("?").slice(1);if(a.length===0)throw new Error("There are no query params available for parsing.");const o=this.transactionManager.get();if(!o)throw new De("missing_transaction","Invalid state");this.transactionManager.remove();const l=(s=>{s.indexOf("#")>-1&&(s=s.substring(0,s.indexOf("#")));const f=new URLSearchParams(s);return{state:f.get("state"),code:f.get("code")||void 0,connect_code:f.get("connect_code")||void 0,error:f.get("error")||void 0,error_description:f.get("error_description")||void 0}})(a.join(""));return o.response_type===Ga.ConnectCode?this._handleConnectAccountRedirectCallback(l,o):this._handleLoginRedirectCallback(l,o)}async _handleLoginRedirectCallback(a,o){const l=a.code,s=a.state,f=a.error,d=a.error_description;if(f)throw new ch(f,d||f,s,o.appState);if(!o.code_verifier||o.state&&o.state!==s)throw new De("state_mismatch","Invalid state");const p=o.organization,g=o.nonce,m=o.redirect_uri;return await this._requestToken(Object.assign({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:l},m?{redirect_uri:m}:{}),{nonceIn:g,organization:p}),{appState:o.appState,response_type:Ga.Code}}async _handleConnectAccountRedirectCallback(a,o){const l=a.connect_code,s=a.state,f=a.error,d=a.error_description;if(f)throw new uh(f,d||f,o.connection,s,o.appState);if(!l)throw new De("missing_connect_code","Missing connect code");if(!(o.code_verifier&&o.state&&o.auth_session&&o.redirect_uri&&o.state===s))throw new De("state_mismatch","Invalid state");const p=await this.myAccount.completeAccount({auth_session:o.auth_session,connect_code:l,redirect_uri:o.redirect_uri,code_verifier:o.code_verifier});return Object.assign(Object.assign({},p),{appState:o.appState,response_type:Ga.ConnectCode})}async checkSession(a){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get(dv))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(dv)}try{await this.getTokenSilently(a)}catch{}}async getTokenSilently(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var o,l;const s=Object.assign(Object.assign({cacheMode:"on"},a),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),a.authorizationParams),{scope:Uo(this.scope,(o=a.authorizationParams)===null||o===void 0?void 0:o.scope,((l=a.authorizationParams)===null||l===void 0?void 0:l.audience)||this.options.authorizationParams.audience)})}),f=await((d,p)=>{let g=ud[p];return g||(g=d().finally(()=>{delete ud[p],g=null}),ud[p]=g),g})(()=>this._getTokenSilently(s),"".concat(this.options.clientId,"::").concat(s.authorizationParams.audience,"::").concat(s.authorizationParams.scope));return a.detailedResponse?f:f?.access_token}async _getTokenSilently(a){const o=a.cacheMode,l=Mt(a,["cacheMode"]);if(await this._isSessionCeilingReached())return;if(o!=="off"){const p=await this._getEntryFromCache({scope:l.authorizationParams.scope,audience:l.authorizationParams.audience||wt,clientId:this.options.clientId,cacheMode:o});if(p)return p}if(o==="cache-only")return;const s=(f=this.options.clientId,d=l.authorizationParams.audience||"default","".concat("auth0.lock.getTokenSilently",".").concat(f,".").concat(d));var f,d;try{return await this.lockManager.runWithLock(s,5e3,async()=>
14{if(o!=="off"){const _=await this._getEntryFromCache({scope:l.authorizationParams.scope,audience:l.authorizationParams.audience||wt,clientId:this.options.clientId});if(_)return _}const p=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(l):await this._getTokenFromIFrame(l),g=p.id_token,m=p.token_type,y=p.access_token,v=p.oauthTokenScope,w=p.expires_in;return Object.assign(Object.assign({id_token:g,token_type:m,access_token:y},v?{scope:v}:null),{expires_in:w})})}catch(p){if(this._isInteractiveError(p)&&this.options.interactiveErrorHandler==="popup")return await this._handleInteractiveErrorWithPopup(l);throw p}}_isInteractiveError(a){return a instanceof nl||a instanceof De&&this._isIframeMfaError(a)}_isIframeMfaError(a){return a.error==="login_required"&&a.error_description==="Multifactor authentication required"}async _handleInteractiveErrorWithPopup(a){try{await this.loginWithPopup({authorizationParams:a.authorizationParams});const o=await this._getEntryFromCache({scope:a.authorizationParams.scope,audience:a.authorizationParams.audience||wt,clientId:this.options.clientId});if(!o)throw new De("interactive_handler_cache_miss","Token not found in cache after interactive authentication");return o}catch(o){throw o}}async getTokenWithPopup(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var l,s;const f=Object.assign(Object.assign({},a),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),a.authorizationParams),{scope:Uo(this.scope,(l=a.authorizationParams)===null||l===void 0?void 0:l.scope,((s=a.authorizationParams)===null||s===void 0?void 0:s.audience)||this.options.authorizationParams.audience)})});return o=Object.assign(Object.assign({},b_),o),await this.loginWithPopup(f,o),(await this.cacheManager.get(new At({scope:f.authorizationParams.scope,audience:f.authorizationParams.audience||wt,clientId:this.options.clientId}),void 0,this.options.useMrrt)).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(a){a.clientId!==null?a.clientId=a.clientId||this.options.clientId:delete a.clientId;const o=a.logoutParams||{},l=o.federated,s=Mt(o,["federated"]),f=l?"&federated":"";return this._url("/v2/logout?".concat(Xo(Object.assign({clientId:a.clientId},s))))+f}async revokeRefreshToken(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.options.useRefreshTokens)return;const o=a.audience||this.options.authorizationParams.audience||wt,l=await this.cacheManager.getRefreshTokensByAudience(o,this.options.clientId);await(async function(s,f){let d=s.baseUrl,p=s.timeout,g=s.auth0Client,m=s.useFormData,y=s.refreshTokens,v=s.audience,w=s.client_id,_=s.onRefreshTokenRevoked;const A=p||Md,O="refresh_token",R="".concat(d,"/oauth/revoke"),x={"Content-Type":m?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(jd(g||Nd)))};if(f){const Z={client_id:w,token_type_hint:O},q=m?Xo(Z):JSON.stringify(Z);try{return await Ld({type:"revoke",timeout:A,fetchUrl:R,fetchOptions:{method:"POST",body:q,headers:x},useFormData:m,auth:{audience:v??wt}},f)}catch(Q){throw new De("revoke_error",Q.message)}}for(const Z of y){const q={client_id:w,token_type_hint:O,token:Z},Q=m?Xo(q):JSON.stringify(q),ae=await s0(R,{method:"POST",body:Q,headers:x},A);if(!ae.ok){let G,ne;try{var J=JSON.parse(await ae.text());G=J.error,ne=J.error_description}catch{}throw new De(G||"revoke_error",ne||"HTTP error ".concat(ae.status))}await _?.(Z)}})({baseUrl:this.domainUrl,timeout:this.httpTimeoutMs,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,client_id:this.options.clientId,refreshTokens:l,audience:o,onRefreshTokenRevoked:s=>this.cacheManager.stripRefreshToken(s)},this.worker)}async logout(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=pv(a),l=o.openUrl,s=Mt(o,["openUrl"]);await this._clearLocalSession(a.clientId);const f=this._buildLogoutUrl(s);l?await l(f):l!==!1&&window.location.assign(f)}async _getTokenFromIFrame(a){const o=(l=this.options.clientId,"".concat("auth0.lock.getTokenFromIFrame",".").concat(l));var l;try{return await this.lockManager.runWithLock(o,5e3,async()=>{const s=Object.assign(Object.assign({},a.authorizationParams),{prompt:"none"}),f=this.cookieStorage.get(this.orgHintCookieName);f&&!s.organization&&(s.organization=f);const d=await this._prepareAuthorizeUrl(s,{response_mode:"web_message"},window.location.origin),p=d.url,g=d.state,m=d.nonce,y=d.code_verifier,v=d.redirect_uri,w=d.scope,_=d.audience;if(window.crossOriginIsolated)throw new De("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const A=a.timeoutInSeconds||this.options.authorizeTimeoutInSeconds;let O;try{O=new URL(this.domainUrl).origin}catch{O=this.domainUrl}const R=await(function(J,Z){let q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:60;return new Promise((Q,ae)=>{const G=window.document.createElement("iframe");G.setAttribute("width","0"),G.setAttribute("height","0"),G.style.display="none";const ne=()=>{window.document.body.contains(G)&&(window.document.body.removeChild(G),window.removeEventListener("message",he,!1))};let he;const Ae=setTimeout(()=>{ae(new Cr),ne()},1e3*q);he=function(ge){if(ge.origin!=Z||!ge.data||ge.data.type!=="authorization_response")return;const Ce=ge.source;Ce&&Ce.close(),ge.data.response.error?ae(De.fromPayload(ge.data.response)):Q(ge.data.response),clearTimeout(Ae),window.removeEventListener("message",he,!1),setTimeout(ne,2e3)},window.addEventListener("message",he,!1),window.document.body.appendChild(G),G.setAttribute("src",J)})})(p,O,A);if(g!==R.state)throw new De("state_mismatch","Invalid state");const x=await this._requestToken(Object.assign(Object.assign({},a.authorizationParams),{code_verifier:y,code:R.code,grant_type:"authorization_code",redirect_uri:v,timeout:a.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:m,organization:s.organization});return Object.assign(Object.assign({},x),{scope:w,oauthTokenScope:x.scope,audience:_})})}catch(s){throw s.error==="login_required"&&(s instanceof De&&this._isIframeMfaError(s)&&this.options.interactiveErrorHandler==="popup"||this.logout({openUrl:!1})),s}}async _getTokenUsingRefreshToken(a){const o=await this.cacheManager.get(new At({scope:a.authorizationParams.scope,audience:a.authorizationParams.audience||wt,clientId:this.options.clientId}),void 0,this.options.useMrrt);if(!(o&&o.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(a);throw new Tc(a.authorizationParams.audience||wt,a.authorizationParams.scope)}const l=a.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,s=typeof a.timeoutInSeconds=="number"?1e3*a.timeoutInSeconds:null,f=((y,v,w,_)=>{var A;if(y&&w&&_){if(v.audience!==w)return v.scope;const O=_.split(" "),R=((A=v.scope)===null||A===void 0?void 0:A.split(" "))||[],x=R.every(J=>O.includes(J));return O.length>=R.length&&x?_:v.scope}return v.scope})(this.options.useMrrt,a.authorizationParams,o?.audience,o?.scope);try{const y=await this._requestToken(Object.assign(Object.assign(Object.assign({},a.authorizationParams),{grant_type:"refresh_token",refresh_token:o&&o.refresh_token,redirect_uri:l}),s&&{timeout:s}
14),{scopesToRequest:f});if(y.refresh_token&&o?.refresh_token&&await this.cacheManager.updateEntry(o.refresh_token,y.refresh_token),this.options.useMrrt&&(d=o?.audience,p=o?.scope,g=a.authorizationParams.audience,m=a.authorizationParams.scope,(d!==g||!mv(m,p))&&!mv(f,y.scope))){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(a);await this.cacheManager.remove(this.options.clientId,a.authorizationParams.audience,a.authorizationParams.scope);const v=((w,_)=>{const A=w?.split(" ")||[],O=_?.split(" ")||[];return A.filter(R=>O.indexOf(R)==-1).join(",")})(f,y.scope);throw new ph(a.authorizationParams.audience||"default",v)}return Object.assign(Object.assign({},y),{scope:a.authorizationParams.scope,oauthTokenScope:y.scope,audience:a.authorizationParams.audience||wt})}catch(y){if(y.message){if(y.message.includes("user is blocked"))throw await this.logout({openUrl:!1}),y;if((y.message.includes("Missing Refresh Token")||y.message.includes("invalid refresh token"))&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(a)}throw y}var d,p,g,m}async _saveEntryInCache(a){const o=a.decodedToken.claims,l=o.session_expiry,s=o.iat;if(l!==void 0){if(typeof l!="number")throw new De("invalid_token","Invalid session_expiry: value must be a number.");if(l>=1e10)throw new De("invalid_token","Invalid session_expiry: value appears to be in milliseconds; expected a Unix timestamp in seconds.");if(s===void 0||l<=s)throw new De("invalid_token","Invalid session_expiry: session ceiling is before or at the token issue time.")}const f=a.id_token,d=a.decodedToken,p=Mt(a,["id_token","decodedToken"]);this.userCache.set(wi,{id_token:f,decodedToken:d}),await this.cacheManager.setIdToken(this.options.clientId,a.id_token,a.decodedToken),await this.cacheManager.set(p)}async _clearLocalSession(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.clientId;var o;a===null?await this.cacheManager.clear():await this.cacheManager.clear(a),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove(wi);try{await((o=this.dpop)===null||o===void 0?void 0:o.clear())}catch{}if(this.worker)try{await Ld({type:"clear"},this.worker)}catch{}}async _isSessionCeilingReached(){var a,o;const l=this.userCache.get(wi),s=l??await this.cacheManager.getIdToken(new At({clientId:this.options.clientId})),f=(o=(a=s?.decodedToken)===null||a===void 0?void 0:a.claims)===null||o===void 0?void 0:o.session_expiry;if(f===void 0)return!1;const d=await this.nowProvider();return Math.floor(d/1e3)>=f-30&&(await this._clearLocalSession(),!0)}async _getIdTokenFromCache(){const a=this.options.authorizationParams.audience||wt,o=this.scope[a],l=await this.cacheManager.getIdToken(new At({clientId:this.options.clientId,audience:a,scope:o})),s=this.userCache.get(wi);return l&&l.id_token===s?.id_token?s:(this.userCache.set(wi,l),l)}async _getEntryFromCache(a){let o=a.scope,l=a.audience,s=a.clientId,f=a.cacheMode;const d=await this.cacheManager.get(new At({scope:o,audience:l,clientId:s}),60,this.options.useMrrt,f);if(d&&d.access_token){const p=d.token_type,g=d.access_token,m=d.oauthTokenScope,y=d.expires_in,v=await this._getIdTokenFromCache();return v&&Object.assign(Object.assign({id_token:v.id_token,token_type:p||"Bearer",access_token:g},m?{scope:m}:null),{expires_in:y})}}_storeMfaContext(a,o,l){a instanceof nl&&this.mfa.setMFAAuthDetails(a.mfa_token,o,l,a.mfa_requirements)}async _requestToken(a,o){var l,s,f,d;const p=o||{},g=p.nonceIn,m=p.organization,y=p.scopesToRequest;try{const v=await sv(Object.assign(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs,useMrrt:this.options.useMrrt,dpop:this.dpop},a),{scope:y||a.scope}),this.worker);let w=await this._verifyIdToken(v.id_token,g,m);if(a.grant_type==="authorization_code"){const _=await this._getIdTokenFromCache();!((s=(l=_?.decodedToken)===null||l===void 0?void 0:l.claims)===null||s===void 0)&&s.sub&&_.decodedToken.claims.sub!==w.claims.sub&&(await this.cacheManager.clear(this.options.clientId),this.userCache.remove(wi))}if(a.grant_type!=="authorization_code"){const _=await this._getIdTokenFromCache(),A=(d=(f=_?.decodedToken)===null||f===void 0?void 0:f.claims)===null||d===void 0?void 0:d.session_expiry;A!==void 0&&(w=Object.assign(Object.assign({},w),{claims:Object.assign(Object.assign({},w.claims),{session_expiry:A})}))}return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},v),{decodedToken:w,scope:a.scope,audience:a.audience||wt}),v.scope?{oauthTokenScope:v.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(m||w.claims.org_id),Object.assign(Object.assign({},v),{decodedToken:w})}catch(v){throw a.grant_type!=="authorization_code"&&this._storeMfaContext(v,y||a.scope,a.audience),v}}_buildTokenExchangeParams(a){return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},a),{grant_type:"urn:ietf:params:oauth:grant-type:token-exchange",subject_token:a.subject_token,subject_token_type:a.subject_token_type}),a.actor_token&&{actor_token:a.actor_token}),a.actor_token_type&&{actor_token_type:a.actor_token_type}),{scope:Uo(this.scope,a.scope,a.audience||this.options.authorizationParams.audience),audience:a.audience||this.options.authorizationParams.audience,organization:a.organization||this.options.authorizationParams.organization})}async loginWithCustomTokenExchange(a){return this._requestToken(this._buildTokenExchangeParams(a))}async customTokenExchange(a){const o=this._buildTokenExchangeParams(a);try{const l=await sv(Object.assign(Object.assign({},o),{baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs,dpop:this.dpop}),this.worker,!0);return l.id_token&&await this._verifyIdToken(l.id_token,void 0,a.organization),l}catch(l){throw this._storeMfaContext(l,o.scope,o.audience),l}}async exchangeToken(a){return this.loginWithCustomTokenExchange(a)}_assertDpop(a){if(!a)throw new Error("`useDpop` option must be enabled before using DPoP.")}getDpopNonce(a){return this._assertDpop(this.dpop),this.dpop.getNonce(a)}setDpopNonce(a,o){return this._assertDpop(this.dpop),this.dpop.setNonce(a,o)}generateDpopProof(a){return this._assertDpop(this.dpop),this.dpop.generateProof(a)}createFetcher(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new eE(a,{isDpopEnabled:()=>!!this.options.useDpop,getAccessToken:o=>{var l;
14return this.getTokenSilently({authorizationParams:{scope:(l=o?.scope)===null||l===void 0?void 0:l.join(" "),audience:o?.audience},detailedResponse:!0})},getDpopNonce:()=>this.getDpopNonce(a.dpopNonceId),setDpopNonce:o=>this.setDpopNonce(o,a.dpopNonceId),generateDpopProof:o=>this.generateDpopProof(o)})}async connectAccountWithRedirect(a){const o=a.openUrl,l=a.appState,s=a.connection,f=a.scopes,d=a.authorization_params,p=a.redirectUri,g=p===void 0?this.options.authorizationParams.redirect_uri||window.location.origin:p;if(!s)throw new Error("connection is required");const m=ad(zo()),y=zo(),v=await iv(y),w=ov(v),_=await this.myAccount.connectAccount({connection:s,scopes:f,redirect_uri:g,state:m,code_challenge:w,code_challenge_method:"S256",authorization_params:d}),A=_.connect_uri,O=_.connect_params,R=_.auth_session;this.transactionManager.create({state:m,code_verifier:y,auth_session:R,redirect_uri:g,appState:l,connection:s,response_type:Ga.ConnectCode});const x=new URL(A);x.searchParams.set("ticket",O.ticket),o?await o(x.toString()):window.location.assign(x)}async _requestTokenForPasskey(a){const o=a.audience||this.options.authorizationParams.audience,l=a.organization||this.options.authorizationParams.organization;return this._requestToken(Object.assign(Object.assign(Object.assign({grant_type:"urn:okta:params:oauth:grant-type:webauthn",auth_session:a.authSession,authn_response:a.credential},a.realm&&{realm:a.realm}),l&&{organization:l}),{scope:Uo(this.scope,a.scope,o),audience:o}))}async _requestTokenForMfa(a,o){const l=a.mfaToken,s=Mt(a,["mfaToken"]);return this._requestToken(Object.assign(Object.assign({},s),{mfa_token:l}),o)}}var ob={isAuthenticated:!1,isLoading:!0,error:void 0,user:void 0},Oe=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},RT=Pe(Pe({},ob),{buildAuthorizeUrl:Oe,buildLogoutUrl:Oe,getAccessTokenSilently:Oe,getAccessTokenWithPopup:Oe,getIdTokenClaims:Oe,loginWithCustomTokenExchange:Oe,customTokenExchange:Oe,exchangeToken:Oe,loginWithRedirect:Oe,loginWithPopup:Oe,connectAccountWithRedirect:Oe,logout:Oe,handleRedirectCallback:Oe,getDpopNonce:Oe,setDpopNonce:Oe,generateDpopProof:Oe,createFetcher:Oe,getConfiguration:Oe,mfa:{getAuthenticators:Oe,enroll:Oe,challenge:Oe,verify:Oe,getEnrollmentFactors:Oe},passkey:{signup:Oe,login:Oe},myAccount:{getFactors:Oe,getAuthenticationMethods:Oe,getAuthenticationMethod:Oe,updateAuthenticationMethod:Oe,deleteAuthenticationMethod:Oe,enrollmentChallenge:Oe,enrollmentVerify:Oe}}),Dh=z.createContext(RT),Xv=(function(i){m_(a,i);function a(o,l){var s=i.call(this,l??o)||this;return s.error=o,s.error_description=l,Object.setPrototypeOf(s,a.prototype),s}return a})(Error),OT=/[?&](?:connect_)?code=[^&]+/,CT=/[?&]state=[^&]+/,xT=/[?&]error=[^&]+/,zT=function(i){return i===void 0&&(i=window.location.search),(OT.test(i)||xT.test(i))&&CT.test(i)},lb=function(i){return function(a){if(a instanceof Error)return a;
14if(a!==null&&typeof a=="object"&&"error"in a&&typeof a.error=="string"){if("error_description"in a&&typeof a.error_description=="string"){var o=a;return new Xv(o.error,o.error_description)}var l=a;return new Xv(l.error)}return new Error(i)}},Yv=lb("Login failed"),gr=lb("Get access token failed"),sb=function(i){var a,o;i?.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),i.authorizationParams=(a=i.authorizationParams)!==null&&a!==void 0?a:{},i.authorizationParams.redirect_uri=i.redirectUri,delete i.redirectUri),!((o=i?.authorizationParams)===null||o===void 0)&&o.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),i.authorizationParams.redirect_uri=i.authorizationParams.redirectUri,delete i.authorizationParams.redirectUri)},DT=function(i,a){switch(a.type){case"LOGIN_POPUP_STARTED":return Pe(Pe({},i),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return Pe(Pe({},i),{isAuthenticated:!!a.user,user:a.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return i.user===a.user?i:Pe(Pe({},i),{isAuthenticated:!!a.user,user:a.user});case"LOGOUT":return Pe(Pe({},i),{isAuthenticated:!1,user:void 0});case"ERROR":return Pe(Pe({},i),{isLoading:!1,error:a.error})}},UT=function(i){return sb(i),Pe(Pe({},i),{auth0Client:{name:"auth0-react",version:"2.20.0"}})},MT=function(i){var a;window.history.replaceState({},document.title,(a=i.returnTo)!==null&&a!==void 0?a:window.location.pathname)},NT=function(i){var a=i,o=a.children,l=a.skipRedirectCallback,s=a.onRedirectCallback,f=s===void 0?MT:s,d=a.context,p=d===void 0?Dh:d,g=a.client,m=Fg(a,["children","skipRedirectCallback","onRedirectCallback","context","client"]);g&&(m.domain||m.clientId)&&console.warn("Auth0Provider: the `client` prop takes precedence over `domain`/`clientId` and other configuration options. Remove `domain`, `clientId`, and any other Auth0Client configuration props when using the `client` prop.");var y=z.useState(function(){return g??new kT(UT(m))})[0],v=z.useReducer(DT,ob),w=v[0],_=v[1],A=z.useRef(!1),O=z.useCallback(function(M){return _({type:"ERROR",error:M}),M},[]);z.useEffect(function(){A.current||(A.current=!0,(function(){return sn(void 0,void 0,void 0,function(){var M,X,Y,F,I,ee,Ye;return cn(this,function(Me){switch(Me.label){case 0:return Me.trys.push([0,7,,8]),M=void 0,zT()&&!l?[4,y.handleRedirectCallback()]:[3,3];case 1:return X=Me.sent(),Y=X.appState,F=Y===void 0?{}:Y,I=X.response_type,ee=Fg(X,["appState","response_type"]),[4,y.getUser()];case 2:return M=Me.sent(),F.response_type=I,I===Ga.ConnectCode&&(F.connectedAccount=ee),f(F,M),[3,6];case 3:return[4,y.checkSession()];case 4:return Me.sent(),[4,y.getUser()];case 5:M=Me.sent(),Me.label=6;case 6:return _({type:"INITIALISED",user:M}),[3,8];case 7:return Ye=Me.sent(),O(Yv(Ye)),[3,8];case 8:return[2]}})})})())},[y,f,l,O]);var R=z.useCallback(function(M){return sb(M),y.loginWithRedirect(M)},[y]),x=z.useCallback(function(M,X){return sn(void 0,void 0,void 0,function(){var Y,F;return cn(this,function(I){switch(I.label){case 0:_({type:"LOGIN_POPUP_STARTED"}),I.label=1;case 1:return I.trys.push([1,3,,4]),[4,y.loginWithPopup(M,X)];case 2:return I.sent(),[3,4];case 3:return Y=I.sent(),O(Yv(Y)),[2];case 4:return[4,y.getUser()];case 5:return F=I.sent(),_({type:"LOGIN_POPUP_COMPLETE",user:F}),[2]}})})},[y,O]),J=z.useCallback(function(){for(var M=[],X=0;X<arguments.length;X++)M[X]=arguments[X];return sn(void 0,y_([],M),void 0,function(Y){return Y===void 0&&(Y={}),cn(this,function(F){switch(F.label){case 0:return[4,y.logout(Y)];case 1:return F.sent(),(Y.openUrl||Y.openUrl===!1)&&_({type:"LOGOUT"}),[2]}})})},[y]),Z=z.useCallback(function(M){return sn(void 0,void 0,void 0,function(){var X,Y,F,I;return cn(this,function(ee){switch(ee.label){case 0:return ee.trys.push([0,2,3,5]),[4,y.getTokenSilently(M)];
14case 1:return X=ee.sent(),[3,5];case 2:throw Y=ee.sent(),gr(Y);case 3:return F=_,I={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,y.getUser()];case 4:return F.apply(void 0,[(I.user=ee.sent(),I)]),[7];case 5:return[2,X]}})})},[y]),q=z.useCallback(function(M,X){return sn(void 0,void 0,void 0,function(){var Y,F,I,ee;return cn(this,function(Ye){switch(Ye.label){case 0:return Ye.trys.push([0,2,3,5]),[4,y.getTokenWithPopup(M,X)];case 1:return Y=Ye.sent(),[3,5];case 2:throw F=Ye.sent(),gr(F);case 3:return I=_,ee={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,y.getUser()];case 4:return I.apply(void 0,[(ee.user=Ye.sent(),ee)]),[7];case 5:return[2,Y]}})})},[y]),Q=z.useCallback(function(M){return y.connectAccountWithRedirect(M)},[y]),ae=z.useCallback(function(){return y.getIdTokenClaims()},[y]),G=z.useCallback(function(M){return sn(void 0,void 0,void 0,function(){var X,Y,F,I;return cn(this,function(ee){switch(ee.label){case 0:return ee.trys.push([0,2,3,5]),[4,y.loginWithCustomTokenExchange(M)];case 1:return X=ee.sent(),[3,5];case 2:throw Y=ee.sent(),gr(Y);case 3:return F=_,I={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,y.getUser()];case 4:return F.apply(void 0,[(I.user=ee.sent(),I)]),[7];case 5:return[2,X]}})})},[y]),ne=z.useCallback(function(M){return y.customTokenExchange(M)},[y]),he=z.useCallback(function(M){return sn(void 0,void 0,void 0,function(){return cn(this,function(X){return[2,G(M)]})})},[G]),Ae=z.useCallback(function(M){return sn(void 0,void 0,void 0,function(){var X,Y,F;return cn(this,function(I){switch(I.label){case 0:return I.trys.push([0,2,3,5]),[4,y.handleRedirectCallback(M)];case 1:return[2,I.sent()];case 2:throw X=I.sent(),gr(X);case 3:return Y=_,F={type:"HANDLE_REDIRECT_COMPLETE"},[4,y.getUser()];case 4:return Y.apply(void 0,[(F.user=I.sent(),F)]),[7];case 5:return[2]}})})},[y]),ge=z.useCallback(function(M){return y.getDpopNonce(M)},[y]),Ce=z.useCallback(function(M,X){return y.setDpopNonce(M,X)},[y]),rt=z.useCallback(function(M){return y.generateDpopProof(M)},[y]),st=z.useCallback(function(M){return y.createFetcher(M)},[y]),Le=z.useCallback(function(){return y.getConfiguration()},[y]),L=z.useMemo(function(){return y.mfa},[y]),W=z.useMemo(function(){return y.myAccount},[y]),oe=z.useCallback(function(M){return sn(void 0,void 0,void 0,function(){var X,Y,F,I;return cn(this,function(ee){switch(ee.label){case 0:return ee.trys.push([0,2,3,5]),[4,y.passkey.signup(M)];case 1:return X=ee.sent(),[3,5];case 2:throw Y=ee.sent(),gr(Y);case 3:return F=_,I={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,y.getUser()];case 4:return F.apply(void 0,[(I.user=ee.sent(),I)]),[7];case 5:return[2,X]}})})},[y]),xe=z.useCallback(function(M){return sn(void 0,void 0,void 0,function(){var X,Y,F,I;return cn(this,function(ee){switch(ee.label){case 0:return ee.trys.push([0,2,3,5]),[4,y.passkey.login(M)];case 1:return X=ee.sent(),[3,5];case 2:throw Y=ee.sent(),gr(Y);case 3:return F=_,I={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,y.getUser()];case 4:return F.apply(void 0,[(I.user=ee.sent(),I)]),[7];case 5:return[2,X]}})})},[y]),Ue=z.useMemo(function(){return{signup:oe,login:xe}},[oe,xe]),T=z.useMemo(function(){return Pe(Pe({},w),{getAccessTokenSilently:Z,getAccessTokenWithPopup:q,getIdTokenClaims:ae,loginWithCustomTokenExchange:G,customTokenExchange:ne,exchangeToken:he,loginWithRedirect:R,loginWithPopup:x,connectAccountWithRedirect:Q,logout:J,handleRedirectCallback:Ae,getDpopNonce:ge,setDpopNonce:Ce,generateDpopProof:rt,createFetcher:st,getConfiguration:Le,mfa:L,passkey:Ue,myAccount:W})},[w,Z,q,ae,G,ne,he,R,x,Q,J,Ae,ge,Ce,rt,st,Le,L,Ue,W]);return tl.createElement(p.Provider,{value:T},o)},cb=function(i){return i===void 0&&(i=Dh),z.useContext(i)},jT=function(){return tl.createElement(tl.Fragment,null)},HT=function(){return sn(void 0,void 0,void 0,function(){return cn(this,function(i){return[2]})})},LT=function(){return"".concat(window.location.pathname).concat(window.location.search)},pl=function(i,a){return a===void 0&&(a={}),function(l){var s=this,f=a.returnTo,d=f===void 0?LT:f,p=a.onRedirecting,g=p===void 0?jT:p,m=a.onBeforeAuthentication,y=m===void 0?HT:m,v=a.loginOptions,w=a.context,_=w===void 0?Dh:w,A=cb(_),O=A.isAuthenticated,R=A.isLoading,x=A.loginWithRedirect;return z.useEffect(function(){if(!(R||O)){var J=Pe(Pe({},v),{appState:Pe(Pe({},v?.appState),{returnTo:typeof d=="function"?d():d})});(function(){return sn(s,void 0,void 0,function(){return cn(this,function(Z){switch(Z.label){case 0:return[4,y()];case 1:return Z.sent(),[4,x(J)];case 2:return Z.sent(),[2]}})})})()}},[R,O,x,y,v,d]),O?tl.createElement(i,Pe({},l)):g()}};const ub="connekt-theme",fb=z.createContext(null);function KT(){const i=localStorage.getItem(ub);return i==="light"||i==="dark"?i:"light"}function ZT({children:i}){const[a,o]=z.useState(KT);z.useEffect(()=>{document.documentElement.classList.toggle("dark",a==="dark"),localStorage.setItem(ub,a)},[a]);const l=()=>o(s=>s==="dark"?"light":"dark");return se.jsx(fb.Provider,{value:{theme:a,setTheme:o,toggleTheme:l},children:i})}function X2(){const i=z.useContext(fb);
14if(!i)throw new Error("useTheme must be used within a ThemeProvider");return i}const BT="modulepreload",JT=function(i){return"/"+i},qv={},Wt=function(a,o,l){let s=Promise.resolve();if(o&&o.length>0){let g=function(m){return Promise.all(m.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");s=g(o.map(m=>{if(m=JT(m),m in qv)return;qv[m]=!0;const y=m.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${v}`))return;const w=document.createElement("link");if(w.rel=y?"stylesheet":BT,y||(w.as="script"),w.crossOrigin="",w.href=m,p&&w.setAttribute("nonce",p),document.head.appendChild(w),y)return new Promise((_,A)=>{w.addEventListener("load",_),w.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return s.then(d=>{for(const p of d||[])p.status==="rejected"&&f(p.reason);return a().catch(f)})};var Uh=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,db=/^[\\/]{2}/;function GT(i,a){return a+i.replace(/\\/g,"/")}var Vv="popstate";function Pv(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function XT(i={}){function a(l,s){let f=s.state?.masked,{pathname:d,search:p,hash:g}=f||l.location;return rh("",{pathname:d,search:p,hash:g},s.state&&s.state.usr||null,s.state&&s.state.key||"default",f?{pathname:l.location.pathname,search:l.location.search,hash:l.location.hash}:void 0)}function o(l,s){return typeof s=="string"?s:rl(s)}return qT(a,o,null,i)}function We(i,a){if(i===!1||i===null||typeof i>"u")throw new Error(a)}function Ln(i,a){if(!i){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function YT(){return Math.random().toString(36).substring(2,10)}function Wv(i,a){return{usr:i.state,key:i.key,idx:a,masked:i.mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function rh(i,a,o=null,l,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof a=="string"?Dr(a):a,state:o,key:a&&a.key||l||YT(),mask:s}}function rl({pathname:i="/",search:a="",hash:o=""}){return a&&a!=="?"&&(i+=a.charAt(0)==="?"?a:"?"+a),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function Dr(i){let a={};if(i){let o=i.indexOf("#");o>=0&&(a.hash=i.substring(o),i=i.substring(0,o));let l=i.indexOf("?");l>=0&&(a.search=i.substring(l),i=i.substring(0,l)),i&&(a.pathname=i)}return a}function qT(i,a,o,l={}){let{window:s=document.defaultView,v5Compat:f=!1}=l,d=s.history,p="POP",g=null,m=y();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function y(){return(d.state||{idx:null}).idx}function v(){p="POP";let R=y(),x=R==null?null:R-m;m=R,g&&g({action:p,location:O.location,delta:x})}function w(R,x){p="PUSH";let J=Pv(R)?R:rh(O.location,R,x);m=y()+1;let Z=Wv(J,m),q=O.createHref(J.mask||J);try{d.pushState(Z,"",q)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;s.location.assign(q)}f&&g&&g({action:p,location:O.location,delta:1})}function _(R,x){p="REPLACE";let J=Pv(R)?R:rh(O.location,R,x);m=y();let Z=Wv(J,m),q=O.createHref(J.mask||J);d.replaceState(Z,"",q),f&&g&&g({action:p,location:O.location,delta:0})}function A(R){return VT(s,R)}let O={get action(){return p},get location(){return i(s,d)},listen(R){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(Vv,v),g=R,()=>{s.removeEventListener(Vv,v),g=null}},createHref(R){return a(s,R)},createURL:A,encodeLocation(R){let x=A(R);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:w,replace:_,go(R){return d.go(R)}};return O}function VT(i,a,o=!1){let l="http://localhost";i&&(l=i.location.origin!=="null"?i.location.origin:i.location.href),We(l,"No window.location.(origin|href) available to create URL");let s=typeof a=="string"?a:rl(a);return s=s.replace(/ $/,"%20"),!o&&db.test(s)&&(s=l+s),new URL(s,l)}function hb(i,a,o="/"){return PT(i,a,o,!1)}
14function PT(i,a,o,l,s){let f=typeof a=="string"?Dr(a):a,d=ca(f.pathname||"/",o);if(d==null)return null;let p=WT(i),g=null,m=o1(d);for(let y=0;g==null&&y<p.length;++y)g=r1(p[y],m,l);return g}function WT(i){let a=pb(i);return QT(a),a}function pb(i,a=[],o=[],l="",s=!1){let f=(d,p,g=s,m)=>{let y={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:p,route:d};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(l)&&g)return;We(y.relativePath.startsWith(l),`Absolute route path "${y.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(l.length)}let v=An([l,y.relativePath]),w=o.concat(y);d.children&&d.children.length>0&&(We(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),pb(d.children,a,w,v,g)),!(d.path==null&&!d.index)&&a.push({path:v,score:a1(v,d.index),routesMeta:w.map((_,A)=>{let[O,R]=gb(_.relativePath,_.caseSensitive,A===w.length-1);return{..._,matcher:O,compiledParams:R}})})};return i.forEach((d,p)=>{if(d.path===""||!d.path?.includes("?"))f(d,p);else for(let g of mb(d.path))f(d,p,!0,g)}),a}function mb(i){let a=i.split("/");if(a.length===0)return[];let[o,...l]=a,s=o.endsWith("?"),f=o.replace(/\?$/,"");if(l.length===0)return s?[f,""]:[f];let d=mb(l.join("/")),p=[];return p.push(...d.map(g=>g===""?f:[f,g].join("/"))),s&&p.push(...d),p.map(g=>i.startsWith("/")&&g===""?"/":g)}function QT(i){i.sort((a,o)=>a.score!==o.score?o.score-a.score:i1(a.routesMeta.map(l=>l.childrenIndex),o.routesMeta.map(l=>l.childrenIndex)))}var IT=/^:[\w-]+$/,FT=3,$T=2,e1=1,t1=10,n1=-2,Qv=i=>i==="*";function a1(i,a){let o=i.split("/"),l=o.length;return o.some(Qv)&&(l+=n1),a&&(l+=$T),o.filter(s=>!Qv(s)).reduce((s,f)=>s+(IT.test(f)?FT:f===""?e1:t1),l)}function i1(i,a){return i.length===a.length&&i.slice(0,-1).every((l,s)=>l===a[s])?i[i.length-1]-a[a.length-1]:0}function r1(i,a,o=!1){let{routesMeta:l}=i,s={},f="/",d=[];for(let p=0;p<l.length;++p){let g=l[p],m=p===l.length-1,y=f==="/"?a:a.slice(f.length)||"/",v={path:g.relativePath,caseSensitive:g.caseSensitive,end:m},w=g.matcher&&g.compiledParams?yb(v,y,g.matcher,g.compiledParams):_c(v,y),_=g.route;if(!w&&m&&o&&!l[l.length-1].route.index&&(w=_c({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},y)),!w)return null;
14Object.assign(s,w.params),d.push({params:s,pathname:An([f,w.pathname]),pathnameBase:c1(An([f,w.pathnameBase])),route:_}),w.pathnameBase!=="/"&&(f=An([f,w.pathnameBase]))}return d}function _c(i,a){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,l]=gb(i.path,i.caseSensitive,i.end);return yb(i,a,o,l)}function yb(i,a,o,l){let s=a.match(o);if(!s)return null;let f=s[0],d=f.replace(/(.)\/+$/,"$1"),p=s.slice(1);return{params:l.reduce((m,{paramName:y,isOptional:v},w)=>{if(y==="*"){let A=p[w]||"";d=f.slice(0,f.length-A.length).replace(/(.)\/+$/,"$1")}const _=p[w];return v&&!_?m[y]=void 0:m[y]=(_||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:d,pattern:i}}function gb(i,a=!1,o=!0){Ln(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let l=[],s="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,g,m,y)=>{if(l.push({paramName:p,isOptional:g!=null}),g){let v=y.charAt(m+d.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(l.push({paramName:"*"}),s+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?s+="\\/*$":i!==""&&i!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),l]}function o1(i){try{return i.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Ln(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),i}}function ca(i,a){if(a==="/")return i;if(!i.toLowerCase().startsWith(a.toLowerCase()))return null;let o=a.endsWith("/")?a.length-1:a.length,l=i.charAt(o);return l&&l!=="/"?null:i.slice(o)||"/"}function l1(i,a="/"){let{pathname:o,search:l="",hash:s=""}=typeof i=="string"?Dr(i):i,f;return o?(o=bb(o),o.startsWith("/")?f=Iv(o.substring(1),"/"):f=Iv(o,a)):f=a,{pathname:f,search:u1(l),hash:f1(s)}}function Iv(i,a){let o=Ec(a).split("/");return i.split("/").forEach(s=>{s===".."?o.length>1&&o.pop():s!=="."&&o.push(s)}),o.length>1?o.join("/"):"/"}function xd(i,a,o,l){return`Cannot include a '${i}' character in a manually specified \`to.${a}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function s1(i){return i.filter((a,o)=>o===0||a.route.path&&a.route.path.length>0)}function vb(i){let a=s1(i);return a.map((o,l)=>l===a.length-1?o.pathname:o.pathnameBase)}function Mh(i,a,o,l=!1){let s;typeof i=="string"?s=Dr(i):(s={...i},We(!s.pathname||!s.pathname.includes("?"),xd("?","pathname","search",s)),We(!s.pathname||!s.pathname.includes("#"),xd("#","pathname","hash",s)),We(!s.search||!s.search.includes("#"),xd("#","search","hash",s)));let f=i===""||s.pathname==="",d=f?"/":s.pathname,p;if(d==null)p=o;else{let v=a.length-1;if(!l&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),v-=1;s.pathname=w.join("/")}p=v>=0?a[v]:"/"}let g=l1(s,p),m=d&&d!=="/"&&d.endsWith("/"),y=(f||d===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(m||y)&&(g.pathname+="/"),g}var bb=i=>i.replace(/[\\/]{2,}/g,"/"),An=i=>bb(i.join("/")),Ec=i=>i.replace(/\/+$/,""),c1=i=>Ec(i).replace(/^\/*/,"/"),u1=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,f1=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,d1=class{constructor(i,a,o,l=!1){this.status=i,this.statusText=a||"",this.internal=l,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function h1(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function p1(i){let a=i.map(o=>o.route.path).filter(Boolean);return An(a)||"/"}var wb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Sb(i,a){let o=i;if(typeof o!="string"||!Uh.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let l=o,s=!1;if(wb)try{let f=new URL(window.location.href),d=db.test(o)?new URL(GT(o,f.protocol)):new URL(o),p=ca(d.pathname,a);d.origin===f.origin&&p!=null?o=p+d.search+d.hash:s=!0}catch{Ln(!1,`<Link to="${o}">
14 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:s,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _b=["POST","PUT","PATCH","DELETE"];new Set(_b);var m1=["GET",..._b];new Set(m1);var y1=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function g1(i){try{return y1.includes(new URL(i).protocol)}catch{return!1}}var Ur=z.createContext(null);Ur.displayName="DataRouter";var Cc=z.createContext(null);Cc.displayName="DataRouterState";var Eb=z.createContext(!1);function v1(){return z.useContext(Eb)}var Tb=z.createContext({isTransitioning:!1});Tb.displayName="ViewTransition";var b1=z.createContext(new Map);b1.displayName="Fetchers";var w1=z.createContext(null);w1.displayName="Await";var hn=z.createContext(null);hn.displayName="Navigation";var ml=z.createContext(null);ml.displayName="Location";var Zn=z.createContext({outlet:null,matches:[],isDataRoute:!1});Zn.displayName="Route";var Nh=z.createContext(null);Nh.displayName="RouteError";var Ab="REACT_ROUTER_ERROR",S1="REDIRECT",_1="ROUTE_ERROR_RESPONSE";function E1(i){if(i.startsWith(`${Ab}:${S1}:{`))try{let a=JSON.parse(i.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function T1(i){if(i.startsWith(`${Ab}:${_1}:{`))try{let a=JSON.parse(i.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new d1(a.status,a.statusText,a.data)}catch{}}function A1(i,{relative:a}={}){We(yl(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:l}=z.useContext(hn),{hash:s,pathname:f,search:d}=gl(i,{relative:a}),p=f;return o!=="/"&&(p=f==="/"?o:An([o,f])),l.createHref({pathname:p,search:d,hash:s})}function yl(){return z.useContext(ml)!=null}function fa(){return We(yl(),"useLocation() may be used only in the context of a <Router> component."),z.useContext(ml).location}var kb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Rb(i){z.useContext(hn).static||z.useLayoutEffect(i)}function k1(){let{isDataRoute:i}=z.useContext(Zn);return i?K1():R1()}function R1(){We(yl(),"useNavigate() may be used only in the context of a <Router> component.");let i=z.useContext(Ur),{basename:a,navigator:o}=z.useContext(hn),{matches:l}=z.useContext(Zn),{pathname:s}=fa(),f=JSON.stringify(vb(l)),d=z.useRef(!1);return Rb(()=>{d.current=!0}),z.useCallback((g,m={})=>{if(Ln(d.current,kb),!d.current)return;if(typeof g=="number"){o.go(g);return}let y=Mh(g,JSON.parse(f),s,m.relative==="path");i==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:An([a,y.pathname])),(m.replace?o.replace:o.push)(y,m.state,m)},[a,o,f,s,i])}z.createContext(null);function Y2(){let{matches:i}=z.useContext(Zn);return i[i.length-1]?.params??{}}function gl(i,{relative:a}={}){let{matches:o}=z.useContext(Zn),{pathname:l}=fa(),s=JSON.stringify(vb(o));return z.useMemo(()=>Mh(i,JSON.parse(s),l,a==="path"),[i,s,l,a])}function O1(i,a){return Ob(i,a)}function Ob(i,a,o){We(yl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=z.useContext(hn),{matches:s}=z.useContext(Zn),f=s[s.length-1],d=f?f.params:{},p=f?f.pathname:"/",g=f?f.pathnameBase:"/",m=f&&f.route;{let R=m&&m.path||"";xb(p,!m||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 15 16Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let y=fa(),v;if(a){let R=typeof a=="string"?Dr(a):a;We(g==="/"||R.pathname?.startsWith(g),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${R.pathname}" was given in the \`location\` prop.`),v=R}else v=y;let w=v.pathname||"/",_=w;if(g!=="/"){let R=g.replace(/^\//,"").split("/");_="/"+w.replace(/^\//,"").split("/").slice(R.length).join("/")}let A=o&&o.state.matches.length?o.state.matches.map(R=>Object.assign(R,{route:o.manifest[R.route.id]||R.route})):hb(i,{pathname:_});Ln(m||A!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Ln(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=U1(A&&A.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:An([g,l.encodeLocation?l.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:An([g,l.encodeLocation?l.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),s,o);return a&&O?z.createElement(ml.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},O):O}function C1(){let i=L1(),a=h1(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,l="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:l},f={padding:"2px 4px",backgroundColor:l},d=null;return console.error("Error handled by React Router default ErrorBoundary:",i),d=z.createElement(z.Fragment,null,z.createElement("p",null,"ð¿ Hey developer ð"),z.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",z.createElement("code",{style:f},"ErrorBoundary")," or"," ",z.createElement("code",{style:f},"errorElement")," prop on your route.")),z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application
16Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},a),o?z.createElement("pre",{style:s},o):null,d)}var x1=z.createElement(C1,null),Cb=class extends z.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,a){return a.location!==i.location||a.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:a.error,location:a.location,revalidation:i.revalidation||a.revalidation}}componentDidCatch(i,a){this.props.onError?this.props.onError(i,a):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=T1(i.digest);o&&(i=o)}let a=i!==void 0?z.createElement(Zn.Provider,{value:this.props.routeContext},z.createElement(Nh.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?z.createElement(z1,{error:i},a):a}};Cb.contextType=Eb;var zd=new WeakMap;function z1({children:i,error:a}){let{basename:o}=z.useContext(hn);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let l=E1(a.digest);if(l){let s=zd.get(a);if(s)throw s;let f=Sb(l.location,o),d=f.absoluteURL||f.to;if(g1(d))throw new Error("Invalid redirect location");if(wb&&!zd.get(a))if(f.isExternal||l.reloadDocument)window.location.href=d;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:l.replace}));throw zd.set(a,p),p}return z.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d}`})}}return i}function D1({routeContext:i,match:a,children:o}){let l=z.useContext(Ur);return l&&l.static&&l.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=a.route.id),z.createElement(Zn.Provider,{value:i},o)}function U1(i,a=[],o){let l=o?.state;if(i==null){if(!l)return null;if(l.errors)i=l.matches;else if(a.length===0&&!l.initialized&&l.matches.length>0)i=l.matches;else return null}let s=i,f=l?.errors;if(f!=null){let y=s.findIndex(v=>v.route.id&&f?.[v.route.id]!==void 0);We(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),s=s.slice(0,Math.min(s.length,y+1))}let d=!1,p=-1;if(o&&l){d=l.renderFallback;for(let y=0;y<s.length;y++){let v=s[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=y),v.route.id){let{loaderData:w,errors:_}=l,A=v.route.loader&&!w.hasOwnProperty(v.route.id)&&(!_||_[v.route.id]===void 0);if(v.route.lazy||A){o.isStatic&&(d=!0),p>=0?s=s.slice(0,p+1):s=[s[0]];break}}}}let g=o?.onError,m=l&&g?(y,v)=>{g(y,{location:l.location,params:l.matches?.[0]?.params??{},pattern:p1(l.matches),errorInfo:v})}:void 0;return s.reduceRight((y,v,w)=>{let _,A=!1,O=null,R=null;l&&(_=f&&v.route.id?f[v.route.id]:void 0,O=v.route.errorElement||x1,d&&(p<0&&w===0?(xb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,R=null):p===w&&(A=!0,R=v.route.hydrateFallbackElement||null)));let x=a.concat(s.slice(0,w+1)),J=()=>{let Z;return _?Z=O:A?Z=R:v.route.Component?Z=z.createElement(v.route.Component,null):v.route.element?Z=v.route.element:Z=y,z.createElement(D1,{match:v,routeContext:{outlet:y,matches:x,isDataRoute:l!=null},children:Z})};return l&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?z.createElement(Cb,{location:l.location,revalidation:l.revalidation,component:O,error:_,children:J(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:m}):J()},null)}function jh(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function M1(i){let a=z.useContext(Ur);return We(a,jh(i)),a}function N1(i){let a=z.useContext(Cc);return We(a,jh(i)),a}function j1(i){let a=z.useContext(Zn);return We(a,jh(i)),a}function Hh(i){let a=j1(i),o=a.matches[a.matches.length-1];return We(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function H1(){return Hh("useRouteId")}function L1(){let i=z.useContext(Nh),a=N1("useRouteError"),o=Hh("useRouteError");return i!==void 0?i:a.errors?.[o]}function K1(){let{router:i}=M1("useNavigate"),a=Hh("useNavigate"),o=z.useRef(!1);return Rb(()=>{o.current=!0}),z.useCallback(async(s,f={})=>{Ln(o.current,kb),o.current&&(typeof s=="number"?await i.navigate(s):await i.navigate(s,{fromRouteId:a,...f}))},[i,a])}var Fv={};function xb(i,a,o){!a&&!Fv[i]&&(Fv[i]=!0,Ln(!1,o))}z.memo(Z1);function Z1({routes:i,manifest:a,future:o,state:l,isStatic:s,onError:f}){return Ob(i,void 0,{manifest:a,state:l,isStatic:s,onError:f})}function Ut(i){We(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function B1({basename:i="/",children:a=null,location:o,navigationType:l="POP",navigator:s,static:f=!1,useTransitions:d}){We(!yl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=i.replace(/^\/*/,"/"),g=z.useMemo(()=>({basename:p,navigator:s,static:f,useTransitions:d,future:{}}
16),[p,s,f,d]);typeof o=="string"&&(o=Dr(o));let{pathname:m="/",search:y="",hash:v="",state:w=null,key:_="default",mask:A}=o,O=z.useMemo(()=>{let R=ca(m,p);return R==null?null:{location:{pathname:R,search:y,hash:v,state:w,key:_,mask:A},navigationType:l}},[p,m,y,v,w,_,l,A]);return Ln(O!=null,`<Router basename="${p}"> is not able to match the URL "${m}${y}${v}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:z.createElement(hn.Provider,{value:g},z.createElement(ml.Provider,{children:a,value:O}))}function J1({children:i,location:a}){return O1(oh(i),a)}function oh(i,a=[]){let o=[];return z.Children.forEach(i,(l,s)=>{if(!z.isValidElement(l))return;let f=[...a,s];if(l.type===z.Fragment){o.push.apply(o,oh(l.props.children,f));return}We(l.type===Ut,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),We(!l.props.index||!l.props.children,"An index route cannot have child routes.");let d={id:l.props.id||f.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(d.children=oh(l.props.children,f)),o.push(d)}),o}var cc="get",uc="application/x-www-form-urlencoded";function xc(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function G1(i){return xc(i)&&i.tagName.toLowerCase()==="button"}function X1(i){return xc(i)&&i.tagName.toLowerCase()==="form"}function Y1(i){return xc(i)&&i.tagName.toLowerCase()==="input"}function q1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function V1(i,a){return i.button===0&&(!a||a==="_self")&&!q1(i)}var ec=null;function P1(){if(ec===null)try{new FormData(document.createElement("form"),0),ec=!1}catch{ec=!0}return ec}var W1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dd(i){return i!=null&&!W1.has(i)?(Ln(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${uc}"`),null):i}function Q1(i,a){let o,l,s,f,d;if(X1(i)){let p=i.getAttribute("action");l=p?ca(p,a):null,o=i.getAttribute("method")||cc,s=Dd(i.getAttribute("enctype"))||uc,f=new FormData(i)}else if(G1(i)||Y1(i)&&(i.type==="submit"||i.type==="image")){let p=i.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||p.getAttribute("action");if(l=g?ca(g,a):null,o=i.getAttribute("formmethod")||p.getAttribute("method")||cc,s=Dd(i.getAttribute("formenctype"))||Dd(p.getAttribute("enctype"))||uc,f=new FormData(p,i),!P1()){let{name:m,type:y,value:v}=i;if(y==="image"){let w=m?`${m}.`:"";f.append(`${w}x`,"0"),f.append(`${w}y`,"0")}else m&&f.append(m,v)}}else{if(xc(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=cc,l=null,s=uc,d=i}return f&&s==="text/plain"&&(d=f,f=void 0),{action:l,method:o.toLowerCase(),encType:s,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Lh(i,a){if(i===!1||i===null||typeof i>"u")throw new Error(a)}function zb(i,a,o,l){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${l}`:s.pathname=`${s.pathname}.${l}`:s.pathname==="/"?s.pathname=`_root.${l}`:a&&ca(s.pathname,a)==="/"?s.pathname=`${Ec(a)}/_root.${l}`:s.pathname=`${Ec(s.pathname)}.${l}`,s}async function I1(i,a){if(i.id in a)return a[i.id];try{let o=await import(i.module);return a[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.
16isSpaMode,window.location.reload(),new Promise(()=>{})}}function F1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function $1(i,a,o){let l=await Promise.all(i.map(async s=>{let f=a.routes[s.route.id];if(f){let d=await I1(f,o);return d.links?d.links():[]}return[]}));return a2(l.flat(1).filter(F1).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function $v(i,a,o,l,s,f){let d=(g,m)=>o[m]?g.route.id!==o[m].route.id:!0,p=(g,m)=>o[m].pathname!==g.pathname||o[m].route.path?.endsWith("*")&&o[m].params["*"]!==g.params["*"];return f==="assets"?a.filter((g,m)=>d(g,m)||p(g,m)):f==="data"?a.filter((g,m)=>{let y=l.routes[g.route.id];if(!y||!y.hasLoader)return!1;if(d(g,m)||p(g,m))return!0;if(g.route.shouldRevalidate){let v=g.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function e2(i,a,{includeHydrateFallback:o}={}){return t2(i.map(l=>{let s=a.routes[l.route.id];if(!s)return[];let f=[s.module];return s.clientActionModule&&(f=f.concat(s.clientActionModule)),s.clientLoaderModule&&(f=f.concat(s.clientLoaderModule)),o&&s.hydrateFallbackModule&&(f=f.concat(s.hydrateFallbackModule)),s.imports&&(f=f.concat(s.imports)),f}).flat(1))}function t2(i){return[...new Set(i)]}function n2(i){let a={},o=Object.keys(i).sort();for(let l of o)a[l]=i[l];return a}function a2(i,a){let o=new Set;
16return new Set(a),i.reduce((l,s)=>{let f=JSON.stringify(n2(s));return o.has(f)||(o.add(f),l.push({key:f,link:s})),l},[])}function Kh(){let i=z.useContext(Ur);return Lh(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function i2(){let i=z.useContext(Cc);return Lh(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Zh=z.createContext(void 0);Zh.displayName="FrameworkContext";function zc(){let i=z.useContext(Zh);return Lh(i,"You must render this element inside a <HydratedRouter> element"),i}function r2(i,a){let o=z.useContext(Zh),[l,s]=z.useState(!1),[f,d]=z.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:y,onTouchStart:v}=a,w=z.useRef(null);z.useEffect(()=>{if(i==="render"&&d(!0),i==="viewport"){let O=x=>{x.forEach(J=>{d(J.isIntersecting)})},R=new IntersectionObserver(O,{threshold:.5});return w.current&&R.observe(w.current),()=>{R.disconnect()}}},[i]),z.useEffect(()=>{if(l){let O=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(O)}}},[l]);let _=()=>{s(!0)},A=()=>{s(!1),d(!1)};return o?i!=="intent"?[f,w,{}]:[f,w,{onFocus:Jo(p,_),onBlur:Jo(g,A),onMouseEnter:Jo(m,_),onMouseLeave:Jo(y,A),onTouchStart:Jo(v,_)}]:[!1,w,{}]}function Jo(i,a){return o=>{i&&i(o),o.defaultPrevented||a(o)}}function o2({page:i,...a}){let o=v1(),{nonce:l}=zc(),{router:s}=Kh(),f=z.useMemo(()=>hb(s.routes,i,s.basename),[s.routes,i,s.basename]);return f?(a.nonce==null&&l&&(a={...a,nonce:l}),o?z.createElement(s2,{page:i,matches:f,...a}):z.createElement(c2,{page:i,matches:f,...a})):null}function l2(i){let{manifest:a,routeModules:o}=zc(),[l,s]=z.useState([]);return z.useEffect(()=>{let f=!1;return $1(i,a,o).then(d=>{f||s(d)}),()=>{f=!0}},[i,a,o]),l}function s2({page:i,matches:a,...o}){let l=fa(),{future:s}=zc(),{basename:f}=Kh(),d=z.useMemo(()=>{if(i===l.pathname+l.search+l.hash)return[];let p=zb(i,f,s.v8_trailingSlashAwareDataRequests,"rsc"),g=!1,m=[];for(let y of a)typeof y.route.shouldRevalidate=="function"?g=!0:m.push(y.route.id);return g&&m.length>0&&p.searchParams.set("_routes",m.join(",")),[p.pathname+p.search]},[f,s.v8_trailingSlashAwareDataRequests,i,l,a]);return z.createElement(z.Fragment,null,d.map(p=>z.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...o})))}function c2({page:i,matches:a,...o}){let l=fa(),{future:s,manifest:f,routeModules:d}=zc(),{basename:p}=Kh(),{loaderData:g,matches:m}=i2(),y=z.useMemo(()=>$v(i,a,m,f,l,"data"),[i,a,m,f,l]),v=z.useMemo(()=>$v(i,a,m,f,l,"assets"),[i,a,m,f,l]),w=z.useMemo(()=>{if(i===l.pathname+l.search+l.hash)return[];let O=new Set,R=!1;if(a.forEach(J=>{let Z=f.routes[J.route.id];!Z||!Z.hasLoader||(!y.some(q=>q.route.id===J.route.id)&&J.route.id in g&&d[J.route.id]?.shouldRevalidate||Z.hasClientLoader?R=!0:O.add(J.route.id))}),O.size===0)return[];let x=zb(i,p,s.v8_trailingSlashAwareDataRequests,"data");return R&&O.size>0&&x.searchParams.set("_routes",a.filter(J=>O.has(J.route.id)).map(J=>J.route.id).join(",")),[x.pathname+x.search]},[p,s.v8_trailingSlashAwareDataRequests,g,l,f,y,a,i,d]),_=z.useMemo(()=>e2(v,f),[v,f]),A=l2(v);return z.createElement(z.Fragment,null,w.map(O=>z.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...o})),_.map(O=>z.createElement("link",{key:O,rel:"modulepreload",href:O,...o})),A.map(({key:O,link:R})=>z.createElement("link",{key:O,nonce:o.nonce,...R,crossOrigin:R.crossOrigin??o.crossOrigin})))}function u2(...i){return a=>{i.forEach(o=>{typeof o=="function"?o(a):o!=null&&(o.current=a)})}}var f2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{f2&&(window.__reactRouterVersion="7.18.1")}catch{}function d2({basename:i,children:a,useTransitions:o,window:l}){let s=z.useRef();s.current==null&&(s.current=XT({window:l,v5Compat:!0}));let f=s.current,[d,p]=z.useState({action:f.action,location:f.location}),g=z.useCallback(m=>{o===!1?p(m):z.startTransition(()=>p(m))},[o]);return z.useLayoutEffect(()=>f.listen(g),[f,g]),z.createElement(B1,{basename:i,children:a,location:d.location,navigationType:d.action,navigator:f,useTransitions:o})}var Db=z.forwardRef(function({onClick:a,discover:o="render",prefetch:l="none",relative:s,reloadDocument:f,replace:d,mask:p,state:g,target:m,to:y,preventScrollReset:v,viewTransition:w,defaultShouldRevalidate:_,...A},O){let{basename:R,navigator:x,useTransitions:J}=z.useContext(hn),Z=typeof y=="string"&&Uh.test(y),q=Sb(y,R);y=q.to;let Q=A1(y,{relative:s}),ae=fa(),G=null;if(p){let Le=Mh(p,[],ae.mask?ae.mask.pathname:"/",!0);R!=="/"&&(Le.pathname=Le.pathname==="/"?R:An([R,Le.pathname])),G=x.createHref(Le)}let[ne,he,Ae]=r2(l,A),ge=y2(y,{replace:d,mask:p,state:g,target:m,preventScrollReset:v,relative:s,viewTransition:w,defaultShouldRevalidate:_,useTransitions:J});function Ce(Le){a&&a(Le),Le.defaultPrevented||ge(Le)}let rt=!(q.isExternal||f),st=z.createElement("a",{...A,...Ae,href:(rt?G:void 0)||q.absoluteURL||Q,onClick:rt?Ce:a,ref:u2(O,he),target:m,"data-discover":!Z&&o==="render"?"true":void 0});return ne&&!Z?z.createElement(z.Fragment,null,st,z.createElement(o2,{page:Q})):st});Db.displayName="Link";var h2=z.forwardRef(function({"aria-current":a="page",caseSensitive:o=!1,className:l="",end:s=!1,style:f,to:d,viewTransition:p,children:g,...m},y){let v=gl(d,{relative:m.relative}),w=fa(),_=z.useContext(Cc),{navigator:A,basename:O}=z.useContext(hn),R=_!=null&&S2(v)&&p===!0,x=A.encodeLocation?A.encodeLocation(v).pathname:v.pathname,J=w.pathname,Z=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;o||(J=J.toLowerCase(),Z=Z?Z.toLowerCase():null,x=x.toLowerCase()),Z&&O&&(Z=ca(Z,O)||Z);const q=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let Q=J===x||!s&&J.startsWith(x)&&J.charAt(q)==="/",ae=Z!=null&&(Z===x||!s&&Z.startsWith(x)&&Z.charAt(x.length)==="/"),G={isActive:Q,isPending:ae,isTransitioning:R},ne=Q?a:void 0,he;typeof l=="function"?he=l(G):he=[l,Q?"active":null,ae?"pending":null,R?"transitioning":null].filter(
16Boolean).join(" ");let Ae=typeof f=="function"?f(G):f;return z.createElement(Db,{...m,"aria-current":ne,className:he,ref:y,style:Ae,to:d,viewTransition:p},typeof g=="function"?g(G):g)});h2.displayName="NavLink";var p2=z.forwardRef(({discover:i="render",fetcherKey:a,navigate:o,reloadDocument:l,replace:s,state:f,method:d=cc,action:p,onSubmit:g,relative:m,preventScrollReset:y,viewTransition:v,defaultShouldRevalidate:w,..._},A)=>{let{useTransitions:O}=z.useContext(hn),R=b2(),x=w2(p,{relative:m}),J=d.toLowerCase()==="get"?"get":"post",Z=typeof p=="string"&&Uh.test(p),q=Q=>{if(g&&g(Q),Q.defaultPrevented)return;Q.preventDefault();let ae=Q.nativeEvent.submitter,G=ae?.getAttribute("formmethod")||d,ne=()=>R(ae||Q.currentTarget,{fetcherKey:a,method:G,navigate:o,replace:s,state:f,relative:m,preventScrollReset:y,viewTransition:v,defaultShouldRevalidate:w});O&&o!==!1?z.startTransition(()=>ne()):ne()};return z.createElement("form",{ref:A,method:J,action:x,onSubmit:l?g:q,..._,"data-discover":!Z&&i==="render"?"true":void 0})});p2.displayName="Form";function m2(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ub(i){let a=z.useContext(Ur);return We(a,m2(i)),a}function y2(i,{target:a,replace:o,mask:l,state:s,preventScrollReset:f,relative:d,viewTransition:p,defaultShouldRevalidate:g,useTransitions:m}={}){let y=k1(),v=fa(),w=gl(i,{relative:d});return z.useCallback(_=>{if(V1(_,a)){_.preventDefault();let A=o!==void 0?o:rl(v)===rl(w),O=()=>y(i,{replace:A,mask:l,state:s,preventScrollReset:f,relative:d,viewTransition:p,defaultShouldRevalidate:g});m?z.startTransition(()=>O()):O()}},[v,y,w,o,l,s,a,i,f,d,p,g,m])}var g2=0,v2=()=>`__${String(++g2)}__`;function b2(){let{router:i}=Ub("useSubmit"),{basename:a}=z.useContext(hn),o=H1(),l=i.fetch,s=i.navigate;return z.useCallback(async(f,d={})=>{let{action:p,method:g,encType:m,formData:y,body:v}=Q1(f,a);if(d.navigate===!1){let w=d.fetcherKey||v2();await l(w,o,d.action||p,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:y,body:v,formMethod:d.method||g,formEncType:d.encType||m,flushSync:d.flushSync})}else await s(d.action||p,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:y,body:v,formMethod:d.method||g,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:o,flushSync:d.flushSync,viewTransition:d.viewTransition})},[l,s,a,o])}function w2(i,{relative:a}={}){let{basename:o}=z.useContext(hn),l=z.useContext(Zn);We(l,"useFormAction must be used inside a RouteContext");let[s]=l.matches.slice(-1),f={...gl(i||".",{relative:a})},d=fa();if(i==null){f.search=d.search;let p=new URLSearchParams(f.search),g=p.getAll("index");if(g.some(y=>y==="")){p.delete("index"),g.filter(v=>v).forEach(v=>p.append("index",v));let y=p.toString();f.search=y?`?${y}`:""}}return(!i||i===".")&&s.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(f.pathname=f.pathname==="/"?o:An([o,f.pathname])),rl(f)}function S2(i,{relative:a}={}){let o=z.useContext(Tb);We(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=Ub("useViewTransitionState"),s=gl(i,{relative:a});if(!o.isTransitioning)return!1;let f=ca(o.currentLocation.pathname,l)||o.currentLocation.pathname,d=ca(o.nextLocation.pathname,l)||o.nextLocation.pathname;return _c(s.pathname,d)!=null||_c(s.pathname,f)!=null}function _2({size:i=64,thickness:a=2,glow:o=!0,className:l=""}){const s=-Math.round(i*.28),f=Math.max(4,Math.round(i*.16));return se.jsxs("span",{className:`ai-spinner${l?` ${l}`:""}`,style:{width:i,height:i,"--ai-spinner-thickness":`${a}px`},children:[o&&se.jsx("span",{className:"ai-spinner__halo",style:{inset:s,filter:`blur(${f}px)`},"aria-hidden":"true"}),se.jsx("span",{className:"ai-spinner__ring","aria-hidden":"true"})]})}function Mr(){return se.jsx("div",{className:"spinner-container",children:se.jsx(_2,{size:64,thickness:2.5,glow:!1})})}const E2=z.lazy(()=>Wt(()=>import("./landing-nzemJhP3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),T2=z.lazy(()=>Wt(()=>import("./about-DgiFagav.js"),__vite__mapDeps([14,1,2,3,4]))),A2=z.lazy(()=>Wt(()=>import("./contact-DAvwRYzF.js"),__vite__mapDeps([15,1,2,3,16,17,5,18]))),k2=z.lazy(()=>Wt(()=>import("./pricing-mmS_W_Ny.js"),__vite__mapDeps([19,1,2,3,20,21,22,5,23]))),R2=z.lazy(()=>Wt(()=>import("./dashboard-B9V7asP0.js"),__vite__mapDeps([24,25,2,21,26,5,16,6,23,17,27,28,20,29,18,30,22,9,31,32,10,33,7,34,35,8]))),O2=z.lazy(()=>Wt(()=>import("./sequenceDashboard-Bpk-i0VC.js"),__vite__mapDeps([36,25,2,21,26,5,16,6,23,17,27,37,18,3
160,33,38,39,31,40,41,7,8,22,12]))),C2=z.lazy(()=>Wt(()=>import("./apply-B55I9gD0.js"),__vite__mapDeps([42,2,39,5,21,26,16,17,8,27]))),x2=z.lazy(()=>Wt(()=>import("./settings-BhxMrFIV.js"),__vite__mapDeps([43,25,2,21,26,5,16,6,23,17,27,30,18,33,20,44,29,40,10,41,22,35]))),z2=z.lazy(()=>Wt(()=>import("./pipeline-DQTODRDq.js"),__vite__mapDeps([45,25,2,21,26,5,16,6,23,17,27,37,28,31,30,38,44]))),D2=z.lazy(()=>Wt(()=>import("./shortlists-DoDg53ip.js"),__vite__mapDeps([46,25,2,21,26,5,16,6,23,17,27,37,31,30,34,47,35,41]))),U2=z.lazy(()=>Wt(()=>import("./shortlist-D9kAzqg4.js"),__vite__mapDeps([48,2,34,21,31,30,26,5,16,18,11,47,9,32]))),M2=z.lazy(()=>Wt(()=>import("./privacyPolicy-CxuNwwJl.js"),__vite__mapDeps([49,50,1,2,3]))),N2=z.lazy(()=>Wt(()=>import("./termsOfService-CiZTxOty.js"),__vite__mapDeps([51,50,1,2,3]))),j2=pl(R2,{onRedirecting:()=>se.jsx(Mr,{})}),H2=pl(x2,{onRedirecting:()=>se.jsx(Mr,{})}),L2=pl(O2,{onRedirecting:()=>se.jsx(Mr,{})}),K2=pl(z2,{onRedirecting:()=>se.jsx(Mr,{})}),Z2=pl(D2,{onRedirecting:()=>se.jsx(Mr,{})});function B2(){const{error:i}=cb();return i?(console.error("Auth0 error:",{message:i.message,error:i.error,error_description:i.error_description,raw:i}),se.jsxs("div",{style:{position:"fixed",top:0,left:0,right:0,zIndex:9999,padding:"10px 16px",backgroundColor:"#b00020",color:"#fff",fontFamily:"monospace",fontSize:"0.85rem"},children:["Auth0 error [",i.error||"unknown","]: ",i.error_description||i.message]})):null}function J2(){return se.jsxs(d2,{children:[se.jsx(B2,{}),se.jsx(z.Suspense,{fallback:se.jsx(Mr,{}),children:se.jsxs(J1,{children:[se.jsx(Ut,{path:"/",element:se.jsx(E2,{})}),se.jsx(Ut,{path:"/about",element:se.jsx(T2,{})}),se.jsx(Ut,{path:"/contact",element:se.jsx(A2,{})}),se.jsx(Ut,{path:"/pricing",element:se.jsx(k2,{})}),se.jsx(Ut,{path:"/dashboard",element:se.jsx(j2,{})}),se.jsx(Ut,{path:"/settings",element:se.jsx(H2,{})}),se.jsx(Ut,{path:"/sequences/:sequenceId",element:se.jsx(L2,{})}),se.jsx(Ut,{path:"/pipeline",element:se.jsx(K2,{})}),se.jsx(Ut,{path:"/shortlists",element:se.jsx(Z2,{})}),se.jsx(Ut,{path:"/shortlist/:publicCode",element:se.jsx(U2,{})}),se.jsx(Ut,{path:"/apply/:publicCode",element:se.jsx(C2,{})}),se.jsx(Ut,{path:"/privacy-policy",element:se.jsx(M2,{})}),se.jsx(Ut,{path:"/terms-of-service",element:se.jsx(N2,{})})]})})]})}p_.createRoot(document.getElementById("root")).render(se.jsx(ZT,{children:se.jsx(NT,{domain:"dev-e638bwea6wfeo5op.us.auth0.com",clientId:"zSNs6bShKx3bnaAEWD5B8SmbLYyNx5fk",authorizationParams:{redirect_uri:`${window.location.origin}/dashboard`,audience:"https://api.tryconnekt.com"},useRefreshTokens:!0,cacheLocation:"memory",children:se.jsx(J2,{})})}));export{_2 as A,Mr as C,Db as L,G2 as R,cb as a,k1 as b,Y2 as c,fa as d,tl as e,f_ as f,i_ as g,se as j,z as r,X2 as u};
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.