vendor: 5,585 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/JobCard-d9NVG70W.js","assets/index.esm-DiyAySPi.js","assets/FormModal-DZr9LzR1.js","assets/DaysFormatter.utils-4TG1Kfya.js","assets/CountryCodes.utils-Ur9R14Ce.js","assets/FormValidator.utils-D5WA90P3.js","assets/RoleBaseAccessControll.utils-BBmSOQkv.js","assets/map-pin-DL-21jie.js","assets/clock-CGdV_1eh.js","assets/index-Bycpffo6.js","assets/Titlecase.utils-C6hEyA6M.js","assets/chevron-up-Orjo75ZL.js","assets/index-CFUm8qp4.js","assets/Applyjob-G0Fq0VtX.css","assets/Hero-CTOa0JYP.js","assets/Worko_new_logo-BHNzNABR.js","assets/data-C1WOaSVo.js","assets/IntersectionObs-C2PhDpPb.js","assets/IntersectionObs-tqVAVVsK.css","assets/chevron-right-DbkZmWEe.js","assets/About-DJaFXU-v.js","assets/SignupForm-OBXmreIk.js","assets/CompanyInput-BUNAMgZZ.js","assets/useSignupLinkedIn.hook-BWsDAi86.js","assets/upload-DDEEQ-gq.js","assets/Company-BoaUCr47.js","assets/CompanyBanner-BbXPUDLN.js","assets/Employee-DmbjV_zZ.js","assets/Guidance-CWdZMlAW.js","assets/RequestReferral-bSb_w87r.js","assets/Guidance-DDKpoaqD.css","assets/Auth.router-B5QEcFBP.js","assets/Tooggle-BEILCO8w.js","assets/mail-BFuYfkLF.js","assets/arrow-right-DvcclDvA.js","assets/Corporate-Xs3dapgs.js","assets/Dashboard.router-BNZ0i_fq.js","assets/CorporateConnect-C2nFlHgT.js","assets/ContactUs-CA9AGS20.js","assets/PostSignupForm-nIXD293L.js","assets/Applyjob-pIsvaxh1.js","assets/CanAiReplaceYouLanding-QwZRMKsl.js"])))=>i.map(i=>d[i]); 2var Gx=e=>{throw TypeError(e)};var v0=(e,t,r)=>t.has(e)||Gx("Cannot "+r);var G=(e,t,r)=>(v0(e,t,"read from private field"),r?r.call(e):t.get(e)),Qe=(e,t,r)=>t.has(e)?Gx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ke=(e,t,r,s)=>(v0(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r),vt=(e,t,r)=>(v0(e,t,"access private method"),r);var qc=(e,t,r,s)=>({set _(i){ke(e,t,i,r)},get _(){return G(e,t,s)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function r(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(i){if(i.ep)return;i.ep=!0;const l=r(i);fetch(i.href,l)}})();var w0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w2(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}),r}var E0={exports:{}},Ja={},S0={exports:{}},ct={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var Yx;function E2(){if(Yx)return ct;Yx=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function x(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,E={};function C(D,z,L){this.props=D,this.context=z,this.refs=E,this.updater=L||y}C.prototype.isReactComponent={},C.prototype.setState=function(D,z){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,z,"setState")},C.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function _(){}_.prototype=C.prototype;function b(D,z,L){this.props=D,this.context=z,this.refs=E,this.updater=L||y}var A=b.prototype=new _;A.constructor=b,v(A,C.prototype),A.isPureReactComponent=!0;var T=Array.isArray,k=Object.prototype.hasOwnProperty,N={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function P(D,z,L){var K,ve={},Ee=null,we=null;if(z!=null)for(K in z.ref!==void 0&&(we=z.ref),z.key!==void 0&&(Ee=""+z.key),z)k.call(z,K)&&!F.hasOwnProperty(K)&&(ve[K]=z[K]);var se=arguments.length-2;if(se===1)ve.children=L;else if(1<se){for(var Ce=Array(se),Se=0;Se<se;Se++)Ce[Se]=arguments[Se+2];ve.children=Ce}if(D&&D.defaultProps)for(K in se=D.defaultProps,se)ve[K]===void 0&&(ve[K]=se[K]);return{$$typeof:e,type:D,key:Ee,ref:we,props:ve,_owner:N.current}}function U(D,z){return{$$typeof:e,type:D.type,key:z,ref:D.ref,props:D.props,_owner:D._owner}}
vendor: 5,139 bytes, lines 10-18
10function O(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function B(D){var z={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(L){return z[L]})}var $=/\/+/g;function Y(D,z){return typeof D=="object"&&D!==null&&D.key!=null?B(""+D.key):z.toString(36)}function te(D,z,L,K,ve){var Ee=typeof D;(Ee==="undefined"||Ee==="boolean")&&(D=null);var we=!1;if(D===null)we=!0;else switch(Ee){case"string":case"number":we=!0;break;case"object":switch(D.$$typeof){case e:case t:we=!0}}if(we)return we=D,ve=ve(we),D=K===""?"."+Y(we,0):K,T(ve)?(L="",D!=null&&(L=D.replace($,"$&/")+"/"),te(ve,z,L,"",function(Se){return Se})):ve!=null&&(O(ve)&&(ve=U(ve,L+(!ve.key||we&&we.key===ve.key?"":(""+ve.key).replace($,"$&/")+"/")+D)),z.push(ve)),1;if(we=0,K=K===""?".":K+":",T(D))for(var se=0;se<D.length;se++){Ee=D[se];var Ce=K+Y(Ee,se);we+=te(Ee,z,L,Ce,ve)}else if(Ce=x(D),typeof Ce=="function")for(D=Ce.call(D),se=0;!(Ee=D.next()).done;)Ee=Ee.value,Ce=K+Y(Ee,se++),we+=te(Ee,z,L,Ce,ve);else if(Ee==="object")throw z=String(D),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return we}function re(D,z,L){if(D==null)return D;var K=[],ve=0;return te(D,K,"","",function(Ee){return z.call(L,Ee,ve++)}),K}function ce(D){if(D._status===-1){var z=D._result;z=z(),z.then(function(L){(D._status===0||D._status===-1)&&(D._status=1,D._result=L)},function(L){(D._status===0||D._status===-1)&&(D._status=2,D._result=L)}),D._status===-1&&(D._status=0,D._result=z)}if(D._status===1)return D._result.default;throw D._result}var ue={current:null},W={transition:null},ne={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:W,ReactCurrentOwner:N};function oe(){throw Error("act(...) is not supported in production builds of React.")}return ct.Children={map:re,forEach:function(D,z,L){re(D,function(){z.apply(this,arguments)},L)},count:function(D){var z=0;return re(D,function(){z++}),z},toArray:function(D){return re(D,function(z){return z})||[]},only:function(D){if(!O(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},ct.Component=C,ct.Fragment=r,ct.Profiler=i,ct.PureComponent=b,ct.StrictMode=s,ct.Suspense=h,ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,ct.act=oe,ct.cloneElement=function(D,z,L){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var K=v({},D.props),ve=D.key,Ee=D.ref,we=D._owner;if(z!=null){if(z.ref!==void 0&&(Ee=z.ref,we=N.current),z.key!==void 0&&(ve=""+z.key),D.type&&D.type.defaultProps)var se=D.type.defaultProps;for(Ce in z)k.call(z,Ce)&&!F.hasOwnProperty(Ce)&&(K[Ce]=z[Ce]===void 0&&se!==void 0?se[Ce]:z[Ce])}var Ce=arguments.length-2;if(Ce===1)K.children=L;else if(1<Ce){se=Array(Ce);for(var Se=0;Se<Ce;Se++)se[Se]=arguments[Se+2];K.children=se}return{$$typeof:e,type:D.type,key:ve,ref:Ee,props:K,_owner:we}},ct.createContext=function(D){return D={$$typeof:c,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:l,_context:D},D.Consumer=D},ct.createElement=P,ct.createFactory=function(D){var z=P.bind(null,D);return z.type=D,z},ct.createRef=function(){return{current:null}},ct.forwardRef=function(D){return{$$typeof:f,render:D}},ct.isValidElement=O,ct.lazy=function(D){return{$$typeof:p,_payload:{_status:-1,_result:D},_init:ce}},ct.memo=function(D,z){return{$$typeof:d,type:D,compare:z===void 0?null:z}},ct.startTransition=function(D){var z=W.transition;W.transition={};try{D()}finally{W.transition=z}},ct.unstable_act=oe,ct.useCallback=function(D,z){return ue.current.useCallback(D,z)},ct.useContext=function(D){return ue.current.useContext(D)},ct.useDebugValue=function(){},ct.useDeferredValue=function(D){return ue.current.useDeferredValue(D)},ct.useEffect=function(D,z){return ue.current.useEffect(D,z)},ct.useId=function(){return ue.current.useId()},ct.useImperativeHandle=function(D,z,L){return ue.current.useImperativeHandle(D,z,L)},ct.useInsertionEffect=function(D,z){return ue.current.useInsertionEffect(D,z)},ct.useLayoutEffect=function(D,z){return ue.current.useLayoutEffect(D,z)},ct.useMemo=function(D,z){return ue.current.useMemo(D,z)},ct.useReducer=function(D,z,L){return ue.current.useReducer(D,z,L)},ct.useRef=function(D){return ue.current.useRef(D)},ct.useState=function(D){return ue.current.useState(D)},ct.useSyncExternalStore=function(D,z,L){return ue.current.useSyncExternalStore(D,z,L)},ct.useTransition=function(){return ue.current.useTransition()},ct.version="18.3.1",ct}var Qx;function jh(){return Qx||(Qx=1,S0.exports=E2()),S0.exports}/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var Jx;function S2(){if(Jx)return Ja;Jx=1;var e=jh(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INT
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(f,h,d){var p,g={},x=null,y=null;d!==void 0&&(x=""+d),h.key!==void 0&&(x=""+h.key),h.ref!==void 0&&(y=h.ref);for(p in h)s.call(h,p)&&!l.hasOwnProperty(p)&&(g[p]=h[p]);if(f&&f.defaultProps)for(p in h=f.defaultProps,h)g[p]===void 0&&(g[p]=h[p]);return{$$typeof:t,type:f,key:x,ref:y,props:g,_owner:i.current}}return Ja.Fragment=r,Ja.jsx=c,Ja.jsxs=c,Ja}var Xx;function C2(){return Xx||(Xx=1,E0.exports=S2()),E0.exports}var S=C2(),R=jh();const pt=Rl(R);var Xa={},Zx;function b2(){if(Zx)return Xa;Zx=1,Object.defineProperty(Xa,"__esModule",{value:!0}),Xa.parse=c,Xa.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,l=(()=>{const x=function(){};return x.prototype=Object.create(null),x})();function c(x,y){const v=new l,E=x.length;if(E<2)return v;const C=(y==null?void 0:y.decode)||p;let _=0;do{const b=x.indexOf("=",_);if(b===-1)break;const A=x.indexOf(";",_),T=A===-1?E:A;if(b>T){_=x.lastIndexOf(";",b-1)+1;continue}const k=f(x,_,b),N=h(x,b,k),F=x.slice(k,N);if(v[F]===void 0){let P=f(x,b+1,T),U=h(x,T,P);const O=C(x.slice(P,U));v[F]=O}_=T+1}while(_<E);return v}function f(x,y,v){do{const E=x.charCodeAt(y);if(E!==32&&E!==9)return y}while(++y<v);return v}function h(x,y,v){for(;y>v;){const E=x.charCodeAt(--y);if(E!==32&&E!==9)return y+1}return v}function d(x,y,v){const E=(v==null?void 0:v.encode)||encodeURIComponent;if(!e.test(x))throw new TypeError(`argument name is invalid: ${x}`);const C=E(y);if(!t.test(C))throw new TypeError(`argument val is invalid: ${y}`);let _=x+"="+C;if(!v)return _;if(v.maxAge!==void 0){if(!Number.isInteger(v.maxAge))throw new TypeError(`option maxAge is invalid: ${v.maxAge}`);_+="; Max-Age="+v.maxAge}if(v.domain){if(!r.test(v.domain))throw new TypeError(`option domain is invalid: ${v.domain}`);_+="; Domain="+v.domain}if(v.path){if(!s.test(v.path))throw new TypeError(`option path is invalid: ${v.path}`);_+="; Path="+v.path}if(v.expires){if(!g(v.expires)||!Number.isFinite(v.expires.valueOf()))throw new TypeError(`option expires is invali
18d: ${v.expires}`);_+="; Expires="+v.expires.toUTCString()}if(v.httpOnly&&(_+="; HttpOnly"),v.secure&&(_+="; Secure"),v.partitioned&&(_+="; Partitioned"),v.priority)switch(typeof v.priority=="string"?v.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${v.priority}`)}if(v.sameSite)switch(typeof v.sameSite=="string"?v.sameSite.toLowerCase():v.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${v.sameSite}`)}return _}function p(x){if(x.indexOf("%")===-1)return x;try{return decodeURIComponent(x)}catch{return x}}function g(x){return i.call(x)==="[object Date]"}return Xa}b2();/** 19 * react-router v7.1.1 20 * 21 * Copyright (c) Remix Software Inc. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE.md file in the root directory of this source tree. 25 * 26 * @license MIT 27 */var eg="popstate";function _2(e={}){function t(s,i){let{pathname:l,search:c,hash:f}=s.location;return ml("",{pathname:l,search:c,hash:f},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(s,i){return typeof i=="string"?i:Es(i)}return k2(t,r,null,e)}function st(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A2(){return Math.random().toString(36).substring(2,10)}function tg(e,t){return{usr:e.state,key:e.key,idx:t}}function ml(e,t,r=null,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Lo(t):t,state:r,key:t&&t.key||s||A2()}}function Es({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Lo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let s=e.indexOf("?");s>=0&&(t.search=e.substring(s),e=e.substring(0,s)),e&&(t.pathname=e)}return t}function k2(e,t,r,s={}){let{window:i=document.defaultView,v5Compat:l=!1}=s,c=i.history,f="POP",h=null,d=p();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function p(){return(c.state||{idx:null}).idx}function g(){f="POP";let C=p(),_=C==null?null:C-d;d=C,h&&h({action:f,location:E.location,delta:_})}function x(C,_){f="PUSH";let b=ml(E.location,C,_);d=p()+1;let A=tg(b,d),T=E.createHref(b);try{c.pushState(A,"",T)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(T)}l&&h&&h({action:f,location:E.location,delta:1})}function y(C,_){f="REPLACE";let b=ml(E.location,C,_);d=p();let A=tg(b,d),T=E.createHref(b);c.replaceState(A,"",T),l&&h&&h({action:f,location:E.location,delta:0})}function v(C){let _=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof C=="string"?C:Es(C);return b=b.replace(/ $/,"%20"),st(_,`No window.location.(origin|href) available to create URL for href: ${b}`),new URL(b,_)}let E={get action(){return f},get location(){return e(i,c)},listen(C){if(h)throw new Error("A history only accepts one active listener");return i.addEventListener(eg,g),h=C,()=>{i.removeEventListener(eg,g),h=null}},createHref(C){return t(i,C)},createURL:v,encodeLocation(C){let _=v(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:x,replace:y,go(C){return c.go(C)}};return E}var R2=new Set(["lazy","caseSensitive","path","id","index","children"]);function I2(e){return e.index===!0}function rd(e,t,r=[],s={}){return e.map((i,l)=>{let c=[...r,String(l)],f=typeof i.id=="string"?i.id:c.join("-");if(st(i.index!==!0||!i.children,"Cannot specify children on an index route"),st(!s[f],`Found a route id collision on i
27d "${f}". Route id's must be globally unique within Data Router usages`),I2(i)){let h={...i,...t(i),id:f};return s[f]=h,h}else{let h={...i,...t(i),id:f,children:void 0};return s[f]=h,i.children&&(h.children=rd(i.children,t,c,s)),h}})}function us(e,t,r="/"){return fu(e,t,r,!1)}function fu(e,t,r,s){let i=typeof t=="string"?Lo(t):t,l=$r(i.pathname||"/",r);if(l==null)return null;let c=g1(e);P2(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let d=$2(l);f=U2(c[h],d,s)}return f}function T2(e,t){let{route:r,pathname:s,params:i}=e;return{id:r.id,pathname:s,params:i,data:t[r.id],handle:r.handle}}function g1(e,t=[],r=[],s=""){let i=(l,c,f)=>{let h={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};h.relativePath.startsWith("/")&&(st(h.relativePath.startsWith(s),`Absolute route path "${h.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(s.length));let d=io([s,h.relativePath]),p=r.concat(h);l.children&&l.children.length>0&&(st(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),g1(l.children,t,p,d)),!(l.path==null&&!l.index)&&t.push({path:d,score:M2(d,l.index),routesMeta:p})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))i(l,c);else for(let h of y1(l.path))i(l,c,h)}),t}function y1(e){let t=e.split("/");if(t.length===0)return[];let[r,...s]=t,i=r.endsWith("?"),l=r.replace(/\?$/,"");if(s.length===0)return i?[l,""]:[l];let c=y1(s.join("/")),f=[];return f.push(...c.map(h=>h===""?l:[l,h].join("/"))),i&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function P2(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:j2(t.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var N2=/^:[\w-]+$/,D2=3,F2=2,O2=1,B2=10,L2=-2,ng=e=>e==="*";function M2(e,t){let r=e.split("/"),s=r.length;return r.some(ng)&&(s+=L2),t&&(s+=F2),r.filter(i=>!ng(i)).reduce((i,l)=>i+(N2.test(l)?D2:l===""?O2:B2),s)}function j2(e,t){return e.length===t.length&&e.slice(0,-1).every((s,i)=>s===t[i])?e[e.length-1]-t[t.length-1]:0}function U2(e,t,r=!1){let{routesMeta:s}=e,i={},l="/",c=[];for(let f=0;f<s.length;++f){let h=s[f],d=f===s.length-1,p=l==="/"?t:t.slice(l.length)||"/",g=od({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},p),x=h.route;if(!g&&d&&r&&!s[s.length-1].route.index&&(g=od({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},p)),!g)return null;
27Object.assign(i,g.params),c.push({params:i,pathname:io([l,g.pathname]),pathnameBase:V2(io([l,g.pathnameBase])),route:x}),g.pathnameBase!=="/"&&(l=io([l,g.pathnameBase]))}return c}function od(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=z2(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let l=i[0],c=l.replace(/(.)\/+$/,"$1"),f=i.slice(1);return{params:s.reduce((d,{paramName:p,isOptional:g},x)=>{if(p==="*"){let v=f[x]||"";c=l.slice(0,l.length-v.length).replace(/(.)\/+$/,"$1")}const y=f[x];return g&&!y?d[p]=void 0:d[p]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:l,pathnameBase:c,pattern:e}}function z2(e,t=!1,r=!0){yn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,h)=>(s.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),s]}function $2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yn(!1,`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function $r(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}function H2(e,t="/"){let{pathname:r,search:s="",hash:i=""}=typeof e=="string"?Lo(e):e;return{pathname:r?r.startsWith("/")?r:W2(r,t):t,search:q2(s),hash:K2(i)}}function W2(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function C0(e,t,r,s){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function v1(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function yd(e){let t=v1(e);return t.map((r,s)=>s===t.length-1?r.pathname:r.pathnameBase)}function vd(e,t,r,s=!1){let i;typeof e=="string"?i=Lo(e):(i={...e},st(!i.pathname||!i.pathname.includes("?"),C0("?","pathname","search",i)),st(!i.pathname||!i.pathname.includes("#"),C0("#","pathname","hash",i)),st(!i.search||!i.search.includes("#"),C0("#","search","hash",i)));let l=e===""||i.pathname==="",c=l?"/":i.pathname,f;if(c==null)f=r;else{let g=t.length-1;if(!s&&c.startsWith("..")){let x=c.split("/");for(;x[0]==="..";)x.shift(),g-=1;i.pathname=x.join("/")}f=g>=0?t[g]:"/"}let h=H2(i,f),d=c&&c!=="/"&&c.endsWith("/"),p=(l||c===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(d||p)&&(h.pathname+="/"),h}var io=e=>e.join("/").replace(/\/\/+/g,"/"),V2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,K2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,sd=class{constructor(e,t,r,s=!1){this.status=e,this.statusText=t||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function wd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var w1=["POST","PUT","PATCH","DELETE"],G2=new Set(w1),Y2=["GET",...w1],Q2=new Set(Y2),J2=new Set([301,302,303,307,308]),X2=new Set([307,308]),b0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Z2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Za={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Uh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,eC=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),E1="remix-router-transitions",S1=Symbol("ResetLoaderData");function tC(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";st(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=e.mapRouteProperties||eC,i={},l=rd(e.routes,s,void 0,i),c,f=e.basename||"/",h=e.dataStrategy||iC,d=e.patchRoutesOnNavigation,p={...e.future},g=null,x=new Set,y=null,v=null,E=null,C=e.hydrationData!=null,_=us(l,e.history.location,f),b=null;if(_==null&&!d){let M=Cr(404,{pathname:e.history.location.pathname}),{matches:V,route:Z}=hg(l);_=V,b={[Z.id]:M}}_&&!e.hydrationData&&tt(_,l,e.history.location.pathname).active&&(_=null);let A;if(_)if(_.some(M=>M.route.lazy))A=!1;else if(!_.some(M=>M.route.loader))A=!0;else{let M=e.hydrationData?e.hydrationData.loaderData:null,V=e.hydrationData?e.hydrationData.errors:null;if(V){let Z=_.findIndex(Q=>V[Q.route.id]!==void 0);A=_.slice(0,Z+1).every(Q=>!V0(Q.route,M,V))}else A=_.every(Z=>!V0(Z.route,M,V))}else{A=!1,_=[];let M=tt(null,l,e.history.location.pathname);M.active&&M.matches&&(_=M.matches)}let T,k={historyAction:e.history.action,location:e.history.location,matches:_,initialized:A,navigation:b0,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},N="POP",F=!1,P,U=!1,O=new Map,B=null,$=!1,Y=!1,te=new Set,re=new Map,ce=0,ue=-1,W=new Map,ne=new Set,oe=new Map,D=new Map,z=new Set,L=new Map,K,ve=null;function Ee(){if(g=e.history.listen(({action:M,location:V,delta:Z})=>{if(K){K(),K=void 0;return}yn(L.size===0||Z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");
27let Q=hn({currentLocation:k.location,nextLocation:V,historyAction:M});if(Q&&Z!=null){let ie=new Promise(ae=>{K=ae});e.history.go(Z*-1),cn(Q,{state:"blocked",location:V,proceed(){cn(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),ie.then(()=>e.history.go(Z))},reset(){let ae=new Map(k.blockers);ae.set(Q,Za),Ce({blockers:ae})}});return}return Ge(M,V)}),r){gC(t,O);let M=()=>yC(t,O);t.addEventListener("pagehide",M),B=()=>t.removeEventListener("pagehide",M)}return k.initialized||Ge("POP",k.location,{initialHydration:!0}),T}function we(){g&&g(),B&&B(),x.clear(),P&&P.abort(),k.fetchers.forEach((M,V)=>qe(V)),k.blockers.forEach((M,V)=>fn(V))}function se(M){return x.add(M),()=>x.delete(M)}function Ce(M,V={}){k={...k,...M};let Z=[],Q=[];k.fetchers.forEach((ie,ae)=>{ie.state==="idle"&&(z.has(ae)?Z.push(ae):Q.push(ae))}),[...x].forEach(ie=>ie(k,{deletedFetchers:Z,viewTransitionOpts:V.viewTransitionOpts,flushSync:V.flushSync===!0})),Z.forEach(ie=>qe(ie)),Q.forEach(ie=>k.fetchers.delete(ie))}function Se(M,V,{flushSync:Z}={}){var xe,_e;let Q=k.actionData!=null&&k.navigation.formMethod!=null&&Ur(k.navigation.formMethod)&&k.navigation.state==="loading"&&((xe=M.state)==null?void 0:xe._isRedirect)!==!0,ie;V.actionData?Object.keys(V.actionData).length>0?ie=V.actionData:ie=null:Q?ie=k.actionData:ie=null;let ae=V.loaderData?dg(k.loaderData,V.loaderData,V.matches||[],V.errors):k.loaderData,de=k.blockers;de.size>0&&(de=new Map(de),de.forEach((Be,Ue)=>de.set(Ue,Za)));let ge=F===!0||k.navigation.formMethod!=null&&Ur(k.navigation.formMethod)&&((_e=M.state)==null?void 0:_e._isRedirect)!==!0;c&&(l=c,c=void 0),$||N==="POP"||(N==="PUSH"?e.history.push(M,M.state):N==="REPLACE"&&e.history.replace(M,M.state));let fe;if(N==="POP"){let Be=O.get(k.location.pathname);Be&&Be.has(M.pathname)?fe={currentLocation:k.location,nextLocation:M}:O.has(M.pathname)&&(fe={currentLocation:M,nextLocation:k.location})}else if(U){let Be=O.get(k.location.pathname);Be?Be.add(M.pathname):(Be=new Set([M.pathname]),O.set(k.location.pathname,Be)),fe={currentLocation:k.location,nextLocation:M}}Ce({...V,actionData:ie,loaderData:ae,historyAction:N,location:M,initialized:!0,navigation:b0,revalidation:"idle",restoreScrollPosition:rt(M,V.matches||k.matches),preventScrollReset:ge,blockers:de},{viewTransitionOpts:fe,flushSync:Z===!0}),N="POP",F=!1,U=!1,$=!1,Y=!1,ve==null||ve.resolve(),ve=null}async function He(M,V){if(typeof M=="number"){e.history.go(M);return}let Z=W0(k.location,k.matches,f,M,V==null?void 0:V.fromRouteId,V==null?void 0:V.relative),{path:Q,submission:ie,error:ae}=rg(!1,Z,V),de=k.location,ge=ml(k.location,Q,V&&V.state);ge={...ge,...e.history.encodeLocation(ge)};let fe=V&&V.replace!=null?V.replace:void 0,xe="PUSH";fe===!0?xe="REPLACE":fe===!1||ie!=null&&Ur(ie.formMethod)&&ie.formAction===k.location.pathname+k.location.search&&(xe="REPLACE");let _e=V&&"preventScrollReset"in V?V.preventScrollReset===!0:void 0,Be=(V&&V.flushSync)===!0,Ue=hn({currentLocation:de,nextLocation:ge,historyAction:xe});if(Ue){cn(Ue,{state:"blocked",location:ge,proceed(){cn(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:ge}),He(M,V)},reset(){let _t=new Map(k.blockers);_t.set(Ue,Za),Ce({blockers:_t})}});return}await Ge(xe,ge,{submission:ie,pendingError:ae,preventScrollReset:_e,replace:V&&V.replace,enableViewTransition:V&&V.viewTransition,flushSync:Be})}function xt(){ve||(ve=vC()),Le(),Ce({revalidation:"loading"});let M=ve.promise;return k.navigation.state==="submitting"?M:k.navigation.state==="idle"?(Ge(k.historyAction,k.location,{startUninterruptedRevalidation:!0}),M):(Ge(N||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation,enableViewTransition:U===!0}),M)}async function Ge(M,V,Z){P&&P.abort(),P=null,N=M,$=(Z&&Z.startUninterruptedRevalidation)===!0,Me(k.location,k.matches),F=(Z&&Z.preventScrollReset)===!0,U=(Z&&Z.enableViewTransition)===!0;let Q=c||l,ie=Z&&Z.overrideNavigation,ae=us(Q,V,f),de=(Z&&Z.flushSync)===!0,ge=tt(ae,Q,V.pathname);if(ge.active&&ge.matches&&(ae=ge.matches),!ae){let{error:mt,notFoundMatches:yt,route:Nt}=gt(V.pathname);Se(V,{matches:yt,loaderData:{},errors:{[Nt.id]:mt}},{flushSync:de});return}if(k.initialized&&!Y&&fC(k.location,V)&&!(Z&&Z.submission&&Ur(Z.submission.formMethod))){Se(V,{matches:ae},{flushSync:de});return}P=new AbortController;let fe=Fi(e.history,V,P.signal,Z&&Z.submission),xe;if(Z&&Z.pendingError)xe=[zs(ae).route.id,{type:"error",error:Z.pendingError}];else if(Z&&Z.submission&&Ur(Z.submission.formMethod)){let mt=await St(fe,V,Z.submission,ae,ge.active,{replace:Z.replace,flushSync:de});if(mt.shortCircuited)return;if(mt.pendingActionResult){let[yt,Nt]=mt.pendingActionResult;
27if(dr(Nt)&&wd(Nt.error)&&Nt.error.status===404){P=null,Se(V,{matches:mt.matches,loaderData:{},errors:{[yt]:Nt.error}});return}}ae=mt.matches||ae,xe=mt.pendingActionResult,ie=_0(V,Z.submission),de=!1,ge.active=!1,fe=Fi(e.history,fe.url,fe.signal)}let{shortCircuited:_e,matches:Be,loaderData:Ue,errors:_t}=await bt(fe,V,ae,ge.active,ie,Z&&Z.submission,Z&&Z.fetcherSubmission,Z&&Z.replace,Z&&Z.initialHydration===!0,de,xe);_e||(P=null,Se(V,{matches:Be||ae,...fg(xe),loaderData:Ue,errors:_t}))}async function St(M,V,Z,Q,ie,ae={}){Le();let de=mC(V,Z);if(Ce({navigation:de},{flushSync:ae.flushSync===!0}),ie){let xe=await nt(Q,V.pathname,M.signal);if(xe.type==="aborted")return{shortCircuited:!0};if(xe.type==="error"){let _e=zs(xe.partialMatches).route.id;return{matches:xe.partialMatches,pendingActionResult:[_e,{type:"error",error:xe.error}]}}else if(xe.matches)Q=xe.matches;else{let{notFoundMatches:_e,error:Be,route:Ue}=gt(V.pathname);return{matches:_e,pendingActionResult:[Ue.id,{type:"error",error:Be}]}}}let ge,fe=al(Q,V);if(!fe.route.action&&!fe.route.lazy)ge={type:"error",error:Cr(405,{method:M.method,pathname:V.pathname,routeId:fe.route.id})};else if(ge=(await Xe("action",k,M,[fe],Q,null))[fe.route.id],M.signal.aborted)return{shortCircuited:!0};if($s(ge)){let xe;return ae&&ae.replace!=null?xe=ae.replace:xe=lg(ge.response.headers.get("Location"),new URL(M.url),f)===k.location.pathname+k.location.search,await Oe(M,ge,!0,{submission:Z,replace:xe}),{shortCircuited:!0}}if(dr(ge)){let xe=zs(Q,fe.route.id);return(ae&&ae.replace)!==!0&&(N="PUSH"),{matches:Q,pendingActionResult:[xe.route.id,ge]}}return{matches:Q,pendingActionResult:[fe.route.id,ge]}}async function bt(M,V,Z,Q,ie,ae,de,ge,fe,xe,_e){let Be=ie||_0(V,ae),Ue=ae||de||mg(Be),_t=!$&&!fe;if(Q){if(_t){let pn=Yt(_e);Ce({navigation:Be,...pn!==void 0?{actionData:pn}:{}},{flushSync:xe})}let Ft=await nt(Z,V.pathname,M.signal);if(Ft.type==="aborted")return{shortCircuited:!0};if(Ft.type==="error"){let pn=zs(Ft.partialMatches).route.id;return{matches:Ft.partialMatches,loaderData:{},errors:{[pn]:Ft.error}}}else if(Ft.matches)Z=Ft.matches;else{let{error:pn,notFoundMatches:go,route:As}=gt(V.pathname);return{matches:go,loaderData:{},errors:{[As.id]:pn}}}}let mt=c||l,[yt,Nt]=sg(e.history,k,Z,Ue,V,fe===!0,Y,te,z,oe,ne,mt,f,_e);if(ue=++ce,yt.length===0&&Nt.length===0){let Ft=Mt();return Se(V,{matches:Z,loaderData:{},errors:_e&&dr(_e[1])?{[_e[0]]:_e[1].error}:null,...fg(_e),...Ft?{fetchers:new Map(k.fetchers)}:{}},{flushSync:xe}),{shortCircuited:!0}}if(_t){let Ft={};if(!Q){Ft.navigation=Be;let pn=Yt(_e);pn!==void 0&&(Ft.actionData=pn)}Nt.length>0&&(Ft.fetchers=Rt(Nt)),Ce(Ft,{flushSync:xe})}Nt.forEach(Ft=>{lt(Ft.key),Ft.controller&&re.set(Ft.key,Ft.controller)});let Wn=()=>Nt.forEach(Ft=>lt(Ft.key));P&&P.signal.addEventListener("abort",Wn);let{loaderResults:Vn,fetcherResults:ot}=await We(k,Z,yt,Nt,M);if(M.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",Wn),Nt.forEach(Ft=>re.delete(Ft.key));let Jt=Kc(Vn);if(Jt)return await Oe(M,Jt.result,!0,{replace:ge}),{shortCircuited:!0};if(Jt=Kc(ot),Jt)return ne.add(Jt.key),await Oe(M,Jt.result,!0,{replace:ge}),{shortCircuited:!0};let{loaderData:Gr,errors:or}=ug(k,Z,Vn,_e,Nt,ot);fe&&k.errors&&(or={...k.errors,...or});let Ir=Mt(),Dt=jt(ue),di=Ir||Dt||Nt.length>0;return{matches:Z,loaderData:Gr,errors:or,...di?{fetchers:new Map(k.fetchers)}:{}}}function Yt(M){if(M&&!dr(M[1]))return{[M[0]]:M[1].data};if(k.actionData)return Object.keys(k.actionData).length===0?null:k.actionData}function Rt(M){return M.forEach(V=>{let Z=k.fetchers.get(V.key),Q=el(void 0,Z?Z.data:void 0);k.fetchers.set(V.key,Q)}),new Map(k.fetchers)}async function Bt(M,V,Z,Q){lt(M);let ie=(Q&&Q.flushSync)===!0,ae=c||l,de=W0(k.location,k.matches,f,Z,V,Q==null?void 0:Q.relative),ge=us(ae,de,f),fe=tt(ge,ae,de);if(fe.active&&fe.matches&&(ge=fe.matches),!ge){Ve(M,V,Cr(404,{pathname:de}),{flushSync:ie});return}let{path:xe,submission:_e,error:Be}=rg(!0,de,Q);if(Be){Ve(M,V,Be,{flushSync:ie});return}let Ue=al(ge,xe),_t=(Q&&Q.preventScrollReset)===!0;if(_e&&Ur(_e.formMethod)){await Je(M,V,xe,Ue,ge,fe.active,ie,_t,_e);return}oe.set(M,{routeId:V,path:xe}),await Ht(M,V,xe,Ue,ge,fe.active,ie,_t,_e)}async function Je(M,V,Z,Q,ie,ae,de,ge,fe){Le(),oe.delete(M);function xe(Xt){if(!Xt.route.action&&!Xt.route.lazy){let Tr=Cr(405,{method:fe.formMethod,pathname:Z,routeId:V});return Ve(M,V,Tr,{flushSync:de}),!0}return!1}if(!ae&&xe(Q))return;let _e=k.fetchers.get(M);Ne(M,xC(fe,_e),{flushSync:de});let Be=new AbortController,Ue=Fi(e.history,Z,Be.signal,fe);if(ae){let Xt=await nt(ie,Z,Ue.signal);if(Xt.type==="aborted")return;if(Xt.type==="error"){Ve(M,V,Xt.error,{flushSync:de});return}else if(Xt.matches){if(ie=Xt.matches,Q=al(ie,Z),xe(Q))return}else{Ve(M,V,Cr(404,{pathname:Z}),{flushSync:de});return}}re.set(M,Be);let _t=ce,yt=(await Xe("action",k,Ue,[Q],ie,M))[Q.route.id];if(Ue.signal.aborted){re.get(M)===Be&&re.delete(M);return}if(z.has(M)){if($s(yt)||dr(yt)){Ne(M,ls(void 0));return}}else{if($s(yt))if(re.delete(M),ue>_t){Ne(M,ls(void 0));return}else return ne.add(M),Ne(M,el(fe)),Oe(Ue,yt,!1,{fetcherSubmission:fe,preventScrollReset:ge});if(dr(yt)){Ve(M,V,yt.error);return}}let Nt=k.navigation.location||k.location,Wn=Fi(e.history,Nt,Be.signal),
vendor: 10,294 bytes, lines 27-28
27Vn=c||l,ot=k.navigation.state!=="idle"?us(Vn,k.navigation.location,f):k.matches;st(ot,"Didn't find any matches after fetcher action");let Jt=++ce;W.set(M,Jt);let Gr=el(fe,yt.data);k.fetchers.set(M,Gr);let[or,Ir]=sg(e.history,k,ot,fe,Nt,!1,Y,te,z,oe,ne,Vn,f,[Q.route.id,yt]);Ir.filter(Xt=>Xt.key!==M).forEach(Xt=>{let Tr=Xt.key,sr=k.fetchers.get(Tr),Md=el(void 0,sr?sr.data:void 0);k.fetchers.set(Tr,Md),lt(Tr),Xt.controller&&re.set(Tr,Xt.controller)}),Ce({fetchers:new Map(k.fetchers)});let Dt=()=>Ir.forEach(Xt=>lt(Xt.key));Be.signal.addEventListener("abort",Dt);let{loaderResults:di,fetcherResults:Ft}=await We(k,ot,or,Ir,Wn);if(Be.signal.aborted)return;Be.signal.removeEventListener("abort",Dt),W.delete(M),re.delete(M),Ir.forEach(Xt=>re.delete(Xt.key));let pn=Kc(di);if(pn)return Oe(Wn,pn.result,!1,{preventScrollReset:ge});if(pn=Kc(Ft),pn)return ne.add(pn.key),Oe(Wn,pn.result,!1,{preventScrollReset:ge});let{loaderData:go,errors:As}=ug(k,ot,di,void 0,Ir,Ft);if(k.fetchers.has(M)){let Xt=ls(yt.data);k.fetchers.set(M,Xt)}jt(Jt),k.navigation.state==="loading"&&Jt>ue?(st(N,"Expected pending action"),P&&P.abort(),Se(k.navigation.location,{matches:ot,loaderData:go,errors:As,fetchers:new Map(k.fetchers)})):(Ce({errors:As,loaderData:dg(k.loaderData,go,ot,As),fetchers:new Map(k.fetchers)}),Y=!1)}async function Ht(M,V,Z,Q,ie,ae,de,ge,fe){let xe=k.fetchers.get(M);Ne(M,el(fe,xe?xe.data:void 0),{flushSync:de});let _e=new AbortController,Be=Fi(e.history,Z,_e.signal);if(ae){let yt=await nt(ie,Z,Be.signal);if(yt.type==="aborted")return;if(yt.type==="error"){Ve(M,V,yt.error,{flushSync:de});return}else if(yt.matches)ie=yt.matches,Q=al(ie,Z);else{Ve(M,V,Cr(404,{pathname:Z}),{flushSync:de});return}}re.set(M,_e);let Ue=ce,mt=(await Xe("loader",k,Be,[Q],ie,M))[Q.route.id];if(re.get(M)===_e&&re.delete(M),!Be.signal.aborted){if(z.has(M)){Ne(M,ls(void 0));return}if($s(mt))if(ue>Ue){Ne(M,ls(void 0));return}else{ne.add(M),await Oe(Be,mt,!1,{preventScrollReset:ge});return}if(dr(mt)){Ve(M,V,mt.error);return}Ne(M,ls(mt.data))}}async function Oe(M,V,Z,{submission:Q,fetcherSubmission:ie,preventScrollReset:ae,replace:de}={}){V.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let ge=V.response.headers.get("Location");st(ge,"Expected a Location header on the redirect Response"),ge=lg(ge,new URL(M.url),f);let fe=ml(k.location,ge,{_isRedirect:!0});if(r){let mt=!1;if(V.response.headers.has("X-Remix-Reload-Document"))mt=!0;else if(Uh.test(ge)){const yt=e.history.createURL(ge);mt=yt.origin!==t.location.origin||$r(yt.pathname,f)==null}if(mt){de?t.location.replace(ge):t.location.assign(ge);return}}P=null;let xe=de===!0||V.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:_e,formAction:Be,formEncType:Ue}=k.navigation;!Q&&!ie&&_e&&Be&&Ue&&(Q=mg(k.navigation));let _t=Q||ie;if(X2.has(V.response.status)&&_t&&Ur(_t.formMethod))await Ge(xe,fe,{submission:{..._t,formAction:ge},preventScrollReset:ae||F,enableViewTransition:Z?U:void 0});else{let mt=_0(fe,Q);await Ge(xe,fe,{overrideNavigation:mt,fetcherSubmission:ie,preventScrollReset:ae||F,enableViewTransition:Z?U:void 0})}}async function Xe(M,V,Z,Q,ie,ae){let de,ge={};try{de=await aC(h,M,V,Z,Q,ie,ae,i,s)}catch(fe){return Q.forEach(xe=>{ge[xe.route.id]={type:"error",error:fe}}),ge}for(let[fe,xe]of Object.entries(de))if(hC(xe)){let _e=xe.result;ge[fe]={type:"redirect",response:uC(_e,Z,fe,ie,f)}}else ge[fe]=await cC(xe);return ge}async function We(M,V,Z,Q,ie){let ae=Xe("loader",M,ie,Z,V,null),de=Promise.all(Q.map(async xe=>{if(xe.matches&&xe.match&&xe.controller){let Be=(await Xe("loader",M,Fi(e.history,xe.path,xe.controller.signal),[xe.match],xe.matches,xe.key))[xe.match.route.id];return{[xe.key]:Be}}else return Promise.resolve({[xe.key]:{type:"error",error:Cr(404,{pathname:xe.path})}})})),ge=await ae,fe=(await de).reduce((xe,_e)=>Object.assign(xe,_e),{});return{loaderResults:ge,fetcherResults:fe}}function Le(){Y=!0,oe.forEach((M,V)=>{re.has(V)&&te.add(V),lt(V)})}function Ne(M,V,Z={}){k.fetchers.set(M,V),Ce({fetchers:new Map(k.fetchers)},{flushSync:(Z&&Z.flushSync)===!0})}function Ve(M,V,Z,Q={}){let ie=zs(k.matches,V);qe(M),Ce({errors:{[ie.route.id]:Z},fetchers:new Map(k.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function ut(M){return D.set(M,(D.get(M)||0)+1),z.has(M)&&z.delete(M),k.fetchers.get(M)||Z2}function qe(M){let V=k.fetchers.get(M);re.has(M)&&!(V&&V.state==="loading"&&W.has(M))&<(M),oe.delete(M),W.delete(M),ne.delete(M),z.delete(M),te.delete(M),k.fetchers.delete(M)}function Ut(M){let V=(D.get(M)||0)-1;V<=0?(D.delete(M),z.add(M)):D.set(M,V),Ce({fetchers:new Map(k.fetchers)})}function lt(M){let V=re.get(M);V&&(V.abort(),re.delete(M))}function Ze(M){for(let V of M){let Z=ut(V),Q=ls(Z.data);k.fetchers.set(V,Q)}}function Mt(){let M=[],V=!1;for(let Z of ne){let Q=k.fetchers.get(Z);st(Q,`Expected fetcher: ${Z}`),Q.state==="loading"&&(ne.delete(Z),M.push(Z),V=!0)}return Ze(M),V}function jt(M){let V=[];for(let[Z,Q]of W)if(Q<M){let ie=k.fetchers.get(Z);st(ie,`Expected fetcher: ${Z}`),ie.state==="loading"&&(lt(Z),W.delete(Z),V.push(Z))}return Ze(V),V.length>0}function dt(M,V){let Z=k.blockers.get(M)||Za;return L.get(M)!==V&&L.set(M,V),Z}function fn(M){k.blockers.delete(M),L.delete(M)}function cn(M,V){let Z=k.blockers.get(M)||Za;st(Z.state==="unblocked"&&V.state==="blocked"||Z.state==="blocked"&&V.state==="blocked"||Z.state==="blocked"&&V.state==="proceeding"||Z.state==="blocked"&&V.state==="unblocked"||Z.state==="proceeding"&&V.state==="unblocked",`Invalid blocker state transition: ${Z.state} -> ${V.state}`);let Q=new Map(k.blockers);Q.set(M,V),Ce({blockers:Q})}function hn({currentLocation:M,nextLocation:V,historyAction:Z}){if(L.size===0)return;L.size>1&&yn(!1,"A router only supports one blocker at a time");let Q=Array.from(L.entries()),[ie,ae]=Q[Q.length-1],de=k.blockers.get(ie);if(!(de&&de.state==="proceeding")&&ae({currentLocation:M,nextLocation:V,historyAction:Z}))return ie}function gt(M){let V=Cr(404,{pathname:M}),Z=c||l,{matches:Q,route:ie}=hg(Z);return{notFoundMatches:Q,route:ie,error:V}}function Tt(M,V,Z){if(y=M,E=V,v=Z||null,!C&&k.navigation===b0){C=!0;let Q=rt(k.location,k.matches);Q!=null&&Ce({restoreScrollPosition:Q})}return()=>{y=null,E=null,v=null}}function je(M,V){return v&&v(M,V.map(Q=>T2(Q,k.loaderData)))||M.key}function Me(M,V){if(y&&E){let Z=je(M,V);y[Z]=E()}}function rt(M,V){if(y){let Z=je(M,V),Q=y[Z];if(typeof Q=="number")return Q}return null}function tt(M,V,Z){if(d)if(M){if(Object.keys(M[0].params).length>0)return{active:!0,matches:fu(V,Z,f,!0)}}else return{active:!0,matches:fu(V,Z,f,!0)||[]};return{active:!1,matches:null}}async function nt(M,V,Z){if(!d)return{type:"success",matches:M};let Q=M;for(;;){let ie=c==null,ae=c||l,de=i;try{await d({path:V,matches:Q,patch:(xe,_e)=>{Z.aborted||ag(xe,_e,ae,de,s)}})}catch(xe){return{type:"error",error:xe,partialMatches:Q}}finally{ie&&!Z.aborted&&(l=[...l])}if(Z.aborted)return{type:"aborted"};let ge=us(ae,V,f);if(ge)return{type:"success",matches:ge};let fe=fu(ae,V,f,!0);if(!fe||Q.length===fe.length&&Q.every((xe,_e)=>xe.route.id===fe[_e].route.id))return{type:"success",matches:null};Q=fe}}function Ct(M){i={},c=rd(M,s,void 0,i)}function le(M,V){let Z=c==null;ag(M,V,c||l,i,s),Z&&(l=[...l],Ce({}))}return T={get basename(){return f},get future(){return p},get state(){return k},get routes(){return l},get window(){return t},initialize:Ee,subscribe:se,enableScrollRestoration:Tt,navigate:He,fetch:Bt,revalidate:xt,createHref:M=>e.history.createHref(M),encodeLocation:M=>e.history.encodeLocation(M),getFetcher:ut,deleteFetcher:Ut,dispose:we,getBlocker:dt,deleteBlocker:fn,patchRoutes:le,_internalFetchControllers:re,_internalSetRoutes:Ct},T}function nC(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function W0(e,t,r,s,i,l){let c,f;if(i){c=[];for(let d of t)if(c.push(d),d.route.id===i){f=d;break}}else c=t,f=t[t.length-1];let h=vd(s||".",yd(c),$r(e.pathname,r)||e.pathname,l==="path");if(s==null&&(h.search=e.search,h.hash=e.hash),(s==null||s===""||s===".")&&f){let d=zh(h.search);if(f.route.index&&!d)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!f.route.index&&d){let p=new URLSearchParams(h.search),g=p.getAll("index");p.delete("index"),g.filter(y=>y).forEach(y=>p.append("index",y));let x=p.toString();h.search=x?`?${x}`:""}}return r!=="/"&&(h.pathname=h.pathname==="/"?r:io([r,h.pathname])),Es(h)}function rg(e,t,r){if(!r||!nC(r))return{path:t};if(r.formMethod&&!pC(r.formMethod))return{path:t,error:Cr(405,{method:r.formMethod})};let s=()=>({path:t,error:Cr(400,{type:"invalid-body"})}),l=(r.formMethod||"get").toUpperCase(),c=b1(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ur(l))return s();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((x,[y,v])=>`${x}${y}=${v} 28`,""):String(r.body);return{path:t,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!Ur(l))return s();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return s()}}}st(typeof FormData=="function","FormData is not available in this environment");let f,h;if(r.formData)f=q0(r.formData),h=r.formData;else if(r.body instanceof FormData)f=q0(r.body),h=r.body;else if(r.body instanceof URLSearchParams)f=r.body,h=cg(f);else if(r.body==null)f=new URLSearchParams,h=new FormData;else try{f=new URLSearchParams(r.body),h=cg(f)}catch{return s()}let d={formMethod:l,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(Ur(d.formMethod))return{path:t,submission:d};let p=Lo(t);return e&&p.search&&zh(p.search)&&f.append("index",""),p.search=`?${f}`,{path:Es(p),submission:d}}function og(e,t,r=!1){let s=e.findIndex(i=>i.route.id===t);return s>=0?e.slice(0,r?s+1:s):e}function sg(e,t,r,s,i,l,c,f,h,d,p,g,x,y){let v=y?dr(y[1])?y[1].error:y[1].data:void 0,E=e.createURL(t.location),C=e.createURL(i),_=r;l&&t.errors?_=og(r,Object.keys(t.errors)[0],!0):y&&dr(y[1])&&(_=og(r,y[0]));let b=y?y[1].statusCode:void 0,A=b&&b>=400,T=_.filter((N,F)=>{let{route:P}=N;if(P.lazy)return!0;
28if(P.loader==null)return!1;if(l)return V0(P,t.loaderData,t.errors);if(rC(t.loaderData,t.matches[F],N))return!0;let U=t.matches[F],O=N;return ig(N,{currentUrl:E,currentParams:U.params,nextUrl:C,nextParams:O.params,...s,actionResult:v,actionStatus:b,defaultShouldRevalidate:A?!1:c||E.pathname+E.search===C.pathname+C.search||E.search!==C.search||oC(U,O)})}),k=[];return d.forEach((N,F)=>{if(l||!r.some($=>$.route.id===N.routeId)||h.has(F))return;let P=us(g,N.path,x);if(!P){k.push({key:F,routeId:N.routeId,path:N.path,matches:null,match:null,controller:null});return}let U=t.fetchers.get(F),O=al(P,N.path),B=!1;p.has(F)?B=!1:f.has(F)?(f.delete(F),B=!0):U&&U.state!=="idle"&&U.data===void 0?B=c:B=ig(O,{currentUrl:E,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:r[r.length-1].params,...s,actionResult:v,actionStatus:b,defaultShouldRevalidate:A?!1:c}),B&&k.push({key:F,routeId:N.routeId,path:N.path,matches:P,match:O,controller:new AbortController})}),[T,k]}function V0(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let s=t!=null&&t[e.id]!==void 0,i=r!=null&&r[e.id]!==void 0;return!s&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!s&&!i}function rC(e,t,r){let s=!t||r.route.id!==t.route.id,i=!e.hasOwnProperty(r.route.id);return s||i}function oC(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ig(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function ag(e,t,r,s,i){let l;if(e){let h=s[e];st(h,`No route found to patch children into: routeId = ${e}`),h.children||(h.children=[]),l=h.children}else l=r;let c=t.filter(h=>!l.some(d=>C1(h,d))),f=rd(c,i,[e||"_","patch",String((l==null?void 0:l.length)||"0")],s);l.push(...f)}function C1(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,s)=>{var i;return(i=t.children)==null?void 0:i.some(l=>C1(r,l))}):!1}async function sC(e,t,r){if(!e.lazy)return;let s=await e.lazy();if(!e.lazy)return;let i=r[e.id];st(i,"No route found in manifest");let l={};for(let c in s){let h=i[c]!==void 0&&c!=="hasErrorBoundary";yn(!h,`Route "${i.id}" has a static property "${c}" defined but its lazy function is also returning a value for this property. The lazy route property "${c}" will be ignored.`),!h&&!R2.has(c)&&(l[c]=s[c])}Object.assign(i,l),Object.assign(i,{...t(i),lazy:void 0})}async function iC({matches:e}){let t=e.filter(s=>s.shouldLoad);return(await Promise.all(t.map(s=>s.resolve()))).reduce((s,i,l)=>Object.assign(s,{[t[l].route.id]:i}),{})}async function aC(e,t,r,s,i,l,c,f,h,d){let p=l.map(y=>y.route.lazy?sC(y.route,h,f):void 0),g=l.map((y,v)=>{let E=p[v],C=i.some(b=>b.route.id===y.route.id);return{...y,shouldLoad:C,resolve:async b=>(b&&s.method==="GET"&&(y.route.lazy||y.route.loader)&&(C=!0),C?lC(t,s,y,E,b,d):Promise.resolve({type:"data",result:void 0}))}}),x=await e({matches:g,request:s,params:l[0].params,fetcherKey:c,context:d});try{await Promise.all(p)}catch{}return x}async function lC(e,t,r,s,i,l){let c,f,h=d=>{let p,g=new Promise((v,E)=>p=E);f=()=>p(),t.signal.addEventListener("abort",f);let x=v=>typeof d!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${r.route.id}]`)):d({request:t,params:r.params,context:l},...v!==void 0?[v]:[]),y=(async()=>{try{return{type:"data",result:await(i?i(E=>x(E)):x())}}catch(v){return{type:"error",result:v}}})();return Promise.race([y,g])};try{let d=r.route[e];if(s)if(d){let p,[g]=await Promise.all([h(d).catch(x=>{p=x}),s]);if(p!==void 0)throw p;c=g}else if(await s,d=r.route[e],d)c=await h(d);else if(e==="action"){let p=new URL(t.url),g=p.pathname+p.search;throw Cr(405,{method:t.method,pathname:g,routeId:r.route.id})}else return{type:"data",result:void 0};else if(d)c=await h(d);else{let p=new URL(t.url),g=p.pathname+p.search;throw Cr(404,{pathname:g})}}catch(d){return{type:"error",result:d}}finally{f&&t.signal.removeEventListener("abort",f)}return c}async function cC(e){var s,i,l,c;let{result:t,type:r}=e;if(_1(t)){let f;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(h){return{type:"error",error:h}}return r==="error"?{type:"error",error:new sd(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:"data",data:f,statusCode:t.status,headers:t.headers}}if(r==="error"){if(pg(t)){if(t.data instanceof Error)return{type:"error",error:t.data,statusCode:(s=t.init)==null?void 0:s.status};t=new sd(((i=t.init)==null?void 0:i.status)||500,void 0,t.data)}return{type:"error",error:t,statusCode:wd(t)?t.status:void 0}}return pg(t)?{type:"data",data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function uC(e,t,r,s,i){let l=e.headers.get("Location");if(st(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!Uh.test(l)){let c=s.slice(0,s.findIndex(f=>f.route.id===r)+1);l=W0(new URL(t.url),c,i,l),e.headers.set("Location",l)}return e}function lg(e,t,r){if(Uh.test(e)){let s=e,i=s.startsWith("//")?new URL(t.protocol+s):new URL(s),l=$r(i.pathname,r)!=null;if(i.origin===t.origin&&l)return i.pathname+i.search+i.hash}return e}function Fi(e,t,r,s){let i=e.createURL(b1(t)).toString(),l={signal:r};if(s&&Ur(s.formMethod)){let{formMethod:c,formEncType:f}=s;l.method=c.toUpperCase(),f==="application/json"?(l.headers=new Headers({"Content-Type":f}),l.body=JSON.stringify(s.json)):f==="text/plain"?l.body=s.text:f==="application/x-www-form-urlencoded"&&s.formData?l.body=q0(s.formData):l.body=s.formData}
28return new Request(i,l)}function q0(e){let t=new URLSearchParams;for(let[r,s]of e.entries())t.append(r,typeof s=="string"?s:s.name);return t}function cg(e){let t=new FormData;for(let[r,s]of e.entries())t.append(r,s);return t}function dC(e,t,r,s=!1,i=!1){let l={},c=null,f,h=!1,d={},p=r&&dr(r[1])?r[1].error:void 0;return e.forEach(g=>{if(!(g.route.id in t))return;let x=g.route.id,y=t[x];if(st(!$s(y),"Cannot handle redirect results in processLoaderData"),dr(y)){let v=y.error;if(p!==void 0&&(v=p,p=void 0),c=c||{},i)c[x]=v;else{let E=zs(e,x);c[E.route.id]==null&&(c[E.route.id]=v)}s||(l[x]=S1),h||(h=!0,f=wd(y.error)?y.error.status:500),y.headers&&(d[x]=y.headers)}else l[x]=y.data,y.statusCode&&y.statusCode!==200&&!h&&(f=y.statusCode),y.headers&&(d[x]=y.headers)}),p!==void 0&&r&&(c={[r[0]]:p},l[r[0]]=void 0),{loaderData:l,errors:c,statusCode:f||200,loaderHeaders:d}}function ug(e,t,r,s,i,l){let{loaderData:c,errors:f}=dC(t,r,s);return i.forEach(h=>{let{key:d,match:p,controller:g}=h,x=l[d];if(st(x,"Did not find corresponding fetcher result"),!(g&&g.signal.aborted))if(dr(x)){let y=zs(e.matches,p==null?void 0:p.route.id);f&&f[y.route.id]||(f={...f,[y.route.id]:x.error}),e.fetchers.delete(d)}else if($s(x))st(!1,"Unhandled fetcher revalidation redirect");else{let y=ls(x.data);e.fetchers.set(d,y)}}),{loaderData:c,errors:f}}function dg(e,t,r,s){let i=Object.entries(t).filter(([,l])=>l!==S1).reduce((l,[c,f])=>(l[c]=f,l),{});for(let l of r){let c=l.route.id;if(!t.hasOwnProperty(c)&&e.hasOwnProperty(c)&&l.route.loader&&(i[c]=e[c]),s&&s.hasOwnProperty(c))break}return i}function fg(e){return e?dr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function zs(e,t){return(t?e.slice(0,e.findIndex(s=>s.route.id===t)+1):[...e]).reverse().find(s=>s.route.hasErrorBoundary===!0)||e[0]}function hg(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Cr(e,{pathname:t,routeId:r,method:s,type:i,message:l}={}){let c="Unknown Server Error",f="Unknown @remix-run/router error";return e===400?(c="Bad Request",s&&t&&r?f=`You made a ${s} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:i==="invalid-body"&&(f="Unable to encode submission body")):e===403?(c="Forbidden",f=`Route "${r}" does not match URL "${t}"`):e===404?(c="Not Found",f=`No route matches URL "${t}"`):e===405&&(c="Method Not Allowed",s&&t&&r?f=`You made a ${s.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:s&&(f=`Invalid request method "${s.toUpperCase()}"`)),new sd(e||500,c,new Error(f),!0)}function Kc(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[s,i]=t[r];if($s(i))return{key:s,result:i}}}function b1(e){let t=typeof e=="string"?Lo(e):e;return Es({...t,hash:""})}function fC(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function hC(e){return _1(e.result)&&J2.has(e.result.status)}function dr(e){return e.type==="error"}function $s(e){return(e&&e.type)==="redirect"}function pg(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function _1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function pC(e){return Q2.has(e.toUpperCase())}function Ur(e){return G2.has(e.toUpperCase())}function zh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function al(e,t){let r=typeof t=="string"?Lo(t).search:t.search;if(e[e.length-1].route.index&&zh(r||""))return e[e.length-1];let s=v1(e);return s[s.length-1]}function mg(e){let{formMethod:t,formAction:r,formEncType:s,text:i,formData:l,json:c}=e;if(!(!t||!r||!s)){if(i!=null)return{formMethod:t,formAction:r,formEncType:s,formData:void 0,json:void 0,text:i};if(l!=null)return{formMethod:t,formAction:r,formEncType:s,formData:l,json:void 0,text:void 0};if(c!==void 0)return{formMethod:t,formAction:r,formEncType:s,formData:void 0,json:c,text:void 0}}}function _0(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function mC(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function el(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function xC(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ls(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function gC(e,t){try{let r=e.sessionStorage.getItem(E1);if(r){let s=JSON.parse(r);for(let[i,l]of Object.entries(s||{}))l&&Array.isArray(l)&&t.set(i,new Set(l||[]))}}catch{}}function yC(e,t){if(t.size>0){let r={};for(let[s,i]of t)r[s]=[...i];try{e.sessionStorage.setItem(E1,JSON.stringify(r))}catch(s){yn(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function vC(){let e,t,r=new Promise((s,i)=>{e=async l=>{s(l);try{await r}catch{}},t=async l=>{i(l);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var ni=R.createContext(null);ni.displayName="DataRouter";var Il=R.createContext(null);Il.displayName="DataRouterState";var $h=R.createContext({isTransitioning:!1});$h.displayName="ViewTransition";var A1=R.createContext(new Map);A1.displayName="Fetchers";var wC=R.createContext(null);wC.displayName="Await";var Kr=R.createContext(null);Kr.displayName="Navigation";var Tl=R.createContext(null);Tl.displayName="Location";var kr=R.createContext({outlet:null,matches:[],isDataRoute:!1});kr.displayName="Route";var Hh=R.createContext(null);Hh.displayName="RouteError";function EC(e,{relative:t}={}){st(aa(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=R.useContext(Kr),{hash:i,pathname:l,search:c}=Pl(e,{relative:t}),f=l;return r!=="/"&&(f=l==="/"?r:io([r,l])),s.createHref({pathname:f,search:c,hash:i})}function aa(){return R.useContext(Tl)!=null}function bn(){return st(aa(),"useLocation() may be used only in the context of a <Router> component."),R.useContext(Tl).location}var k1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function R1(e){R.useContext(Kr).static||R.useLayoutEffect(e)}function Mo(){let{isDataRoute:e}=R.useContext(kr);return e?LC():SC()}function SC(){st(aa(),"useNavigate() may be used only in the context of a <Router> component.");let e=R.useContext(ni),{basename:t,navigator:r}=R.useContext(Kr),{matches:s}=R.useContext(kr),{pathname:i}=bn(),l=JSON.stringify(yd(s)),c=R.useRef(!1);return R1(()=>{c.current=!0}),R.useCallback((h,d={})=>
28{if(yn(c.current,k1),!c.current)return;if(typeof h=="number"){r.go(h);return}let p=vd(h,JSON.parse(l),i,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:io([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,l,i,e])}var CC=R.createContext(null);function bC(e){let t=R.useContext(kr).outlet;return t&&R.createElement(CC.Provider,{value:e},t)}function _C(){let{matches:e}=R.useContext(kr),t=e[e.length-1];return t?t.params:{}}function Pl(e,{relative:t}={}){let{matches:r}=R.useContext(kr),{pathname:s}=bn(),i=JSON.stringify(yd(r));return R.useMemo(()=>vd(e,JSON.parse(i),s,t==="path"),[e,i,s,t])}function AC(e,t){return I1(e,t)}function I1(e,t,r,s){var _;st(aa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=R.useContext(Kr),{matches:l}=R.useContext(kr),c=l[l.length-1],f=c?c.params:{},h=c?c.pathname:"/",d=c?c.pathnameBase:"/",p=c&&c.route;{let b=p&&p.path||"";T1(h,!p||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${b}">) 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. 29 30Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let g=bn(),x;if(t){let b=typeof t=="string"?Lo(t):t;st(d==="/"||((_=b.pathname)==null?void 0:_.startsWith(d)),`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 "${d}" but pathname "${b.pathname}" was given in the \`location\` prop.`),x=b}else x=g;let y=x.pathname||"/",v=y;if(d!=="/"){let b=d.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(b.length).join("/")}let E=us(e,{pathname:v});yn(p||E!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),yn(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 C=PC(E&&E.map(b=>Object.assign({},b,{params:Object.assign({},f,b.params),pathname:io([d,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?d:io([d,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),l,r,s);return t&&C?R.createElement(Tl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},C):C}function kC(){let e=BC(),t=wd(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:s},l={padding:"2px 4px",backgroundColor:s},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=R.createElement(R.Fragment,null,R.createElement("p",null,"💿 Hey developer 👋"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:l},"ErrorBoundary")," or"," ",R.createElement("code",{style:l},"errorElement")," prop on your route.")),R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),r?R.createElement("pre",{style:i},r):null,c)}var RC=R.createElement(kC,null),IC=class extends R.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?R.createElement(kr.Provider,{value:this.props.routeContext},R.createElement(Hh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function TC({routeContext:e,match:t,children:r}){let s=R.useContext(ni);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),R.createElement(kr.Provider,{value:e},r)}function PC(e,t=[],r=null,s=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=r==null?void 0:r.errors;if(l!=null){let h=i.findIndex(d=>d.route.id&&(l==null?void 0:l[d.route.id])!==void 0);st(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let c=!1,f=-1;if(r)for(let h=0;h<i.length;h++){let d=i[h];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(f=h),d.route.id){let{loaderData:p,errors:g}
30=r,x=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||x){c=!0,f>=0?i=i.slice(0,f+1):i=[i[0]];break}}}return i.reduceRight((h,d,p)=>{let g,x=!1,y=null,v=null;r&&(g=l&&d.route.id?l[d.route.id]:void 0,y=d.route.errorElement||RC,c&&(f<0&&p===0?(T1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,v=null):f===p&&(x=!0,v=d.route.hydrateFallbackElement||null)));let E=t.concat(i.slice(0,p+1)),C=()=>{let _;return g?_=y:x?_=v:d.route.Component?_=R.createElement(d.route.Component,null):d.route.element?_=d.route.element:_=h,R.createElement(TC,{match:d,routeContext:{outlet:h,matches:E,isDataRoute:r!=null},children:_})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?R.createElement(IC,{location:r.location,revalidation:r.revalidation,component:y,error:g,children:C(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):C()},null)}function Wh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function NC(e){let t=R.useContext(ni);return st(t,Wh(e)),t}function DC(e){let t=R.useContext(Il);return st(t,Wh(e)),t}function FC(e){let t=R.useContext(kr);return st(t,Wh(e)),t}function Vh(e){let t=FC(e),r=t.matches[t.matches.length-1];return st(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function OC(){return Vh("useRouteId")}function BC(){var s;let e=R.useContext(Hh),t=DC("useRouteError"),r=Vh("useRouteError");return e!==void 0?e:(s=t.errors)==null?void 0:s[r]}function LC(){let{router:e}=NC("useNavigate"),t=Vh("useNavigate"),r=R.useRef(!1);return R1(()=>{r.current=!0}),R.useCallback(async(i,l={})=>{yn(r.current,k1),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var xg={};function T1(e,t,r){!t&&!xg[e]&&(xg[e]=!0,yn(!1,r))}var gg={};function yg(e,t){!e&&!gg[t]&&(gg[t]=!0,console.warn(t))}function MC(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&yn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:R.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&yn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:R.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&yn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:R.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var jC=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function UC({router:e,flushSync:t}){let[r,s]=R.useState(e.state),[i,l]=R.useState(),[c,f]=R.useState({isTransitioning:!1}),[h,d]=R.useState(),[p,g]=R.useState(),[x,y]=R.useState(),v=R.useRef(new Map),E=R.useCallback((A,{deletedFetchers:T,flushSync:k,viewTransitionOpts:N})=>{T.forEach(P=>v.current.delete(P)),A.fetchers.forEach((P,U)=>{P.data!==void 0&&v.current.set(U,P.data)}),yg(k===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let F=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(yg(N==null||F,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!N||!F){t&&k?t(()=>s(A)):R.startTransition(()=>s(A));return}if(t&&k){t(()=>{p&&(h&&h.resolve(),p.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let P=e.window.document.startViewTransition(()=>{t(()=>s(A))});P.finished.finally(()=>{t(()=>{d(void 0),g(void 0),l(void 0),f({isTransitioning:!1})})}),t(()=>g(P));return}p?(h&&h.resolve(),p.skipTransition(),y({state:A,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(l(A),f({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[e.window,t,p,h]);R.useLayoutEffect(()=>e.subscribe(E),[e,E]),R.useEffect(()=>{c.isTransitioning&&!c.flushSync&&d(new jC)},[c]),R.useEffect(()=>{if(h&&i&&e.window){let A=i,T=h.promise,k=e.window.document.startViewTransition(async()=>{R.startTransition(()=>s(A)),await T});k.finished.finally(()=>{d(void 0),g(void 0),l(void 0),f({isTransitioning:!1})}),g(k)}},[i,h,e.window]),R.useEffect(()=>{h&&i&&r.location.key===i.location.key&&h.resolve()},[h,p,r.location,i]),R.useEffect(()=>{!c.isTransitioning&&x&&(l(x.state),f({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),y(void 0))},[c.isTransitioning,x]);let C=R.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:A=>e.navigate(A),push:(A,T,k)=>e.navigate(A,{state:T,preventScrollReset:k==null?void 0:k.preventScrollReset}),replace:(A,T,k)=>e.navigate(A,{replace:!0,state:T,preventScrollReset:k==null?void 0:k.preventScrollReset})}),[e]),_=e.basename||"/",b=R.useMemo(()=>({router:e,navigator:C,static:!1,basename:_}),[e,C,_]);return R.createElement(R.Fragment,null,R.createElement(ni.Provider,{value:b},R.createElement(Il.Provider,{value:r},R.createElement(A1.Provider,{value:v.current},R.createElement($h.Provider,{value:c}
30,R.createElement(VC,{basename:_,location:r.location,navigationType:r.historyAction,navigator:C},R.createElement(zC,{routes:e.routes,future:e.future,state:r})))))),null)}var zC=R.memo($C);function $C({routes:e,future:t,state:r}){return I1(e,void 0,r,t)}function Gc({to:e,replace:t,state:r,relative:s}){st(aa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=R.useContext(Kr);yn(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=R.useContext(kr),{pathname:c}=bn(),f=Mo(),h=vd(e,yd(l),c,s==="path"),d=JSON.stringify(h);return R.useEffect(()=>{f(JSON.parse(d),{replace:t,state:r,relative:s})},[f,d,s,t,r]),null}function HC(e){return bC(e.context)}function WC(e){st(!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 VC({basename:e="/",children:t=null,location:r,navigationType:s="POP",navigator:i,static:l=!1}){st(!aa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=R.useMemo(()=>({basename:c,navigator:i,static:l,future:{}}),[c,i,l]);typeof r=="string"&&(r=Lo(r));let{pathname:h="/",search:d="",hash:p="",state:g=null,key:x="default"}=r,y=R.useMemo(()=>{let v=$r(h,c);return v==null?null:{location:{pathname:v,search:d,hash:p,state:g,key:x},navigationType:s}},[c,h,d,p,g,x,s]);return yn(y!=null,`<Router basename="${c}"> is not able to match the URL "${h}${d}${p}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:R.createElement(Kr.Provider,{value:f},R.createElement(Tl.Provider,{children:t,value:y}))}function sN({children:e,location:t}){return AC(K0(e),t)}function K0(e,t=[]){let r=[];return R.Children.forEach(e,(s,i)=>{if(!R.isValidElement(s))return;let l=[...t,i];if(s.type===R.Fragment){r.push.apply(r,K0(s.props.children,l));return}st(s.type===WC,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),st(!s.props.index||!s.props.children,"An index route cannot have child routes.");let c={id:s.props.id||l.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(c.children=K0(s.props.children,l)),r.push(c)}),r}var hu="get",pu="application/x-www-form-urlencoded";function Ed(e){return e!=null&&typeof e.tagName=="string"}function qC(e){return Ed(e)&&e.tagName.toLowerCase()==="button"}function KC(e){return Ed(e)&&e.tagName.toLowerCase()==="form"}function GC(e){return Ed(e)&&e.tagName.toLowerCase()==="input"}function YC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QC(e,t){return e.button===0&&(!t||t==="_self")&&!YC(e)}function G0(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let s=e[r];return t.concat(Array.isArray(s)?s.map(i=>[r,i]):[[r,s]])},[]))}function JC(e,t){let r=G0(e);return t&&t.forEach((s,i)=>{r.has(i)||t.getAll(i).forEach(l=>{r.append(i,l)})}),r}var Yc=null;function XC(){if(Yc===null)try{new FormData(document.createElement("form"),0),Yc=!1}catch{Yc=!0}return Yc}var ZC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function A0(e){return e!=null&&!ZC.has(e)?(yn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pu}"`),null):e}function eb(e,t){let r,s,i,l,c;if(KC(e)){let f=e.getAttribute("action");s=f?$r(f,t):null,r=e.getAttribute("method")||hu,i=A0(e.getAttribute("enctype"))||pu,l=new FormData(e)}else if(qC(e)||GC(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||f.getAttribute("action");if(s=h?$r(h,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||hu,i=A0(e.getAttribute("formenctype"))||A0(f.getAttribute("enctype"))||pu,l=new FormData(f,e),!XC()){let{name:d,type:p,value:g}=e;if(p==="image"){let x=d?`${d}.`:"";l.append(`${x}x`,"0"),l.append(`${x}y`,"0")}else d&&l.append(d,g)}}else{if(Ed(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=hu,s=null,i=pu,c=e}return l&&i==="text/plain"&&(c=l,l=void 0),{action:s,method:r.toLowerCase(),encType:i,formData:l,body:c}}function qh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function tb(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
30isSpaMode,window.location.reload(),new Promise(()=>{})}}function nb(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function rb(e,t,r){let s=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let c=await tb(l,r);return c.links?c.links():[]}return[]}));return ab(s.flat(1).filter(nb).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function vg(e,t,r,s,i,l){let c=(h,d)=>r[d]?h.route.id!==r[d].route.id:!0,f=(h,d)=>{var p;return r[d].pathname!==h.pathname||((p=r[d].route.path)==null?void 0:p.endsWith("*"))&&r[d].params["*"]!==h.params["*"]};return l==="assets"?t.filter((h,d)=>c(h,d)||f(h,d)):l==="data"?t.filter((h,d)=>{var g;let p=s.routes[h.route.id];if(!p||!p.hasLoader)return!1;if(c(h,d)||f(h,d))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function ob(e,t){return sb(e.map(r=>{let s=t.routes[r.route.id];if(!s)return[];let i=[s.module];return s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function sb(e){return[...new Set(e)]}function ib(e){let t={},r=Object.keys(e).sort();for(let s of r)t[s]=e[s];return t}function ab(e,t){let r=new Set;return new Set(t),e.reduce((s,i)=>{let l=JSON.stringify(ib(i));return r.has(l)||(r.add(l),s.push({key:l,link:i})),s},[])}function lb(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function cb(){let e=R.useContext(ni);return qh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ub(){let e=R.useContext(Il);return qh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Kh=R.createContext(void 0);Kh.displayName="FrameworkContext";function P1(){let e=R.useContext(Kh);return qh(e,"You must render this element inside a <HydratedRouter> element"),e}function db(e,t){let r=R.useContext(Kh),[s,i]=R.useState(!1),[l,c]=R.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:d,onMouseLeave:p,onTouchStart:g}=t,x=R.useRef(null);R.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let E=_=>{_.forEach(b=>{c(b.isIntersecting)})},C=new IntersectionObserver(E,{threshold:.5});return x.current&&C.observe(x.current),()=>{C.disconnect()}}},[e]),R.useEffect(()=>{if(s){let E=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(E)}}},[s]);let y=()=>{i(!0)},v=()=>{i(!1),c(!1)};return r?e!=="intent"?[l,x,{}]:[l,x,{onFocus:tl(f,y),onBlur:tl(h,v),onMouseEnter:tl(d,y),onMouseLeave:tl(p,v),onTouchStart:tl(g,y)}]:[!1,x,{}]}function tl(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function fb({page:e,...t}){let{router:r}=cb(),s=R.useMemo(()=>us(r.routes,e,r.basename),[r.routes,e,r.basename]);return s?R.createElement(pb,{page:e,matches:s,...t}):null}function hb(e){let{manifest:t,routeModules:r}=P1(),[s,i]=R.useState([]);return R.useEffect(()=>{let l=!1;return rb(e,t,r).then(c=>{l||i(c)}),()=>{l=!0}},[e,t,r]),s}function pb({page:e,matches:t,...r}){let s=bn(),{manifest:i,routeModules:l}=P1(),{loaderData:c,matches:f}=ub(),h=R.useMemo(()=>vg(e,t,f,i,s,"data"),[e,t,f,i,s]),d=R.useMemo(()=>vg(e,t,f,i,s,"assets"),[e,t,f,i,s]),p=R.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let y=new Set,v=!1;if(t.forEach(C=>{var b;let _=i.routes[C.route.id];!_||!_.hasLoader||(!h.some(A=>A.route.id===C.route.id)&&C.route.id in c&&((b=l[C.route.id])!=null&&b.shouldRevalidate)||_.hasClientLoader?v=!0:y.add(C.route.id))}),y.size===0)return[];let E=lb(e);return v&&y.size>0&&E.searchParams.set("_routes",t.filter(C=>y.has(C.route.id)).map(C=>C.route.id).join(",")),[E.pathname+E.search]},[c,s,i,h,t,e,l]),g=R.useMemo(()=>
30ob(d,i),[d,i]),x=hb(d);return R.createElement(R.Fragment,null,p.map(y=>R.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),g.map(y=>R.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),x.map(({key:y,link:v})=>R.createElement("link",{key:y,...v})))}function mb(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var N1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{N1&&(window.__reactRouterVersion="7.1.1")}catch{}function xb(e,t){return tC({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:_2({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||gb(),routes:e,mapRouteProperties:MC,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function gb(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:yb(e.errors)}),e}function yb(e){if(!e)return null;let t=Object.entries(e),r={};for(let[s,i]of t)if(i&&i.__type==="RouteErrorResponse")r[s]=new sd(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let l=window[i.__subType];if(typeof l=="function")try{let c=new l(i.message);c.stack="",r[s]=c}catch{}}if(r[s]==null){let l=new Error(i.message);l.stack="",r[s]=l}}else r[s]=i;return r}var D1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,F1=R.forwardRef(function({onClick:t,discover:r="render",prefetch:s="none",relative:i,reloadDocument:l,replace:c,state:f,target:h,to:d,preventScrollReset:p,viewTransition:g,...x},y){let{basename:v}=R.useContext(Kr),E=typeof d=="string"&&D1.test(d),C,_=!1;if(typeof d=="string"&&E&&(C=d,N1))try{let U=new URL(window.location.href),O=d.startsWith("//")?new URL(U.protocol+d):new URL(d),B=$r(O.pathname,v);O.origin===U.origin&&B!=null?d=B+O.search+O.hash:_=!0}catch{yn(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=EC(d,{relative:i}),[A,T,k]=db(s,x),N=Sb(d,{replace:c,state:f,target:h,preventScrollReset:p,relative:i,viewTransition:g});function F(U){t&&t(U),U.defaultPrevented||N(U)}let P=R.createElement("a",{...x,...k,href:C||b,onClick:_||l?t:F,ref:mb(y,T),target:h,"data-discover":!E&&r==="render"?"true":void 0});return A&&!E?R.createElement(R.Fragment,null,P,R.createElement(fb,{page:b})):P});F1.displayName="Link";var vb=R.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:s="",end:i=!1,style:l,to:c,viewTransition:f,children:h,...d},p){let g=Pl(c,{relative:d.relative}),x=bn(),y=R.useContext(Il),{navigator:v,basename:E}=R.useContext(Kr),C=y!=null&&Rb(g)&&f===!0,_=v.encodeLocation?v.encodeLocation(g).pathname:g.pathname,b=x.pathname,A=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;r||(b=b.toLowerCase(),A=A?A.toLowerCase():null,_=_.toLowerCase()),A&&E&&(A=$r(A,E)||A);const T=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let k=b===_||!i&&b.startsWith(_)&&b.charAt(T)==="/",N=A!=null&&(A===_||!i&&A.startsWith(_)&&A.charAt(_.length)==="/"),F={isActive:k,isPending:N,isTransitioning:C},P=k?t:void 0,U;typeof s=="function"?U=s(F):U=[s,k?"active":null,N?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let O=typeof l=="function"?l(F):l;return R.createElement(F1,{...d,"aria-current":P,className:U,ref:p,style:O,to:c,viewTransition:f},typeof h=="function"?h(F):h)});vb.displayName="NavLink";var wb=R.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:s,replace:i,state:l,method:c=hu,action:f,onSubmit:h,relative:d,preventScrollReset:p,viewTransition:g,...x},y)=>{let v=Ab(),E=kb(f,{relative:d}),C=c.toLowerCase()==="get"?"get":"post",_=typeof f=="string"&&D1.test(f),b=A=>{if(h&&h(A),A.defaultPrevented)return;A.preventDefault();let T=A.nativeEvent.submitter,k=(T==null?void 0:T.getAttribute("formmethod"))||c;v(T||A.currentTarget,{fetcherKey:t,method:k,navigate:r,replace:i,state:l,relative:d,preventScrollReset:p,viewTransition:g})};return R.createElement("form",{ref:y,method:C,action:E,onSubmit:s?h:b,...x,"data-discover":!_&&e==="render"?"true":void 0})});wb.displayName="Form";function Eb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function O1(e){let t=R.useContext(ni);return st(t,Eb(e)),t}function Sb(e,{target:t,replace:r,state:s,preventScrollReset:i,relative:l,viewTransition:c}={}
30){let f=Mo(),h=bn(),d=Pl(e,{relative:l});return R.useCallback(p=>{if(QC(p,t)){p.preventDefault();let g=r!==void 0?r:Es(h)===Es(d);f(e,{replace:g,state:s,preventScrollReset:i,relative:l,viewTransition:c})}},[h,f,d,r,s,t,e,i,l,c])}function Cb(e){yn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=R.useRef(G0(e)),r=R.useRef(!1),s=bn(),i=R.useMemo(()=>JC(s.search,r.current?null:t.current),[s.search]),l=Mo(),c=R.useCallback((f,h)=>{const d=G0(typeof f=="function"?f(i):f);r.current=!0,l("?"+d,h)},[l,i]);return[i,c]}var bb=0,_b=()=>`__${String(++bb)}__`;function Ab(){let{router:e}=O1("useSubmit"),{basename:t}=R.useContext(Kr),r=OC();return R.useCallback(async(s,i={})=>{let{action:l,method:c,encType:f,formData:h,body:d}=eb(s,t);if(i.navigate===!1){let p=i.fetcherKey||_b();await e.fetch(p,r,i.action||l,{preventScrollReset:i.preventScrollReset,formData:h,body:d,formMethod:i.method||c,formEncType:i.encType||f,flushSync:i.flushSync})}else await e.navigate(i.action||l,{preventScrollReset:i.preventScrollReset,formData:h,body:d,formMethod:i.method||c,formEncType:i.encType||f,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}function kb(e,{relative:t}={}){let{basename:r}=R.useContext(Kr),s=R.useContext(kr);st(s,"useFormAction must be used inside a RouteContext");let[i]=s.matches.slice(-1),l={...Pl(e||".",{relative:t})},c=bn();if(e==null){l.search=c.search;let f=new URLSearchParams(l.search),h=f.getAll("index");if(h.some(p=>p==="")){f.delete("index"),h.filter(g=>g).forEach(g=>f.append("index",g));let p=f.toString();l.search=p?`?${p}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:io([r,l.pathname])),Es(l)}function Rb(e,t={}){let r=R.useContext($h);st(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=O1("useViewTransitionState"),i=Pl(e,{relative:t.relative});if(!r.isTransitioning)return!1;let l=$r(r.currentLocation.pathname,s)||r.currentLocation.pathname,c=$r(r.nextLocation.pathname,s)||r.nextLocation.pathname;return od(i.pathname,c)!=null||od(i.pathname,l)!=null}new TextEncoder;var k0={exports:{}},Jn={},R0={exports:{}},I0={};/** 31 * @license React 32 * scheduler.production.min.js 33 * 34 * Copyright (c) Facebook, Inc. and its affiliates. 35 * 36 * This source code is licensed under the MIT license found in the 37 * LICENSE file in the root directory of this source tree. 38 */var wg;function Ib(){return wg||(wg=1,function(e){function t(W,ne){var oe=W.length;W.push(ne);e:for(;0<oe;){var D=oe-1>>>1,z=W[D];if(0<i(z,ne))W[D]=ne,W[oe]=z,oe=D;else break e}}function r(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var ne=W[0],oe=W.pop();if(oe!==ne){W[0]=oe;e:for(var D=0,z=W.length,L=z>>>1;D<L;){var K=2*(D+1)-1,ve=W[K],Ee=K+1,we=W[Ee];if(0>i(ve,oe))Ee<z&&0>i(we,ve)?(W[D]=we,W[Ee]=oe,D=Ee):(W[D]=ve,W[K]=oe,D=K);else if(Ee<z&&0>i(we,oe))W[D]=we,W[Ee]=oe,D=Ee;else break e}}return ne}function i(W,ne){var oe=W.sortIndex-ne.sortIndex;return oe!==0?oe:W.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],d=[],p=1,g=null,x=3,y=!1,v=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(W){for(var ne=r(d);ne!==null;){if(ne.callback===null)s(d);else if(ne.startTime<=W)s(d),ne.sortIndex=ne.expirationTime,t(h,ne);else break;ne=r(d)}}function T(W){if(E=!1,A(W),!v)if(r(h)!==null)v=!0,ce(k);else{var ne=r(d);ne!==null&&ue(T,ne.startTime-W)}}function k(W,ne){v=!1,E&&(E=!1,_(P),P=-1),y=!0;var oe=x;try{for(A(ne),g=r(h);g!==null&&(!(g.expirationTime>ne)||W&&!B());){var D=g.callback;if(typeof D=="function"){g.callback=null,x=g.priorityLevel;var z=D(g.expirationTime<=ne);ne=e.unstable_now(),typeof z=="function"?g.callback=z:g===r(h)&&s(h),A(ne)}else s(h);g=r(h)}if(g!==null)var L=!0;else{var K=r(d);K!==null&&ue(T,K.startTime-ne),L=!1}return L}finally{g=null,x=oe,y=!1}}var N=!1,F=null,P=-1,U=5,O=-1;function B(){return!(e.unstable_now()-O<U)}function $(){if(F!==null){var W=e.unstable_now();O=W;var ne=!0;try{ne=F(!0,W)}finally{ne?Y():(N=!1,F=null)}}else N=!1}var Y;if(typeof b=="function")Y=function(){b($)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,re=te.port2;te.port1.onmessage=$,Y=function(){re.postMessage(null)}}else Y=function(){C($,0)};function ce(W){F=W,N||(N=!0,Y())}function ue(W,ne){P=C(function(){W(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){v||y||(v=!0,ce(k))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(W){switch(x){case 1:case 2:case 3:var ne=3;break;default:ne=x}var oe=x;x=ne;try{return W()}finally{x=oe}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,ne){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var oe=x;x=W;try{return ne()}finally{x=oe}},e.unstable_scheduleCallback=function(W,ne,oe){var D=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?D+oe:D):oe=D,W){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}
vendor: 4,662 bytes, lines 38-46
38return z=oe+z,W={id:p++,callback:ne,priorityLevel:W,startTime:oe,expirationTime:z,sortIndex:-1},oe>D?(W.sortIndex=oe,t(d,W),r(h)===null&&W===r(d)&&(E?(_(P),P=-1):E=!0,ue(T,oe-D))):(W.sortIndex=z,t(h,W),v||y||(v=!0,ce(k))),W},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(W){var ne=x;return function(){var oe=x;x=ne;try{return W.apply(this,arguments)}finally{x=oe}}}}(I0)),I0}var Eg;function Tb(){return Eg||(Eg=1,R0.exports=Ib()),R0.exports}/** 39 * @license React 40 * react-dom.production.min.js 41 * 42 * Copyright (c) Facebook, Inc. and its affiliates. 43 * 44 * This source code is licensed under the MIT license found in the 45 * LICENSE file in the root directory of this source tree. 46 */var Sg;function Pb(){if(Sg)return Jn;Sg=1;var e=jh(),t=Tb();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,a=1;a<arguments.length;a++)o+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,i={};function l(n,o){c(n,o),c(n+"Capture",o)}function c(n,o){for(i[n]=o,n=0;n<o.length;n++)s.add(o[n])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},g={};function x(n){return h.call(g,n)?!0:h.call(p,n)?!1:d.test(n)?g[n]=!0:(p[n]=!0,!1)}function y(n,o,a,u){if(a!==null&&a.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return u?!1:a!==null?!a.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function v(n,o,a,u){if(o===null||typeof o>"u"||y(n,o,a,u))return!0;if(u)return!1;if(a!==null)switch(a.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function E(n,o,a,u,m,w,I){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=u,this.attributeNamespace=m,this.mustUseProperty=a,this.propertyName=n,this.type=o,this.sanitizeURL=w,this.removeEmptyString=I}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){C[n]=new E(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];C[o]=new E(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){C[n]=new E(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){C[n]=new E(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){C[n]=new E(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){C[n]=new E(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){C[n]=new E(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){C[n]=new E(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){C[n]=new E(n,5,!1,n.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function b(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
46-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var o=n.replace(_,b);C[o]=new E(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(_,b);C[o]=new E(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(_,b);C[o]=new E(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){C[n]=new E(n,1,!1,n.toLowerCase(),null,!1,!1)}),C.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){C[n]=new E(n,1,!1,n.toLowerCase(),null,!0,!0)});function A(n,o,a,u){var m=C.hasOwnProperty(o)?C[o]:null;(m!==null?m.type!==0:u||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(v(o,a,m,u)&&(a=null),u||m===null?x(o)&&(a===null?n.removeAttribute(o):n.setAttribute(o,""+a)):m.mustUseProperty?n[m.propertyName]=a===null?m.type===3?!1:"":a:(o=m.attributeName,u=m.attributeNamespace,a===null?n.removeAttribute(o):(m=m.type,a=m===3||m===4&&a===!0?"":""+a,u?n.setAttributeNS(u,o,a):n.setAttribute(o,a))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),N=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),B=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),ue=Symbol.for("react.offscreen"),W=Symbol.iterator;function ne(n){return n===null||typeof n!="object"?null:(n=W&&n[W]||n["@@iterator"],typeof n=="function"?n:null)}var oe=Object.assign,D;function z(n){if(D===void 0)try{throw Error()}catch(a){var o=a.stack.trim().match(/\n( *(at )?)/);D=o&&o[1]||""}return` 47`+D+n}var L=!1;function K(n,o){if(!n||L)return"";L=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(ee){var u=ee}Reflect.construct(n,[],o)}else{try{o.call()}catch(ee){u=ee}n.call(o.prototype)}else{try{throw Error()}catch(ee){u=ee}n()}}catch(ee){if(ee&&u&&typeof ee.stack=="string"){for(var m=ee.stack.split(` 48`),w=u.stack.split(` 49`),I=m.length-1,j=w.length-1;1<=I&&0<=j&&m[I]!==w[j];)j--;for(;1<=I&&0<=j;I--,j--)if(m[I]!==w[j]){if(I!==1||j!==1)do if(I--,j--,0>j||m[I]!==w[j]){var H=` 50`+m[I].replace(" at new "," at ");return n.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",n.displayName)),H}while(1<=I&&0<=j);break}}}finally{L=!1,Error.prepareStackTrace=a}return(n=n?n.displayName||n.name:"")?z(n):""}function ve(n){switch(n.tag){case 5:return z(n.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return n=K(n.type,!1),n;case 11:return n=K(n.type.render,!1),n;case 1:return n=K(n.type,!0),n;default:return""}}function Ee(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case F:return"Fragment";case N:return"Portal";case U:return"Profiler";case P:return"StrictMode";case Y:return"Suspense";case te:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case B:return(n.displayName||"Context")+".Consumer";case O:return(n._context.displayName||"Context")+".Provider";case $:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case re:return o=n.displayName||null,o!==null?o:Ee(n.type)||"Memo";case ce:o=n._payload,n=n._init;try{return Ee(n(o))}catch{}}return null}function we(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ee(o);
vendor: 6,553 bytes, line 50
50case 8:return o===P?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function se(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Ce(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Se(n){var o=Ce(n)?"checked":"value",a=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),u=""+n[o];if(!n.hasOwnProperty(o)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var m=a.get,w=a.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return m.call(this)},set:function(I){u=""+I,w.call(this,I)}}),Object.defineProperty(n,o,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(I){u=""+I},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function He(n){n._valueTracker||(n._valueTracker=Se(n))}function xt(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var a=o.getValue(),u="";return n&&(u=Ce(n)?n.checked?"true":"false":n.value),n=u,n!==a?(o.setValue(n),!0):!1}function Ge(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function St(n,o){var a=o.checked;return oe({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked})}function bt(n,o){var a=o.defaultValue==null?"":o.defaultValue,u=o.checked!=null?o.checked:o.defaultChecked;a=se(o.value!=null?o.value:a),n._wrapperState={initialChecked:u,initialValue:a,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Yt(n,o){o=o.checked,o!=null&&A(n,"checked",o,!1)}function Rt(n,o){Yt(n,o);var a=se(o.value),u=o.type;if(a!=null)u==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+a):n.value!==""+a&&(n.value=""+a);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?Je(n,o.type,a):o.hasOwnProperty("defaultValue")&&Je(n,o.type,se(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function Bt(n,o,a){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var u=o.type;if(!(u!=="submit"&&u!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,a||o===n.value||(n.value=o),n.defaultValue=o}a=n.name,a!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,a!==""&&(n.name=a)}function Je(n,o,a){(o!=="number"||Ge(n.ownerDocument)!==n)&&(a==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+a&&(n.defaultValue=""+a))}var Ht=Array.isArray;function Oe(n,o,a,u){if(n=n.options,o){o={};for(var m=0;m<a.length;m++)o["$"+a[m]]=!0;for(a=0;a<n.length;a++)m=o.hasOwnProperty("$"+n[a].value),n[a].selected!==m&&(n[a].selected=m),m&&u&&(n[a].defaultSelected=!0)}else{for(a=""+se(a),o=null,m=0;m<n.length;m++){if(n[m].value===a){n[m].selected=!0,u&&(n[m].defaultSelected=!0);return}o!==null||n[m].disabled||(o=n[m])}o!==null&&(o.selected=!0)}}function Xe(n,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return oe({},o,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function We(n,o){var a=o.value;if(a==null){if(a=o.children,o=o.defaultValue,a!=null){if(o!=null)throw Error(r(92));if(Ht(a)){if(1<a.length)throw Error(r(93));a=a[0]}o=a}o==null&&(o=""),a=o}n._wrapperState={initialValue:se(a)}}function Le(n,o){var a=se(o.value),u=se(o.defaultValue);a!=null&&(a=""+a,a!==n.value&&(n.value=a),o.defaultValue==null&&n.defaultValue!==a&&(n.defaultValue=a)),u!=null&&(n.defaultValue=""+u)}function Ne(n){var o=n.textContent;o===n._wrapperState.initialValue&&o!==""&&o!==null&&(n.value=o)}function Ve(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ut(n,o){return n==null||n==="http://www.w3.org/1999/xhtml"?Ve(o):n==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var qe,Ut=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,a,u,m){MSApp.execUnsafeLocalFunction(function(){return n(o,a,u,m)})}:n}(function(n,o){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=o;else{for(qe=qe||document.createElement("div"),qe.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=qe.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function lt(n,o){if(o){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=o;return}}n.textContent=o}var Ze={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Mt=["Webkit","ms","Moz","O"];Object.keys(Ze).forEach(function(n){Mt.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),Ze[o]=Ze[n]})});function jt(n,o,a){return o==null||typeof o=="boolean"||o===""?"":a||typeof o!="number"||o===0||Ze.hasOwnProperty(n)&&Ze[n]?(""+o).trim():o+"px"}function dt(n,o){n=n.style;for(var a in o)if(o.hasOwnProperty(a)){var u=a.indexOf("--")===0,m=jt(a,o[a],u);a==="float"&&(a="cssFloat"),u?n.setProperty(a,m):n[a]=m}}var fn=oe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cn(n,o){if(o){if(fn[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function hn(n,o){if(n.indexOf("-")===-1)return typeof o.is=="str
50ing";switch(n){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 gt=null;function Tt(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var je=null,Me=null,rt=null;function tt(n){if(n=Ba(n)){if(typeof je!="function")throw Error(r(280));var o=n.stateNode;o&&(o=ac(o),je(n.stateNode,n.type,o))}}function nt(n){Me?rt?rt.push(n):rt=[n]:Me=n}function Ct(){if(Me){var n=Me,o=rt;if(rt=Me=null,tt(n),o)for(n=0;n<o.length;n++)tt(o[n])}}function le(n,o){return n(o)}function M(){}var V=!1;function Z(n,o,a){if(V)return n(o,a);V=!0;try{return le(n,o,a)}finally{V=!1,(Me!==null||rt!==null)&&(M(),Ct())}}function Q(n,o){var a=n.stateNode;if(a===null)return null;var u=ac(a);if(u===null)return null;a=u[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(r(231,o,typeof a));return a}var ie=!1;if(f)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){ie=!0}}),window.addEventListener("test",ae,ae),window.removeEventListener("test",ae,ae)}catch{ie=!1}function de(n,o,a,u,m,w,I,j,H){var ee=Array.prototype.slice.call(arguments,3);try{o.apply(a,ee)}catch(pe){this.onError(pe)}}var ge=!1,fe=null,xe=!1,_e=null,Be={onError:function(n){ge=!0,fe=n}};function Ue(n,o,a,u,m,w,I,j,H){ge=!1,fe=null,de.apply(Be,arguments)}function _t(n,o,a,u,m,w,I,j,H){if(Ue.apply(this,arguments),ge){if(ge){var ee=fe;ge=!1,fe=null}else throw Error(r(198));xe||(xe=!0,_e=ee)}}function mt(n){var o=n,a=n;if(n.alternate)for(;o.return;)o=o.return;else{n=o;do o=n,o.flags&4098&&(a=o.return),n=o.return;while(n)}return o.tag===3?a:null}function yt(n){if(n.tag===13){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function Nt(n){if(mt(n)!==n)throw Error(r(188))}function Wn(n){var o=n.alternate;if(!o){if(o=mt(n),o===null)throw Error(r(188));return o!==n?null:n}for(var a=n,u=o;;){var m=a.return;if(m===null)break;var w=m.alternate;if(w===null){if(u=m.return,u!==null){a=u;continue}break}if(m.child===w.child){for(w=m.child;w;){if(w===a)return Nt(m),n;if(w===u)return Nt(m),o;w=w.sibling}throw Error(r(188))}if(a.return!==u.return)a=m,u=w;else{for(var I=!1,j=m.child;j;){if(j===a){I=!0,a=m,u=w;break}if(j===u){I=!0,u=m,a=w;break}j=j.sibling}if(!I){for(j=w.child;j;){if(j===a){I=!0,a=w,u=m;break}if(j===u){I=!0,u=w,a=m;break}j=j.sibling}if(!I)throw Error(r(189))}}if(a.alternate!==u)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?n:o}function Vn(n){return n=Wn(n),n!==null?ot(n):null}function ot(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var o=ot(n);if(o!==null)return o;n=n.sibling}return null}var Jt=t.unstable_scheduleCallback,Gr=t.unstable_cancelCallback,or=t.unstable_shouldYield,Ir=t.unstable_requestPaint,Dt=t.unstable_now,di=t.unstable_getCurrentPriorityLevel,Ft=t.unstable_ImmediatePriority,pn=t.unstable_UserBlockingPriority,go=t.unstable_NormalPriority,As=t.unstable_LowPriority,Xt=t.unstable_IdlePriority,Tr=null,sr=null;function Md(n){if(sr&&typeof sr.onCommitFiberRoot=="function")try{sr.onCommitFiberRoot(Tr,n,void 0,(n.current.flags&128)===128)}catch{}}var Pr=Math.clz32?Math.clz32:jE,LE=Math.log,ME=Math.LN2;function jE(n){return n>>>=0,n===0?32:31-(LE(n)/ME|0)|0}var Hl=64,Wl=4194304;function ya(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Vl(n,o){var a=n.pendingLanes;if(a===0)return 0;var u=0,m=n.suspendedLanes,w=n.pingedLanes,I=a&268435455;if(I!==0){var j=I&~m;j!==0?u=ya(j):(w&=I,w!==0&&(u=ya(w)))}else I=a&~m,I!==0?u=ya(I):w!==0&&(u=ya(w));if(u===0)return 0;if(o!==0&&o!==u&&!(o&m)&&(m=u&-u,w=o&-o,m>=w||m===16&&(w&4194240)!==0))return o;if(u&4&&(u|=a&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=u;0<o;)a=31-Pr(o),m=1<<a,u|=n[a],o&=~m;return u}function UE(n,o){switch(n){case 1:case 2:case 4:return o+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zE(n,o){for(var a=n.suspendedLanes,u=n.pingedLanes,m=n.expirationTimes,w=n.pendingLanes;0<w;){var I=31-Pr(w),j=1<<I,H=m[I];H===-1?(!(j&a)||j&u)&&(m[I]=UE(j,o)):H<=o&&(n.expiredLanes|=j),w&=~j}}
vendor: 4,291 bytes, line 50
50function jd(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function _p(){var n=Hl;return Hl<<=1,!(Hl&4194240)&&(Hl=64),n}function Ud(n){for(var o=[],a=0;31>a;a++)o.push(n);return o}function va(n,o,a){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-Pr(o),n[o]=a}function $E(n,o){var a=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0<a;){var m=31-Pr(a),w=1<<m;o[m]=0,u[m]=-1,n[m]=-1,a&=~w}}function zd(n,o){var a=n.entangledLanes|=o;for(n=n.entanglements;a;){var u=31-Pr(a),m=1<<u;m&o|n[u]&o&&(n[u]|=o),a&=~m}}var Lt=0;function Ap(n){return n&=-n,1<n?4<n?n&268435455?16:536870912:4:1}var kp,$d,Rp,Ip,Tp,Hd=!1,ql=[],$o=null,Ho=null,Wo=null,wa=new Map,Ea=new Map,Vo=[],HE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Pp(n,o){switch(n){case"focusin":case"focusout":$o=null;break;case"dragenter":case"dragleave":Ho=null;break;case"mouseover":case"mouseout":Wo=null;break;case"pointerover":case"pointerout":wa.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ea.delete(o.pointerId)}}function Sa(n,o,a,u,m,w){return n===null||n.nativeEvent!==w?(n={blockedOn:o,domEventName:a,eventSystemFlags:u,nativeEvent:w,targetContainers:[m]},o!==null&&(o=Ba(o),o!==null&&$d(o)),n):(n.eventSystemFlags|=u,o=n.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),n)}function WE(n,o,a,u,m){switch(o){case"focusin":return $o=Sa($o,n,o,a,u,m),!0;case"dragenter":return Ho=Sa(Ho,n,o,a,u,m),!0;case"mouseover":return Wo=Sa(Wo,n,o,a,u,m),!0;case"pointerover":var w=m.pointerId;return wa.set(w,Sa(wa.get(w)||null,n,o,a,u,m)),!0;case"gotpointercapture":return w=m.pointerId,Ea.set(w,Sa(Ea.get(w)||null,n,o,a,u,m)),!0}return!1}function Np(n){var o=ks(n.target);if(o!==null){var a=mt(o);if(a!==null){if(o=a.tag,o===13){if(o=yt(a),o!==null){n.blockedOn=o,Tp(n.priority,function(){Rp(a)});return}}else if(o===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Kl(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var a=Vd(n.domEventName,n.eventSystemFlags,o[0],n.nativeEvent);if(a===null){a=n.nativeEvent;var u=new a.constructor(a.type,a);gt=u,a.target.dispatchEvent(u),gt=null}else return o=Ba(a),o!==null&&$d(o),n.blockedOn=a,!1;o.shift()}return!0}function Dp(n,o,a){Kl(n)&&a.delete(o)}function VE(){Hd=!1,$o!==null&&Kl($o)&&($o=null),Ho!==null&&Kl(Ho)&&(Ho=null),Wo!==null&&Kl(Wo)&&(Wo=null),wa.forEach(Dp),Ea.forEach(Dp)}function Ca(n,o){n.blockedOn===o&&(n.blockedOn=null,Hd||(Hd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,VE)))}function ba(n){function o(m){return Ca(m,n)}if(0<ql.length){Ca(ql[0],n);for(var a=1;a<ql.length;a++){var u=ql[a];u.blockedOn===n&&(u.blockedOn=null)}}for($o!==null&&Ca($o,n),Ho!==null&&Ca(Ho,n),Wo!==null&&Ca(Wo,n),wa.forEach(o),Ea.forEach(o),a=0;a<Vo.length;a++)u=Vo[a],u.blockedOn===n&&(u.blockedOn=null);for(;0<Vo.length&&(a=Vo[0],a.blockedOn===null);)Np(a),a.blockedOn===null&&Vo.shift()}var fi=T.ReactCurrentBatchConfig,Gl=!0;function qE(n,o,a,u){var m=Lt,w=fi.transition;fi.transition=null;try{Lt=1,Wd(n,o,a,u)}finally{Lt=m,fi.transition=w}}function KE(n,o,a,u){var m=Lt,w=fi.transition;fi.transition=null;try{Lt=4,Wd(n,o,a,u)}finally{Lt=m,fi.transition=w}}function Wd(n,o,a,u){if(Gl){var m=Vd(n,o,a,u);if(m===null)cf(n,o,u,Yl,a),Pp(n,u);else if(WE(m,n,o,a,u))u.stopPropagation();else if(Pp(n,u),o&4&&-1<HE.indexOf(n)){for(;m!==null;){var w=Ba(m);if(w!==null&&kp(w),w=Vd(n,o,a,u),w===null&&cf(n,o,u,Yl,a),w===m)break;m=w}m!==null&&u.stopPropagation()}else cf(n,o,u,null,a)}}var Yl=null;function Vd(n,o,a,u){if(Yl=null,n=Tt(u),n=ks(n),n!==null)if(o=mt(n),o===null)n=null;else if(a=o.tag,a===13){if(n=yt(o),n!==null)return n;n=null}else if(a===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null);return Yl=n,null}
vendor: 10,392 bytes, line 50
50function Fp(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(di()){case Ft:return 1;case pn:return 4;case go:case As:return 16;case Xt:return 536870912;default:return 16}default:return 16}}var qo=null,qd=null,Ql=null;function Op(){if(Ql)return Ql;var n,o=qd,a=o.length,u,m="value"in qo?qo.value:qo.textContent,w=m.length;for(n=0;n<a&&o[n]===m[n];n++);var I=a-n;for(u=1;u<=I&&o[a-u]===m[w-u];u++);return Ql=m.slice(n,1<u?1-u:void 0)}function Jl(n){var o=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&o===13&&(n=13)):n=o,n===10&&(n=13),32<=n||n===13?n:0}function Xl(){return!0}function Bp(){return!1}function ir(n){function o(a,u,m,w,I){this._reactName=a,this._targetInst=m,this.type=u,this.nativeEvent=w,this.target=I,this.currentTarget=null;for(var j in n)n.hasOwnProperty(j)&&(a=n[j],this[j]=a?a(w):w[j]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?Xl:Bp,this.isPropagationStopped=Bp,this}return oe(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Xl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Xl)},persist:function(){},isPersistent:Xl}),o}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kd=ir(hi),_a=oe({},hi,{view:0,detail:0}),GE=ir(_a),Gd,Yd,Aa,Zl=oe({},_a,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jd,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Aa&&(Aa&&n.type==="mousemove"?(Gd=n.screenX-Aa.screenX,Yd=n.screenY-Aa.screenY):Yd=Gd=0,Aa=n),Gd)},movementY:function(n){return"movementY"in n?n.movementY:Yd}}),Lp=ir(Zl),YE=oe({},Zl,{dataTransfer:0}),QE=ir(YE),JE=oe({},_a,{relatedTarget:0}),Qd=ir(JE),XE=oe({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),ZE=ir(XE),eS=oe({},hi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),tS=ir(eS),nS=oe({},hi,{data:0}),Mp=ir(nS),rS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oS={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"},sS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iS(n){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(n):(n=sS[n])?!!o[n]:!1}function Jd(){return iS}var aS=oe({},_a,{key:function(n){if(n.key){var o=rS[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=Jl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?oS[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jd,charCode:function(n){return n.type==="keypress"?Jl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Jl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),lS=ir(aS),cS=oe({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jp=ir(cS),uS=oe({},_a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jd}),dS=ir(uS),fS=oe({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),hS=ir(fS),pS=oe({},Zl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),mS=ir(pS),xS=[9,13,27,32],Xd=f&&"CompositionEvent"in window,ka=null;f&&"documentMode"in document&&(ka=document.documentMode);var gS=f&&"TextEvent"in window&&!ka,Up=f&&(!Xd||ka&&8<ka&&11>=ka),zp=" ",$p=!1;function Hp(n,o){switch(n){case"keyup":return xS.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wp(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var pi=!1;function yS(n,o){switch(n){case"compositionend":return Wp(o);case"keypress":return o.which!==32?null:($p=!0,zp);case"textInput":return n=o.data,n===zp&&$p?null:n;default:return null}}function vS(n,o){if(pi)return n==="compositionend"||!Xd&&Hp(n,o)?(n=Op(),Ql=qd=qo=null,pi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Up&&o.locale!=="ko"?null:o.data;default:return null}}var wS={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 Vp(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o==="input"?!!wS[n.type]:o==="textarea"}function qp(n,o,a,u){nt(u),o=oc(o,"onChange"),0<o.length&&(a=new Kd("onChange","change",null,a,u),n.push({event:a,listeners:o}))}var Ra=null,Ia=null;function ES(n){um(n,0)}function ec(n){var o=vi(n);if(xt(o))return n}function SS(n,o){if(n==="change")return o}var Kp=!1;if(f){var Zd;if(f){var ef="oninput"in document;if(!ef){var Gp=document.createElement("div");Gp.setAttribute("oninput","return;"),ef=typeof Gp.oninput=="function"}Zd=ef}else Zd=!1;Kp=Zd&&(!document.documentMode||9<document.documentMode)}function Yp(){Ra&&(Ra.detachEvent("onpropertychange",Qp),Ia=Ra=null)}function Qp(n){if(n.propertyName==="value"&&ec(Ia)){var o=[];qp(o,Ia,n,Tt(n)),Z(ES,o)}}function CS(n,o,a){n==="focusin"?(Yp(),Ra=o,Ia=a,Ra.attachEvent("onpropertychange",Qp)):n==="focusout"&&Yp()}function bS(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ec(Ia)}function _S(n,o){if(n==="click")return ec(o)}function AS(n,o){if(n==="input"||n==="change")return ec(o)}function kS(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var Nr=typeof Object.is=="function"?Object.is:kS;function Ta(n,o){if(Nr(n,o))return!0;if(typeof n!="object"||n===null||typeof o!="object"||o===null)return!1;var a=Object.keys(n),u=Object.keys(o);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var m=a[u];if(!h.call(o,m)||!Nr(n[m],o[m]))return!1}return!0}function Jp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Xp(n,o){var a=Jp(n);n=0;for(var u;a;){if(a.nodeType===3){if(u=n+a.textContent.length,n<=o&&u>=o)return{node:a,offset:o-n};n=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Jp(a)}}function Zp(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?Zp(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function em(){for(var n=window,o=Ge();o instanceof n.HTMLIFrameElement;){try{var a=typeof o.contentWindow.location.href=="string"}catch{a=!1}if(a)n=o.contentWindow;else break;o=Ge(n.document)}return o}function tf(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function RS(n){var o=em(),a=n.focusedElem,u=n.selectionRange;if(o!==a&&a&&a.ownerDocument&&Zp(a.ownerDocument.documentElement,a)){if(u!==null&&tf(a)){if(o=u.start,n=u.end,n===void 0&&(n=o),"selectionStart"in a)a.selectionStart=o,a.selectionEnd=Math.min(n,a.value.length);else if(n=(o=a.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var m=a.textContent.length,w=Math.min(u.start,m);u=u.end===void 0?w:Math.min(u.end,m),!n.extend&&w>u&&(m=u,u=w,w=m),m=Xp(a,w);var I=Xp(a,u);m&&I&&(n.rangeCount!==1||n.anchorNode!==m.node||n.anchorOffset!==m.offset||n.focusNode!==I.node||n.focusOffset!==I.offset)&&(o=o.createRange(),o.setStart(m.node,m.offset),n.removeAllRanges(),w>u?(n.addRange(o),n.extend(I.node,I.offset)):(o.setEnd(I.node,I.offset),n.addRange(o)))}}for(o=[],n=a;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<o.length;a++)n=o[a],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var IS=f&&"documentMode"in document&&11>=document.documentMode,mi=null,nf=null,Pa=null,rf=!1;function tm(n,o,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;rf||mi==null||mi!==Ge(u)||(u=mi,"selectionStart"in u&&tf(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focu
vendor: 7,163 bytes, line 50
50sNode:u.focusNode,focusOffset:u.focusOffset}),Pa&&Ta(Pa,u)||(Pa=u,u=oc(nf,"onSelect"),0<u.length&&(o=new Kd("onSelect","select",null,o,a),n.push({event:o,listeners:u}),o.target=mi)))}function tc(n,o){var a={};return a[n.toLowerCase()]=o.toLowerCase(),a["Webkit"+n]="webkit"+o,a["Moz"+n]="moz"+o,a}var xi={animationend:tc("Animation","AnimationEnd"),animationiteration:tc("Animation","AnimationIteration"),animationstart:tc("Animation","AnimationStart"),transitionend:tc("Transition","TransitionEnd")},of={},nm={};f&&(nm=document.createElement("div").style,"AnimationEvent"in window||(delete xi.animationend.animation,delete xi.animationiteration.animation,delete xi.animationstart.animation),"TransitionEvent"in window||delete xi.transitionend.transition);function nc(n){if(of[n])return of[n];if(!xi[n])return n;var o=xi[n],a;for(a in o)if(o.hasOwnProperty(a)&&a in nm)return of[n]=o[a];return n}var rm=nc("animationend"),om=nc("animationiteration"),sm=nc("animationstart"),im=nc("transitionend"),am=new Map,lm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ko(n,o){am.set(n,o),l(o,[n])}for(var sf=0;sf<lm.length;sf++){var af=lm[sf],TS=af.toLowerCase(),PS=af[0].toUpperCase()+af.slice(1);Ko(TS,"on"+PS)}Ko(rm,"onAnimationEnd"),Ko(om,"onAnimationIteration"),Ko(sm,"onAnimationStart"),Ko("dblclick","onDoubleClick"),Ko("focusin","onFocus"),Ko("focusout","onBlur"),Ko(im,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Na="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(" "),NS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Na));function cm(n,o,a){var u=n.type||"unknown-event";n.currentTarget=a,_t(u,o,void 0,n),n.currentTarget=null}function um(n,o){o=(o&4)!==0;for(var a=0;a<n.length;a++){var u=n[a],m=u.event;u=u.listeners;e:{var w=void 0;if(o)for(var I=u.length-1;0<=I;I--){var j=u[I],H=j.instance,ee=j.currentTarget;if(j=j.listener,H!==w&&m.isPropagationStopped())break e;cm(m,j,ee),w=H}else for(I=0;I<u.length;I++){if(j=u[I],H=j.instance,ee=j.currentTarget,j=j.listener,H!==w&&m.isPropagationStopped())break e;cm(m,j,ee),w=H}}}if(xe)throw n=_e,xe=!1,_e=null,n}function qt(n,o){var a=o[mf];a===void 0&&(a=o[mf]=new Set);var u=n+"__bubble";a.has(u)||(dm(o,n,2,!1),a.add(u))}function lf(n,o,a){var u=0;o&&(u|=4),dm(a,n,u,o)}var rc="_reactListening"+Math.random().toString(36).slice(2);function Da(n){if(!n[rc]){n[rc]=!0,s.forEach(function(a){a!=="selectionchange"&&(NS.has(a)||lf(a,!1,n),lf(a,!0,n))});var o=n.nodeType===9?n:n.ownerDocument;o===null||o[rc]||(o[rc]=!0,lf("selectionchange",!1,o))}}function dm(n,o,a,u){switch(Fp(o)){case 1:var m=qE;break;case 4:m=KE;break;default:m=Wd}a=m.bind(null,o,a,n),m=void 0,!ie||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(m=!0),u?m!==void 0?n.addEventListener(o,a,{capture:!0,passive:m}):n.addEventListener(o,a,!0):m!==void 0?n.addEventListener(o,a,{passive:m}):n.addEventListener(o,a,!1)}function cf(n,o,a,u,m){var w=u;if(!(o&1)&&!(o&2)&&u!==null)e:for(;;){if(u===null)return;var I=u.tag;if(I===3||I===4){var j=u.stateNode.containerInfo;if(j===m||j.nodeType===8&&j.parentNode===m)break;if(I===4)for(I=u.return;I!==null;){var H=I.tag;if((H===3||H===4)&&(H=I.stateNode.containerInfo,H===m||H.nodeType===8&&H.parentNode===m))return;I=I.return}for(;j!==null;){if(I=ks(j),I===null)return;if(H=I.tag,H===5||H===6){u=w=I;continue e}j=j.parentNode}}u=u.return}Z(function(){var ee=w,pe=Tt(a),me=[];e:{var he=am.get(n);if(he!==void 0){var be=Kd,Ie=n;switch(n){case"keypress":if(Jl(a)===0)break e;case"keydown":case"keyup":be=lS;break;case"focusin":Ie="focus",be=Qd;break;case"focusout":Ie="blur",be=Qd;break;case"beforeblur":case"afterblur":be=Qd;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":be=Lp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":be=QE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":be=dS;break;case rm:case om:case sm:be=ZE;break;case im:be=hS;break;case"scroll":be=GE;break;case"wheel":be=mS;break;case"copy":case"cut":case"paste":be=tS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":be=jp}var De=(o&4)!==0,sn=!De&&n==="scroll",J=De?he!==null?he+"Capture":null:he;De=[];for(var q=ee,X;q!==null;){X=q;var ye=X.stateNode;if(X.tag===5&&ye!==null&&(X=ye,J!==null&&(ye=Q(q,J),ye!=null&&De.push(Fa(q,ye,X)))),sn)break;q=q.return}0<De.length&&(he=new be(he,Ie,null,a,pe),me.push({event:he,listeners:De}))}}if(!(o&7)){e:{if(he=n==="mouseover"||n==="pointerover",be=n==="mouseout"||n==="pointerout",he&&a!==gt&&(Ie=a.relatedTarget||a.fromElement)&&(ks(Ie)||Ie[yo]))break e;if((be||he)&&(he=pe.window===pe?pe:(he=pe.ownerDocument)?he.defaultView||he.parentWindow:window,be?(Ie=a.relatedTarget||a.toElement,be=ee,Ie=Ie?ks(Ie):null,Ie!==null&&(sn=mt(Ie),Ie!==sn||Ie.tag!==5&&Ie.tag!==6)&&(Ie=null)):(be=null,Ie=ee),be!==Ie)){if(De=Lp,ye="onMouseLeave",J="onMouseEnter",q="mouse",(n==="pointerout"||n==="pointerover")&&(De=jp,ye="onPointerLeave",J="onPointerEnter",q="pointer"),sn=be==null?he:vi(be),X=Ie==null?he:vi(Ie),he=new De(ye,q+"leave",be,a,pe),he.target=sn,he.relatedTarget=X,ye=null,ks(pe)===ee&&(De=new De(J,q+"enter",Ie,a,pe),De.target=X,De.relatedTarget=sn,ye=De),sn=ye,be&&Ie)t:{for(De=be,J=Ie,q=0,X=De;X;X=gi(X))q++;for(X=0,ye=J;ye;ye=gi(ye))X++;for(;0<q-X;)De=gi(De),q--;for(;0<X-q;)J=gi(J),X--;for(;q--;){if(De===J||J!==null&&De===J.alternate)break t;De=gi(De),J=gi(J)}De=null}else De=null;be!==null&&fm(me,he,be,De,!1),Ie!==null&&sn!==null&&fm(me,sn,Ie,De,!0)}}
vendor: 7,040 bytes, lines 50-51
50e:{if(he=ee?vi(ee):window,be=he.nodeName&&he.nodeName.toLowerCase(),be==="select"||be==="input"&&he.type==="file")var Fe=SS;else if(Vp(he))if(Kp)Fe=AS;else{Fe=bS;var ze=CS}else(be=he.nodeName)&&be.toLowerCase()==="input"&&(he.type==="checkbox"||he.type==="radio")&&(Fe=_S);if(Fe&&(Fe=Fe(n,ee))){qp(me,Fe,a,pe);break e}ze&&ze(n,he,ee),n==="focusout"&&(ze=he._wrapperState)&&ze.controlled&&he.type==="number"&&Je(he,"number",he.value)}switch(ze=ee?vi(ee):window,n){case"focusin":(Vp(ze)||ze.contentEditable==="true")&&(mi=ze,nf=ee,Pa=null);break;case"focusout":Pa=nf=mi=null;break;case"mousedown":rf=!0;break;case"contextmenu":case"mouseup":case"dragend":rf=!1,tm(me,a,pe);break;case"selectionchange":if(IS)break;case"keydown":case"keyup":tm(me,a,pe)}var $e;if(Xd)e:{switch(n){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else pi?Hp(n,a)&&(Ye="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(Ye="onCompositionStart");Ye&&(Up&&a.locale!=="ko"&&(pi||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&pi&&($e=Op()):(qo=pe,qd="value"in qo?qo.value:qo.textContent,pi=!0)),ze=oc(ee,Ye),0<ze.length&&(Ye=new Mp(Ye,n,null,a,pe),me.push({event:Ye,listeners:ze}),$e?Ye.data=$e:($e=Wp(a),$e!==null&&(Ye.data=$e)))),($e=gS?yS(n,a):vS(n,a))&&(ee=oc(ee,"onBeforeInput"),0<ee.length&&(pe=new Mp("onBeforeInput","beforeinput",null,a,pe),me.push({event:pe,listeners:ee}),pe.data=$e))}um(me,o)})}function Fa(n,o,a){return{instance:n,listener:o,currentTarget:a}}function oc(n,o){for(var a=o+"Capture",u=[];n!==null;){var m=n,w=m.stateNode;m.tag===5&&w!==null&&(m=w,w=Q(n,a),w!=null&&u.unshift(Fa(n,w,m)),w=Q(n,o),w!=null&&u.push(Fa(n,w,m))),n=n.return}return u}function gi(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function fm(n,o,a,u,m){for(var w=o._reactName,I=[];a!==null&&a!==u;){var j=a,H=j.alternate,ee=j.stateNode;if(H!==null&&H===u)break;j.tag===5&&ee!==null&&(j=ee,m?(H=Q(a,w),H!=null&&I.unshift(Fa(a,H,j))):m||(H=Q(a,w),H!=null&&I.push(Fa(a,H,j)))),a=a.return}I.length!==0&&n.push({event:o,listeners:I})}var DS=/\r\n?/g,FS=/\u0000|\uFFFD/g;function hm(n){return(typeof n=="string"?n:""+n).replace(DS,` 51`).replace(FS,"")}function sc(n,o,a){if(o=hm(o),hm(n)!==o&&a)throw Error(r(425))}function ic(){}var uf=null,df=null;function ff(n,o){return n==="textarea"||n==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var hf=typeof setTimeout=="function"?setTimeout:void 0,OS=typeof clearTimeout=="function"?clearTimeout:void 0,pm=typeof Promise=="function"?Promise:void 0,BS=typeof queueMicrotask=="function"?queueMicrotask:typeof pm<"u"?function(n){return pm.resolve(null).then(n).catch(LS)}:hf;function LS(n){setTimeout(function(){throw n})}function pf(n,o){var a=o,u=0;do{var m=a.nextSibling;if(n.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(u===0){n.removeChild(m),ba(o);return}u--}else a!=="$"&&a!=="$?"&&a!=="$!"||u++;a=m}while(a);ba(o)}function Go(n){for(;n!=null;n=n.nextSibling){var o=n.nodeType;if(o===1||o===3)break;if(o===8){if(o=n.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return n}function mm(n){n=n.previousSibling;for(var o=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"){if(o===0)return n;o--}else a==="/$"&&o++}n=n.previousSibling}return null}var yi=Math.random().toString(36).slice(2),Yr="__reactFiber$"+yi,Oa="__reactProps$"+yi,yo="__reactContainer$"+yi,mf="__reactEvents$"+yi,MS="__reactListeners$"+yi,jS="__reactHandles$"+yi;function ks(n){var o=n[Yr];if(o)return o;for(var a=n.parentNode;a;){if(o=a[yo]||a[Yr]){if(a=o.alternate,o.child!==null||a!==null&&a.child!==null)for(n=mm(n);n!==null;){if(a=n[Yr])return a;n=mm(n)}return o}n=a,a=n.parentNode}return null}function Ba(n){return n=n[Yr]||n[yo],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function vi(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function ac(n){return n[Oa]||null}var xf=[],wi=-1;function Yo(n){return{current:n}}function Kt(n){0>wi||(n.current=xf[wi],xf[wi]=null,wi--)}function Wt(n,o){wi++,xf[wi]=n.current,n.current=o}var Qo={},Pn=Yo(Qo),qn=Yo(!1),Rs=Qo;function Ei(n,o){var a=n.type.contextTypes;if(!a)return Qo;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===o)return u.__reactInternalMemoizedMaskedChildContext;var m={},w;for(w in a)m[w]=o[w];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=m),m}function Kn(n){return n=n.childContextTypes,n!=null}function lc(){Kt(qn),Kt(Pn)}function xm(n,o,a){if(Pn.current!==Qo)throw Error(r(168));Wt(Pn,o),Wt(qn,a)}function gm(n,o,a){var u=n.stateNode;if(o=o.childContextTypes,typeof u.getChildContext!="function")return a;u=u.getChildContext();for(var m in u)if(!(m in o))throw Error(r(108,we(n)||"Unknown",m));return oe({},a,u)}function cc(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Qo,Rs=Pn.current,Wt(Pn,n),Wt(qn,qn.current),!0}function ym(n,o,a){var u=n.stateNode;if(!u)throw Error(r(169));a?(n=gm(n,o,Rs),u.__reactInternalMemoizedMergedChildContext=n,Kt(qn),Kt(Pn),Wt(Pn,n)):Kt(qn),Wt(qn,a)}var vo=null,uc=!1,gf=!1;function vm(n){vo===null?vo=[n]:vo.push(n)}function US(n){uc=!0,vm(n)}function Jo(){if(!gf&&vo!==null){gf=!0;var n=0,o=Lt;try{var a=vo;for(Lt=1;n<a.length;n++){var u=a[n];do u=u(!0);while(u!==null)}vo=null,uc=!1}catch(m){throw vo!==null&&(vo=vo.slice(n+1)),Jt(Ft,Jo),m}finally{Lt=o,gf=!1}}return null}var Si=[],Ci=0,dc=null,fc=0,mr=[],xr=0,Is=null,wo=1,Eo="";function Ts(n,o){Si[Ci++]=fc,Si[Ci++]=dc,dc=n,fc=o}function wm(n,o,a){mr[xr++]=wo,mr[xr++]=Eo,mr[xr++]=Is,Is=n;var u=wo;n=Eo;var m=32-Pr(u)-1;u&=~(1<<m),a+=1;var w=32-Pr(o)+m;if(30<w){var I=m-m%5;w=(u&(1<<I)-1).toString(32),u>>=I,m-=I,wo=1<<32-Pr(o)+m|a<<m|u,Eo=w+n}else wo=1<<w|a<<m|u,Eo=n}function yf(n){n.return!==null&&(Ts(n,1),wm(n,1,0))}function vf(n){for(;n===dc;)dc=Si[--Ci],Si[Ci]=null,fc=Si[--Ci],Si[Ci]=null;for(;n===Is;)Is=mr[--xr],mr[xr]=null,Eo=mr[--xr],mr[xr]=null,wo=mr[--xr],mr[xr]=null}var ar=null,lr=null,Qt=!1,Dr=null;function Em(n,o){var a=wr(5,null,null,0);a.elementType="DELETED",a.stateNode=o,a.return=n,o=n.deletions,o===null?(n.deletions=[a],n.flags|=16):o.push(a)}function Sm(n,o){switch(n.tag){case 5:var a=n.type;return o=o.nodeType!==1||a.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(n.stateNode=o,ar=n,lr=Go(o.firstChild),!0):!1;case 6:return o=n.pendingProps===""||o.nodeType!==3?null:o,o!==null?(n.stateNode=o,ar=n,lr=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(a=Is!==null?{id:wo,overflow:Eo}:null,n.memoizedState={dehydrated:o,treeContext:a,retryLane:1073741824},a=wr(18,null,null,0),a.stateNode=o,a.return=n,n.child=a,ar=n,lr=null,!0):!1;default:return!1}}function wf(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Ef(n){if(Qt){var o=lr;if(o){var a=o;
vendor: 14,941 bytes, line 51
51if(!Sm(n,o)){if(wf(n))throw Error(r(418));o=Go(a.nextSibling);var u=ar;o&&Sm(n,o)?Em(u,a):(n.flags=n.flags&-4097|2,Qt=!1,ar=n)}}else{if(wf(n))throw Error(r(418));n.flags=n.flags&-4097|2,Qt=!1,ar=n}}}function Cm(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;ar=n}function hc(n){if(n!==ar)return!1;if(!Qt)return Cm(n),Qt=!0,!1;var o;if((o=n.tag!==3)&&!(o=n.tag!==5)&&(o=n.type,o=o!=="head"&&o!=="body"&&!ff(n.type,n.memoizedProps)),o&&(o=lr)){if(wf(n))throw bm(),Error(r(418));for(;o;)Em(n,o),o=Go(o.nextSibling)}if(Cm(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,o=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"){if(o===0){lr=Go(n.nextSibling);break e}o--}else a!=="$"&&a!=="$!"&&a!=="$?"||o++}n=n.nextSibling}lr=null}}else lr=ar?Go(n.stateNode.nextSibling):null;return!0}function bm(){for(var n=lr;n;)n=Go(n.nextSibling)}function bi(){lr=ar=null,Qt=!1}function Sf(n){Dr===null?Dr=[n]:Dr.push(n)}var zS=T.ReactCurrentBatchConfig;function La(n,o,a){if(n=a.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(r(309));var u=a.stateNode}if(!u)throw Error(r(147,n));var m=u,w=""+n;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===w?o.ref:(o=function(I){var j=m.refs;I===null?delete j[w]:j[w]=I},o._stringRef=w,o)}if(typeof n!="string")throw Error(r(284));if(!a._owner)throw Error(r(290,n))}return n}function pc(n,o){throw n=Object.prototype.toString.call(o),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":n))}function _m(n){var o=n._init;return o(n._payload)}function Am(n){function o(J,q){if(n){var X=J.deletions;X===null?(J.deletions=[q],J.flags|=16):X.push(q)}}function a(J,q){if(!n)return null;for(;q!==null;)o(J,q),q=q.sibling;return null}function u(J,q){for(J=new Map;q!==null;)q.key!==null?J.set(q.key,q):J.set(q.index,q),q=q.sibling;return J}function m(J,q){return J=ss(J,q),J.index=0,J.sibling=null,J}function w(J,q,X){return J.index=X,n?(X=J.alternate,X!==null?(X=X.index,X<q?(J.flags|=2,q):X):(J.flags|=2,q)):(J.flags|=1048576,q)}function I(J){return n&&J.alternate===null&&(J.flags|=2),J}function j(J,q,X,ye){return q===null||q.tag!==6?(q=h0(X,J.mode,ye),q.return=J,q):(q=m(q,X),q.return=J,q)}function H(J,q,X,ye){var Fe=X.type;return Fe===F?pe(J,q,X.props.children,ye,X.key):q!==null&&(q.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===ce&&_m(Fe)===q.type)?(ye=m(q,X.props),ye.ref=La(J,q,X),ye.return=J,ye):(ye=Mc(X.type,X.key,X.props,null,J.mode,ye),ye.ref=La(J,q,X),ye.return=J,ye)}function ee(J,q,X,ye){return q===null||q.tag!==4||q.stateNode.containerInfo!==X.containerInfo||q.stateNode.implementation!==X.implementation?(q=p0(X,J.mode,ye),q.return=J,q):(q=m(q,X.children||[]),q.return=J,q)}function pe(J,q,X,ye,Fe){return q===null||q.tag!==7?(q=Ms(X,J.mode,ye,Fe),q.return=J,q):(q=m(q,X),q.return=J,q)}function me(J,q,X){if(typeof q=="string"&&q!==""||typeof q=="number")return q=h0(""+q,J.mode,X),q.return=J,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case k:return X=Mc(q.type,q.key,q.props,null,J.mode,X),X.ref=La(J,null,q),X.return=J,X;case N:return q=p0(q,J.mode,X),q.return=J,q;case ce:var ye=q._init;return me(J,ye(q._payload),X)}if(Ht(q)||ne(q))return q=Ms(q,J.mode,X,null),q.return=J,q;pc(J,q)}return null}function he(J,q,X,ye){var Fe=q!==null?q.key:null;if(typeof X=="string"&&X!==""||typeof X=="number")return Fe!==null?null:j(J,q,""+X,ye);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case k:return X.key===Fe?H(J,q,X,ye):null;case N:return X.key===Fe?ee(J,q,X,ye):null;case ce:return Fe=X._init,he(J,q,Fe(X._payload),ye)}if(Ht(X)||ne(X))return Fe!==null?null:pe(J,q,X,ye,null);pc(J,X)}return null}function be(J,q,X,ye,Fe){if(typeof ye=="string"&&ye!==""||typeof ye=="number")return J=J.get(X)||null,j(q,J,""+ye,Fe);if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case k:return J=J.get(ye.key===null?X:ye.key)||null,H(q,J,ye,Fe);case N:return J=J.get(ye.key===null?X:ye.key)||null,ee(q,J,ye,Fe);case ce:var ze=ye._init;return be(J,q,X,ze(ye._payload),Fe)}if(Ht(ye)||ne(ye))return J=J.get(X)||null,pe(q,J,ye,Fe,null);pc(q,ye)}return null}function Ie(J,q,X,ye){for(var Fe=null,ze=null,$e=q,Ye=q=0,Sn=null;$e!==null&&Ye<X.length;Ye++){$e.index>Ye?(Sn=$e,$e=null):Sn=$e.sibling;var It=he(J,$e,X[Ye],ye);if(It===null){$e===null&&($e=Sn);break}n&&$e&&It.alternate===null&&o(J,$e),q=w(It,q,Ye),ze===null?Fe=It:ze.sibling=It,ze=It,$e=Sn}if(Ye===X.length)return a(J,$e),Qt&&Ts(J,Ye),Fe;if($e===null){for(;Ye<X.length;Ye++)$e=me(J,X[Ye],ye),$e!==null&&(q=w($e,q,Ye),ze===null?Fe=$e:ze.sibling=$e,ze=$e);return Qt&&Ts(J,Ye),Fe}for($e=u(J,$e);Ye<X.length;Ye++)Sn=be($e,J,Ye,X[Ye],ye),Sn!==null&&(n&&Sn.alternate!==null&&$e.delete(Sn.key===null?Ye:Sn.key),q=w(Sn,q,Ye),ze===null?Fe=Sn:ze.sibling=Sn,ze=Sn);return n&&$e.forEach(function(is){return o(J,is)}),Qt&&Ts(J,Ye),Fe}function De(J,q,X,ye){var Fe=ne(X);if(typeof Fe!="function")throw Error(r(150));if(X=Fe.call(X),X==null)throw Error(r(151));for(var ze=Fe=null,$e=q,Ye=q=0,Sn=null,It=X.next();$e!==null&&!It.done;Ye++,It=X.next()){$e.index>Ye?(Sn=$e,$e=null):Sn=$e.sibling;var is=he(J,$e,It.value,ye);if(is===null){$e===null&&($e=Sn);break}n&&$e&&is.alternate===null&&o(J,$e),q=w(is,q,Ye),ze===null?Fe=is:ze.sibling=is,ze=is,$e=Sn}if(It.done)return a(J,$e),Qt&&Ts(J,Ye),Fe;if($e===null){for(;!It.done;Ye++,It=X.next())It=me(J,It.value,ye),It!==null&&(q=w(It,q,Ye),ze===null?Fe=It:ze.sibling=It,ze=It);return Qt&&Ts(J,Ye),Fe}for($e=u(J,$e);!It.done;Ye++,It=X.next())It=be($e,J,Ye,It.value,ye),It!==null&&(n&&It.alternate!==null&&$e.delete(It.key===null?Ye:It.key),q=w(It,q,Ye),ze===null?Fe=It:ze.sibling=It,ze=It);return n&&$e.forEach(function(v2){return o(J,v2)}),Qt&&Ts(J,Ye),Fe}function sn(J,q,X,ye){if(typeof X=="object"&&X!==null&&X.type===F&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case k:e:{for(var Fe=X.key,ze=q;ze!==null;){if(ze.key===Fe){if(Fe=X.type,Fe===F){if(ze.tag===7){a(J,ze.sibling),q=m(ze,X.props.children),q.return=J,J=q;break e}}else if(ze.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===ce&&_m(Fe)===ze.type){a(J,ze.sibling),q=m(ze,X.props),q.ref=La(J,ze,X),q.return=J,J=q;break e}a(J,ze);break}else o(J,ze);ze=ze.sibling}X.type===F?(q=Ms(X.props.children,J.mode,ye,X.key),q.return=J,J=q):(ye=Mc(X.type,X.key,X.props,null,J.mode,ye),ye.ref=La(J,q,X),ye.return=J,J=ye)}return I(J);case N:e:{for(ze=X.key;q!==null;){if(q.key===ze)if(q.tag===4&&q.stateNode.containerInfo===X.containerInfo&&q.stateNode.implementation===X.implementation){a(J,q.sibling),q=m(q,X.children||[]),q.return=J,J=q;break e}else{a(J,q);break}else o(J,q);q=q.sibling}q=p0(X,J.mode,ye),q.return=J,J=q}return I(J);case ce:return ze=X._init,sn(J,q,ze(X._payload),ye)}if(Ht(X))return Ie(J,q,X,ye);if(ne(X))return De(J,q,X,ye);pc(J,X)}return typeof X=="string"&&X!==""||typeof X=="number"?(X=""+X,q!==null&&q.tag===6?(a(J,q.sibling),q=m(q,X),q.return=J,J=q):(a(J,q),q=h0(X,J.mode,ye),q.return=J,J=q),I(J)):a(J,q)}return sn}var _i=Am(!0),km=Am(!1),mc=Yo(null),xc=null,Ai=null,Cf=null;function bf(){Cf=Ai=xc=null}function _f(n){var o=mc.current;Kt(mc),n._currentValue=o}function Af(n,o,a){for(;n!==null;){var u=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,u!==null&&(u.childLanes|=o)):u!==null&&(u.childLanes&o)!==o&&(u.childLanes|=o),n===a)break;n=n.return}}function ki(n,o){xc=n,Cf=Ai=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&o&&(Gn=!0),n.firstContext=null)}function gr(n){var o=n._currentValue;if(Cf!==n)if(n={context:n,memoizedValue:o,next:null},Ai===null){if(xc===null)throw Error(r(308));Ai=n,xc.dependencies={lanes:0,firstContext:n}}else Ai=Ai.next=n;return o}var Ps=null;function kf(n){Ps===null?Ps=[n]:Ps.push(n)}function Rm(n,o,a,u){var m=o.interleaved;return m===null?(a.next=a,kf(o)):(a.next=m.next,m.next=a),o.interleaved=a,So(n,u)}function So(n,o){n.lanes|=o;var a=n.alternate;for(a!==null&&(a.lanes|=o),a=n,n=n.return;n!==null;)n.childLanes|=o,a=n.alternate,a!==null&&(a.childLanes|=o),a=n,n=n.return;return a.tag===3?a.stateNode:null}var Xo=!1;function Rf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Im(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Co(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function Zo(n,o,a){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,At&2){var m=u.pending;return m===null?o.next=o:(o.next=m.next,m.next=o),u.pending=o,So(n,a)}return m=u.interleaved,m===null?(o.next=o,kf(u)):(o.next=m.next,m.next=o),u.interleaved=o,So(n,a)}function gc(n,o,a){if(o=o.updateQueue,o!==null&&(o=o.shared,(a&4194240)!==0)){var u=o.lanes;u&=n.pendingLanes,a|=u,o.lanes=a,zd(n,a)}}function Tm(n,o){var a=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var m=null,w=null;if(a=a.firstBaseUpdate,a!==null){do{var I={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};w===null?m=w=I:w=w.next=I,a=a.next}while(a!==null);w===null?m=w=o:w=w.next=o}else m=w=o;a={baseState:u.baseState,firstBaseUpdate:m,lastBaseUpdate:w,shared:u.shared,effects:u.effects},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=o:n.next=o,a.lastBaseUpdate=o}function yc(n,o,a,u){var m=n.updateQueue;Xo=!1;var w=m.firstBaseUpdate,I=m.lastBaseUpdate,j=m.shared.pending;if(j!==null){m.shared.pending=null;var H=j,ee=H.next;H.next=null,I===null?w=ee:I.next=ee,I=H;var pe=n.alternate;pe!==null&&(pe=pe.updateQueue,j=pe.lastBaseUpdate,j!==I&&(j===null?pe.firstBaseUpdate=ee:j.next=ee,pe.lastBaseUpdate=H))}if(w!==null){var me=m.baseState;I=0,pe=ee=H=null,j=w;do{var he=j.lane,be=j.eventTime;if((u&he)===he){pe!==null&&(pe=pe.next={eventTime:be,lane:0,tag:j.tag,payload:j.payload,callback:j.callback,next:null});e:{var Ie=n,De=j;switch(he=o,be=a,De.tag){case 1:if(Ie=De.payload,typeof Ie=="function"){me=Ie.call(be,me,he);break e}me=Ie;break e;case 3:Ie.flags=Ie.flags&-65537|128;case 0:if(Ie=De.payload,he=typeof Ie=="function"?Ie.call(be,me,he):Ie,he==null)break e;me=oe({},me,he);break e;case 2:Xo=!0}}j.callback!==null&&j.lane!==0&&(n.flags|=64,he=m.effects,he===null?m.effects=[j]:he.push(j))}else be={eventTime:be,lane:he,tag:j.tag,payload:j.payload,callback:j.callback,next:null},pe===null?(ee=pe=be,H=me):pe=pe.next=be,I|=he;if(j=j.next,j===null){if(j=m.shared.pending,j===null)break;he=j,j=he.next,he.next=null,m.lastBaseUpdate=he,m.shared.pending=null}}while(!0);if(pe===null&&(H=me),m.baseState=H,m.firstBaseUpdate=ee,m.lastBaseUpdate=pe,o=m.shared.interleaved,o!==null){m=o;do I|=m.lane,m=m.next;while(m!==o)}else w===null&&(m.shared.lanes=0);Fs|=I,n.lanes=I,n.memoizedState=me}}function Pm(n,o,a){if(n=o.effects,o.effects=null,n!==null)for(o=0;o<n.length;o++){var u=n[o],m=u.callback;if(m!==null){if(u.callback=null,u=a,typeof m!="function")throw Error(r(191,m));m.call(u)}}}var Ma={},Qr=Yo(Ma),ja=Yo(Ma),Ua=Yo(Ma);function Ns(n){if(n===Ma)throw Error(r(174));return n}function If(n,o){switch(Wt(Ua,o),Wt(ja,n),Wt(Qr,Ma),n=o.nodeType,n){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:ut(null,"");break;default:n=n===8?o.parentNode:o,o=n.namespaceURI||null,n=n.tagName,o=ut(o,n)}Kt(Qr),Wt(Qr,o)}function Ri(){Kt(Qr),Kt(ja),Kt(Ua)}function Nm(n){Ns(Ua.current);var o=Ns(Qr.current),a=ut(o,n.type);o!==a&&(Wt(ja,n),Wt(Qr,a))}function Tf(n){ja.current===n&&(Kt(Qr),Kt(ja))}var Zt=Yo(0);function vc(n){for(var o=n;o!==null;){if(o.tag===13){var a=o.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if(o.flags&128)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Pf=[];function Nf(){for(var n=0;n<Pf.length;n++)Pf[n]._workInProgressVersionPrimary=null;Pf.length=0}var wc=T.ReactCurrentDispatcher,Df=T.ReactCurrentBatchConfig,Ds=0,en=null,mn=null,wn=null,Ec=!1,za=!1,$a=0,$S=0;function Nn(){throw Error(r(321))}function Ff(n,o){if(o===null)return!1;for(var a=0;a<o.length&&a<n.length;a++)if(!Nr(n[a],o[a]))return!1;return!0}function Of(n,o,a,u,m,w){if(Ds=w,en=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,wc.current=n===null||n.memoizedState===null?qS:KS,n=a(u,m),za){w=0;do{if(za=!1,$a=0,25<=w)throw Error(r(301));w+=1,wn=mn=null,o.updateQueue=null,wc.current=GS,n=a(u,m)}while(za)}if(wc.current=bc,o=mn!==null&&mn.next!==null,Ds=0,wn=mn=en=null,Ec=!1,o)throw Error(r(300));return n}function Bf(){var n=$a!==0;return $a=0,n}function Jr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wn===null?en.memoizedState=wn=n:wn=wn.next=n,wn}function yr(){if(mn===null){var n=en.alternate;n=n!==null?n.memoizedState:null}else n=mn.next;var o=wn===null?en.memoizedState:wn.next;if(o!==null)wn=o,mn=n;else{if(n===null)throw Error(r(310));mn=n,n={memoizedState:mn.memoizedState,baseState:mn.baseState,baseQueue:mn.baseQueue,queue:mn.queue,next:null},wn===null?en.memoizedState=wn=n:wn=wn.next=n}return wn}function Ha(n,o){return typeof o=="function"?o(n):o}function Lf(n){var o=yr(),a=o.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var u=mn,m=u.baseQueue,w=a.pending;if(w!==null){if(m!==null){var I=m.next;m.next=w.next,w.next=I}u.baseQueue=m=w,a.pending=null}if(m!==null){w=m.next,u=u.baseState;var j=I=null,H=null,ee=w;do{var pe=ee.lane;if((Ds&pe)===pe)H!==null&&(H=H.next={lane:0,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),u=ee.hasEagerState?ee.eagerState:n(u,ee.action);else{var me={lane:pe,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null};H===null?(j=H=me,I=u):H=H.next=me,en.lanes|=pe,Fs|=pe}ee=ee.next}while(ee!==null&&ee!==w);H===null?I=u:H.next=j,Nr(u,o.memoizedState)||(Gn=!0),o.memoizedState=u,o.baseState=I,o.baseQueue=H,a.lastRenderedState=u}if(n=a.interleaved,n!==null){m=n;do w=m.lane,en.lanes|=w,Fs|=w,m=m.next;while(m!==n)}else m===null&&(a.lanes=0);return[o.memoizedState,a.dispatch]}function Mf(n){var o=yr(),a=o.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var u=a.dispatch,m=a.pending,w=o.memoizedState;if(m!==null){a.pending=null;var I=m=m.next;do w=n(w,I.action),I=I.next;while(I!==m);Nr(w,o.memoizedState)||(Gn=!0),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),a.lastRenderedState=w}return[w,u]}function Dm(){}function Fm(n,o){var a=en,u=yr(),m=o(),w=!Nr(u.memoizedState,m);if(w&&(u.memoizedState=m,Gn=!0),u=u.queue,jf(Lm.bind(null,a,u,n),[n]),u.getSnapshot!==o||w||wn!==null&&wn.memoizedState.tag&1){if(a.flags|=2048,Wa(9,Bm.b
vendor: 4,291 bytes, line 51
51ind(null,a,u,m,o),void 0,null),En===null)throw Error(r(349));Ds&30||Om(a,o,m)}return m}function Om(n,o,a){n.flags|=16384,n={getSnapshot:o,value:a},o=en.updateQueue,o===null?(o={lastEffect:null,stores:null},en.updateQueue=o,o.stores=[n]):(a=o.stores,a===null?o.stores=[n]:a.push(n))}function Bm(n,o,a,u){o.value=a,o.getSnapshot=u,Mm(o)&&jm(n)}function Lm(n,o,a){return a(function(){Mm(o)&&jm(n)})}function Mm(n){var o=n.getSnapshot;n=n.value;try{var a=o();return!Nr(n,a)}catch{return!0}}function jm(n){var o=So(n,1);o!==null&&Lr(o,n,1,-1)}function Um(n){var o=Jr();return typeof n=="function"&&(n=n()),o.memoizedState=o.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ha,lastRenderedState:n},o.queue=n,n=n.dispatch=VS.bind(null,en,n),[o.memoizedState,n]}function Wa(n,o,a,u){return n={tag:n,create:o,destroy:a,deps:u,next:null},o=en.updateQueue,o===null?(o={lastEffect:null,stores:null},en.updateQueue=o,o.lastEffect=n.next=n):(a=o.lastEffect,a===null?o.lastEffect=n.next=n:(u=a.next,a.next=n,n.next=u,o.lastEffect=n)),n}function zm(){return yr().memoizedState}function Sc(n,o,a,u){var m=Jr();en.flags|=n,m.memoizedState=Wa(1|o,a,void 0,u===void 0?null:u)}function Cc(n,o,a,u){var m=yr();u=u===void 0?null:u;var w=void 0;if(mn!==null){var I=mn.memoizedState;if(w=I.destroy,u!==null&&Ff(u,I.deps)){m.memoizedState=Wa(o,a,w,u);return}}en.flags|=n,m.memoizedState=Wa(1|o,a,w,u)}function $m(n,o){return Sc(8390656,8,n,o)}function jf(n,o){return Cc(2048,8,n,o)}function Hm(n,o){return Cc(4,2,n,o)}function Wm(n,o){return Cc(4,4,n,o)}function Vm(n,o){if(typeof o=="function")return n=n(),o(n),function(){o(null)};if(o!=null)return n=n(),o.current=n,function(){o.current=null}}function qm(n,o,a){return a=a!=null?a.concat([n]):null,Cc(4,4,Vm.bind(null,o,n),a)}function Uf(){}function Km(n,o){var a=yr();o=o===void 0?null:o;var u=a.memoizedState;return u!==null&&o!==null&&Ff(o,u[1])?u[0]:(a.memoizedState=[n,o],n)}function Gm(n,o){var a=yr();o=o===void 0?null:o;var u=a.memoizedState;return u!==null&&o!==null&&Ff(o,u[1])?u[0]:(n=n(),a.memoizedState=[n,o],n)}function Ym(n,o,a){return Ds&21?(Nr(a,o)||(a=_p(),en.lanes|=a,Fs|=a,n.baseState=!0),o):(n.baseState&&(n.baseState=!1,Gn=!0),n.memoizedState=a)}function HS(n,o){var a=Lt;Lt=a!==0&&4>a?a:4,n(!0);var u=Df.transition;Df.transition={};try{n(!1),o()}finally{Lt=a,Df.transition=u}}function Qm(){return yr().memoizedState}function WS(n,o,a){var u=rs(n);if(a={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null},Jm(n))Xm(o,a);else if(a=Rm(n,o,a,u),a!==null){var m=Mn();Lr(a,n,u,m),Zm(a,o,u)}}function VS(n,o,a){var u=rs(n),m={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null};if(Jm(n))Xm(o,m);else{var w=n.alternate;if(n.lanes===0&&(w===null||w.lanes===0)&&(w=o.lastRenderedReducer,w!==null))try{var I=o.lastRenderedState,j=w(I,a);if(m.hasEagerState=!0,m.eagerState=j,Nr(j,I)){var H=o.interleaved;H===null?(m.next=m,kf(o)):(m.next=H.next,H.next=m),o.interleaved=m;return}}catch{}finally{}a=Rm(n,o,m,u),a!==null&&(m=Mn(),Lr(a,n,u,m),Zm(a,o,u))}}function Jm(n){var o=n.alternate;return n===en||o!==null&&o===en}function Xm(n,o){za=Ec=!0;var a=n.pending;a===null?o.next=o:(o.next=a.next,a.next=o),n.pending=o}function Zm(n,o,a){if(a&4194240){var u=o.lanes;u&=n.pendingLanes,a|=u,o.lanes=a,zd(n,a)}}var bc={readContext:gr,useCallback:Nn,useContext:Nn,useEffect:Nn,useImperativeHandle:Nn,useInsertionEffect:Nn,useLayoutEffect:Nn,useMemo:Nn,useReducer:Nn,useRef:Nn,useState:Nn,useDebugValue:Nn,useDeferredValue:Nn,useTransition:Nn,useMutableSource:Nn,useSyncExternalStore:Nn,useId:Nn,unstable_isNewReconciler:!1},qS={readContext:gr,useCallback:function(n,o){return Jr().memoizedState=[n,o===void 0?null:o],n},useContext:gr,useEffect:$m,useImperativeHandle:function(n,o,a){return a=a!=null?a.concat([n]):null,Sc(4194308,4,Vm.bind(null,o,n),a)},useLayoutEffect:function(n,o){return Sc(4194308,4,n,o)},useInsertionEffect:function(n,o){return Sc(4,2,n,o)},useMemo:function(n,o){var a=Jr();return o=o===void 0?null:o,n=n(),a.memoizedState=[n,o],n},useReducer:function(n,o,a){var u=Jr();return o=a!==void 0?a(o):o,u.memoizedState=u.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},u.queue=n,n=n.dispatch=WS.bind(null,en,n),[u.memoizedState,n]}
vendor: 8,306 bytes, lines 51-53
51,useRef:function(n){var o=Jr();return n={current:n},o.memoizedState=n},useState:Um,useDebugValue:Uf,useDeferredValue:function(n){return Jr().memoizedState=n},useTransition:function(){var n=Um(!1),o=n[0];return n=HS.bind(null,n[1]),Jr().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,a){var u=en,m=Jr();if(Qt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=o(),En===null)throw Error(r(349));Ds&30||Om(u,o,a)}m.memoizedState=a;var w={value:a,getSnapshot:o};return m.queue=w,$m(Lm.bind(null,u,w,n),[n]),u.flags|=2048,Wa(9,Bm.bind(null,u,w,a,o),void 0,null),a},useId:function(){var n=Jr(),o=En.identifierPrefix;if(Qt){var a=Eo,u=wo;a=(u&~(1<<32-Pr(u)-1)).toString(32)+a,o=":"+o+"R"+a,a=$a++,0<a&&(o+="H"+a.toString(32)),o+=":"}else a=$S++,o=":"+o+"r"+a.toString(32)+":";return n.memoizedState=o},unstable_isNewReconciler:!1},KS={readContext:gr,useCallback:Km,useContext:gr,useEffect:jf,useImperativeHandle:qm,useInsertionEffect:Hm,useLayoutEffect:Wm,useMemo:Gm,useReducer:Lf,useRef:zm,useState:function(){return Lf(Ha)},useDebugValue:Uf,useDeferredValue:function(n){var o=yr();return Ym(o,mn.memoizedState,n)},useTransition:function(){var n=Lf(Ha)[0],o=yr().memoizedState;return[n,o]},useMutableSource:Dm,useSyncExternalStore:Fm,useId:Qm,unstable_isNewReconciler:!1},GS={readContext:gr,useCallback:Km,useContext:gr,useEffect:jf,useImperativeHandle:qm,useInsertionEffect:Hm,useLayoutEffect:Wm,useMemo:Gm,useReducer:Mf,useRef:zm,useState:function(){return Mf(Ha)},useDebugValue:Uf,useDeferredValue:function(n){var o=yr();return mn===null?o.memoizedState=n:Ym(o,mn.memoizedState,n)},useTransition:function(){var n=Mf(Ha)[0],o=yr().memoizedState;return[n,o]},useMutableSource:Dm,useSyncExternalStore:Fm,useId:Qm,unstable_isNewReconciler:!1};function Fr(n,o){if(n&&n.defaultProps){o=oe({},o),n=n.defaultProps;for(var a in n)o[a]===void 0&&(o[a]=n[a]);return o}return o}function zf(n,o,a,u){o=n.memoizedState,a=a(u,o),a=a==null?o:oe({},o,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var _c={isMounted:function(n){return(n=n._reactInternals)?mt(n)===n:!1},enqueueSetState:function(n,o,a){n=n._reactInternals;var u=Mn(),m=rs(n),w=Co(u,m);w.payload=o,a!=null&&(w.callback=a),o=Zo(n,w,m),o!==null&&(Lr(o,n,m,u),gc(o,n,m))},enqueueReplaceState:function(n,o,a){n=n._reactInternals;var u=Mn(),m=rs(n),w=Co(u,m);w.tag=1,w.payload=o,a!=null&&(w.callback=a),o=Zo(n,w,m),o!==null&&(Lr(o,n,m,u),gc(o,n,m))},enqueueForceUpdate:function(n,o){n=n._reactInternals;var a=Mn(),u=rs(n),m=Co(a,u);m.tag=2,o!=null&&(m.callback=o),o=Zo(n,m,u),o!==null&&(Lr(o,n,u,a),gc(o,n,u))}};function ex(n,o,a,u,m,w,I){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,w,I):o.prototype&&o.prototype.isPureReactComponent?!Ta(a,u)||!Ta(m,w):!0}function tx(n,o,a){var u=!1,m=Qo,w=o.contextType;return typeof w=="object"&&w!==null?w=gr(w):(m=Kn(o)?Rs:Pn.current,u=o.contextTypes,w=(u=u!=null)?Ei(n,m):Qo),o=new o(a,w),n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=_c,n.stateNode=o,o._reactInternals=n,u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=m,n.__reactInternalMemoizedMaskedChildContext=w),o}function nx(n,o,a,u){n=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(a,u),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(a,u),o.state!==n&&_c.enqueueReplaceState(o,o.state,null)}function $f(n,o,a,u){var m=n.stateNode;m.props=a,m.state=n.memoizedState,m.refs={},Rf(n);var w=o.contextType;typeof w=="object"&&w!==null?m.context=gr(w):(w=Kn(o)?Rs:Pn.current,m.context=Ei(n,w)),m.state=n.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(zf(n,o,w,a),m.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(o=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),o!==m.state&&_c.enqueueReplaceState(m,m.state,null),yc(n,a,m,u),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308)}function Ii(n,o){try{var a="",u=o;do a+=ve(u),u=u.return;while(u);var m=a}catch(w){m=` 52Error generating stack: `+w.message+` 53`+w.stack}return{value:n,source:o,stack:m,digest:null}}function Hf(n,o,a){return{value:n,source:null,stack:a??null,digest:o??null}}function Wf(n,o){try{console.error(o.value)}catch(a){setTimeout(function(){throw a})}}var YS=typeof WeakMap=="function"?WeakMap:Map;function rx(n,o,a){a=Co(-1,a),a.tag=3,a.payload={element:null};var u=o.value;return a.callback=function(){Nc||(Nc=!0,s0=u),Wf(n,o)},a}function ox(n,o,a){a=Co(-1,a),a.tag=3;var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var m=o.value;a.payload=function(){return u(m)},a.callback=function(){Wf(n,o)}}var w=n.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(a.callback=function(){Wf(n,o),typeof u!="function"&&(ts===null?ts=new Set([this]):ts.add(this));var I=o.stack;this.componentDidCatch(o.value,{componentStack:I!==null?I:""})}),a}function sx(n,o,a){var u=n.pingCache;if(u===null){u=n.pingCache=new YS;var m=new Set;u.set(o,m)}else m=u.get(o),m===void 0&&(m=new Set,u.set(o,m));m.has(a)||(m.add(a),n=c2.bind(null,n,o,a),o.then(n,n))}function ix(n){do{var o;if((o=n.tag===13)&&(o=n.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return n;n=n.return}while(n!==null);return null}function ax(n,o,a,u,m){return n.mode&1?(n.flags|=65536,n.lanes=m,n):(n===o?n.flags|=65536:(n.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(o=Co(-1,1),o.tag=2,Zo(a,o,1))),a.lanes|=1),n)}var QS=T.ReactCurrentOwner,Gn=!1;function Ln(n,o,a,u){o.child=n===null?km(o,null,a,u):_i(o,n.child,a,u)}function lx(n,o,a,u,m){a=a.render;var w=o.ref;return ki(o,m),u=Of(n,o,a,u,w,m),a=Bf(),n!==null&&!Gn?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~m,bo(n,o,m)):(Qt&&a&&yf(o),o.flags|=1,Ln(n,o,u,m),o.child)}function cx(n,o,a,u,m){if(n===null){var w=a.type;return typeof w=="function"&&!f0(w)&&w.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(o.tag=15,o.type=w,ux(n,o,w,u,m)):(n=Mc(a.type,null,u,o,o.mode,m),n.ref=o.ref,n.return=o,o.child=n)}if(w=n.child,!(n.lanes&m)){var I=w.memoizedProps;if(a=a.compare,a=a!==null?a:Ta,a(I,u)&&n.ref===o.ref)return bo(n,o,m)}return o.flags|=1,n=ss(w,u),n.ref=o.ref,n.return=o,o.child=n}function ux(n,o,a,u,m){if(n!==null){var w=n.memoizedProps;if(Ta(w,u)&&n.ref===o.ref)if(Gn=!1,o.pendingProps=u=w,(n.lanes&m)!==0)n.flags&131072&&(Gn=!0);else return o.lanes=n.lanes,bo(n,o,m)}return Vf(n,o,a,u,m)}function dx(n,o,a){var u=o.pendingProps,m=u.children,w=n!==null?n.memoizedState:null;if(u.mode==="hidden")if(!(o.mode&1))o.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wt(Pi,cr),cr|=a;else{if(!(a&1073741824))return n=w!==null?w.baseLanes|a:a,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:n,cachePool:null,transitions:null},o.updateQueue=null,Wt(Pi,cr),cr|=n,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=w!==null?w.baseLanes:a,Wt(Pi,cr),cr|=u}else w!==null?(u=w.baseLanes|a,o.memoizedState=null):u=a,Wt(Pi,cr),cr|=u;return Ln(n,o,m,a),o.child}function fx(n,o){var a=o.ref;(n===null&&a!==null||n!==null&&n.ref!==a)&&(o.flags|=512,o.flags|=2097152)}function Vf(n,o,a,u,m){var w=Kn(a)?Rs:Pn.current;return w=Ei(o,w),ki(o,m),a=Of(n,o,a,u,w,m),u=Bf(),n!==null&&!Gn?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~m,bo(n,o,m)):(Qt&&u&&yf(o),o.flags|=1,Ln(n,o,a,m),o.child)}function hx(n,o,a,u,m){if(Kn(a)){var w=!0;cc(o)}else w=!1;if(ki(o,m),o.stateNode===null)kc(n,o),tx(o,a,u),$f(o,a,u,m),u=!0;else if(n===null){var I=o.stateNode,j=o.memoizedProps;I.props=j;var H=I.context,ee=a.contextType;typeof ee=="object"&&ee!==null?ee=gr(ee):(ee=Kn(a)?Rs:Pn.current,ee=Ei(o,ee));var pe=a.getDerivedStateFromProps,me=typeof pe=="function"||typeof I.getSnapshotBeforeUpdate=="function";me||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(j!==u||H!==ee)&&nx(o,I,u,ee),Xo=!1;var he=o.memoizedState;I.state=he,yc(o,u,I,m),H=o.memoizedState,j!==u||he!==H||qn.current||Xo?(typeof pe
vendor: 11,634 bytes, line 53
53=="function"&&(zf(o,a,pe,u),H=o.memoizedState),(j=Xo||ex(o,a,j,u,he,H,ee))?(me||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(o.flags|=4194308)):(typeof I.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=u,o.memoizedState=H),I.props=u,I.state=H,I.context=ee,u=j):(typeof I.componentDidMount=="function"&&(o.flags|=4194308),u=!1)}else{I=o.stateNode,Im(n,o),j=o.memoizedProps,ee=o.type===o.elementType?j:Fr(o.type,j),I.props=ee,me=o.pendingProps,he=I.context,H=a.contextType,typeof H=="object"&&H!==null?H=gr(H):(H=Kn(a)?Rs:Pn.current,H=Ei(o,H));var be=a.getDerivedStateFromProps;(pe=typeof be=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(j!==me||he!==H)&&nx(o,I,u,H),Xo=!1,he=o.memoizedState,I.state=he,yc(o,u,I,m);var Ie=o.memoizedState;j!==me||he!==Ie||qn.current||Xo?(typeof be=="function"&&(zf(o,a,be,u),Ie=o.memoizedState),(ee=Xo||ex(o,a,ee,u,he,Ie,H)||!1)?(pe||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(u,Ie,H),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(u,Ie,H)),typeof I.componentDidUpdate=="function"&&(o.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof I.componentDidUpdate!="function"||j===n.memoizedProps&&he===n.memoizedState||(o.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||j===n.memoizedProps&&he===n.memoizedState||(o.flags|=1024),o.memoizedProps=u,o.memoizedState=Ie),I.props=u,I.state=Ie,I.context=H,u=ee):(typeof I.componentDidUpdate!="function"||j===n.memoizedProps&&he===n.memoizedState||(o.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||j===n.memoizedProps&&he===n.memoizedState||(o.flags|=1024),u=!1)}return qf(n,o,a,u,w,m)}function qf(n,o,a,u,m,w){fx(n,o);var I=(o.flags&128)!==0;if(!u&&!I)return m&&ym(o,a,!1),bo(n,o,w);u=o.stateNode,QS.current=o;var j=I&&typeof a.getDerivedStateFromError!="function"?null:u.render();return o.flags|=1,n!==null&&I?(o.child=_i(o,n.child,null,w),o.child=_i(o,null,j,w)):Ln(n,o,j,w),o.memoizedState=u.state,m&&ym(o,a,!0),o.child}function px(n){var o=n.stateNode;o.pendingContext?xm(n,o.pendingContext,o.pendingContext!==o.context):o.context&&xm(n,o.context,!1),If(n,o.containerInfo)}function mx(n,o,a,u,m){return bi(),Sf(m),o.flags|=256,Ln(n,o,a,u),o.child}var Kf={dehydrated:null,treeContext:null,retryLane:0};function Gf(n){return{baseLanes:n,cachePool:null,transitions:null}}function xx(n,o,a){var u=o.pendingProps,m=Zt.current,w=!1,I=(o.flags&128)!==0,j;if((j=I)||(j=n!==null&&n.memoizedState===null?!1:(m&2)!==0),j?(w=!0,o.flags&=-129):(n===null||n.memoizedState!==null)&&(m|=1),Wt(Zt,m&1),n===null)return Ef(o),n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?(o.mode&1?n.data==="$!"?o.lanes=8:o.lanes=1073741824:o.lanes=1,null):(I=u.children,n=u.fallback,w?(u=o.mode,w=o.child,I={mode:"hidden",children:I},!(u&1)&&w!==null?(w.childLanes=0,w.pendingProps=I):w=jc(I,u,0,null),n=Ms(n,u,a,null),w.return=o,n.return=o,w.sibling=n,o.child=w,o.child.memoizedState=Gf(a),o.memoizedState=Kf,n):Yf(o,I));if(m=n.memoizedState,m!==null&&(j=m.dehydrated,j!==null))return JS(n,o,I,u,j,m,a);if(w){w=u.fallback,I=o.mode,m=n.child,j=m.sibling;var H={mode:"hidden",children:u.children};return!(I&1)&&o.child!==m?(u=o.child,u.childLanes=0,u.pendingProps=H,o.deletions=null):(u=ss(m,H),u.subtreeFlags=m.subtreeFlags&14680064),j!==null?w=ss(j,w):(w=Ms(w,I,a,null),w.flags|=2),w.return=o,u.return=o,u.sibling=w,o.child=u,u=w,w=o.child,I=n.child.memoizedState,I=I===null?Gf(a):{baseLanes:I.baseLanes|a,cachePool:null,transitions:I.transitions},w.memoizedState=I,w.childLanes=n.childLanes&~a,o.memoizedState=Kf,u}return w=n.child,n=w.sibling,u=ss(w,{mode:"visible",children:u.children}),!(o.mode&1)&&(u.lanes=a),u.return=o,u.sibling=null,n!==null&&(a=o.deletions,a===null?(o.deletions=[n],o.flags|=16):a.push(n)),o.child=u,o.memoizedState=null,u}function Yf(n,o){return o=jc({mode:"visible",children:o},n.mode,0,null),o.return=n,n.child=o}function Ac(n,o,a,u){return u!==null&&Sf(u),_i(o,n.child,null,a),n=Yf(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function JS(n,o,a,u,m,w,I){if(a)return o.flags&256?(o.flags&=-257,u=Hf(Error(r(422))),Ac(n,o,I,u)):o.memoizedState!==null?(o.child=n.child,o.flags|=128,null):(w=u.fallback,m=o.mode,u=jc({mode:"visible",children:u.children},m,0,null),w=Ms(w,m,I,null),w.flags|=2,u.return=o,w.return=o,u.sibling=w,o.child=u,o.mode&1&&_i(o,n.child,null,I),o.child.memoizedState=Gf(I),o.memoizedState=Kf,w);if(!(o.mode&1))return Ac(n,o,I,null);if(m.data==="$!"){if(u=m.nextSibling&&m.nextSibling.dataset,u)var j=u.dgst;return u=j,w=Error(r(419)),u=Hf(w,u,void 0),Ac(n,o,I,u)}if(j=(I&n.childLanes)!==0,Gn||j){if(u=En,u!==null){switch(I&-I){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=m&(u.suspendedLanes|I)?0:m,m!==0&&m!==w.retryLane&&(w.retryLane=m,So(n,m),Lr(u,n,m,-1))}return d0(),u=Hf(Error(r(421))),Ac(n,o,I,u)}return m.data==="$?"?(o.flags|=128,o.child=n.child,o=u2.bind(null,n),m._reactRetry=o,null):(n=w.treeContext,lr=Go(m.nextSibling),ar=o,Qt=!0,Dr=null,n!==null&&(mr[xr++]=wo,mr[xr++]=Eo,mr[xr++]=Is,wo=n.id,Eo=n.overflow,Is=o),o=Yf(o,u.children),o.flags|=4096,o)}function gx(n,o,a){n.lanes|=o;var u=n.alternate;u!==null&&(u.lanes|=o),Af(n.return,o,a)}function Qf(n,o,a,u,m){var w=n.memoizedState;w===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:m}:(w.isBackwards=o,w.rendering=null,w.renderingStartTime=0,w.last=u,w.tail=a,w.tailMode=m)}function yx(n,o,a){var u=o.pendingProps,m=u.revealOrder,w=u.tail;if(Ln(n,o,u.children,a),u=Zt.current,u&2)u=u&1|2,o.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&gx(n,a,o);else if(n.tag===19)gx(n,a,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}if(Wt(Zt,u),!(o.mode&1))o.memoizedState=null;else switch(m){case"forwards":for(a=o.child,m=null;a!==null;)n=a.alternate,n!==null&&vc(n)===null&&(m=a),a=a.sibling;a=m,a===null?(m=o.child,o.child=null):(m=a.sibling,a.sibling=null),Qf(o,!1,m,a,w);break;case"backwards":for(a=null,m=o.child,o.child=null;m!==null;){if(n=m.alternate,n!==null&&vc(n)===null){o.child=m;break}n=m.sibling,m.sibling=a,a=m,m=n}Qf(o,!0,a,null,w);break;case"together":Qf(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function kc(n,o){!(o.mode&1)&&n!==null&&(n.alternate=null,o.alternate=null,o.flags|=2)}function bo(n,o,a){if(n!==null&&(o.dependencies=n.dependencies),Fs|=o.lanes,!(a&o.childLanes))return null;if(n!==null&&o.child!==n.child)throw Error(r(153));if(o.child!==null){for(n=o.child,a=ss(n,n.pendingProps),o.child=a,a.return=o;n.sibling!==null;)n=n.sibling,a=a.sibling=ss(n,n.pendingProps),a.return=o;a.sibling=null}return o.child}function XS(n,o,a){switch(o.tag){case 3:px(o),bi();break;case 5:Nm(o);break;case 1:Kn(o.type)&&cc(o);break;case 4:If(o,o.stateNode.containerInfo);break;case 10:var u=o.type._context,m=o.memoizedProps.value;Wt(mc,u._currentValue),u._currentValue=m;break;case 13:if(u=o.memoizedState,u!==null)return u.dehydrated!==null?(Wt(Zt,Zt.current&1),o.flags|=128,null):a&o.child.childLanes?xx(n,o,a):(Wt(Zt,Zt.current&1),n=bo(n,o,a),n!==null?n.sibling:null);Wt(Zt,Zt.current&1);break;case 19:if(u=(a&o.childLanes)!==0,n.flags&128){if(u)return yx(n,o,a);o.flags|=128}if(m=o.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Wt(Zt,Zt.current),u)break;return null;case 22:case 23:return o.lanes=0,dx(n,o,a)}return bo(n,o,a)}var vx,Jf,wx,Ex;vx=function(n,o){for(var a=o.child;a!==null;){if(a.tag===5||a.tag===6)n.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Jf=function(){},wx=function(n,o,a,u){var m=n.memoizedProps;if(m!==u){n=o.stateNode,Ns(Qr.current);var w=null;switch(a){case"input":m=St(n,m),u=St(n,u),w=[];break;case"select":m=oe({},m,{value:void 0}),u=oe({},u,{value:void 0}),w=[];break;case"textarea":m=Xe(n,m),u=Xe(n,u),w=[];break;default:typeof m.onClick!="function"&&typeof u.onClick=="function"&&(n.onclick=ic)}cn(a,u);var I;a=null;for(ee in m)if(!u.hasOwnProperty(ee)&&m.hasOwnProperty(ee)&&m[ee]!=null)if(ee==="style"){var j=m[ee];for(I in j)j.hasOwnProperty(I)&&(a||(a={}),a[I]="")}else ee!=="dangerouslySetInnerHTML"&&ee!=="children"&&ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&ee!=="autoFocus"&&(i.hasOwnProperty(ee)?w||(w=[]):(w=w||[]).push(ee,null));for(ee in u){var H=u[ee];if(j=m!=null?m[ee]:void 0,u.hasOwnProperty(ee)&&H!==j&&(H!=null||j!=null))if(ee==="style")if(j){for(I in j)!j.hasOwnProperty(I)||H&&H.hasOwnProperty(I)||(a||(a={}),a[I]="");for(I in H)H.hasOwnProperty(I)&&j[I]!==H[I]&&(a||(a={}),a[I]=H[I])}else a||(w||(w=[]),w.push(ee,a)),a=H;else ee==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,j=j?j.__html:void 0,H!=null&&j!==H&&(w=w||[]).push(ee,H)):ee==="children"?typeof H!="string"&&typeof H!="number"||(w=w||[]).push(ee,""+H):ee!=="suppressContentEditableWarning"&&ee!=="suppressHydrationWarning"&&(i.hasOwnProperty(ee)?(H!=null&&ee==="onScroll"&&qt("scroll",n),w||j===H||(w=[])):(w=w||[]).push(ee,H))}a&&(w=w||[]).push("style",a);var ee=w;(o.updateQueue=ee)&&(o.flags|=4)}},Ex=function(n,o,a,u){a!==u&&(o.flags|=4)};function Va(n,o){if(!Qt)switch(n.tailMode){case"hidden":o=n.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function Dn(n){var o=n.alternate!==null&&n.alternate.child===n.child,a=0,u=0;if(o)for(var m=n.child;m!==null;)a|=m.lanes|m.childLanes,u|=m.subtreeFlags&14680064,u|=m.flags&14680064,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)a|=m.lanes|m.childLanes,u|=m.subtreeFlags,u|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=u,n.childLanes=a,o}function ZS(n,o,a){var u=o.pendingProps;switch(vf(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dn(o),null;case 1:return Kn(o.type)&&lc(),Dn(o),null;case 3:return u=o.stateNode,Ri(),Kt(qn),Kt(Pn),Nf(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(hc(o)?o.flags|=4:n===null||n.memoizedState.isDehydrated&&!(o.flags&256)||(o.flags|=1024,Dr!==null&&(l0(Dr),Dr=null))),Jf(n,o),Dn(o),null;case 5:Tf(o);var m=Ns(Ua.current);if(a=o.type,n!==null&&o.stateNode!=null)wx(n,o,a,u,m),n.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!u){if(o.stateNode===null)throw Error(r(166));return Dn(o),null}if(n=Ns(Qr.current),hc(o)){u=o.stateNode,a=o.type;var w=o.memoizedProps;switch(u[Yr]=o,u[Oa]=w,n=(o.mode&1)!==0,a){case"dialog":qt("cancel",u),qt("
53close",u);break;case"iframe":case"object":case"embed":qt("load",u);break;case"video":case"audio":for(m=0;m<Na.length;m++)qt(Na[m],u);break;case"source":qt("error",u);break;case"img":case"image":case"link":qt("error",u),qt("load",u);break;case"details":qt("toggle",u);break;case"input":bt(u,w),qt("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!w.multiple},qt("invalid",u);break;case"textarea":We(u,w),qt("invalid",u)}cn(a,w),m=null;for(var I in w)if(w.hasOwnProperty(I)){var j=w[I];I==="children"?typeof j=="string"?u.textContent!==j&&(w.suppressHydrationWarning!==!0&&sc(u.textContent,j,n),m=["children",j]):typeof j=="number"&&u.textContent!==""+j&&(w.suppressHydrationWarning!==!0&&sc(u.textContent,j,n),m=["children",""+j]):i.hasOwnProperty(I)&&j!=null&&I==="onScroll"&&qt("scroll",u)}switch(a){case"input":He(u),Bt(u,w,!0);break;case"textarea":He(u),Ne(u);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(u.onclick=ic)}u=m,o.updateQueue=u,u!==null&&(o.flags|=4)}else{I=m.nodeType===9?m:m.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Ve(a)),n==="http://www.w3.org/1999/xhtml"?a==="script"?(n=I.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=I.createElement(a,{is:u.is}):(n=I.createElement(a),a==="select"&&(I=n,u.multiple?I.multiple=!0:u.size&&(I.size=u.size))):n=I.createElementNS(n,a),n[Yr]=o,n[Oa]=u,vx(n,o,!1,!1),o.stateNode=n;e:{switch(I=hn(a,u),a){case"dialog":qt("cancel",n),qt("close",n),m=u;break;case"iframe":case"object":case"embed":qt("load",n),m=u;break;case"video":case"audio":for(m=0;m<Na.length;m++)qt(Na[m],n);m=u;break;case"source":qt("error",n),m=u;break;case"img":case"image":case"link":qt("error",n),qt("load",n),m=u;break;case"details":qt("toggle",n),m=u;break;case"input":bt(n,u),m=St(n,u),qt("invalid",n);break;case"option":m=u;break;case"select":n._wrapperState={wasMultiple:!!u.multiple},m=oe({},u,{value:void 0}),qt("invalid",n);break;case"textarea":We(n,u),m=Xe(n,u),qt("invalid",n);break;default:m=u}cn(a,m),j=m;for(w in j)if(j.hasOwnProperty(w)){var H=j[w];w==="style"?dt(n,H):w==="dangerouslySetInnerHTML"?(H=H?H.__html:void 0,H!=null&&Ut(n,H)):w==="children"?typeof H=="string"?(a!=="textarea"||H!=="")&<(n,H):typeof H=="number"&<(n,""+H):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(i.hasOwnProperty(w)?H!=null&&w==="onScroll"&&qt("scroll",n):H!=null&&A(n,w,H,I))}switch(a){case"input":He(n),Bt(n,u,!1);break;case"textarea":He(n),Ne(n);break;case"option":u.value!=null&&n.setAttribute("value",""+se(u.value));break;case"select":n.multiple=!!u.multiple,w=u.value,w!=null?Oe(n,!!u.multiple,w,!1):u.defaultValue!=null&&Oe(n,!!u.multiple,u.defaultValue,!0);break;default:typeof m.onClick=="function"&&(n.onclick=ic)}switch(a){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Dn(o),null;case 6:if(n&&o.stateNode!=null)Ex(n,o,n.memoizedProps,u);else{if(typeof u!="string"&&o.stateNode===null)throw Error(r(166));if(a=Ns(Ua.current),Ns(Qr.current),hc(o)){if(u=o.stateNode,a=o.memoizedProps,u[Yr]=o,(w=u.nodeValue!==a)&&(n=ar,n!==null))switch(n.tag){case 3:sc(u.nodeValue,a,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&sc(u.nodeValue,a,(n.mode&1)!==0)}w&&(o.flags|=4)}else u=(a.nodeType===9?a:a.ownerDocument).createTextNode(u),u[Yr]=o,o.stateNode=u}return Dn(o),null;case 13:if(Kt(Zt),u=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Qt&&lr!==null&&o.mode&1&&!(o.flags&128))bm(),bi(),o.flags|=98560,w=!1;else if(w=hc(o),u!==null&&u.dehydrated!==null){if(n===null){if(!w)throw Error(r(318));if(w=o.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(r(317));w[Yr]=o}else bi(),!(o.flags&128)&&(o.memoizedState=null),o.flags|=4;Dn(o),w=!1}else Dr!==null&&(l0(Dr),Dr=null),w=!0;if(!w)return o.flags&65536?o:null}return o.flags&128?(o.lanes=a,o):(u=u!==null,u!==(n!==null&&n.memoizedState!==null)&&u&&(o.child.flags|=8192,o.mode&1&&(n===null||Zt.current&1?xn===0&&(xn=3):d0())),o.updateQueue!==null&&(o.flags|=4),Dn(o),null);case 4:return Ri(),Jf(n,o),n===null&&Da(o.stateNode.containerInfo),Dn(o),null;case 10:return _f(o.type._context),Dn(o),null;case 17:return Kn(o.type)&&lc(),Dn(o),null;case 19:if(Kt(Zt),w=o.memoizedState,w===null)return Dn(o),null;if(u=(o.flags&128)!==0,I=w.rendering,I===null)if(u)Va(w,!1);else{if(xn!==0||n!==null&&n.flags&128)for(n=o.child;n!==null;
vendor: 24,539 bytes, line 53
53){if(I=vc(n),I!==null){for(o.flags|=128,Va(w,!1),u=I.updateQueue,u!==null&&(o.updateQueue=u,o.flags|=4),o.subtreeFlags=0,u=a,a=o.child;a!==null;)w=a,n=u,w.flags&=14680066,I=w.alternate,I===null?(w.childLanes=0,w.lanes=n,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=I.childLanes,w.lanes=I.lanes,w.child=I.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=I.memoizedProps,w.memoizedState=I.memoizedState,w.updateQueue=I.updateQueue,w.type=I.type,n=I.dependencies,w.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),a=a.sibling;return Wt(Zt,Zt.current&1|2),o.child}n=n.sibling}w.tail!==null&&Dt()>Ni&&(o.flags|=128,u=!0,Va(w,!1),o.lanes=4194304)}else{if(!u)if(n=vc(I),n!==null){if(o.flags|=128,u=!0,a=n.updateQueue,a!==null&&(o.updateQueue=a,o.flags|=4),Va(w,!0),w.tail===null&&w.tailMode==="hidden"&&!I.alternate&&!Qt)return Dn(o),null}else 2*Dt()-w.renderingStartTime>Ni&&a!==1073741824&&(o.flags|=128,u=!0,Va(w,!1),o.lanes=4194304);w.isBackwards?(I.sibling=o.child,o.child=I):(a=w.last,a!==null?a.sibling=I:o.child=I,w.last=I)}return w.tail!==null?(o=w.tail,w.rendering=o,w.tail=o.sibling,w.renderingStartTime=Dt(),o.sibling=null,a=Zt.current,Wt(Zt,u?a&1|2:a&1),o):(Dn(o),null);case 22:case 23:return u0(),u=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(o.flags|=8192),u&&o.mode&1?cr&1073741824&&(Dn(o),o.subtreeFlags&6&&(o.flags|=8192)):Dn(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function e2(n,o){switch(vf(o),o.tag){case 1:return Kn(o.type)&&lc(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return Ri(),Kt(qn),Kt(Pn),Nf(),n=o.flags,n&65536&&!(n&128)?(o.flags=n&-65537|128,o):null;case 5:return Tf(o),null;case 13:if(Kt(Zt),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));bi()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return Kt(Zt),null;case 4:return Ri(),null;case 10:return _f(o.type._context),null;case 22:case 23:return u0(),null;case 24:return null;default:return null}}var Rc=!1,Fn=!1,t2=typeof WeakSet=="function"?WeakSet:Set,Ae=null;function Ti(n,o){var a=n.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(u){nn(n,o,u)}else a.current=null}function Xf(n,o,a){try{a()}catch(u){nn(n,o,u)}}var Sx=!1;function n2(n,o){if(uf=Gl,n=em(),tf(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var m=u.anchorOffset,w=u.focusNode;u=u.focusOffset;try{a.nodeType,w.nodeType}catch{a=null;break e}var I=0,j=-1,H=-1,ee=0,pe=0,me=n,he=null;t:for(;;){for(var be;me!==a||m!==0&&me.nodeType!==3||(j=I+m),me!==w||u!==0&&me.nodeType!==3||(H=I+u),me.nodeType===3&&(I+=me.nodeValue.length),(be=me.firstChild)!==null;)he=me,me=be;for(;;){if(me===n)break t;if(he===a&&++ee===m&&(j=I),he===w&&++pe===u&&(H=I),(be=me.nextSibling)!==null)break;me=he,he=me.parentNode}me=be}a=j===-1||H===-1?null:{start:j,end:H}}else a=null}a=a||{start:0,end:0}}else a=null;for(df={focusedElem:n,selectionRange:a},Gl=!1,Ae=o;Ae!==null;)if(o=Ae,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,Ae=n;else for(;Ae!==null;){o=Ae;try{var Ie=o.alternate;if(o.flags&1024)switch(o.tag){case 0:case 11:case 15:break;case 1:if(Ie!==null){var De=Ie.memoizedProps,sn=Ie.memoizedState,J=o.stateNode,q=J.getSnapshotBeforeUpdate(o.elementType===o.type?De:Fr(o.type,De),sn);J.__reactInternalSnapshotBeforeUpdate=q}break;case 3:var X=o.stateNode.containerInfo;X.nodeType===1?X.textContent="":X.nodeType===9&&X.documentElement&&X.removeChild(X.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ye){nn(o,o.return,ye)}if(n=o.sibling,n!==null){n.return=o.return,Ae=n;break}Ae=o.return}return Ie=Sx,Sx=!1,Ie}function qa(n,o,a){var u=o.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var m=u=u.next;do{if((m.tag&n)===n){var w=m.destroy;m.destroy=void 0,w!==void 0&&Xf(o,a,w)}m=m.next}while(m!==u)}}function Ic(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&n)===n){var u=a.create;a.destroy=u()}a=a.next}while(a!==o)}}function Zf(n){var o=n.ref;if(o!==null){var a=n.stateNode;switch(n.tag){case 5:n=a;break;default:n=a}typeof o=="function"?o(n):o.current=n}}function Cx(n){var o=n.alternate;o!==null&&(n.alternate=null,Cx(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[Yr],delete o[Oa],delete o[mf],delete o[MS],delete o[jS])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function bx(n){return n.tag===5||n.tag===3||n.tag===4}function _x(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||bx(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function e0(n,o,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,o?a.nodeType===8?a.parentNode.insertBefore(n,o):a.insertBefore(n,o):(a.nodeType===8?(o=a.parentNode,o.insertBefore(n,a)):(o=a,o.appendChild(n)),a=a._reactRootContainer,a!=null||o.onclick!==null||(o.onclick=ic));else if(u!==4&&(n=n.child,n!==null))for(e0(n,o,a),n=n.sibling;n!==null;)e0(n,o,a),n=n.sibling}function t0(n,o,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,o?a.insertBefore(n,o):a.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for(t0(n,o,a),n=n.sibling;n!==null;)t0(n,o,a),n=n.sibling}var An=null,Or=!1;function es(n,o,a){for(a=a.child;a!==null;)Ax(n,o,a),a=a.sibling}function Ax(n,o,a){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(Tr,a)}catch{}switch(a.tag){case 5:Fn||Ti(a,o);case 6:var u=An,m=Or;An=null,es(n,o,a),An=u,Or=m,An!==null&&(Or?(n=An,a=a.stateNode,n.nodeType===8?n.parentNode.removeChild(a):n.removeChild(a)):An.removeChild(a.stateNode));break;case 18:An!==null&&(Or?(n=An,a=a.stateNode,n.nodeType===8?pf(n.parentNode,a):n.nodeType===1&&pf(n,a),ba(n)):pf(An,a.stateNode));break;case 4:u=An,m=Or,An=a.stateNode.containerInfo,Or=!0,es(n,o,a),An=u,Or=m;break;case 0:case 11:case 14:case 15:if(!Fn&&(u=a.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){m=u=u.next;do{var w=m,I=w.destroy;w=w.tag,I!==void 0&&(w&2||w&4)&&Xf(a,o,I),m=m.next}while(m!==u)}es(n,o,a);break;case 1:if(!Fn&&(Ti(a,o),u=a.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=a.memoizedProps,u.state=a.memoizedState,u.componentWillUnmount()}catch(j){nn(a,o,j)}es(n,o,a);break;case 21:es(n,o,a);break;case 22:a.mode&1?(Fn=(u=Fn)||a.memoizedState!==null,es(n,o,a),Fn=u):es(n,o,a);break;default:es(n,o,a)}}function kx(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var a=n.stateNode;a===null&&(a=n.stateNode=new t2),o.forEach(function(u){var m=d2.bind(null,n,u);a.has(u)||(a.add(u),u.then(m,m))})}}function Br(n,o){var a=o.deletions;if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];try{var w=n,I=o,j=I;e:for(;j!==null;){switch(j.tag){case 5:An=j.stateNode,Or=!1;break e;case 3:An=j.stateNode.containerInfo,Or=!0;break e;case 4:An=j.stateNode.containerInfo,Or=!0;break e}j=j.return}if(An===null)throw Error(r(160));Ax(w,I,m),An=null,Or=!1;var H=m.alternate;H!==null&&(H.return=null),m.return=null}catch(ee){nn(m,o,ee)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Rx(o,n),o=o.sibling}function Rx(n,o){var a=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(Br(o,n),Xr(n),u&4){try{qa(3,n,n.return),Ic(3,n)}catch(De){nn(n,n.return,De)}try{qa(5,n,n.return)}catch(De){nn(n,n.return,De)}}break;case 1:Br(o,n),Xr(n),u&512&&a!==null&&Ti(a,a.return);break;case 5:if(Br(o,n),Xr(n),u&512&&a!==null&&Ti(a,a.return),n.flags&32){var m=n.stateNode;try{lt(m,"")}catch(De){nn(n,n.return,De)}}if(u&4&&(m=n.stateNode,m!=null)){var w=n.memoizedProps,I=a!==null?a.memoizedProps:w,j=n.type,H=n.updateQueue;if(n.updateQueue=null,H!==null)try{j==="input"&&w.type==="radio"&&w.name!=null&&Yt(m,w),hn(j,I);var ee=hn(j,w);for(I=0;I<H.length;I+=2){var pe=H[I],me=H[I+1];pe==="style"?dt(m,me):pe==="dangerouslySetInnerHTML"?Ut(m,me):pe==="children"?lt(m,me):A(m,pe,me,ee)}switch(j){case"input":Rt(m,w);break;case"textarea":Le(m,w);break;case"select":var he=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!w.multiple;var be=w.value;be!=null?Oe(m,!!w.multiple,be,!1):he!==!!w.multiple&&(w.defaultValue!=null?Oe(m,!!w.multiple,w.defaultValue,!0):Oe(m,!!w.multiple,w.multiple?[]:"",!1))}m[Oa]=w}catch(De){nn(n,n.return,De)}}break;case 6:if(Br(o,n),Xr(n),u&4){if(n.stateNode===null)throw Error(r(162));m=n.stateNode,w=n.memoizedProps;try{m.nodeValue=w}catch(De){nn(n,n.return,De)}}break;case 3:if(Br(o,n),Xr(n),u&4&&a!==null&&a.memoizedState.isDehydrated)try{ba(o.containerInfo)}catch(De){nn(n,n.return,De)}break;case 4:Br(o,n),Xr(n);break;case 13:Br(o,n),Xr(n),m=n.child,m.flags&8192&&(w=m.memoizedState!==null,m.stateNode.isHidden=w,!w||m.alternate!==null&&m.alternate.memoizedState!==null||(o0=Dt())),u&4&&kx(n);break;case 22:if(pe=a!==null&&a.memoizedState!==null,n.mode&1?(Fn=(ee=Fn)||pe,Br(o,n),Fn=ee):Br(o,n),Xr(n),u&8192){if(ee=n.memoizedState!==null,(n.stateNode.isHidden=ee)&&!pe&&n.mode&1)for(Ae=n,pe=n.child;pe!==null;){for(me=Ae=pe;Ae!==null;){switch(he=Ae,be=he.child,he.tag){case 0:case 11:case 14:case 15:qa(4,he,he.return);break;case 1:Ti(he,he.return);var Ie=he.stateNode;if(typeof Ie.componentWillUnmount=="function"){u=he,a=he.return;try{o=u,Ie.props=o.memoizedProps,Ie.state=o.memoizedState,Ie.componentWillUnmount()}catch(De){nn(u,a,De)}}break;case 5:Ti(he,he.return);break;case 22:if(he.memoizedState!==null){Px(me);continue}}be!==null?(be.return=he,Ae=be):Px(me)}pe=pe.sibling}e:for(pe=null,me=n;;){if(me.tag===5){if(pe===null){pe=me;try{m=me.stateNode,ee?(w=m.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(j=me.stateNode,H=me.memoizedProps.style,I=H!=null&&H.hasOwnProperty("display")?H.display:null,j.style.display=jt("display",I))}catch(De){nn(n,n.return,De)}}}else if(me.tag===6){if(pe===null)try{me.stateNode.nodeValue=ee?"":me.memoizedProps}catch(De){nn(n,n.return,De)}}else if((me.tag!==22&&me.tag!==23||me.memoizedState===null||me===n)&&me.child!==null){me.child.return=me,me=me.child;continue}if(me===n)break e;for(;me.sibling===null;){if(me.return===null||me.return===n)break e;pe===me&&(pe=null),me=me.return}pe===me&&(pe=null),me.sibling.return=me.return,me=me.sibling}}break;case 19:Br(o,n),Xr(n),u&4&&kx(n);break;case 21:break;default:Br(o,n),Xr(n)}}function Xr(n){var o=n.flags;if(o&2){try{e:{for(var a=n.return;a!==null;){if(bx(a)){var u=a;break e}a=a.return}throw Error(r(160))}switch(u.tag){case 5:var m=u.stateNode;u.flags&32&&(lt(m,""),u.flags&=-33);var w=_x(n);t0(n,w,m);break;case 3:case 4:var I=u.stateNode.containerInfo,j=_x(n);e0(n,j,I);break;default:throw Error(r(161))}}catch(H){nn(n,n.return,H)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function r2(n,o,a){Ae=n,Ix(n)}function Ix(n,o,a){for(var u=(n.mode&1)!==0;Ae!==null;){var m=Ae,w=m.child;if(m.tag===22&&u){var I=m.memoizedState!==null||Rc;if(!I){var j=m.alternate,H=j!==null&&j.memoizedState!==null||Fn;j=Rc;var ee=Fn;if(Rc=I,(Fn=H)&&!ee)for(Ae=m;Ae!==null;)I=Ae,H=I.child,I.tag===22&&I.memoizedState!==null?Nx(m):H!==null?(H.return=I,Ae=H):Nx(m);for(;w!==null;)Ae=w,Ix(w),w=w.sibling;Ae=m,Rc=j,Fn=ee}Tx(n)}else m.subtreeFlags&8772&&w!==null?(w.return=m,Ae=w):Tx(n)}}function Tx(n){for(;Ae!==null;){var o=Ae;if(o.flags&8772){var a=o.alternate;try{if(o.flags&8772)switch(o.tag){case 0:case 11:case 15:Fn||Ic(5,o);break;case 1:var u=o.stateNode;if(o.flags&4&&!Fn)if(a===null)u.componentDidMount();else{var m=o.elementType===o.type?a.memoizedProps:Fr(o.type,a.memoizedProps);u.componentDidUpdate(m,a.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var w=o.updateQueue;w!==null&&Pm(o,w,u);break;case 3:var I=o.updateQueue;if(I!==null){if(a=null,o.child!==null)switch(o.child.tag){case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}Pm(o,I,a)}break;case 5:var j=o.stateNode;if(a===null&&o.flags&4){a=j;var H=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":H.autoFocus&&a.focus();break;case"img":H.src&&(a.src=H.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var ee=o.alternate;if(ee!==null){var pe=ee.memoizedState;if(pe!==null){var me=pe.dehydrated;me!==null&&ba(me)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Fn||o.flags&512&&Zf(o)}catch(he){nn(o,o.return,he)}}if(o===n){Ae=null;break}if(a=o.sibling,a!==null){a.return=o.return,Ae=a;break}Ae=o.return}}function Px(n){for(;Ae!==null;){var o=Ae;if(o===n){Ae=null;break}var a=o.sibling;if(a!==null){a.return=o.return,Ae=a;break}Ae=o.return}}function Nx(n){for(;Ae!==null;){var o=Ae;try{switch(o.tag){case 0:case 11:case 15:var a=o.return;try{Ic(4,o)}catch(H){nn(o,a,H)}break;case 1:var u=o.stateNode;if(typeof u.componentDidMount=="function"){var m=o.return;try{u.componentDidMount()}catch(H){nn(o,m,H)}}var w=o.return;try{Zf(o)}catch(H){nn(o,w,H)}break;case 5:var I=o.return;try{Zf(o)}catch(H){nn(o,I,H)}}}catch(H){nn(o,o.return,H)}if(o===n){Ae=null;break}var j=o.sibling;if(j!==null){j.return=o.return,Ae=j;break}Ae=o.return}}var o2=Math.ceil,Tc=T.ReactCurrentDispatcher,n0=T.ReactCurrentOwner,vr=T.ReactCurrentBatchConfig,At=0,En=null,un=null,kn=0,cr=0,Pi=Yo(0),xn=0,Ka=null,Fs=0,Pc=0,r0=0,Ga=null,Yn=null,o0=0,Ni=1/0,_o=null,Nc=!1,s0=null,ts=null,Dc=!1,ns=null,Fc=0,Ya=0,i0=null,Oc=-1,Bc=0;function Mn(){return At&6?Dt():Oc!==-1?Oc:Oc=Dt()}function rs(n){return n.mode&1?At&2&&kn!==0?kn&-kn:zS.transition!==null?(Bc===0&&(Bc=_p()),Bc):(n=Lt,n!==0||(n=window.event,n=n===void 0?16:Fp(n.type)),n):1}function Lr(n,o,a,u){if(50<Ya)throw Ya=0,i0=null,Error(r(185));va(n,a,u),(!(At&2)||n!==En)&&(n===En&&(!(At&2)&&(Pc|=a),xn===4&&os(n,kn)),Qn(n,u),a===1&&At===0&&!(o.mode&1)&&(Ni=Dt()+500,uc&&Jo()))}function Qn(n,o){var a=n.callbackNode;zE(n,o);var u=Vl(n,n===En?kn:0);if(u===0)a!==null&&Gr(a),n.callbackNode=null,n.callbackPriority=0;else if(o=u&-u,n.callbackPriority!==o){if(a!=null&&Gr(a),o===1)n.tag===0?US(Fx.bind(null,n)):vm(Fx.bind(null,n)),BS(function(){!(At&6)&&Jo()}),a=null;else{switch(Ap(u)){case 1:a=Ft;break;case 4:a=pn;break;case 16:a=go;break;case 536870912:a=Xt;break;default:a=go}a=$x(a,Dx.bind(null,n))}n.callbackPriority=o,n.callbackNode=a}}function Dx(n,o){if(Oc=-1,Bc=0,At&6)throw Error(r(327));var a=n.callbackNode;if(Di()&&n.callbackNode!==a)return null;var u=Vl(n,n===En?kn:0);if(u===0)return null;if(u&30||u&n.expiredLanes||o)o=Lc(n,u);else{o=u;var m=At;At|=2;var w=Bx();(En!==n||kn!==o)&&(_o=null,Ni=Dt()+500,Bs(n,o));do try{a2();break}catch(j){Ox(n,j)}while(!0);bf(),Tc.current=w,At=m,un!==null?o=0:(En=null,kn=0,o=xn)}if(o!==0){if(o===2&&(m=jd(n),m!==0&&(u=m,o=a0(n,m))),o===1)throw a=Ka,Bs(n,0),os(n,u),Qn(n,Dt()),a;if(o===6)os(n,u);else{if(m=n.current.alternate,!(u&30)&&!s2(m)&&(o=Lc(n,u),o===2&&(w=jd(n),w!==0&&(u=w,o=a0(n,w))),o===1))throw a=Ka,Bs(n,0),os(n,u),Qn(n,Dt()),a;switch(n.finishedWork=m,n.finishedLanes=u,o){case 0:case 1:throw Error(r(345));case 2:Ls(n,Yn,_o);break;case 3:if(os(n,u),(u&130023424)===u&&(o=o0+500-Dt(),10<o)){if(Vl(n,0)!==0)break;if(m=n.suspendedLanes,(m&u)!==u){Mn(),n.pingedLanes|=n.suspendedLanes&m;break}n.timeoutHandle=hf(Ls.bind(null,n,Yn,_o),o);break}Ls(n,Yn,_o);break;case 4:if(os(n,u),(u&4194240)===u)break;for(o=n.eventTimes,m=-1;0<u;){var I=31-Pr(u);w=1<<I,I=o[I],I>m&&(m=I),u&=~w}if(u=m,u=Dt()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*o2(u/1960))-u,10<u){n.timeoutHandle=hf(Ls.bind(null,n,Yn,_o),u);break}Ls(n,Yn,_o);break;case 5:Ls(n,Yn,_o);break;default:throw Error(r(329))}}}return Qn(n,Dt()),n.callbackNode===a?Dx.bind(null,n):null}function a0(n,o){var a=Ga;return n.current.memoizedState.isDehydrated&&(Bs(n,o).flags|=256),n=Lc(n,o),n!==2&&(o=Yn,Yn=a,o!==null&&l0(o)),n}function l0(n){Yn===null?Yn=n:Yn.push.apply(Yn,n)}function s2(n){for(var o=n;;){if(o.flags&16384){var a=o.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var u=0;u<a.length;u++){var m=a[u],w=m.getSnapshot;m=m.value;try{if(!Nr(w(),m))return!1}catch{return!1}}}if(a=o.child,o.subtreeFlags&16384&&a!==null)a.return=o,o=a;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function os(n,o){for(o&=~r0,o&=~Pc,n.suspendedLanes|=o,n.pingedLanes&=~o,n=n.expirationTimes;0<o;){var a=31-Pr(o),u=1<<a;n[a]=-1,o&=~u}}function Fx(n){if(At&6)throw Error(r(327));Di();var o=Vl(n,0);if(!(o&1))return Qn(n,Dt()),null;var a=Lc(n,o);if(n.tag!==0&&a===2){var u=jd(n);u!==0&&(o=u,a=a0(n,u))}if(a===1)throw a=Ka,Bs(n,0),os(n,o),Qn(n,Dt()),a;if(a===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=o,Ls(n,Yn,_o),Qn(n,Dt()),null}function c0(n,o){var a=At;At|=1;try{return n(o)}finally{At=a,At===0&&(Ni=Dt()+500,uc&&Jo())}}function Os(n){ns!==null&&ns.tag===0&&!(At&6)&&Di();var o=At;At|=1;var a=vr.transition,u=Lt;try{if(vr.transition=null,Lt=1,n)return n()}finally{Lt=u,vr.transition=a,At=o,!(At&6)&&Jo()}}function u0(){cr=Pi.current,Kt(Pi)}function Bs(n,o){n.finishedWork=null,n.finishedLanes=0;var a=n.timeoutHandle;if(a!==-1&&(n.timeoutHandle=-1,OS(a)),un!==null)for(a=un.return;a!==null;){var u=a;switch(vf(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&lc();break;case 3:Ri(),Kt(qn),Kt(Pn),Nf();break;case 5:Tf(u);break;case 4:Ri();break;case 13:Kt(Zt);break;case 19:Kt(Zt);break;case 10:_f(u.type._context);break;case 22:case 23:u0()}a=a.return}if(En=n,un=n=ss(n.current,null),kn=cr=o,xn=0,Ka=null,r0=Pc=Fs=0,Yn=Ga=null,Ps!==null){for(o=0;o<Ps.length;o++)if(a=Ps[o],u=a.interleaved,u!==null){a.interleaved=null;var m=u.next,w=a.pending;if(w!==null){var I=w.next;w.next=m,u.next=I}a.pending=u}Ps=null}return n}function Ox(n,o){do{var a=un;try{if(bf(),wc.current=bc,Ec){for(var u=en.memoizedState;u!==null;){var m=u.queue;m!==null&&(m.pending=null),u=u.next}Ec=!1}if(Ds=0,wn=mn=en=null,za=!1,$a=0,n0.current=null,a===null||a.return===null){xn=1,Ka=o,un=null;break}e:{var w=n,I=a.return,j=a,H=o;if(o=kn,j.flags|=32768,H!==null&&typeof H=="object"&&typeof H.then=="function"){var ee=H,pe=j,me=pe.tag;if(!(pe.mode&1)&&(me===0||me===11||me===15)){var he=pe.alternate;he?(pe.updateQueue=he.updateQueue,pe.memoizedState=he.memoizedState,pe.lanes=he.lanes):(pe.updateQueue=null,pe.memoizedState=null)}var be=ix(I);if(be!==null){be.flags&=-257,ax(be,I,j,w,o),be.mode&1&&sx(w,ee,o),o=be,H=ee;var Ie=o.updateQueue;if(Ie===null){var De=new Set;De.add(H),o.updateQueue=De}else Ie.add(H);break e}else{if(!(o&1)){sx(w,ee,o),d0();break e}H=Error(r(426))}}else if(Qt&&j.mode&1){var sn=ix(I);if(sn!==null){!(sn.flags&65536)&&(sn.flags|=256),ax(sn,I,j,w,o),Sf(Ii(H,j));break e}}w=H=Ii(H,j),xn!==4&&(xn=2),Ga===null?Ga=[w]:Ga.push(w),w=I;do{switch(w.tag){case 3:w.flags|=65536,o&=-o,w.lanes|=o;var J=rx(w,H,o);Tm(w,J);break e;case 1:j=H;var q=w.type,X=w.stateNode;if(!(w.flags&128)&&(typeof q.getDerivedStateFromError=="function"||X!==null&&typeof X.componentDidCatch=="function"&&(ts===null||!ts.has(X)))){w.flags|=65536,o&=-o,w.lanes|=o;var ye=ox(w,j,o);Tm(w,ye);break e}}w=w.return}while(w!==null)}Mx(a)}catch(Fe){o=Fe,un===a&&a!==null&&(un=a=a.return);continue}break}while(!0)}function Bx(){var n=Tc.current;return Tc.current=bc,n===null?bc:n}function d0(){(xn===0||xn===3||xn===2)&&(xn=4),En===null||!(Fs&268435455)&&!(Pc&268435455)||os(En,kn)}function Lc(n,o){var a=At;At|=2;var u=Bx();(En!==n||kn!==o)&&(_o=null,Bs(n,o));do try{i2();break}catch(m){Ox(n,m)}while(!0);if(bf(),At=a,Tc.current=u,un!==null)throw Error(r(261));return En=null,kn=0,xn}function i2(){for(;un!==null;)Lx(un)}function a2(){for(;un!==null&&!or();)Lx(un)}function Lx(n){var o=zx(n.alternate,n,cr);n.memoizedProps=n.pendingProps,o===null?Mx(n):un=o,n0.current=null}function Mx(n){var o=n;do{var a=o.alternate;if(n=o.return,o.flags&32768){if(a=e2(a,o),a!==null){a.flags&=32767,un=a;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{xn=6,un=null;return}}else if(a=ZS(a,o,cr),a!==null){un=a;return}if(o=o.sibling,o!==null){un=o;return}un=o=n}while(o!==null);xn===0&&(xn=5)}function Ls(n,o,a){var u=Lt,m=vr.transition;try{vr.transition=null,Lt=1,l2(n,o,a,u)}finally{vr.transition=m,Lt=u}return null}function l2(n,o,a,u){do Di();while(ns!==null);if(At&6)throw Error(r(327));a=n.finishedWork;var m=n.finishedLanes;if(a===null)return null;if(n.finishedWork=null,n.finishedLanes=0,a===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var w=a.lanes|a.childLanes;if($E(n,w),n===En&&(un=En=null,kn=0),!(a.subtreeFlags&2064)&&!(a.flags&2064)||Dc||(Dc=!0,$x(go,function(){return Di(),null})),w=(a.flags&15990)!==0,a.subtreeFlags&15990||w){w=vr.transition,vr.transition=null;var I=Lt;Lt=1;var j=At;At|=4,n0.current=null,n2(n,a),Rx(a,n),RS(df),Gl=!!uf,df=uf=null,n.current=a,r2(a),Ir(),At=j,Lt=I,vr.transition=w}else n.current=a;if(Dc&&(Dc=!1,ns=n,Fc=m),w=n.pendingLanes,w===0&&(ts=null),Md(a.stateNode),Qn(n,Dt()),o!==null)for(u=n.onRecoverableError,a=0;a<o.length;a++)m=o[a],u(m.value,{componentStack:m.stack,digest:m.digest});if(Nc)throw Nc=!1,n=s0,s0=null,n;return Fc&1&&n.tag!==0&&Di(),w=n.pendingLanes,w&1?n===i0?Ya++:(Ya=0,i0=n):Ya=0,Jo(),null}function Di(){if(ns!==null){var n=Ap(Fc),o=vr.transition,a=Lt;try{if(vr.transition=null,Lt=16>n?16:n,ns===null)var u=!1;else{if(n=ns,ns=null,Fc=0,At&6)throw Error(r(331));var m=At;for(At|=4,Ae=n.current;Ae!==null;){var w=Ae,I=w.child;if(Ae.flags&16){var j=w.deletions;if(j!==null){for(var H=0;H<j.length;H++){var ee=j[H];for(Ae=ee;Ae!==null;){var pe=Ae;switch(pe.tag){case 0:case 11:case 15:qa(8,pe,w)}var me=pe.child;if(me!==null)me.return=pe,Ae=me;else for(;Ae!==null;){pe=Ae;var he=pe.sibling,be=pe.return;if(Cx(pe),pe===ee){Ae=null;break}if(he!==null){he.return=be,Ae=he;break}Ae=be}}}var Ie=w.alternate;if(Ie!==null){var De=Ie.child;if(De!==null){Ie.child=null;do{var sn=De.sibling;De.sibling=null,De=sn}while(De!==null)}}Ae=w}}if(w.subtreeFlags&2064&&I!==null)I.return=w,Ae=I;else e:for(;Ae!==null;){if(w=Ae,w.flags&2048)switch(w.tag){case 0:case 11:case 15:qa(9,w,w.return)}var J=w.sibling;if(J!==null){J.return=w.return,Ae=J;break e}Ae=w.return}}var q=n.current;for(Ae=q;Ae!==null;){I=Ae;var X=I.child;if(I.subtreeFlags&2064&&X!==null)X.return=I,Ae=X;else e:for(I=q;Ae!==null;){if(j=Ae,j.flags&2048)try{switch(j.tag){case 0:case 11:case 15:Ic(9,j)}}catch(Fe){nn(j,j.return,Fe)}if(j===I){Ae=null;break e}var ye=j.sibling;if(ye!==null){ye.return=j.return,Ae=ye;break e}Ae=j.return}}if(At=m,Jo(),sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(Tr,n)}catch{}u=!0}return u}finally{Lt=a,vr.transition=o}}return!1}function jx(n,o,a){o=Ii(a,o),o=rx(n,o,1),n=Zo(n,o,1),o=Mn(),n!==null&&(va(n,1,o),Qn(n,o))}function nn(n,o,a){if(n.tag===3)jx(n,n,a);else for(;o!==null;){if(o.tag===3){jx(o,n,a);break}else if(o.tag===1){var u=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ts===null||!ts.has(u))){n=Ii(a,n),n=ox(o,n,1),o=Zo(o,n,1),n=Mn(),o!==null&&(va(o,1,n),Qn(o,n));break}}o=o.return}}function c2(n,o,a){var u=n.pingCache;u!==null&&u.delete(o),o=Mn(),n.pingedLanes|=n.suspendedLanes&a,En===n&&(kn&a)===a&&(xn===4||xn===3&&(kn&130023424)===kn&&500>Dt()-o0?Bs(n,0):r0|=a),Qn(n,o)}function Ux(n,o){o===0&&(n.mode&1?(o=Wl,Wl<<=1,!(Wl&130023424)&&(Wl=4194304)):o=1);var a=Mn();n=So(n,o),n!==null&&(va(n,o,a),Qn(n,a))}function u2(n){var o=n.memoizedState,a=0;o!==null&&(a=o.retryLane),Ux(n,a)}function d2(n,o){var a=0;switch(n.tag){case 13:var u=n.stateNode,m=n.memoizedState;m!==null&&(a=m.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(o),Ux(n,a)}var zx;zx=function(n,o,a){if(n!==null)if(n.memoizedProps!==o.pendingProps||qn.current)Gn=!0;else{if(!(n.lanes&a)&&!(o.flags&128))return Gn=!1,XS(n,o,a);Gn=!!(n.flags&131072)}else Gn=!1,Qt&&o.flags&1048576&&wm(o,fc,o.index);switch(o.lanes=0,o.tag){case 2:var u=o.type;kc(n,o),n=o.pendingProps;var m=Ei(o,Pn.current);ki(o,a),m=Of(null,o,u,n,m,a);var w=Bf();return o.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Kn(u)?(w=!0,cc(o)):w=!1,o.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Rf(o),m.updater=_c,o.stateNode=m,m._reactInternals=o,$f(o,u,
vendor: 8,650 bytes, line 53
53n,a),o=qf(null,o,u,!0,w,a)):(o.tag=0,Qt&&w&&yf(o),Ln(null,o,m,a),o=o.child),o;case 16:u=o.elementType;e:{switch(kc(n,o),n=o.pendingProps,m=u._init,u=m(u._payload),o.type=u,m=o.tag=h2(u),n=Fr(u,n),m){case 0:o=Vf(null,o,u,n,a);break e;case 1:o=hx(null,o,u,n,a);break e;case 11:o=lx(null,o,u,n,a);break e;case 14:o=cx(null,o,u,Fr(u.type,n),a);break e}throw Error(r(306,u,""))}return o;case 0:return u=o.type,m=o.pendingProps,m=o.elementType===u?m:Fr(u,m),Vf(n,o,u,m,a);case 1:return u=o.type,m=o.pendingProps,m=o.elementType===u?m:Fr(u,m),hx(n,o,u,m,a);case 3:e:{if(px(o),n===null)throw Error(r(387));u=o.pendingProps,w=o.memoizedState,m=w.element,Im(n,o),yc(o,u,null,a);var I=o.memoizedState;if(u=I.element,w.isDehydrated)if(w={element:u,isDehydrated:!1,cache:I.cache,pendingSuspenseBoundaries:I.pendingSuspenseBoundaries,transitions:I.transitions},o.updateQueue.baseState=w,o.memoizedState=w,o.flags&256){m=Ii(Error(r(423)),o),o=mx(n,o,u,a,m);break e}else if(u!==m){m=Ii(Error(r(424)),o),o=mx(n,o,u,a,m);break e}else for(lr=Go(o.stateNode.containerInfo.firstChild),ar=o,Qt=!0,Dr=null,a=km(o,null,u,a),o.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(bi(),u===m){o=bo(n,o,a);break e}Ln(n,o,u,a)}o=o.child}return o;case 5:return Nm(o),n===null&&Ef(o),u=o.type,m=o.pendingProps,w=n!==null?n.memoizedProps:null,I=m.children,ff(u,m)?I=null:w!==null&&ff(u,w)&&(o.flags|=32),fx(n,o),Ln(n,o,I,a),o.child;case 6:return n===null&&Ef(o),null;case 13:return xx(n,o,a);case 4:return If(o,o.stateNode.containerInfo),u=o.pendingProps,n===null?o.child=_i(o,null,u,a):Ln(n,o,u,a),o.child;case 11:return u=o.type,m=o.pendingProps,m=o.elementType===u?m:Fr(u,m),lx(n,o,u,m,a);case 7:return Ln(n,o,o.pendingProps,a),o.child;case 8:return Ln(n,o,o.pendingProps.children,a),o.child;case 12:return Ln(n,o,o.pendingProps.children,a),o.child;case 10:e:{if(u=o.type._context,m=o.pendingProps,w=o.memoizedProps,I=m.value,Wt(mc,u._currentValue),u._currentValue=I,w!==null)if(Nr(w.value,I)){if(w.children===m.children&&!qn.current){o=bo(n,o,a);break e}}else for(w=o.child,w!==null&&(w.return=o);w!==null;){var j=w.dependencies;if(j!==null){I=w.child;for(var H=j.firstContext;H!==null;){if(H.context===u){if(w.tag===1){H=Co(-1,a&-a),H.tag=2;var ee=w.updateQueue;if(ee!==null){ee=ee.shared;var pe=ee.pending;pe===null?H.next=H:(H.next=pe.next,pe.next=H),ee.pending=H}}w.lanes|=a,H=w.alternate,H!==null&&(H.lanes|=a),Af(w.return,a,o),j.lanes|=a;break}H=H.next}}else if(w.tag===10)I=w.type===o.type?null:w.child;else if(w.tag===18){if(I=w.return,I===null)throw Error(r(341));I.lanes|=a,j=I.alternate,j!==null&&(j.lanes|=a),Af(I,a,o),I=w.sibling}else I=w.child;if(I!==null)I.return=w;else for(I=w;I!==null;){if(I===o){I=null;break}if(w=I.sibling,w!==null){w.return=I.return,I=w;break}I=I.return}w=I}Ln(n,o,m.children,a),o=o.child}return o;case 9:return m=o.type,u=o.pendingProps.children,ki(o,a),m=gr(m),u=u(m),o.flags|=1,Ln(n,o,u,a),o.child;case 14:return u=o.type,m=Fr(u,o.pendingProps),m=Fr(u.type,m),cx(n,o,u,m,a);case 15:return ux(n,o,o.type,o.pendingProps,a);case 17:return u=o.type,m=o.pendingProps,m=o.elementType===u?m:Fr(u,m),kc(n,o),o.tag=1,Kn(u)?(n=!0,cc(o)):n=!1,ki(o,a),tx(o,u,m),$f(o,u,m,a),qf(null,o,u,!0,n,a);case 19:return yx(n,o,a);case 22:return dx(n,o,a)}throw Error(r(156,o.tag))};function $x(n,o){return Jt(n,o)}function f2(n,o,a,u){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wr(n,o,a,u){return new f2(n,o,a,u)}function f0(n){return n=n.prototype,!(!n||!n.isReactComponent)}function h2(n){if(typeof n=="function")return f0(n)?1:0;if(n!=null){if(n=n.$$typeof,n===$)return 11;if(n===re)return 14}return 2}function ss(n,o){var a=n.alternate;return a===null?(a=wr(n.tag,o,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=o,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&14680064,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,o=n.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a}function Mc(n,o,a,u,m,w){var I=2;if(u=n,typeof n=="function")f0(n)&&(I=1);else if(typeof n=="string")I=5;else e:switch(n){case F:return Ms(a.children,m,w,o);case P:I=8,m|=8;break;case U:return n=wr(12,a,o,m|2),n.elementType=U,n.lanes=w,n;case Y:return n=wr(13,a,o,m),n.elementType=Y,n.lanes=w,n;case te:return n=wr(19,a,o,m),n.elementType=te,n.lanes=w,n;case ue:return jc(a,m,w,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:I=10;break e;case B:I=9;break e;case $:I=11;break e;case re:I=14;break e;case ce:I=16,u=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return o=wr(I,a,o,m),o.elementType=n,o.type=u,o.lanes=w,o}function Ms(n,o,a,u){return n=wr(7,n,u,o),n.lanes=a,n}function jc(n,o,a,u){return n=wr(22,n,u,o),n.elementType=ue,n.lanes=a,n.stateNode={isHidden:!1},n}function h0(n,o,a){return n=wr(6,n,null,o),n.lanes=a,n}function p0(n,o,a){return o=wr(4,n.children!==null?n.children:[],n.key,o),o.lanes=a,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function p2(n,o,a,u,m){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ud(0),this.expirationTimes=Ud(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ud(0),this.identifierPrefix=u,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function m0(n,o,a,u,m,w,I,j,H){return n=new p2(n,o,a,j,H),o===1?(o=1,w===!0&&(o|=8)):o=0,w=wr(3,null,null,o),n.current=w,w.stateNode=n,w.memoizedState={element:u,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rf(w),n}function m2(n,o,a){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:N,key:u==null?null:""+u,children:n,containerInfo:o,implementation:a}}function Hx(n){if(!n)return Qo;n=n._reactInternals;e:{if(mt(n)!==n||n.tag!==1)throw Error(r(170));var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Kn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(n.tag===1){var a=n.type;if(Kn(a))return gm(n,a,o)}return o}function Wx(n,o,a,u,m,w,I,j,H){return n=m0(a,u,!0,n,m,w,I,j,H),n.context=Hx(null),a=n.current,u=Mn(),m=rs(a),w=Co(u,m),w.callback=o??null,Zo(a,w,m),n.current.lanes=m,va(n,m,u),Qn(n,u),n}function Uc(n,o,a,u){var m=o.current,w=Mn(),I=rs(m);return a=Hx(a),o.context===null?o.context=a:o.pendingContext=a,o=Co(w,I),o.payload={element:n},u=u===void 0?null:u,u!==null&&(o.callback=u),n=Zo(m,o,I),n!==null&&(Lr(n,m,I,w),gc(n,m,I)),I}function zc(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function Vx(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<o?a:o}}function x0(n,o){Vx(n,o),(n=n.alternate)&&Vx(n,o)}var qx=typeof reportError=="function"?reportError:function(n){console.error(n)};function g0(n){this._internalRoot=n}$c.prototype.render=g0.prototype.render=function(n){var o=this._internalRoot;if(o===null)throw Error(r(409));Uc(n,o,null,null)},$c.prototype.unmount=g0.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var o=n.containerInfo;Os(function(){Uc(null,n,null,null)}),o[yo]=null}};function $c(n){this._internalRoot=n}$c.prototype.unstable_scheduleHydration=function(n){if(n){var o=Ip();n={blockedOn:null,target:n,priority:o};for(var a=0;a<Vo.length&&o!==0&&o<Vo[a].priority;a++);Vo.splice(a,0,n),a===0&&Np(n)}};function y0(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Hc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function Kx(){}function x2(n,o,a,u,m){if(m){if(typeof u=="function"){var w=u;u=function(){var ee=zc(I);w.call(ee)}}var I=Wx(o,u,n,0,null,!1,!1,"",Kx);return n._reactRootContainer=I,n[yo]=I.current,Da(n.nodeType===8?n.parentNode:n),O
vendor: 1,075 bytes, line 53
53s(),I}for(;m=n.lastChild;)n.removeChild(m);if(typeof u=="function"){var j=u;u=function(){var ee=zc(H);j.call(ee)}}var H=m0(n,0,!1,null,null,!1,!1,"",Kx);return n._reactRootContainer=H,n[yo]=H.current,Da(n.nodeType===8?n.parentNode:n),Os(function(){Uc(o,H,a,u)}),H}function Wc(n,o,a,u,m){var w=a._reactRootContainer;if(w){var I=w;if(typeof m=="function"){var j=m;m=function(){var H=zc(I);j.call(H)}}Uc(o,I,n,m)}else I=x2(a,o,n,m,u);return zc(I)}kp=function(n){switch(n.tag){case 3:var o=n.stateNode;if(o.current.memoizedState.isDehydrated){var a=ya(o.pendingLanes);a!==0&&(zd(o,a|1),Qn(o,Dt()),!(At&6)&&(Ni=Dt()+500,Jo()))}break;case 13:Os(function(){var u=So(n,1);if(u!==null){var m=Mn();Lr(u,n,1,m)}}),x0(n,1)}},$d=function(n){if(n.tag===13){var o=So(n,134217728);if(o!==null){var a=Mn();Lr(o,n,134217728,a)}x0(n,134217728)}},Rp=function(n){if(n.tag===13){var o=rs(n),a=So(n,o);if(a!==null){var u=Mn();Lr(a,n,o,u)}x0(n,o)}},Ip=function(){return Lt},Tp=function(n,o){var a=Lt;try{return Lt=n,o()}finally{Lt=a}},je=function(n,o,a){switch(o){case"input":if(Rt(n,a),o=a.name,a.t
53ype==="radio"&&o!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<a.length;o++){var u=a[o];if(u!==n&&u.form===n.form){var m=ac(u);if(!m)throw Error(r(90));xt(u),Rt(u,m)}}}break;case"textarea":Le(n,a);break;case"select":o=a.value,o!=null&&Oe(n,!!a.multiple,o,!1)}},le=c0,M=Os;var g2={usingClientEntryPoint:!1,Events:[Ba,vi,ac,nt,Ct,c0]},Qa={findFiberByHostInstance:ks,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},y2={bundleType:Qa.bundleType,version:Qa.version,rendererPackageName:Qa.rendererPackageName,rendererConfig:Qa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Vn(n),n===null?null:n.stateNode},findFiberByHostInstance:Qa.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vc.isDisabled&&Vc.supportsFiber)try{Tr=Vc.inject(y2),sr=Vc}catch{}}return Jn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g2,Jn.createPortal=function(n,o){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y0(o))throw Error(r(200));return m2(n,o,null,a)},Jn.createRoot=function(n,o){if(!y0(n))throw Error(r(299));var a=!1,u="",m=qx;return o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(u=o.identifierPrefix),o.onRecoverableError!==void 0&&(m=o.onRecoverableError)),o=m0(n,1,!1,null,null,a,!1,u,m),n[yo]=o.current,Da(n.nodeType===8?n.parentNode:n),new g0(o)},Jn.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var o=n._reactInternals;if(o===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=Vn(o),n=n===null?null:n.stateNode,n},Jn.flushSync=function(n){return Os(n)},Jn.hydrate=function(n,o,a){if(!Hc(o))throw Error(r(200));return Wc(null,n,o,!0,a)},Jn.hydrateRoot=function(n,o,a){if(!y0(n))throw Error(r(405));var u=a!=null&&a.hydratedSources||null,m=!1,w="",I=qx;if(a!=null&&(a.unstable_strictMode===!0&&(m=!0),a.identifierPrefix!==void 0&&(w=a.identifierPrefix),a.onRecoverableError!==void 0&&(I=a.onRecoverableError)),o=Wx(o,null,n,1,a??null,m,!1,w,I),n[yo]=o.current,Da(n),u)for(n=0;n<u.length;n++)a=u[n],m=a._getVersion,m=m(a._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[a,m]:o.mutableSourceEagerHydrationData.push(a,m);return new $c(o)},Jn.render=function(n,o,a){if(!Hc(o))throw Error(r(200));return Wc(null,n,o,!1,a)},Jn.unmountComponentAtNode=function(n){if(!Hc(n))throw Error(r(40));return n._reactRootContainer?(Os(function(){Wc(null,null,n,!1,function(){n._reactRootContainer=null,n[yo]=null})}),!0):!1},Jn.unstable_batchedUpdates=c0,Jn.unstable_renderSubtreeIntoContainer=function(n,o,a,u){if(!Hc(a))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Wc(n,o,a,!1,u)},Jn.version="18.3.1-next-f1338f8080-20240426",Jn}var Cg;function B1(){if(Cg)return k0.exports;Cg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),k0.exports=Pb(),k0.exports}var Nl=B1();const iN=Rl(Nl);/** 54 * react-router v7.1.1 55 * 56 * Copyright (c) Remix Software Inc. 57 * 58 * This source code is licensed under the MIT license found in the 59 * LICENSE.md file in the root directory of this source tree. 60 * 61 * @license MIT 62 */function Nb(e){return R.createElement(UC,{flushSync:Nl.flushSync,...e})}const Db="modulepreload",Fb=function(e){return"/"+e},bg={},on=function(t,r,s){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));i=Promise.allSettled(r.map(h=>{if(h=Fb(h),h in bg)return;bg[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const g=document.createElement("link");if(g.rel=d?"stylesheet":Db,d||(g.as="script"),g.crossOrigin="",g.href=h,f&&g.setAttribute("nonce",f),document.head.appendChild(g),d)return new Promise((x,y)=>{g.addEventListener("load",x),g.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return i.then(c=>{for(const f of c||[])f.status==="rejected"&&l(f.reason);return t().catch(l)})},Ob="_main_phogl_1",Bb={main:Ob};/** 63 * @license lucide-react v0.471.1 - ISC 64 * 65 * This source code is licensed under the ISC license. 66 * See the LICENSE file in the root directory of this source tree. 67 */const Lb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),L1=(...e)=>e.filter((t,r,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===r).join(" ").trim();/** 68 * @license lucide-react v0.471.1 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */var Mb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 73 * @license lucide-react v0.471.1 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */const jb=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:i="",children:l,iconNode:c,...f},h)=>R.createElement("svg",{ref:h,...Mb,width:t,height:t,stroke:e,strokeWidth:s?Number(r)*24/Number(t):r,className:L1("lucide",i),...f},[...c.map(([d,p])=>R.createElement(d,p)),...Array.isArray(l)?l:[l]]));/** 78 * @license lucide-react v0.471.1 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const Bn=(e,t)=>{const r=R.forwardRef(({className:s,...i},l)=>R.createElement(jb,{ref:l,iconNode:t,className:L1(`lucide-${Lb(e)}`,s),...i}));return r.displayName=`${e}`,r};/** 83 * @license lucide-react v0.471.1 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const Ub=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],zb=Bn("Briefcase",Ub);/** 88 * @license lucide-react v0.471.1 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const $b=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
92],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Hb=Bn("Building2",$b);/** 93 * @license lucide-react v0.471.1 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const Wb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],_g=Bn("ChevronDown",Wb);/** 98 * @license lucide-react v0.471.1 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const Vb=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],qb=Bn("CircleCheckBig",Vb);/** 103 * @license lucide-react v0.471.1 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree. 107 */const Kb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]],Gb=Bn("CircleDollarSign",Kb);/** 108 * @license lucide-react v0.471.1 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const Yb=[["path",{d:"M12 12v4",key:"tww15h"}],["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M17 18h.5a1 1 0 0 0 0-9h-1.79A7 7 0 1 0 7 17.708",key:"xsb5ju"}]],Qb=Bn("CloudAlert",Yb);/** 113 * @license lucide-react v0.471.1 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const Jb=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Xb=Bn("Compass",Jb);/** 118 * @license lucide-react v0.471.1 - ISC 119 * 120 * This source code is licensed under the ISC license. 121 * See the LICENSE file in the root directory of this source tree. 122 */const Zb=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],e_=Bn("Filter",Zb);/** 123 * @license lucide-react v0.471.1 - ISC 124 * 125 * This source code is licensed under the ISC license. 126 * See the LICENSE file in the root directory of this source tree. 127 */const t_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],n_=Bn("Info",t_);/** 128 * @license lucide-react v0.471.1 - ISC 129 * 130 * This source code is licensed under the ISC license. 131 * See the LICENSE file in the root directory of this source tree. 132 */const r_=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],M1=Bn("Loader",r_);/** 133 * @license lucide-react v0.471.1 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const o_=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],s_=Bn("LogOut",o_);/** 138 * @license lucide-react v0.471.1 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */const i_=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],a_=Bn("Menu",i_);/** 143 * @license lucide-react v0.471.1 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const l_=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],c_=Bn("Search",l_);/** 148 * @license lucide-react v0.471.1 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const u_=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Y0=Bn("TriangleAlert",u_);/** 153 * @license lucide-react v0.471.1 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const d_=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],fl=Bn("User",d_);/** 158 * @license lucide-react v0.471.1 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const f_=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
162],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],j1=Bn("X",f_),h_="/assets/plexus-BUabADai.webp",U1="/assets/logo-text-Dfe5k43I.webp",p_="/assets/logo-text-bright-Dx1auDnp.webp",m_="/assets/Job_listing_promo-QOrJeOqt.webp",x_="/assets/Job_listing_promo_1-BY9gHpVp.webp",g_="/assets/Job_listing_promo_2-DsH2Kpi0.webp",y_="/assets/Job_listing_promo_3-XOtRghiy.webp",v_="/assets/base_error_bg-DlYaqhfD.webp",w_="data:image/svg+xml,%3csvg%20viewBox='0%200%20256%20256'%20width='1em'%20height='1em'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20fill='currentColor'%20d='M198.51%2056.09C186.44%2035.4%20169.92%2024%20152%2024h-48c-17.92%200-34.44%2011.4-46.51%2032.09C46.21%2075.42%2040%20101%2040%20128s6.21%2052.58%2017.49%2071.91C69.56%20220.6%2086.08%20232%20104%20232h48c17.92%200%2034.44-11.4%2046.51-32.09C209.79%20180.58%20216%20155%20216%20128s-6.21-52.58-17.49-71.91m1.28%2063.91h-32a152.8%20152.8%200%200%200-9.68-48h30.59c6.12%2013.38%2010.16%2030%2011.09%2048m-20.6-64h-28.73a83%2083%200%200%200-12-16H152c10%200%2019.4%206%2027.19%2016M56%20128c0-47.7%2022-88%2048-88s48%2040.3%2048%2088s-22%2088-48%2088s-48-40.3-48-88m96%2088h-13.51a83%2083%200%200%200%2012-16h28.73C171.4%20210%20162%20216%20152%20216m36.7-32h-30.58a152.8%20152.8%200%200%200%209.68-48h32c-.94%2018-4.98%2034.62-11.1%2048'/%3e%3c/svg%3e",Qc="data:image/svg+xml,%3c!--%20Blob%20used%20in%20the%20fallback%20for%20the%20job%20and%20the%20company%20poge!%20--%3e%3csvg%20viewBox='0%200%20200%20200'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='%23D0E2FF'%20d='M44.1,-77.1C57.3,-68.8,68.2,-57.2,76.8,-43.8C85.4,-30.4,91.8,-15.2,92.9,0.7C94.1,16.5,90,33.1,81.6,46.8C73.1,60.4,60.2,71.3,45.9,78.5C31.6,85.7,15.8,89.3,-0.1,89.5C-16.1,89.8,-32.2,86.6,-46.1,79.2C-60,71.7,-71.7,60,-79.8,46C-88,32.1,-92.5,16.1,-91.4,0.7C-90.2,-14.7,-83.3,-29.4,-74.6,-42.3C-65.8,-55.1,-55.1,-66.1,-42.4,-74.6C-29.6,-83.1,-14.8,-89.2,0.3,-89.7C15.5,-90.3,30.9,-85.3,44.1,-77.1Z'%20transform='translate(100%20100)'%20/%3e%3c/svg%3e",Ag="data:image/svg+xml,%3c!--%20Svg%20used%20for%20the%20fallback%20for%20the%20job%20and%20company%20page%20--%3e%3csvg%20width='100px'%20height='100px'%20viewBox='0%200%2036%2036'%20xmlns='http://www.w3.org/2000/svg'%20fill='%233B82F6'%3e%3cpath%20d='M27%2023c-2.589%200-4.005-2.549-5.374-5.014C20.537%2016.026%2019.411%2014%2018%2014c-1.412%200-2.537%202.026-3.626%203.986C13.004%2020.451%2011.588%2023%209%2023c-2.65%200-3.853-2.706-4.914-5.094C3.038%2015.546%202.256%2014%201%2014a1%201%200%200%201%200-2c2.65%200%203.853%202.706%204.914%205.094C6.962%2019.453%207.744%2021%209%2021c1.412%200%202.537-2.026%203.626-3.986C13.996%2014.549%2015.412%2012%2018%2012c2.589%200%204.005%202.549%205.374%205.014C24.463%2018.974%2025.589%2021%2027%2021c1.256%200%202.037-1.547%203.086-3.906C31.147%2014.706%2032.351%2012%2035%2012a1%201%200%201%201%200%202c-1.256%200-2.037%201.546-3.086%203.906C30.853%2020.294%2029.649%2023%2027%2023z'%3e%3c/path%3e%3c/svg%3e",kg={borderRadius:"6px",padding:"12px 16px"},E_={default:{...kg,fontWeight:"500",borderRadius:"50px"},glass:{...kg,background:"rgba(255, 255, 255, 0.2)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",boxShadow:"rgba(0, 0, 0, 0.35) 0px 5px 15px",border:"0.5px solid rgba(0, 0, 0, 0.3)"}},ji=(e={},t="default")=>({position:"top-center",autoClose:1e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,theme:"colored",...e,style:{...E_[t],...e.style||{}}});function z1(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=z1(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function vs(){for(var e,t,r=0,s="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=z1(e))&&(s&&(s+=" "),s+=t);return s}function S_(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}S_(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);
162-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
162.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
162}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}} 163`);var Dl=e=>typeof e=="number"&&!isNaN(e),Js=e=>typeof e=="string",Fo=e=>typeof e=="function",C_=e=>Js(e)||Dl(e),Q0=e=>Js(e)||Fo(e)?e:null,b_=(e,t)=>e===!1||Dl(e)&&e>0?e:t,J0=e=>R.isValidElement(e)||Js(e)||Fo(e)||Dl(e);function __(e,t,r=300){let{scrollHeight:s,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=s+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}function A_({enter:e,exit:t,appendPosition:r=!1,collapse:s=!0,collapseDuration:i=300}){return function({children:l,position:c,preventExitTransition:f,done:h,nodeRef:d,isIn:p,playToast:g}){let x=r?`${e}--${c}`:e,y=r?`${t}--${c}`:t,v=R.useRef(0);return R.useLayoutEffect(()=>{let E=d.current,C=x.split(" "),_=b=>{b.target===d.current&&(g(),E.removeEventListener("animationend",_),E.removeEventListener("animationcancel",_),v.current===0&&b.type!=="animationcancel"&&E.classList.remove(...C))};E.classList.add(...C),E.addEventListener("animationend",_),E.addEventListener("animationcancel",_)}
vendor: 4,248 bytes, line 163
163,[]),R.useEffect(()=>{let E=d.current,C=()=>{E.removeEventListener("animationend",C),s?__(E,h,i):h()};p||(f?C():(v.current=1,E.className+=` ${y}`,E.addEventListener("animationend",C)))},[p]),pt.createElement(pt.Fragment,null,l)}}function Rg(e,t){return{content:$1(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function $1(e,t,r=!1){return R.isValidElement(e)&&!Js(e.type)?R.cloneElement(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):Fo(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function k_({closeToast:e,theme:t,ariaLabel:r="close"}){return pt.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:s=>{s.stopPropagation(),e(!0)},"aria-label":r},pt.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},pt.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function R_({delay:e,isRunning:t,closeToast:r,type:s="default",hide:i,className:l,controlledProgress:c,progress:f,rtl:h,isIn:d,theme:p}){let g=i||c&&f===0,x={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};c&&(x.transform=`scaleX(${f})`);let y=vs("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":h}),v=Fo(l)?l({rtl:h,type:s,defaultClassName:y}):vs(y,l),E={[c&&f>=1?"onTransitionEnd":"onAnimationEnd"]:c&&f<1?null:()=>{d&&r()}};return pt.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},pt.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${s}`}),pt.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:v,style:x,...E}))}var I_=1,H1=()=>`${I_++}`;function T_(e,t,r){let s=1,i=0,l=[],c=[],f=t,h=new Map,d=new Set,p=b=>(d.add(b),()=>d.delete(b)),g=()=>{c=Array.from(h.values()),d.forEach(b=>b())},x=({containerId:b,toastId:A,updateId:T})=>{let k=b?b!==e:e!==1,N=h.has(A)&&T==null;return k||N},y=(b,A)=>{h.forEach(T=>{var k;(A==null||A===T.props.toastId)&&((k=T.toggle)==null||k.call(T,b))})},v=b=>{var A,T;(T=(A=b.props)==null?void 0:A.onClose)==null||T.call(A,b.removalReason),b.isActive=!1},E=b=>{if(b==null)h.forEach(v);else{let A=h.get(b);A&&v(A)}g()},C=()=>{i-=l.length,l=[]},_=b=>{var A,T;let{toastId:k,updateId:N}=b.props,F=N==null;b.staleId&&h.delete(b.staleId),b.isActive=!0,h.set(k,b),g(),r(Rg(b,F?"added":"updated")),F&&((T=(A=b.props).onOpen)==null||T.call(A))};return{id:e,props:f,observe:p,toggle:y,removeToast:E,toasts:h,clearQueue:C,buildToast:(b,A)=>{if(x(A))return;let{toastId:T,updateId:k,data:N,staleId:F,delay:P}=A,U=k==null;U&&i++;let O={...f,style:f.toastStyle,key:s++,...Object.fromEntries(Object.entries(A).filter(([$,Y])=>Y!=null)),toastId:T,updateId:k,data:N,isIn:!1,className:Q0(A.className||f.toastClassName),progressClassName:Q0(A.progressClassName||f.progressClassName),autoClose:A.isLoading?!1:b_(A.autoClose,f.autoClose),closeToast($){h.get(T).removalReason=$,E(T)},deleteToast(){let $=h.get(T);if($!=null){if(r(Rg($,"removed")),h.delete(T),i--,i<0&&(i=0),l.length>0){_(l.shift());return}g()}}};O.closeButton=f.closeButton,A.closeButton===!1||J0(A.closeButton)?O.closeButton=A.closeButton:A.closeButton===!0&&(O.closeButton=J0(f.closeButton)?f.closeButton:!0);let B={content:b,props:O,staleId:F};f.limit&&f.limit>0&&i>f.limit&&U?l.push(B):Dl(P)?setTimeout(()=>{_(B)},P):_(B)},setProps(b){f=b},setToggle:(b,A)=>{let T=h.get(b);T&&(T.toggle=A)},isToastActive:b=>{var A;return(A=h.get(b))==null?void 0:A.isActive},getSnapshot:()=>c}}var $n=new Map,xl=[],X0=new Set,P_=e=>X0.forEach(t=>t(e)),W1=()=>$n.size>0;function N_(){xl.forEach(e=>q1(e.content,e.options)),xl=[]}var D_=(e,{containerId:t})=>{var r;return(r=$n.get(t||1))==null?void 0:r.toasts.get(e)};function V1(e,t){var r;if(t)return!!((r=$n.get(t))!=null&&r.isToastActive(e));let s=!1;
vendor: 1,339 bytes, line 163
163return $n.forEach(i=>{i.isToastActive(e)&&(s=!0)}),s}function F_(e){if(!W1()){xl=xl.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||C_(e))$n.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=$n.get(e.containerId);t?t.removeToast(e.id):$n.forEach(r=>{r.removeToast(e.id)})}}var O_=(e={})=>{$n.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function q1(e,t){J0(e)&&(W1()||xl.push({content:e,options:t}),$n.forEach(r=>{r.buildToast(e,t)}))}function B_(e){var t;(t=$n.get(e.containerId||1))==null||t.setToggle(e.id,e.fn)}function K1(e,t){$n.forEach(r=>{(t==null||!(t!=null&&t.containerId)||(t==null?void 0:t.containerId)===r.id)&&r.toggle(e,t==null?void 0:t.id)})}function L_(e){let t=e.containerId||1;return{subscribe(r){let s=T_(t,e,P_);$n.set(t,s);let i=s.observe(r);return N_(),()=>{i(),$n.delete(t)}},setProps(r){var s;(s=$n.get(t))==null||s.setProps(r)},getSnapshot(){var r;return(r=$n.get(t))==null?void 0:r.getSnapshot()}}}function M_(e){return X0.add(e),()=>{X0.delete(e)}}function j_(e){return e&&(Js(e.toastId)||Dl(e.toastId))?e.toastId:H1()}function Fl(e,t){return q1(e,t),t.toastId}function Sd(e,t){return{...t,type:t&&t.type||e,toastId:j_(t)}}function Cd(e){return(t,r)=>Fl(t,Sd(e,r))}function kt(e,t){return Fl(e,Sd("default",t))}kt.loading=(e,t)=>
vendor: 6,986 bytes, line 163
163Fl(e,Sd("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function U_(e,{pending:t,error:r,success:s},i){let l;t&&(l=Js(t)?kt.loading(t,i):kt.loading(t.render,{...i,...t}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(d,p,g)=>{if(p==null){kt.dismiss(l);return}let x={type:d,...c,...i,data:g},y=Js(p)?{render:p}:p;return l?kt.update(l,{...x,...y}):kt(y.render,{...x,...y}),g},h=Fo(e)?e():e;return h.then(d=>f("success",s,d)).catch(d=>f("error",r,d)),h}kt.promise=U_;kt.success=Cd("success");kt.info=Cd("info");kt.error=Cd("error");kt.warning=Cd("warning");kt.warn=kt.warning;kt.dark=(e,t)=>Fl(e,Sd("default",{theme:"dark",...t}));function z_(e){F_(e)}kt.dismiss=z_;kt.clearWaitingQueue=O_;kt.isActive=V1;kt.update=(e,t={})=>{let r=D_(e,t);if(r){let{props:s,content:i}=r,l={delay:100,...s,...t,toastId:t.toastId||e,updateId:H1()};l.toastId!==e&&(l.staleId=e);let c=l.render||i;delete l.render,Fl(c,l)}};kt.done=e=>{kt.update(e,{progress:1})};kt.onChange=M_;kt.play=e=>K1(!0,e);kt.pause=e=>K1(!1,e);function $_(e){var t;let{subscribe:r,getSnapshot:s,setProps:i}=R.useRef(L_(e)).current;i(e);let l=(t=R.useSyncExternalStore(r,s,s))==null?void 0:t.slice();function c(f){if(!l)return[];let h=new Map;return e.newestOnTop&&l.reverse(),l.forEach(d=>{let{position:p}=d.props;h.has(p)||h.set(p,[]),h.get(p).push(d)}),Array.from(h,d=>f(d[0],d[1]))}return{getToastToRender:c,isToastActive:V1,count:l==null?void 0:l.length}}function H_(e){let[t,r]=R.useState(!1),[s,i]=R.useState(!1),l=R.useRef(null),c=R.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:f,pauseOnHover:h,closeToast:d,onClick:p,closeOnClick:g}=e;B_({id:e.toastId,containerId:e.containerId,fn:r}),R.useEffect(()=>{if(e.pauseOnFocusLoss)return x(),()=>{y()}},[e.pauseOnFocusLoss]);function x(){document.hasFocus()||_(),window.addEventListener("focus",C),window.addEventListener("blur",_)}function y(){window.removeEventListener("focus",C),window.removeEventListener("blur",_)}function v(F){if(e.draggable===!0||e.draggable===F.pointerType){b();let P=l.current;c.canCloseOnClick=!0,c.canDrag=!0,P.style.transition="none",e.draggableDirection==="x"?(c.start=F.clientX,c.removalDistance=P.offsetWidth*(e.draggablePercent/100)):(c.start=F.clientY,c.removalDistance=P.offsetHeight*(e.draggablePercent===80?e.draggablePercent*1.5:e.draggablePercent)/100)}}function E(F){let{top:P,bottom:U,left:O,right:B}=l.current.getBoundingClientRect();F.nativeEvent.type!=="touchend"&&e.pauseOnHover&&F.clientX>=O&&F.clientX<=B&&F.clientY>=P&&F.clientY<=U?_():C()}function C(){r(!0)}function _(){r(!1)}function b(){c.didMove=!1,document.addEventListener("pointermove",T),document.addEventListener("pointerup",k)}function A(){document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",k)}function T(F){let P=l.current;if(c.canDrag&&P){c.didMove=!0,t&&_(),e.draggableDirection==="x"?c.delta=F.clientX-c.start:c.delta=F.clientY-c.start,c.start!==F.clientX&&(c.canCloseOnClick=!1);let U=e.draggableDirection==="x"?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`;P.style.transform=`translate3d(${U},0)`,P.style.opacity=`${1-Math.abs(c.delta/c.removalDistance)}`}}function k(){A();let F=l.current;if(c.canDrag&&c.didMove&&F){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance){i(!0),e.closeToast(!0),e.collapseAll();return}F.style.transition="transform 0.2s, opacity 0.2s",F.style.removeProperty("transform"),F.style.removeProperty("opacity")}}let N={onPointerDown:v,onPointerUp:E};return f&&h&&(N.onMouseEnter=_,e.stacked||(N.onMouseLeave=C)),g&&(N.onClick=F=>{p&&p(F),c.canCloseOnClick&&d(!0)}),{playToast:C,pauseToast:_,isRunning:t,preventExitTransition:s,toastRef:l,eventHandlers:N}}var W_=typeof window<"u"?R.useLayoutEffect:R.useEffect,bd=({theme:e,type:t,isLoading:r,...s})=>pt.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`,...s});function V_(e){return pt.createElement(bd,{...e},pt.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function q_(e){return pt.createElement(bd,{...e},pt.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function K_(e){return pt.createElement(bd,{...e},pt.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function G_(e){return pt.createElement(bd,{...e},pt.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function Y_(){return pt.createElement("div",{className:"Toastify__spinner"})}var Z0={info:q_,warning:V_,success:K_,error:G_,spinner:Y_},Q_=e=>e in Z0;function J_({theme:e,type:t,isLoading:r,icon:s}){let i=null,l={theme:e,type:t};return s===!1||(Fo(s)?i=s({...l,isLoading:r}):R.isValidElement(s)?i=R.cloneElement(s,l):r?i=Z0.spinner():Q_(t)&&(i=Z0[t](l))),i}var X_=e=>{let{isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:i,playToast:l}=H_(e),{closeButton:c,children:f,autoClose:h,onClick:d,type:p,hideProgressBar:g,closeToast:x,transition:y,position:v,className:E,style:C,progressClassName:_,updateId:b,role:A,progress:T,rtl:k,toastId:N,deleteToast:F,isIn:P,isLoading:U,closeOnClick:O,theme:B,ariaLabel:$}=e,Y=vs("Toastify__toast",`Toastify__toast-theme--${B}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":O}),te=Fo(E)?E({rtl:k,position:v,type:p,defaultClassName:Y}):vs(Y,E),re=J_(e),ce=!!T||!h,ue={closeToast:x,type:p,theme:B},W=null;return c===!1||(Fo(c)?W=c(ue):R.isValidElement(c)?W=R.cloneElement(c,ue):W=k_(ue)),pt.createElement(y,{isIn:P,done:F,position:v,preventExitTransition:r,nodeRef:s,playToast:l},pt.createElement("div",{id:N,tabIndex:0,onClick:d,"data-in":P,className:te,...i,style:C,ref:s,...P&&{role:A,"aria-label":$}},re!=null&&pt.createElement("div",{className:vs("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter"
163:!U})},re),$1(f,e,!t),W,!e.customProgressBar&&pt.createElement(R_,{...b&&!ce?{key:`p-${b}`}:{},rtl:k,theme:B,delay:h,isRunning:t,isIn:P,closeToast:x,hide:g,type:p,className:_,controlledProgress:ce,progress:T||0})))},Z_=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),e4=A_(Z_("bounce",!0)),t4={position:"top-right",transition:e4,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&e.code==="KeyT"};function n4(e){let t={...t4,...e},r=e.stacked,[s,i]=R.useState(!0),l=R.useRef(null),{getToastToRender:c,isToastActive:f,count:h}=$_(t),{className:d,style:p,rtl:g,containerId:x,hotKeys:y}=t;function v(C){let _=vs("Toastify__toast-container",`Toastify__toast-container--${C}`,{"Toastify__toast-container--rtl":g});return Fo(d)?d({position:C,rtl:g,defaultClassName:_}):vs(_,Q0(d))}function E(){r&&(i(!0),kt.play())}return W_(()=>{var C;if(r){let _=l.current.querySelectorAll('[data-in="true"]'),b=12,A=(C=t.position)==null?void 0:C.includes("top"),T=0,k=0;Array.from(_).reverse().forEach((N,F)=>{let P=N;P.classList.add("Toastify__toast--stacked"),F>0&&(P.dataset.collapsed=`${s}`),P.dataset.pos||(P.dataset.pos=A?"top":"bot");let U=T*(s?.2:1)+(s?0:b*F);P.style.setProperty("--y",`${A?U:U*-1}px`),P.style.setProperty("--g",`${b}`),P.style.setProperty("--s",`${1-(s?k:0)}`),T+=P.offsetHeight,k+=.025})}},[s,h,r]),R.useEffect(()=>{function C(_){var b;let A=l.current;y(_)&&((b=A.querySelector('[tabIndex="0"]'))==null||b.focus(),i(!1),kt.pause()),_.key==="Escape"&&(document.activeElement===A||A!=null&&A.contains(document.activeElement))&&(i(!0),kt.play())}return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[y]),pt.createElement("section",{ref:l,className:"Toastify",id:x,onMouseEnter:()=>{r&&(i(!1),kt.pause())},onMouseLeave:E,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},c((C,_)=>{let b=_.length?{...p}:{...p,pointerEvents:"none"};return pt.createElement("div",{tabIndex:-1,className:v(C),"data-stacked":r,style:b,key:`c-${C}`},_.map(({content:A,props:T})=>pt.createElement(X_,{...T,stacked:r,collapseAll:E,isIn:f(T.toastId,T.containerId),key:`t-${T.key}`},A)))}))}const r4="Logging",o4="x-amz-user-agent",s4="NoHubcallbackProvidedException";var ur;(function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE",e.NONE="NONE"})(ur||(ur={}));const Ig={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class tr{constructor(t,r=ur.WARN){this.name=t,this.level=r,this._pluggables=[]}_padding(t){return t<10?"0"+t:""+t}_ts(){const t=new Date;return[this._padding(t.getMinutes()),this._padding(t.getSeconds())].join(":")+"."+t.getMilliseconds()}configure(t){return t?(this._config=t,this._config):this._config}_log(t,...r){let s=this.level;tr.LOG_LEVEL&&(s=tr.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(s=window.LOG_LEVEL);const i=Ig[s];if(!(Ig[t]>=i))return;let c=console.log.bind(console);t===ur.ERROR&&console.error&&(c=console.error.bind(console)),t===ur.WARN&&console.warn&&(c=console.warn.bind(console)),tr.BIND_ALL_LOG_LEVELS&&(t===ur.INFO&&console.info&&(c=console.info.bind(console)),t===ur.DEBUG&&console.debug&&(c=console.debug.bind(console)));const f=`[${t}] ${this._ts()} ${this.name}`;let h="";if(r.length===1&&typeof r[0]=="string")h=`${f} - ${r[0]}`,c(h);else if(r.length===1)h=`${f} ${r[0]}`,c(f,r[0]);else if(typeof r[0]=="string"){let d=r.slice(1);d.length===1&&(d=d[0]),h=`${f} - ${r[0]} ${d}`,c(`${f} - ${r[0]}`,d)}else h=`${f} ${r}`,c(f,r);for(const d of this._pluggables){const p={message:h,timestamp:Date.now()};d.pushLogs([p])}}log(...t){this._log(ur.INFO,...t)}info(...t){this._log(ur.INFO,...t)}warn(...t){this._log(ur.WARN,...t)}error(...t){this._log(ur.ERROR,...t)}debug(...t){this._log(ur.DEBUG,...t)}verbose(...t){this._log(ur.VERBOSE,...t)}addPluggable(t){t&&t.getCategoryName()===r4&&(this._pluggables.push(t),t.configure(this._config))}listPluggables(){return this._pluggables}}tr.LOG_LEVEL=null;tr.BIND_ALL_LOG_LEVELS=!1;
163class nr extends Error{constructor({message:t,name:r,recoverySuggestion:s,underlyingError:i}){super(t),this.name=r,this.underlyingError=i,this.recoverySuggestion=s,this.constructor=nr,Object.setPrototypeOf(this,nr.prototype)}}var Ss;(function(e){e.NoEndpointId="NoEndpointId",e.PlatformNotSupported="PlatformNotSupported",e.Unknown="Unknown",e.NetworkError="NetworkError"})(Ss||(Ss={}));const Gh=(e,t=nr)=>(r,s,i)=>{const{message:l,recoverySuggestion:c}=e[s];if(!r)throw new t({name:s,message:i?`${l} ${i}`:l,recoverySuggestion:c})},lo=typeof Symbol<"u"?Symbol("amplify_default"):"@@amplify_default",nl=new tr("Hub");class G1{constructor(t){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=t}_remove(t,r){const s=this.listeners.get(t);if(!s){nl.warn(`No listeners for ${t}`);return}this.listeners.set(t,[...s.filter(({callback:i})=>i!==r)])}dispatch(t,r,s,i){typeof t=="string"&&this.protectedChannels.indexOf(t)>-1&&(i===lo||nl.warn(`WARNING: ${t} is protected and dispatching on it can have unintended consequences`));const l={channel:t,payload:{...r},source:s,patternInfo:[]};try{this._toListeners(l)}catch(c){nl.error(c)}}listen(t,r,s="noname"){let i;if(typeof r!="function")throw new nr({name:s4,message:"No callback supplied to Hub"});i=r;let l=this.listeners.get(t);return l||(l=[],this.listeners.set(t,l)),l.push({name:s,callback:i}),()=>{this._remove(t,i)}}_toListeners(t){const{channel:r,payload:s}=t,i=this.listeners.get(r);i&&i.forEach(l=>{nl.debug(`Dispatching to ${r} with `,s);try{l.callback(t)}catch(c){nl.error(c)}})}}const Hr=new G1("__default__"),id=new G1("internal-hub"),Y1=()=>{if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto;if(typeof crypto=="object")return crypto;throw new nr({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},i4=()=>{if(typeof window<"u"&&typeof window.btoa=="function")return window.btoa;if(typeof btoa=="function")return btoa;throw new nr({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},a4=()=>{if(typeof window<"u"&&typeof window.atob=="function")return window.atob;if(typeof atob=="function")return atob;throw new nr({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})},Yh={convert(e,t){let r=e;return t!=null&&t.urlSafe&&(r=r.replace(/-/g,"+").replace(/_/g,"/")),a4()(r)}};var so;(function(e){e.AuthTokenConfigException="AuthTokenConfigException",e.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",e.AuthUserPoolException="AuthUserPoolException",e.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",e.OAuthNotConfigureException="OAuthNotConfigureException"})(so||(so={}));const l4={[so.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[so.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[so.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[so.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[so.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},Qh=Gh(l4);function Pt(e){let t=!0;e?t=!!e.userPoolId&&!!e.userPoolClientId:t=!1,Qh(t,so.AuthUserPoolException)}function _d(e){var r,s,i,l,c,f,h,d;const t=!!((s=(r=e==null?void 0:e.loginWith)==null?void 0:r.oauth)!=null&&s.domain)&&!!((l=(i=e==null?void 0:e.loginWith)==null?void 0:i.oauth)!=null&&l.redirectSignOut)&&!!((f=(c=e==null?void 0:e.loginWith)==null?void 0:c.oauth)!=null&&f.redirectSignIn)&&!!((d=(h=e==null?void 0:e.loginWith)==null?void 0:h.oauth)!=null&&d.responseType);Qh(t,so.OAuthNotConfigureException)}function mu(e){const t=!!(e!=null&&e.identityPoolId);Qh(t,so.InvalidIdentityPoolIdException)}function Oo(e){const t=e.split(".");if(t.length!==3)throw new Error("Invalid token");try{const s=t[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(Yh.convert(s).split("").map(c=>
163`%${`00${c.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),l=JSON.parse(i);return{toString:()=>e,payload:l}}catch{throw new Error("Invalid token payload")}}const Q1=e=>{const t=Reflect.ownKeys(e);for(const r of t){const s=e[r];(s&&typeof s=="object"||typeof s=="function")&&Q1(s)}return Object.freeze(e)},c4=new tr("parseAWSExports"),u4={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},d4=(e={})=>{var K,ve,Ee,we,se,Ce;if(!Object.prototype.hasOwnProperty.call(e,"aws_project_region"))throw new nr({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});const{aws_appsync_apiKey:t,aws_appsync_authenticationType:r,aws_appsync_graphqlEndpoint:s,aws_appsync_region:i,aws_bots_config:l,aws_cognito_identity_pool_id:c,aws_cognito_sign_up_verification_method:f,aws_cognito_mfa_configuration:h,aws_cognito_mfa_types:d,aws_cognito_password_protection_settings:p,aws_cognito_verification_mechanisms:g,aws_cognito_signup_attributes:x,aws_cognito_social_providers:y,aws_cognito_username_attributes:v,aws_mandatory_sign_in:E,aws_mobile_analytics_app_id:C,aws_mobile_analytics_app_region:_,aws_user_files_s3_bucket:b,aws_user_files_s3_bucket_region:A,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:T,aws_user_pools_id:k,aws_user_pools_web_client_id:N,geo:F,oauth:P,predictions:U,aws_cloud_logic_custom:O,Notifications:B,modelIntrospection:$}=e,Y={};C&&(Y.Analytics={Pinpoint:{appId:C,region:_}});const{InAppMessaging:te,Push:re}=B??{};if(te!=null&&te.AWSPinpoint||re!=null&&re.AWSPinpoint){if(te!=null&&te.AWSPinpoint){const{appId:Se,region:He}=te.AWSPinpoint;Y.Notifications={InAppMessaging:{Pinpoint:{appId:Se,region:He}}}}if(re!=null&&re.AWSPinpoint){const{appId:Se,region:He}=re.AWSPinpoint;Y.Notifications={...Y.Notifications,PushNotification:{Pinpoint:{appId:Se,region:He}}}}}if(Array.isArray(l)&&(Y.Interactions={LexV1:Object.fromEntries(l.map(Se=>[Se.name,Se]))}),s){const Se=u4[r];Se||c4.debug(`Invalid authentication type ${r}. Falling back to IAM.`),Y.API={GraphQL:{endpoint:s,apiKey:t,region:i,defaultAuthMode:Se??"iam"}},$&&(Y.API.GraphQL.modelIntrospection=$)}const ce=h?{status:h&&h.toLowerCase(),totpEnabled:(d==null?void 0:d.includes("TOTP"))??!1,smsEnabled:(d==null?void 0:d.includes("SMS"))??!1}:void 0,ue=p?{minLength:p.passwordPolicyMinLength,requireLowercase:((K=p.passwordPolicyCharacters)==null?void 0:K.includes("REQUIRES_LOWERCASE"))??!1,requireUppercase:((ve=p.passwordPolicyCharacters)==null?void 0:ve.includes("REQUIRES_UPPERCASE"))??!1,requireNumbers:((Ee=p.passwordPolicyCharacters)==null?void 0:Ee.includes("REQUIRES_NUMBERS"))??!1,requireSpecialCharacters:((we=p.passwordPolicyCharacters)==null?void 0:we.includes("REQUIRES_SYMBOLS"))??!1}:void 0,ne=Array.from(new Set([...g??[],...x??[]])).reduce((Se,He)=>({...Se,[He.toLowerCase()]:{required:!0}}),{}),oe=(v==null?void 0:v.includes("EMAIL"))??!1,D=(v==null?void 0:v.includes("PHONE_NUMBER"))??!1;(c||k)&&(Y.Auth={Cognito:{identityPoolId:c,allowGuestAccess:E!=="enable",signUpVerificationMethod:f,userAttributes:ne,userPoolClientId:N,userPoolId:k,mfa:ce,passwordFormat:ue,loginWith:{username:!(oe||D),email:oe,phone:D}}});const z=P?Object.keys(P).length>0:!1,L=y?y.length>0:!1;if(Y.Auth&&z&&(Y.Auth.Cognito.loginWith={...Y.Auth.Cognito.loginWith,oauth:{...f4(P),...L&&{providers:h4(y)}}}),b&&(Y.Storage={S3:{bucket:b,region:A,dangerouslyConnectToHttpEndpointForTesting:T}}),F){const{amazon_location_service:Se}=F;Y.Geo={LocationService:{maps:Se.maps,geofenceCollections:Se.geofenceCollections,searchIndices:Se.search_indices,region:Se.region}}}if(O&&(Y.API={...Y.API,REST:O.reduce((Se,He)=>{const{name:xt,endpoint:Ge,region:St,service:bt}=He;return{...Se,[xt]:{endpoint:Ge,...bt?{service:bt}:void 0,...St?{region:St}:void 0}}},{})}),U){const{VoiceId:Se}=((Ce=(se=U==null?void 0:U.convert)==null?void 0:se.speechGenerator)==null?void 0:Ce.defaults)??{};Y.Predictions=Se?{...U,convert:{...U.convert,speechGenerator:{...U.convert.speechGenerator,defaults:{voiceId:Se}}}}:U}return Y},Tg=e=>(e==null?void 0:e.split(","))??[],f4=({domain:e,scope:t,redirectSignIn:r,redirectSignOut:s,responseType:i})=>({domain:e,scopes:t,redirectSignIn:Tg(r),redirectSignOut:Tg(s),responseType:i}),h4=e=>e.map(t=>{const r=t.toLowerCase();return r.charAt(0).toUpperCase()+r.slice(1)}),J1=Symbol("oauth-listener");function p4(e){const{version:t}=e;return t?t.startsWith("1"):!1}function m4(e){if(!e)return;const{bucket_name:t,aws_region:r,buckets:s}=e;return{S3:{bucket:t,region:r,buckets:s&&A4(s)}}}function x4(e){if(!e)return;const{user_pool_id:t,user_pool_client_id:r,identity_pool_id:s,password_policy:i,mfa_configuration:l,mfa_methods:c,unauthenticated_identities_enabled:f,oauth:h,username_attributes:d,standard_required_attributes:p,groups:g}=e,x={Cognito:{userPoolId:t,userPoolClientId:r,groups:g}};return s&&(x.Cognito={...x.Cognito,identityPoolId:s}),i&&(x.Cognito.passwordFormat={requireLowercase:i.require_lowercase,requireNumbers:i.require_numbers,requireUppercase:i.require_uppercase,requireSpecialCharacters:i.require_symbols,minLength:i.min_length??6}),l&&(x.Cognito.mfa={status:_4(l),smsEnabled:c==null?void 0:c.includes("SMS"),totpEnabled:c==null?void 0:c.includes("TOTP")}),f&&(x.Cognito.allowGuestAccess=f),h&&(x.Cognito.loginWith={oauth:{domain:h.domain,redirectSignIn:h.redirect_sign_in_uri,redirectSignOut:h.redirect_sign_out_uri,responseType:h.response_type==="token"?"token":"code",scopes:h.scopes,providers:b4(h.identity_providers)}}),d&&(x.Cognito.loginWith={...x.Cognito.loginWith,email:d.includes("email"),phone:d.includes("phone_number"),username:d.includes("username")}),p&&(x.Cognito.userAttributes=p.reduce((y,v)=>({...y,[v]:{required:!0}}),{})),x}function g4(e){if(!(e!=null&&e.amazon_pinpoint))return;const{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}function y4(e){if(!e)return;const{aws_region:t,geofence_collections:r,maps:s,search_indices:i}=e;return{LocationService:{region:t,searchIndices:i,geofenceCollections:r,maps:s}}}function v4(e){if(!e)return;const{aws_region:t,default_authorization_type:r,url:s,api_key:i,model_introspection:l}=e;return{GraphQL:{endpoint:s,defaultAuthMode:X1(r),region:t,apiKey:i,modelIntrospection:l}}}function w4(e){if(!(e!=null&&e.events))return;const{url:t,aws_region:r,api_key:s,default_authorization_type:i}=e.events;return{Events:{endpoint:t,defaultAuthMode:X1(i),region:r,apiKey:s}}}function E4(e){if(!e)return;const{aws_region:t,channels:r,amazon_pinpoint_app_id:s}=e,i=r.includes("IN_APP_MESSAGING"),l=r.includes("APNS")||r.includes("FCM");if(!(i||l))return;const c={};return i&&(c.InAppMessaging={Pinpoint:{appId:s,region:t}}),l&&(c.PushNotification={Pinpoint:{appId:s,region:t}}),c}function S4(e){const t={};if(e.storage&&(t.Storage=m4(e.storage)),e.auth&&(t.Auth=x4(e.auth)),e.analytics&&(t.Analytics=g4(e.anal
163ytics)),e.geo&&(t.Geo=y4(e.geo)),e.data&&(t.API=v4(e.data)),e.custom){const r=w4(e.custom);r&&"Events"in r&&(t.API={...t.API,...r})}return e.notifications&&(t.Notifications=E4(e.notifications)),t}const C4={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function X1(e){return C4[e]}const Pg={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function b4(e=[]){return e.reduce((t,r)=>(Pg[r]!==void 0&&t.push(Pg[r]),t),[])}function _4(e){return e==="OPTIONAL"?"optional":e==="REQUIRED"?"on":"off"}function A4(e){const t={};return e.forEach(({name:r,bucket_name:s,aws_region:i,paths:l})=>{if(r in t)throw new Error(`Duplicate friendly name found: ${r}. Name must be unique.`);const c=l?Object.entries(l).reduce((f,[h,d])=>(d!==void 0&&(f[h]=d),f),{}):void 0;t[r]={bucketName:s,region:i,paths:c}}),t}const Z1=e=>Object.keys(e).some(t=>t.startsWith("aws_"))?d4(e):p4(e)?S4(e):e;var eh=function(e,t){return eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},eh(e,t)};function Ol(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");eh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function k4(e,t,r,s){function i(l){return l instanceof r?l:new r(function(c){c(l)})}return new(r||(r=Promise))(function(l,c){function f(p){try{d(s.next(p))}catch(g){c(g)}}function h(p){try{d(s.throw(p))}catch(g){c(g)}}function d(p){p.done?l(p.value):i(p.value).then(f,h)}d((s=s.apply(e,t||[])).next())})}function R4(e,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},s,i,l,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c.next=f(0),c.throw=f(1),c.return=f(2),typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(d){return function(p){return h([d,p])}}function h(d){if(s)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(r=0)),r;)try{if(s=1,i&&(l=d[0]&2?i.return:d[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,d[1])).done)return l;
163switch(i=0,l&&(d=[d[0]&2,l.value]),d[0]){case 0:case 1:l=d;break;case 4:return r.label++,{value:d[1],done:!1};case 5:r.label++,i=d[1],d=[0];continue;case 7:d=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!l||d[1]>l[0]&&d[1]<l[3])){r.label=d[1];break}if(d[0]===6&&r.label<l[1]){r.label=l[1],l=d;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(d);break}l[2]&&r.ops.pop(),r.trys.pop();continue}d=t.call(e,r)}catch(p){d=[6,p],i=0}finally{s=l=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function th(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],s=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nh(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),i,l=[],c;try{for(;(t===void 0||t-- >0)&&!(i=s.next()).done;)l.push(i.value)}catch(f){c={error:f}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(c)throw c.error}}return l}function rh(e,t,r){if(r||arguments.length===2)for(var s=0,i=t.length,l;s<i;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}var br=64,I4=32,T4=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),P4=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],N4=Math.pow(2,53)-1,xu=function(){function e(){this.state=Int32Array.from(P4),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,s=t.byteLength;if(this.bytesHashed+=s,this.bytesHashed*8>N4)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=t[r++],s--,this.bufferLength===br&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(r.setUint8(this.bufferLength++,128),s%br>=br-8){for(var i=this.bufferLength;i<br;i++)r.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<br-8;i++)r.setUint8(i,0);r.setUint32(br-8,Math.floor(t/4294967296),!0),r.setUint32(br-4,t),this.hashBuffer(),this.finished=!0}for(var l=new Uint8Array(I4),i=0;i<8;i++)l[i*4]=this.state[i]>>>24&255,l[i*4+1]=this.state[i]>>>16&255,l[i*4+2]=this.state[i]>>>8&255,l[i*4+3]=this.state[i]>>>0&255;return l},e.prototype.hashBuffer=function(){for(var t=this,r=t.buffer,s=t.state,i=s[0],l=s[1],c=s[2],f=s[3],h=s[4],d=s[5],p=s[6],g=s[7],x=0;x<br;x++){if(x<16)this.temp[x]=(r[x*4]&255)<<24|(r[x*4+1]&255)<<16|(r[x*4+2]&255)<<8|r[x*4+3]&255;else{var y=this.temp[x-2],v=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[x-15];var E=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[x]=(v+this.temp[x-7]|0)+(E+this.temp[x-16]|0)}var C=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)|0)+(g+(T4[x]+this.temp[x]|0)|0)|0,_=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&l^i&c^l&c)|0;g=p,p=d,d=h,h=f+C|0,f=c,c=l,l=i,i=C+_|0}s[0]+=i,s[1]+=l,s[2]+=c,s[3]+=f,s[4]+=h,s[5]+=d,s[6]+=p,s[7]+=g},e}();const D4=e=>new TextEncoder().encode(e);var F4=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:D4;function ew(e){return e instanceof Uint8Array?e:typeof e=="string"?F4(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function O4(e){return typeof e=="string"?e.length===0:e.byteLength===0}var gl=function(){function e(t){this.secret=t,this.hash=new xu,this.reset()}return e.prototype.update=function(t){if(!(O4(t)||this.error))try{this.hash.update(ew(t))}catch(r){this.error=r}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return k4(this,void 0,void 0,function(){return R4(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new xu,this.secret){this.outer=new xu;var t=B4(this.secret),r=new Uint8Array(br);r.set(t);for(var s=0;s<br;s++)t[s]^=54,r[s]^=92;this.hash.update(t),this.outer.update(r);for(var s=0;s<t.byteLength;s++)t[s]=0}},e}();function B4(e){var t=ew(e);if(t.byteLength>br){var r=new xu;r.update(t),t=r.digest()}var s=new Uint8Array(br);return s.set(t),s}for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`)}var dn;(function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"})(dn||(dn={}));var oh;(function(e){e.AI="ai",e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"})(oh||(oh={}));var Ng;(function(e){e.CreateConversation="1",e.GetConversation="2",e.ListConversations="3",e.DeleteConversation="4",e.SendMessage="5",e.ListMessages="6",e.OnMessage="7",e.Generation="8",e.UpdateConversation="9"})(Ng||(Ng={}));var Dg;(function(e){e.Record="1",e.IdentifyUser="2"})(Dg||(Dg={}));var Fg;(function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"})(Fg||(Fg={}));var Gt;(function(e){e.SignUp="1",e.ConfirmSignUp="2",e.ResendSignUpCode="3",e.SignIn="4",e.FetchMFAPreference="6",e.UpdateMFAPreference="7",e.SetUpTOTP="10",e.VerifyTOTPSetup="11",e.ConfirmSignIn="12",e.DeleteUserAttributes="15",e.DeleteUser="16",e.UpdateUserAttributes="17",e.FetchUserAttributes="18",e.ConfirmUserAttribute="22",e.SignOut="26",e.UpdatePassword="27",e.ResetPassword="28",e.ConfirmResetPassword="29",e.FederatedSignIn="30",e.RememberDevice="32",e.ForgetDevice="33",e.FetchDevices="34",e.SendUserAttributeVerificationCode="35",e.SignInWithRedirect="36",e.StartWebAuthnRegistration="37",e.CompleteWebAuthnRegistration="38",e.ListWebAuthnCredentials="39",e.DeleteWebAuthnCredential="40"})(Gt||(Gt={}));var Og;(function(e){e.Subscribe="1",e.GraphQl="2"})(Og||(Og={}));var Bg;(function(e){e.SearchByText="0",e.SearchByCoordinates="1",e.SearchForSuggestions="2",e.SearchByPlaceId="3",e.SaveGeofences="4",e.GetGeofence="5",e.ListGeofences="6",e.DeleteGeofences="7"})(Bg||(Bg={}));var Lg;(function(e){e.SyncMessages="1",e.IdentifyUser="2",e.NotifyMessageInteraction="3"})(Lg||(Lg={}));var Mg;(function(e){e.None="0"})(Mg||(Mg={}));var jg;(function(e){e.Convert="1",e.Identify="2",e.Interpret="3"})(jg||(jg={}));var Ug;(function(e){e.Subscribe="1"})(Ug||(Ug={}));var zg;(function(e){e.InitializePushNotifications="1",e.IdentifyUser="2"})(zg||(zg={}));var $g;(function(e){e.UploadData="1",e.DownloadData="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6",e.GetUrl="7",e.GetDataAccess="8",e.ListCallerAccessGrants="9"})($g||($g={}));const L4="6.12.3",Ad=()=>typeof global<"u",la=()=>typeof window<"u",tw=()=>typeof document<"u",Jh=()=>typeof process<"u",yl=(e,t)=>!!Object.keys(e).find(r=>r.startsWith(t));var Hg={};function M4(){const e=s=>s.startsWith("_react")||s.startsWith("__react"),t=s=>Object.keys(s).find(e),r=()=>Array.from(document.querySelectorAll("[id]"));return tw()&&r().some(t)}function j4(){return Jh()&&typeof Hg<"u"&&!!Object.keys(Hg).find(e=>e.includes("react"))}function U4(){return la()&&yl(window,"__VUE")}function z4(){return Ad()&&yl(global,"__VUE")}var Wg={};function $4(){return la()&&yl(window,"__SVELTE")}function H4(){return Jh()&&typeof Wg<"u"&&!!Object.keys(Wg).find(e=>e.includes("svelte"))}function W4(){return la()&&window.next&&typeof window.next=="object"}function V4(){return Ad()&&(yl(global,"__next")||yl(global,"__NEXT"))}function q4(){return la()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function K4(){return Ad()&&typeof global.__NUXT_PATHS__<"u"}var Vg={};function G4(){const e=!!(tw()&&document.querySelector("[ng-version]")),t=!!(la()&&typeof window.ng<"u");return e||t}function Y4(){var e;return Jh()&&typeof Vg=="object"&&((e=Vg.npm_lifecycle_script)==null?void 0:e.startsWith("ng "))||!1}function Q4(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function J4(){return Ad()&&typeof global.expo<"u"}function X4(){return la()}const Z4=[{platform:dn.Expo,detectionMethod:J4},{platform:dn.ReactNative,detectionMethod:Q4},{platform:dn.NextJs,detectionMethod:W4},{platform:dn.Nuxt,detectionMethod:q4},{platform:dn.Angular,detectionMethod:G4},{platform:dn.React,detectionMethod:M4},{platform:dn.VueJs,detectionMethod:U4},{platform:dn.Svelte,detectionMethod:$4},{platform:dn.WebUnknown,detectionMethod:X4},{platform:dn.NextJsSSR,detectionMethod:V4},{platform:dn.NuxtSSR,detectionMethod:K4},{platform:dn.ReactSSR,detectionMethod:j4},{platform:dn.VueJsSSR,detectionMethod:z4},{platform:dn.AngularSSR,detectionMethod:Y4},{platform:dn.SvelteSSR,detectionMethod:H4}];function eA(){var e;return((e=Z4.find(t=>t.detectionMethod()))==null?void 0:e.platform)||dn.ServerSideUnknown}let hl;const gu=[];let ad=!1;const tA=10,nA=10,rA=1e3,nw=()=>{var e;if(!hl){if(hl=eA(),ad)for(;gu.length;)(e=gu.pop())==null||e();else gu.forEach(t=>{t()});qg(dn.ServerSideUnknown,tA),qg(dn.WebUnknown,nA)}return hl},oA=e=>{ad||gu.push(e)};function sA(){hl=void 0}function qg(e,t){hl===e&&!ad&&setTimeout(()=>{sA(),ad=!0,setTimeout(nw,rA)},t)}const iA={},aA=(e,t)=>{var r,s;return(s=(r=iA[e])==null?void 0:r[t])==null?void 0:s.additionalDetails},lA="aws-amplify",cA=e=>e.replace(/\+.*/,""),uA=({category:e,action:t}={})=>{const r=[[lA,cA(L4)]];if(e&&r.push([e,t]),r.push(["framework",nw()]),e&&t){const s=aA(e,t);
vendor: 8,640 bytes, lines 163-165
163s&&s.forEach(i=>{r.push(i)})}return r},kd=e=>uA(e).map(([s,i])=>s&&i?`${s}/${i}`:s).join(" ");function No(e){return typeof e=="function"}function rw(e){var t=function(s){Error.call(s),s.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var T0=rw(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: 164`+r.map(function(s,i){return i+1+") "+s.toString()}).join(` 165 `):"",this.name="UnsubscriptionError",this.errors=r}});function sh(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Rd=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,s,i,l;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var f=th(c),h=f.next();!h.done;h=f.next()){var d=h.value;d.remove(this)}}catch(E){t={error:E}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}else c.remove(this);var p=this.initialTeardown;if(No(p))try{p()}catch(E){l=E instanceof T0?E.errors:[E]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var x=th(g),y=x.next();!y.done;y=x.next()){var v=y.value;try{Kg(v)}catch(E){l=l??[],E instanceof T0?l=rh(rh([],nh(l)),nh(E.errors)):l.push(E)}}}catch(E){s={error:E}}finally{try{y&&!y.done&&(i=x.return)&&i.call(x)}finally{if(s)throw s.error}}}if(l)throw new T0(l)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Kg(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&sh(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&sh(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ow=Rd.EMPTY;function sw(e){return e instanceof Rd||e&&"closed"in e&&No(e.remove)&&No(e.add)&&No(e.unsubscribe)}function Kg(e){No(e)?e():e.unsubscribe()}var dA={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},fA={setTimeout:function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];return setTimeout.apply(void 0,rh([e,t],nh(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function hA(e){fA.setTimeout(function(){throw e})}function Gg(){}function yu(e){e()}var iw=function(e){Ol(t,e);function t(r){var s=e.call(this)||this;return s.isStopped=!1,r?(s.destination=r,sw(r)&&r.add(s)):s.destination=xA,s}return t.create=function(r,s,i){return new ih(r,s,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Rd),pA=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(s){Jc(s)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(s){Jc(s)}else Jc(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Jc(r)}},e}(),ih=function(e){Ol(t,e);function t(r,s,i){var l=e.call(this)||this,c;return No(r)||!r?c={next:r??void 0,error:s??void 0,complete:i??void 0}:c=r,l.destination=new pA(c),l}return t}(iw);function Jc(e){hA(e)}function mA(e){throw e}var xA={closed:!0,next:Gg,error:mA,complete:Gg},gA=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function yA(e){return e}function vA(e){return e.length===0?yA:e.length===1?e[0]:function(r){return e.reduce(function(s,i){return i(s)},r)}}var Yg=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,s){var i=this,l=EA(t)?t:new ih(t,r,s);return yu(function(){var c=i,f=c.operator,h=c.source;l.add(f?f.call(l,h):h?i._subscribe(l):i._trySubscribe(l))}),l},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var s=this;return r=Qg(r),new r(function(i,l){var c=new ih({next:function(f){try{t(f)}catch(h){l(h),c.unsubscribe()}},error:l,complete:i});s.subscribe(c)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[gA]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return vA(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Qg(t),new t(function(s,i){var l;r.subscribe(function(c){return l=c},function(c){return i(c)},function(){return s(l)})})},e.create=function(t){return new e(t)},e}();function Qg(e){var t;return(t=e??dA.Promise)!==null&&t!==void 0?t:Promise}function wA(e){return e&&No(e.next)&&No(e.error)&&No(e.complete)}function EA(e){return e&&e instanceof iw||wA(e)&&sw(e)}var SA=rw(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),aw=function(e){Ol(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var s=new Jg(this,this);return s.operator=r,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new SA},t.prototype.next=function(r){var s=this;yu(function(){var i,l;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var c=th(s.currentObservers),f=c.next();!f.done;f=c.next()){var h=f.value;h.next(r)}}catch(d){i={error:d}}finally{try{f&&!f.done&&(l=c.return)&&l.call(c)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var s=this;yu(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=r;for(var i=s.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;yu(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var s=r.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var s=this,i=this,l=i.hasError,c=i.isStopped,f=i.observers;return l||c?ow:(this.currentObservers=null,f.push(r),new Rd(function(){s.currentObservers=null,sh(f,r)}))},t.prototype._checkFinalizedStatuses=function(r){var s=this,i=s.hasError,l=s.thrownError,c=s.isStopped;i?r.error(l):c&&r.complete()},t.prototype.asObservable=function(){var r=new Yg;return r.source=this,r},t.create=function(r,s){return new Jg(r,s)},t}(Yg),Jg=function(e){Ol(t,e);function t(r,s){var i=e.call(this)||this;return i.destination=r,i.source=s,i}return t.prototype.next=function(r){var s,i;(i=(s=this.destination)===null||s===void 0?void 0:s.next)===null||i===void 0||i.call(s,r)},t.prototype.error=function(r){var s,i;(i=(s=this.destination)===null||s===void 0?void 0:s.error)===null||i===void 0||i.call(s,r)},t.prototype.complete=function(){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||s===void 0||s.call(r)},t.prototype._subscribe=function(r){var s,i;return(i=(s=this.source)===null||s===void 0?void 0:s.subscribe(r))!==null&&i!==void 0?i:ow},t}(aw),CA=function(e){Ol(t,e);function t(r){var s=e.call(this)||this;return s._value=r,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()}
165,enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var s=e.prototype._subscribe.call(this,r);return!s.closed&&r.next(this._value),s},t.prototype.getValue=function(){var r=this,s=r.hasError,i=r.thrownError,l=r._value;if(s)throw i;return this._throwIfClosed(),l},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t}(aw);const Id=()=>typeof window<"u"&&typeof window.document<"u";class bA{configure(t,r){this.authConfig=t,this.authOptions=r}async fetchAuthSession(t={}){var l,c,f,h,d,p;let r,s;const i=await this.getTokens(t);return i?(s=(c=(l=i.accessToken)==null?void 0:l.payload)==null?void 0:c.sub,r=await((h=(f=this.authOptions)==null?void 0:f.credentialsProvider)==null?void 0:h.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:i,authenticated:!0,forceRefresh:t.forceRefresh}))):r=await((p=(d=this.authOptions)==null?void 0:d.credentialsProvider)==null?void 0:p.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:t.forceRefresh})),{tokens:i,credentials:r==null?void 0:r.credentials,identityId:r==null?void 0:r.identityId,userSub:s}}async clearCredentials(){var t,r;await((r=(t=this.authOptions)==null?void 0:t.credentialsProvider)==null?void 0:r.clearCredentialsAndIdentityId())}async getTokens(t){var r,s;return await((s=(r=this.authOptions)==null?void 0:r.tokenProvider)==null?void 0:s.getTokens(t))??void 0}}class _A{constructor(){this.oAuthListener=void 0,this.resourcesConfig={},this.libraryOptions={},this.Auth=new bA}configure(t,r){const s=Z1(t);this.resourcesConfig=s,r&&(this.libraryOptions=r),this.resourcesConfig=Q1(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),Hr.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",lo),this.notifyOAuthListener()}getConfig(){return this.resourcesConfig}[J1](t){var r,s,i;(s=(r=this.resourcesConfig.Auth)==null?void 0:r.Cognito.loginWith)!=null&&s.oauth?t((i=this.resourcesConfig.Auth)==null?void 0:i.Cognito):this.oAuthListener=t}notifyOAuthListener(){var t,r,s;!((r=(t=this.resourcesConfig.Auth)==null?void 0:t.Cognito.loginWith)!=null&&r.oauth)||!this.oAuthListener||(this.oAuthListener((s=this.resourcesConfig.Auth)==null?void 0:s.Cognito),this.oAuthListener=void 0)}}const Vt=new _A,AA=(e,t)=>e.Auth.fetchAuthSession(t),Mi=e=>AA(Vt,e);function lw(){return Vt.Auth.clearCredentials()}const Td=e=>{const{headers:t,statusCode:r}=e;return{...kA(e)?e.$metadata:{},httpStatusCode:r,requestId:t["x-amzn-requestid"]??t["x-amzn-request-id"]??t["x-amz-request-id"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}},kA=e=>typeof(e==null?void 0:e.$metadata)=="object",ca=async e=>{if(!e||e.statusCode<300)return;const t=await Bl(e),s=(c=>{const[f]=c.toString().split(/[,:]+/);return f.includes("#")?f.split("#")[1]:f})(e.headers["x-amzn-errortype"]??t.code??t.__type??"UnknownError"),i=t.message??t.Message??"Unknown error",l=new Error(i);return Object.assign(l,{name:s,$metadata:Td(e)})},Bl=async e=>{if(!e.body)throw new Error("Missing response payload");const t=await e.body.json();return Object.assign(t,{$metadata:Td(e)})},Rr=(e,t,r,s)=>async(i,l)=>{const c={...s,...i},f=await c.endpointResolver(c,l),h=await t(l,f),d=await e(h,{...c});return r(d)},cw={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},RA={partitions:[cw,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},uw=e=>{const{partitions:t}=RA;for(const{regions:r,outputs:s,regionRegex:i}of t){const l=new RegExp(i);if(r.includes(e)||l.test(e))return s.dnsSuffix}return cw.outputs.dnsSuffix},IA=3,TA=({maxAttempts:e=IA,retryDecider:t,computeDelay:r,abortSignal:s})=>{if(e<1)throw new Error("maxAttempts must be greater than 0");return(i,l)=>async function(f){let h,d=l.attemptsCount??0,p;const g=()=>{if(p)return Xg(p,d),p;throw Xg(h,d),h};for(;!(s!=null&&s.aborted)&&d<e;){try{p=await i(f),h=void 0}catch(v){h=v,p=void 0}d=(l.attemptsCount??0)>d?l.attemptsCount??0:d+1,l.attemptsCount=d;const{isCredentialsExpiredError:x,retryable:y}=await t(p,h,l);if(y){if(l.isCredentialsExpired=!!x,!(s!=null&&s.aborted)&&d<e){const v=r(d);await PA(v,s)}continue}else return g()}if(s!=null&&s.aborted)throw new Error("Request aborted.");return g()}},PA=(e,t)=>
165{if(t!=null&&t.aborted)return Promise.resolve();let r,s;const i=new Promise(l=>{s=l,r=setTimeout(l,e)});return t==null||t.addEventListener("abort",function l(c){clearTimeout(r),t==null||t.removeEventListener("abort",l),s()}),i},Xg=(e,t)=>{Object.prototype.toString.call(e)==="[object Object]"&&(e.$metadata={...e.$metadata??{},attempts:t})},NA=({userAgentHeader:e="x-amz-user-agent",userAgentValue:t=""})=>r=>async function(i){if(t.trim().length===0)return await r(i);{const l=e.toLowerCase();return i.headers[l]=i.headers[l]?`${i.headers[l]} ${t}`:t,await r(i)}},Xh=(e,t)=>(r,s)=>{const i={};let l=c=>e(c,s);for(let c=t.length-1;c>=0;c--){const f=t[c];l=f(s)(l,i)}return l(r)},P0=e=>{let t;return()=>(t||(t=e()),t)},DA=e=>!["HEAD","GET","DELETE"].includes(e.toUpperCase()),FA=async({url:e,method:t,headers:r,body:s},{abortSignal:i,cache:l,withCrossDomainCredentials:c})=>{var g;let f;try{f=await fetch(e,{method:t,headers:r,body:DA(t)?s:void 0,signal:i,cache:l,credentials:c?"include":"same-origin"})}catch(x){throw x instanceof TypeError?new nr({name:Ss.NetworkError,message:"A network error has occurred.",underlyingError:x}):x}const h={};(g=f.headers)==null||g.forEach((x,y)=>{h[y.toLowerCase()]=x});const d={statusCode:f.status,headers:h,body:null},p=Object.assign(f.body??{},{text:P0(()=>f.text()),blob:P0(()=>f.blob()),json:P0(()=>f.json())});return{...d,body:p}},dw=Xh(FA,[NA,TA]),OA=5*60*1e3;function BA(e=OA){return s=>{const i=2**s*100+100*Math.random();return i>e?!1:i}}const Zg=5*60*1e3,fw=e=>{const r=BA(Zg)(e);return r===!1?Zg:r},LA=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],MA=e=>!!e&&LA.includes(e),hw=e=>async(t,r)=>{const s=r??await e(t)??void 0,i=(s==null?void 0:s.code)||(s==null?void 0:s.name),l=t==null?void 0:t.statusCode;return{retryable:$A(r)||zA(l,i)||MA(i)||HA(l,i)}},jA=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],UA=["TimeoutError","RequestTimeout","RequestTimeoutException"],zA=(e,t)=>e===429||!!t&&jA.includes(t),$A=e=>[Ss.NetworkError,"ERR_NETWORK"].includes(e==null?void 0:e.name),HA=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&UA.includes(t),ri=URL,WA="cognito-identity",VA=({region:e})=>({url:new ri(`https://cognito-identity.${e}.${uw(e)}`)}),qA=()=>e=>async function(r){return r.headers["cache-control"]="no-store",e(r)},pw=Xh(dw,[qA]),Zh={service:WA,endpointResolver:VA,retryDecider:hw(ca),computeDelay:fw,userAgentValue:kd(),cache:"no-store"};oA(()=>{Zh.userAgentValue=kd()});const mw=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}),xw=({url:e},t,r)=>({headers:t,url:e,body:r,method:"POST"}),KA=(e,t)=>{const r=mw("GetId"),s=JSON.stringify(e);return xw(t,r,s)},GA=async e=>{if(e.statusCode>=300)throw await ca(e);return{IdentityId:(await Bl(e)).IdentityId,$metadata:Td(e)}},YA=Rr(pw,KA,GA,Zh),QA=(e,t)=>{const r=mw("GetCredentialsForIdentity"),s=JSON.stringify(e);return xw(t,r,s)},JA=async e=>{if(e.statusCode>=300)throw await ca(e);{const t=await Bl(e);return{IdentityId:t.IdentityId,Credentials:XA(t.Credentials),$metadata:Td(e)}}},XA=({AccessKeyId:e,SecretKey:t,SessionToken:r,Expiration:s}={})=>({AccessKeyId:e,SecretKey:t,SessionToken:r,Expiration:s&&new Date(s*1e3)}),ey=Rr(pw,QA,JA,Zh);class ll extends nr{constructor(){super({name:Ss.PlatformNotSupported,message:"Function not supported on current platform"})}}class gw{constructor(t){this.storage=t}async setItem(t,r){if(!this.storage)throw new ll;this.storage.setItem(t,r)}async getItem(t){if(!this.storage)throw new ll;return this.storage.getItem(t)}async removeItem(t){if(!this.storage)throw new ll;this.storage.removeItem(t)}async clear(){if(!this.storage)throw new ll;this.storage.clear()}}class yw{constructor(){this.storage=new Map}get length(){return this.storage.size}key(t){return t>this.length-1?null:Array.from(this.storage.keys())[t]}setItem(t,r){this.storage.set(t,r)}getItem(t){return this.storage.get(t)??null}removeItem(t){this.storage.delete(t)}clear(){this.storage.clear()}}const vw=new tr("CoreStorageUtils"),ZA=()=>{try{if(typeof window<"u"&&window.localStorage)return window.localStorage}catch{vw.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new yw},ww=()=>{try{if(typeof window<"u"&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch{return vw.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new yw}};class ek extends gw{constructor(){super(ZA())}}class tk extends gw{constructor(){super(ww())}}class nk{constructor(t){this._storage=t}get storage(){if(!this._storage)throw new ll;return this._storage}setItem(t,r){this.storage.setItem(t,r)}getItem(t){return this.storage.getItem(t)}removeItem(t){this.storage.removeItem(t)}clear(){this.storage.clear()}}class rk extends nk{constructor(){super(ww())}}/*! js-cookie v3.0.5 | MIT */function Xc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)e[s]=r[s]}return e}var ok={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
165URIComponent)}};function ah(e,t){function r(i,l,c){if(!(typeof document>"u")){c=Xc({},t,c),typeof c.expires=="number"&&(c.expires=new Date(Date.now()+c.expires*864e5)),c.expires&&(c.expires=c.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var h in c)c[h]&&(f+="; "+h,c[h]!==!0&&(f+="="+c[h].split(";")[0]));return document.cookie=i+"="+e.write(l,i)+f}}function s(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var l=document.cookie?document.cookie.split("; "):[],c={},f=0;f<l.length;f++){var h=l[f].split("="),d=h.slice(1).join("=");try{var p=decodeURIComponent(h[0]);if(c[p]=e.read(d,p),i===p)break}catch{}}return i?c[i]:c}}return Object.create({set:r,get:s,remove:function(i,l){r(i,"",Xc({},l,{expires:-1}))},withAttributes:function(i){return ah(this.converter,Xc({},this.attributes,i))},withConverter:function(i){return ah(Xc({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Zc=ah(ok,{path:"/"});class ty{constructor(t={}){const{path:r,domain:s,expires:i,sameSite:l,secure:c}=t;if(this.domain=s,this.path=r||"/",this.expires=Object.prototype.hasOwnProperty.call(t,"expires")?i:365,this.secure=Object.prototype.hasOwnProperty.call(t,"secure")?c:!0,Object.prototype.hasOwnProperty.call(t,"sameSite")){if(!l||!["strict","lax","none"].includes(l))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(l==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=l}}async setItem(t,r){Zc.set(t,r,this.getData())}async getItem(t){return Zc.get(t)??null}async removeItem(t){Zc.remove(t,this.getData())}async clear(){const t=Zc.get(),r=Object.keys(t).map(s=>this.removeItem(s));await Promise.all(r)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const ta=new ek;new tk;const To=new rk,sk=e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let s=0;s<e;s++)r+=t.charAt(Math.floor(Math.random()*t.length));return r};function ik(e){return(e.match(/.{2}/g)||[]).map(r=>String.fromCharCode(parseInt(r,16))).join("")}function ak(e){return e.split("").map(t=>t.charCodeAt(0).toString(16).padStart(2,"0")).join("")}const lk=e=>{let t;return async(...r)=>t||(t=new Promise((s,i)=>{e(...r).then(l=>{s(l)}).catch(l=>{i(l)}).finally(()=>{t=void 0})}),t)};function ny({expiresAt:e,clockDrift:t,tolerance:r=5e3}){return Date.now()+t+r>e}const ck=async()=>{const{userAgentData:e}=navigator;if(!e)return navigator.userAgent;const{platform:t="",platformVersion:r="",model:s="",architecture:i="",fullVersionList:l=[]}=await e.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]),c=l.map(h=>`${h.brand}/${h.version}`).join(";");return[t,r,i,s,t,c].filter(h=>h).join(" ")||navigator.userAgent};function uk(e){return Array.from(e,t=>String.fromCodePoint(t)).join("")}const na={convert(e,t={urlSafe:!1,skipPadding:!1}){const r=typeof e=="string"?e:uk(e);let s=i4()(r);return t.urlSafe&&(s=s.replace(/\+/g,"-").replace(/\//g,"_")),t.skipPadding&&(s=s.replace(/=/g,"")),s}};function dk(){return Y1().getRandomValues(new Uint32Array(1))[0]}function fk(e){const{words:t}=e,{sigBytes:r}=e,s=[];for(let i=0;i<r;i++){const l=t[i>>>2]>>>24-i%4*8&255;s.push((l>>>4).toString(16)),s.push((l&15).toString(16))}return s.join("")}class ep{constructor(t,r){this.words=[];let s=t;s=this.words=s||[],r!==void 0?this.sigBytes=r:this.sigBytes=s.length*4}random(t){const r=[];for(let s=0;s<t;s+=4)r.push(dk());return new ep(r,t)}toString(){return fk(this)}}var at;(function(e){e.EmptySignInUsername="EmptySignInUsername",e.EmptySignInPassword="EmptySignInPassword",e.CustomAuthSignInPassword="CustomAuthSignInPassword",e.EmptySignUpUsername="EmptySignUpUsername",e.EmptySignUpPassword="EmptySignUpPassword",e.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",e.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",e.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",e.EmptyC
165hallengeResponse="EmptyChallengeResponse",e.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",e.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",e.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",e.EmptyResetPasswordUsername="EmptyResetPasswordUsername",e.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",e.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",e.IncorrectMFAMethod="IncorrectMFAMethod",e.EmptyUpdatePassword="EmptyUpdatePassword"})(at||(at={}));const Ew={[at.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[at.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[at.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[at.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[at.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[at.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[at.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[at.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[at.EmptySignInPassword]:{message:"password is required to signIn"},[at.EmptySignInUsername]:{message:"username is required to signIn"},[at.EmptySignUpPassword]:{message:"password is required to signUp"},[at.EmptySignUpUsername]:{message:"username is required to signUp"},[at.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[at.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS, TOTP, or EMAIL",recoverySuggestion:"Try to pass SMS, TOTP, or EMAIL as the challengeResponse"},[at.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[at.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[at.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"}};var Cn;(function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_EMAIL="Email cannot be empty",e.EMPTY_PHONE="Phone number cannot be empty",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty",e.NETWORK_ERROR="Network Error",e.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",e.AUTOSIGNIN_ERROR="Please use your credentials to sign in",e.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"})(Cn||(Cn={}));var co;(function(e){e.SignInException="SignInException",e.OAuthSignInError="OAuthSignInException"})(co||(co={}));class Ke extends nr{constructor(t){super(t),this.constructor=Ke,Object.setPrototypeOf(this,Ke.prototype)}}function vn(e,t){const{message:r,recoverySuggestion:s}=Ew[t];if(!e)throw new Ke({name:t,message:r,recoverySuggestion:s})}function zt(e){const t=e==null?void 0:e.split("_")[0];if(!e||e.indexOf("_")<0||!t||typeof t!="string")throw new Ke({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}function lh(e){if(!e||!e.includes(":"))throw new Ke({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}function ry(e){return Object.entries(e).map(([t,r])=>({Name:t,Value:r}))}function aN(e){const t={};return e==null||e.forEach(r=>{r.Name&&(t[r.Name]=r.Value)}),t}var oy;(function(e){e.ConcurrentModificationException="ConcurrentModificationException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="Softw
165areTokenMFANotFoundException"})(oy||(oy={}));var sy;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(sy||(sy={}));var iy;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UsernameExistsException="UsernameExistsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(iy||(iy={}));var ay;(function(e){e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(ay||(ay={}));var ly;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyFailedAttemptsException="TooManyFailedAttemptsException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(ly||(ly={}));var cy;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(cy||(cy={}));var uy;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(uy||(uy={}));var dy;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(dy||(dy={}));var fy;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPol
165icyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(fy||(fy={}));var hy;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(hy||(hy={}));var py;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(py||(py={}));var my;(function(e){e.ExternalServiceException="ExternalServiceException",e.InternalErrorException="InternalErrorException",e.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceConflictException="ResourceConflictException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException"})(my||(my={}));var xy;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(xy||(xy={}));var gy;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException"})(gy||(gy={}));var ld;(function(e){e.PasswordResetRequiredException="PasswordResetRequiredException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(ld||(ld={}));var yy;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPol
165icyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotFoundException="UserNotFoundException"})(yy||(yy={}));var vy;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.MFAMethodNotFoundException="MFAMethodNotFoundException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(vy||(vy={}));var wy;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(wy||(wy={}));var ch;(function(e){e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidPasswordException="InvalidPasswordException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UsernameExistsException="UsernameExistsException"})(ch||(ch={}));var Ey;(function(e){e.AliasExistsException="AliasExistsException",e.CodeDeliveryFailureException="CodeDeliveryFailureException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",e.InvalidLambdaResponseException="InvalidLambdaResponseException",e.InvalidParameterException="InvalidParameterException",e.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",e.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UnexpectedLambdaException="UnexpectedLambdaException",e.UserLambdaValidationException="UserLambdaValidationException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(Ey||(Ey={}));var Sy;(function(e){e.CodeMismatchException="CodeMismatchException",e.EnableSoftw
165areTokenMFAException="EnableSoftwareTokenMFAException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(Sy||(Sy={}));var Cy;(function(e){e.AliasExistsException="AliasExistsException",e.CodeMismatchException="CodeMismatchException",e.ExpiredCodeException="ExpiredCodeException",e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.LimitExceededException="LimitExceededException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(Cy||(Cy={}));var by;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(by||(by={}));var _y;(function(e){e.ForbiddenException="ForbiddenException",e.InternalErrorException="InternalErrorException",e.InvalidParameterException="InvalidParameterException",e.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",e.NotAuthorizedException="NotAuthorizedException",e.PasswordResetRequiredException="PasswordResetRequiredException",e.ResourceNotFoundException="ResourceNotFoundException",e.TooManyRequestsException="TooManyRequestsException",e.UserNotConfirmedException="UserNotConfirmedException",e.UserNotFoundException="UserNotFoundException"})(_y||(_y={}));const Pd="UserUnAuthenticatedException",hk="UserAlreadyAuthenticatedException",pk="DeviceMetadataNotFoundException",mk="InvalidRedirectException",xk="InvalidAppSchemeException",gk="InvalidPreferredRedirectUrlException",yk=new Ke({name:mk,message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."});new Ke({name:xk,message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."});new Ke({name:gk,message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."});const vk="InvalidOriginException",wk=new Ke({name:vk,message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),Ek="OAuthSignOutException",Sk="TokenRefreshException",Ck="UnexpectedSignInInterruptionException";function Sw(e){if(!e||!e.accessToken)throw new Ke({name:Pd,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function bk(e){if(!e||!e.idToken)throw new Ke({name:Pd,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const _k=new Ke({name:Sk,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow. 166 Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow. 167 E.g { responseType: 'code' }`}),Ak=new Ke({name:Pd,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function Cw(e){if(Ik(e))throw _k;if(!Rk(e))throw Ak}function bw(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new Ke({name:pk,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}const kk={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function _w(e){return(e==null?void 0:e.accessToken)||(e==null?void 0:e.idToken)}function Rk(e){return _w(e)&&(e==null?void 0:e.refreshToken)}function Ik(e){return _w(e)&&!(e!=null&&e.refreshToken)}const Tk=async e=>{var f,h;const t=(f=e.getConfig().Auth)==null?void 0:f.Cognito;Pt(t);const r=await e.Auth.getTokens({forceRefresh:!1});Sw(r);const{"cognito:username":s,sub:i}=((h=r.idToken)==null?void 0:h.payload)??{},l={username:s,userId:i},c=Pk(r);
167return c&&(l.signInDetails=c),l};function Pk(e){return e==null?void 0:e.signInDetails}const vl=async()=>Tk(Vt),tn=(e,t)=>kd({category:oh.Auth,action:e,...t}),ho=e=>(t,r)=>{const s=Nk(e),i=JSON.stringify(t);return Dk(r,s,i)},Nk=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),Dk=({url:e},t,r)=>({headers:t,url:e,body:r,method:"POST"});function jo(e){if(!e||e.name==="Error"||e instanceof TypeError)throw new Ke({name:Ss.Unknown,message:"An unknown error has occurred.",underlyingError:e})}const Uo=()=>async e=>{if(e.statusCode>=300){const t=await ca(e);throw jo(t),new Ke({name:t.name,message:t.message})}return Bl(e)},Fk=()=>(e,t)=>async function(s){return s.headers["cache-control"]="no-store",e(s)},po=Xh(dw,[Fk]),Aw="cognito-idp",mo={service:Aw,retryDecider:hw(ca),computeDelay:fw,userAgentValue:kd(),cache:"no-store"},ua=e=>Rr(po,ho("InitiateAuth"),Uo(),{...mo,...e}),pr=e=>Rr(po,ho("RespondToAuthChallenge"),Uo(),{...mo,...e}),Ok=e=>Rr(po,ho("VerifySoftwareToken"),Uo(),{...mo,...e}),Bk=e=>Rr(po,ho("AssociateSoftwareToken"),Uo(),{...mo,...e}),Lk=({region:e})=>({url:new ri(`https://${Aw}.${e}.${uw(e)}`)}),$t=({endpointOverride:e})=>t=>e?{url:new ri(e)}:Lk(t);function Tn({username:e,userPoolId:t,userPoolClientId:r}){if(typeof window>"u")return;const s=window.AmazonCognitoAdvancedSecurityData;if(typeof s>"u")return;const i=s.getData(e,t,r);return i?{EncodedData:i}:{}}const Mk=async({tokens:e,authConfig:t,username:r})=>{var C;Pt(t==null?void 0:t.Cognito);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:l}=t.Cognito,c=zt(s);Cw(e);const f=e.refreshToken,h={REFRESH_TOKEN:f};(C=e.deviceMetadata)!=null&&C.deviceKey&&(h.DEVICE_KEY=e.deviceMetadata.deviceKey);const d=Tn({username:r,userPoolId:s,userPoolClientId:i}),p=ua({endpointResolver:$t({endpointOverride:l})}),{AuthenticationResult:g}=await p({region:c},{ClientId:i,AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:h,UserContextData:d}),x=Oo((g==null?void 0:g.AccessToken)??""),y=g!=null&&g.IdToken?Oo(g.IdToken):void 0,{iat:v}=x.payload;if(!v)throw new Ke({name:"iatNotFoundException",message:"iat not found in access token"});const E=v*1e3-new Date().getTime();return{accessToken:x,idToken:y,clockDrift:E,refreshToken:f,username:r}},jk=lk(Mk),Uk={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails",oauthMetadata:"oauthMetadata"};var cd;(function(e){e.InvalidAuthTokens="InvalidAuthTokens"})(cd||(cd={}));const zk={[cd.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},$k=Gh(zk);class Hk{constructor(){this.name="CognitoIdentityServiceProvider"}getKeyValueStorage(){if(!this.keyValueStorage)throw new Ke({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(t){this.keyValueStorage=t}setAuthConfig(t){this.authConfig=t}async loadTokens(){try{const t=await this.getAuthKeys(),r=await this.getKeyValueStorage().getItem(t.accessToken);if(!r)throw new Ke({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const s=Oo(r),i=await this.getKeyValueStorage().getItem(t.idToken),l=i?Oo(i):void 0,c=await this.getKeyValueStorage().getItem(t.refreshToken)??void 0,f=await this.getKeyValueStorage().getItem(t.clockDrift)??"0",h=Number.parseInt(f),d=await this.getKeyValueStorage().getItem(t.signInDetails),p={accessToken:s,idToken:l,refreshToken:c,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:h,username:await this.getLastAuthUser()};return d&&(p.signInDetails=JSON.parse(d)),p}catch{return null}}async storeTokens(t){$k(t!==void 0,cd.InvalidAuthTokens);const r=t.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),r);const s=await this.getAuthKeys();await this.getKeyValueStorage().setItem(s.accessToken,t.accessToken.toString()),t.idToken?await this.getKeyValueStorage().setItem(s.idToken,t.idToken.toString()):await this.getKeyValueStorage().removeItem(s.idToken),t.refreshToken?await this.getKeyValueStorage().setItem(s.refreshToken,t.refreshToken):await this.getKeyValueStorage().removeItem(s.refreshToken),t.deviceMetadata&&(t.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(s.deviceKey,t.deviceMetadata.deviceKey),t.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(s.deviceGroupKey,t.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(s.randomPasswordKey,t.deviceMetadata.randomPassword)),t.signInDetail
167s?await this.getKeyValueStorage().setItem(s.signInDetails,JSON.stringify(t.signInDetails)):await this.getKeyValueStorage().removeItem(s.signInDetails),await this.getKeyValueStorage().setItem(s.clockDrift,`${t.clockDrift}`)}async clearTokens(){const t=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(t.accessToken),this.getKeyValueStorage().removeItem(t.idToken),this.getKeyValueStorage().removeItem(t.clockDrift),this.getKeyValueStorage().removeItem(t.refreshToken),this.getKeyValueStorage().removeItem(t.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(t.oauthMetadata)])}async getDeviceMetadata(t){const r=await this.getAuthKeys(t),s=await this.getKeyValueStorage().getItem(r.deviceKey),i=await this.getKeyValueStorage().getItem(r.deviceGroupKey),l=await this.getKeyValueStorage().getItem(r.randomPasswordKey);return l&&i&&s?{deviceKey:s,deviceGroupKey:i,randomPassword:l}:null}async clearDeviceMetadata(t){const r=await this.getAuthKeys(t);await Promise.all([this.getKeyValueStorage().removeItem(r.deviceKey),this.getKeyValueStorage().removeItem(r.deviceGroupKey),this.getKeyValueStorage().removeItem(r.randomPasswordKey)])}async getAuthKeys(t){var s;Pt((s=this.authConfig)==null?void 0:s.Cognito);const r=t??await this.getLastAuthUser();return Wk(this.name,`${this.authConfig.Cognito.userPoolClientId}.${r}`)}getLastAuthUserKey(){var r;Pt((r=this.authConfig)==null?void 0:r.Cognito);const t=this.authConfig.Cognito.userPoolClientId;return`${this.name}.${t}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(t){const{oauthMetadata:r}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r,JSON.stringify(t))}async getOAuthMetadata(){const{oauthMetadata:t}=await this.getAuthKeys(),r=await this.getKeyValueStorage().getItem(t);return r&&JSON.parse(r)}}const Wk=(e,t)=>tp(Uk)(`${e}`,t);function tp(e){const t=Object.values({...e});return(r,s)=>t.reduce((i,l)=>({...i,[l]:`${r}.${s}.${l}`}),{})}const Ay="amplify-signin-with-hostedUI",Zr="CognitoIdentityServiceProvider";class kw{constructor(t){this.keyValueStorage=t}async clearOAuthInflightData(){Pt(this.cognitoConfig);const t=eo(Zr,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(t.inflightOAuth),this.keyValueStorage.removeItem(t.oauthPKCE),this.keyValueStorage.removeItem(t.oauthState)])}async clearOAuthData(){Pt(this.cognitoConfig);const t=eo(Zr,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(Ay),this.keyValueStorage.removeItem(t.oauthSignIn)}loadOAuthState(){Pt(this.cognitoConfig);const t=eo(Zr,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthState)}storeOAuthState(t){Pt(this.cognitoConfig);const r=eo(Zr,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(r.oauthState,t)}loadPKCE(){Pt(this.cognitoConfig);const t=eo(Zr,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(t.oauthPKCE)}storePKCE(t){Pt(this.cognitoConfig);const r=eo(Zr,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(r.oauthPKCE,t)}setAuthConfig(t){this.cognitoConfig=t}async loadOAuthInFlight(){Pt(this.cognitoConfig);const t=eo(Zr,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(t.inflightOAuth)==="true"}async storeOAuthInFlight(t){Pt(this.cognitoConfig);const r=eo(Zr,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(r.inflightOAuth,`${t}`)}async loadOAuthSignIn(){var l;Pt(this.cognitoConfig);const t=eo(Zr,this.cognitoConfig.userPoolClientId),r=await this.keyValueStorage.getItem(Ay),[s,i]=((l=await this.keyValueStorage.getItem(t.oauthSignIn))==null?void 0:l.split(","))??[];return{isOAuthSignIn:s==="true"||r==="true",preferPrivateSession:i==="true"}}async storeOAuthSignIn(t,r=!1){Pt(this.cognitoConfig);const s=eo(Zr,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(s.oauthSignIn,`${t},${r}`)}}const eo=(e,t)=>tp(kk)(e,t),Zn=new kw(ta),uh=[],Vk=e=>{uh.push(e)},Rw=()=>{var e;
167for(;uh.length;)(e=uh.pop())==null||e()};class qk{constructor(){this.waitForInflightOAuth=Id()?async()=>{if(await Zn.loadOAuthInFlight())return this.inflightPromise?this.inflightPromise:(this.inflightPromise=new Promise((t,r)=>{Vk(t)}),this.inflightPromise)}:async()=>{}}setAuthConfig(t){Zn.setAuthConfig(t.Cognito),this.authConfig=t}setTokenRefresher(t){this.tokenRefresher=t}setAuthTokenStore(t){this.tokenStore=t}getTokenStore(){if(!this.tokenStore)throw new Ke({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new Ke({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}async getTokens(t){var c,f,h,d,p;let r;try{Pt((c=this.authConfig)==null?void 0:c.Cognito)}catch{return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,r=await this.getTokenStore().loadTokens();const s=await this.getTokenStore().getLastAuthUser();if(r===null)return null;const i=!!(r!=null&&r.idToken)&&ny({expiresAt:(((h=(f=r.idToken)==null?void 0:f.payload)==null?void 0:h.exp)??0)*1e3,clockDrift:r.clockDrift??0}),l=ny({expiresAt:(((p=(d=r.accessToken)==null?void 0:d.payload)==null?void 0:p.exp)??0)*1e3,clockDrift:r.clockDrift??0});return(t!=null&&t.forceRefresh||i||l)&&(r=await this.refreshTokens({tokens:r,username:s}),r===null)?null:{accessToken:r==null?void 0:r.accessToken,idToken:r==null?void 0:r.idToken,signInDetails:r==null?void 0:r.signInDetails}}async refreshTokens({tokens:t,username:r}){try{const{signInDetails:s}=t,i=await this.getTokenRefresher()({tokens:t,authConfig:this.authConfig,username:r});return i.signInDetails=s,await this.setTokens({tokens:i}),Hr.dispatch("auth",{event:"tokenRefresh"},"Auth",lo),i}catch(s){return this.handleErrors(s)}}handleErrors(t){if(jo(t),t.name!==Ss.NetworkError&&this.clearTokens(),Hr.dispatch("auth",{event:"tokenRefresh_failure",data:{error:t}},"Auth",lo),t.name.startsWith("NotAuthorizedException"))return null;throw t}async setTokens({tokens:t}){return this.getTokenStore().storeTokens(t)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(t){return this.getTokenStore().getDeviceMetadata(t)}clearDeviceMetadata(t){return this.getTokenStore().clearDeviceMetadata(t)}setOAuthMetadata(t){return this.getTokenStore().setOAuthMetadata(t)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}class Kk{constructor(){this.authTokenStore=new Hk,this.authTokenStore.setKeyValueStorage(ta),this.tokenOrchestrator=new qk,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(jk)}getTokens({forceRefresh:t}={forceRefresh:!1}){return this.tokenOrchestrator.getTokens({forceRefresh:t})}setKeyValueStorage(t){this.authTokenStore.setKeyValueStorage(t)}
167setAuthConfig(t){this.authTokenStore.setAuthConfig(t),this.tokenOrchestrator.setAuthConfig(t)}}const cl=new Kk,{tokenOrchestrator:rr}=cl;async function zo(e){if(e.AccessToken){const t=Oo(e.AccessToken),r=(t.payload.iat||0)*1e3,s=new Date().getTime(),i=r>0?r-s:0;let l,c,f;e.RefreshToken&&(c=e.RefreshToken),e.IdToken&&(l=Oo(e.IdToken)),e!=null&&e.NewDeviceMetadata&&(f=e.NewDeviceMetadata);const h={accessToken:t,idToken:l,refreshToken:c,clockDrift:i,deviceMetadata:f,username:e.username};e!=null&&e.signInDetails&&(h.signInDetails=e.signInDetails),await rr.setTokens({tokens:h})}else throw new nr({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}const Gk="Unable to get user session following successful sign-in.",bs=async()=>{try{Hr.dispatch("auth",{event:"signedIn",data:await vl()},"Auth",lo)}catch(e){throw e.name===Pd?new Ke({name:Ck,message:Gk,recoverySuggestion:"This most likely is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."}):e}};function Iw(){return{active:!1}}const Yk=(e,t)=>{switch(t.type){case"SET_USERNAME":return{...e,username:t.value};case"SET_SESSION":return{...e,session:t.value};case"START":return{...e,active:!0};case"RESET":return Iw();default:return e}},Qk=e=>{let t=e(Iw(),{type:"RESET"});return{getState:()=>t,dispatch:r=>{t=e(t,r)}}},ys=Qk(Yk),Jk=3*60*1e3,eu="CognitoSignInState",Po={username:`${eu}.username`,challengeName:`${eu}.challengeName`,signInSession:`${eu}.signInSession`,expiry:`${eu}.expiry`},Xk=(e,t)=>{switch(t.type){case"SET_SIGN_IN_SESSION":return tu({signInSession:t.value}),{...e,signInSession:t.value};case"SET_SIGN_IN_STATE":return tu(t.value),{...t.value};case"SET_CHALLENGE_NAME":return tu({challengeName:t.value}),{...e,challengeName:t.value};case"SET_USERNAME":return tu({username:t.value}),{...e,username:t.value};case"SET_INITIAL_STATE":return eR();case"RESET_STATE":return Tw(),np();default:return e}},Zk=e=>{const t=Number(e),r=Date.now();return t<=r},Wr=()=>{uo.dispatch({type:"RESET_STATE"})},Tw=()=>{for(const e of Object.values(Po))To.removeItem(e)},np=()=>({username:void 0,challengeName:void 0,signInSession:void 0}),eR=()=>{const e=To.getItem(Po.expiry);if(!e||Zk(e))return Tw(),np();const t=To.getItem(Po.username)??void 0,r=To.getItem(Po.challengeName)??void 0,s=To.getItem(Po.signInSession)??void 0;return{username:t,challengeName:r,signInSession:s}},tR=e=>{let t=e(np(),{type:"SET_INITIAL_STATE"});return{getState:()=>t,dispatch:r=>{t=e(t,r)}}},uo=tR(Xk);function oi(e){uo.dispatch({type:"SET_SIGN_IN_STATE",value:e})}const tu=({challengeName:e,signInSession:t,username:r})=>{r&&To.setItem(Po.username,r),e&&To.setItem(Po.challengeName,e),t&&(To.setItem(Po.signInSession,t),To.setItem(Po.expiry,String(Date.now()+Jk)))};class Do extends nr{constructor(t){super(t),this.constructor=Do,Object.setPrototypeOf(this,Do.prototype)}}var ln;(function(e){e.PasskeyNotSupported="PasskeyNotSupported",e.PasskeyAlreadyExists="PasskeyAlreadyExists",e.InvalidPasskeyRegistrationOptions="InvalidPasskeyRegistrationOptions",e.InvalidPasskeyAuthenticationOptions="InvalidPasskeyAuthenticationOptions",e.RelyingPartyMismatch="RelyingPartyMismatch",e.PasskeyRegistrationFailed="PasskeyRegistrationFailed",e.PasskeyRetrievalFailed="PasskeyRetrievalFailed",e.PasskeyRegistrationCanceled="PasskeyRegistrationCanceled",e.PasskeyAuthenticationCanceled="PasskeyAuthenticationCanceled",e.PasskeyOperationAborted="PasskeyOperationAborted"})(ln||(ln={}));const ky="Passkeys may not be supported on this device. Ensure your application is running in a secure context (HTTPS) and Web Authentication API is supported.",N0="User may have canceled the ceremony or another interruption has occurred. Check underlying error for details.",Ry="Ensure your user pool is configured to support the WEB_AUTHN as an authentication factor.",ud={[ln.PasskeyNotSupported]:{message:"Passkeys may not be supported on this device.",recoverySuggestion:ky},[ln.InvalidPasskeyRegistrationOptions]:{message:"Invalid passkey registration options.",recoverySuggestion:Ry},[ln.InvalidPasskeyAuthenticationOptions]:{message:"Invalid passkey authentication options.",recoverySuggestion:Ry},[ln.PasskeyRegistrationFailed]:{message:"Device failed to create passkey.",recoverySuggestion:ky},[ln.PasskeyRetrievalFailed]:{message:"Device failed to retrieve passkey.",recoverySuggestion:"Passkeys may not be available on this device. Try an alternative authentication factor like PASSWORD, EMAIL_OTP, or SMS_OTP."},[ln.PasskeyAlreadyExists]:{message:"Passkey already exists in authenticator.",recoverySuggestion:"Proceed with existing passkey or try again after deleting the credential."},[ln.PasskeyRegistrationCanceled]:{message:"Passkey registration ceremony has been canceled.",recoverySuggestion:N0},[ln.PasskeyAuthenticationCanceled]:{message:"Passkey authentication ceremony has been canceled.",recoverySuggestion:N0},[ln.PasskeyOperationAborted]:{message:"Passkey operation has been aborted.",recoverySuggestion:N0},[ln.RelyingPartyMismatch]:{message:"Relying party does not match current domain.",recoverySuggestion:"Ensure relying party identifier matches current domain."}},rp=Gh(ud,Do),nR=e=>{if(e instanceof Do)return e;if(e instanceof Error&&e.name==="NotAllowedError"){const{message:t,recoverySuggestion:r}=ud[ln.PasskeyAuthenticationCanceled];return new Do({name:ln.PasskeyAuthenticationCanceled,message:t,recoverySuggestion:r,underlyingError:e})}return rR(e)},rR=e=>{if(e instanceof Error){if(e.name==="AbortError"){const{message:t,recoverySuggestion:r}=ud[ln.PasskeyOperationAborted];return new Do({name:ln.PasskeyOperationAborted,message:t,recoverySuggestion:r,underlyingError:e})}if(e.name==="SecurityError"){const{message:t,recoverySuggestion:r}=ud[ln.RelyingPartyMismatch];return new Do({name:ln.RelyingPartyMismatch,message:t,recoverySuggestion:r,underlyingError:e})}}return new Do({name:Ss.Unknown,message:"An unknown error has occurred.",underlyingError:e})},oR=()=>Id()&&window.isSecureContext&&"credentials"in navigator&&typeof window.PublicKeyCredential=="function",rl=e=>na.convert(new Uint8Array(e),{urlSafe:!0,skipPadding:!0}),Iy=e=>Uint8Array.from(Yh.convert(e,{urlSafe:!0}),t=>t.charCodeAt(0)).buffer,sR=e=>{const t=Iy(e.challenge),r=(e.allowCredentials||[]).map(s=>({...s,id:Iy(s.id)}));return{...e,challenge:t,allowCredentials:r}},iR=e=>{const t={clientDataJSON:rl(e.response.clientDataJSON),authenticatorData:rl(e.response.authenticatorData),signature:rl(e.response.signature)};e.response.userHandle&&(t.userHandle=rl(e.response.userHandle));const r={id:e.id,rawId:rl(e.rawId),type:e.type,clientExtensionResults:e.getClientExtensionResults(),response:t};return e.authenticatorAttachment&&(r.authenticatorAttachment=e.authenticatorAttachment),r};function aR(e){rp(e&&e instanceof PublicKeyCredential&&e.response instanceof AuthenticatorAssertionResponse,ln.PasskeyRetrievalFailed)}const lR=async e=>{try{const t=oR();rp(t,ln.PasskeyNotSupported);const r=sR(e),s=await navigator.credentials.get({publicKey:r});return aR(s),iR(s)}catch(t){throw nR(t)}},cR=e=>Rr(po,ho("ConfirmDevice"),Uo(),{...mo,...e}),vu={convert(e){return new TextEncoder().encode(e)}};function Re(e,t){e!=null&&this.fromString(e,t)}function Hn(){return new Re(null,null)}let ws;const uR=0xdeadbeefcafe,Ty=(uR&16777215)===15715070;function dR(e,t,r,s,i,l){for(;--l>=0;){const c=t*this[e++]+r[s]+i;i=Math.floor(c/67108864),r[s++]=c&67108863}return i}function fR(e,t,r,s,i,l){const c=t&32767,f=t>>15;for(;--l>=0;){let h=this[e]&32767;const d=this[e++]>>15,p=f*h+d*c;h=c*h+((p&32767)<<15)+r[s]+(i&1073741823),i=(h>>>30)+(p>>>15)+f*d+(i>>>30),r[s++]=h&1073741823}return i}function hR(e,t,r,s,i,l){const c=t&16383,f=t>>14;for(;--l>=0;){let h=this[e]&16383;const d=this[e++]>>14,p=f*h+d*c;h=c*h+((p&16383)<<14)+r[s]+i,i=(h>>28)+(p>>14)+f*d,r[s++]=h&268435455}return i}const Py=typeof navigator<"u";
167Py&&Ty&&navigator.appName==="Microsoft Internet Explorer"?(Re.prototype.am=fR,ws=30):Py&&Ty&&navigator.appName!=="Netscape"?(Re.prototype.am=dR,ws=26):(Re.prototype.am=hR,ws=28);Re.prototype.DB=ws;Re.prototype.DM=(1<<ws)-1;Re.prototype.DV=1<<ws;const op=52;Re.prototype.FV=Math.pow(2,op);Re.prototype.F1=op-ws;Re.prototype.F2=2*ws-op;const pR="0123456789abcdefghijklmnopqrstuvwxyz",Nd=[];let da,Ar;da=48;for(Ar=0;Ar<=9;++Ar)Nd[da++]=Ar;da=97;for(Ar=10;Ar<36;++Ar)Nd[da++]=Ar;da=65;for(Ar=10;Ar<36;++Ar)Nd[da++]=Ar;function Ny(e){return pR.charAt(e)}function mR(e,t){const r=Nd[e.charCodeAt(t)];return r??-1}function xR(e){for(let t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function gR(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function sp(e){const t=Hn();return t.fromInt(e),t}function yR(e,t){let r;if(t===16)r=4;else if(t===8)r=3;else if(t===2)r=1;else if(t===32)r=5;else if(t===4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let s=e.length,i=!1,l=0;for(;--s>=0;){const c=mR(e,s);if(c<0){e.charAt(s)==="-"&&(i=!0);continue}i=!1,l===0?this[this.t++]=c:l+r>this.DB?(this[this.t-1]|=(c&(1<<this.DB-l)-1)<<l,this[this.t++]=c>>this.DB-l):this[this.t-1]|=c<<l,l+=r,l>=this.DB&&(l-=this.DB)}this.clamp(),i&&Re.ZERO.subTo(this,this)}function vR(){const e=this.s&this.DM;for(;this.t>0&&this[this.t-1]==e;)--this.t}function wR(e){if(this.s<0)return"-"+this.negate().toString(e);let t;if(e==16)t=4;else if(e===8)t=3;else if(e===2)t=1;else if(e===32)t=5;else if(e===4)t=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");const r=(1<<t)-1;let s,i=!1,l="",c=this.t,f=this.DB-c*this.DB%t;if(c-- >0)for(f<this.DB&&(s=this[c]>>f)>0&&(i=!0,l=Ny(s));c>=0;)f<t?(s=(this[c]&(1<<f)-1)<<t-f,s|=this[--c]>>(f+=this.DB-t)):(s=this[c]>>(f-=t)&r,f<=0&&(f+=this.DB,--c)),s>0&&(i=!0),i&&(l+=Ny(s));return i?l:"0"}function ER(){const e=Hn();return Re.ZERO.subTo(this,e),e}function SR(){return this.s<0?this.negate():this}function CR(e){let t=this.s-e.s;if(t!=0)return t;let r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-e[r])!=0)return t;return 0}function ip(e){let t=1,r;return(r=e>>>16)!==0&&(e=r,t+=16),(r=e>>8)!==0&&(e=r,t+=8),(r=e>>4)!==0&&(e=r,t+=4),(r=e>>2)!==0&&(e=r,t+=2),(r=e>>1)!==0&&(e=r,t+=1),t}function bR(){return this.t<=0?0:this.DB*(this.t-1)+ip(this[this.t-1]^this.s&this.DM)}function _R(e,t){let r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s}function AR(e,t){for(let r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s}function kR(e,t){const r=e%this.DB,s=this.DB-r,i=(1<<s)-1,l=Math.floor(e/this.DB);let c=this.s<<r&this.DM,f;for(f=this.t-1;f>=0;--f)t[f+l+1]=this[f]>>s|c,c=(this[f]&i)<<r;for(f=l-1;f>=0;--f)t[f]=0;t[l]=c,t.t=this.t+l+1,t.s=this.s,t.clamp()}function RR(e,t){t.s=this.s;const r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}const s=e%this.DB,i=this.DB-s,l=(1<<s)-1;t[0]=this[r]>>s;for(let c=r+1;c<this.t;++c)t[c-r-1]|=(this[c]&l)<<i,t[c-r]=this[c]>>s;s>0&&(t[this.t-r-1]|=(this.s&l)<<i),t.t=this.t-r,t.clamp()}function IR(e,t){let r=0,s=0;const i=Math.min(e.t,this.t);for(;r<i;)s+=this[r]-e[r],t[r++]=s&this.DM,s>>=this.DB;if(e.t<this.t){for(s-=e.s;r<this.t;)s+=this[r],t[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<e.t;)s-=e[r],t[r++]=s&this.DM,s>>=this.DB;s-=e.s}t.s=s<0?-1:0,s<-1?t[r++]=this.DV+s:s>0&&(t[r++]=s),t.t=r,t.clamp()}function TR(e,t){const r=this.abs(),s=e.abs();let i=r.t;for(t.t=i+s.t;--i>=0;)t[i]=0;for(i=0;i<s.t;++i)t[i+r.t]=r.am(0,s[i],t,i,0,r.t);t.s=0,t.clamp(),this.s!==e.s&&Re.ZERO.subTo(t,t)}function PR(e){const t=this.abs();let r=e.t=2*t.t;for(;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){const s=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,s,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()}function NR(e,t,r){const s=e.abs();if(s.t<=0)return;const i=this.abs();if(i.t<s.t){t!=null&&t.fromInt(0),r!=null&&this.copyTo(r);return}r===null&&(r=Hn());const l=Hn(),c=this.s,f=e.s,h=this.DB-ip(s[s.t-1]);h>0?(s.lShiftTo(h,l),i.lShiftTo(h,r)):(s.copyTo(l),i.copyTo(r));const d=l.t,p=l[d-1];if(p===0)return;
167const g=p*(1<<this.F1)+(d>1?l[d-2]>>this.F2:0),x=this.FV/g,y=(1<<this.F1)/g,v=1<<this.F2;let E=r.t,C=E-d;const _=t===null?Hn():t;for(l.dlShiftTo(C,_),r.compareTo(_)>=0&&(r[r.t++]=1,r.subTo(_,r)),Re.ONE.dlShiftTo(d,_),_.subTo(l,l);l.t<d;)l[l.t++]=0;for(;--C>=0;){let b=r[--E]===p?this.DM:Math.floor(r[E]*x+(r[E-1]+v)*y);if((r[E]+=l.am(0,b,r,C,0,d))<b)for(l.dlShiftTo(C,_),r.subTo(_,r);r[E]<--b;)r.subTo(_,r)}t!==null&&(r.drShiftTo(d,t),c!==f&&Re.ZERO.subTo(t,t)),r.t=d,r.clamp(),h>0&&r.rShiftTo(h,r),c<0&&Re.ZERO.subTo(r,r)}function DR(e){const t=Hn();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Re.ZERO)>0&&e.subTo(t,t),t}function FR(){if(this.t<1)return 0;const e=this[0];if(!(e&1))return 0;let t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function OR(e){return this.compareTo(e)===0}function BR(e,t){let r=0,s=0;const i=Math.min(e.t,this.t);for(;r<i;)s+=this[r]+e[r],t[r++]=s&this.DM,s>>=this.DB;if(e.t<this.t){for(s+=e.s;r<this.t;)s+=this[r],t[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<e.t;)s+=e[r],t[r++]=s&this.DM,s>>=this.DB;s+=e.s}t.s=s<0?-1:0,s>0?t[r++]=s:s<-1&&(t[r++]=this.DV+s),t.t=r,t.clamp()}function LR(e){const t=Hn();return this.addTo(e,t),t}function MR(e){const t=Hn();return this.subTo(e,t),t}function jR(e){const t=Hn();return this.multiplyTo(e,t),t}function UR(e){const t=Hn();return this.divRemTo(e,t,null),t}function fa(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function zR(e){const t=Hn();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Re.ZERO)>0&&this.m.subTo(t,t),t}function $R(e){const t=Hn();return e.copyTo(t),this.reduce(t),t}function HR(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(let t=0;t<this.m.t;++t){let r=e[t]&32767;const s=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,s,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function WR(e,t){e.squareTo(t),this.reduce(t)}function VR(e,t,r){e.multiplyTo(t,r),this.reduce(r)}fa.prototype.convert=zR;fa.prototype.revert=$R;fa.prototype.reduce=HR;fa.prototype.mulTo=VR;fa.prototype.sqrTo=WR;function qR(e,t,r){let s=e.bitLength(),i,l=sp(1);const c=new fa(t);if(s<=0)return l;s<18?i=1:s<48?i=3:s<144?i=4:s<768?i=5:i=6;const f=[];let h=3;const d=i-1,p=(1<<i)-1;if(f[1]=c.convert(this),i>1){const _=Hn();for(c.sqrTo(f[1],_);h<=p;)f[h]=Hn(),c.mulTo(_,f[h-2],f[h]),h+=2}let g=e.t-1,x,y=!0,v=Hn(),E;for(s=ip(e[g])-1;g>=0;){for(s>=d?x=e[g]>>s-d&p:(x=(e[g]&(1<<s+1)-1)<<d-s,g>0&&(x|=e[g-1]>>this.DB+s-d)),h=i;!(x&1);)x>>=1,--h;if((s-=h)<0&&(s+=this.DB,--g),y)f[x].copyTo(l),y=!1;else{for(;h>1;)c.sqrTo(l,v),c.sqrTo(v,l),h-=2;h>0?c.sqrTo(l,v):(E=l,l=v,v=E),c.mulTo(v,f[x],l)}for(;g>=0&&!(e[g]&1<<s);)c.sqrTo(l,v),E=l,l=v,v=E,--s<0&&(s=this.DB-1,--g)}const C=c.revert(l);return r(null,C),C}Re.prototype.copyTo=xR;Re.prototype.fromInt=gR;Re.prototype.fromString=yR;Re.prototype.clamp=vR;Re.prototype.dlShiftTo=_R;Re.prototype.drShiftTo=AR;Re.prototype.lShiftTo=kR;Re.prototype.rShiftTo=RR;Re.prototype.subTo=IR;Re.prototype.multiplyTo=TR;Re.prototype.squareTo=PR;Re.prototype.divRemTo=NR;Re.prototype.invDigit=FR;Re.prototype.addTo=BR;Re.prototype.toString=wR;Re.prototype.negate=ER;Re.prototype.abs=SR;Re.prototype.compareTo=CR;Re.prototype.bitLength=bR;Re.prototype.mod=DR;Re.prototype.equals=OR;Re.prototype.add=LR;Re.prototype.subtract=MR;Re.prototype.multiply=jR;Re.prototype.divide=UR;Re.prototype.modPow=qR;Re.ZERO=sp(0);Re.ONE=sp(1);const KR=async({a:e,g:t,k:r,x:s,B:i,N:l,U:c})=>new Promise((f,h)=>{t.modPow(s,l,(d,p)=>{if(d){h(d);return}i.subtract(r.multiply(p)).modPow(e.add(c.multiply(s)),l,(g,x)=>{if(g){h(g);return}f(x.mod(l))})})}),GR="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",Pw={},dh={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Pw[e]=t,dh[t]=e}const ra=e=>{if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const s=e.slice(r,r+2).toLowerCase();if(s in dh)t[r/2]=dh[s];else throw new Error(`Cannot decode unrecognized sequence ${s} as hexadecimal`)}return t},ap=e=>{let t="";for(let r=0;r<e.byteLength;r++)t+=Pw[e[r]];return t},fh=e=>{const t=new gl;t.update(e);const r=t.digestSync(),s=ap(r);return new Array(64-s.length).join("0")+s},wu=e=>fh(ra(e)),YR=/^[89a-f]/i,Ro=e=>{if(!(e instanceof Re))throw new Error("Not a BigInteger");const t=e.compareTo(Re.ZERO)<0;let r=e.abs().toString(16);if(r=r.length%2!==0?`0${r}`:r,r=YR.test(r)?`00${r}`:r,t){const s=r.split("").map(l=>{const c=~parseInt(l,16)&15;return"0123456789ABCDEF".charAt(c)}).join("");r=new Re(s,16).add(Re.ONE).toString(16),r.toUpperCase().startsWith("FF8")&&(r=r.substring(2))}return r},QR=({A:e,B:t})=>{const r=new Re(wu(Ro(e)+Ro(t)),16);if(r.equals(Re.ZERO))throw new Error("U cannot be zero.");return r},JR=(e,t,r)=>{const s=new gl(t);s.update(e);const i=s.digestSync(),l=new gl(i);return l.update(r),l.digestSync().slice(0,16)}
167,lp=e=>{const t=new ep().random(e).toString();return ra(t)},XR=()=>na.convert(lp(40));class ZR{constructor({userPoolName:t,a:r,g:s,A:i,N:l}){this.encoder=vu,this.userPoolName=t,this.a=r,this.g=s,this.A=i,this.N=l,this.k=new Re(wu(`${Ro(l)}${Ro(s)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new Ke({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new Ke({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new Ke({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(t,r){this.randomPassword=XR();const s=`${t}${r}:${this.randomPassword}`,i=fh(s),l=ap(lp(16));return this.saltToHashDevices=Ro(new Re(l,16)),new Promise((c,f)=>{this.g.modPow(new Re(wu(this.saltToHashDevices+i),16),this.N,(h,d)=>{if(h){f(h);return}this.verifierDevices=Ro(d),c()})})}async getPasswordAuthenticationKey({username:t,password:r,serverBValue:s,salt:i}){if(s.mod(this.N).equals(Re.ZERO))throw new Error("B cannot be zero.");const l=QR({A:this.A,B:s}),c=`${this.userPoolName}${t}:${r}`,f=fh(c),h=new Re(wu(Ro(i)+f),16),d=await KR({a:this.a,g:this.g,k:this.k,x:h,B:s,N:this.N,U:l}),p=this.encoder.convert("Caldera Derived Key"),g=this.encoder.convert("�"),x=new Uint8Array(p.byteLength+g.byteLength);return x.set(p,0),x.set(g,p.byteLength),JR(ra(Ro(d)),ra(Ro(l)),x)}}const eI=async({a:e,g:t,N:r})=>new Promise((s,i)=>{t.modPow(e,r,(l,c)=>{if(l){i(l);return}if(c.mod(r).equals(Re.ZERO)){i(new Error("Illegal parameter. A mod N cannot be 0."));return}s(c)})}),Ll=async e=>{const t=new Re(GR,16),r=new Re("2",16),s=tI(),i=await eI({a:s,g:r,N:t});return new ZR({userPoolName:e,a:s,g:r,A:i,N:t})},tI=()=>{const e=ap(lp(128));return new Re(e,16)};async function si({userPoolId:e,userPoolEndpoint:t,newDeviceMetadata:r,accessToken:s}){if(!r)return;const i=e.split("_")[1]||"",l=await Ll(i),c=r==null?void 0:r.DeviceKey,f=r==null?void 0:r.DeviceGroupKey;try{await l.generateHashDevice(f??"",c??"")}catch{return}
167const h={Salt:na.convert(ra(l.getSaltToHashDevices())),PasswordVerifier:na.convert(ra(l.getVerifierDevices()))},d=l.getRandomPassword();try{return await cR({endpointResolver:$t({endpointOverride:t})})({region:zt(e)},{AccessToken:s,DeviceName:await ck(),DeviceKey:r==null?void 0:r.DeviceKey,DeviceSecretVerifierConfig:h}),{deviceKey:c,deviceGroupKey:f,randomPassword:d}}catch{return}}async function nI(e){var y;const t=(y=Vt.getConfig().Auth)==null?void 0:y.Cognito;Pt(t);const{username:r,signInSession:s,signInDetails:i,challengeName:l}=uo.getState();if(l!=="WEB_AUTHN"||!r)throw new Ke({name:co.SignInException,message:"Unable to proceed due to invalid sign in state."});const{CREDENTIAL_REQUEST_OPTIONS:c}=e;rp(!!c,ln.InvalidPasskeyAuthenticationOptions);const f=await lR(JSON.parse(c)),h=pr({endpointResolver:$t({endpointOverride:t.userPoolEndpoint})}),{ChallengeName:d,ChallengeParameters:p,AuthenticationResult:g,Session:x}=await h({region:zt(t.userPoolId),userAgentValue:tn(Gt.ConfirmSignIn)},{ChallengeName:"WEB_AUTHN",ChallengeResponses:{USERNAME:r,CREDENTIAL:JSON.stringify(f)},ClientId:t.userPoolClientId,Session:s});if(oi({signInSession:x,username:r,challengeName:d,signInDetails:i}
167),g)return await zo({...g,username:r,NewDeviceMetadata:await si({userPoolId:t.userPoolId,userPoolEndpoint:t.userPoolEndpoint,newDeviceMetadata:g.NewDeviceMetadata,accessToken:g.AccessToken}),signInDetails:i}),uo.dispatch({type:"RESET_STATE"}),await bs(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};if(d==="WEB_AUTHN")throw new Ke({name:co.SignInException,message:"Sequential WEB_AUTHN challenges returned from underlying service cannot be handled."});return{challengeName:d,challengeParameters:p}}const rI=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],oI=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Nw=()=>{const e=new Date,t=oI[e.getUTCDay()],r=rI[e.getUTCMonth()],s=e.getUTCDate();let i=e.getUTCHours();i<10&&(i=`0${i}`);let l=e.getUTCMinutes();l<10&&(l=`0${l}`);let c=e.getUTCSeconds();c<10&&(c=`0${c}`);const f=e.getUTCFullYear();return`${t} ${r} ${s} ${i}:${l}:${c} UTC ${f}`},Dw=({userPoolName:e,username:t,challengeParameters:r,dateNow:s,hkdf:i})=>{const l=vu.convert(e),c=vu.convert(t),f=sI(r.SECRET_BLOCK),h=vu.convert(s),d=new Uint8Array(l.byteLength+c.byteLength+f.byteLength+h.byteLength);d.set(l,0),d.set(c,l.byteLength),d.set(f,l.byteLength+c.byteLength),d.set(h,l.byteLength+c.byteLength+f.byteLength);const p=new gl(i);p.update(d);const g=p.digestSync();return na.convert(g)},sI=e=>{const t="=".repeat((4-e.length%4)%4),r=(e+t).replace(/-/g,"+").replace(/_/g,"/"),s=Yh.convert(r),i=new Uint8Array(s.length);for(let l=0;l<s.length;++l)i[l]=s.charCodeAt(l);return i};async function Dd({username:e,config:t,clientMetadata:r,session:s,tokenOrchestrator:i}){const{userPoolId:l,userPoolEndpoint:c}=t,f=t.userPoolClientId,h=await(i==null?void 0:i.getDeviceMetadata(e));bw(h);const d=await Ll(h.deviceGroupKey),p={USERNAME:e,SRP_A:d.A.toString(16),DEVICE_KEY:h.deviceKey},g={ChallengeName:"DEVICE_SRP_AUTH",ClientId:f,ChallengeResponses:p,ClientMetadata:r,Session:s},x=pr({endpointResolver:$t({endpointOverride:c})}),{ChallengeParameters:y,Session:v}=await x({region:zt(l)},g);return iI(e,y,r,v,d,t,i)}async function iI(e,t,r,s,i,{userPoolId:l,userPoolClientId:c,userPoolEndpoint:f},h){const d=await(h==null?void 0:h.getDeviceMetadata(e));bw(d);const p=new Re(t==null?void 0:t.SRP_B,16),g=new Re(t==null?void 0:t.SALT,16),{deviceKey:x}=d,{deviceGroupKey:y}=d,v=await i.getPasswordAuthenticationKey({username:d.deviceKey,password:d.randomPassword,serverBValue:p,salt:g}),E=Nw(),C={USERNAME:(t==null?void 0:t.USERNAME)??e,PASSWORD_CLAIM_SECRET_BLOCK:t==null?void 0:t.SECRET_BLOCK,TIMESTAMP:E,PASSWORD_CLAIM_SIGNATURE:Dw({username:x,userPoolName:y,challengeParameters:t,dateNow:E,hkdf:v}),DEVICE_KEY:x},_=Tn({username:e,userPoolId:l,userPoolClientId:c}),b={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:c,ChallengeResponses:C,Session:s,ClientMetadata:r,UserContextData:_};return pr({endpointResolver:$t({endpointOverride:f})})({region:zt(l)},b)}async function cp(e,t,r,s,i,l,c){const{userPoolId:f,userPoolClientId:h,userPoolEndpoint:d}=l,p=(f==null?void 0:f.split("_")[1])||"",g=new Re(t==null?void 0:t.SRP_B,16),x=new Re(t==null?void 0:t.SALT,16),y=t==null?void 0:t.USER_ID_FOR_SRP;if(!y)throw new Ke({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const v=await i.getPasswordAuthenticationKey({username:y,password:e,serverBValue:g,salt:x}),E=Nw(),C={USERNAME:y,PASSWORD_CLAIM_SECRET_BLOCK:t==null?void 0:t.SECRET_BLOCK,TIMESTAMP:E,PASSWORD_CLAIM_SIGNATURE:Dw({username:y,userPoolName:p,challengeParameters:t,dateNow:E,hkdf:v})},_=await c.getDeviceMetadata(y);_&&_.deviceKey&&(C.DEVICE_KEY=_.deviceKey);const b=Tn({username:y,userPoolId:f,userPoolClientId:h}),A={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:C,ClientMetadata:r,Session:s,ClientId:h,UserContextData:b},k=await pr({endpointResolver:$t({endpointOverride:d})})({region:zt(f)},A);return k.ChallengeName==="DEVICE_SRP_AUTH"?Dd({username:y,config:l,clientMetadata:r,session:k.Session,tokenOrchestrator:c}):k}async function ha(e,t,r,s){try{return await e(...t)}catch(i){if(i instanceof Ke&&i.name==="ResourceNotFoundException"&&i.message.includes("Device does not exist."))return await s.clearDeviceMetadata(r),e(...t);throw i}}function ii(e){const{dispatch:t}=uo;t({type:"SET_USERNAME",value:e})}async function Fw({username:e,password:t,clientMetadata:r,config:s,tokenOrchestrator:i,authFlow:l,preferredChallenge:c}){const{userPoolId:f,userPoolClientId:h,userPoolEndpoint:d}=s,p=(f==null?void 0:f.split("_")[1])||"",g=await Ll(p),x={USERNAME:e,SRP_A:g.A.toString(16)};l==="USER_AUTH"&&c&&(x.PREFERRED_CHALLENGE=c);const y=Tn({username:e,userPoolId:f,userPoolClientId:h}),v={AuthFlow:l,AuthParameters:x,ClientMetadata:r,ClientId:h,UserContextData:y},C=await ua({endpointResolver:$t({endpointOverride:d})})({region:zt(f),userAgentValue:tn(Gt.SignIn)},v),{ChallengeParameters:_,Session:b}=C,A=(_==null?void 0:_.USERNAME)??e;return ii(A),C.ChallengeName==="PASSWORD_VERIFIER"?ha(cp,[t,_,r,b,g,s,i],A,i):C}async function aI({username:e,session:t,selectedChallenge:r,config:s,clientMetadata:i}){return pr({endpointResolver:$t({endpointOverride:s.userPoolEndpoint})})({region:zt(s.userPoolId),userAgentValue:tn(Gt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:{USERNAME:e,ANSWER:r},ClientId:s.userPoolClientId,Session:t,ClientMetadata:i})}async function lI(e,t,r,s,i){var y;const{userPoolId:l,userPoolClientId:c,userPoolEndpoint:f}=s,h={ANSWER:"PASSWORD",USERNAME:e,PASSWORD:t},d=Tn({username:e,userPoolId:l,userPoolClientId:c}),g=await pr({endpointResolver:$t({endpointOverride:f})})({region:zt(l),userAgentValue:tn(Gt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:h,ClientId:c,ClientMetadata:r,Session:i,UserContextData:d}),x=((y=g.ChallengeParameters)==null?void 0:y.USERNAME)??e;return ii(x),g}async function cI(e,t,r,s,i,l){var C;const{userPoolId:c,userPoolClientId:f,userPoolEndpoint:h}=s,d=c.split("_")[1]||"",p=await Ll(d),g={ANSWER:"PASSWORD_SRP",USERNAME:e,SRP_A:p.A.toString(16)},x=Tn({username:e,userPoolId:c,userPoolClientId:f}),v=await pr({endpointResolver:$t({endpointOverride:h})})({region:zt(c),userAgentValue:tn(Gt.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:g,ClientId:f,ClientMetadata:r,Session:i,UserContextData:x}),E=((C=v.ChallengeParameters)==null?void 0:C.USERNAME)??e;return ii(E),v.ChallengeName==="PASSWORD_VERIFIER"?ha(cp,[t,v.ChallengeParameters,r,v.Session,p,s,l],E,l):v}const hh="userAttributes.";function uI(e){return"isSignedIn"in e&&"nextStep"in e}async function dI({challengeResponse:e,clientMetadata:t,session:r,username:s,config:i,tokenOrchestrator:l}){const{userPoolId:c,userPoolClientId:f,userPoolEndpoint:h}=i,d={USERNAME:s,ANSWER:e},p=await(l==null?void 0:l.getDeviceMetadata(s));p&&p.deviceKey&&(d.DEVICE_KEY=p.deviceKey);const g=Tn({username:s,userPoolId:c,userPoolClientId:f}),x={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:d,Session:r,ClientMetadata:t,ClientId:f,UserContextData:g},v=await pr({endpointResolver:$t({endpointOverride:h})})({region:zt(c),userAgentValue:tn(Gt.ConfirmSignIn)},x);return v.ChallengeName==="DEVICE_SRP_AUTH"?Dd({username:s,config:i,clientMetadata:t,session:v.Session,tokenOrchestrator:l}):v}async function fI({challengeResponse:e,username:t,clientMetadata:r,session:s,deviceName:i,config:l}){const{userPoolId:c,userPoolClientId:f,userPoolEndpoint:h}=l;if(e==="EMAIL")return{ChallengeName:"MFA_SETUP",Session:s,ChallengeParameters:{MFA
167S_CAN_SETUP:'["EMAIL_OTP"]'},$metadata:{}};if(e==="TOTP")return{ChallengeName:"MFA_SETUP",Session:s,ChallengeParameters:{MFAS_CAN_SETUP:'["SOFTWARE_TOKEN_MFA"]'},$metadata:{}};const d={USERNAME:t};if(/^\d+$/.test(e)){const x=Ok({endpointResolver:$t({endpointOverride:h})}),{Session:y}=await x({region:zt(c),userAgentValue:tn(Gt.ConfirmSignIn)},{UserCode:e,Session:s,FriendlyDeviceName:i});uo.dispatch({type:"SET_SIGN_IN_SESSION",value:y});const v={ChallengeName:"MFA_SETUP",ChallengeResponses:d,Session:y,ClientMetadata:r,ClientId:f};return pr({endpointResolver:$t({endpointOverride:h})})({region:zt(c),userAgentValue:tn(Gt.ConfirmSignIn)},v)}if(e.includes("@")){d.EMAIL=e;const x={ChallengeName:"MFA_SETUP",ChallengeResponses:d,Session:s,ClientMetadata:r,ClientId:f};return pr({endpointResolver:$t({endpointOverride:h})})({region:zt(c),userAgentValue:tn(Gt.ConfirmSignIn)},x)}throw new Ke({name:co.SignInException,message:`Cannot proceed with MFA setup using challengeResponse: ${e}`,recoverySuggestion:'Try passing "EMAIL", "TOTP", a valid email, or OTP code as the challengeResponse.'})}async function hI({challengeResponse:e,username:t,clientMetadata:r,session:s,config:i}){const{userPoolId:l,userPoolClientId:c,userPoolEndpoint:f}=i;vn(e==="TOTP"||e==="SMS"||e==="EMAIL",at.IncorrectMFAMethod);const h={USERNAME:t,ANSWER:CI(e)},d=Tn({username:t,userPoolId:l,userPoolClientId:c}),p={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:h,Session:s,ClientMetadata:r,ClientId:c,UserContextData:d};return pr({endpointResolver:$t({endpointOverride:f})})({region:zt(l),userAgentValue:tn(Gt.ConfirmSignIn)},p)}async function pI({challengeResponse:e,clientMetadata:t,session:r,username:s,requiredAttributes:i,config:l}){const{userPoolId:c,userPoolClientId:f,userPoolEndpoint:h}=l,d={...EI(i),NEW_PASSWORD:e,USERNAME:s},p=Tn({username:s,userPoolId:c,userPoolClientId:f}),g={ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:d,ClientMetadata:t,Session:r,ClientId:f,UserContextData:p};return pr({endpointResolver:$t({endpointOverride:h})})({region:zt(c),userAgentValue:tn(Gt.ConfirmSignIn)},g)}async function mI(e,t,r,s,i){var E,C;const{userPoolClientId:l,userPoolId:c,userPoolEndpoint:f}=s,h={USERNAME:e,PASSWORD:t},d=await i.getDeviceMetadata(e);d&&d.deviceKey&&(h.DEVICE_KEY=d.deviceKey);const p=Tn({username:e,userPoolId:c,userPoolClientId:l}),g={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:h,ClientMetadata:r,ClientId:l,UserContextData:p},y=await ua({endpointResolver:$t({endpointOverride:f})})({region:zt(c),userAgentValue:tn(Gt.SignIn)},g),v=((E=y.ChallengeParameters)==null?void 0:E.USERNAME)??((C=y.ChallengeParameters)==null?void 0:C.USER_ID_FOR_SRP)??e;return ii(v),y.ChallengeName==="DEVICE_SRP_AUTH"?Dd({username:v,config:s,clientMetadata:r,session:y.Session,tokenOrchestrator:i}):y}async function xI(e,t,r,s,i){return Fw({username:e,password:t,clientMetadata:r,config:s,tokenOrchestrator:i,authFlow:"USER_SRP_AUTH"})}async function gI(e,t,r,s){var v;const{userPoolClientId:i,userPoolId:l,userPoolEndpoint:c}=r,f={USERNAME:e},h=await s.getDeviceMetadata(e);h&&h.deviceKey&&(f.DEVICE_KEY=h.deviceKey);const d=Tn({username:e,userPoolId:l,userPoolClientId:i}),p={AuthFlow:"CUSTOM_AUTH",AuthParameters:f,ClientMetadata:t,ClientId:i,UserContextData:d},x=await ua({endpointResolver:$t({endpointOverride:c})})({region:zt(l),userAgentValue:tn(Gt.SignIn)},p),y=((v=x.ChallengeParameters)==null?void 0:v.USERNAME)??e;return ii(y),x.ChallengeName==="DEVICE_SRP_AUTH"?Dd({username:y,config:r,clientMetadata:t,session:x.Session,tokenOrchestrator:s}):x}async function yI(e,t,r,s,i){Pt(s);const{userPoolId:l,userPoolClientId:c,userPoolEndpoint:f}=s,h=(l==null?void 0:l.split("_")[1])||"",d=await Ll(h),p={USERNAME:e,SRP_A:d.A.toString(16),CHALLENGE_NAME:"SRP_A"},g=Tn({username:e,userPoolId:l,userPoolClientId:c}),x={AuthFlow:"CUSTOM_AUTH",AuthParameters:p,ClientMetadata:r,ClientId:c,UserContextData:g},y=ua({endpointResolver:$t({endpointOverride:f})}),{ChallengeParameters:v,Session:E}=await y({region:zt(l),userAgentValue:tn(Gt.SignIn)},x),C=(v==null?void 0:v.USERNAME)??e;return ii(C),ha(cp,[t,v,r,E,d,s,i],C,i)}async function ai(e){var l;const{challengeName:t,challengeParameters:r,availableChallenges:s}=e,i=(l=Vt.getConfig().Auth)==null?void 0:l.Cognito;switch(Pt(i),t){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:r}};case"MFA_SETUP":{const{signInSession:c,username:f}=uo.getState(),h=Dy(Fy(r.MFAS_CAN_SETUP))||[],d=_I(h),p=d.includes("TOTP"),g=d.includes("EMAIL");if(p&&g)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION",allowedMFATypes:d}};if(g)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"}};if(p){const x=Bk({endpointResolver:$t({endpointOverride:i.userPoolEndpoint})}),{Session:y,SecretCode:v}=await x({region:zt(i.userPoolId)},{Session:c});return uo.dispatch({type:"SET_SIGN_IN_SESSION",value:y}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:vI(v,f)}}}throw new Ke({name:co.SignInException,message:`Cannot initiate MFA setup from available types: ${h}`})}case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:wI(r.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:Dy(Fy(r.MFAS_CAN_CHOOSE))}};case"SMS_OTP":case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:r.CODE_DELIVERY_DELIVERY_MEDIUM,destination:r.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}};case"EMAIL_OTP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_EMAIL_CODE",codeDeliveryDetails:{deliveryMedium:r.CODE_DELIVERY_DELIVERY_MEDIUM,destination:r.CODE_DELIVERY_DESTINATION}}};case"WEB_AUTHN":{const c=await nI(r);return uI(c)?c:ai(c)}case"PASSWORD":case"PASSWORD_SRP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_PASSWORD"}};case"SELECT_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION",availableChallenges:s}}}throw new Ke({name:co.SignInException,message:`An error occurred during the sign in process. ${t} challengeName returned by the underlying service was not addressed.`})}function vI(e,t){return{sharedSecret:e,getSetupUri:(r,s)=>{const i=`otpauth://totp/${r}:${s??t}?secret=${e}&issuer=${r}`;return new ri(i)}}}function pa(e){if(e===ld.PasswordResetRequiredException)return{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}};if(e===ld.UserNotConfirmedException)return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}
167}function wI(e){return e?JSON.parse(e).map(r=>r.includes(hh)?r.replace(hh,""):r):[]}function EI(e){if(!e)return{};const t={};return Object.entries(e).forEach(([r,s])=>{s&&(t[`${hh}${r}`]=s)}),t}async function SI(e,t,r,s,i,l,c,f){const h=f==null?void 0:f.userAttributes,d=f==null?void 0:f.friendlyDeviceName;switch(t){case"WEB_AUTHN":case"SELECT_CHALLENGE":return s==="PASSWORD_SRP"||s==="PASSWORD"?{ChallengeName:s,Session:r,$metadata:{}}:aI({username:e,session:r,selectedChallenge:s,config:i,clientMetadata:c});case"SELECT_MFA_TYPE":return hI({challengeResponse:s,clientMetadata:c,session:r,username:e,config:i});case"MFA_SETUP":return fI({challengeResponse:s,clientMetadata:c,session:r,username:e,deviceName:d,config:i});case"NEW_PASSWORD_REQUIRED":return pI({challengeResponse:s,clientMetadata:c,session:r,username:e,requiredAttributes:h,config:i});case"CUSTOM_CHALLENGE":return ha(dI,[{challengeResponse:s,clientMetadata:c,session:r,username:e,config:i,tokenOrchestrator:l}],e,l);case"SMS_MFA":case"SOFTWARE_TOKEN_MFA":case"SMS_OTP":case"EMAIL_OTP":return AI({challengeName:t,challengeResponse:s,clientMetadata:c,session:r,username:e,config:i});case"PASSWORD":return lI(e,s,c,i,r);case"PASSWORD_SRP":return cI(e,s,c,i,r,l)}throw new Ke({name:co.SignInException,message:`An error occurred during the sign in process. 168 ${t} challengeName returned by the underlying service was not addressed.`})}function CI(e){let t="SMS_MFA";return e==="TOTP"&&(t="SOFTWARE_TOKEN_MFA"),e==="EMAIL"&&(t="EMAIL_OTP"),t}function bI(e){if(e==="SMS_MFA")return"SMS";if(e==="SOFTWARE_TOKEN_MFA")return"TOTP";if(e==="EMAIL_OTP")return"EMAIL"}function Dy(e){if(e)return e.map(bI).filter(Boolean)}function Fy(e){return e?JSON.parse(e):[]}function _I(e){return e.filter(t=>t==="EMAIL"||t==="TOTP")}async function Ow(){let e;try{e=await vl()}catch{}if(e&&e.userId&&e.username)throw new Ke({name:hk,message:"There is already a signed in user.",recoverySuggestion:"Call signOut before calling signIn again."})}function Ml(e){return uo.getState().username??e}async function AI({challengeName:e,challengeResponse:t,clientMetadata:r,session:s,username:i,config:l}){const{userPoolId:c,userPoolClientId:f,userPoolEndpoint:h}=l,d={USERNAME:i};e==="EMAIL_OTP"&&(d.EMAIL_OTP_CODE=t),e==="SMS_MFA"&&(d.SMS_MFA_CODE=t),e==="SMS_OTP"&&(d.SMS_OTP_CODE=t),e==="SOFTWARE_TOKEN_MFA"&&(d.SOFTWARE_TOKEN_MFA_CODE=t);const p=Tn({username:i,userPoolId:c,userPoolClientId:f}),g={ChallengeName:e,ChallengeResponses:d,Session:s,ClientMetadata:r,ClientId:f,UserContextData:p};return pr({endpointResolver:$t({endpointOverride:h})})({region:zt(c),userAgentValue:tn(Gt.ConfirmSignIn)},g)}async function kI(e){var f;const t=(f=Vt.getConfig().Auth)==null?void 0:f.Cognito;Pt(t);const{username:r,password:s,options:i}=e,l={loginId:r,authFlowType:"CUSTOM_WITHOUT_SRP"},c=i==null?void 0:i.clientMetadata;vn(!!r,at.EmptySignInUsername),vn(!s,at.CustomAuthSignInPassword);try{const{ChallengeName:h,ChallengeParameters:d,AuthenticationResult:p,Session:g}=await ha(gI,[r,c,t,rr],r,rr),x=Ml(r);return oi({signInSession:g,username:x,challengeName:h,signInDetails:l}),p?(await zo({username:x,...p,NewDeviceMetadata:await si({userPoolId:t.userPoolId,userPoolEndpoint:t.userPoolEndpoint,newDeviceMetadata:p.NewDeviceMetadata,accessToken:p.AccessToken}),signInDetails:l}),Wr(),await bs(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):ai({challengeName:h,challengeParameters:d})}catch(h){Wr(),jo(h);const d=pa(h.name);if(d)return d;throw h}}async function RI(e){var f;const{username:t,password:r,options:s}=e,i={loginId:t,authFlowType:"CUSTOM_WITH_SRP"},l=(f=Vt.getConfig().Auth)==null?void 0:f.Cognito;Pt(l);const c=s==null?void 0:s.clientMetadata;vn(!!t,at.EmptySignInUsername),vn(!!r,at.EmptySignInPassword);try{const{ChallengeName:h,ChallengeParameters:d,AuthenticationResult:p,Session:g}=await yI(t,r,c,l,rr),x=Ml(t);return oi({signInSession:g,username:x,challengeName:h,signInDetails:i}
168),p?(await zo({username:x,...p,NewDeviceMetadata:await si({userPoolId:l.userPoolId,userPoolEndpoint:l.userPoolEndpoint,newDeviceMetadata:p.NewDeviceMetadata,accessToken:p.AccessToken}),signInDetails:i}),Wr(),await bs(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):ai({challengeName:h,challengeParameters:d})}catch(h){Wr(),jo(h);const d=pa(h.name);if(d)return d;throw h}}function Bo(e=!0){ys.dispatch({type:"RESET"})}async function Oy(e){var c,f;const{username:t,password:r}=e,s=(c=Vt.getConfig().Auth)==null?void 0:c.Cognito,i={loginId:t,authFlowType:"USER_SRP_AUTH"};Pt(s);const l=(f=e.options)==null?void 0:f.clientMetadata;vn(!!t,at.EmptySignInUsername),vn(!!r,at.EmptySignInPassword);try{const{ChallengeName:h,ChallengeParameters:d,AuthenticationResult:p,Session:g}=await xI(t,r,l,s,rr),x=Ml(t);return oi({signInSession:g,username:x,challengeName:h,signInDetails:i}),p?(await zo({username:x,...p,NewDeviceMetadata:await si({userPoolId:s.userPoolId,userPoolEndpoint:s.userPoolEndpoint,newDeviceMetadata:p.NewDeviceMetadata,accessToken:p.AccessToken}),signInDetails:i}
168),Wr(),await bs(),Bo(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):ai({challengeName:h,challengeParameters:d})}catch(h){Wr(),Bo(),jo(h);const d=pa(h.name);if(d)return d;throw h}}async function II(e){var f;const{username:t,password:r,options:s}=e,i=(f=Vt.getConfig().Auth)==null?void 0:f.Cognito,l={loginId:t,authFlowType:"USER_PASSWORD_AUTH"};Pt(i);const c=s==null?void 0:s.clientMetadata;vn(!!t,at.EmptySignInUsername),vn(!!r,at.EmptySignInPassword);try{const{ChallengeName:h,ChallengeParameters:d,AuthenticationResult:p,Session:g}=await ha(mI,[t,r,c,i,rr],t,rr),x=Ml(t);return oi({signInSession:g,username:x,challengeName:h,signInDetails:l}),p?(await zo({...p,username:x,NewDeviceMetadata:await si({userPoolId:i.userPoolId,userPoolEndpoint:i.userPoolEndpoint,newDeviceMetadata:p.NewDeviceMetadata,accessToken:p.AccessToken}),signInDetails:l}),Wr(),await bs(),Bo(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):ai({challengeName:h,challengeParameters:d})}catch(h){Wr(),Bo(),jo(h);const d=pa(h.name);if(d)return d;throw h}}async function TI({username:e,clientMetadata:t,config:r,tokenOrchestrator:s,preferredChallenge:i,password:l,session:c}){const{userPoolId:f,userPoolClientId:h,userPoolEndpoint:d}=r,p=Tn({username:e,userPoolId:f,userPoolClientId:h}),g={USERNAME:e};if(i){if(i==="PASSWORD_SRP")return vn(!!l,at.EmptySignInPassword),Fw({username:e,password:l,clientMetadata:t,config:r,tokenOrchestrator:s,authFlow:"USER_AUTH",preferredChallenge:i});i==="PASSWORD"&&(vn(!!l,at.EmptySignInPassword),g.PASSWORD=l),g.PREFERRED_CHALLENGE=i}const x={AuthFlow:"USER_AUTH",AuthParameters:g,ClientMetadata:t,ClientId:h,UserContextData:p};c&&(x.Session=c);const v=await ua({endpointResolver:$t({endpointOverride:d})})({region:zt(f),userAgentValue:tn(Gt.SignIn)},x);return ii(e),v}async function PI(e){var h;const{username:t,password:r,options:s}=e,i=(h=Vt.getConfig().Auth)==null?void 0:h.Cognito,l={loginId:t,authFlowType:"USER_AUTH"};Pt(i);const c=s==null?void 0:s.clientMetadata,f=s==null?void 0:s.preferredChallenge;vn(!!t,at.EmptySignInUsername);try{const d={username:t,config:i,tokenOrchestrator:rr,clientMetadata:c,preferredChallenge:f,password:r}
168,p=ys.getState();p.active&&p.username===t&&(d.session=p.session);const g=await TI(d),x=Ml(t);return oi({signInSession:g.Session,username:x,challengeName:g.ChallengeName,signInDetails:l}),g.AuthenticationResult?(await zo({username:x,...g.AuthenticationResult,NewDeviceMetadata:await si({userPoolId:i.userPoolId,userPoolEndpoint:i.userPoolEndpoint,newDeviceMetadata:g.AuthenticationResult.NewDeviceMetadata,accessToken:g.AuthenticationResult.AccessToken}),signInDetails:l}),Wr(),await bs(),Bo(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):ai({challengeName:g.ChallengeName,challengeParameters:g.ChallengeParameters,availableChallenges:"AvailableChallenges"in g?g.AvailableChallenges:void 0})}catch(d){Wr(),Bo(),jo(d);const p=pa(d.name);if(p)return p;throw d}}async function NI(e){var r;Bo(!1);const t=(r=e.options)==null?void 0:r.authFlowType;switch(await Ow(),t){case"USER_SRP_AUTH":return Oy(e);case"USER_PASSWORD_AUTH":return II(e);case"CUSTOM_WITHOUT_SRP":return kI(e);case"CUSTOM_WITH_SRP":return RI(e);case"USER_AUTH":return PI(e);default:return Oy(e)}}const DI=3*60*1e3;function FI(e){const t=id.listen("auth-internal",async({payload:s})=>{switch(s.event){case"confirmSignUp":{const i=s.data;i!=null&&i.isSignUpComplete&&(id.dispatch("auth-internal",{event:"autoSignIn"}),t())}}}),r=setTimeout(()=>{t(),clearTimeout(r),Bo()},DI)}const OI=()=>async e=>{if(e.statusCode>=300){const t=await ca(e);if(jo(t),t.name===ch.InvalidParameterException&&/'password'/.test(t.message)&&/Member must not be null/.test(t.message)){const r=at.EmptySignUpPassword,{message:s,recoverySuggestion:i}=Ew[r];throw new Ke({name:r,message:s,recoverySuggestion:i})}throw new Ke({name:t.name,message:t.message})}return Bl(e)},BI=e=>Rr(po,ho("SignUp"),OI(),{...mo,...e});async function LI(e){var N;const{username:t,password:r,options:s}=e,i=(N=Vt.getConfig().Auth)==null?void 0:N.Cognito,l=(i==null?void 0:i.signUpVerificationMethod)??"code",{clientMetadata:c,validationData:f,autoSignIn:h}=e.options??{};Pt(i),vn(!!t,at.EmptySignUpUsername);const d=typeof h!="boolean"?h:void 0;d==null||d.authFlowType;const{userPoolId:p,userPoolClientId:g,userPoolEndpoint:x}=i,y=BI({endpointResolver:$t({endpointOverride:x})}),v={Username:t,Password:void 0,UserAttributes:(s==null?void 0:s.userAttributes)&&ry(s==null?void 0:s.userAttributes),ClientMetadata:c,ValidationData:f&&ry(f),ClientId:g,UserContextData:Tn({username:t,userPoolId:p,userPoolClientId:g})};r&&(v.Password=r);const{UserSub:E,CodeDeliveryDetails:C,UserConfirmed:_,Session:b}=await y({region:zt(p),userAgentValue:tn(Gt.SignUp)},v);(d||h===!0)&&(ys.dispatch({type:"START"}),ys.dispatch({type:"SET_USERNAME",value:t}),ys.dispatch({type:"SET_SESSION",value:b}));const A={destination:C==null?void 0:C.Destination,deliveryMedium:C==null?void 0:C.DeliveryMedium,attributeName:C==null?void 0:C.AttributeName},T=!!_,k=ys.getState().active;if(T)return k?{isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"},userId:E}:{isSignUpComplete:!0,nextStep:{signUpStep:"DONE"},userId:E};if(k){if(l==="link")return{isSignUpComplete:!1,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN",codeDeliveryDetails:A},userId:E};FI()}return{isSignUpComplete:!1,nextStep:{signUpStep:"CONFIRM_SIGN_UP",codeDeliveryDetails:A},userId:E}}const MI=e=>Rr(po,ho("ResendConfirmationCode"),Uo(),{...mo,...e});async function jI(e){var y,v;const{username:t}=e;vn(!!t,at.EmptySignUpUsername);const r=(y=Vt.getConfig().Auth)==null?void 0:y.Cognito;Pt(r);const{userPoolClientId:s,userPoolId:i,userPoolEndpoint:l}=r,c=(v=e.options)==null?void 0:v.clientMetadata,f=Tn({username:t,userPoolId:i,userPoolClientId:s}),h=MI({endpointResolver:$t({endpointOverride:l})}),{CodeDeliveryDetails:d}=await h({region:zt(r.userPoolId),userAgentValue:tn(Gt.ResendSignUpCode)},{Username:t,ClientMetadata:c,ClientId:r.userPoolClientId,UserContextData:f}),{DeliveryMedium:p,AttributeName:g,Destination:x}={...d};return{destination:x,deliveryMedium:p,attributeName:g||void 0}}const UI=e=>Rr(po,ho("ConfirmSignUp"),Uo(),{...mo,...e});async function zI(e){var x;const{username:t,confirmationCode:r,options:s}=e,i=(x=Vt.getConfig().Auth)==null?void 0:x.Cognito;Pt(i);const{userPoolId:l,userPoolClientId:c,userPoolEndpoint:f}=i,h=s==null?void 0:s.clientMetadata;vn(!!t,at.EmptyConfirmSignUpUsername),vn(!!r,at.EmptyConfirmSignUpCode);const d=Tn({username:t,userPoolId:l,userPoolClientId:c}),p=UI({endpointResolver:$t({endpointOverride:f})}),{Session:g}=await p({region:zt(i.userPoolId),userAgentValue:tn(Gt.ConfirmSignUp)},{Username:t,ConfirmationCode:r,ClientMetadata:h,ForceAliasCreation:s==null?void 0:s.forceAliasCreation,ClientId:i.userPoolClientId,UserContextData:d});return new Promise((y,v)=>{try{const E={isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}},C=ys.getState();if(!C.active||C.username!==t){y(E),Bo();return}ys.dispatch({type:"SET_SESSION",value:g});const _=id.listen("auth-internal",({payload:b})=>{switch(b.event){case"autoSignIn":y({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),_()}});id.dispatch("auth-internal",{event:"confirmSignUp",data:E})}catch(E){v(E)}})}async function $I(e){var d;const{challengeResponse:t,options:r}
168=e,{username:s,challengeName:i,signInSession:l,signInDetails:c}=uo.getState(),f=(d=Vt.getConfig().Auth)==null?void 0:d.Cognito;Pt(f);const h=r==null?void 0:r.clientMetadata;if(vn(!!t,at.EmptyChallengeResponse),!s||!i||!l)throw new Ke({name:co.SignInException,message:` 169 An error occurred during the sign in process. 170 171 This most likely occurred due to: 172 1. signIn was not called before confirmSignIn. 173 2. signIn threw an exception. 174 3. page was refreshed during the sign in flow and session has expired. 175 `,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:p,ChallengeName:g,AuthenticationResult:x,ChallengeParameters:y}=await SI(s,i,l,t,f,rr,h,r);return oi({signInSession:p,username:s,challengeName:g,signInDetails:c}),x?(await zo({username:s,...x,NewDeviceMetadata:await si({userPoolId:f.userPoolId,userPoolEndpoint:f.userPoolEndpoint,newDeviceMetadata:x.NewDeviceMetadata,accessToken:x.AccessToken}),signInDetails:c}),Wr(),await bs(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):ai({challengeName:g,challengeParameters:y})}catch(p){jo(p);const g=pa(p.name);if(g)return g;throw p}}const HI=e=>Rr(po,ho("ChangePassword"),Uo(),{...mo,...e});async function WI(e){var h;const t=(h=Vt.getConfig().Auth)==null?void 0:h.Cognito;Pt(t);const{userPoolEndpoint:r,userPoolId:s}=t,{oldPassword:i,newPassword:l}=e;vn(!!i,at.EmptyUpdatePassword),vn(!!l,at.EmptyUpdatePassword);const{tokens:c}=await Mi({forceRefresh:!1});Sw(c),await HI({endpointResolver:$t({endpointOverride:r})})({region:zt(s),userAgentValue:tn(Gt.UpdatePassword)},{AccessToken:c.accessToken.toString(),PreviousPassword:i,ProposedPassword:l})}new tr("AuthError");const VI={oauthSignInError:{message:Cn.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:Cn.DEFAULT_MSG,log:` 176 Error: Amplify has not been configured correctly. 177 This error is typically caused by one of the following scenarios: 178 179 1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point 180 See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information 181 182 2. There might be multiple conflicting versions of amplify packages in your node_modules. 183 Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) 184 `},missingAuthConfig:{message:Cn.DEFAULT_MSG,log:` 185 Error: Amplify has not been configured correctly. 186 The configuration object is missing required auth properties. 187 This error is typically caused by one of the following scenarios: 188 189 1. Did you run \`amplify push\` after adding auth via \`amplify add auth\`? 190 See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information 191 192 2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages. 193 `},emptyUsername:{message:Cn.EMPTY_USERNAME},invalidUsername:{message:Cn.INVALID_USERNAME},emptyPassword:{message:Cn.EMPTY_PASSWORD},emptyCode:{message:Cn.EMPTY_CODE},signUpError:{message:Cn.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:Cn.NO_MFA},invalidMFA:{message:Cn.INVALID_MFA},emptyChallengeResponse:{message:Cn.EMPTY_CHALLENGE},noUserSession:{message:Cn.NO_USER_SESSION},deviceConfig:{message:Cn.DEVICE_CONFIG},networkError:{message:Cn.NETWORK_ERROR},autoSignInError:{message:Cn.AUTOSIGNIN_ERROR},default:{message:Cn.DEFAULT_MSG}},Xs=(e,t)=>new Ke({message:e??"An error has occurred during the oauth process.",name:co.OAuthSignInError,recoverySuggestion:VI.oauthSignInError.log});var ph;(function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyC
193hallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default",e.DeviceConfig="deviceConfig",e.NetworkError="networkError",e.AutoSignInError="autoSignInError",e.OAuthSignInError="oauthSignInError"})(ph||(ph={}));const qI="`signInWithRedirect` has been canceled.",KI="An error occurred while validating the state.",GI="Try to initiate an OAuth flow from Amplify",Bw=async e=>{const t=await Zn.loadOAuthState(),r=e===t?t:void 0;if(!r)throw new Ke({name:ph.OAuthSignInError,message:e===null?qI:KI,recoverySuggestion:e===null?void 0:GI});return r},Lw=async({currentUrl:e,userAgentValue:t,clientId:r,redirectUri:s,responseType:i,domain:l,preferPrivateSession:c})=>{const f=new ri(e),h=f.searchParams.get("error"),d=f.searchParams.get("error_description");if(h)throw Xs(d??h);return i==="code"?YI({currentUrl:e,userAgentValue:t,clientId:r,redirectUri:s,domain:l,preferPrivateSession:c}):QI({currentUrl:e,redirectUri:s,preferPrivateSession:c})},YI=async({currentUrl:e,userAgentValue:t,clientId:r,redirectUri:s,domain:i,preferPrivateSession:l})=>{const c=new ri(e),f=c.searchParams.get("code"),h=c.searchParams.get("state");if(!f||!h)throw Xs("User cancelled OAuth flow.");const d=await Bw(h),p="https://"+i+"/oauth2/token",g=await Zn.loadPKCE(),x={grant_type:"authorization_code",code:f,client_id:r,redirect_uri:s,...g?{code_verifier:g}:{}},y=Object.entries(x).map(([N,F])=>`${encodeURIComponent(N)}=${encodeURIComponent(F)}`).join("&"),{access_token:v,refresh_token:E,id_token:C,error:_,error_message:b,token_type:A,expires_in:T}=await(await fetch(p,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[o4]:t},body:y})).json();if(_)throw Xs(b??_);const k=(v&&Oo(v).payload.username)??"username";return await zo({username:k,AccessToken:v,IdToken:C,RefreshToken:E,TokenType:A,ExpiresIn:T}),Mw({redirectUri:s,state:d,preferPrivateSession:l})},QI=async({currentUrl:e,redirectUri:t,preferPrivateSession:r})=>{const s=new ri(e),{id_token:i,access_token:l,state:c,token_type:f,expires_in:h,error_description:d,error:p}=(s.hash??"#").substring(1).split("&").map(y=>y.split("=")).reduce((y,[v,E])=>({...y,[v]:E}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(p)throw Xs(d??p);if(!l)throw Xs("No access token returned from OAuth flow.");const g=await Bw(c),x=(l&&Oo(l).payload.username)??"username";return await zo({username:x,AccessToken:l,IdToken:i,TokenType:f,ExpiresIn:h}),Mw({redirectUri:t,state:g,preferPrivateSession:r})},Mw=async({redirectUri:e,state:t,preferPrivateSession:r})=>{await rr.setOAuthMetadata({oauthSignIn:!0}),await Zn.clearOAuthData(),await Zn.storeOAuthSignIn(!0,r),Rw(),JI(t)&&Hr.dispatch("auth",{event:"customOAuthState",data:ik(XI(t))},"Auth",lo),Hr.dispatch("auth",{event:"signInWithRedirect"},"Auth",lo),await bs(),ZI(e)},JI=e=>/-/.test(e),XI=e=>e.split("-").splice(1).join("-"),ZI=e=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",e)};function up(e,t){{const r=(e==null?void 0:e.find(e3))??(e==null?void 0:e.find(t3)),s=(e==null?void 0:e.find(r3))??(e==null?void 0:e.find(n3));if(r)return r;throw s?wk:yk}}const e3=e=>e.startsWith(String(window.location.origin+window.location.pathname)),t3=e=>e.includes(String(window.location.hostname)),n3=e=>e.startsWith("http://"),r3=e=>e.startsWith("https://"),dp=async e=>{Rw(),await Zn.clearOAuthInflightData(),Hr.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:e}},"Auth",lo)},o3=async e=>{try{Pt(e),_d(e),Zn.setAuthConfig(e)}catch{return}if(await Zn.loadOAuthInFlight())try{const t=window.location.href,{loginWith:r,userPoolClientId:s}=e,{domain:i,redirectSignIn:l,responseType:c}=r.oauth,f=up(l);await Lw({currentUrl:t,clientId:s,domain:i,redirectUri:f,responseType:c,userAgentValue:tn(Gt.SignInWithRedirect)})}catch(t){await dp(t)}};Id()&&Vt[J1](o3);const s3={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},jw=async e=>{window!=null&&window.location&&(window.location.href=e.replace("http://","https://"))},By="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i3=e=>{const t=new Uint8Array(e);Y1().getRandomValues(t);let r="",s;for(const i of t)r+=By.charAt(i%By.length);
193return{value:r,method:"S256",toCodeChallenge(){return s||(s=a3(r),s)}}};function a3(e){const t=new gl;return t.update(e),l3(na.convert(t.digestSync(),{urlSafe:!0}))}function l3(e){return e.replace(/=/g,"")}const c3=()=>sk(32),u3=e=>{async function t(r){if(r.persisted&&await e.loadOAuthInFlight()){const i=Xs("User cancelled OAuth flow.");await dp(i)}window.removeEventListener("pageshow",t)}window.addEventListener("pageshow",t)};async function d3(e){var s,i,l,c,f,h;const t=(s=Vt.getConfig().Auth)==null?void 0:s.Cognito;Pt(t),_d(t),Zn.setAuthConfig(t),await Ow();let r="COGNITO";return typeof(e==null?void 0:e.provider)=="string"?r=s3[e.provider]:(i=e==null?void 0:e.provider)!=null&&i.custom&&(r=e.provider.custom),f3({oauthConfig:t.loginWith.oauth,clientId:t.userPoolClientId,provider:r,customState:e==null?void 0:e.customState,preferPrivateSession:(l=e==null?void 0:e.options)==null?void 0:l.preferPrivateSession,options:{loginHint:(c=e==null?void 0:e.options)==null?void 0:c.loginHint,lang:(f=e==null?void 0:e.options)==null?void 0:f.lang,nonce:(h=e==null?void 0:e.options)==null?void 0:h.nonce}})}const f3=async({oauthConfig:e,provider:t,clientId:r,customState:s,preferPrivateSession:i,options:l})=>{const{domain:c,redirectSignIn:f,responseType:h,scopes:d}=e,{loginHint:p,lang:g,nonce:x}=l??{},y=c3(),v=s?`${y}-${ak(s)}`:y,{value:E,method:C,toCodeChallenge:_}=i3(128),b=up(e.redirectSignIn);Id()&&Zn.storeOAuthInFlight(!0),Zn.storeOAuthState(v),Zn.storePKCE(E);const A=Object.entries({redirect_uri:b,response_type:h,client_id:r,identity_provider:t,scope:d.join(" "),...p&&{login_hint:p},...g&&{lang:g},...x&&{nonce:x},state:v,...h==="code"&&{code_challenge:_(),code_challenge_method:C}}).map(([P,U])=>`${encodeURIComponent(P)}=${encodeURIComponent(U)}`).join("&"),T=`https://${c}
193/oauth2/authorize?${A}`;u3(Zn);const{type:k,error:N,url:F}=await jw(T)??{};try{if(k==="error")throw Xs(String(N));k==="success"&&F&&await Lw({currentUrl:F,clientId:r,domain:c,redirectUri:b,responseType:h,userAgentValue:tn(Gt.SignInWithRedirect),preferPrivateSession:i})}catch(P){throw await dp(P),P}},h3=async e=>{await e.clearOAuthData(),rr.clearTokens(),await lw(),Hr.dispatch("auth",{event:"signedOut"},"Auth",lo)},p3=async(e,t=!1,r)=>{_d(e);const{loginWith:s,userPoolClientId:i}=e,{domain:l,redirectSignOut:c}=s.oauth,f=up(c),h=`https://${l}/logout?${Object.entries({client_id:i,logout_uri:encodeURIComponent(f)}).map(([d,p])=>`${d}=${p}`).join("&")}`;return jw(h)},m3=async(e,t,r,s)=>{const{isOAuthSignIn:i}=await t.loadOAuthSignIn(),l=await r.getOAuthMetadata();if(await h3(t),i||l!=null&&l.oauthSignIn)return p3(e,!1)},x3=e=>Rr(po,ho("RevokeToken"),Uo(),{...mo,...e}),g3=new tr("Auth");async function y3(e){var s;const t=(s=Vt.getConfig().Auth)==null?void 0:s.Cognito;Pt(t),await v3(t);let r;try{_d(t),r=!0}catch{r=!1}if(r){const i=new kw(ta);i.setAuthConfig(t);const{type:l}=await m3(t,i,rr)??{};if(l==="error")throw new Ke({name:Ek,message:"An error occurred when attempting to log out from OAuth provider."})}else rr.clearTokens(),await lw(),Hr.dispatch("auth",{event:"signedOut"},"Auth",lo)}async function v3(e){try{const{userPoolEndpoint:t,userPoolId:r,userPoolClientId:s}=e,i=await rr.getTokenStore().loadTokens();Cw(i),w3(i.accessToken)&&await x3({endpointResolver:$t({endpointOverride:t})})({region:zt(r),userAgentValue:tn(Gt.SignOut)},{ClientId:s,Token:i.refreshToken})}catch{g3.debug("Client signOut error caught but will proceed with token removal")}}const w3=e=>{var t;return!!((t=e==null?void 0:e.payload)!=null&&t.origin_jti)},E3={identityId:"identityId"},S3=new tr("DefaultIdentityIdStore");class C3{setAuthConfig(t){mu(t.Cognito),this.authConfig=t,this._authKeys=b3("Cognito",t.Cognito.identityPoolId)}constructor(t){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=t}async loadIdentityId(){var t;mu((t=this.authConfig)==null?void 0:t.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const r=await this.keyValueStorage.getItem(this._authKeys.identityId);return r?(this._hasGuestIdentityId=!0,{id:r,type:"guest"}):null}}catch(r){return S3.log("Error getting stored IdentityId.",r),null}}async storeIdentityId(t){var r;mu((r=this.authConfig)==null?void 0:r.Cognito),t.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,t.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=t.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const b3=(e,t)=>tp(E3)(`com.amplify.${e}`,t);function Uw(e){const t=Oo(e).payload.iss,r={};if(!t)throw new Ke({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const s=t.replace(/(^\w+:|^)\/\//,"");return r[s]=e,r}const _3=new tr("CognitoIdentityIdProvider");async function A3({tokens:e,authConfig:t,identityIdStore:r}){r.setAuthConfig({Cognito:t});let s=await r.loadIdentityId();if(e){if(s&&s.type==="primary")return s.id;{const i=e.idToken?Uw(e.idToken.toString()):{},l=await Ly(i,t);s&&s.id===l&&_3.debug(`The guest identity ${s.id} has become the primary identity.`),s={id:l,type:"primary"}}}else{if(s&&s.type==="guest")return s.id;s={id:await Ly({},t),type:"guest"}}return r.storeIdentityId(s),s.id}async function Ly(e,t){const r=t==null?void 0:t.identityPoolId,s=lh(r),i=(await YA({region:s},{IdentityPoolId:r,Logins:e})).IdentityId;if(!i)throw new Ke({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return i}const nu=new tr("CognitoCredentialsProvider"),My=50*60*1e3;class k3{constructor(t){this._nextCredentialsRefresh=0,this._identityIdStore=t}async clearCredentialsAndIdentityId(){nu.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){nu.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(t){const r=t.authenticated,{tokens:s}=t,{authConfig:i}=t;try{mu(i==null?void 0:i.Cognito)}catch{return}if(!r&&!i.Cognito.allowGuestAccess)return;const{forceRefresh:l}=t,c=this.hasTokenChanged(s),f=await A3({tokens:s,authConfig:i.Cognito,identityIdStore:this._identityIdStore});return(l||c)&&this.clearCredentials(),r?(bk(s),this.credsForOIDCTokens(i.Cognito,s,f)):this.getGuestCredentials(f,i.Cognito)}async getGuestCredentials(t,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return nu.info("returning stored credentials as they neither past TTL n
193or expired."),this._credentialsAndIdentityId;this.clearCredentials();const s=lh(r.identityPoolId),i=await ey({region:s},{IdentityId:t});if(i.Credentials&&i.Credentials.AccessKeyId&&i.Credentials.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+My;const l={credentials:{accessKeyId:i.Credentials.AccessKeyId,secretAccessKey:i.Credentials.SecretKey,sessionToken:i.Credentials.SessionToken,expiration:i.Credentials.Expiration},identityId:t},c=i.IdentityId;return c&&(l.identityId=c,this._identityIdStore.storeIdentityId({id:c,type:"guest"})),this._credentialsAndIdentityId={...l,isAuthenticatedCreds:!1},l}else throw new Ke({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(t,r,s){var f;if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return nu.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const i=r.idToken?Uw(r.idToken.toString()):{},l=lh(t.identityPoolId),c=await ey({region:l},{IdentityId:s,Logins:i});if(c.Credentials&&c.Credentials.AccessKeyId&&c.Credentials.SecretKey){const h={credentials:{accessKeyId:c.Credentials.AccessKeyId,secretAccessKey:c.Credentials.SecretKey,sessionToken:c.Credentials.SessionToken,expiration:c.Credentials.Expiration},identityId:s};this._credentialsAndIdentityId={...h,isAuthenticatedCreds:!0,associatedIdToken:(f=r.idToken)==null?void 0:f.toString()},this._nextCredentialsRefresh=new Date().getTime()+My;const d=c.IdentityId;return d&&(h.identityId=d,this._identityIdStore.storeIdentityId({id:d,type:"primary"})),h}else throw new Ke({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(t){var r,s;return!!t&&!!((r=this._credentialsAndIdentityId)!=null&&r.associatedIdToken)&&((s=t.idToken)==null?void 0:s.toString())!==this._credentialsAndIdentityId.associatedIdToken}}const R3=new k3(new C3(ta)),I3={configure(e,t){const r=Z1(e);if(!r.Auth){Vt.configure(r,t);return}if(t!=null&&t.Auth){Vt.configure(r,t);return}if(!Vt.libraryOptions.Auth){cl.setAuthConfig(r.Auth),cl.setKeyValueStorage(t!=null&&t.ssr?new ty({sameSite:"lax"}):ta),Vt.configure(r,{...t,Auth:{tokenProvider:cl,credentialsProvider:R3}});return}if(t){t.ssr!==void 0&&cl.setKeyValueStorage(t.ssr?new ty({sameSite:"lax"}):ta),Vt.configure(r,{Auth:Vt.libraryOptions.Auth,...t});return}Vt.configure(r)},getConfig(){return Vt.getConfig()}},T3={aws_project_region:"ap-south-1",aws_cognito_region:"ap-south-1",aws_user_pools_id:"ap-south-1_1f9O34ojY",aws_user_pools_web_client_id:"7ul99pqf5uflpl2ckvukklc6c3",oauth:{domain:"worko-congnito.auth.ap-south-1.amazoncognito.com",redirectSignIn:"https://worko.ai/auth/checkRedirection",redirectSignOut:void 0,responseType:"code",scope:["email","openid","profile","phone"]}};class P3{constructor(t,r){this.storage=t,this.hash=r.hash,this.encrypt=r.encrypt,this.decrypt=r.decrypt}getItem(t){const r=this.hash(t),s=this.storage.getItem(r);if(s)try{const i=this.decrypt(s);try{return JSON.parse(i)}catch{return i}}catch(i){return console.error("Error decrypting item:",i),null}return null}setItem(t,r){const s=this.hash(t),i=typeof r=="string"?r:JSON.stringify(r),l=this.encrypt(i);try{this.storage.setItem(s,l)}catch(c){console.error("Error setting item:",c)}}remove(t){const r=this.hash(t);if(this.storage.getItem(r))try{this.storage.removeItem(t)}catch(i){console.error("Error removing item:",i)}}clear(){try{this.storage.clear()}catch(t){console.error("Error clearing storage:",t)}}}var Eu={exports:{}};function N3(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Su={exports:{}};const D3={},F3=Object.freeze(Object.defineProperty({__proto__:null,default:D3},Symbol.toStringTag,{value:"Module"})),O3=w2(F3);var B3=Su.exports,jy;function Et(){return jy||(jy=1,function(e,t){(function(r,s){e.exports=s()})(B3,function(){var r=r||function(s,i){var l;if(typeof window<"u"&&window.crypto&&(l=window.crypto),typeof self<"u"&&self.crypto&&(l=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(l=globalThis.crypto),!l&&typeof window<"u"&&window.msCrypto&&(l=window.msCrypto),!l&&typeof w0<"u"&&w0.crypto&&(l=w0.crypto),!l&&typeof N3=="function")try{l=O3}catch{}var c=function(){if(l){if(typeof l.getRandomValues=="function")try{return l.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof l.randomBytes=="function")try{return l.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function b(){}return function(A){var T;return b.prototype=A,T=new b,b.prototype=null,T}}(),h={},d=h.lib={},p=d.Base=function(){return{extend:function(b){var A=f(this);return b&&A.mixIn(b),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.a
vendor: 23,125 bytes, lines 193-201
193pply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var A in b)b.hasOwnProperty(A)&&(this[A]=b[A]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),g=d.WordArray=p.extend({init:function(b,A){b=this.words=b||[],A!=i?this.sigBytes=A:this.sigBytes=b.length*4},toString:function(b){return(b||y).stringify(this)},concat:function(b){var A=this.words,T=b.words,k=this.sigBytes,N=b.sigBytes;if(this.clamp(),k%4)for(var F=0;F<N;F++){var P=T[F>>>2]>>>24-F%4*8&255;A[k+F>>>2]|=P<<24-(k+F)%4*8}else for(var U=0;U<N;U+=4)A[k+U>>>2]=T[U>>>2];return this.sigBytes+=N,this},clamp:function(){var b=this.words,A=this.sigBytes;b[A>>>2]&=4294967295<<32-A%4*8,b.length=s.ceil(A/4)},clone:function(){var b=p.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var A=[],T=0;T<b;T+=4)A.push(c());return new g.init(A,b)}}),x=h.enc={},y=x.Hex={stringify:function(b){for(var A=b.words,T=b.sigBytes,k=[],N=0;N<T;N++){var F=A[N>>>2]>>>24-N%4*8&255;k.push((F>>>4).toString(16)),k.push((F&15).toString(16))}return k.join("")},parse:function(b){for(var A=b.length,T=[],k=0;k<A;k+=2)T[k>>>3]|=parseInt(b.substr(k,2),16)<<24-k%8*4;return new g.init(T,A/2)}},v=x.Latin1={stringify:function(b){for(var A=b.words,T=b.sigBytes,k=[],N=0;N<T;N++){var F=A[N>>>2]>>>24-N%4*8&255;k.push(String.fromCharCode(F))}return k.join("")},parse:function(b){for(var A=b.length,T=[],k=0;k<A;k++)T[k>>>2]|=(b.charCodeAt(k)&255)<<24-k%4*8;return new g.init(T,A)}},E=x.Utf8={stringify:function(b){try{return decodeURIComponent(escape(v.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return v.parse(unescape(encodeURIComponent(b)))}},C=d.BufferedBlockAlgorithm=p.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=E.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var A,T=this._data,k=T.words,N=T.sigBytes,F=this.blockSize,P=F*4,U=N/P;b?U=s.ceil(U):U=s.max((U|0)-this._minBufferSize,0);var O=U*F,B=s.min(O*4,N);if(O){for(var $=0;$<O;$+=F)this._doProcessBlock(k,$);A=k.splice(0,O),T.sigBytes-=B}return new g.init(A,B)},clone:function(){var b=p.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});d.Hasher=C.extend({cfg:p.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var A=this._doFinalize();return A},blockSize:16,_createHelper:function(b){return function(A,T){return new b.init(T).finalize(A)}},_createHmacHelper:function(b){return function(A,T){return new _.HMAC.init(b,T).finalize(A)}}});var _=h.algo={};return h}(Math);return r})}(Su)),Su.exports}var Cu={exports:{}},L3=Cu.exports,Uy;function Fd(){return Uy||(Uy=1,function(e,t){(function(r,s){e.exports=s(Et())})(L3,function(r){return function(s){var i=r,l=i.lib,c=l.Base,f=l.WordArray,h=i.x64={};h.Word=c.extend({init:function(d,p){this.high=d,this.low=p}}),h.WordArray=c.extend({init:function(d,p){d=this.words=d||[],p!=s?this.sigBytes=p:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,p=d.length,g=[],x=0;x<p;x++){var y=d[x];g.push(y.high),g.push(y.low)}return f.create(g,this.sigBytes)},clone:function(){for(var d=c.clone.call(this),p=d.words=this.words.slice(0),g=p.length,x=0;x<g;x++)p[x]=p[x].clone();return d}})}(),r})}(Cu)),Cu.exports}var bu={exports:{}},M3=bu.exports,zy;function j3(){return zy||(zy=1,function(e,t){(function(r,s){e.exports=s(Et())})(M3,function(r){return function(){if(typeof ArrayBuffer=="function"){var s=r,i=s.lib,l=i.WordArray,c=l.init,f=l.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray<"u"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var d=h.byteLength,p=[],g=0;g<d;g++)p[g>>>2]|=h[g]<<24-g%4*8;c.call(this,p,d)}else c.apply(this,arguments)};f.prototype=l}}(),r.lib.WordArray})}(bu)),bu.exports}var _u={exports:{}},U3=_u.exports,$y;function z3(){return $y||($y=1,function(e,t){(function(r,s){e.exports=s(Et())})(U3,function(r){return function(){var s=r,i=s.lib,l=i.WordArray,c=s.enc;c.Utf16=c.Utf16BE={stringify:function(h){for(var d=h.words,p=h.sigBytes,g=[],x=0;x<p;x+=2){var y=d[x>>>2]>>>16-x%4*8&65535;g.push(String.fromCharCode(y))}return g.join("")},parse:function(h){for(var d=h.length,p=[],g=0;g<d;g++)p[g>>>1]|=h.charCodeAt(g)<<16-g%2*16;return l.create(p,d*2)}},c.Utf16LE={stringify:function(h){for(var d=h.words,p=h.sigBytes,g=[],x=0;x<p;x+=2){var y=f(d[x>>>2]>>>16-x%4*8&65535);g.push(String.fromCharCode(y))}return g.join("")},parse:function(h){for(var d=h.length,p=[],g=0;g<d;g++)p[g>>>1]|=f(h.charCodeAt(g)<<16-g%2*16);return l.create(p,d*2)}};function f(h){return h<<8&4278255360|h>>>8&16711935}}(),r.enc.Utf16})}(_u)),_u.exports}var Au={exports:{}},$3=Au.exports,Hy;function li(){return Hy||(Hy=1,function(e,t){(function(r,s){e.exports=s(Et())})($3,function(r){return function(){var s=r,i=s.lib,l=i.WordArray,c=s.enc;c.Base64={stringify:function(h){var d=h.words,p=h.sigBytes,g=this._map;h.clamp();for(var x=[],y=0;y<p;y+=3)for(var v=d[y>>>2]>>>24-y%4*8&255,E=d[y+1>>>2]>>>24-(y+1)%4*8&255,C=d[y+2>>>2]>>>24-(y+2)%4*8&255,_=v<<16|E<<8|C,b=0;b<4&&y+b*.75<p;b++)x.push(g.charAt(_>>>6*(3-b)&63));var A=g.charAt(64);if(A)for(;x.length%4;)x.push(A);return x.join("")},parse:function(h){var d=h.length,p=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var x=0;x<p.length;x++)g[p.charCodeAt(x)]=x}var y=p.charAt(64);if(y){var v=h.indexOf(y);v!==-1&&(d=v)}return f(h,d,g)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(h,d,p){for(var g=[],x=0,y=0;y<d;y++)if(y%4){var v=p[h.charCodeAt(y-1)]<<y%4*2,E=p[h.charCodeAt(y)]>>>6-y%4*2,C=v|E;g[x>>>2]|=C<<24-x%4*8,x++}return l.create(g,x)}}(),r.enc.Base64})}(Au)),Au.exports}var ku={exports:{}},H3=ku.exports,Wy;function W3(){return Wy||(Wy=1,function(e,t){(function(r,s){e.exports=s(Et())})(H3,function(r){return function(){var s=r,i=s.lib,l=i.WordArray,c=s.enc;c.Base64url={stringify:function(h,d){d===void 0&&(d=!0);var p=h.words,g=h.sigBytes,x=d?this._safe_map:this._map;h.clamp();for(var y=[],v=0;v<g;v+=3)for(var E=p[v>>>2]>>>24-v%4*8&255,C=p[v+1>>>2]>>>24-(v+1)%4*8&255,_=p[v+2>>>2]>>>24-(v+2)%4*8&255,b=E<<16|C<<8|_,A=0;A<4&&v+A*.75<g;A++)y.push(x.charAt(b>>>6*(3-A)&63));var T=x.charAt(64);if(T)for(;y.length%4;)y.push(T);return y.join("")},parse:function(h,d){d===void 0&&(d=!0);var p=h.length,g=d?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var y=0;y<g.length;y++)x[g.charCodeAt(y)]=y}var v=g.charAt(64);if(v){var E=h.indexOf(v);E!==-1&&(p=E)}return f(h,p,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(h,d,p){for(var g=[],x=0,y=0;y<d;y++)if(y%4){var v=p[h.charCodeAt(y-1)]<<y%4*2,E=p[h.charCodeAt(y)]>>>6-y%4*2,C=v|E;g[x>>>2]|=C<<24-x%4*8,x++}return l.create(g,x)}}(),r.enc.Base64url})}(ku)),ku.exports}var Ru={exports:{}},V3=Ru.exports,Vy;function ci(){return Vy||(Vy=1,function(e,t){(function(r,s){e.exports=s(Et())})(V3,function(r){return function(s){var i=r,l=i.lib,c=l.WordArray,f=l.Hasher,h=i.algo,d=[];(function(){for(var E=0;E<64;E++)d[E]=s.abs(s.sin(E+1))*4294967296|0})();var p=h.MD5=f.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,C){for(var _=0;_<16;_++){var b=C+_,A=E[b];E[b]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var T=this._hash.words,k=E[C+0],N=E[C+1],F=E[C+2],P=E[C+3],U=E[C+4],O=E[C+5],B=E[C+6],$=E[C+7],Y=E[C+8],te=E[C+9],re=E[C+10],ce=E[C+11],ue=E[C+12],W=E[C+13],ne=E[C+14],oe=E[C+15],D=T[0],z=T[1],L=T[2],K=T[3];D=g(D,z,L,K,k,7,d[0]),K=g(K,D,z,L,N,12,d[1]),L=g(L,K,D,z,F,17,d[2]),z=g(z,L,K,D,P,22,d[3]),D=g(D,z,L,K,U,7,d[4]),K=g(K,D,z,L,O,12,d[5]),L=g(L,K,D,z,B,17,d[6]),z=g(z,L,K,D,$,22,d[7]),D=g(D,z,L,K,Y,7,d[8]),K=g(K,D,z,L,te,12,d[9]),L=g(L,K,D,z,re,17,d[10]),z=g(z,L,K,D,ce,22,d[11]),D=g(D,z,L,K,ue,7,d[12]),K=g(K,D,z,L,W,12,d[13]),L=g(L,K,D,z,ne,17,d[14]),z=g(z,L,K,D,oe,22,d[15]),D=x(D,z,L,K,N,5,d[16]),K=x(K,D,z,L,B,9,d[17]),L=x(L,K,D,z,ce,14,d[18]),z=x(z,L,K,D,k,20,d[19]),D=x(D,z,L,K,O,5,d[20]),K=x(K,D,z,L,re,9,d[21]),L=x(L,K,D,z,oe,14,d[22]),z=x(z,L,K,D,U,20,d[23]),D=x(D,z,L,K,te,5,d[24]),K=x(K,D,z,L,ne,9,d[25]),L=x(L,K,D,z,P,14,d[26]),z=x(z,L,K,D,Y,20,d[27]),D=x(D,z,L,K,W,5,d[28]),K=x(K,D,z,L,F,9,d[29]),L=x(L,K,D,z,$,14,d[30]),z=x(z,L,K,D,ue,20,d[31]),D=y(D,z,L,K,O,4,d[32]),K=y(K,D,z,L,Y,11,d[33]),L=y(L,K,D,z,ce,16,d[34]),z=y(z,L,K,D,ne,23,d[35]),D=y(D,z,L,K,N,4,d[36]),K=y(K,D,z,L,U,11,d[37]),L=y(L,K,D,z,$,16,d[38]),z=y(z,L,K,D,re,23,d[39]),D=y(D,z,L,K,W,4,d[40]),K=y(K,D,z,L,k,11,d[41]),L=y(L,K,D,z,P,16,d[42]),z=y(z,L,K,D,B,23,d[43]),D=y(D,z,L,K,te,4,d[44]),K=y(K,D,z,L,ue,11,d[45]),L=y(L,K,D,z,oe,16,d[46]),z=y(z,L,K,D,F,23,d[47]),D=v(D,z,L,K,k,6,d[48]),K=v(K,D,z,L,$,10,d[49]),L=v(L,K,D,z,ne,15,d[50]),z=v(z,L,K,D,O,21,d[51]),D=v(D,z,L,K,ue,6,d[52]),K=v(K,D,z,L,P,10,d[53]),L=v(L,K,D,z,re,15,d[54]),z=v(z,L,K,D,N,21,d[55]),D=v(D,z,L,K,Y,6,d[56]),K=v(K,D,z,L,oe,10,d[57]),L=v(L,K,D,z,B,15,d[58]),z=v(z,L,K,D,W,21,d[59]),D=v(D,z,L,K,U,6,d[60]),K=v(K,D,z,L,ce,10,d[61]),L=v(L,K,D,z,F,15,d[62]),z=v(z,L,K,D,te,21,d[63]),T[0]=T[0]+D|0,T[1]=T[1]+z|0,T[2]=T[2]+L|0,T[3]=T[3]+K|0},_doFinalize:function(){var E=this._data,C=E.words,_=this._nDataBytes*8,b=E.sigBytes*8;C[b>>>5]|=128<<24-b%32;var A=s.floor(_/4294967296),T=_;C[(b+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,C[(b+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,E.sigBytes=(C.length+1)*4,this._process();for(var k=this._hash,N=k.words,F=0;F<4;F++){var P=N[F];N[F]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return k},clone:function(){var E=f.clone.call(this);return E._hash=this._hash.clone(),E}});function g(E,C,_,b,A,T,k){var N=E+(C&_|~C&b)+A+k;return(N<<T|N>>>32-T)+C}function x(E,C,_,b,A,T,k){var N=E+(C&b|_&~b)+A+k;return(N<<T|N>>>32-T)+C}function y(E,C,_,b,A,T,k){var N=E+(C^_^b)+A+k;return(N<<T|N>>>32-T)+C}function v(E,C,_,b,A,T,k){var N=E+(_^(C|~b))+A+k;return(N<<T|N>>>32-T)+C}i.MD5=f._createHelper(p),i.HmacMD5=f._createHmacHelper(p)}(Math),r.MD5})}(Ru)),Ru.exports}var Iu={exports:{}},q3=Iu.exports,qy;function zw(){return qy||(qy=1,function(e,t){(function(r,s){e.exports=s(Et())})(q3,function(r){return function(){var s=r,i=s.lib,l=i.WordArray,c=i.Hasher,f=s.algo,h=[],d=f.SHA1=c.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,g){for(var x=this._hash.words,y=x[0],v=x[1],E=x[2],C=x[3],_=x[4],b=0;b<80;b++){if(b<16)h[b]=p[g+b]|0;else{var A=h[b-3]^h[b-8]^h[b-14]^h[b-16];h[b]=A<<1|A>>>31}var T=(y<<5|y>>>27)+_+h[b];b<20?T+=(v&E|~v&C)+1518500249:b<40?T+=(v^E^C)+1859775393:b<60?T+=(v&E|v&C|E&C)-1894007588:T+=(v^E^C)-899497514,_=C,C=E,E=v<<30|v>>>2,v=y,y=T}x[0]=x[0]+y|0,x[1]=x[1]+v|0,x[2]=x[2]+E|0,x[3]=x[3]+C|0,x[4]=x[4]+_|0},_doFinalize:function(){var p=this._data,g=p.words,x=this._nDataBytes*8,y=p.sigBytes*8;return g[y>>>5]|=128<<24-y%32,g[(y+64>>>9<<4)+14]=Math.floor(x/4294967296),g[(y+64>>>9<<4)+15]=x,p.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var p=c.clone.call(this);return p._hash=this._hash.clone(),p}});s.SHA1=c._createHelper(d),s.HmacSHA1=c._createHmacHelper(d)}(),r.SHA1})}(Iu)),Iu.exports}var Tu={exports:{}},K3=Tu.exports,Ky;function fp(){return Ky||(Ky=1,function(e,t){(function(r,s){e.exports=s(Et())})(K3,function(r){return function(s){var i=r,l=i.lib,c=l.WordArray,f=l.Hasher,h=i.algo,d=[],p=[];(function(){function y(_){for(var b=s.sqrt(_),A=2;A<=b;A++)if(!(_%A))return!1;return!0}function v(_){return(_-(_|0))*4294967296|0}for(var E=2,C=0;C<64;)y(E)&&(C<8&&(d[C]=v(s.pow(E,1/2))),p[C]=v(s.pow(E,1/3)),C++),E++})();var g=[],x=h.SHA256=f.extend({_doReset:function(){this._hash=new c.init(d.slice(0))},_doProcessBlock:function(y,v){for(var E=this._hash.words,C=E[0],_=E[1],b=E[2],A=E[3],T=E[4],k=E[5],N=E[6],F=E[7],P=0;P<64;P++){if(P<16)g[P]=y[v+P]|0;else{var U=g[P-15],O=(U<<25|U>>>7)^(U<<14|U>>>18)^U>>>3,B=g[P-2],$=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;g[P]=O+g[P-7]+$+g[P-16]}var Y=T&k^~T&N,te=C&_^C&b^_&b,re=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),ce=(T<<26|T>>>6)^(T<<21|T>>>11)^(T<<7|T>>>25),ue=F+ce+Y+p[P]+g[P],W=re+te;F=N,N=k,k=T,T=A+ue|0,A=b,b=_,_=C,C=ue+W|0}E[0]=E[0]+C|0,E[1]=E[1]+_|0,E[2]=E[2]+b|0,E[3]=E[3]+A|0,E[4]=E[4]+T|0,E[5]=E[5]+k|0,E[6]=E[6]+N|0,E[7]=E[7]+F|0},_doFinalize:function(){var y=this._data,v=y.words,E=this._nDataBytes*8,C=y.sigBytes*8;return v[C>>>5]|=128<<24-C%32,v[(C+64>>>9<<4)+14]=s.floor(E/4294967296),v[(C+64>>>9<<4)+15]=E,y.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var y=f.clone.call(this);return y._hash=this._hash.clone(),y}});i.SHA256=f._createHelper(x),i.HmacSHA256=f._createHmacHelper(x)}(Math),r.SHA256})}(Tu)),Tu.exports}var Pu={exports:{}},G3=Pu.exports,Gy;function Y3(){return Gy||(Gy=1,function(e,t){(function(r,s,i){e.exports=s(Et(),fp())})(G3,function(r){return function(){var s=r,i=s.lib,l=i.WordArray,c=s.algo,f=c.SHA256,h=c.SHA224=f.extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=f._doFinalize.call(this);return d.sigBytes-=4,d}});s.SHA224=f._createHelper(h),s.HmacSHA224=f._createHmacHelper(h)}(),r.SHA224})}(Pu)),Pu.exports}var Nu={exports:{}},Q3=Nu.exports,Yy;function $w(){return Yy||(Yy=1,function(e,t){(function(r,s,i){e.exports=s(Et(),Fd())})(Q3,function(r){return function(){var s=r,i=s.lib,l=i.Hasher,c=s.x64,f=c.Word,h=c.WordArray,d=s.algo;function p(){return f.create.apply(f,arguments)}var g=[p(1116352408,3609767458),p(1899447441,602891725),p(3049323471,3964484399),p(3921009573,2173295548),p(961987163,4081628472),p(1508970993,3053834265),p(2453635748,2937671579),p(2870763221,3664609560),p(3624381080,2734883394),p(310598401,1164996542),p(607225278,1323610764),p(1426881987,3590304994),p(1925078388,4068182383),p(2162078206,991336113),p(2614888103,633803317),p(3248222580,3479774868),p(3835390401,2666613458),p(4022224774,944711139),p(264347078,2341262773),p(604807628,2007800933),p(770255983,1495990901),p(1249150122,1856431235),p(1555081692,3175218132),p(1996064986,2198950837),p(2554220882,3999719339),p(2821834349,766784016),p(2952996808,2566594879),p(3210313671,3203337956),p(3336571891,1034457026),p(3584528711,2466948901),p(113926993,3758326383),p(338241895,168717936),p(666307205,1188179964),p(773529912,1546045734),p(1294757372,1522805485),p(1396182291,2643833823),p(1695183700,2343527390),p(1986661051,1014477480),p(2177026350,1206759142),p(2456956037,344077627),p(2730485921,1290863460),p(2820302411,3158454273),p(3259730800,3505952657),p(3345764771,106217008),p(3516065817,3606008344),p(3600352804,1432725776),p(4094571909,1467031594),p(275423344,851169720),p(430227734,3100823752),p(506948616,1363258195),p(659060556,3750685593),p(883997877,3785050280),p(958139571,3318307427),p(1322822218,3812723403),p(1537002063,2003034995),p(1747873779,3602036899),p(1955562222,1575990012),p(2024104815,1125592928),p(2227730452,2716904306),p(2361852424,442776044),p(2428436474,593698344),p(2756734187,3733110249),p(3204031479,2999351573),p(3329325298,3815920427),p(3391569614,3928383900),p(3515267271,566280711),p(3940187606,3454069534),p(4118630271,4000239992),p(116418474,1914138554),p(174292421,2731055270),p(289380356,3203993006),p(460393269,320620315),p(685471733,587496836),p(852142971,1086792851),p(1017036298,365543100),p(1126000580,2618297676),p(1288033470,3409855158),p(1501505948,4234509866),p(1607167915,987167468),p(1816402316,1246189591)],x=[];(function(){for(var v=0;v<80;v++)x[v]=p()})();var y=d.SHA512=l.extend({_doReset:function(){this._hash=new h.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(v,E){for(var C=this._hash.words,_=C[0],b=C[1],A=C[2],T=C[3],k=C[4],N=C[5],F=C[6],P=C[7],U=_.high,O=_.low,B=b.high,$=b.low,Y=A.high,te=A.low,re=T.high,ce=T.low,ue=k.high,W=k.low,ne=N.high,oe=N.low,D=F.high,z=F.low,L=P.high,K=P.low,ve=U,Ee=O,we=B,se=$,Ce=Y,Se=te,He=re,xt=ce,Ge=ue,St=W,bt=ne,Yt=oe,Rt=D,Bt=z,Je=L,Ht=K,Oe=0;Oe<80;Oe++){var Xe,We,Le=x[Oe];if(Oe<16)We=Le.high=v[E+Oe*2]|0,Xe=Le.low=v[E+Oe*2+1]|0;else{var Ne=x[Oe-15],Ve=Ne.high,ut=Ne.low,qe=(Ve>>>1|ut<<31)^(Ve>>>8|ut<<24)^Ve>>>7,Ut=(ut>>>1|Ve<<31)^(ut>>>8|Ve<<24)^(ut>>>7|Ve<<25),lt=x[Oe-2],Ze=lt.high,Mt=lt.low,jt=(Ze>>>19|Mt<<13)^(Ze<<3|Mt>>>29)^Ze>>>6,dt=(Mt>>>19|Ze<<13)^(Mt<<3|Ze>>>29)^(Mt>>>6|Ze<<26),fn=x[Oe-7],cn=fn.high,hn=fn.low,gt=x[Oe-16],Tt=gt.high,je=gt.low;Xe=Ut+hn,We=qe+cn+(Xe>>>0<Ut>>>0?1:0),Xe=Xe+dt,We=We+jt+(Xe>>>0<dt>>>0?1:0),Xe=Xe+je,We=We+Tt+(Xe>>>0<je>>>0?1:0),Le.high=We,Le.low=Xe}var Me=Ge&bt^~Ge&Rt,rt=St&Yt^~St&Bt,tt=ve&we^ve&Ce^we&Ce,nt=Ee&se^Ee&Se^se&Se,Ct=(ve>>>28|Ee<<4)^(ve<<30|Ee>>>2)^(ve<<25|Ee>>>7),le=(Ee>>>28|ve<<4)^(Ee<<30|ve>>>2)^(Ee<<25|ve>>>7),M=(Ge>>>14|St<<18)^(Ge>>>18|St<<14)^(Ge<<23|St>>>9),V=(St>>>14|Ge<<18)^(St>>>18|Ge<<14)^(St<<23|Ge>>>9),Z=g[Oe],Q=Z.high,ie=Z.low,ae=Ht+V,de=Je+M+(ae>>>0<Ht>>>0?1:0),ae=ae+rt,de=de+Me+(ae>>>0<rt>>>0?1:0),ae=ae+ie,de=de+Q+(ae>>>0<ie>>>0?1:0),ae=ae+Xe,de=de+We+(ae>>>0<Xe>>>0?1:0),ge=le+nt,fe=Ct+tt+(ge>>>0<le>>>0?1:0);Je=Rt,Ht=Bt,Rt=bt,Bt=Yt,bt=Ge,Yt=St,St=xt+ae|0,Ge=He+de+(St>>>0<xt>>>0?1:0)|0,He=Ce,xt=Se,Ce=we,Se=se,we=ve,se=Ee,Ee=ae+ge|0,ve=de+fe+(Ee>>>0<ae>>>0?1:0)|0}O=_.low=O+Ee,_.high=U+ve+(O>>>0<Ee>>>0?1:0),$=b.low=$+se,b.high=B+we+($>>>0<se>>>0?1:0),te=A.low=te+Se,A.high=Y+Ce+(te>>>0<Se>>>0?1:0),ce=T.low=ce+xt,T.high=re+He+(ce>>>0<xt>>>0?1:0),W=k.low=W+St,k.high=ue+Ge+(W>>>0<St>>>0?1:0),oe=N.low=oe+Yt,N.high=ne+bt+(oe>>>0<Yt>>>0?1:0),z=F.low=z+Bt,F.high=D+Rt+(z>>>0<Bt>>>0?1:0),K=P.low=K+Ht,P.high=L+Je+(K>>>0<Ht>>>0?1:0)},_doFinalize:function(){var v=this._data,E=v.words,C=this._nDataBytes*8,_=v.sigBytes*8;E[_>>>5]|=128<<24-_%32,E[(_+128>>>10<<5)+30]=Math.floor(C/4294967296),E[(_+128>>>10<<5)+31]=C,v.sigBytes=E.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var v=l.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});s.SHA512=l._createHelper(y),s.HmacSHA512=l._createHmacHelper(y)}(),r.SHA512})}(Nu)),Nu.exports}var Du={exports:{}},J3=Du.exports,Qy;function X3(){return Qy||(Qy=1,function(e,t){(function(r,s,i){e.exports=s(Et(),Fd(),$w())})(J3,function(r){return function(){var s=r,i=s.x64,l=i.Word,c=i.WordArray,f=s.algo,h=f.SHA512,d=f.SHA384=h.extend({_doReset:function(){this._hash=new c.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var p=h._doFinalize.call(this);return p.sigBytes-=16,p}});s.SHA384=h._createHelper(d),s.HmacSHA384=h._createHmacHelper(d)}(),r.SHA384})}(Du)),Du.exports}var Fu={exports:{}},Z3=Fu.exports,Jy;function e8(){return Jy||(Jy=1,function(e,t){(function(r,s,i){e.exports=s(Et(),Fd())})(Z3,function(r){return function(s){var i=r,l=i.lib,c=l.WordArray,f=l.Hasher,h=i.x64,d=h.Word,p=i.algo,g=[],x=[],y=[];(function(){for(var C=1,_=0,b=0;b<24;b++){g[C+5*_]=(b+1)*(b+2)/2%64;var A=_%5,T=(2*C+3*_)%5;C=A,_=T}for(var C=0;C<5;C++)for(var _=0;_<5;_++)x[C+5*_]=_+(2*C+3*_)%5*5;for(var k=1,N=0;N<24;N++){for(var F=0,P=0,U=0;U<7;U++){if(k&1){var O=(1<<U)-1;O<32?P^=1<<O:F^=1<<O-32}k&128?k=k<<1^113:k<<=1}y[N]=d.create(F,P)}})();var v=[];(function(){for(var C=0;C<25;C++)v[C]=d.create()})();var E=p.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var C=this._state=[],_=0;_<25;_++)C[_]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(C,_){for(var b=this._state,A=this.blockSize/2,T=0;T<A;T++){var k=C[_+2*T],N=C[_+2*T+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360;var F=b[T];F.high^=N,F.low^=k}for(var P=0;P<24;P++){for(var U=0;U<5;U++){for(var O=0,B=0,$=0;$<5;$++){var F=b[U+5*$];O^=F.high,B^=F.low}var Y=v[U];Y.high=O,Y.low=B}for(var U=0;U<5;U++)for(var te=v[(U+4)%5],re=v[(U+1)%5],ce=re.high,ue=re.low,O=te.high^(ce<<1|ue>>>31),B=te.low^(ue<<1|ce>>>31),$=0;$<5;$++){var F=b[U+5*$];F.high^=O,F.low^=B}for(var W=1;W<25;W++){var O,B,F=b[W],ne=F.high,oe=F.low,D=g[W];D<32?(O=ne<<D|oe>>>32-D,B=oe<<D|ne>>>32-D):(O=oe<<D-32|ne>>>64-D,B=ne<<D-32|oe>>>64-D);var z=v[x[W]];z.high=O,z.low=B}var L=v[0],K=b[0];L.high=K.high,L.low=K.low;for(var U=0;U<5;U++)for(var $=0;$<5;$++){var W=U+5*$,F=b[W],ve=v[W],Ee=v[(U+1)%5+5*$],we=v[(U+2)%5+5*$];F.high=ve.high^~Ee.high&we.high,F.low=ve.low^~Ee.low&we.low}var F=b[0],se=y[P];F.high^=se.high,F.low^=se.low}},_doFinalize:function(){var C=this._data,_=C.words;this._nDataBytes*8;var b=C.sigBytes*8,A=this.blockSize*32;_[b>>>5]|=1<<24-b%32,_[(s.ceil((b+1)/A)*A>>>5)-1]|=128,C.sigBytes=_.length*4,this._process();for(var T=this._state,k=this.cfg.outputLength/8,N=k/8,F=[],P=0;P<N;P++){var U=T[P],O=U.high,B=U.low;O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,F.push(B),F.push(O)}return new c.init(F,k)},clone:function(){for(var C=f.clone.call(this),_=C._state=this._state.slice(0),b=0;b<25;b++)_[b]=_[b].clone();return C}});i.SHA3=f._createHelper(E),i.HmacSHA3=f._createHmacHelper(E)}(Math),r.SHA3})}(Fu)),Fu.exports}var Ou={exports:{}},t8=Ou.exports,Xy;function n8(){return Xy||(Xy=1,function(e,t){(function(r,s){e.exports=s(Et())})(t8,function(r){/** @preserve 194 (c) 2012 by Cédric Mesnil. All rights reserved. 195 196 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 197 198 - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 199 - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 200 201 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (
201INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 202 */return function(s){var i=r,l=i.lib,c=l.WordArray,f=l.Hasher,h=i.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),p=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),g=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),x=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=c.create([0,1518500249,1859775393,2400959708,2840853838]),v=c.create([1352829926,1548603684,1836072691,2053994217,0]),E=h.RIPEMD160=f.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(N,F){for(var P=0;P<16;P++){var U=F+P,O=N[U];N[U]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}var B=this._hash.words,$=y.words,Y=v.words,te=d.words,re=p.words,ce=g.words,ue=x.words,W,ne,oe,D,z,L,K,ve,Ee,we;L=W=B[0],K=ne=B[1],ve=oe=B[2],Ee=D=B[3],we=z=B[4];for(var se,P=0;P<80;P+=1)se=W+N[F+te[P]]|0,P<16?se+=C(ne,oe,D)+$[0]:P<32?se+=_(ne,oe,D)+$[1]:P<48?se+=b(ne,oe,D)+$[2]:P<64?se+=A(ne,oe,D)+$[3]:se+=T(ne,oe,D)+$[4],se=se|0,se=k(se,ce[P]),se=se+z|0,W=z,z=D,D=k(oe,10),oe=ne,ne=se,se=L+N[F+re[P]]|0,P<16?se+=T(K,ve,Ee)+Y[0]:P<32?se+=A(K,ve,Ee)+Y[1]:P<48?se+=b(K,ve,Ee)+Y[2]:P<64?se+=_(K,ve,Ee)+Y[3]:se+=C(K,ve,Ee)+Y[4],se=se|0,se=k(se,ue[P]),se=se+we|0,L=we,we=Ee,Ee=k(ve,10),ve=K,K=se;se=B[1]+oe+Ee|0,B[1]=B[2]+D+we|0,B[2]=B[3]+z+L|0,B[3]=B[4]+W+K|0,B[4]=B[0]+ne+ve|0,B[0]=se},_doFinalize:function(){var N=this._data,F=N.words,P=this._nDataBytes*8,U=N.sigBytes*8;F[U>>>5]|=128<<24-U%32,F[(U+64>>>9<<4)+14]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,N.sigBytes=(F.length+1)*4,this._process();for(var O=this._hash,B=O.words,$=0;$<5;$++){var Y=B[$];B[$]=(Y<<8|Y>>>24)&16711935|(Y<<24|Y>>>8)&4278255360}return O},clone:function(){var N=f.clone.call(this);return N._hash=this._hash.clone(),N}});function C(N,F,P){return N^F^P}function _(N,F,P){return N&F|~N&P}function b(N,F,P){return(N|~F)^P}function A(N,F,P){return N&P|F&~P}function T(N,F,P){return N^(F|~P)}function k(N,F){return N<<F|N>>>32-F}i.RIPEMD160=f._createHelper(E),i.HmacRIPEMD160=f._createHmacHelper(E)}(),r.RIPEMD160})}(Ou)),Ou.exports}var Bu={exports:{}},r8=Bu.exports,Zy;function hp(){return Zy||(Zy=1,function(e,t){(function(r,s){e.exports=s(Et())})(r8,function(r){(function(){var s=r,i=s.lib,l=i.Base,c=s.enc,f=c.Utf8,h=s.algo;h.HMAC=l.extend({init:function(d,p){d=this._hasher=new d.init,typeof p=="string"&&(p=f.parse(p));var g=d.blockSize,x=g*4;p.sigBytes>x&&(p=d.finalize(p)),p.clamp();for(var y=this._oKey=p.clone(),v=this._iKey=p.clone(),E=y.words,C=v.words,_=0;_<g;_++)E[_]^=1549556828,C[_]^=909522486;y.sigBytes=v.sigBytes=x,this.reset()},reset:function(){var d=this._hasher;d.reset(),d.update(this._iKey)},update:function(d){return this._hasher.update(d),this},finalize:function(d){var p=this._hasher,g=p.finalize(d);p.reset();var x=p.finalize(this._oKey.clone().concat(g));return x}})})()})}(Bu)),Bu.exports}var Lu={exports:{}},o8=Lu.exports,ev;function s8(){return ev||(ev=1,function(e,t){(function(r,s,i){e.exports=s(Et(),fp(),hp())})(o8,function(r){return function(){var s=r,i=s.lib,l=i.Base,c=i.WordArray,f=s.algo,h=f.SHA256,d=f.HMAC,p=f.PBKDF2=l.extend({cfg:l.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,x){for(var y=this.cfg,v=d.create(y.hasher,g),E=c.create(),C=c.create([1]),_=E.words,b=C.words,A=y.keySize,T=y.iterations;_.length<A;){var k=v.update(x).finalize(C);v.reset();for(var N=k.words,F=N.length,P=k,U=1;U<T;U++){P=v.finalize(P),v.reset();for(var O=P.words,B=0;B<F;B++)N[B]^=O[B]}E.concat(k),b[0]++}return E.sigBytes=A*4,E}});s.PBKDF2=function(g,x,y){return p.create(y).compute(g,x)}}(),r.PBKDF2})}(Lu)),Lu.exports}var Mu={exports:{}}
vendor: 13,128 bytes, lines 202-206
202,i8=Mu.exports,tv;function _s(){return tv||(tv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),zw(),hp())})(i8,function(r){return function(){var s=r,i=s.lib,l=i.Base,c=i.WordArray,f=s.algo,h=f.MD5,d=f.EvpKDF=l.extend({cfg:l.extend({keySize:128/32,hasher:h,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,g){for(var x,y=this.cfg,v=y.hasher.create(),E=c.create(),C=E.words,_=y.keySize,b=y.iterations;C.length<_;){x&&v.update(x),x=v.update(p).finalize(g),v.reset();for(var A=1;A<b;A++)x=v.finalize(x),v.reset();E.concat(x)}return E.sigBytes=_*4,E}});s.EvpKDF=function(p,g,x){return d.create(x).compute(p,g)}}(),r.EvpKDF})}(Mu)),Mu.exports}var ju={exports:{}},a8=ju.exports,nv;function _n(){return nv||(nv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_s())})(a8,function(r){r.lib.Cipher||function(s){var i=r,l=i.lib,c=l.Base,f=l.WordArray,h=l.BufferedBlockAlgorithm,d=i.enc;d.Utf8;var p=d.Base64,g=i.algo,x=g.EvpKDF,y=l.Cipher=h.extend({cfg:c.extend(),createEncryptor:function(O,B){return this.create(this._ENC_XFORM_MODE,O,B)},createDecryptor:function(O,B){return this.create(this._DEC_XFORM_MODE,O,B)},init:function(O,B,$){this.cfg=this.cfg.extend($),this._xformMode=O,this._key=B,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(O){return this._append(O),this._process()},finalize:function(O){O&&this._append(O);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(B){return typeof B=="string"?U:N}return function(B){return{encrypt:function($,Y,te){return O(Y).encrypt(B,$,Y,te)},decrypt:function($,Y,te){return O(Y).decrypt(B,$,Y,te)}}}}()});l.StreamCipher=y.extend({_doFinalize:function(){var O=this._process(!0);return O},blockSize:1});var v=i.mode={},E=l.BlockCipherMode=c.extend({createEncryptor:function(O,B){return this.Encryptor.create(O,B)},createDecryptor:function(O,B){return this.Decryptor.create(O,B)},init:function(O,B){this._cipher=O,this._iv=B}}),C=v.CBC=function(){var O=E.extend();O.Encryptor=O.extend({processBlock:function($,Y){var te=this._cipher,re=te.blockSize;B.call(this,$,Y,re),te.encryptBlock($,Y),this._prevBlock=$.slice(Y,Y+re)}}),O.Decryptor=O.extend({processBlock:function($,Y){var te=this._cipher,re=te.blockSize,ce=$.slice(Y,Y+re);te.decryptBlock($,Y),B.call(this,$,Y,re),this._prevBlock=ce}});function B($,Y,te){var re,ce=this._iv;ce?(re=ce,this._iv=s):re=this._prevBlock;for(var ue=0;ue<te;ue++)$[Y+ue]^=re[ue]}return O}(),_=i.pad={},b=_.Pkcs7={pad:function(O,B){for(var $=B*4,Y=$-O.sigBytes%$,te=Y<<24|Y<<16|Y<<8|Y,re=[],ce=0;ce<Y;ce+=4)re.push(te);var ue=f.create(re,Y);O.concat(ue)},unpad:function(O){var B=O.words[O.sigBytes-1>>>2]&255;O.sigBytes-=B}};l.BlockCipher=y.extend({cfg:y.cfg.extend({mode:C,padding:b}),reset:function(){var O;y.reset.call(this);var B=this.cfg,$=B.iv,Y=B.mode;this._xformMode==this._ENC_XFORM_MODE?O=Y.createEncryptor:(O=Y.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==O?this._mode.init(this,$&&$.words):(this._mode=O.call(Y,this,$&&$.words),this._mode.__creator=O)},_doProcessBlock:function(O,B){this._mode.processBlock(O,B)},_doFinalize:function(){var O,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),O=this._process(!0)):(O=this._process(!0),B.unpad(O)),O},blockSize:128/32});var A=l.CipherParams=c.extend({init:function(O){this.mixIn(O)},toString:function(O){return(O||this.formatter).stringify(this)}}),T=i.format={},k=T.OpenSSL={stringify:function(O){var B,$=O.ciphertext,Y=O.salt;return Y?B=f.create([1398893684,1701076831]).concat(Y).concat($):B=$,B.toString(p)},parse:function(O){var B,$=p.parse(O),Y=$.words;return Y[0]==1398893684&&Y[1]==1701076831&&(B=f.create(Y.slice(2,4)),Y.splice(0,4),$.sigBytes-=16),A.create({ciphertext:$,salt:B})}},N=l.SerializableCipher=c.extend({cfg:c.extend({format:k}),encrypt:function(O,B,$,Y){Y=this.cfg.extend(Y);var te=O.createEncryptor($,Y),re=te.finalize(B),ce=te.cfg;return A.create({ciphertext:re,key:$,iv:ce.iv,algorithm:O,mode:ce.mode,padding:ce.padding,blockSize:O.blockSize,formatter:Y.format})},decrypt:function(O,B,$,Y){Y=this.cfg.extend(Y),B=this._parse(B,Y.format);var te=O.createDecryptor($,Y).finalize(B.ciphertext);return te},_parse:function(O,B){return typeof O=="string"?B.parse(O,this):O}}),F=i.kdf={},P=F.OpenSSL={execute:function(O,B,$,Y,te){if(Y||(Y=f.random(64/8)),te)var re=x.create({keySize:B+$,hasher:te}).compute(O,Y);else var re=x.create({keySize:B+$}).compute(O,Y);var ce=f.create(re.words.slice(B),$*4);return re.sigBytes=B*4,A.create({key:re,iv:ce,salt:Y})}},U=l.PasswordBasedCipher=N.extend({cfg:N.cfg.extend({kdf:P}),encrypt:function(O,B,$,Y){Y=this.cfg.extend(Y);var te=Y.kdf.execute($,O.keySize,O.ivSize,Y.salt,Y.hasher);Y.iv=te.iv;var re=N.encrypt.call(this,O,B,te.key,Y);return re.mixIn(te),re},decrypt:function(O,B,$,Y){Y=this.cfg.extend(Y),B=this._parse(B,Y.format);var te=Y.kdf.execute($,O.keySize,O.ivSize,B.salt,Y.hasher);Y.iv=te.iv;var re=N.decrypt.call(this,O,B,te.key,Y);return re}})}()})}(ju)),ju.exports}var Uu={exports:{}},l8=Uu.exports,rv;function c8(){return rv||(rv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(l8,function(r){return r.mode.CFB=function(){var s=r.lib.BlockCipherMode.extend();s.Encryptor=s.extend({processBlock:function(l,c){var f=this._cipher,h=f.blockSize;i.call(this,l,c,h,f),this._prevBlock=l.slice(c,c+h)}}),s.Decryptor=s.extend({processBlock:function(l,c){var f=this._cipher,h=f.blockSize,d=l.slice(c,c+h);i.call(this,l,c,h,f),this._prevBlock=d}});function i(l,c,f,h){var d,p=this._iv;p?(d=p.slice(0),this._iv=void 0):d=this._prevBlock,h.encryptBlock(d,0);for(var g=0;g<f;g++)l[c+g]^=d[g]}return s}(),r.mode.CFB})}(Uu)),Uu.exports}var zu={exports:{}},u8=zu.exports,ov;function d8(){return ov||(ov=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(u8,function(r){return r.mode.CTR=function(){var s=r.lib.BlockCipherMode.extend(),i=s.Encryptor=s.extend({processBlock:function(l,c){var f=this._cipher,h=f.blockSize,d=this._iv,p=this._counter;d&&(p=this._counter=d.slice(0),this._iv=void 0);var g=p.slice(0);f.encryptBlock(g,0),p[h-1]=p[h-1]+1|0;for(var x=0;x<h;x++)l[c+x]^=g[x]}});return s.Decryptor=i,s}(),r.mode.CTR})}(zu)),zu.exports}var $u={exports:{}},f8=$u.exports,sv;function h8(){return sv||(sv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(f8,function(r){/** @preserve 203 * Counter block mode compatible with Dr Brian Gladman fileenc.c 204 * derived from CryptoJS.mode.CTR 205 * Jan Hruby [email protected] 206 */return r.mode.CTRGladman=function(){var s=r.lib.BlockCipherMode.extend();function i(f){if((f>>24&255)===255){var h=f>>16&255,d=f>>8&255,p=f&255;h===255?(h=0,d===255?(d=0,p===255?p=0:++p):++d):++h,f=0,f+=h<<16,f+=d<<8,f+=p}else f+=1<<24;return f}function l(f){return(f[0]=i(f[0]))===0&&(f[1]=i(f[1])),f}var c=s.Encryptor=s.extend({processBlock:function(f,h){var d=this._cipher,p=d.blockSize,g=this._iv,x=this._counter;g&&(x=this._counter=g.slice(0),this._iv=void 0),l(x);var y=x.slice(0);d.encryptBlock(y,0);for(var v=0;v<p;v++)f[h+v]^=y[v]}});return s.Decryptor=c,s}(),r.mode.CTRGladman})}($u)),$u.exports}var Hu={exports:{}},p8=Hu.exports,iv;function m8(){return iv||(iv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(p8,function(r){return r.mode.OFB=function(){var s=r.lib.BlockCipherMode.extend(),i=s.Encryptor=s.extend({processBlock:function(l,c){var f=this._cipher,h=f.blockSize,d=this._iv,p=this._keystream;d&&(p=this._keystream=d.slice(0),this._iv=void 0),f.encryptBlock(p,0);for(var g=0;g<h;g++)l[c+g]^=p[g]}});return s.Decryptor=i,s}(),r.mode.OFB})}(Hu)),Hu.exports}var Wu={exports:{}},x8=Wu.exports,av;function g8(){return av||(av=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(x8,function(r){return r.mode.ECB=function(){var s=r.lib.BlockCipherMode.extend();return s.Encryptor=s.extend({processBlock:function(i,l){this._cipher.encryptBlock(i,l)}}),s.Decryptor=s.extend({processBlock:function(i,l){this._cipher.decryptBlock(i,l)}}),s}(),r.mode.ECB})}(Wu)),Wu.exports}var Vu={exports:{}},y8=Vu.exports,lv;function v8(){return lv||(lv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(y8,function(r){return r.pad.AnsiX923={pad:function(s,i){var l=s.sigBytes,c=i*4,f=c-l%c,h=l+f-1;s.clamp(),s.words[h>>>2]|=f<<24-h%4*8,s.sigBytes+=f},unpad:function(s){var i=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=i}},r.pad.Ansix923})}(Vu)),Vu.exports}var qu={exports:{}},w8=qu.exports,cv;function E8(){return cv||(cv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(w8,function(r){return r.pad.Iso10126={pad:function(s,i){var l=i*4,c=l-s.sigBytes%l;s.concat(r.lib.WordArray.random(c-1)).concat(r.lib.WordArray.create([c<<24],1))},unpad:function(s){var i=s.words[s.sigBytes-1>>>2]&255;s.sigBytes-=i}},r.pad.Iso10126})}(qu)),qu.exports}var Ku={exports:{}},S8=Ku.exports,uv;function C8(){return uv||(uv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(S8,function(r){return r.pad.Iso97971={pad:function(s,i){s.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(s,i)},unpad:function(s){r.pad.ZeroPadding.unpad(s),s.sigBytes--}},r.pad.Iso97971})}(Ku)),Ku.exports}var Gu={exports:{}},b8=Gu.exports,dv;function _8(){return dv||(dv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(b8,function(r){return r.pad.ZeroPadding={pad:function(s,i){var l=i*4;s.clamp(),s.sigBytes+=l-(s.sigBytes%l||l)},unpad:function(s){for(var i=s.words,l=s.sigBytes-1,l=s.sigBytes-1;l>=0;l--)if(i[l>>>2]>>>24-l%4*8&255){s.sigBytes=l+1;break}}},r.pad.ZeroPadding})}(Gu)),Gu.exports}var Yu={exports:{}},A8=Yu.exports,fv;function k8(){return fv||(fv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(A8,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Yu)),Yu.exports}var Qu={exports:{}},R8=Qu.exports,hv;function I8(){return hv||(hv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),_n())})(R8,function(r){return function(s){var i=r,l=i.lib,c=l.CipherParams,f=i.enc,h=f.Hex,d=i.format;d.Hex={stringify:function(p){return p.ciphertext.toString(h)},parse:function(p){var g=h.parse(p);return c.create({ciphertext:g})}}}(),r.format.Hex})}(Qu)),Qu.exports}var Ju={exports:{}},T8=Ju.exports,pv;function P8(){return pv||(pv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),li(),ci(),_s(),_n())})(T8,function(r){return function(){var s=r,i=s.lib,l=i.BlockCipher,c=s.algo,f=[],h=[],d=[],p=[],g=[],x=[],y=[],v=[],E=[],C=[];(function(){for(var A=[],T=0;T<256;T++)T<128?A[T]=T<<1:A[T]=T<<1^283;for(var k=0,N=0,T=0;T<256;T++){var F=N^N<<1^N<<2^N<<3^N<<4;F=F>>>8^F&255^99,f[k]=F,h[F]=k;var P=A[k],U=A[P],O=A[U],B=A[F]*257^F*16843008;d[k]=B<<24|B>>>8,p[k]=B<<16|B>>>16,g[k]=B<<8|B>>>24,x[k]=B;var B=O*16843009^U*65537^P*257^k*16843008;y[F]=B<<24|B>>>8,v[F]=B<<16|B>>>16,E[F]=B<<8|B>>>24,C[F]=B,k?(k=P^A[A[A[O^P]]],N^=A[A[N]]):k=N=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],b=c.AES=l.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var T=this._keyPriorReset=this._key,k=T.words,N=T.sigBytes/4,F=this._nRounds=N+6,P=(F+1)*4,U=this._keySchedule=[],O=0;O<P;O++)O<N?U[O]=k[O]:(A=U[O-1],O%N?N>6&&O%N==4&&(A=f[A>>>24]<<24|f[A>>>16&255]<<16|f[A>>>8&255]<<8|f[A&255]):(A=A<<8|A>>>24,A=f[A>>>24]<<24|f[A>>>16&255]<<16|f[A>>>8&255]<<8|f[A&255],A^=_[O/N|0]<<24),U[O]=U[O-N]^A);for(var B=this._invKeySchedule=[],$=0;$<P;$++){var O=P-$;if($%4)var A=U[O];else var A=U[O-4];$<4||O<=4?B[$]=A:B[$]=y[f[A>>>24]]^v[f[A>>>16&255]]^E[f[A>>>8&255]]^C[f[A&255]]}}},encryptBlock:function(A,T){this._doCryptBlock(A,T,this._keySchedule,d,p,g,x,f)},decryptBlock:function(A,T){var k=A[T+1];A[T+1]=A[T+3],A[T+3]=k,this._doCryptBlock(A,T,this._invKeySchedule,y,v,E,C,h);var k=A[T+1];A[T+1]=A[T+3],A[T+3]=k},_doCryptBlock:function(A,T,k,N,F,P,U,O){for(var B=this._nRounds,$=A[T]^k[0],Y=A[T+1]^k[1],te=A[T+2]^k[2],re=A[T+3]^k[3],ce=4,ue=1;ue<B;ue++){var W=N[$>>>24]^F[Y>>>16&255]^P[te>>>8&255]^U[re&255]^k[ce++],ne=N[Y>>>24]^F[te>>>16&255]^P[re>>>8&255]^U[$&255]^k[ce++],oe=N[te>>>24]^F[re>>>16&255]^P[$>>>8&255]^U[Y&255]^k[ce++],D=N[re>>>24]^F[$>>>16&255]^P[Y>>>8&255]^U[te&255]^k[ce++];$=W,Y=ne,te=oe,re=D}var W=(O[$>>>24]<<24|O[Y>>>16&255]<<16|O[te>>>8&255]<<8|O[re&255])^k[ce++],ne=(O[Y>>>24]<<24|O[te>>>16&255]<<16|O[re>>>8&255]<<8|O[$&255])^k[ce++],oe=(O[te>>>24]<<24|O[re>>>16&255]<<16|O[$>>>8&255]<<8|O[Y&255])^k[ce++],D=(O[re>>>24]<<24|O[$>>>16&255]<<16|O[Y>>>8&255]<<8|O[te&255])^k[ce++];A[T]=W,A[T+1]=ne,A[T+2]=oe,A[T+3]=D},keySize:256/32});s.AES=l._createHelper(b)}(),r.AES})}(Ju)),Ju.exports}var Xu={exports:{}},N8=Xu.exports,mv;function D8(){return mv||(mv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),li(),ci(),_s(),_n())})(N8,function(r){return function(){var s=r,i=s.lib,l=i.WordArray,c=i.BlockCipher,f=s.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],p=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g
vendor: 7,629 bytes, line 206
206=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 8,220 bytes, line 206
206x=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],y=f.DES=c.extend({_doReset:function(){for(var _=this._key,b=_.words,A=[],T=0;T<56;T++){var k=h[T]-1;A[T]=b[k>>>5]>>>31-k%32&1}for(var N=this._subKeys=[],F=0;F<16;F++){for(var P=N[F]=[],U=p[F],T=0;T<24;T++)P[T/6|0]|=A[(d[T]-1+U)%28]<<31-T%6,P[4+(T/6|0)]|=A[28+(d[T+24]-1+U)%28]<<31-T%6;P[0]=P[0]<<1|P[0]>>>31;for(var T=1;T<7;T++)P[T]=P[T]>>>(T-1)*4+3;P[7]=P[7]<<5|P[7]>>>27}for(var O=this._invSubKeys=[],T=0;T<16;T++)O[T]=N[15-T]},encryptBlock:function(_,b){this._doCryptBlock(_,b,this._subKeys)},decryptBlock:function(_,b){this._doCryptBlock(_,b,this._invSubKeys)},_doCryptBlock:function(_,b,A){this._lBlock=_[b],this._rBlock=_[b+1],v.call(this,4,252645135),v.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),v.call(this,1,1431655765);for(var T=0;T<16;T++){for(var k=A[T],N=this._lBlock,F=this._rBlock,P=0,U=0;U<8;U++)P|=g[U][((F^k[U])&x[U])>>>0];this._lBlock=F,this._rBlock=N^P}var O=this._lBlock;this._lBlock=this._rBlock,this._rBlock=O,v.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),_[b]=this._lBlock,_[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function v(_,b){var A=(this._lBlock>>>_^this._rBlock)&b;this._rBlock^=A,this._lBlock^=A<<_}function E(_,b){var A=(this._rBlock>>>_^this._lBlock)&b;this._lBlock^=A,this._rBlock^=A<<_}s.DES=c._createHelper(y);var C=f.TripleDES=c.extend({_doReset:function(){var _=this._key,b=_.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=b.slice(0,2),T=b.length<4?b.slice(0,2):b.slice(2,4),k=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=y.createEncryptor(l.create(A)),this._des2=y.createEncryptor(l.create(T)),this._des3=y.createEncryptor(l.create(k))},encryptBlock:function(_,b){this._des1.encryptBlock(_,b),this._des2.decryptBlock(_,b),this._des3.encryptBlock(_,b)},decryptBlock:function(_,b){this._des3.decryptBlock(_,b),this._des2.encryptBlock(_,b),this._des1.decryptBlock(_,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});s.TripleDES=c._createHelper(C)}(),r.TripleDES})}(Xu)),Xu.exports}var Zu={exports:{}},F8=Zu.exports,xv;function O8(){return xv||(xv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),li(),ci(),_s(),_n())})(F8,function(r){return function(){var s=r,i=s.lib,l=i.StreamCipher,c=s.algo,f=c.RC4=l.extend({_doReset:function(){for(var p=this._key,g=p.words,x=p.sigBytes,y=this._S=[],v=0;v<256;v++)y[v]=v;for(var v=0,E=0;v<256;v++){var C=v%x,_=g[C>>>2]>>>24-C%4*8&255;E=(E+y[v]+_)%256;var b=y[v];y[v]=y[E],y[E]=b}this._i=this._j=0},_doProcessBlock:function(p,g){p[g]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var p=this._S,g=this._i,x=this._j,y=0,v=0;v<4;v++){g=(g+1)%256,x=(x+p[g])%256;var E=p[g];p[g]=p[x],p[x]=E,y|=p[(p[g]+p[x])%256]<<24-v*8}return this._i=g,this._j=x,y}s.RC4=l._createHelper(f);var d=c.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var p=this.cfg.drop;p>0;p--)h.call(this)}});s.RC4Drop=l._createHelper(d)}(),r.RC4})}(Zu)),Zu.exports}var ed={exports:{}},B8=ed.exports,gv;function L8(){return gv||(gv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),li(),ci(),_s(),_n())})(B8,function(r){return function(){var s=r,i=s.lib,l=i.StreamCipher,c=s.algo,f=[],h=[],d=[],p=c.Rabbit=l.extend({_doReset:function(){for(var x=this._key.words,y=this.cfg.iv,v=0;v<4;v++)x[v]=(x[v]<<8|x[v]>>>24)&16711935|(x[v]<<24|x[v]>>>8)&4278255360;var E=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],C=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var v=0;v<4;v++)g.call(this);for(var v=0;v<8;v++)C[v]^=E[v+4&7];if(y){var _=y.words,b=_[0],A=_[1],T=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,N=T>>>16|k&4294901760,F=k<<16|T&65535;C[0]^=T,C[1]^=N,C[2]^=k,C[3]^=F,C[4]^=T,C[5]^=N,C[6]^=k,C[7]^=F;for(var v=0;v<4;v++)g.call(this)}},_doProcessBlock:function(x,y){var v=this._X;g.call(this),f[0]=v[0]^v[5]>>>16^v[3]<<16,f[1]=v[2]^v[7]>>>16^v[5]<<16,f[2]=v[4]^v[1]>>>16^v[7]<<16,f[3]=v[6]^v[3]>>>16^v[1]<<16;for(var E=0;E<4;E++)f[E]=(f[E]<<8|f[E]>>>24)&16711935|(f[E]<<24|f[E]>>>8)&4278255360,x[y+E]^=f[E]},blockSize:128/32,ivSize:64/32});function g(){for(var x=this._X,y=this._C,v=0;v<8;v++)h[v]=y[v];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<h[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<h[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<h[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<h[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<h[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<h[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<h[6]>>>0?1:0)|0,this._b=y[7]>>>0<h[7]>>>0?1:0;for(var v=0;v<8;v++){var E=x[v]+y[v],C=E&65535,_=E>>>16,b=((C*C>>>17)+C*_>>>15)+_*_,A=((E&4294901760)*E|0)+((E&65535)*E|0);d[v]=b^A}x[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,x[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,x[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,x[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,x[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,x[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,x[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,x[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}s.Rabbit=l._createHelper(p)}(),r.Rabbit})}(ed)),ed.exports}var td={exports:{}},M8=td.exports,yv;function j8(){return yv||(yv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),li(),ci(),_s(),_n())})(M8,function(r){return function(){var s=r,i=s.lib,l=i.StreamCipher,c=s.algo,f=[],h=[],d=[],p=c.RabbitLegacy=l.extend({_doReset:function(){var x=this._key.words,y=this.cfg.iv,v=this._X=[x[0],x[3]<<16|x[2]>>>16,x[1],x[0]<<16|x[3]>>>16,x[2],x[1]<<16|x[0]>>>16,x[3],x[2]<<16|x[1]>>>16],E=this._C=[x[2]<<16|x[2]>>>16,x[0]&4294901760|x[1]&65535,x[3]<<16|x[3]>>>16,x[1]&4294901760|x[2]&65535,x[0]<<16|x[0]>>>16,x[2]&4294901760|x[3]&65535,x[1]<<16|x[1]>>>16,x[3]&4294901760|x[0]&65535];this._b=0;for(var C=0;C<4;C++)g.call(this);for(var C=0;C<8;C++)E[C]^=v[C+4&7];if(y){var _=y.words,b=_[0],A=_[1],T=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,k=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,N=T>>>16|k&4294901760,F=k<<16|T&65535;E[0]^=T,E[1]^=N,E[2]^=k,E[3]^=F,E[4]^=T,E[5]^=N,E[6]^=k,E[7]^=F;for(var C=0;C<4;C++)g.call(this)}},_doProcessBlock:function(x,y){var v=this._X;g.call(this),f[0]=v[0]^v[5]>>>16^v[3]<<16,f[1]=v[2]^v[7]>>>16^v[5]<<16,f[2]=v[4]^v[1]>>>16^v[7]<<16,f[3]=v[6]^v[3]>>>16^v[1]<<16;for(var E=0;E<4;E++)f[E]=(f[E]<<8|f[E]>>>24)&16711935|(f[E]<<24|f[E]>>>8)&4278255360,x[y+E]^=f[E]},blockSize:128/32,ivSize:64/32});function g(){for(var x=this._X,y=this._C,v=0;v<8;v++)h[v]=y[v];y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0<h[0]>>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0<h[1]>>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0<h[2]>>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0<h[3]>>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0<h[4]>>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0<h[5]>>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0<h[6]>>>0?1:0)|0,this._b=y[7]>>>0<h[7]>>>0?1:0;for(var v=0;v<8;v++){var E=x[v]+y[v],C=E&65535,_=E>>>16,b=((C*C>>>17)+C*_>>>15)+_*_,A=((E&4294901760)*E|0)+((E&65535)*E|0);d[v]=b^A}x[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,x[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,x[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,x[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,x[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,x[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,x[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,x[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}s.RabbitLegacy=l._createHelper(p)}(),r.RabbitLegacy})}(td)),td.exports}var nd={exports:{}},U8=nd.exports,vv;function z8(){return vv||(vv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),li(),ci(),_s(),_n())})(U8,function(r){return function(){var s=r,i=s.lib,l=i.BlockCipher,c=s.algo;const f=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d
vendor: 11,033 bytes, line 206
206=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]]
vendor: 3,562 bytes, line 206
206;var p={pbox:[],sbox:[]};function g(C,_){let b=_>>24&255,A=_>>16&255,T=_>>8&255,k=_&255,N=C.sbox[0][b]+C.sbox[1][A];return N=N^C.sbox[2][T],N=N+C.sbox[3][k],N}function x(C,_,b){let A=_,T=b,k;for(let N=0;N<f;++N)A=A^C.pbox[N],T=g(C,A)^T,k=A,A=T,T=k;return k=A,A=T,T=k,T=T^C.pbox[f],A=A^C.pbox[f+1],{left:A,right:T}}function y(C,_,b){let A=_,T=b,k;for(let N=f+1;N>1;--N)A=A^C.pbox[N],T=g(C,A)^T,k=A,A=T,T=k;return k=A,A=T,T=k,T=T^C.pbox[1],A=A^C.pbox[0],{left:A,right:T}}function v(C,_,b){for(let F=0;F<4;F++){C.sbox[F]=[];for(let P=0;P<256;P++)C.sbox[F][P]=d[F][P]}let A=0;for(let F=0;F<f+2;F++)C.pbox[F]=h[F]^_[A],A++,A>=b&&(A=0);let T=0,k=0,N=0;for(let F=0;F<f+2;F+=2)N=x(C,T,k),T=N.left,k=N.right,C.pbox[F]=T,C.pbox[F+1]=k;for(let F=0;F<4;F++)for(let P=0;P<256;P+=2)N=x(C,T,k),T=N.left,k=N.right,C.sbox[F][P]=T,C.sbox[F][P+1]=k;return!0}var E=c.Blowfish=l.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var C=this._keyPriorReset=this._key,_=C.words,b=C.sigBytes/4;v(p,_,b)}},encryptBlock:function(C,_){var b=x(p,C[_],C[_+1]);C[_]=b.left,C[_+1]=b.right},decryptBlock:function(C,_){var b=y(p,C[_],C[_+1]);C[_]=b.left,C[_+1]=b.right},blockSize:64/32,keySize:128/32,ivSize:64/32});s.Blowfish=l._createHelper(E)}(),r.Blowfish})}(nd)),nd.exports}var $8=Eu.exports,wv;function H8(){return wv||(wv=1,function(e,t){(function(r,s,i){e.exports=s(Et(),Fd(),j3(),z3(),li(),W3(),ci(),zw(),fp(),Y3(),$w(),X3(),e8(),n8(),hp(),s8(),_s(),_n(),c8(),d8(),h8(),m8(),g8(),v8(),E8(),C8(),_8(),k8(),I8(),P8(),D8(),O8(),L8(),j8(),z8())})($8,function(r){return r})}(Eu)),Eu.exports}var W8=H8();const ru=Rl(W8),D0="bp3vg6WRc7WUr9Dz7t27Qzv3l",ft=new P3(localStorage,{hash:function(t){return t=ru.HmacSHA256(t,D0),t.toString()},encrypt:function(t){return t=ru.AES.encrypt(t,D0),t.toString()},decrypt:function(t){return t=ru.AES.decrypt(t,D0),t.toString(ru.enc.Utf8)}});var ht=(e=>(e.COGNITOUSERDETAILS="cognitoUserDetails",e.CORPORATEUSERTYPE="corporateUserType",e.USERTOKEN="userToken",e.SIGNINDETAILS="signinDetails",e.LOGINDETAILS="loginDetails",e.ISLINKEDINUSER="isLinkedInUser",e.USEREMAIL="userEmail",e.COGNITOUSERID="cognitoUserId",e.USERTYPE="userType",e.ACCESSTOKEN="accessToken",e.LASTACCESSEDDASH="lastAccessedDash",e.USERNAME="userName",e.LINKEDINUSERTYPE="linkedinUserType",e.LASTACCESSED_DASH="lastAccessedDash",e.IS_COMPANY_LISTING_ROUTE="isCompanyListingRoute",e.DYNAMIC_ROUTE="dynamicRoute",e.CONTINUEPENDINGPRESIGNEDPROCESS="continuePendingPresignedProcess",e.AUTHACTIVEFORMDATA="AuthActiveFormData",e.AUTHEMPSELECTEDCOMPANY="AuthEmpSelectedCompany",e.CORPORATECOMPANYDERAILS="corporateCompanyDetails",e.AGENCY_ACCESSTOKEN="agencyAccessToken",e.AGENCY_COGNITOUSERID="agencyCognitoUserId",e.AGENCY_USERDETAILS="agencyUserDetails",e.AGENCY_USERGROUPS="agencyUserGroups",e))(ht||{}),et=(e=>(e.GENERAL_USER="general-user",e.CORPORATE="corporate",e.CORPORATE_ADMIN="corporate-admin",e.CORPORATE_RECRUITER="corporate-recruiter",e.ADMIN="admin",e.LINKEDIN="linkedin",e.EVALUATOR="evaluator",e.AGENCY="agency",e))(et||{});const lN={admin:["view_jobs","create_jobs","delete_jobs","manage_users","apply_jobs"],corporate:["view_jobs","create_jobs","delete_jobs","manage_users"],"corporate-admin":["view_jobs","create_jobs","delete_jobs","manage_users"],evaluator:["view_jobs","evaluate_candidates"],"corporate-recruiter":["view_jobs","create_jobs"],linkedin:["view_jobs","apply_jobs"],"general-user":["view_jobs","apply_jobs"],agency:["view_jobs","apply_jobs"]};class V8{constructor(){this.linkedinAccessToken="",this.UserRegistered=!1,this.authenticationSubject=ne
206w CA(!1),I3.configure(T3),this.setupAuthListener()}setupAuthListener(){Hr.listen("auth",async({payload:t})=>{switch(t.event){case"signInWithRedirect":const r=await vl();ft.setItem(ht.SIGNINDETAILS,r);break}})}async handleSocialSignIn(){const t={custom:"LinkedIn"};try{const r=await d3({provider:t});Hr.dispatch("auth",{event:"signInWithRedirect_success",data:r})}catch(r){throw console.error("Social sign-in error:",r),r}}async handleSignIn(t){try{const r={username:t.email,password:t.password},s=await NI(r);return this.authenticationSubject.next(!0),ft.setItem(ht.SIGNINDETAILS,"false"),await this.setAccessToken(),{response:s}}catch(r){if(console.error("Error signing in:",r),r instanceof Ke)return{error:r};throw r}}async isLoggedIn(){return this.UserRegistered=ft.getItem(ht.ISLINKEDINUSER)||!1,this.linkedinSignInDetails=ft.getItem(ht.SIGNINDETAILS)||"{}",this.UserRegistered===!0?this.handleLinkedInLogin():this.handleRegularLogin()}async sessionSync(t=!1){var r,s,i,l,c,f,h,d;try{const p=await Mi({forceRefresh:t}),g=((s=(r=p.tokens)==null?void 0:r.idToken)==null?void 0:s.toString())||"",x=((l=(i=p.tokens)==null?void 0:i.accessToken)==null?void 0:l.toString())||"";g&&ft.setItem(ht.USERTOKEN,g),x&&ft.setItem(ht.ACCESSTOKEN,x);const y=(f=(c=p.tokens)==null?void 0:c.idToken)==null?void 0:f.payload["cognito:groups"],v=(d=(h=p.tokens)==null?void 0:h.idToken)==null?void 0:d.payload.sub;if(v&&ft.setItem(ht.COGNITOUSERID,v),Array.isArray(y)){const E=[];for(const C of y)switch(C){case et.CORPORATE_ADMIN:case et.CORPORATE_RECRUITER:{ft.setItem(ht.CORPORATEUSERTYPE,C),E.push(et.CORPORATE);break}case et.ADMIN:{E.push(et.ADMIN);break}case et.EVALUATOR:{E.push(et.EVALUATOR);break}case et.LINKEDIN:{E.push(et.LINKEDIN);break}case et.GENERAL_USER:{E.push(et.GENERAL_USER);break}}ft.setItem(ht.USERTYPE,E)}return!0}catch(p){return console.error("sessionSync failed:",p),!1}}async handleLinkedInLogin(){var r,s,i;const{tokens:t}=await Mi();return t?(ft.getItem(ht.USEREMAIL)||(ft.setItem(ht.USEREMAIL,((s=(r=t==null?void 0:t.idToken)==null?void 0:r.payload.email)==null?void 0:s.toString().toLowerCase())||""),ft.setItem(ht.COGNITOUSERDETAILS,((i=t==null?void 0:t.idToken)==null?void 0:i.payload)||"")),!0):(await this.handleSignOut(),!1)}async handleRegularLogin(){var t,r,s;try{const{tokens:i}=await Mi();return i?(ft.getItem(ht.USEREMAIL)||(ft.setItem(ht.USEREMAIL,((r=(t=i==null?void 0:i.idToken)==null?void 0:t.payload.email)==null?void 0:r.toString().toLowerCase())||""),ft.setItem(ht.COGNITOUSERDETAILS,((s=i==null?void 0:i.idToken)==null?void 0:s.payload)||"")),!0):!1}catch(i){return console.error("Error fetching auth session:",i),!1}}async handleSignOut(){try{this.clearStorage(),await y3()}catch(t){throw console.error("Sign out error:",t),t}}clearStorage(){ft.clear(),this.removeAccessToken(),localStorage.clear()}async handleSignUp(t){try{return{response:await LI({username:t.username,password:t.password,options:{userAttributes:{name:t.name,...t.phone_number&&{phone_number:t.phone_number}},autoSignIn:!0}})}}catch(r){if(r instanceof Ke)return{error:r};throw r}}async handleChangePassword(t){try{if(!await vl())throw new Error("User not authenticated");if(!this.getAccessToken())throw new Error("Access token is missing or expired");return{response:await WI({oldPassword:t.oldPassword,newPassword:t.newPassword})}}catch(r){return console.error("Password change error:",r),{error:r}}}async handleForceNewPassword(t){try{const r=await $I({challengeResponse:t});return this.authenticationSubject.next(!0),await this.setAccessToken(),{response:r}}catch(r){if(console.error("Error confirming new password:",r),r instanceof Ke)return{error:r};throw r}}async handleSignUpConfirmation(t){try{return{response:await zI(t)}}catch(r){return console.error("Confirmation error:",r),{error:r}}}async resendOtp(t){try{return{response:await jI(t)}}catch(r){return console.error("OTP resend error:",r),{error:r}}}getAccessToken(){const t=ft.getItem(ht.ACCESSTOKEN);if(t)return t;let r="";for(let s=0;s<localStorage.length;s++){const i=localStorage.key(s);if(i!=null&&i.startsWith("CognitoIdentityServiceProvider.")&&i.includes(".accessToken")){r=localStorage.getItem(i)||"";break}}return r}async setAccessToken(){var t,r,s,i;try{const{tokens:l}=await Mi(),c=(t=l==null?void 0:l.idToken)==null?void 0:t.payload["cognito:groups"],f=(r=l==null?void 0:l.idToken)==null?void 0:r.payload.sub,h=(s=l==null?void 0:l.idToken)==null?void 0:s.toString(),d=(i=l==null?void 0:l.accessToken)==null?void 0:i.toString();if(h&&ft.setItem(ht.USERTOKEN,h),d&&ft.setItem(ht.ACCESSTOKEN,d),f&&ft.setItem(ht.COGNITOUSERID,f),Array.isArray(c)){const p=[];for(const g of c)switch(g){case et.CORPORATE_ADMIN:case et.CORPORATE_RECRUITER:{ft.setItem(ht.CORPORATEUSERTYPE,g),p.push(et.CORPORATE);break}case et.ADMIN:{p.push(et.ADMIN);break}case et.EVALUATOR:{p.push(et.EVALUATOR);break}case et.LINKEDIN:{p.push(et.LINKEDIN);break}case et.GENERAL_USER:{p.push(et.GENERAL_USER);break}}ft.setItem(ht.USERTYPE,p)}else ft.setItem(ht.USERTYPE,[et.GENERAL_USER]);return!0}catch(l){return console.error("Error setting access token:",l),!1}}removeAccessToken(){ft.remove(ht.ACCESSTOKEN)}}const fr=new V8,Hw=()=>{const e=fr.isLoggedIn();return R.useCallback(r=>
206{if(!e){kt.error("Access Denied: Your session has expired. Please log in again to continue.",ji()),setTimeout(()=>{window.location.reload()},5e3);return}window.location.href=r},[e])},ol=(e=!0,t={})=>{let r;if(t.fileType?r={"Content-Type":t.fileType}:r={"Content-Type":"application/json"},e){const s=fr.getAccessToken();s?r.Authorization=`Bearer ${s}`:r.Authorization="Bearer Passing DummyToken"}return t!=null&&t.xTenantId&&(r["X-TenantID"]=`${t.xTenantId}`),t!=null&&t.stateId&&(r.stateId=`${t.stateId}`),t!=null&&t.schoolId&&(r.schoolId=`${t.schoolId}`),t!=null&&t.awsS3Tag&&t.fileType&&(r={"Content-Type":t.fileType},r["x-amz-tagging"]=`${t.awsS3Tag}`),{headers:r}};class q8{constructor(){this.delete=async(t,r=!0,s={})=>{try{const i=new URLSearchParams(s).toString(),l=i?`${t}?${i}`:t,c={method:"DELETE",...ol(r,s)},f=await fetch(`${this.API_URI}${l}`,c);if(!f.ok){const h=`HTTP error! status: ${f.status}, message: ${f.statusText}`;return console.error(`HTTP error on DELETE ${t}:`,h),{response:null,error:new Error(h)}}return{response:null,error:null}}catch(i){return console.error(`Error in DELETE request to ${t}:`,i),{response:null,error:i}}},this.API_URI="https://api.worko.ai"}async post(t,r,s=!0,i={},l=!1){try{const c=new URLSearchParams(i).toString(),f=c?`${t}?${c}`:t;let h;const d={method:"POST",...ol(s,i),body:JSON.stringify(r)};l?h=t:h=`${this.API_URI}${f}`;const p=await fetch(h,d);if(!p.ok){let x=await p.json();const y=(x==null?void 0:x.errorMsg)||"Something went wrong";return console.error(`HTTP error on POST ${t}:`,y),{response:null,error:new Error(y),status:p.status}}return{response:await p.json(),error:null,status:p.status}}catch(c){return console.error(`Error in POST request to ${t}:`,c),{response:null,error:c}}}async get(t,r=!0,s={},i=!1){try{const l=new URLSearchParams(s).toString(),c=l?`${t}?${l}`:t;let f;const h={method:"GET",...ol(r,s)};if(i?f=await fetch(c,h):f=await fetch(`${this.API_URI}${c}`,h),!f.ok){const p=`HTTP error! status: ${f.status}, message: ${f.statusText}`;return console.error(`HTTP error on GET ${t}:`,p),{response:null,error:new Error(p),status:f.status}}return{response:await f.json(),error:null,status:f.status}}catch(l){return console.error(`Error in GET request to ${t}:`,l),{response:null,error:l}}}async put(t,r,s=!0,i={},l=!1){try{const c=new URLSearchParams(i).toString(),f=c?`${t}?${c}`:t;let h;const d={method:"PUT",...ol(s,i),body:r instanceof File?r:JSON.stringify(r)};h=l?t:`${this.API_URI}${f}`;const p=await fetch(h,d);if(!p.ok){const y=`HTTP error! status: ${p.status}, message: ${p.statusText}`;return console.error(`HTTP error on PUT ${t}:`,y),{response:null,error:new Error(y)}}let g=null;const x=p.headers.get("content-type");return x&&x.includes("application/json")&&(g=await p.json()),{response:g,error:null}}catch(c){return console.error(`Error in PUT request to ${t}:`,c),{response:null,error:c}}}async patch(t,r,s=!0,i={},l=!1){try{const c=new URLSearchParams(i).toString(),f=c?`${t}?${c}`:t,h=l?t:`${this.API_URI}${f}`,d={method:"PATCH",...ol(s,i),body:JSON.stringify(r)},p=await fetch(h,d);if(p.status===204)return{response:null,error:null,status:204};if(!p.ok){const y=await p.text(),v=`HTTP error! status: ${p.status}, message: ${y||"No response body"}`;return console.error(`HTTP error on PATCH ${t}:`,v),{response:null,error:new Error(v),status:p.status}}const g=p.headers.get("content-type");let x=null;if(g&&g.includes("application/json")){const y=await p.text();x=y?JSON.parse(y):null}return{response:x,error:null,status:p.status}}catch(c){return console.error(`Error in PATCH request to ${t}:`,c),{response:null,error:c,status:500}}}}const zn=new q8;function K8(e){var s,i,l,c;const t="cognitoUserId"in e;let r;return t?r=[((s=e.firstName)==null?void 0:s.trim())??"",((i=e.lastName)==null?void 0:i.trim())??""].filter(Boolean).join(" ")||"Corporate User":r=((l=e.name)==null?void 0:l.trim())??"User",{id:e.id??"",email:t?e.email??"":((c=e.emailList)==null?void 0:c.primary)??e.email??"",fullName:r,updatedAt:e.updatedAt??new Date().toISOString(),PK:e.PK??"",SK:t?e.SK??"":"",GSI1PK:e.GSI1PK??"",GSI1SK:e.GSI1SK??"",userType:t?e.corporateUserType?[e.corporateUserType]:[]:Array.isArray(e.userType)?e.userType:[],isCorporate:t,companyId:t?e.companyId??"":void 0,profileImageAwsS3SignedUrl:e.profileImageAwsS3SignedUrl??"",CV:e.CV??"",cvUrl:e.cvAwsS3SignedUrl??"",CTC:e.CTC??0,ECTC:e.ECTC??0,YOE:e.YOE??0,noticePeriod:e.noticePeriod??0,location:e.location??"",about:e.about??"",lastAccessedDash:e.lastAccessedDash??"",referralCount:e.referralCount??0,cvDuplicacyAccess:(e==null?void 0:e.cvDuplicacyAccess)??!1,createdAt:e.createdAt??new Date().toISOString()}}const Ww=R.createContext(void 0),G8=({children:e})=>
206{const[t,r]=R.useState(!1),[s,i]=R.useState(null),[l,c]=R.useState(null),[f,h]=R.useState(!1),[d,p]=R.useState(null),[g,x]=R.useState(!1),[y,v]=R.useState(null),E=R.useRef(void 0);R.useEffect(()=>{E.current=l==null?void 0:l.companyId},[l==null?void 0:l.companyId]);const C=R.useCallback(async k=>{const N=k??E.current;if(!N){console.error("Company ID is missing in user details");return}try{const{response:F,error:P}=await zn.get(`/company/${N}`,!0,{});if(P){console.error("Error fetching company details:",P);return}F&&ft.setItem(ht.CORPORATECOMPANYDERAILS,F[0])}catch(F){console.error("Error in fetchCorporateCompanyDetails:",F)}},[]),_=R.useCallback(async(k,N,F)=>{try{let P;const U=(k==null?void 0:k.includes("corporate-admin"))||(k==null?void 0:k.includes("corporate-recruiter"));if(U){const{response:B,error:$}=await zn.get(`/corporate-user/${N}/cognito`,!0,{});if($)throw new Error($.message);if(P=(B==null?void 0:B[0])||{},(P==null?void 0:P.isDeleted)===!0){kt.error("Your account has been deactivated. Please contact support for assistance.",ji({autoClose:3e3})),fr.handleSignOut();return}}else{const{response:B,error:$}=await zn.get(`/user/${F}/details`,!0,{});if($)throw new Error($.message);P=(B==null?void 0:B[0])||{}}const O=K8(P);c(O),ft.setItem(ht.LOGINDETAILS,O),U&&await C(O.companyId)}catch(P){console.error("Error fetching user details:",P)}},[C]),b=R.useCallback(async(k=!1,N=!1)=>{var F;try{console.info("Checking user authentication status...");const P=await fr.isLoggedIn();if(r(P),!P)return;await fr.sessionSync(k);const{tokens:U}=await Mi({forceRefresh:N}),O=(F=U==null?void 0:U.idToken)==null?void 0:F.payload,B=O==null?void 0:O["cognito:groups"],$=O==null?void 0:O.email,Y=O==null?void 0:O.sub,te=fr.getAccessToken();if(i(te),await fr.setAccessToken(),k){await _(B,Y,$);return}const re=ft.getItem(ht.LOGINDETAILS);re&&Object.keys(re).length>0?c(re):await _(B,Y,$)}catch(P){console.error("Authentication check failed:",P),await fr.handleSignOut(),r(!1)}},[_]);R.useLayoutEffect(()=>{const k={current:null};let N=!1;const F=()=>{const P=localStorage.getItem("accessToken");if(!(!P||N))try{const O=JSON.parse(atob(P.split(".")[1])).exp*1e3,B=Math.max(O-Date.now()-60*1e3,5e3);console.info(`Token refresh scheduled in ${Math.round(B/1e3)}s`),k.current=setTimeout(async()=>{if(!N)try{console.info("Refreshing token..."),await b(!0,!0),F()}catch($){console.error("Token refresh failed:",$)}},B)}catch{console.error("Could not parse access token for refresh scheduling")}};return b(!1),F(),()=>{N=!0,k.current&&clearTimeout(k.current)}},[b]),R.useLayoutEffect(()=>{t&&b(!0)},[f,t,b]);const A=R.useCallback((k,N)=>{i(k),r(N)},[]),T=R.useMemo(()=>({isLoggedIn:t,tokenData:s,setAuthState:A,setUpdateCheck:h,userDetails:l,setUserDetails:c,PendingApply:d,setPendingApply:p,isModalOpen:g,setIsModalOpen:x,checkUserLoggedIn:b,fetchCorporateCompanyDetails:C,tempCvFile:y,setTempCvFile:v}),[t,s,A,l,h,d,p,g,b,C,y]);return S.jsx(Ww.Provider,{value:T,children:e})},ui=()=>{const e=R.useContext(Ww);if(!e)throw new Error("useAppContext must be used within an AppProvider");return e},pp="-",Y8=e=>{const t=J8(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{const f=c.split(pp);return f[0]===""&&f.length!==1&&f.shift(),Vw(f,t)||Q8(c)},getConflictingClassGroupIds:(c,f)=>{const h=r[c]||[];return f&&s[c]?[...h,...s[c]]:h}}},Vw=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),i=s?Vw(e.slice(1),s):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(pp);return(c=t.validators.find(({validator:f})=>f(l)))==null?void 0:c.classGroupId},Ev=/^\[(.+)\]$/,Q8=e=>{if(Ev.test(e)){const t=Ev.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},J8=e=>{const{theme:t,classGroups:r}=e,s={nextPart:new Map,validators:[]};for(const i in r)mh(r[i],s,i,t);return s},mh=(e,t,r,s)=>{e.forEach(i=>{if(typeof i=="string"){const l=i===""?t:Sv(t,i);l.classGroupId=r;return}if(typeof i=="function"){if(X8(i)){mh(i(s),t,r,s);return}t.validators.push({validator:i,classGroupId:r});return}
vendor: 5,944 bytes, line 206
206Object.entries(i).forEach(([l,c])=>{mh(c,Sv(t,l),r,s)})})},Sv=(e,t)=>{let r=e;return t.split(pp).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},X8=e=>e.isThemeGetter,Z8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const i=(l,c)=>{r.set(l,c),t++,t>e&&(t=0,s=r,r=new Map)};return{get(l){let c=r.get(l);if(c!==void 0)return c;if((c=s.get(l))!==void 0)return i(l,c),c},set(l,c){r.has(l)?r.set(l,c):i(l,c)}}},xh="!",gh=":",eT=gh.length,tT=e=>{const{prefix:t,experimentalParseClassName:r}=e;let s=i=>{const l=[];let c=0,f=0,h=0,d;for(let v=0;v<i.length;v++){let E=i[v];if(c===0&&f===0){if(E===gh){l.push(i.slice(h,v)),h=v+eT;continue}if(E==="/"){d=v;continue}}E==="["?c++:E==="]"?c--:E==="("?f++:E===")"&&f--}const p=l.length===0?i:i.substring(h),g=nT(p),x=g!==p,y=d&&d>h?d-h:void 0;return{modifiers:l,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:y}};if(t){const i=t+gh,l=s;s=c=>c.startsWith(i)?l(c.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const i=s;s=l=>r({className:l,parseClassName:i})}return s},nT=e=>e.endsWith(xh)?e.substring(0,e.length-1):e.startsWith(xh)?e.substring(1):e,rT=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const i=[];let l=[];return s.forEach(c=>{c[0]==="["||t[c]?(i.push(...l.sort(),c),l=[]):l.push(c)}),i.push(...l.sort()),i}},oT=e=>({cache:Z8(e.cacheSize),parseClassName:tT(e),sortModifiers:rT(e),...Y8(e)}),sT=/\s+/,iT=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:i,sortModifiers:l}=t,c=[],f=e.trim().split(sT);let h="";for(let d=f.length-1;d>=0;d-=1){const p=f[d],{isExternal:g,modifiers:x,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:E}=r(p);if(g){h=p+(h.length>0?" "+h:h);continue}let C=!!E,_=s(C?v.substring(0,E):v);if(!_){if(!C){h=p+(h.length>0?" "+h:h);continue}if(_=s(v),!_){h=p+(h.length>0?" "+h:h);continue}C=!1}const b=l(x).join(":"),A=y?b+xh:b,T=A+_;if(c.includes(T))continue;c.push(T);const k=i(_,C);for(let N=0;N<k.length;++N){const F=k[N];c.push(A+F)}h=p+(h.length>0?" "+h:h)}return h};function aT(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=qw(t))&&(s&&(s+=" "),s+=r);return s}const qw=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=qw(e[s]))&&(r&&(r+=" "),r+=t);return r};function lT(e,...t){let r,s,i,l=c;function c(h){const d=t.reduce((p,g)=>g(p),e());return r=oT(d),s=r.cache.get,i=r.cache.set,l=f,f(h)}function f(h){const d=s(h);if(d)return d;const p=iT(h,r);return i(h,p),p}return function(){return l(aT.apply(null,arguments))}}const gn=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Kw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cT=/^\d+\/\d+$/,uT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Oi=e=>cT.test(e),it=e=>!!e&&!Number.isNaN(Number(e)),as=e=>!!e&&Number.isInteger(Number(e)),F0=e=>e.endsWith("%")&&it(e.slice(0,-1)),Ao=e=>uT.test(e),mT=()=>!0,xT=e=>dT.test(e)&&!fT.test(e),Yw=()=>!1,gT=e=>hT.test(e),yT=e=>pT.test(e),vT=e=>!Te(e)&&!Pe(e),wT=e=>ma(e,Xw,Yw),Te=e=>Kw.test(e),js=e=>ma(e,Zw,xT),O0=e=>ma(e,_T,it),Cv=e=>ma(e,Qw,Yw),ET=e=>ma(e,Jw,yT),ou=e=>ma(e,eE,gT),Pe=e=>Gw.test(e),sl=e=>xa(e,Zw),ST=e=>xa(e,AT),bv=e=>xa(e,Qw),CT=e=>xa(e,Xw),bT=e=>xa(e,Jw),su=e=>xa(e,eE,!0),ma=(e,t,r)=>{const s=Kw.exec(e);return s?s[1]?t(s[1]):r(s[2]):!1},xa=(e,t,r=!1)=>{const s=Gw.exec(e);return s?s[1]?t(s[1]):r:!1},Qw=e=>e==="position"||e==="percentage",Jw=e=>e==="image"||e==="url",Xw=e=>e==="length"||e==="size"||e==="bg-size",Zw=e=>e==="length",_T=e=>e==="number",AT=e=>e==="family-name",eE=e=>e==="shadow",kT=()=>{const e=gn("color"),t=gn("font"),r=gn("text"),s=gn("font-weight"),i=gn("tracking"),l=gn("leading"),c=gn("breakpoint"),f=gn("container"),h=gn("spacing"),d=gn("radius"),p=gn("shadow"),g=gn("inset-shadow"),x=gn("text-shadow"),y=gn("drop-shadow"),v=gn("blur"),E=gn("perspective"),C=gn("aspect"),_=gn("ease"),b=gn("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...T(),Pe,Te],N=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[Pe,Te,h],U=()=>[Oi,"full","auto",...P()],O=()=>[as,"none","subgrid",Pe,Te],B=()=>["auto",{span:["full",as,Pe,Te]},as,Pe,Te],$=()=>[as,"auto",Pe,Te],Y=()=>["auto","min","max","fr",Pe,Te],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...P()],ue=()=>[Oi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],W=()=>[e,Pe,Te],ne=()=>[...T(),bv,Cv,{position:[Pe,Te]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",CT,wT,{size:[Pe,Te]}],z=()=>[F0,sl,js],L=()=>["","none","full",d,Pe,Te],K=()=>["",it,sl,js],ve=()=>["solid","dashed","dotted","double"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[it,F0,bv,Cv],se=()=>["","none",v,Pe,Te],Ce=()=>["none",it,Pe,Te],Se=()=>["none",it,Pe,Te],He=()=>[it,Pe,Te],xt=()=>[Oi,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ao],breakpoint:[Ao],c
vendor: 13,394 bytes, line 206
206olor:[mT],container:[Ao],"drop-shadow":[Ao],ease:["in","out","in-out"],font:[vT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ao],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ao],shadow:[Ao],spacing:["px",it],text:[Ao],"text-shadow":[Ao],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Oi,Te,Pe,C]}],container:["container"],columns:[{columns:[it,Te,Pe,f]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[as,"auto",Pe,Te]}],basis:[{basis:[Oi,"full","auto",f,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[it,Oi,"auto","initial","none",Te]}],grow:[{grow:["",it,Pe,Te]}],shrink:[{shrink:["",it,Pe,Te]}],order:[{order:[as,"first","last","none",Pe,Te]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:ue()}],w:[{w:[f,"screen",...ue()]}],"min-w":[{"min-w":[f,"screen","none",...ue()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...ue()]}],h:[{h:["screen","lh",...ue()]}],"min-h":[{"min-h":["screen","lh","none",...ue()]}],"max-h":[{"max-h":["screen","lh",...ue()]}],"font-size":[{text:["base",r,sl,js]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Pe,O0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",F0,Te]}],"font-family":[{font:[ST,Te,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Pe,Te]}],"line-clamp":[{"line-clamp":[it,"none",Pe,O0]}],leading:[{leading:[l,...P()]}],"list-image":[{"list-image":["none",Pe,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Pe,Te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[it,"from-font","auto",Pe,js]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[it,"auto",Pe,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe,Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},as,Pe,Te],radial:["",Pe,Te],conic:[as,Pe,Te]},bT,ET]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[it,Pe,Te]}],"outline-w":[{outline:["",it,sl,js]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",p,su,ou]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",g,su,ou]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[it,js]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",x,su,ou]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[it,Pe,Te]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ee()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[it]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[Pe,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[it]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Pe,Te]}],filter:[{filter:["","none",Pe,Te]}],blur:[{blur:se()}],brightness:[{brightness:[it,Pe,Te]}],contrast:[{contrast:[it,Pe,Te]}],"drop-shadow":[{"drop-shadow":["","none",y,su,ou]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",it,Pe,Te]}],"hue-rotate":[{"hue-rotate":[it,Pe,Te]}],invert:[{invert:["",it,Pe,Te]}],saturate:[{saturate:[it,Pe,Te]}],sepia:[{sepia:["",it,Pe,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Pe,Te]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[it,Pe,Te]}],"backdrop-contrast":[{"backdrop-contrast":[it,Pe,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",it,Pe,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[it,Pe,Te]}],"backdrop-invert":[{"backdrop-invert":["",it,Pe,Te]}],"backdrop-opacity":[{"backdrop-opacity":[it,Pe,Te]}],"backdrop-saturate":[{"backdrop-saturate":[it,Pe,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",it,Pe,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Pe,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[it,"initial",Pe,Te]}],ease:[{ease:["linear","initial",_,Pe,Te]}],delay:[{delay:[it,Pe,Te]}],animate:[{animate:["none",b,Pe,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,Pe,Te]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[Pe,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xt()}],"translate-x":[{"translate-x":xt()}],"translate-y":[{"translate-y":xt()}],"translate-z":[{"translate-z":xt()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}
206],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Pe,Te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Pe,Te]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[it,sl,js,O0]}],stroke:[{stroke:["none",...W()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},RT=lT(kT);function IT(...e){return RT(vs(e))}const _v=[{label:"Jobs",href:"/jobs"},{label:"Guidance",href:"/guidance"},{label:"Refer-n-Earn",href:"/jobs?dashboard=USER"},{label:"For Employee",href:"/for-employee"},{label:"For Corporate",href:"/corporate"}],TT=()=>{const e=Hw(),t=Mo(),r=bn(),{isLoggedIn:s,userDetails:i,setUpdateCheck:l}=ui(),[c,f]=R.useState(!1),[h,d]=R.useState(null),[p,g]=R.useState(!1),x=R.useRef(null),[y,v]=R.useState(!1),E=ft.getItem(ht.USERTYPE),C=N=>{d(h===N?null:N)};R.useEffect(()=>{const N=()=>{const F=window.scrollY;g(F>50)};return window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)},[]),R.useEffect(()=>{f(!1)},[r.pathname]),R.useEffect(()=>{const N=F=>{c&&x.current&&!x.current.contains(F.target)&&f(!1)};return c&&document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[c]);const _="v1",A=E!=null&&E.includes(et.CORPORATE)?`/${_}/corporate/jobs/`:E!=null&&E.includes(et.ADMIN)?`/${_}/admin/ajobs`:(i==null?void 0:i.lastAccessedDash)==="CAND"?`/${_}/candidate/profile`:`/${_}/employee/profile`,T=A,k=()=>
206{if(E!=null&&E.includes(et.CORPORATE))switch(ft.getItem(ht.CORPORATEUSERTYPE)){case et.CORPORATE_ADMIN:return"Admin";case et.CORPORATE_RECRUITER:return"Recruiter";default:return"Corporate User"}return E!=null&&E.includes(et.EVALUATOR)?"Evaluator":"User"};return S.jsx("div",{className:` 207 h-16 w-full bg-white shadow-sm border-b border-gray-200"} 208 `,children:S.jsxs("header",{className:IT("z-[999] fixed left-1/2 transform -translate-x-1/2 transition-[width,top] duration-500 ease-in-out",p?`top-[10px] w-[95vw] bg-white/60 backdrop-blur-md shadow-xl rounded-full ${c&&p?"max-sm:rounded-b-none max-sm:rounded-t-3xl":""} border border-gray/20`:"top-0 w-full bg-white shadow-sm border-b border-gray-200"),id:"header_main_body",ref:x,style:p?{}:{borderImage:"linear-gradient(90deg, #fafcfd, #0041a8, #fafcfd) 1"},children:[S.jsxs("div",{className:` 209 max-w-6xl mx-auto flex justify-between items-center px-4 h-16 210 ${p?"px-6":""} 211 `,children:[S.jsx("div",{className:"cursor-pointer w-24 ",onClick:()=>{t("/"),l(!0)},children:S.jsx("img",{src:U1,alt:"Logo"})}),S.jsx("nav",{className:"hidden md:flex items-center justify-center flex-1 mx-8",children:S.jsx("ul",{className:"flex gap-6 list-none font-medium",children:_v.map(N=>S.jsxs("li",{className:"relative group",onMouseEnter:()=>d(N.label),onMouseLeave:()=>d(null),children:[S.jsxs("a",{onClick:()=>t(N.href||"#"),className:` 212 text-sm flex items-center gap-2 cursor-pointer py-2 relative transition-colors duration-300 213 ${N.label==="Can AI Replace You"?"font-semibold text-black after:w-full hover:after:bg-black hover:text-blue-500":"font-normal text-black-500 hover:text-blue-600 after:w-0"} 214 after:content-[''] after:absolute after:left-0 after:bottom-0 after:h-0.5 after:bg-blue-600 after:transition-all after:duration-300 215 hover:after:w-full 216 `,children:[N.label,N.subItems&&S.jsx(_g,{className:"w-4 h-4 transition-transform duration-300"})]}),N.subItems&&h===N.label&&S.jsx("div",{className:"absolute top-full left-0 bg-white shadow-lg rounded-md py-2 min-w-max z-25 border text-left border-gray-100",children:N.subItems.map(F=>S.jsx("a",{onClick:()=>t(F.href),className:"block px-4 py-2 text-gray-700 hover:bg-gray-50 hover:text-blue-600 cursor-pointer transition-colors duration-200",children:F.label},F.label))})]},N.label))})}),S.jsx("div",{className:"hidden md:flex items-center min-w-fit",children:s?S.jsxs("div",{className:"group relative",children:[S.jsxs("div",{className:"flex items-center gap-4 cursor-pointer px-4 py-2 rounded-lg max-h-14 group-hover:bg-blue-50 transition-colors duration-200",children:[S.jsx("div",{onClick:()=>e(A),className:"cursor-pointer",children:i!=null&&i.profileImageAwsS3SignedUrl&&!y?S.jsx("img",{onError:()=>v(!0),className:"border border-gray-400 w-9 h-9 object-cover rounded-full",src:i==null?void 0:i.profileImageAwsS3SignedUrl}):i!=null&&i.fullName?S.jsx("span",{className:"text-gray-400 border border-gray-400 w-9 h-9 rounded-full flex items-center justify-center font-bold",children:i.fullName.charAt(0).toUpperCase()}):S.jsx(fl,{className:"text-gray-400 border border-gray-400 p-1 w-9 h-9 rounded-full"})}),S.jsx("i",{className:"fas fa-chevron-down cursor-pointer text-gray-500",onClick:()=>fr.handleSignOut()})]}),S.jsx("div",{className:"absolute top-14 right-0 min-w-[250px] bg-white rounded-md p-2 shadow-xl border border-gray-100 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 z-30",children:S.jsxs("ul",{className:"mt-2 text-left p-2",children:[S.jsx("li",{className:"flex items-center justify-between rounded-lg bg-white",children:S.jsxs("div",{className:"flex items-center w-full gap-2",children:[S.jsx("div",{className:"h-8 w-8 rounded-full border border-gray-400 bg-gray-100 font-bold overflow-hidden flex items-center justify-center text-gray-400",children:i!=null&&i.profileImageAwsS3SignedUrl&&!y?S.jsx("img",{className:"w-full h-full object-cover",src:i==null?void 0:i.profileImageAwsS3SignedUrl,onError:()=>v(!0),alt:"User Avatar"}):i!=null&&i.fullName?i.fullName.charAt(0).toUpperCase():S.jsx(fl,{className:"w-4 h-4"})}),S.jsxs("div",{className:"flex flex-col flex-1",children:[S.jsx("h5",{className:"text-sm font-semibold text-gray-900 capitalize mb-1",children:(i==null?void 0:i.fullName)||"user"}),S.jsxs("span",{className:"text-sm font-bold text-gray-500 max-w-[100px] flex items-center",children:[S.jsx("i",{className:"fa-solid fa-user-tie mr-2"}),k()]})]})]})}),S.jsx("hr",{className:"my-3"}),S.jsx("li",{className:"mb-2",children:S.jsx("span",{className:"text-sm font-semibold text-gray-400 cursor-default",children:"Personal"})}),S.jsx("li",{className:"mb-1",children:S.jsx("div",{onClick:()=>e(A),className:"block py-1 w-full text-sm font-medium text-gray-800 hover:text-blue-600 cursor-pointer px-2 rounded hover:bg-blue-50 transition-colors duration-200",children:"Edit Profile"})}),S.jsx("li",{className:"mb-1",children:S.jsx("div",{onClick:()=>e(T),className:"block py-1 w-full text-sm font-medium text-gray-800 hover:text-blue-600 cursor-pointer px-2 rounded hover:bg-blue-50 transition-colors duration-200",children:"Dashboard"})}),S.jsx("hr",{className:"my-3"}),S.jsx("li",{className:"mb-2",children:S.jsx("span",{className:"text-sm font-semibold text-gray-400 cursor-default",children:"Actions"})}),S.jsx("li",{children:S.jsx("a",{onClick:()=>{fr.handleSignOut(),l(N=>!N)},className:"block py-1 w-full text-sm font-medium text-gray-800 hover:text-red-600 cursor-pointer px-2 rounded hover:bg-red-50 transition-colors duration-200",children:"Logout"})})]})})]}):S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsxs(S.Fragment,{children:[S.jsx("button",{className:"btn_t1 login hover:!bg-blue-500/10 hover:border-blue-500 ",onClick:()=>
216t("/auth/login"),children:"Login"}),S.jsx("button",{className:"btn_t1 signup",onClick:()=>t("/auth/signup"),children:"Sign-up for free"})]}),S.jsx(S.Fragment,{children:S.jsx("div",{className:"w-[1px] h-8 bg-blue-500 mx-2"})}),S.jsx("div",{className:"corporete-login",children:S.jsx("button",{className:"rounded-xl bg-sky-400/30 border-sky-600 hover:border-2 py-2 px-3 text-sm font-semibold text-blue-700",onClick:()=>t("/auth/corporate/login"),children:"For Employers"})})]})}),S.jsxs("div",{className:" flex items-center ",children:[S.jsx("button",{className:"md:hidden rounded-lg bg-sky-500/20 border-sky-600 hover:border-2 py-2 px-2 text-xs font-semibold text-blue-700",onClick:()=>t("/auth/corporate/login"),children:"For Employers"}),S.jsx("button",{onClick:()=>f(!c),className:"md:hidden p-1 border rounded-lg ml-2 font-light text-gray-600 hover:text-gray-800",children:c?S.jsx(j1,{className:"w-6 h-6"}):S.jsx(a_,{className:"w-6 h-6"})})]})]}),c&&S.jsxs("div",{className:"md:hidden absolute rounded-b-2xl overflow-hidden top-full left-0 w-full bg-white shadow-lg border-t border-gray-200 z-50 transition-all ease-in-out duration-300",children:[s&&S.jsxs("div",{className:"flex flex-col items-start gap-4 p-4 border-b border-gray-200",children:[S.jsxs("div",{className:"flex font-bold justify-between items-center w-full",children:[S.jsxs("span",{className:"flex-1 flex items-center cursor-pointer",onClick:()=>e(A),children:[i!=null&&i.profileImageAwsS3SignedUrl&&!y?S.jsx("img",{className:"w-8 h-8 object-cover rounded-lg border border-gray-400",onError:()=>v(!0),src:i==null?void 0:i.profileImageAwsS3SignedUrl,alt:"User Avatar"}):i!=null&&i.fullName?S.jsx("span",{className:"text-gray-400 border border-gray-400 w-8 h-8 rounded-full flex items-center justify-center",children:i.fullName.charAt(0).toUpperCase()}):S.jsx(fl,{className:"w-8 h-8 border border-gray-400 rounded-lg"}),S.jsx("h4",{className:"text-lg font-semibold capitalize px-2",children:(i==null?void 0:i.fullName)||"user"})]}),S.jsx(s_,{className:"cursor-pointer text-red-500 w-5 h-5",onClick:()=>{fr.handleSignOut(),l(N=>!N)}})]}),S.jsxs("span",{className:"text-sm text-gray-600 flex items-center",children:[S.jsx("img",{src:w_,className:"inline mr-1 w-4 h-4 object-contain"}),(i==null?void 0:i.referralCount)||0," Referrals Left"]}),S.jsx("a",{className:"text-blue-600 hover:text-blue-800 cursor-pointer",onClick:()=>e(T),children:"Dashboard"})]}),S.jsx("nav",{className:"flex flex-col p-4 bg-white",children:_v.map(N=>S.jsxs("div",{className:"mb-3",children:[S.jsxs("button",{onClick:()=>{C(N.label),N.href&&t(N.href)},className:"flex justify-between items-center w-full text-left text-base cursor-pointer py-2 text-gray-700 hover:text-blue-600",children:[N.label,N.subItems&&S.jsx(_g,{className:`w-4 h-4 transition-transform duration-300 ${h===N.label?"rotate-180":""}`})]}),N.subItems&&h===N.label&&S.jsx("div",{className:"mt-2 pl-4",children:N.subItems.map(F=>S.jsx("button",{onClick:()=>t(F.href),className:"block py-2 text-gray-600 hover:text-blue-600 w-full text-left",children:F.label},F.label))})]},N.label))}),!s&&S.jsxs("div",{className:"flex flex-col items-center p-4 w-[300px] mx-auto gap-3",children:[S.jsx("button",{className:"w-full py-2 px-4 bg-gray-200 text-gray-700 rounded hover:bg-gray-300 transition-colors duration-200",onClick:()=>t("/auth/login"),children:"Login"}),S.jsx("button",{className:"w-full py-2 px-4 bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors duration-200",onClick:()=>t("/auth/signup"),children:"Sign Up"})]})]})]})})},PT="_label_and_buttons_1ywjz_1",NT="_footer_list_1ywjz_7",il={label_and_buttons:PT,footer_list:NT},DT=()=>{const e=Mo();return S.jsx("div",{children:S.jsx("footer",{className:"bg-[#161616] rounded-t-[2.5rem] text-white py-16",children:S.jsx("div",{className:"max-w-6xl mx-auto px-6",children:S.jsxs("div",{className:"grid grid-cols-[repeat(auto-fit,_minmax(250px,_1fr))] gap-8",children:[S.jsxs("div",{className:"footer_content one text-left flex flex-col gap-4 w-min ",children:[S.jsx("button",{onClick:()=>{e("/")},className:"w-[130px]",children:S.jsx("img",{src:p_,alt:"Worko Logo",className:"w-[130px] h-auto p-0 mt-0"})}),S.jsxs("div",{className:il.label_and_buttons,children:[S.jsx("p",{className:"text-white-400 mb-1 w-56",children:"Explore Endless Career Opportunities"}),S.jsx("button",{onClick:()=>{e("/jobs")},className:"btn_find_job mb-4 w-3/4",children:"Find Job"})]}),S.jsxs("div",{className:il.label_and_buttons,children:[S.jsx("p",{className:"mb-0",children:"Discover Top Talent For Your Team"}),S.jsx("button",{onClick:()=>{e("/corporate")},className:"btn_hire_talent mt-0",children:"Hire Candidate"})]}),S.jsxs("div",{className:"flex space-x-8 mt-4",children:[S.jsx("i",{className:"fa-brands fa-xl hover:text-gray-600 cursor-pointer fa-x-twitter",onClick:()=>window.open("https://x.com/WorkoAI","_blank")}),S.jsx("i",{className:"fa-brands fa-xl hover:text-gray-600 cursor-pointer fa-instagram",onClick:()=>window.open("https://www.instagram.com/worko_ai?igsh=em8wZ28xbG4xZWZy&utm_source=qr","_blank")}),S.jsx("i",{className:"fa-brands fa-xl hover:text-gray-600 cursor-pointer fa-linkedin",onClick:()=>window.open("https://www.linkedin.com/company/worko/","_blank")})]})]}),S.jsxs("div",{className:"footer_content tw text-left grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[S.jsxs("div",{children:[S.jsx("h3",{className:"font-semibold mb-4",children:"For Companies"}),S.jsxs("ul",{className:"space-y-2 text-gray-400 "+il.footer_list,children:[S.jsx("li",{onClick:()=>{e("/corporate")},children:"Hire Talent"}),S.jsx("li",{onClick:()=>{e("/corporate#corporatePlans")},children:"Pricing"})]})]}),S.jsxs("div",{children:[S.jsx("h3",{className:"font-semibold mb-4",children:"For Candidates"}),S.jsxs("ul",{className:"space-y-2 text-gray-400 "+il.footer_list,children:[S.jsx("li",{onClick:()=>{e("/jobs")},children:"Browse jobs & Apply via AI"}),S.jsx("li",{onClick:()=>{e("/guidance")},children:"Request interview guidance"})]})]}),S.jsx("div",{className:"grow ",children:S.jsxs("ul",{className:"space-y-2 text-gray-400 "+il.footer_list,children:[S.jsx("li",{onClick:()=>{e("/contact-us")},children:"Contact us"}),S.jsx("li",{onClick:()=>{e("/privacy-policy")},children:"Privacy policy"}),S.jsx("li",{onClick:()=>{e("/terms")},children:"Terms of use"}),S.jsx("li",{onClick:()=>{e("/faq")},children:"FAQ"})]})})]})]})})})})};function FT(){const e=bn();return R.useLayoutEffect(()=>{window.scrollTo(0,0)},[e.pathname]),null}const OT={"/":"#3c92eb","/for-employee":"#316bff","/corporate/connect-with-us":"#2053db","/contact":"url('/assets/bg-contact.jpg') center/cover no-repeat"},BT=()=>{const e=bn();return R.useEffect(()=>{const t=document.getElementById("MainLayout");if(t){const r=OT[e.pathname]||"#FFFFFF";r.startsWith("url")?(t.style.background="none",t.style.backgroundImage=r):t.style.background=r}},[e.pathname]),null};class B0{static updateCanonicalUrl(t){let r=document.querySelector("link[rel='canonical']");r||(r=document.createElement("link"),r.setAttribute("rel","canonical"),document.head.appendChild(r)),r.setAttribute("href",t)}static updateRobots(t){const r=document.querySelector("meta[name='robots']");if(r)r.setAttribute("content",t);else{const s=document.createElement("meta");s.setAttribute("name","robots"),s.setAttribute("content",t),document.head.appendChild(s)}}static urlNeedsIndexing(t){return["","/","/faq","/about","/corporate","/corporate/connect-with-us","/for-employee","/corporate","/company","/guidance","/jobs*","/referrals","/referrals/:compId/:id","/jobs/:companyName/:jobid"].includes(t)}}const LT=()=>{const e=bn();R.useEffect(()=>{const t=window.location.href;B0.updateCanonicalUrl(t),B0.urlNeedsIndexing(e.pathname)&&B0.updateRobots("index, follow")},[e])},MT=()=>{const{userDetails:e}=ui(),t=bn();Mo();const r=t.pathname==="/jobs"&&t.search.includes("dashboard=USER"),s=t.pathname==="/jobs"&&!t.search.includes("dashboard=USER"),i=t.pathname==="/guidance",l=t.pathname.startsWith("/v1/candidate/")||t.pathname.startsWith("/v1/employee/"),c=[{label:"Refer-a-friend",to:"/jobs?dashboard=USER",icon:S.jsx(Gb,{className:"w-5 h-5"}),isActive:r},{label:"Guidance",to:"/guidance",icon:S.jsx(Xb,{className:"w-5 h-5"}),isActive:i},{label:"Jobs",to:"/jobs",icon:S.jsx(zb,{className:"w-5 h-5"}),isActive:s}],f=e?{label:"Profile",to:"/v1/candidate/profile",icon:S.jsx(fl,{className:"w-5 h-5"}),isActive:l,isExternal:!0}:{label:"Login/Signup",to:"/auth/login",icon:S.jsx(fl,{className:"w-5 h-5"}),isExternal:!0},h=d=>{window.location.assign(d)};return S.jsx("nav",{className:"md:hidden fixed bottom-0 left-0 w-full bg-white border-t border-gray-200 shadow-md z-50",children:S.jsxs("ul",{className:"flex w-full justify-between items-center py-1",children:[c.map(d=>S.jsx("li",{className:"flex-1 flex justify-center",children:S.jsxs("button",{onClick:()=>h(d.to),className:`ml-4 flex flex-col items-center text-[10px] font-semibold px-2 py-1 transition-colors duration-200 ${d.isActive?"text-blue-600":"text-gray-500 hover:text-blue-500"}`,children:[d.icon,S.jsx("span",{className:"mt-1 text-nowrap",children:d.label})]})},d.label)),S.jsx("li",{className:"flex-1 flex-shrink-1 flex justify-center",children:S.jsxs("button",{onClick:()=>h(f.to),className:`flex flex-col items-center text-[10px] font-semibold px-2 py-1 transition-colors duration-200 ${f.isActive?"text-blue-600":"text-gray-500 hover:text-blue-500"}`,children:[f.icon,S.jsx("span",{className:"mt-1",children:f.label})]})})]})})};function Av(){return LT(),S.jsxs("div",{id:"MainLayout",className:"bg-white",children:[S.jsx(TT,{}),S.jsx(FT,{}),S.jsxs("main",{className:Bb.main,id:"main_container",children:[S.jsx(BT,{}),S.jsx(HC,{})]}),S.jsx(MT,{}),S.jsx(DT,{})]})}const jT="_main_Container_17c5i_1",UT="_vector_start_17c5i_12",zT="_vector_blob_17c5i_17",$T="_sub_Container_17c5i_38",iu={main_Container:jT,vector_start:UT,vector_blob:zT,sub_Container:$T},tE=()=>S.jsxs("div",{className:iu.main_Container,children:[S.jsxs("div",{className:iu.sub_Container,children:[S.jsx("h1",{children:"404"}),S.jsx("h3",{children:"Page Not Found"}),S.jsx("p",{children:"Sorry, the page you're looking for doesn't exist. If you think this is a mistake, please contact us."}),S.jsx("button",{className:"btn_secondary ",children:"Go Back Home"})]}),S.jsxs("div",{className:iu.vector_start,children:[S.jsx("div",{className:iu.vector_blob}),S.jsx("img",{src:h_,alt:"header_img"})]})]}),cN=Object.freeze(Object.defineProperty({__proto__:null,default:tE},Symbol.toStringTag,{value:"Module"})),HT="_loader_9pyey_1",WT="_loader_text_9pyey_9",VT="_loader_bar_9pyey_16",L0={loader:HT,loader_text:WT,loader_bar:VT,"loader-bar-animation":"_loader-bar-animation_9pyey_1"},an=()=>S.jsx("div",{className:"overflow-y-hidden fixed inset-0 flex items-center justify-center bg-black/50 w-full backdrop-blur-sm z-50 ",children:S.jsxs("div",{className:`relative mx-auto w-52 h-52 ${L0.loader}`,children:[S.jsx("div",{className:L0.loader_text,children:"Loading..."}),S.jsx("div",{className:L0.loader_bar})]})}),qT={none:null,error:S.jsx(Y0,{className:"text-red-500 w-6 h-6"}),warning:S.jsx(Y0,{className:"text-yellow-500 w-6 h-6"}),success:S.jsx(qb,{className:"text-green-500 w-6 h-6"}
216),info:S.jsx(n_,{className:"text-blue-500 w-6 h-6"})},KT={primary:"bg-blue-500 hover:bg-blue-600 text-white",danger:"bg-red-500 hover:bg-red-600 text-white",warning:"bg-yellow-500 hover:bg-yellow-600 text-black",success:"bg-green-500 hover:bg-green-600 text-white"},GT={error:"text-red-500",warning:"text-yellow-500",success:"text-green-500",info:"text-blue-500"},kv={sm:"w-full max-w-[90%] sm:max-w-sm",10:"w-full max-w-[10rem] sm:max-w-[12rem]",md:"w-full max-w-[95%] sm:max-w-md",lg:"w-full max-w-[95%] sm:max-w-lg",xl:"w-full max-w-[98%] sm:max-w-xl","2xl":"w-full max-w-full sm:max-w-2xl","3xl":"w-full max-w-full sm:max-w-3xl","4xl":"w-full max-w-full sm:max-w-4xl"};function wl({type:e,heading:t,size:r="2xl",message:s="",buttons:i=[],onClose:l,showCloseButton:c=!0}){return R.useEffect(()=>{const f=h=>{h.key==="Enter"&&h.preventDefault()};return window.addEventListener("keydown",f),()=>{window.removeEventListener("keydown",f)}},[]),Nl.createPortal(S.jsx("div",{className:"overflow-y-hidden fixed inset-0 flex items-center justify-center bg-black/50 w-full backdrop-blur-sm z-50 ",children:S.jsxs("div",{className:` bg-white rounded-xl shadow-xl p-5 transform transition-transform scale-95 opacity-1 animate-fadeIn ${kv[r]||kv["2xl"]} `,children:[S.jsx("div",{className:"relative w-full",children:c&&l&&S.jsx("button",{onClick:l,className:"absolute top-2 right-2 text-gray-400 hover:text-gray-600",children:"✖"})}),S.jsxs("div",{className:"flex flex-col items-center",children:[S.jsxs("div",{className:"flex gap-2 items-center justify-center ",children:[qT[e],t&&S.jsx("h2",{className:`text-xl font-bold ${GT[t.type]}`,children:t.message})]}),S.jsx("p",{className:"mt-5 mb-2 text-gray-700 flex-1 text-justify max-h-[50vh] overflow-auto px-4",dangerouslySetInnerHTML:{__html:s}})]}),S.jsx("div",{className:"flex justify-end gap-2 mt-4",children:i.map((f,h)=>S.jsx("button",{onClick:f.action,className:`px-4 py-2 rounded ${KT[f.type||"primary"]}`,children:f.label},h))})]})}),document.body)}const uN=Object.freeze(Object.defineProperty({__proto__:null,default:wl},Symbol.toStringTag,{value:"Module"}));class yh extends Error{constructor(t){const r=Array.isArray(t)?t.join(", "):t;super(r),this.name="UnauthorizedAccessError",this.userRoles=Array.isArray(t)?t:[t]}}const dd=({error:e})=>{const t=Mo(),[r,s]=pt.useState(null);return pt.useEffect(()=>{var i;if(e instanceof yh){(i=e.userRoles)==null||i[0];const l=c=>{var f;return((f=e.userRoles)==null?void 0:f.includes(c))||!1};l(et.CORPORATE)?s({type:"error",heading:{message:"Corporate Access Denied",type:"error"},message:"You do not have access to this page.",buttons:[{label:"Go to Home",action:()=>window.location.href="/v1/corporate/jobs",type:"primary"},{label:"Contact Us",action:()=>window.open("mailto:[email protected]"),type:"warning"}]}):l(et.ADMIN)?s({type:"error",heading:{message:"Admin Access Denied",type:"error"},message:"You do not have access to this page.",buttons:[{label:"Go to Home",action:()=>t("/"),type:"primary"},{label:"Login as Admin",action:()=>t("/auth/login"),type:"warning"}]}):s({type:"error",heading:{message:"Access Denied",type:"error"},message:"You do not have access to this page. Please contact your administrator.",buttons:[{label:"Go to Home",action:()=>t("/"),type:"primary"},{label:"Login",action:()=>t("/auth/login"),type:"warning"}]})}},[e,t]),e instanceof yh?S.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",children:r&&S.jsx(wl,{...r,onClose:()=>s(null),showCloseButton:!1})}):S.jsxs("div",{className:"flex items-center justify-center w-screen h-screen bg-white ",children:[S.jsxs("div",{className:"max-w-[300px] sm:max-w-[600px] text-center",children:[S.jsx("h1",{className:"text-blue-500 font-semibold animate-pulse mb-3",children:"Oops! Something went wrong."}),S.jsx("p",{className:"text-gray-400",children:"It looks like our platform is facing some issues. Try reloading the page or try again later."})]}),S.jsx("img",{src:U1,onClick:()=>window.location.href="/",className:"cursor-pointer w-32 absolute top-2 left-4 sm:top-5 sm:left-10",loading:"lazy",alt:"logo"}),S.jsx("img",{src:v_,className:"fixed top-[-20px] right-[-20px] w-[200px] sm:top-0 sm:right-0 sm:w-[300px] bg-transparent",alt:"",loading:"lazy"})]})},YT=[{id:"how-to-request-referral",question:"How to request for a referral?",answer:["Look out for relevant openings at the company's career page you are interested in.","Share job URL and raise referral requests."]},{id:"how-does-matching-work",question:"How does matching work?",answer:["Based on factors such as Worko assessment score, your designation, location, and role, we carefully match your information with a select group of referrers most suitable to validate your skills for a referral.","Referrers hold the discretion to decline your application. If declined, we expand your candidacy to include others within the company who might be willing to refer you."]},{id:"Referral Completion timeline",question:"Referral completion timeline?",answer:["It depends on factors such as:","Your profile and experience","How aggressively the company is hiring","Number of available referrers for the company","Referrer activity (weekends & holidays tend to be slower)"]},{id:"platform-fee",question:"Why do I have to pay the platform fee to Worko?",answer:["A nominal platform fee safeguards against spam and ensures the quality and relevance of requests.","It helps keep the site running and allows onboarding of more referees."]},{id:"successful-referral",question:"What is a successful referral, and what should I expect after requesting one?",answer:["A successful referral occurs when a referrer accepts and recommends your candidacy after evaluating your profile.","You can chat with your referee after they accept your referral request.","Upon profile shortlisting b
216y the hiring team, expect an interview call."]},{id:"RequestNewCompany",question:"What should I do if the company of my choice is not added to the list?",answer:"Please write to us at [email protected] & we will try to onboard the company and referees."},{id:"Increase_referrals",question:"If Worko rejects my referral request, then what should I do?",answer:"If needed, raise a referral request for more relevant jobs, and we'll connect you with an appropriate referee."},{id:"refree rejection when accepted by worko",question:"Why did the referee reject my profile when Worko approved it?",answer:["Referee decisions are independent and subjective.","Worko assesses profiles based on specific criteria, but referees may have additional considerations aligned with their team’s needs.","Approval from Worko does not guarantee acceptance by a referee.","Consider alternative job opportunities more closely aligned with your profile."]},{id:"talk before requesting",question:"Can I talk to any of the referees before making a request?",answer:["Currently, direct communication with referees before making a request is not possible.","You can initiate a chat with the referee once your referral request is accepted.","For specific queries, contact our support team."]},{id:"worko_services",question:"What are different services available on Worko & how can I avail them?",answer:["Worko provides various services such as:","Job referrals","Career guidance","Interview handholding","Mock interviews","Resume review & writing","To avail these services, create a profile, navigate to the service section, and follow the prompts."]},{id:"imporve_scores",question:"If my matching score is low, how can I improve it?",answer:["Update your profile with detailed information about your skills, experiences, and achievements.","Stay active on the platform, explore relevant job opportunities, and seek feedback from our support team."]},{id:"Reapply For referral",question:"Can I request a referral if I've already applied for a role?",answer:["Yes! Even if you've already applied, you can still request a referral through Worko.","Worko connects you with referees who can advocate for your application.","Submit a referral request for the specific job, and we’ll take it from there."]}],QT=[{id:"privacy-policy",question:"How does privacy work?",answer:"We do not share your data with anyone externally. Your information is not shared with candidates you decline."},{id:"official-email-requirement",question:"Why did we collect your official mail ID?",answer:"To authorise your role as a Referee for the company you are joining, we utilise your work email. This is a one-time process, and we do not use your work email for any communication."},{id:"referral-obligation",question:"Do I have to refer everyone?",answer:"Worko utilises a powerful AI algorithm to assess candidates, assigning a matching score for quick and informed referral decisions. Please only refer individuals whom you genuinely believe would be well-suited for the role."},{id:"referee-benefits",question:"What other benefits do I get as a Referee?",answer:["Make the most of the rewards offered for Employee Referrals within your organisation.","Earn reward points or coupons by introducing individuals from your network to Worko as Referees. (T&C apply)","As a Referee, you are not subject to any charges when you seek referrals through Worko."]},{id:"who-can-be-referee",question:"Who can be a Referee?",answer:"At Worko, we value industry expertise and believe in connecting job seekers with experienced professionals who can make well-informed decisions. Our platform exclusively onboards employees with 2+ years of overall experience."},{id:"payment-for-services",question:"How will I get paid for Career Guidance, Mock Interviews, or Interview Consultation?",answer:"If a candidate opts for any of these services, you will receive the pre-decided consulting fee after successful completion."},{id:"expertise-offered",question:"What services/expertise can I offer through Worko & how will I get paid?",answer:"On Worko, you can provide services such as resume writing, career guidance, interview handholding, and mock
216interviews. Set your own professional fee and get paid post-completion."},{id:"unpublished-jobs",question:"I have some unpublished jobs in my company. How can I notify Worko to find a good referral?",answer:"We are launching this feature soon to help you find the best referral for internal openings. Until then, please write to us at [email protected], and we will assist you."},{id:"no-referral-policy",question:"My company doesn't have a referral policy. How can I benefit by referring candidates?",answer:"Collaborate on a referral strategy for mutual benefits! Connect us with your HR head, and we'll offer benefits for candidate referrals while rewarding you when your company joins us. Additionally, create a profile, share your expertise, help others, and earn extra income."}],JT=()=>{const[e,t]=R.useState(null),[r,s]=R.useState("employee"),i=l=>{t(e===l?null:l)};return S.jsxs("div",{className:"w-full bg-white px-4 pt-8 md:pt-16 xl:pt-36",style:{fontFamily:"Poppins"},children:[S.jsx("h1",{className:"text-center mb-16 md:mb-16 w-full px-4 text-[30px] md:text-[62px] font-semibold leading-tight md:leading-[48.344px] text-[#316BFF]",children:"Frequently Asked Questions"}),S.jsxs("div",{className:"max-w-4xl mx-auto",children:[S.jsx("div",{className:"flex justify-center mb-6 md:mb-12 px-4",children:S.jsxs("div",{className:"flex max-w-[271px] w-[201px] md:w-[270px] text-[13px] font-normal",children:[S.jsx("button",{className:`flex-1 flex items-center justify-center py-2 px-3 rounded-l-lg border transition-colors leading-[150%] 217 ${r==="employee"?"bg-[rgba(53,117,226,0.2)] border-[#316BFF] text-[#316BFF]":"bg-white border-[rgba(0,0,0,0.1)] text-black"}`,onClick:()=>s("employee"),style:{marginRight:r==="candidates"?"-1px":"0"},children:"Employee"}),S.jsx("button",{className:`flex-1 flex items-center justify-center py-2 px-3 rounded-r-lg border transition-colors leading-[150%] 218 ${r==="candidates"?"bg-[rgba(53,117,226,0.2)] border-[#316BFF] text-[#316BFF] font-medium":"bg-white border-[rgba(0,0,0,0.1)] text-black"}`,onClick:()=>s("candidates"),children:"Candidates"})]})}),S.jsx("div",{className:"space-y-4 mt-8 max-w-[800px] mx-auto px-4",children:(r==="employee"?QT:YT).map(l=>S.jsxs("div",{className:"rounded-2xl bg-[#F2F4F5] overflow-hidden",children:[S.jsxs("button",{className:"w-full px-4 md:px-6 py-4 flex justify-between items-center text-left",onClick:()=>i(l.id),children:[S.jsx("span",{className:"text-black text-[14px] md:text-[17.1px] font-normal leading-normal md:leading-[25.512px] pr-4",children:l.question}),S.jsx("div",{className:"w-0 h-0 border-l-[6px] border-r-[6px] border-t-[6px] border-transparent border-t-black"})]}),e===l.id&&S.jsx("div",{className:"px-4 md:px-6 pb-4 border-t pt-2",children:Array.isArray(l.answer)?S.jsx("ul",{className:"list-disc pl-5 space-y-2",children:l.answer.map((c,f)=>S.jsx("li",{className:"text-black text-[1rem] font-normal leading-normal text-left md:leading-[25.512px]",children:c},f))}):S.jsx("p",{className:"text-black text-[1rem] font-normal leading-normal text-left md:leading-[25.512px]",children:l.answer})})]},l.id))}),S.jsxs("div",{className:"text-center my-12 md:mt-36 px-4",children:[S.jsx("p",{className:"text-black mb-4 text-[26.1px] font-extrabold leading-normal md:leading-[25.512px]",children:"Still have a question?"}),S.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-1 md:gap-2 mt-1",children:[S.jsx("a",{href:"mailto:[email protected]",className:"text-[#316BFF] text-[15.3px] md:text-[17.1px] hover:text-blue-600 font-normal",children:"Contact our support team!"}),S.jsx("p",{className:"text-black text-[15.3px] md:text-[17.1px] font-normal leading-normal md:leading-[25.512px]",children:"We'll be happy to help you."})]})]})]})]})};var jl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zs=typeof window>"u"||"Deno"in globalThis;function _r(){}function XT(e,t){return typeof e=="function"?e(t):e}function vh(e){return typeof e=="number"&&e>=0&&e!==1/0}function nE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ui(e,t){return typeof e=="function"?e(t):e}function zr(e,t){return typeof e=="function"?e(t):e}function Rv(e,t){const{type:r="all",exact:s,fetchStatus:i,predicate:l,queryKey:c,stale:f}=e;if(c){if(s){if(t.queryHash!==mp(c,t.options))return!1}else if(!Sl(t.queryKey,c))return!1}if(r!=="all"){const h=t.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||i&&i!==t.state.fetchStatus||l&&!l(t))}function Iv(e,t){const{exact:r,status:s,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if(El(t.options.mutationKey)!==El(l))return!1}else if(!Sl(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function mp(e,t){return((t==null?void 0:t.queryKeyHashFn)||El)(e)}function El(e){return JSON.stringify(e,(t,r)=>Eh(r)?Object.keys(r).sort().reduce((s,i)=>(s[i]=r[i],s),{}):r)}function Sl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Sl(e[r],t[r])):!1}function rE(e,t){if(e===t)return e;const r=Tv(e)&&Tv(t);if(r||Eh(e)&&Eh(t)){const s=r?e:Object.keys(e),i=s.length,l=r?t:Object.keys(t),c=l.length,f=r?[]:{};let h=0;for(let d=0;d<c;d++){const p=r?d:l[d];(!r&&s.includes(p)||r)&&e[p]===void 0&&t[p]===void 0?(f[p]=void 0,h++):(f[p]=rE(e[p],t[p]),f[p]===e[p]&&e[p]!==void 0&&h++)}return i===c&&h===i?e:f}return t}function wh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Tv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Eh(e){if(!Pv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Pv(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Pv(e){return Object.prototype.toString.call(e)==="[object Object]"}function ZT(e){return new Promise(t=>{setTimeout(t,e)})}function Sh(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?rE(e,t):t}function e5(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function t5(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}var xp=Symbol();function oE(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===xp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Hs,ds,$i,l1,n5=(l1=class extends jl{constructor(){super();Qe(this,Hs);Qe(this,ds);Qe(this,$i);ke(this,$i,t=>{if(!Zs&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){G(this,ds)||this.setEventListener(G(this,$i))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,ds))==null||t.call(this),ke(this,ds,void 0))}setEventListener(t){var r;ke(this,$i,t),(r=G(this,ds))==null||r.call(this),ke(this,ds,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){G(this,Hs)!==t&&(ke(this,Hs,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 13,798 bytes, line 218
218this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof G(this,Hs)=="boolean"?G(this,Hs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Hs=new WeakMap,ds=new WeakMap,$i=new WeakMap,l1),gp=new n5,Hi,fs,Wi,c1,r5=(c1=class extends jl{constructor(){super();Qe(this,Hi,!0);Qe(this,fs);Qe(this,Wi);ke(this,Wi,t=>{if(!Zs&&window.addEventListener){const r=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){G(this,fs)||this.setEventListener(G(this,Wi))}onUnsubscribe(){var t;this.hasListeners()||((t=G(this,fs))==null||t.call(this),ke(this,fs,void 0))}setEventListener(t){var r;ke(this,Wi,t),(r=G(this,fs))==null||r.call(this),ke(this,fs,t(this.setOnline.bind(this)))}setOnline(t){G(this,Hi)!==t&&(ke(this,Hi,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return G(this,Hi)}},Hi=new WeakMap,fs=new WeakMap,Wi=new WeakMap,c1),fd=new r5;function Ch(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});r.status="pending",r.catch(()=>{});function s(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{s({status:"fulfilled",value:i}),e(i)},r.reject=i=>{s({status:"rejected",reason:i}),t(i)},r}function o5(e){return Math.min(1e3*2**e,3e4)}function sE(e){return(e??"online")==="online"?fd.isOnline():!0}var iE=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function M0(e){return e instanceof iE}function aE(e){let t=!1,r=0,s=!1,i;const l=Ch(),c=E=>{var C;s||(x(new iE(E)),(C=e.abort)==null||C.call(e))},f=()=>{t=!0},h=()=>{t=!1},d=()=>gp.isFocused()&&(e.networkMode==="always"||fd.isOnline())&&e.canRun(),p=()=>sE(e.networkMode)&&e.canRun(),g=E=>{var C;s||(s=!0,(C=e.onSuccess)==null||C.call(e,E),i==null||i(),l.resolve(E))},x=E=>{var C;s||(s=!0,(C=e.onError)==null||C.call(e,E),i==null||i(),l.reject(E))},y=()=>new Promise(E=>{var C;i=_=>{(s||d())&&E(_)},(C=e.onPause)==null||C.call(e)}).then(()=>{var E;i=void 0,s||(E=e.onContinue)==null||E.call(e)}),v=()=>{if(s)return;let E;const C=r===0?e.initialPromise:void 0;try{E=C??e.fn()}catch(_){E=Promise.reject(_)}Promise.resolve(E).then(g).catch(_=>{var N;if(s)return;const b=e.retry??(Zs?0:3),A=e.retryDelay??o5,T=typeof A=="function"?A(r,_):A,k=b===!0||typeof b=="number"&&r<b||typeof b=="function"&&b(r,_);if(t||!k){x(_);return}r++,(N=e.onFail)==null||N.call(e,r,_),ZT(T).then(()=>d()?void 0:y()).then(()=>{t?x(_):v()})})};return{promise:l,cancel:c,continue:()=>(i==null||i(),l),cancelRetry:f,continueRetry:h,canStart:p,start:()=>(p()?v():y().then(v),l)}}function s5(){let e=[],t=0,r=f=>{f()},s=f=>{f()},i=f=>setTimeout(f,0);const l=f=>{t?e.push(f):i(()=>{r(f)})},c=()=>{const f=e;e=[],f.length&&i(()=>{s(()=>{f.forEach(h=>{r(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||c()}return h},batchCalls:f=>(...h)=>{l(()=>{f(...h)})},schedule:l,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{i=f}}}var In=s5(),Ws,u1,lE=(u1=class{constructor(){Qe(this,Ws)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vh(this.gcTime)&&ke(this,Ws,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Zs?1/0:5*60*1e3))}clearGcTimeout(){G(this,Ws)&&(clearTimeout(G(this,Ws)),ke(this,Ws,void 0))}},Ws=new WeakMap,u1),Vi,qi,Sr,On,bl,Vs,Mr,ko,d1,i5=(d1=class extends lE{constructor(t){super();Qe(this,Mr);Qe(this,Vi);Qe(this,qi);Qe(this,Sr);Qe(this,On);Qe(this,bl);Qe(this,Vs);ke(this,Vs,!1),ke(this,bl,t.defaultOptions),this.setOptions(t.options),this.observers=[],ke(this,Sr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ke(this,Vi,a5(this.options)),this.state=t.state??G(this,Vi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=G(this,On))==null?void 0:t.promise}setOptions(t){this.options={...G(this,bl),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&G(this,Sr).remove(this)}setData(t,r){const s=Sh(this.state.data,t,this.options);return vt(this,Mr,ko).call(this,{data:s,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),s}setState(t,r){vt(this,Mr,ko).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var s,i;const r=(s=G(this,On))==null?void 0:s.promise;return(i=G(this,On))==null||i.cancel(t),r?r.then(_r).catch(_r):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(G(this,Vi))}isActive(){return this.observers.some(t=>zr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!nE(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=G(this,On))==null||r.continue()}onOnline(){var r;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=G(this,On))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),G(this,Sr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(G(this,On)&&(G(this,Vs)?G(this,On).cancel({revert:!0}):G(this,On).cancelRetry()),this.scheduleGc()),G(this,Sr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||vt(this,Mr,ko).call(this,{type:"invalidate"})}fetch(t,r){var h,d,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(G(this,On))return G(this,On).continueRetry(),G(this,On).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(x=>x.options.queryFn);g&&this.setOptions(g.options)}const s=new AbortController,i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(ke(this,Vs,!0),s.signal)})},l=()=>{const g=oE(this.options,r),x={queryKey:this.queryKey,meta:this.meta};return i(x),ke(this,Vs,!1),this.options.persister?this.options.persister(g,x,this):g(x)},c={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};i(c),(h=this.options.behavior)==null||h.onFetch(c,this),ke(this,qi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=c.fetchOptions)==null?void 0:d.meta))&&vt(this,Mr,ko).call(this,{type:"fetch",meta:(p=c.fetchOptions)==null?void 0:p.meta});const f=g=>{var x,y,v,E;M0(g)&&g.silent||vt(this,Mr,ko).call(this,{type:"error",error:g}),M0(g)||((y=(x=G(this,Sr).config).onError)==null||y.call(x,g,this),(E=(v=G(this,Sr).config).onSettled)==null||E.call(v,this.state.data,g,this)),this.scheduleGc()};return ke(this,On,aE({initialPromise:r==null?void 0:r.initialPromise,fn:c.fetchFn,abort:s.abort.bind(s),onSuccess:g=>{var x,y,v,E;if(g===void 0){f(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(C){f(C);return}(y=(x=G(this,Sr).config).onSuccess)==null||y.call(x,g,this),(E=(v=G(this,Sr).config).onSettled)==null||E.call(v,g,this.state.error,this),this.scheduleGc()},onError:f,onFail:(g,x)=>{vt(this,Mr,ko).call(this,{type:"failed",failureCount:g,error:x})},onPause:()=>{vt(this,Mr,ko).call(this,{type:"pause"})},onContinue:()=>{vt(this,Mr,ko).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),G(this,On).start()}},Vi=new WeakMap,qi=new WeakMap,Sr=new WeakMap,On=new WeakMap,bl=new WeakMap,Vs=new WeakMap,Mr=new WeakSet,ko=function(t){const r=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...cE(s.data,this.options),fetchMeta:t.meta??null};case"success":return{...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return M0(i)&&i.revert&&G(this,qi)?{...G(this,qi),fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=r(this.state),In.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),G(this,Sr).notify({query:this,type:"updated",action:t})})},d1);function cE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sE(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function a5(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var to,f1,l5=(f1=class extends jl{constructor(t={}){super();Qe(this,to);this.config=t,ke(this,to,new Map)}build(t,r,s){const i=r.queryKey,l=r.queryHash??mp(i,r);let c=this.get(l);return c||(c=new i5({cache:this,queryKey:i,queryHash:l,options:t.defaultQueryOptions(r),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){G(this,to).has(t.queryHash)||(G(this,to).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=G(this,to).get(t.queryHash);r&&(t.destroy(),r===t&&G(this,to).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){In.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return G(this,to).get(t)}getAll(){return[...G(this,to).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(s=>Rv(r,s))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(s=>Rv(t,s)):r}notify(t){In.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){In.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){In.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},to=new WeakMap,f1),no,jn,qs,ro,cs,h1,c5=(h1=class extends lE{constructor(t){super();Qe(this,ro);Qe(this,no);Qe(this,jn);Qe(this,qs);this.mutationId=t.mutationId,ke(this,jn,t.mutationCache),ke(this,no,[]),this.state=t.state||u5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){G(this,no).includes(t)||(G(this,no).push(t),this.clearGcTimeout(),G(this,jn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ke(this,no,G(this,no).filter(r=>r!==t)),this.scheduleGc(),G(this,jn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){G(this,no).length||(this.state.status==="pending"?this.scheduleGc():G(this,jn).remove(this))}continue(){var t;return((t=G(this,qs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,c,f,h,d,p,g,x,y,v,E,C,_,b,A,T,k,N,F;ke(this,qs,aE({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,U)=>{vt(this,ro,cs).call(this,{type:"failed",failureCount:P,error:U})},onPause:()=>{vt(this,ro,cs).call(this,{type:"pause"})},onContinue:()=>{vt(this,ro,cs).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>G(this,jn).canRun(this)}));const r=this.state.status==="pending",s=!G(this,qs).canStart();try{if(!r){vt(this,ro,cs).call(this,{type:"pending",variables:t,isPaused:s}),await((l=(i=G(this,jn).config).onMutate)==null?void 0:l.call(i,t,this));const U=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,t));U!==this.state.context&&vt(this,ro,cs).call(this,{type:"pending",context:U,variables:t,isPaused:s})}const P=await G(this,qs).start();return await((d=(h=G(this,jn).config).onSuccess)==null?void 0:d.call(h,P,t,this.state.context,this)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,P,t,this.state.context)),await((y=(x=G(this,jn).config).onSettled)==null?void 0:y.call(x,P,null,this.state.variables,this.state.context,this)),await((E=(v=this.options).onSettled)==null?void 0:E.call(v,P,null,t,this.state.context)),vt(this,ro,cs).call(this,{type:"success",data:P}),P}catch(P){try{throw await((_=(C=G(this,jn).config).onError)==null?void 0:_.call(C,P,t,this.state.context,this)),await((A=(b=this.options).onError)==null?void 0:A.call(b,P,t,this.state.context)),await((k=(T=G(this,jn).config).onSettled)==null?void 0:k.call(T,void 0,P,this.state.variables,this.state.context,this)),await((F=(N=this.options).onSettled)==null?void 0:F.call(N,void 0,P,t,this.state.context)),P}finally{vt(this,ro,cs).call(this,{type:"error",error:P})}}finally{G(this,jn).runNext(this)}}},no=new WeakMap,jn=new WeakMap,qs=new WeakMap,ro=new WeakSet,cs=function(t){const r=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};
218case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),In.batch(()=>{G(this,no).forEach(s=>{s.onMutationUpdate(t)}),G(this,jn).notify({mutation:this,type:"updated",action:t})})},h1);function u5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Io,jr,_l,p1,d5=(p1=class extends jl{constructor(t={}){super();Qe(this,Io);Qe(this,jr);Qe(this,_l);this.config=t,ke(this,Io,new Set),ke(this,jr,new Map),ke(this,_l,0)}build(t,r,s){const i=new c5({mutationCache:this,mutationId:++qc(this,_l)._,options:t.defaultMutationOptions(r),state:s});return this.add(i),i}add(t){G(this,Io).add(t);const r=au(t);if(typeof r=="string"){const s=G(this,jr).get(r);s?s.push(t):G(this,jr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(G(this,Io).delete(t)){const r=au(t);if(typeof r=="string"){const s=G(this,jr).get(r);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&G(this,jr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=au(t);if(typeof r=="string"){const s=G(this,jr).get(r),i=s==null?void 0:s.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var s;const r=au(t);if(typeof r=="string"){const i=(s=G(this,jr).get(r))==null?void 0:s.find(l=>
vendor: 16,816 bytes, line 218
218l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){In.batch(()=>{G(this,Io).forEach(t=>{this.notify({type:"removed",mutation:t})}),G(this,Io).clear(),G(this,jr).clear()})}getAll(){return Array.from(G(this,Io))}find(t){const r={exact:!0,...t};return this.getAll().find(s=>Iv(r,s))}findAll(t={}){return this.getAll().filter(r=>Iv(t,r))}notify(t){In.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return In.batch(()=>Promise.all(t.map(r=>r.continue().catch(_r))))}},Io=new WeakMap,jr=new WeakMap,_l=new WeakMap,p1);function au(e){var t;return(t=e.options.scope)==null?void 0:t.id}function hd(e){return{onFetch:(t,r)=>{var p,g,x,y,v;const s=t.options,i=(x=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:x.direction,l=((y=t.state.data)==null?void 0:y.pages)||[],c=((v=t.state.data)==null?void 0:v.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const d=async()=>{let E=!1;const C=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?E=!0:t.signal.addEventListener("abort",()=>{E=!0}),t.signal)})},_=oE(t.options,t.fetchOptions),b=async(A,T,k)=>{if(E)return Promise.reject();if(T==null&&A.pages.length)return Promise.resolve(A);const N={queryKey:t.queryKey,pageParam:T,direction:k?"backward":"forward",meta:t.options.meta};C(N);const F=await _(N),{maxPages:P}=t.options,U=k?t5:e5;return{pages:U(A.pages,F,P),pageParams:U(A.pageParams,T,P)}};if(i&&l.length){const A=i==="backward",T=A?uE:bh,k={pages:l,pageParams:c},N=T(s,k);f=await b(k,N,A)}else{const A=e??l.length;do{const T=h===0?c[0]??s.initialPageParam:bh(s,f);if(h>0&&T==null)break;f=await b(f,T),h++}while(h<A)}return f};t.options.persister?t.fetchFn=()=>{var E,C;return(C=(E=t.options).persister)==null?void 0:C.call(E,d,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=d}}}function bh(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function uE(e,{pages:t,pageParams:r}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,r[0],r):void 0}function f5(e,t){return t?bh(e,t)!=null:!1}function h5(e,t){return!t||!e.getPreviousPageParam?!1:uE(e,t)!=null}var rn,hs,ps,Ki,Gi,ms,Yi,Qi,m1,dE=(m1=class{constructor(e={}){Qe(this,rn);Qe(this,hs);Qe(this,ps);Qe(this,Ki);Qe(this,Gi);Qe(this,ms);Qe(this,Yi);Qe(this,Qi);ke(this,rn,e.queryCache||new l5),ke(this,hs,e.mutationCache||new d5),ke(this,ps,e.defaultOptions||{}),ke(this,Ki,new Map),ke(this,Gi,new Map),ke(this,ms,0)}mount(){qc(this,ms)._++,G(this,ms)===1&&(ke(this,Yi,gp.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,rn).onFocus())})),ke(this,Qi,fd.subscribe(async e=>{e&&(await this.resumePausedMutations(),G(this,rn).onOnline())})))}unmount(){var e,t;qc(this,ms)._--,G(this,ms)===0&&((e=G(this,Yi))==null||e.call(this),ke(this,Yi,void 0),(t=G(this,Qi))==null||t.call(this),ke(this,Qi,void 0))}isFetching(e){return G(this,rn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return G(this,hs).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=G(this,rn).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=G(this,rn).build(this,t),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Ui(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return G(this,rn).findAll(e).map(({queryKey:t,state:r})=>{const s=r.data;return[t,s]})}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),i=G(this,rn).get(s.queryHash),l=i==null?void 0:i.state.data,c=XT(t,l);if(c!==void 0)return G(this,rn).build(this,s).setData(c,{...r,manual:!0})}setQueriesData(e,t,r){return In.batch(()=>G(this,rn).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=G(this,rn).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=G(this,rn);In.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=G(this,rn),s={type:"active",...e};return In.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(s,t)))}cancelQueries(e,t={}){const r={revert:!0,...t},s=In.batch(()=>G(this,rn).findAll(e).map(i=>i.cancel(r)));return Promise.all(s).then(_r).catch(_r)}invalidateQueries(e,t={}){return In.batch(()=>{if(G(this,rn).findAll(e).forEach(s=>{s.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const r={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(r,t)})}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=In.batch(()=>G(this,rn).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let l=i.fetch(void 0,r);return r.throwOnError||(l=l.catch(_r)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(_r)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=G(this,rn).build(this,t);return r.isStaleByTime(Ui(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_r).catch(_r)}fetchInfiniteQuery(e){return e.behavior=hd(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_r).catch(_r)}ensureInfiniteQueryData(e){return e.behavior=hd(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fd.isOnline()?G(this,hs).resumePausedMutations():Promise.resolve()}getQueryCache(){return G(this,rn)}getMutationCache(){return G(this,hs)}getDefaultOptions(){return G(this,ps)}setDefaultOptions(e){ke(this,ps,e)}setQueryDefaults(e,t){G(this,Ki).set(El(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...G(this,Ki).values()],r={};return t.forEach(s=>{Sl(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){G(this,Gi).set(El(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...G(this,Gi).values()];let r={};return t.forEach(s=>{Sl(e,s.mutationKey)&&(r={...r,...s.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...G(this,ps).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xp&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...G(this,ps).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){G(this,rn).clear(),G(this,hs).clear()}},rn=new WeakMap,hs=new WeakMap,ps=new WeakMap,Ki=new WeakMap,Gi=new WeakMap,ms=new WeakMap,Yi=new WeakMap,Qi=new WeakMap,m1),Xn,wt,Al,Un,Ks,Ji,xs,oo,kl,Xi,Zi,Gs,Ys,gs,ea,Ot,ul,_h,Ah,kh,Rh,Ih,Th,Ph,hE,x1,fE=(x1=class extends jl{constructor(t,r){super();Qe(this,Ot);Qe(this,Xn);Qe(this,wt);Qe(this,Al);Qe(this,Un);Qe(this,Ks);Qe(this,Ji);Qe(this,xs);Qe(this,oo);Qe(this,kl);Qe(this,Xi);Qe(this,Zi);Qe(this,Gs);Qe(this,Ys);Qe(this,gs);Qe(this,ea,new Set);this.options=r,ke(this,Xn,t),ke(this,oo,null),ke(this,xs,Ch()),this.options.experimental_prefetchInRender||G(this,xs).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(G(this,wt).addObserver(this),Nv(G(this,wt),this.options)?vt(this,Ot,ul).call(this):this.updateResult(),vt(this,Ot,Rh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nh(G(this,wt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nh(G(this,wt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,vt(this,Ot,Ih).call(this),vt(this,Ot,Th).call(this),G(this,wt).removeObserver(this)}setOptions(t,r){const s=this.options,i=G(this,wt);if(this.options=G(this,Xn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof zr(this.options.enabled,G(this,wt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");vt(this,Ot,Ph).call(this),G(this,wt).setOptions(this.options),s._defaulted&&!wh(this.options,s)&&G(this,Xn).getQueryCache().notify({type:"observerOptionsUpdated",query:G(this,wt),observer:this});const l=this.hasListeners();l&&Dv(G(this,wt),i,this.options,s)&&vt(this,Ot,ul).call(this),this.updateResult(r),l&&(G(this,wt)!==i||zr(this.options.enabled,G(this,wt))!==zr(s.enabled,G(this,wt))||Ui(this.options.staleTime,G(this,wt))!==Ui(s.staleTime,G(this,wt)))&&vt(this,Ot,_h).call(this);const c=vt(this,Ot,Ah).call(this);l&&(G(this,wt)!==i||zr(this.options.enabled,G(this,wt))!==zr(s.enabled,G(this,wt))||c!==G(this,gs))&&vt(this,Ot,kh).call(this,c)}getOptimisticResult(t){const r=G(this,Xn).getQueryCache().build(G(this,Xn),t),s=this.createResult(r,t);return m5(this,s)&&(ke(this,Un,s),ke(this,Ji,this.options),ke(this,Ks,G(this,wt).state)),s}getCurrentResult(){return G(this,Un)}trackResult(t,r){const s={};return Object.keys(t).forEach(i=>{Object.defineProperty(s,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),r==null||r(i),t[i])})}),s}trackProp(t){G(this,ea).add(t)}getCurrentQuery(){return G(this,wt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=G(this,Xn).defaultQueryOptions(t),s=G(this,Xn).getQueryCache().build(G(this,Xn),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(t){return vt(this,Ot,ul).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),G(this,Un)))}createResult(t,r){var P;const s=G(this,wt),i=this.options,l=G(this,Un),c=G(this,Ks),f=G(this,Ji),d=t!==s?t.state:G(this,Al),{state:p}=t;let g={...p},x=!1,y;if(r._optimisticResults){const U=this.hasListeners(),O=!U&&Nv(t,r),B=U&&Dv(t,s,r,i);(O||B)&&(g={...g,...cE(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:E,status:C}=g;if(r.select&&g.data!==void 0)if(l&&g.data===(c==null?void 0:c.data)&&r.select===G(this,kl))y=G(this,Xi);else try{ke(this,kl,r.select),y=r.select(g.data),y=Sh(l==null?void 0:l.data,y,r),ke(this,Xi,y),ke(this,oo,null)}catch(U){ke(this,oo,U)}else y=g.data;if(r.placeholderData!==void 0&&y===void 0&&C==="pending"){let U;if(l!=null&&l.isPlaceholderData&&r.placeholderData===(f==null?void 0:f.placeholderData))U=l.data;else if(U=typeof r.placeholderData=="function"?r.placeholderData((P=G(this,Zi))==null?void 0:P.state.data,G(this,Zi)):r.placeholderData,r.select&&U!==void 0)try{U=r.select(U),ke(this,oo,null)}catch(O){ke(this,oo,O)}U!==void 0&&(C="success",y=Sh(l==null?void 0:l.data,U,r),x=!0)}G(this,oo)&&(v=G(this,oo),y=G(this,Xi),E=Date.now(),C="error");const _=g.fetchStatus==="fetching",b=C==="pending",A=C==="error",T=b&&_,k=y!==void 0,F={status:C,fetchStatus:g.fetchStatus,isPending:b,isSuccess:C==="success",isError:A,isInitialLoading:T,isLoading:T,data:y,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:E,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:_,isRefetching:_&&!b,isLoadingError:A&&!k,isPaused:g.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:A&&k,isStale:yp(t,r),refetch:this.refetch,promise:G(this,xs)};if(this.options.experimental_prefetchInRender){const U=$=>{F.status==="error"?$.reject(F.error):F.data!==void 0&&$.resolve(F.data)},O=()=>{const $=ke(this,xs,F.promise=Ch());U($)},B=G(this,xs);switch(B.status){case"pending":t.queryHash===s.queryHash&&U(B);break;case"fulfilled":(F.status==="error"||F.data!==B.value)&&O();break;case"rejected":(F.status!=="error"||F.error!==B.reason)&&O();break}}return F}updateResult(t){const r=G(this,Un),s=this.createResult(G(this,wt),this.options);if(ke(this,Ks,G(this,wt).state),ke(this,Ji,this.options),G(this,Ks).data!==void 0&&ke(this,Zi,G(this,wt)),wh(s,r))return;ke(this,Un,s);const i={},l=()=>{if(!r)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!G(this,ea).size)return!0;const h=new Set(f??G(this,ea));return this.options.throwOnError&&h.add("error"),Object.keys(G(this,Un)).some(d=>{const p=d;return G(this,Un)[p]!==r[p]&&h.has(p)})};(t==null?void 0:t.listeners)!==!1&&l()&&(i.listeners=!0),vt(this,Ot,hE).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&vt(this,Ot,Rh).call(this)}},Xn=new WeakMap,wt=new WeakMap,Al=new WeakMap,Un=new WeakMap,Ks=new WeakMap,Ji=new WeakMap,xs=new WeakMap,oo=new WeakMap,kl=new WeakMap,Xi=new WeakMap,Zi=new WeakMap,Gs=new WeakMap,Ys=new WeakMap,gs=new WeakMap,ea=new WeakMap,Ot=new WeakSet,ul=function(t){vt(this,Ot,Ph).call(this);let r=G(this,wt).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(_r)),r},_h=function(){vt(this,Ot,Ih).call(this);const t=Ui(this.options.staleTime,G(this,wt));if(Zs||G(this,Un).isStale||!vh(t))return;const s=nE(G(this,Un).dataUpdatedAt,t)+1;ke(this,Gs,setTimeout(()=>{G(this,Un).isStale||this.updateResult()},s))},Ah=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(G(this,wt)):this.options.refetchInterval)??!1},kh=function(t){vt(this,Ot,Th).call(this),ke(this,gs,t),!(Zs||zr(this.options.enabled,G(this,wt))===!1||!vh(G(this,gs))||G(this,gs)===0)&&ke(this,Ys,setInterval(()=>{(this.options.refetchIntervalInBackground||gp.isFocused())&&vt(this,Ot,ul).call(this)},G(this,gs)))},Rh=function(){vt(this,Ot,_h).call(this),vt(this,Ot,kh).call(this,vt(this,Ot,Ah).call(this))},Ih=function(){G(this,Gs)&&(clearTimeout(G(this,Gs)),ke(this,Gs,void 0))},Th=function(){G(this,Ys)&&(clearInterval(G(this,Ys)),ke(this,Ys,void 0))},Ph=function(){const t=G(this,Xn).getQueryCache().build(G(this,Xn),this.options);if(t===G(this,wt))return;const r=G(this,wt);ke(this,wt,t),ke(this,Al,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},hE=function(t){In.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(G(this,Un))}),G(this,Xn).getQueryCache().notify({query:G(this,wt),type:"observerResultsUpdated"})})},x1);function p5(e,t){return zr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Nv(e,t){return p5(e,t)||e.state.data!==void 0&&Nh(e,t,t.refetchOnMount)}function Nh(e,t,r){if(zr(t.enabled,e)!==!1){const s=typeof r=="function"?r(e):r;return s==="always"||s!==!1&&yp(e,t)}return!1}function Dv(e,t,r,s){return(e!==t||zr(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&yp(e,r)}function yp(e,t){return zr(t.enabled,e)!==!1&&e.isStaleByTime(Ui(t.staleTime,e))}function m5(e,t){return!wh(e.getCurrentResult(),t)}var x5=class extends fE{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:hd()},t)}getOptimisticResult(e){return e.behavior=hd(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var v,E;const{state:r}=e,s=super.createResult(e,t),{isFetching:i,isRefetching:l,isError:c,isRefetchError:f}=s,h=(E=(v=r.fetchMeta)==null?void 0:v.fetchMore)==null?void 0:E.direction,d=c&&h==="forward",p=i&&h==="forward",g=c&&h==="backward",x=i&&h==="backward";return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:f5(t,r.data),hasPreviousPage:h5(t,r.data),isFetchNextPageError:d,isFetchingNextPage:p,isFetchPreviousPageError:g,isFetchingPreviousPage:x,isRefetchError:f&&!d&&!g,isRefetching:l&&!p&&!x}}},pE=R.createContext(void 0),g5=e=>{const t=R.useContext(pE);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},y5=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(pE.Provider,{value:e,children:t})),mE=R.createContext(!1),v5=()=>R.useContext(mE);mE.Provider;function w5(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var E5=R.createContext(w5()),S5=()=>R.useContext(E5);function C5(e,t){return typeof e=="function"?e(...t):!!e}function Fv(){}var b5=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOn
218Mount=!1))},_5=e=>{R.useEffect(()=>{e.clearReset()},[e])},A5=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&e.data===void 0||C5(r,[e.error,s])),k5=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},R5=(e,t)=>e.isLoading&&e.isFetching&&!t,I5=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ov=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function xE(e,t,r){var g,x,y,v,E;const s=g5(),i=v5(),l=S5(),c=s.defaultQueryOptions(e);(x=(g=s.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||x.call(g,c),c._optimisticResults=i?"isRestoring":"optimistic",k5(c),b5(c,l),_5(l);const f=!s.getQueryCache().get(c.queryHash),[h]=R.useState(()=>new t(s,c)),d=h.getOptimisticResult(c),p=!i&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(C=>{const _=p?h.subscribe(In.batchCalls(C)):Fv;return h.updateResult(),_},[h,p]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),R.useEffect(()=>{h.setOptions(c,{listeners:!1})},[c,h]),I5(c,d))throw Ov(c,h,l);if(A5({result:d,errorResetBoundary:l,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw d.error;if((v=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||v.call(y,c,d),c.experimental_prefetchInRender&&!Zs&&R5(d,i)){const C=f?Ov(c,h,l):(E=s.getQueryCache().get(c.queryHash))==null?void 0:E.promise;C==null||C.catch(Fv).finally(()=>{h.updateResult()})}return c.notifyOnChangeProps?d:h.trackResult(d)}function Bv(e,t){return xE(e,fE)}function T5(e,t){return xE(e,x5)}const P5=({score:e,strokeWidth:t,color:r})=>{const i=new URLSearchParams(location.search).get("dashboard")==="USER",[l,c]=R.useState(0),{isLoggedIn:f}=ui();R.useEffect(()=>{(!f||i)&&c(0)},[f,i]),R.useEffect(()=>{setTimeout(()=>c(e),300)},[e]);const h=40,d=2*Math.PI*h,p=d-l/100*d,g=()=>l<=25?"red":l<=50?"orange":l<=75?"skyblue":"rgba(90,255,101,1)";return S.jsxs("div",{className:"w-full h-full relative flex items-center justify-center",children:[S.jsxs("svg",{className:"w-full h-full transform -rotate-90",viewBox:"0 0 100 100",children:[S.jsx("circle",{cx:"50",cy:"50",r:h,fill:"none",stroke:"white",strokeWidth:t||8}),S.jsx("circle",{cx:"50",cy:"50",r:h,fill:"none",stroke:g(),strokeWidth:t||8,strokeDasharray:d,strokeDashoffset:p,strokeLinecap:"round",className:"transition-all duration-700 ease-out"})]}),S.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:f&&!i?S.jsx("span",{className:`text-xs scale-95 md:text-xl font-semibold ${r?"text-black":"text-white"}`,children:l!=-1?`${l}%`:S.jsx(M1,{className:"animate-spin"})}):S.jsx("i",{className:"fa-solid text-yellow-500 fa-triangle-exclamation cursor-pointer text-xs sm:text-lg"})})]})},N5={zeroReferral:{titleColor:"text-red-500",message:`<p>You have exhausted all your referral credits.</p> 219 <p>You can increase your referral count by subscribing to our plans.</p> 220 <p>For more information, kindly visit the <a href="/faq" class="underline text-blue-400">FAQ page</a>.</p>`,buttonText:"Subscribe Now"},profileCompletion:{titleColor:"text-yellow-400",message:`<p>To proceed with your request, please complete your candidate profile and upload your CV.</p> 221 <p>A complete profile increases your chances of getting referred.</p>`,buttonText:"Complete Now"},AlreadyRequested:{titleColor:"text-blue-500",message:"<p>Sorry we cannot proceed as you have already raised a request for this application.</p>",buttonText:"Okay"},RequestAccepted:{titleColor:"text-green-500",message:"<p>You are a good match for the job. We are sending your CV to the best suitable Referee who can refer you. To see the status of your application please visit your dashboard</p>",buttonText:"View Status"},RequestRejected:{titleColor:"text-red-500",message:`<p>We regret to inform you that we are unable to proceed with this request.</p> 222 <p>Your profile and experience may not align well with the job requirement.</p> 223 <p>If you need expert advice, like a CV review or career guidance, feel free to reach out to us at <a href="mailto:[email protected]" class="underline text-blue-400">[email protected]</a>.</p> 224 <p>We're here to assist you in any way we can.</p>`,buttonText:"View Feedback"},Error_250:{titleColor:"text-red-500",message:`<p>Apologies, we couldn't find your CV to match with the job description.</p> 225 <ul class="list-disc pl-5"> 226 <li>Please ensure your CV is uploaded correctly.</li> 227 <li>You can try again after some time.</li> 228 </ul>`,buttonText:"Close"},Error_251:{titleColor:"text-red-500",message:`<p>
228The job description provided is not valid.</p> 229 <p>Please enter a valid job description to proceed.</p>`,buttonText:"Close"},Max_tries:{titleColor:"text-red-500",message:`<p>Looks like some error has occurred while requesting your application.</p> 230 <p>Please try again after some time.</p>`,buttonText:"Back to Home"}},D5=({Type:e,onClose:t,gaugeEnabled:r=!1,gaugeScore:s=0})=>{const{titleColor:i,message:l,buttonText:c}=N5[e]||{titleColor:"white",message:"<p>Something went wrong.</p>",buttonText:"Close"};return S.jsx("div",{className:"fixed inset-0 flex items-center justify-center backdrop-blur-sm z-50",children:S.jsxs("div",{className:"min-w-[300px] p-6 rounded-3xl bg-blue-800 backdrop-blur-[10px] border border-white/10 shadow-md shadow-black flex flex-col items-center gap-6",children:[r&&S.jsxs("div",{className:"w-[150px] text-center",children:[S.jsx(P5,{score:s,strokeWidth:12}),S.jsx("p",{className:"text-white text-2xl font-semibold mt-2",children:"Your Scores"})]}),S.jsx("div",{className:"text-white text-center sm:max-w-[500px]",dangerouslySetInnerHTML:{__html:l}}),S.jsx("button",{onClick:t,className:"min-w-32 text-white border px-3 py-2 rounded-lg border-white hover:bg-white/20 transition",children:c})]})})},F5=({title:e,details:t,showCloseButton:r=!0,onClose:s})=>{const i=t?t.replace(/\n/g,"<br>"):"We encountered an error while processing. Please try again after some time.";return Nl.createPortal(S.jsx("div",{className:" fixed inset-0 flex items-center justify-center backdrop-blur-sm z-50",children:S.jsxs("div",{className:" relative max-h-[500px] max-sm:max-w-[90vw] min-w-[300px] p-4 rounded-3xl bg-blue-600 backdrop-blur-[10px] border border-white/10 shadow-md shadow-black flex flex-col items-center gap-2",children:[S.jsx("div",{className:"text-center",children:S.jsx("h6",{className:"text-lg sm:text-2xl text-white font-semibold ",children:e||"Feedback"})}),S.jsx("div",{className:"pt-6 overflow-auto bg-blue-800 text-white p-6 rounded-lg w-full max-w-md",children:S.jsx("div",{className:"text-justify max-h-[350px] ",children:S.jsx("div",{className:"text-white text-xs sm:text-sm ",dangerouslySetInnerHTML:{__html:i}})})}),r&&S.jsx("div",{className:" flex justify-center w-full ",children:S.jsx("button",{onClick:s,className:"px-4 py-2 border text-white rounded-md hover:bg-gray-200/10 transition",children:"Close"})})]})}),document.body)},O5="_loader_1hjkw_1",B5="_loaderOne_1hjkw_10",L5="_loaderTwo_1hjkw_17",M5="_box_one_sub_1hjkw_53",j5="_wave_1hjkw_1",U5="_two_1hjkw_67",z5="_wave2_1hjkw_1",$5="_fadeText_1hjkw_1",H5="_animate_fadeText_1hjkw_188",Us={loader:O5,loaderOne:B5,loaderTwo:L5,box_one_sub:M5,wave:j5,two:U5,wave2:z5,"text-loader":"_text-loader_1hjkw_127","loading-text":"_loading-text_1hjkw_142",fadeText:$5,animate_fadeText:H5},W5={referral:["Checking eligibility for referral","Matching your educational qualification","Checking your responsibilities and experiences","Final checks happening","We are almost done"],signup:["Hang tight! We’re diving deep into your profile to find jobs matching your skills ,experience, strengths and career goals.",":sparkles: Better matches = Better interview chances"]},V5=({step:e=0,messageType:t="referral"})=>Nl.createPortal(S.jsx("div",{className:"overflow-y-hidden fixed inset-0 flex items-center justify-center bg-black/50 w-full backdrop-blur-sm z-50",children:S.jsxs("div",{className:"w-[500px] h-[300px] rounded-3xl relative -top-5 flex items-center justify-center bg-sky-100 backdrop-blur-[10px] border border-white/10 shadow-md shadow-sky-200 flex-col gap-10",children:[S.jsxs("div",{className:Us.loader,children:[S.jsx("div",{className:Us.loaderOne,children:[...Array(13)].map((r,s)=>S.jsx("div",{className:Us.box_one_sub},s))}),S.jsx("div",{className:Us.loaderTwo,children:[...Array(13)].map((r,s)=>S.jsx("div",{className:`${Us.box_one_sub} ${Us.two}`},s))})]}),S.jsx("div",{className:"relative h-8 flex justify-center items-center font-semibold text-blue-500 w-full overflow-hidden",children:S.jsx("span",{className:`opacity-100 !text-sky-500 ${Us.animate_fadeText}`,children:W5[t][e]})})]})}),document.body),q5="_Company_Content_53a9m_1",K5="_Company_Content_Filters_53a9m_5",G5="_open_53a9m_8",Y5="_closed_53a9m_11",Q5="_Company_Content_Jobs_53a9m_14",J5="_job_53a9m_18",X5="_Company_Content_Companies_53a9m_22",lu={Company_Content:q5,Company_Content_Filters:K5,open:G5,closed:Y5,Company_Content_Jobs:Q5,job:J5,Company_Content_Companies:X5},Lv={jobFilter:[{paramKey:"location",placeholder:"Location",selectType:"multiselect",options:[],value:[]},{paramKey:"coreSkills",placeholder:"Core Skills",selectType:"multiselect",options:[],value:[]},{paramKey:"softSkills",placeholder:"Soft Skills",selectType:"multiselect",options:[],value:[]},{paramKey:"technicalSkills",placeholder:"Technical Skills",selectType:"multiselect",options:[],value:[]},{options:["0-5L","5-10L","10-15L","15-20L","20-25L","25-30L","30-35L","35-40L","40-45L","45-50L","50-70L","70-100L","100-500L","500-1000L"],value:["0-5","5-10","10-15","15-20","20-25","25-30","30-35","35-40","40-45","45-50","50-70","70-100","100-500","500-1000"],paramKey:"salaryRange",placeholder:"Salary Range",selectType:"normal"},{options:["0-1 years","1-3 years","3-6 years","6-9 years","9-12 years","12-15 years","15-20 years","20-25 years","25+ years"],value:["0-1","1-3","3-6","6-9","9-12","12-15","15-20","20-25","25-100"],paramKey:"experienceRange",placeholder:"Experience Range",selectType:"normal"},{placeholder:"Company",paramKey:"companyName",selectType:"multiselect",options:[],value:[]},{placeholder:"Job Type",paramKey:"dashboard",selectType:"normal",options:["Refer a friend jobs"],value:["USER"]},{placeholder:"Department",paramKey:"department",selectType:"multiselect",options:[],value:[]}],referralFilter:[{placeholder:"Team Size",paramKey:"teamSize",selectType:"normal",options:["1-10","10-50","50-100","100-500","500-1000","1000-5000","5000+"],value:["1-10","10-50","50-100","100-500","500-1000","1000-5000","5000+"]},{placeholder:"Industry",paramKey:"industry",selectType:"multiselect",options:[],value:[]},{placeholder:"Company",paramKey:"companyName",selectType:"multiselect",options:[],value:[]}]},Z5=({isError:e,error:t,onDismiss:r})=>
230{const[s,i]=R.useState(!1);return!e||!t?null:S.jsxs("div",{className:"fixed bottom-10 left-10 z-50 flex flex-col items-start",children:[s&&S.jsx("div",{className:"mb-2 bg-red-600 text-white p-3 rounded-lg shadow-md text-sm",children:t.message}),S.jsx("div",{className:"cursor-pointer bg-[#FFC107] shadow-lg text-white p-5 w-min rounded-full flex items-center justify-center",onClick:()=>i(!s),children:S.jsx(Qb,{size:24})})]})};var Rn=(e=>(e.JOB="JOB",e.REFERRAL="REFERRAL",e.GUIDANCE="GUIDANCE",e))(Rn||{});const e6=e=>Array.from(new Set(e.flat().map(t=>t.toUpperCase())));let Li={};const pl=()=>{Li={}},t6=(e,t,r,s,i=!1)=>{let l=["location","coreSkills","experienceRange","department","technicalSkills","softSkills","companyName","salaryRange","dashboard"];const c=["location","coreSkills","softSkills","technicalSkills","companyName","department"],f=["industry","companyName"];try{if(!Array.isArray(e)||!Array.isArray(r)){console.warn("Data or filterMetaData is not valid array");return}if(e.length===0||r.length===0){const v=t===Rn.JOB?c:f,E=r.map(_=>({options:v.includes(_.paramKey)?[]:_.options||[],value:_.value??[],paramKey:_.paramKey,placeholder:_.placeholder||_.paramKey.charAt(0).toUpperCase()+_.paramKey.slice(1),selectType:_.selectType||"normal"})),C=l.map(_=>E.find(b=>b.paramKey===_)).filter(_=>!!_);s(C);return}i&&pl();const h=t===Rn.JOB?c:f;h.forEach(v=>{Li[v]||(Li[v]=new Set)}),h.forEach(v=>{let E=[];if(t===Rn.JOB)switch(v){case"coreSkills":case"softSkills":case"technicalSkills":case"department":{const C=e.map(_=>"externalJobId"in _?[]:_[v]);E=e6(C.filter(_=>_!==void 0));break}case"companyName":{E=Array.from(new Set(e.map(C=>{var _;return((_=C.companyDetails)==null?void 0:_.name)||""}).filter(C=>C)));break}case"location":{E=Array.from(new Set(e.flatMap(C=>{var _;return((_=C.location)==null?void 0:_.city)||[]})));break}default:E=Array.from(new Set(e.map(C=>C[v]).filter(Boolean)))}else t===Rn.REFERRAL&&(v==="industry"?E=Array.from(new Set(e.map(C=>C[v]).filter(Boolean))):v==="companyName"&&(E=Array.from(new Set(e.map(C=>C.name).filter(Boolean)))));Array.isArray(E)||(E=[]),E.forEach(C=>Li[v].add(C))});const d=h.map(v=>{const E=r.find(C=>C.paramKey===v);return{options:Array.from(Li[v]),value:Array.from(Li[v]),paramKey:v,placeholder:(E==null?void 0:E.placeholder)||v.charAt(0).toUpperCase()+v.slice(1),selectType:(E==null?void 0:E.selectType)||"normal"}});let p=[];p=r.filter(v=>!d.some(E=>E.paramKey===v.paramKey));const g=[...d,...p],x=l.map(v=>g.find(E=>E.paramKey===v)).filter(v=>!!v),y=g.filter(v=>!l.includes(v.paramKey));s([...x,...y])}catch(h){console.error("Error in generating filter options:",h)}},n6={coreSkills:.4,softSkills:.2,experience:.3,responsibilities:.1};function gE(e,t,r){var y,v;if(!e||!t)return console.warn("Missing jobDescription or userBasicDetails"),s6();const s={...n6,...r},i=Object.values(s).reduce((E,C)=>E+C,0);Math.abs(i-1)>.001&&(console.warn(`Weights don't sum to 1.0 (sum: ${i}), normalizing...`),Object.keys(s).forEach(E=>{s[E]/=i}));let l={coreSkills:0,softSkills:0,experience:0,responsibilities:0};const c=parseFloat(((v=(y=e.initialMatchingScoreDetails)==null?void 0:y.finalScore)==null?void 0:v.toFixed(2))||"0")*100;let f=0,h=0,d=0,p=0;if(e&&(e!=null&&e.coreSkills)&&(e!=null&&e.softSkills)){const E=(t==null?void 0:t.coreSkills)||[],C=(t==null?void 0:t.softSkills)||[];f=Mv({jdSkills:e==null?void 0:e.coreSkills,resumeSkills:E}),h=Mv({jdSkills:e==null?void 0:e.softSkills,resumeSkills:C}),d=.7+(f>h?.1:0),p=1-d}else{const E=s.coreSkills+s.softSkills;d=s.coreSkills/E,p=s.softSkills/E}l.coreSkills=Math.min(90,Math.round(c*d)),l.softSkills=Math.min(90,Math.round(c*p)),l.experience=r6(e,t),l.responsibilities=o6(l);const g={coreSkillsWeighted:l.coreSkills*s.coreSkills,softSkillsWeighted:l.softSkills*s.softSkills,experienceWeighted:l.experience*s.experience,responsibilitiesWeighted:l.responsibilities*s.responsibilities};return{totalScore:Math.min(90,Math.max(0,Math.round(g.coreSkillsWeighted+g.softSkillsWeighted+g.experienceWeighted+g.responsibilitiesWeighted))),coreSkillsScore:Math.round(l.coreSkills),softSkillsScore:Math.round(l.softSkills),experienceScore:Math.round(l.experience),responsibilitiesScore:Math.round(l.responsibilities),breakdown:{coreSkillsWeighted:Math.round(g.coreSkillsWeighted*100)/100,softSkillsWeighted:Math.round(g.softSkillsWeighted*100)/100,experienceWeighted:Math.round(g.experienceWeighted*100)/100,responsibilitiesWeighted:Math.round(g.responsibilitiesWeighted*100)/100}}}function r6(e,t){if(!e.experienceRange||typeof e.experienceRange!="object"||typeof e.experienceRange.min!="number"||typeof e.experienceRange.max!="number"||typeof t.YOE!="number"||isNaN(t.YOE))return 80;try{const{min:r,max:s}=e.experienceRange,i=t.YOE;if(r<0||s<0||r>s)return console.warn("Invalid experience range:",{jdMinYOE:r,jdMaxYOE:s}),80;let l=0;if(r===0&&s===0&&i>0)l=90;else if(i>=r&&i<=s)l=90;else if(i<r){const c=r>0?Math.min(i/r,1):0;l=Math.round(c*90)}else if(i>s){const c=Math.min((i-s)/s,.5);l=Math.round(90*(1-c))}return Math.min(90,Math.max(0,l))}catch(r){return console.error("Error processing experience:",r),0}}function o6(e){try{const t=(e.experience+e.softSkills)*.35;let r=Math.min(90,Math.round(t));if(e.coreSkills<20)r=Math.min(r,10);else if(e.coreSkills<50){const s=e.coreSkills/50;r=Math.round(r*(.6+.4*s))}return Math.min(90,Math.max(0,r))}catch(t){return console.error("Error processing responsibilities:",t),0}}function s6(){return{totalScore:0,coreSkillsScore:0,softSkillsScore:0,experienceScore:0,responsibilitiesScore:0,breakdown:{coreSkillsWeighted:0,softSkillsWeighted:0,experienceWeighted:0,responsibilitiesWeighted:0}}}function Mv({jdSkills:e,resumeSkills:t,maxScore:r=90,extractResumeSkill:s=i=>i==null?void 0:i.skillName}){try{const i=new Set(e.filter(d=>
230typeof d=="string"&&d.trim().length>0).map(d=>d.toLowerCase().trim())),l=new Set(t.map(s).filter(d=>typeof d=="string"&&d.trim().length>0).map(d=>d.toLowerCase().trim()));let c=0;i.forEach(d=>{l.has(d)&&c++});const h=(i.size>0?c/i.size:0)*100;return Math.min(r,Math.round(h))}catch(i){return console.error("Error processing skills:",i),0}}const yE=R.createContext(void 0),j0=new dE,dN=({children:e})=>{var Oe,Xe;const{isLoggedIn:t}=ui(),r=bn(),s=r.pathname.includes("job")?Rn.JOB:Rn.REFERRAL,[i,l]=R.useState(s),[c,f]=R.useState(),[h,d]=R.useState(),[p,g]=R.useState(),[x,y]=R.useState(""),[v,E]=R.useState(1),[C,_]=R.useState(!1),[b,A]=R.useState(!1),[T,k]=R.useState(!1),[N,F]=R.useState(!1),[P,U]=R.useState(),[O,B]=R.useState(!1),[$,Y]=R.useState([]),te=R.useRef(0),re="https://jobs.worko.ai",ce="https://api.worko.ai",[ue,W]=R.useState({pageSize:10,sortOrder:"descending"}),ne=R.useMemo(()=>({pageSize:10,sortOrder:"descending",...(P==null?void 0:P.userDesignation)&&{jobTitle:P.userDesignation},...(P==null?void 0:P.coreSkills)&&{coreSkills:P.coreSkills},...(P==null?void 0:P.YOE)!==void 0&&{YOE:P.YOE}}),[P]),[oe,D]=R.useState([]),z=(Oe=ft.getItem(ht.USERTYPE))==null?void 0:Oe.includes(et.CORPORATE);R.useLayoutEffect(()=>{const We=r.pathname.includes("job")?Rn.JOB:Rn.REFERRAL;r.pathname.includes("job")&&t&&!z&&K(),l(We),d([]),g([]),L(),E(1),pl()},[r.pathname,i]);const L=()=>{t&&P&&r.pathname.includes("job")?W({...ne}):W({pageSize:10,sortOrder:"descending"})};R.useEffect(()=>()=>{j0.resetQueries()},[]),R.useEffect(()=>{te.current=te.current},[]);const K=R.useCallback(async()=>{var We,Le;if(i===Rn.JOB){A(!0);try{const{response:Ne,error:Ve}=await zn.get(`${ce}/user/basic-details`,!0,{},!0);if(Ve)throw Ve;const ut=(We=Ne==null?void 0:Ne.candidateExperience)==null?void 0:We.designation,qe=(Le=Ne==null?void 0:Ne.coreSkills)==null?void 0:Le.map(Ut=>Ut.skillName);Y(qe),Ne&&f(Ne),Ne&&"CTC"in Ne&&(Ne==null?void 0:Ne.isCvExtracted)===!0&&(qe!=null&&qe.length||Ne!=null&&Ne.YOE)?(U({userDesignation:ut||"",...(qe==null?void 0:qe.length)&&{coreSkills:qe},...(Ne==null?void 0:Ne.YOE)&&{YOE:Ne.YOE}}),W(Ut=>({...Ut,...ut&&{jobTitle:ut},...(qe==null?void 0:qe.length)&&{coreSkills:qe},...(Ne==null?void 0:Ne.YOE)&&{YOE:Ne.YOE}}))):((Ne&&(!("isCvExtracted"in Ne)||Ne.isCvExtracted===!1)||!(Ne!=null&&Ne.YOE)||(qe==null?void 0:qe.length)===0)&&F(!0),k(!0),U({userDesignation:"",coreSkills:qe}))}catch(Ne){console.error("Exception in fetchUserBasicDetails:",Ne)}finally{A(!1)}}},[i,U]),ve=()=>{W(We=>({...We,searchText:x})),pl(),E(1),j0.invalidateQueries({queryKey:["GET",i]})},Ee=()=>{y(""),W(We=>{const Le={...We};return delete Le.searchText,Le}),pl(),E(1),j0.invalidateQueries({queryKey:["GET",i]})},[we,se]=R.useState(new Set),Ce=R.useCallback(async We=>{if(We.length)try{const Le=new Set(we),Ne=25,Ve=50,ut={};for(let qe=0;qe<We.length;qe+=Ne)We.slice(qe,qe+Ne).forEach(lt=>{if(Le.add(lt.id),!c)return;const{totalScore:Ze}=gE(lt,c);ut[lt.id]={id:lt.id,scores:Ze}}),await new Promise(lt=>setTimeout(lt,Ve));se(Le),d(qe=>{if(!qe)return;const Ut=qe.reduce((Ze,Mt)=>(Ze[Mt.id]=Mt,Ze),{});Object.keys(ut).forEach(Ze=>{var jt;const Mt=((jt=ut[Ze])==null?void 0:jt.scores)??Ut[Ze].matchingScore;Ut[Ze]={...Ut[Ze],matchingScore:Mt},se(dt=>{const fn=new Set(dt);return fn.delete(Ze),fn})});const lt=qe.map(Ze=>Ut[Ze.id]||Ze);return lt.sort((Ze,Mt)=>{const jt=!Ze.externalJobId&&(Ze.matchingScore??0)>=50,dt=!Mt.externalJobId&&(Mt.matchingScore??0)>=50;return jt&&!dt?-1:!jt&&dt?1:(Mt.matchingScore??0)-(Ze.matchingScore??0)}),lt})}catch(Le){console.error("Exception in fetchJobMatchingScores:",Le)}},[d,we,c]),Se=R.useCallback(async({pageParam:We=null,filters:Le,fallbackLevel:Ne=1})=>{var Q,ie,ae,de,ge;const Ve=r.pathname.includes("job"),ut=We===null,{jobTitle:qe,YOE:Ut,coreSkills:lt,pageSize:Ze,sortOrder:Mt,status:jt,lastKey:dt,s3VectorPageNumber:fn,fromS3Vector:cn,includeCompanyDetails:hn,...gt}=Le,Tt=((Q=gt.dashboard)==null?void 0:Q.includes("USER"))||((ie=Le.dashboard)==null?void 0:ie.includes("USER"))||r.search.includes("dashboard=USER"),je=t&&Le.jobTitle===(P==null?void 0:P.userDesignation),Me=t&&Le.YOE===(P==null?void 0:P.YOE),rt=t&&Le.coreSkills&&Array.isArray(Le.coreSkills)&&Le.coreSkills.length>0&&JSON.stringify([...Le.coreSkills].sort())===JSON.stringify([...$||[]].sort()),tt=!!(gt.location||gt.salaryRange||gt.experienceRange||gt.workMode||gt.department||gt.softSkills||gt.technicalSkills||gt.companyId||gt.companyName||gt.industry||gt.searchText||!Tt&&Le.jobTitle&&!je||!Tt&&Le.YOE!==void 0&&!Me||!Tt&&Le.coreSkills&&Array.isArray(Le.coreSkills)&&Le.coreSkills.length>0&&!rt),nt=ut&&!tt&&!Tt;let Ct=!1;Ve&&!z&&(Tt&&tt?Ct=!0:Tt&&!tt?Ct=!1:!Tt&&tt?Ct=!0:nt&&(Ct=t));const le={...Le,pageSize:30,...We&&(!Ct||!Ve)?{lastKey:We}:{},...Ve&&Le.sortOrder?{sortOrder:Le.sortOrder==="asc"?"asc":"desc"}:{},...!Ve&&{isVerified:1}};Ve&&Tt&&!tt&&(delete le.coreSkills,delete le.jobTitle,delete le.YOE);const V=(ae=new URLSearchParams(window.location.search).get("coreSkills"))==null?void 0:ae.split(",");if(Ve){if(!Tt||tt){const Nt=Array.isArray(Le.coreSkills)&&Le.coreSkills.length>0,Wn=Array.isArray(V)&&V.length>0;Nt?le.coreSkills=Le.coreSkills:Wn?le.coreSkills=V:t&&!Tt&&(le.coreSkills=$)}else delete le.coreSkills;const{jobTitle:fe,YOE:xe,coreSkills:_e,pageSize:Be,sortOrder:Ue,status:_t,lastKey:mt,...yt}=Le;if(console.log("Filters received in Job Page:",Le),!Tt||tt){const Nt=Object.values(yt).some(Vn=>Vn!=null);!!(yt.searchText||yt.companyName)?(delete le.jobTitle,delete le.YOE,delete le.coreSkills):Nt&&!V?(delete le.jobTitle,delete le.YOE,console.info("Removed default filters because at least one other filter is present.")):(Nt||V)&&(le.coreSkills=V,delete le.jobTitle,delete le.YOE)}}if(Le.experienceRange&&delete le.YOE,le.salaryRange&&delete le.salaryRange,le.experienceRange&&delete le.experienceRange,le!=null&&le.industry&&(le.industryName=le.industry,delete le.industry),Ve&&(le.status="PUBLISHED",le.sortOrder="desc"),Tt&&tt&&(delete le.dashboard,gt.dashboard&&delete gt.dashboard),Ct){le.fromS3Vector=!0,le.includeCompanyDetails=!0;const fe=ut?1:Math.max(1,te.current+1);le.s3VectorPageNumber=fe}else delete le.fromS3Vector,delete le.s3VectorPageNumber,delete le.includeCompanyDetails;Tt&&!tt&&(delete le.coreSkills,delete le.jobTitle,delete le.YOE,delete le.fromS3Vector,delete le.s3VectorPageNumber,le.includeCompanyDetails=!0),Object.keys(le).forEach(fe=>{le[fe]===null&&delete le[fe],le[fe]===void 0&&delete le[fe],Array.isArray(le[fe])&&le[fe].length===0&&delete le[fe]});const Z=Ve?`${re}/job/`:"/company";
230try{const{response:fe,error:xe}=await zn.get(Z,!0,le,Ve);if(xe)throw xe;const _e=Ve?Lv.jobFilter:Lv.referralFilter;if(fe.data.length<=1&&("YOE"in le||"coreSkills"in le||"jobTitle"in le)&&Ve&&ut){d([]);const _t={...le}}t6(fe.data,i,_e,D,ut),_(fe.data.length>0),Ve?(fe.data,d(_t=>ut?fe.data:[..._t||[],...fe.data]),fe.data.length>0&&t&&Ce(fe.data.map(_t=>_t))):g(_t=>ut?fe.data:[..._t||[],...fe.data]);const Be=le.dashboard==="USER"||gt.dashboard==="USER";return{data:fe,nextPage:Ve&&(Ct&&!Be)?(de=fe.pagination)==null?void 0:de.s3VectorLastKey:(ge=fe.pagination)==null?void 0:ge.lastKey}}catch(fe){throw console.error("Error fetching company/job data:",fe),fe}},[i,Ce,t,v,$]),He=()=>!i||ue.pageSize<=0||i!==Rn.REFERRAL&&i!==Rn.JOB?!1:t&&i===Rn.REFERRAL?!0:!(t&&!P&&!z||!O&&i===Rn.JOB),{data:xt,fetchNextPage:Ge,hasNextPage:St,isFetching:bt,isFetchingNextPage:Yt,isLoading:Rt,isError:Bt,error:Je}=T5({queryKey:["GET",i,ue],queryFn:({pageParam:We})=>Se({pageParam:We,filters:ue}),getNextPageParam:We=>We.nextPage||void 0,initialPageParam:null,enabled:He(),retry:0});R.useEffect(()=>{var We;te.current=((We=xt==null?void 0:xt.pages)==null?void 0:We.length)??0},[(Xe=xt==null?void 0:xt.pages)==null?void 0:Xe.length]);const Ht=R.useMemo(()=>({companyPageMode:i,setCompanyPageMode:l,setJobFilters:W,jobFilterForRender:oe,companyJobData:h,setSearchText:y,searchText:x,resetSearch:Ee,handleSearch:ve,isLoading:Rt||bt||b,companyRefData:p,apiHasData:C,isError:Bt,hasNextPage:St,isFetchingNextPage:Yt,fetchNextPage:Ge,fetchUserBasicDetails:K,resetFiltersValues:L,isProfileInclomplete:T,setIsProfileInclomplete:k,setIsInitialFilterSet:B,setS3VectorPageNumber:E,isProfileIncompWithoutCV:N,setIsProfileIncompWithoutCV:F}),[i,oe,h,x,Rt,b,p,C,Bt,St,Ge,Yt,L,T,k,B,E,N,F]);return S.jsx(yE.Provider,{value:Ht,children:S.jsxs("div",{className:"relative",children:[e,Bt&&Je?S.jsx(Z5,{isError:Bt,error:Je}):null]})})},pd=()=>{const e=R.useContext(yE);if(!e)throw new Error("useCompanyContext must be used within an AuthProvider");return e};function jv(e,t,r){return r==="salary"&&(!e||!t)?"Not Disclosed":e===void 0||t===void 0?"-":e===t?`${e} ${r==="experience"?t===1?"Year":"Years":"LPA"}`:r==="experience"?e===0&&t===0?"-":t===9999?`${e}+ Years`:`${e}-${t} ${t===1?"Year":"Years"}`:r==="salary"?e===0&&t===0?"-":t===9999?`${e}+ LPA`:`${e}-${t} LPA`:"Not Disclosed"}var Dh=new Map,cu=new WeakMap,Uv=0,i6=void 0;function a6(e){return e?(cu.has(e)||(Uv+=1,cu.set(e,Uv.toString())),cu.get(e)):"0"}function l6(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?a6(e.root):e[t]}`).toString()}function c6(e){const t=l6(e);let r=Dh.get(t);if(!r){const s=new Map;let i;const l=new IntersectionObserver(c=>{c.forEach(f=>{var h;const d=f.isIntersecting&&i.some(p=>f.intersectionRatio>=p);e.trackVisibility&&typeof f.isVisible>"u"&&(f.isVisible=d),(h=s.get(f.target))==null||h.forEach(p=>{p(d,f)})})},e);i=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:l,elements:s},Dh.set(t,r)}return r}function u6(e,t,r={},s=i6){if(typeof window.IntersectionObserver>"u"&&s!==void 0){const h=e.getBoundingClientRect();return t(s,{isIntersecting:s,target:e,intersectionRatio:typeof r.threshold=="number"?r.threshold:0,time:0,boundingClientRect:h,intersectionRect:h,rootBounds:h}),()=>{}}const{id:i,observer:l,elements:c}=c6(r),f=c.get(e)||[];return c.has(e)||c.set(e,f),f.push(t),l.observe(e),function(){f.splice(f.indexOf(t),1),f.length===0&&(c.delete(e),l.unobserve(e)),c.size===0&&(l.disconnect(),Dh.delete(i))}}function d6({threshold:e,delay:t,trackVisibility:r,rootMargin:s,root:i,triggerOnce:l,skip:c,initialInView:f,fallbackInView:h,onChange:d}={}){var p;
230const[g,x]=R.useState(null),y=R.useRef(d),[v,E]=R.useState({inView:!!f,entry:void 0});y.current=d,R.useEffect(()=>{if(c||!g)return;let A;return A=u6(g,(T,k)=>{E({inView:T,entry:k}),y.current&&y.current(T,k),k.isIntersecting&&l&&A&&(A(),A=void 0)},{root:i,rootMargin:s,threshold:e,trackVisibility:r,delay:t},h),()=>{A&&A()}},[Array.isArray(e)?e.toString():e,g,i,s,l,c,r,h,t]);const C=(p=v.entry)==null?void 0:p.target,_=R.useRef(void 0);!g&&C&&!l&&!c&&_.current!==C&&(_.current=C,E({inView:!!f,entry:void 0}));const b=[x,v.inView,v.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}const f6=({companyData:e})=>{const t=Mo(),[r,s]=R.useState(!1),i=f=>{const h=e.name.replace(/\s/g,"_");t(`/${f}/${h}/${e.SK}`)},l=e!=null&&e.logo?`https://worko.ai/images/${e.logo}`:e==null?void 0:e.logoUrl,c=l&&l.trim()!=="";return S.jsx(S.Fragment,{children:S.jsxs("div",{className:"h-fit bg-white p-4 w-full rounded-2xl border",children:[S.jsxs("div",{className:" flex items-start justify-start gap-2 md:gap-5 mb-2 ",children:[S.jsx("div",{className:"relative flex-shrink-0 min-w-[60px] w-[60px] h-[60px] rounded-[6.75px] sm:rounded-[9px] flex items-center justify-center border overflow-hidden",children:c&&!r?S.jsx("img",{src:l,onError:()=>s(!0),alt:e.name,className:"w-[60px] object-contain border h-[60px] sm:w-20 sm:h-20 rounded-[6.75px] sm:rounded-[9px]"}):S.jsx(Hb,{})}),S.jsx("div",{className:" flex flex-col items-start justify-between w-[70%] ",children:S.jsx("h3",{className:"text-sm font-medium mb-0 leading-6 sm:text-lg truncate w-[100%] text-left !capitalize ",children:e.name.charAt(0).toUpperCase()+e.name.slice(1).toLocaleLowerCase()})})]}),S.jsxs("div",{className:" flex justify-center flex-col gap-1 px-1 text-gray-700 ",children:[S.jsx("div",{className:"flex justify-between gap-2",children:S.jsxs("div",{className:"linkedin_ref flex justify-start items-end gap-2 text-black md:my-1 ",children:[S.jsx("i",{className:"fa-brands fa-linkedin "}),S.jsx("a",{href:e.linkedIn,target:"_blank",className:" text-[12px] md:text-xs text-gray-700 ",rel:"noreferrer",children:"LinkedIn Page"})]})}),S.jsxs("div",{className:"flex justify-between gap-2 ",children:[S.jsxs("div",{className:"linkedin_ref flex justify-start items-start gap-2 md:my-1 relative top-2 ",children:[S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",children:S.jsxs("g",{fill:"none",stroke:"#000",strokeLinejoin:"round",strokeWidth:2,children:[S.jsx("path",{d:"M12 12h.01M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2m14 7a18.15 18.15 0 0 1-20 0"}),S.jsx("rect",{width:20,height:14,x:2,y:6,rx:2})]})}),S.jsx("a",{href:e.linkedIn,target:"_blank",className:" text-[12px] md:text-xs ",rel:"noreferrer",children:"Career Page"})]}),S.jsx("button",{className:"scale-90 btn_secondary bg-[#4B7EFF] text-[12px] w-[150px] px-0 ",onClick:()=>i("guidance"),children:"Request Guidance"})]})]})]})})},vE=()=>{const{setJobFilters:e,resetFiltersValues:t,resetSearch:r}=pd(),[s,i]=Cb(),[l,c]=R.useState({});return{handleFilterChange:(d,p,g)=>{const x=d!=="dashboard"&&p.length>0&&s.get("dashboard")==="USER";c(y=>{const v={...y,[d]:p};return x&&delete v.dashboard,v}),e(y=>{var C,_,b,A,T,k,N,F;const v={...y},E=new URLSearchParams(s);if(x&&(delete v.dashboard,E.delete("dashboard")),p.length===0)delete v[d],E.delete(d),d==="salaryRange"?(delete v.minSalary,delete v.maxSalary,E.delete("minSalary"),E.delete("maxSalary")):d==="experienceRange"&&(delete v.minExperience,delete v.maxExperience,E.delete("minExperience"),E.delete("maxExperience"));else if(d.includes("Skills")||d==="location"||d==="typeofEmployment"||d==="teamSize"||d==="companyName"||d==="department")v[d]=p.join(","),E.set(d,v[d]);else if(d.includes("Range")&&p.length>0){const P=(_=(C=g==null?void 0:g.value)==null?void 0:C.findIndex)==null?void 0:_.call(C,U=>U===p[0]);if(P!==-1){const[U,O]=((T=(A=(b=g==null?void 0:g.value)==null?void 0:b[P])==null?void 0:A.split("-"))==null?void 0:T.map(Number))||[];d==="salaryRange"?(v.minSalary=U,v.maxSalary=O,v[d]=p[0],E.set("minSalary",U.toString()),E.set("maxSalary",O.toString()),E.set(d,p[0])):(v.minExperience
230=U,v.maxExperience=O,v[d]=p[0],E.set("minExperience",U.toString()),E.set("maxExperience",O.toString()),E.set(d,p[0]))}}else if(d==="industry")v.industry=p[0],E.set("industry",p[0]);else if(d==="workMode")v[d]=p.join(","),E.set(d,p.join(","));else if(d==="dashboard"){for(const P of Array.from(E.keys()))P!=="dashboard"&&E.delete(P);r();for(const P in v)P!=="dashboard"&&delete v[P];v[d]=p.join(","),E.set(d,p.join(","))}else{const P=(N=(k=g==null?void 0:g.value)==null?void 0:k.findIndex)==null?void 0:N.call(k,U=>U===p[0]);v[d]=((F=g==null?void 0:g.options)==null?void 0:F[P])||p[0],E.set(d,v[d])}return i(E),v})},resetFilters:()=>{t(),c({}),pl(),i({})},selectedValues:l,setSelectedValues:c}},h6="_updateResumeHeader_1dset_1",p6="_waves_1dset_8",m6="_parallax_1dset_18",x6="_content_1dset_56",g6={updateResumeHeader:h6,waves:p6,parallax:m6,"move-forever":"_move-forever_1dset_1",content:x6},y6=({onFileSelect:e,fileName:t,fileError:r,onUpdateResume:s})=>{const i=R.useRef(null),[l,c]=R.useState(!1),f=g=>{var y;const x=(y=g.target.files)==null?void 0:y[0];x&&e(x)},h=g=>{var y;g.preventDefault(),c(!1);const x=(y=g.dataTransfer.files)==null?void 0:y[0];x&&e(x)},d=g=>{g.preventDefault(),c(!0)},p=()=>c(!1);return S.jsxs("div",{className:`cursor-pointer border-2 border-dashed rounded-lg p-8 text-center transition-colors ${l?"border-blue-500 bg-blue-50":"border-gray-400 bg-gray-100"}`,onDrop:h,onDragOver:d,onDragLeave:p,onClick:()=>{var g;return(g=i.current)==null?void 0:g.click()},children:[S.jsx("p",{className:"text-gray-600",children:"Drag & drop your resume here (PDF only <2mb)"}),S.jsx("p",{className:"text-sm text-gray-400 mt-2",children:"or click to upload"}),t&&S.jsx("p",{className:"text-green-600 mt-2",children:t}),t&&!r&&s&&S.jsx("button",{className:"btn_primary mt-2 text-xs",onClick:g=>{g.stopPropagation(),t&&s()},children:"Update Resume"}),S.jsx("input",{type:"file",accept:"application/pdf",ref:i,onChange:f,className:"hidden"}),r&&S.jsx("p",{className:"text-red-500 mt-2",children:r})]})},v6=({forceComplete:e,messageCount:t,currentMessageIndex:r})=>{const[s,i]=R.useState(0),l=R.useRef(0),c=R.useRef(null),f=R.useRef(null);return R.useEffect(()=>{l.current=s},[s]),R.useEffect(()=>{if(e){c.current&&clearInterval(c.current);const h=(r+1)/t*100,d=Math.max(h,l.current),p=500,g=50,x=p/g,y=l.current,v=d-y;return f.current=window.setInterval(()=>{i(E=>{const C=v/x,_=E+C;return _>=d?(f.current&&clearInterval(f.current),d):_})},g),()=>{f.current&&clearInterval(f.current)}}},[e,r,t]),R.useEffect(()=>{if(!e)return c.current=window.setInterval(()=>{i(g=>{const x=g+.25;return x>=95?(c.current&&clearInterval(c.current),95):x})},100),()=>{c.current&&clearInterval(c.current)}},[e]),R.useEffect(()=>{r>=t-1&&e&&i(100)},[r,t,e]),S.jsxs("div",{className:"water-loader flex flex-col",children:[S.jsx("div",{className:"circle",children:S.jsx("div",{className:"wave",style:{transform:`translateY(${100-s}%)`},children:S.jsx("div",{className:"wave-inner"})})}),S.jsxs("div",{className:"progress-text",children:[Math.floor(s),"% done"]})]})},w6=({isInitial:e=!1,onClose:t,maxDurationMs:r=4e4,checkIntervalMs:s=5e3})=>{const[i,l]=R.useState(0),[c,f]=R.useState([]),[h,d]=R.useState(!1),[p,g]=R.useState(!1),x=R.useRef(0),y=R.useRef(0),v=R.useRef([]),E=R.useRef(null),C=R.useRef(!1),_=R.useRef(!1),b=R.useRef(null),k=e?["Scanning your CV…","Identifying your core skills…","Mapping your work experience…","Analysing your career progression…","Detecting your preferred job functions & departments…","Preparing your profile form"]:["Reviewing your updated details…","Cross-checking your work experience & career progression…","Understanding your location preferences…","Confirming salary expectations & availability…","Analyzing your technical & soft skills…","Finding the most relevant job matches for you…"],N=700,F=50,P=56,U=()=>_.current?2e3:5e3;R.useEffect(()=>{k.length>0&&(f([{id:x.current++,text:k[0],position:0},{id:x.current++,text:k[1],position:1}]),y.current=0,l(0)),E.current=Date.now()},[]);const O=()=>{const B=y.current+1;if(B>=k.length){g(!0),b.current&&window.clearInterval(b.current);return}B+1<k.length&&f(te=>[...te,{id:x.current++,text:k[B+1],position:2}]);const $=window.setTimeout(()=>{f(te=>te.map(re=>({...re,position:re.position-1})))},F),Y=window.setTimeout(()=>{f(te=>te.filter(re=>re.position>=-1))},F+N+20);v.current.push($,Y),y.current=B,l(B)};return R.useEffect(()=>((()=>{b.current&&window.clearInterval(b.current),b.current=window.setInterval(O,U())})(),()=>{b.current&&window.clearInterval(b.current),v.current.forEach($=>window.clearTimeout($)),v.current=[]}
230),[]),R.useEffect(()=>{_.current&&(b.current&&window.clearInterval(b.current),b.current=window.setInterval(O,U()))},[_.current]),R.useEffect(()=>{const B=window.setInterval(async()=>{if(C.current)return;const $=Date.now(),Y=E.current??$,te=$-Y;if(te>r){d(!0),C.current=!0,t();return}te>8e3&&!_.current&&(_.current=!0,d(!0))},s);return()=>window.clearInterval(B)},[r,s,t]),R.useEffect(()=>{if(p&&_.current){const B=window.setTimeout(()=>{t()},2e3);return()=>window.clearTimeout(B)}},[p,t]),S.jsx("div",{className:"fixed inset-0 bg-black/20 backdrop-blur-md flex items-center justify-center z-50",children:S.jsxs("div",{className:"relative bg-white/95 backdrop-blur-sm p-8 rounded-2xl w-[650px] max-w-full shadow-2xl border border-white/20",children:[S.jsxs("div",{className:"flex flex-row gap-6 w-full",children:[S.jsx("div",{className:"w-1/2 flex flex-col items-center justify-center h-60",children:S.jsx(v6,{forceComplete:h,messageCount:k.length,currentMessageIndex:i})}),S.jsx("div",{className:"w-1/2 relative h-60 overflow-hidden",children:c.map(B=>{const $=B.position*P,Y=B.position===0?1:.96,te=B.position===0?1:B.position===-1?.6:B.position===1?.85:B.position===-2?0:1,re=20-Math.abs(B.position);let ce="";return B.position===0?ce="bg-gradient-to-r from-blue-600 to-blue-500 text-white opacity-100 shadow-lg ring-2 ring-blue-400/30":B.position===-1?ce="bg-blue-500/40 text-white/60":B.position===1?ce="bg-blue-500/70 text-white/90 shadow-md":B.position===-2&&(ce="bg-blue-500/40 text-white/60"),S.jsxs("div",{className:`absolute w-[90%] rounded-xl px-3 py-1 border border-white/10 flex items-center justify-between ${ce}`,style:{left:"50%",top:"50%",transform:`translate(-50%, ${$}px) scale(${Y})`,transition:`transform ${N}ms cubic-bezier(.2,.8,.2,1), opacity ${N}ms ease`,opacity:te,zIndex:re},children:[S.jsx("span",{className:"font-medium text-sm",children:B.text}),S.jsx("div",{className:"min-w-8 min-h-8 rounded border bg-white flex items-center justify-center text-center",children:S.jsx(M1,{className:"w-4 h-4 text-blue-500 animate-spin"})})]},B.id)})})]}),S.jsxs("div",{className:"text-center space-y-3 mt-6",children:[S.jsx("div",{className:"flex items-center justify-center gap-2",children:S.jsx("div",{className:"flex gap-1",children:[0,1,2].map(B=>S.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full animate-bounce",style:{animationDelay:`${B*.2}s`}},B))})}),S.jsx("p",{className:"text-gray-600 font-semibold text-base",children:p?"Finalizing...":`${e?"Parsing your CV":"Finding most suitable jobs"}... Please wait.`})]})]})})},wE=({onClose:e})=>{const{userDetails:t}=ui();R.useState(!1),R.useRef(null);const[r,s]=R.useState(!1),[i,l]=R.useState(void 0),[c,f]=R.useState(void 0),[h,d]=R.useState(!1),[p,g]=R.useState(!1),[x,y]=R.useState(null),[v,E]=R.use
230State(0),C=k=>{k.type!=="application/pdf"?(f("Only PDF files are allowed."),l(""),y(null)):k.size>2*1024*1024?(f("File must be less than 2MB."),l(""),y(null)):(f(""),l(k.name),y(k))},_=()=>{const k=setInterval(()=>{E(N=>{const F=N+1;return F>=4?(s(!0),clearInterval(k),setTimeout(()=>{e(),window.location.reload()},2e3),4):F})},1e3)},b=R.useRef(0),A=async()=>{try{b.current===0&&d(!0);const{response:N,error:F}=await zn.get("https://api.worko.ai/user/basic-details",!0,{},!0);if(F)throw F;N&&"isCvExtracted"in N&&N.isCvExtracted===!0?_():b.current<4?(b.current+=1,E(U=>U<4?U+1:U),setTimeout(A,8e3)):(kt.warning("Could not retrieve user details after multiple attempts. Please write to us at [email protected]",ji()),s(!0),g(!0),l(void 0),f(void 0),y(null),E(0),b.current=0)}catch(N){console.error("Error in attemptCheck:",N),kt.error("An error occurred while checking user details",ji())}},T=R.useCallback(async()=>{if(!x){f("Please select a PDF file before uploading.");return}const k=x.type,P={userId:(await vl()).userId,resumeUserFileName:(x==null?void 0:x.name)??"unnamed_resume",resumeFileMimeType:k??"application/pdf"},{response:U,error:O}=await zn.post("/file/gsu2u/USER_RESUME",P,!0);if(O){console.error("Error getting signed URL:",O);return}const B=(U==null?void 0:U.awsS3SignedUrl)||"",$=U==null?void 0:U.awsS3Tag;if(!x||x.size===0||!x.name||!x.type){console.error("Invalid or empty file"),f("Invalid or empty file.");return}const Y=await zn.put(B,x,!1,{awsS3Tag:$,fileType:k},!0);if(Y.error){console.error("Error uploading file:",Y.error);return}const te=ft.getItem(ht.USEREMAIL),re=await zn.patch(`/user/${te}/cv`,{isCvExtracted:!1,resume:U==null?void 0:U.cloudFileName,userCvFileName:`${t==null?void 0:t.fullName}_resume.pdf`.toLowerCase()},!0);if(re.status!==200){console.error("Error patching CV name:",re.error);return}kt.success("CV uploaded successfully",ji()),d(!0),await A()},[x,t==null?void 0:t.fullName]);return S.jsx("div",{className:"overflow-y-hidden fixed inset-0 flex items-center justify-center bg-black/50 w-full backdrop-blur-sm z-50 ",children:S.jsxs("div",{id:h?g6.updateResumeHeader:void 0,className:" max-sm:w-11/12 bg-white rounded-xl overflow-hidden shadow-xl transform transition-transform opacity-1 animate-fadeIn w-full max-sm:min-h-[200px] min-h-[350px] ax-w-full sm:max-w-xl ",children:[h&&S.jsx(w6,{isInitial:!1,onClose:()=>{e(),window.location.reload()}}),!h&&S.jsxs("div",{className:"uploadCvBox w-11/12 mx-auto mt-8 mb-8",children:[S.jsx("h2",{className:"text-xl font-semibold text-blue-300 mb-5",children:"Update Your Resume"}),S.jsx(y6,{fileName:i,fileError:c,onFileSelect:C,onUpdateResume:T}),S.jsxs("small",{className:"flex mt-2 gap-1 text-left text-xs text-gray-500 ",children:[S.jsx(Y0,{className:"text-yellow-500 inline text-xs w-5 "})," Your Cv must be in readable format and should not contain any scanned document"]})]})]})})},zv=({mode:e})=>{const t=e==="JOB"?"No Jobs Found":"No Company Found",r=e==="JOB"?"It looks like there are no job listings matching your profile at the moment. Try adjusting the filters to find more relevant opportunities.":"It looks like there are no companies listings at the moment. Try adjusting the filters to find more relevant companies.";return S.jsxs("div",{className:"relative flex flex-col items-center justify-center min-h-screen w-full text-center bg-white overflow-hidden px-6 md:px-12",children:[S.jsx("div",{className:"absolute top-[-10vh] left-[-5vw] w-40 h-40 md:w-64 md:h-64 opacity-50",children:S.jsx("img",{src:Qc,alt:"Bubble"})}),S.jsx("div",{className:"absolute bottom-[-10vh] left-[-5vw] w-40 h-40 md:w-64 md:h-64 opacity-50",children:S.jsx("img",{src:Qc,alt:"Bubble"})}),S.jsx("div",{className:"absolute top-[30vh] right-[12vw] w-12 h-12 md:w-20 md:h-20 opacity-40",children:S.jsx("img",{src:Qc,alt:"Bubble"})}),S.jsx("div",{className:"absolute bottom-[30vh] left-[15vw] w-10 h-10 md:w-15 md:h-15 opacity-30",children:S.jsx("img",{src:Qc,alt:"Bubble"})}),S.jsx("div",{className:"absolute top-[5vh] left-[5vw] w-32 h-32 md:w-40 md:h-40 bg-blue-100 rounded-full opacity-30 blur-3xl"}),S.jsx("div",{className:"absolute top-[10vh] right-[5vw] w-24 h-24 md:w-32 md:h-32 bg-blue-200 rounded-full opacity-30 blur-2xl"}
230),S.jsx("div",{className:"absolute bottom-[10vh] left-[25vw] w-20 h-20 md:w-24 md:h-24 bg-blue-300 rounded-full opacity-20 blur-2xl"}),S.jsx("div",{className:"absolute top-[18vh] right-[10vw] w-10 h-10 md:w-16 md:h-16 opacity-50",children:S.jsx("img",{src:Ag,alt:"Bubble"})}),S.jsx("div",{className:"absolute bottom-[20vh] left-[10vw] w-10 h-10 md:w-16 md:h-16 opacity-50",children:S.jsx("img",{src:Ag,alt:"Bubble"})}),S.jsx(c_,{className:"w-16 h-16 md:w-24 md:h-24 text-blue-500 mb-4 md:mb-6 relative z-10"}),S.jsxs("div",{className:"relative z-10 max-w-lg px-4",children:[S.jsx("h2",{className:"text-xl md:text-2xl font-semibold text-gray-800",children:t}),S.jsx("p",{className:"mt-2 text-gray-600",children:r})]})]})},EE=({type:e="job"})=>{const t=e==="job"?9:3;return S.jsx("div",{className:"w-full animate-pulse bg-white",children:S.jsx("div",{className:"flex flex-col gap-3",children:Array(t).fill(0).map((r,s)=>S.jsx("div",{className:"h-12 bg-gray-100 rounded-lg w-full"},s))})})},E6=()=>S.jsx(EE,{type:"job"}),fN=()=>S.jsx(EE,{type:"referral"}),SE=()=>S.jsx("div",{className:"w-full bg-white rounded-[20px] md:rounded-[15px] border border-black/5 shadow-[0px_4px_16px_rgba(0,0,0,0.05)] md:shadow-[0px_3px_12px_rgba(0,0,0,0.05)] p-6 md:p-4 animate-pulse",children:S.jsxs("div",{className:"flex flex-col gap-4",children:[S.jsxs("div",{className:"flex flex-col md:flex-row items-start justify-between gap-4",children:[S.jsxs("div",{className:"flex flex-col w-full md:max-w-[70%] gap-2",children:[S.jsxs("div",{className:"flex w-full gap-4",children:[S.jsx("div",{className:"flex-shrink-0 w-[70px] h-[70px] rounded-[6.75px] sm:rounded-[9px] flex items-center justify-center border overflow-hidden bg-gray-200"}),S.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[S.jsx("div",{className:"h-6 bg-gray-200 rounded-md w-3/4 mb-1"}),S.jsx("div",{className:"h-4 bg-gray-200 rounded-md w-1/2 mb-1"}),S.jsx("div",{className:"h-5 bg-gray-200 rounded-md w-1/4"})]})]}),S.jsxs("div",{className:"flex flex-row justify-between mt-2 md:mt-1",children:[S.jsxs("div",{className:"flex flex-wrap gap-1 overflow-hidden",children:[S.jsx("div",{className:"px-3 py-1 max-h-[25px] bg-gray-200 rounded-full w-24"}),S.jsx("div",{className:"px-3 py-1 max-h-[25px] bg-gray-200 rounded-full w-36"}),S.jsx("div",{className:"px-3 py-1 max-h-[25px] bg-gray-200 rounded-full w-32"})]}),S.jsxs("div",{className:"md:hidden flex flex-col items-center justify-center flex-shrink-0 rounded-xl w-[90px] h-[90px] sm:w-[122px] sm:h-[120px] bg-gray-200 overflow-hidden p-3 sm:p-5",children:[S.jsx("div",{className:"w-[75%] h-[75%] sm:w-[85%] sm:h-[85%] flex items-center justify-center rounded-full bg-gray-300"}),S.jsx("div",{className:"h-4 bg-gray-300 rounded-md w-full mt-1"})]})]})]}),S.jsxs("div",{className:"hidden md:flex py-4 box-content ml-auto rounded-xl w-[91.5px] h-[75px] sm:w-[122px] sm:h-[100px] flex-shrink-0 bg-gray-200 overflow-hidden p-3 sm:p-5 flex-col items-center justify-center scale-90",children:[S.jsx("div",{className:"w-full pt-2 h-full flex items-center justify-center sm:scale-90",children:S.jsx("div",{className:"h-16 w-16 rounded-full bg-gray-300"})}),S.jsx("div",{className:"h-4 bg-gray-300 rounded-md w-3/4 mt-1"})]})]}),S.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4",children:[S.jsxs("div",{className:"flex flex-wrap gap-6 md:gap-4 text-xs md:text-[12px]",children:[S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsx("div",{className:"h-4 w-4 bg-gray-200 rounded-full"}),S.jsx("div",{className:"h-4 bg-gray-200 rounded-md w-24"})]}),S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsx("div",{className:"h-4 w-4 bg-gray-200 rounded-full"}),S.jsx("div",{className:"h-4 bg-gray-200 rounded-md w-20"})]})]}),S.jsx("div",{className:"flex gap-2 sm:justify-end",children:S.jsx("div",{className:"flex-1 md:flex-initial md:w-[140px] h-9 bg-gray-200 rounded-lg"})})]})]})}),S6=({count:e=3})=>S.jsx("div",{className:"w-full space-y-4",children:Array(e).fill(0).map((t,r)=>S.jsx(SE,{},r))}),CE=()=>S.jsx(S.Fragment,{children:S.jsxs("div",{className:"h-fit bg-white p-4 w-full rounded-2xl border animate-pulse",children:[S.jsxs("div",{className:"flex items-start justify-start gap-2 md:gap-5 mb-2",children:[S.jsx("div",{className:"relative flex-shrink-0 min-w-[60px] w-[60px] h-[60px] rounded-[6.75px] sm:rou
230nded-[9px] flex items-center justify-center border overflow-hidden bg-gray-200"}),S.jsx("div",{className:"flex flex-col items-start justify-between w-[70%]",children:S.jsx("div",{className:"h-6 bg-gray-200 rounded-md w-3/4 mb-0"})})]}),S.jsxs("div",{className:"flex justify-center flex-col gap-1 px-1 text-gray-700",children:[S.jsxs("div",{className:"flex justify-between gap-2",children:[S.jsxs("div",{className:"flex justify-start items-end gap-2 text-black md:my-1",children:[S.jsx("div",{className:"h-4 w-4 bg-gray-200 rounded"}),S.jsx("div",{className:"h-4 bg-gray-200 rounded-md w-24"})]}),S.jsx("div",{className:"scale-90 h-8 bg-gray-200 rounded-md w-[150px]"})]}),S.jsxs("div",{className:"flex justify-between gap-2",children:[S.jsxs("div",{className:"flex justify-start items-start gap-2 md:my-1 relative top-2",children:[S.jsx("div",{className:"h-4 w-4 bg-gray-200 rounded"}),S.jsx("div",{className:"h-4 bg-gray-200 rounded-md w-20"})]}),S.jsx("div",{className:"scale-90 h-8 bg-gray-200 rounded-md w-[150px]"})]})]})]})}),C6=({count:e=12})=>S.jsx(S.Fragment,{children:Array(e).fill(0).map((t,r)=>S.jsx("div",{className:"min-w-[310px] flex justify-center",children:S.jsx(CE,{})},r))}),hN=()=>S.jsx("div",{className:"w-full",children:S.jsxs("div",{className:"p-3 sm:p-4 lg:p-6 lg:!pr-0 rounded-lg",children:[S.jsx("div",{className:"h-6 w-32 bg-gray-200 rounded-md mb-4 sm:mb-6 animate-pulse"}),S.jsx("div",{className:"space-y-3 sm:space-y-4",children:[...Array(6)].map((e,t)=>S.jsxs("div",{className:"w-full bg-white border border-black/5 rounded-xl shadow-md p-4 flex gap-4 items-center animate-pulse",children:[S.jsx("div",{className:"w-12 h-12 sm:w-14 sm:h-14 bg-gray-200 rounded-md flex-shrink-0"}),S.jsxs("div",{className:"flex-1 space-y-2",children:[S.jsx("div",{className:"h-4 w-2/3 bg-gray-200 rounded"}),S.jsx("div",{className:"h-3 w-1/2 bg-gray-200 rounded"}),S.jsx("div",{className:"h-3 w-1/3 bg-gray-200 rounded"})]}),S.jsx("div",{className:"hidden sm:block w-20 h-8 bg-gray-200 rounded-md"})]},t))})]})}),b6=({onFilterClick:e})=>{const{jobFilterForRender:t=[]}=pd(),{selectedValues:r}=vE();return t.length===0?null:S.jsx("div",{className:"w-full px-3 md:hidden",children:S.jsx("div",{className:"flex gap-2 overflow-x-auto no-scrl-web py-1",children:t.map(s=>{const i=(r[s.paramKey]||[]).length;return S.jsxs("button",{type:"button",onClick:()=>e(s.paramKey),className:`relative flex-shrink-0 px-3 py-2 rounded-full border text-xs font-medium whitespace-nowrap transition-all ${i>0?"bg-blue-50 border-blue-300 text-blue-700":"bg-white border-gray-300 text-gray-700"}`,children:[S.jsx("span",{className:"pr-4",children:s.placeholder}),i>0&&S.jsx("span",{className:"absolute -top-1 -right-1 bg-blue-600 text-white text-[10px] font-bold rounded-full w-4 h-4 flex items-center justify-center",children:i})]},s.paramKey)})})})},_6=R.lazy(()=>on(()=>import("./JobCard-d9NVG70W.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),A6=R.lazy(()=>on(()=>import("./JobFilterPanel-CuyO2-Hu.js"),[])),k6=()=>{const e=bn(),[t,r]=R.useState(!1),[s,i]=R.useState(null),[l,c]=R.useState(!1),{isLoggedIn:f}=ui(),{setJobFilters:h,companyJobData:d,setSearchText:p,handleSearch:g,searchText:x,resetSearch:y,companyPageMode:v,isLoading:E,companyRefData:C,isError:_,hasNextPage:b,isFetchingNextPage:A,fetchNextPage:T,isProfileInclomplete:k,setIsProfileInclomplete:N,setS3VectorPageNumber:F,isProfileIncompWithoutCV:P,setIsProfileIncompWithoutCV:U}=pd(),O=()=>r(!t),B=R.useRef(null),{handleFilterChange:$}=vE(),{jobFilterForRender:Y}=pd(),[te,re]=R.useState(!1),[ce,ue]=R.useState(!1),{ref:W}=d6({triggerOnce:!1,onChange:L=>{L&&b&&!A&&T()}});R.useEffect(()=>{const L=()=>{ue(window.scrollY>100)};return window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)},[]),R.useEffect(()=>{B.current&&(B.current.value=""),y()},[v]),R.useEffect(()=>{const K=new URLSearchParams(window.location.search).get("searchText");K&&(p(K),h(ve=>({...ve,searchText:K})),B.current&&(B.current.value=K))},[]),R.useEffect(()=>{const L=new URLSearchParams(window.location.search);x?L.set("searchText",x):L.delete("searchText");const K=`${window.location.pathname}?${L.toString()}`;window.history.replaceState({},"",K)},[x]),R.useEffect(()=>{const K=new URLSearchParams(e.search).get("dashboard")==="USER";K&&B.current&&(B.current.value=""),re(K)},[e]);const ne=L=>{i(L),r(!0)},oe=()=>{const L=Y[Y.length-1];$(L.paramKey,L.value,L)},D=[m_,x_,g_,y_],z=E||!d&&!_;return S.jsxs("div",{className:`min-h-[100vh] mb-[50px] grid rounded-lg gap-2 sm:max-w-[1380px] mx-auto ${lu.Company_Content}`,children:[S.jsx("div",{className:"min-h-[50px] px-3 sm-px-0 p-1 flex justify-center gap-2 sm:max-w-full",children:S.jsxs("div",{className:"flex-1 md:max-w-[1000px] relative Search_content flex flex-row flex-nowrap",children:[S.jsxs("div",{className:"w-full relative display flex",children:[S.jsx("i",{className:"fa-solid fa-magnifying-glass absolute z-10 top-3 left-3 text-gray-300"}),S.jsx("input",{type:"text",onKeyDown:L=>{L.key==="Enter"&&(L.preventDefault(),g())},ref:B,onChange:L=>p(L.target.value),className:"text-gray-500 relative outline-none w-full text-xs border rounded-s-lg px-3 pl-10 py-2 bg-[#FAFAFA]",placeholder:v===Rn.JOB?"Search for Job":"Search for Company"}),x&&S.jsx("button",{onClick:()=>{y(),B.current&&(B.current.value="")},className:"scale-50 active:scale-[45%] absolute right-[5%] h-full w-fit roun
230ded-full",children:S.jsx(j1,{className:"p-1 text-white bg-blue-600 rounded-full w-full h-full relative"})})]}),S.jsxs("button",{onClick:g,className:"w-[80px] sm:min-w-max text-xs sm:text-base md:text-lg bg-gradient-to-b from-sky-400 to-blue-600 rounded-e-lg px-3 py-2 text-white flex justify-center items-center",children:[S.jsx("i",{className:"fa-solid fa-magnifying-glass sm:hidden"}),S.jsx("span",{className:"hidden sm:inline text-sm",children:v===Rn.JOB?"Search Job":"Search Company"})]})]})}),S.jsxs("div",{className:"flex items-center justify-between px-3 md:px-0 max-w-[90%] ",children:[!ce&&S.jsx("button",{onClick:O,className:"outline-none text-xs sm:text-base sm:scale-100 border-[1px] border-gray-400 px-3 py-2 rounded-lg md:hidden font-semibold text-gray-600",children:S.jsx("i",{className:"fa-solid fa-filter"})}),S.jsx(b6,{onFilterClick:ne})]}),ce&&S.jsx("button",{onClick:O,className:"fixed bottom-24 right-6 z-50 md:hidden bg-purple-600 text-white rounded-full shadow-lg w-14 h-14 flex items-center justify-center animate-fade-in",style:{boxShadow:"0 4px 16px rgba(0,0,0,0.15)"},"aria-label":"Open Filters",children:S.jsx(e_,{className:"w-7 h-7"})}),S.jsxs("div",{className:`relative w-full min-h-[100vh] grid grid-cols-1 md:grid-cols-[minmax(200px,300px)_1fr] gap-5 ${lu.Company_Content_Jobs}`,children:[t&&S.jsx("div",{className:"fixed top-0 left-0 w-full h-full bg-black bg-opacity-40 z-40 md:hidden",onClick:O}),S.jsx("div",{className:`fixed top-0 left-0 w-full max-w-[300px] md:sticky md:top-100 md:w-auto px-5 transition-all duration-500 ease-in-out bg-white z-50 231 ${t?"translate-x-0":"-translate-x-full"} md:translate-x-0 ${lu.Company_Content_Filters}`,style:{height:"100vh"},children:S.jsx(R.Suspense,{fallback:S.jsx(E6,{}),children:S.jsx(A6,{toggleFilters:O,companyPageMode:v,autoOpenFilterKey:s})})}),v===Rn.JOB?S.jsx("div",{className:"w-full px-2 pt-4 sm:px-4 bg-[#F2F4F5] sm:min-w-[525px] rounded-2xl flex flex-col items-center justify-start sm:pb-6 flex-wrap gap-2 mx-auto min-h-[350px]",children:z?S.jsx(S6,{count:5}):d&&d.length>0?S.jsxs(S.Fragment,{children:[d.flatMap((L,K)=>{var xt,Ge,St,bt,Yt,Rt,Bt,Je,Ht;const ve=L!=null&&L.externalJobId?L.companyName:(xt=L.companyDetails)==null?void 0:xt.name,Ee=(Ge=L==null?void 0:L.location)==null?void 0:Ge.fullLocation,we=Array.isArray(Ee)&&Ee.length>0?Ee.join(", "):"Not Disclosed",se=(St=L==null?void 0:L.companyDetails)!=null&&St.logo?`https://worko.ai/images/${(bt=L==null?void 0:L.companyDetails)==null?void 0:bt.logo}`:(Yt=L==null?void 0:L.companyDetails)==null?void 0:Yt.logoUrl,Ce=L!=null&&L.externalJobId?L==null?void 0:L.companyLogoUrl:se,Se=Ce&&Ce.trim()!=="",He=S.jsx(_6,{job:{isLogoAvailable:Se,companyLogo:Ce,title:L.jobTitle,department:L.department,salary:jv((Rt=L.salaryRange)==null?void 0:Rt.min,(Bt=L.salaryRange)==null?void 0:Bt.max,"salary"),location:we||"Not Disclosed",employmentType:L.typeofEmployment||"Not Disclosed",createdAt:L.externalJobId?L.jobPostedDate:L.createdAt,matchPercentage:L.matchingScore!==void 0?L.matchingScore:-1,status:L.applyStatus||"NOT_APPLIED",jobId:L.id,isExternalJob:L.externalJobId,companyName:ve,jobdescription:L.jobDescription,aboutcompany:L.companyDetails,jobStatus:L.status,badJob:L.badJob,FullJob:L,companyId:L.companyId,jobUrl:L.jobUrl,showSalary:(L==null?void 0:L.displaySalaryRange)??!0,experience:jv(((Je=L.experienceRange)==null?void 0:Je.min)??0,((Ht=L.experienceRange)==null?void 0:Ht.max)??0,"experience"),workmode:(L==null?void 0:L.workMode)||"Not Disclosed"}},L.id||K);if((K+1)%8===0&&f){const Oe=Math.floor(K/8)%D.length,Xe=D[Oe];return[He,S.jsx("img",{src:Xe,alt:Xe,id:Xe,onClick:oe,"data-tooltip-id":"my-tooltip","data-tooltip-content":te?"You are already viewing jobs posted by Worko":"Click to view jobs posted by Worko and share with your friends to earn rewards!",className:`${te?"hidden":"block"} w-full rounded-[20px] md:rounded-[15px] md:h-[250px] cursor-pointer active:scale-95`},`promo-${K}`)]}return[He]}),S.jsx("div",{className:"w-full min-h-20 flex gap-5 items-center justify-center",children:A?S.jsx(SE,{}):b?S.jsx("div",{className:"NextPage btn_secondary cursor-pointer animate-pulse active:scale-95",onClick:()=>{F(L=>L+1),T()},children:"Find More Jobs"}):d.length>0?S.jsx("p",{className:"text-lg font-medium text-gray-500",children:"Looks like we hit a dead end. Try changing the filters and searching again."}):null})]}):_?S.jsx("p",{className:"text-2xl relative font-medium text-gray-500 top-[43%]",children:'"Something went wrong."'}):S.jsx(zv,{mode:"JOB"})}):S.jsx("div",{className:`relative grid grid-rows-[min-content] grid-cols-[repeat(auto-fit,_minmax(300px,_1fr))] gap-4 w-full px-2 sm:px-3 md:py-6 rounded-2xl mx-auto
231sm:py-2 min-h-[350px] pt-4 bg-[#F2F4F5] ${lu.Company_Content_Companies}`,children:E?S.jsx(C6,{count:12}):C&&C.length>0?S.jsxs(S.Fragment,{children:[C.map((L,K)=>S.jsx("div",{className:"min-w-[310px] flex justify-center",children:S.jsx(f6,{companyData:L})},L.SK||K)),S.jsx("div",{ref:W,className:" min-w-[310px] flex items-center justify-center",children:A&&S.jsx(CE,{})})]}):_?S.jsx("p",{className:"text-2xl font-medium text-gray-500 w-full absolute h-full flex items-center justify-center mx-auto",children:'"Something went wrong."'}):S.jsx(zv,{mode:"REFERRAL"})})]}),l&&S.jsx(wE,{onClose:()=>c(!1)}),k&&(P?S.jsx(wl,{type:"error",size:"lg",heading:{type:"error",message:"Profile Incomplete"},message:"It looks like your profile is incomplete. Please click the button below to update your resume.",onClose:()=>{},showCloseButton:!1,buttons:[{label:"Update Resume",action:()=>{N(!1),c(!0)},type:"primary"}]}):S.jsx(wl,{type:"error",size:"lg",heading:{type:"error",message:"Profile Incomplete"},message:"It looks like your profile is incomplete. Please click the button below to update your profile.",onClose:()=>{},showCloseButton:!1,buttons:[{label:"Update Profile",action:()=>{N(!1),U(!1),window.location.href="/post-signup-form"},type:"primary"}]}))]})};function bE(e){const t=Hw(),r=encodeURIComponent(window.location.href);t(`/v1/candidate/profile?returnUrl=${r}`)}const pN=Object.freeze(Object.defineProperty({__proto__:null,default:k6,handleEditProfileRedirection:bE},Symbol.toStringTag,{value:"Module"})),U0=({title:e,description:t,keywords:r,canonicalUrl:s,ogTitle:i,ogDescription:l,ogImage:c,ogType:f="website",ogUrl:h,twitterCard:d="summary_large_image",twitterTitle:p,twitterDescription:g,twitterImage:x,robots:y,noindex:v=!1,nofollow:E=!1,schemaJsonLd:C})=>{const _=bn(),b="https://worko.ai",A="Worko - Find Your Dream Job | Job Referrals & Opportunities",T="Discover top job opportunities and get referred to leading companies. Join Worko to access exclusive job openings and accelerate your career.",k=`${b}/logo-text.png`,N=e||A,F=t||T,P=s||`${b}${_.pathname}`,U=h||P,O=i||N,B=l||F,$=c||k,Y=p||N,te=g||F,re=x||$,ce=y||(v?E?"noindex, nofollow":"noindex, follow":E?"index, nofollow":"index, follow");return R.useEffect(()=>{document.title=N;const ue=(oe,D,z="name")=>{let L=document.querySelector(`meta[${z}='${oe}']`);L||(L=document.createElement("meta"),L.setAttribute(z,oe),document.head.appendChild(L)),L.setAttribute("content",D)},W=(oe,D)=>{ue(oe,D,"property")};ue("description",F),r&&ue("keywords",r),ue("robots",ce),W("og:title",O),W("og:description",B),W("og:image",$),W("og:type",f),W("og:url",U),W("og:site_name","Worko"),ue("twitter:card",d),ue("twitter:title",Y),ue("twitter:description",te),ue("twitter:image",re);let ne=document.querySelector("link[rel='canonical']");if(ne||(ne=document.createElement("link"),ne.setAttribute("rel","canonical"),document.head.appendChild(ne)),ne.setAttribute("href",P),C){document.querySelectorAll('script[type="application/ld+json"]').forEach(z=>{const L=z.textContent||"";try{const K=JSON.parse(L);(K["@context"]||K["@graph"])&&z.remove()}catch{z.remove()}});const D=document.createElement("script");D.type="application/ld+json",D.textContent=JSON.stringify(C,null,0),document.head.appendChild(D)}},[N,F,r,P,O,B,$,f,U,d,Y,te,re,ce,C]),null},R6=(e,t)=>{var C,_,b,A,T,k,N,F,P,U,O;const r=e.companyName||((C=e.companyDetails)==null?void 0:C.name)||"Company";(b=(_=e.location)==null?void 0:_.fullLocation)!=null&&b.join(", ");const s=e.jobTitle||"Job Title",l=(e.jobDescription||e.htmlJobDescription||"").replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim().substring(0,5e3),c=`${t}/jobs/${e.id}`,f=e.jobPostedDate||e.createdAt||e.jobCreatedDate||new Date().toISOString(),h=e.updatedAt?new Date(new Date(e.updatedAt).getTime()+30*24*60*60*1e3).toISOString():new Date(new Date(f).getTime()+30*24*60*60*1e3).toISOString(),d=e.typeOfEmployment||e.typeofEmployment||"FULL_TIME",p=e.salaryRange?{"@type":"MonetaryAmount",currency:"INR",value:{"@type":"QuantitativeValue",minValue:e.salaryRange.min,maxValue:e.salaryRange.max,unitText:"MONTH"}}:void 0,g=e.experienceRange?{"@type":"OccupationalExperienceRequirements",monthsOfExperience:{"@type":"QuantitativeValue",minValue:e.experienceRange.min*12,maxValue:e.experienceRange.max*12,unitText:"MONTH"}}:void 0,x=[...e.coreSkills||[],...e.technicalSkills||[],...e.softSkills||[]].filter(
231Boolean),y={"@type":"Place",address:{"@type":"PostalAddress",addressLocality:((T=(A=e.location)==null?void 0:A.city)==null?void 0:T.join(", "))||"",addressRegion:((N=(k=e.location)==null?void 0:k.state)==null?void 0:N.join(", "))||"",addressCountry:((P=(F=e.location)==null?void 0:F.country)==null?void 0:P.join(", "))||"IN"}},v={"@type":"Organization",name:r,sameAs:((U=e.companyDetails)==null?void 0:U.linkedIn)||e.linkedIn||"",logo:((O=e.companyDetails)==null?void 0:O.logoUrl)||e.companyLogoUrl||""},E={"@context":"https://schema.org","@type":"JobPosting",title:s,description:l,identifier:{"@type":"PropertyValue",name:r,value:e.id},datePosted:f,validThrough:h,employmentType:d,hiringOrganization:v,jobLocation:y,baseSalary:p,jobLocationType:e.workMode==="REMOTE"?"TELECOMMUTE":"ONSITE"};return g&&(E.experienceRequirements=g),x.length>0&&(E.skills=x.join(", ")),e.department&&(E.industry=e.department),e.numOfOpenings&&(E.numberOfOpenings=e.numOfOpenings),e.workMode&&(E.workMode=e.workMode),E.applicationContact={"@type":"ContactPoint",contactType:"HR",email:"[email protected]",url:c},E},I6=e=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,r)=>({"@type":"ListItem",position:r+1,name:t.name,item:t.url}))}),er=e=>e?e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,""):"",T6=({title:e,company:t,location:r,experience:s,jobId:i})=>{const l=er(e),c=er(t),f=er(r),h=s==="0 Years"?"":er(s),d=[l,c,f,h].filter(Boolean).join("-"),p=100;return`/jobs/${d.length>p?d.substring(0,p).replace(/-+$/,""):d}/${i}`},$v=e=>{var i,l,c;const t=e.companyName||((i=e.companyDetails)==null?void 0:i.name)||"company",r=((c=(l=e.location)==null?void 0:l.fullLocation)==null?void 0:c.join("-"))||"location",s=e.experienceRange?`${e.experienceRange.min}-${e.experienceRange.max}-years`:"";return T6({title:e.jobTitle,company:t,location:r,experience:s,jobId:e.id})},P6=e=>{var p,g,x;const t=e.companyName||((p=e.companyDetails)==null?void 0:p.name)||"company",r=((x=(g=e.location)==null?void 0:g.fullLocation)==null?void 0:x.join("-"))||"location",s=e.experienceRange?`${e.experienceRange.min}-${e.experienceRange.max}-years`:"",i=er(e.jobTitle),l=er(t),c=er(r),f=er(s),h=[i,l,c,f].filter(Boolean).join("-"),d=100;return h.length>d?h.substring(0,d).replace(/-+$/,""):h},N6=e=>{var p,g,x;const t=e.companyName||((p=e.companyDetails)==null?void 0:p.name)||"company",r=((x=(g=e.location)==null?void 0:g.fullLocation)==null?void 0:x.join("-"))||"location",s=e.experienceRange?`${e.experienceRange.min}-${e.experienceRange.max}-years`:"experience",i=er(e.jobTitle),l=er(t),c=er(r),f=er(s),h=[i,l,c,f].filter(Boolean).join("-"),d=100;return h.length>d?h.substring(0,d).replace(/-+$/,""):h},D6=(e,t)=>{var c;const r=N6(t);if(e===r)return!0;const s=e.toLowerCase(),i=er(t.jobTitle).toLowerCase(),l=er(t.companyName||((c=t.companyDetails)==null?void 0:c.name)||"").toLowerCase();return s.includes(i)&&s.includes(l)},Hv=e=>{var s;if(!e||typeof e!="object")return;const t=e,r=t.companyName||((s=t.companyDetails)==null?void 0:s.name)||t.company||"";return{...t,jobTitle:t.jobTitle||t.title||"",jobDescription:t.jobDescription||t.jobdescription||"",companyName:r}},F6=e=>{var t;return!!(e!=null&&e.companyName||(t=e==null?void 0:e.companyDetails)!=null&&t.name)},O6=pt.lazy(()=>on(()=>import("./index-Bycpffo6.js"),__vite__mapDeps([9,10,3,2,4,1,5,6,7,8,11]))),B6=pt.lazy(()=>on(()=>import("./index-CFUm8qp4.js"),__vite__mapDeps([12,10,6,7,8,13]))),L6=async()=>{const{response:e,error:t}=await zn.get("https://api.worko.ai/user/basic-details",!0,{},!0);if(t)throw t;return e},Wv=()=>{var dt,fn,cn,hn,gt,Tt;const{PendingApply:e,setPendingApply:t,isLoggedIn:r,userDetails:s}=ui(),i=Mo(),l=bn(),c=_C(),f=c.jobid,h=c.slug,d=c.companyName,[p,g]=R.useState(!1),[x,y]=R.useState(!1),[v,E]=R.use
231State(0),[C,_]=R.useState("zeroReferral"),[b,A]=R.useState(!1),[T,k]=R.useState(0),[N,F]=R.useState(!1),[P,U]=R.useState(),[O,B]=R.useState(!1),[$,Y]=R.useState(()=>{var Me;const je=Hv((Me=l.state)==null?void 0:Me.FullJob);return console.debug("Initializing jobDataState from location state:",je),je&&window.history.replaceState({},document.title),je}),[te,re]=R.useState(!1),[ce,ue]=R.useState(!1),[W,ne]=R.useState(null);R.useState(-1);const[oe,D]=R.useState(!1),[z,L]=R.useState(!1),[K,ve]=R.useState({id:"",userId:"",jobId:"",jdMatchErrorCode:0,jdMatchErrorDesc:"",matchingScore:-1,scoreDetails:{coreSkills:-1,experience:-1,roleAndResponsibilities:-1,softSkills:-1},createdAt:"",updatedAt:"",isTriggered:!1}),Ee=R.useRef(!1),we="https://jobs.worko.ai",{data:se,isSuccess:Ce}=Bv({queryKey:["userBasicDetails"],queryFn:L6,refetchOnWindowFocus:!1}),Se=f||(h?St(h):null),{data:He,isLoading:xt,error:Ge}=Bv({queryKey:["jobData",Se],queryFn:async()=>{var tt;if(!Se)throw new Error("No job identifier provided");const{response:je,error:Me,status:rt}=await zn.get(`${we}/job/${Se}`,!0,{},!0);if(rt===410||Me&&((tt=Me.message)!=null&&tt.includes("expired")))throw{status:410,message:"Job has expired"};if(Me)throw new Error(Me.message);if(!je)throw new Error("Job not found");if(h&&je){const nt=P6(je);if(h!==nt&&!D6(h,je)){const Ct=$v(je);return i(Ct,{replace:!0}),je}}return je},enabled:!!Se&&(!$||!F6($)),retry:0});function St(je){const Me=je.match(/\/(\d+)$/);return Me?Me[1]:null}async function bt(je){var Me;try{const{response:rt,error:tt}=await zn.get(`${we}/job/${je==null?void 0:je.id}/s3-vector`,!0,{coreSkills:((Me=se==null?void 0:se.coreSkills)==null?void 0:Me.map(nt=>nt.skillName).join(","))||"",YOE:(se==null?void 0:se.YOE)||0},!0);if(tt)throw tt;rt&&je&&(je.initialMatchingScoreDetails=rt.initialMatchingScoreDetails)}catch(rt){console.error("Error fetching matching score:",rt)}}const Yt=async(je=0)=>{if(!(!r||!$))try{const Me=ft.getItem(ht.USEREMAIL)||s.email,{response:rt,status:tt}=await zn.get(`${we}/${$!=null&&$.externalJobId?"external-":""}job-application/${f}/${Me}`,!0,{},!0);D(tt!==404)}catch(Me){console.error("Error checking application status:",Me)}};R.useEffect(()=>{if(!Ce||!se)return;(async()=>{var Ct,le;(Ct=se==null?void 0:se.candidateExperience)==null||Ct.designation;const Me=(le=se==null?void 0:se.coreSkills)==null?void 0:le.map(M=>M.skillName),rt=se==null?void 0:se.YOE,tt=se&&"CTC"in se&&(se==null?void 0:se.isCvExtracted)===!0&&((Me==null?void 0:Me.length)>0||rt),nt=$??He??null;if(nt&&!nt.initialMatchingScoreDetails&&await bt($??He??{}
231),tt){if((se==null?void 0:se.isCvExtracted)===!0&&nt){const{totalScore:V,coreSkillsScore:Z,softSkillsScore:Q,experienceScore:ie,responsibilitiesScore:ae}=gE(nt,se);ve(de=>({...de,id:(de==null?void 0:de.id)||"",userId:(de==null?void 0:de.userId)||"",jobId:(de==null?void 0:de.jobId)||"",jdMatchErrorCode:(de==null?void 0:de.jdMatchErrorCode)||0,jdMatchErrorDesc:(de==null?void 0:de.jdMatchErrorDesc)||"",matchingScore:V,scoreDetails:{coreSkills:Z,experience:ie,roleAndResponsibilities:ae,softSkills:Q},createdAt:(de==null?void 0:de.createdAt)||"",updatedAt:(de==null?void 0:de.updatedAt)||"",isTriggered:(de==null?void 0:de.isTriggered)||!1}))}L(!0)}else{if(!Me||Me.length===0||!rt||!("CTC"in se)){const M={type:"referral",url:window.location.href,data:null};t(M),ft.setItem(ht.CONTINUEPENDINGPRESIGNEDPROCESS,M),localStorage.setItem("continueReferralRequestData",JSON.stringify(M)),B(!0),Rt("NoBasicDetailsWithoutCv"),L(!1);return}B(!0),Rt("NoBasicDetails"),L(!1)}})()},[Ce,se,$]),R.useEffect(()=>{var Me;const je=Hv((Me=l.state)==null?void 0:Me.FullJob);je&&(Y(je),window.history.replaceState({},document.title),D(!1))},[l,f]),R.useEffect(()=>{$&&Yt()},[$,r]),R.useEffect(()=>{He&&!He.externalJobId?(async()=>{try{const{response:Me,error:rt}=await zn.get(`/company/${He.companyId}`,!0);if(rt)throw new Error(rt.message);Me&&Y({...He,companyDetails:Me[0]})}catch(Me){console.error("Error fetching company details:",Me)}})():He&&Y(He)},[He]),R.useEffect(()=>{if(Ee.current||!r||!z||!($||He)||!(e||ft.getItem(ht.CONTINUEPENDINGPRESIGNEDPROCESS)||(()=>{const tt=localStorage.getItem("continueReferralRequestData");return tt?JSON.parse(tt):null})()))return;const rt=()=>{t(null),ft.setItem(ht.CONTINUEPENDINGPRESIGNEDPROCESS,null),localStorage.removeItem("continueReferralRequestData")};Ee.current=!0,B(!0),ne({type:"info",heading:{message:"Resume your application?",type:"info"},message:"You were about to apply for this job. Do you want to continue now?",buttons:[{label:"Not now",type:"danger",action:()=>{rt(),ne(null),B(!1)}},{label:"Yes, apply",type:"primary",action:()=>{rt(),ne(null),B(!1),Je()}}]})},[e,r,z,$,He]);const Rt=je=>{switch(je){case"isExternalJobApplied":ne({type:"info",heading:{message:"Have you applied for this job?",type:"info"},size:"md",buttons:[{label:"No",type:"danger",action:()=>{B(!1),ne(null)}},{label:"Yes",action:()=>{Bt(),ne(null),B(!1)},type:"primary"}]});break;case"expired_in":ne({type:"error",heading:{message:"Invite Expired",type:"error"},message:"The invite you are trying to access has expired. Please contact the company for a new invite.",buttons:[{label:"Back to Home",action:()=>null}]});break;case"application_success":ne({type:"success",heading:{message:"Application Submitted",type:"success"},message:"Your job application has been successfully submitted!",buttons:[{label:"OK",type:"primary",action:()=>{ne(null)}}]});break;case"redundant":ne({type:"error",heading:{message:"Already submitted",type:"error"},message:"You have already applied for this job. Check your dashboard for reference.",buttons:[{label:"OK",type:"primary",action:()=>{ne(null)}}]});break;case"application_failure":ne({type:"error",heading:{message:"Application Failed",type:"error"},message:"We couldn't submit your application. Please try again later.",buttons:[{label:"OK",type:"danger",action:()=>{ne(null)}}]});break;case"badScore":ne({type:"error",heading:{message:"Failed to apply",type:"error"},message:"It looks like you've managed to submit an application before the matching scores were fully processed. While your score generation is in process, please note that bypassing standard checks won't affect the evaluation process. Matching insights will be available shortly. Kindly try again in a few minutes.",buttons:[{label:"OK",type:"danger",action:()=>{ne(null)}}]});break;case"NoBasicDetails":ne({type:"error",heading:{message:"Profile Incomplete",type:"error"},message:"It looks like your profile is incomplete. Please click the button below to update your resume.",buttons:[{label:"Update Resume",action:()=>{ue(!0),ne(null),B(!1)},type:"primary"}]});break;
231case"NoBasicDetailsWithoutCv":ne({type:"error",heading:{message:"Profile Incomplete",type:"error"},message:"It looks like your profile is incomplete. Please click the button below to update your Profile.",buttons:[{label:"Update Profile",action:()=>{window.location.href="/post-signup-form",ne(null),B(!1)},type:"primary"}]});break;default:ne({type:"error",heading:{message:"Something Went Wrong!",type:"error"},message:"Looks like something went wrong. Please try again later.",buttons:[{label:"Back to Home",action:()=>null}]})}},Bt=async()=>{var je;try{re(!0),D(!1);const rt=new URLSearchParams(window.location.search).get("referAndEarnId");let tt;$!=null&&$.externalJobId?tt={jobId:$==null?void 0:$.id,jobPortal:($==null?void 0:$.jobUrl)||void 0,jobUrl:window.location.href,matchingScore:K.matchingScore||0}:tt={jobId:$==null?void 0:$.id,companyName:($==null?void 0:$.companyName)||((je=$==null?void 0:$.companyDetails)==null?void 0:je.name),jobPortal:"worko",matchingScore:K.matchingScore||0,...rt?{referAndEarnId:rt}:{}};const nt=$!=null&&$.externalJobId?`${we}/external-job-application/`:`${we}/job-application/`,Ct=await kt.promise(zn.post(nt,tt,!0,{},!0),{pending:"Applying...",error:"Failed to submit application"},ji()),{response:le,error:M,status:V}=Ct;if(V===409){D(!0),B(!0),Rt("redundant");return}if(V===403){D(!0),B(!0),Rt("redundant");return}if(M)throw new Error(M.message||"Failed to submit application");D(!0),B(!0),Rt("application_success")}catch(Me){console.error("Application error:",Me),D(!1),Rt("application_failure")}finally{re(!1)}};async function Je(){if(!r){const je={type:"referral",url:window.location.href,data:null};t(je),ft.setItem(ht.CONTINUEPENDINGPRESIGNEDPROCESS,je),localStorage.setItem("continueReferralRequestData",JSON.stringify(je)),i("/auth/login");return}if($!=null&&$.externalJobId&&($!=null&&$.jobUrl)){window.open($.jobUrl,"_blank"),B(!0),Rt("isExternalJobApplied");return}E(0),Bt()}function Ht(){switch(C){case"profileCompletion":bE((s==null?void 0:s.lastAccessedDash)||"CAND");break}}if(xt)return S.jsx(an,{});
231if(Ge&&Ge.status===410)return S.jsxs(S.Fragment,{children:[S.jsx(U0,{title:"Job Expired - Worko",description:"This job posting has expired and is no longer available.",noindex:!0,robots:"noindex, nofollow"}),S.jsx("div",{className:"min-h-screen flex items-center justify-center p-4",children:S.jsxs("div",{className:"text-center",children:[S.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Job Expired"}),S.jsx("p",{className:"text-gray-600 mb-6",children:"This job posting has expired and is no longer available."}),S.jsx("button",{onClick:()=>i("/jobs"),className:"px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700",children:"Browse Other Jobs"})]})})]});if(Ge)return S.jsxs(S.Fragment,{children:[S.jsx(U0,{title:"Job Not Found - Worko",description:"The job you're looking for could not be found.",noindex:!0}),S.jsx("div",{className:"min-h-screen flex items-center justify-center p-4",children:S.jsxs("div",{className:"text-center",children:[S.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Job Not Found"}),S.jsx("p",{className:"text-gray-600 mb-6",children:Ge instanceof Error?Ge.message:"The job you're looking for could not be found."}),S.jsx("button",{onClick:()=>i("/jobs"),className:"px-6 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700",children:"Browse Jobs"})]})})]});const Oe=$||He;if(!Oe)return S.jsx(an,{});const Xe="https://worko.ai",We=Oe.companyName||((dt=Oe.companyDetails)==null?void 0:dt.name)||"Company",Le=Oe.jobTitle||"Job",Ne=((cn=(fn=Oe.location)==null?void 0:fn.fullLocation)==null?void 0:cn.join(", "))||"Location",Ve=Oe.experienceRange?`${Oe.experienceRange.min}-${Oe.experienceRange.max} years`:"Experience",ut=`${Le} at ${We} - ${Ne} | Worko`,qe=Oe.jobDescription?Oe.jobDescription.replace(/<[^>]*>/g,"").substring(0,160)+"...":`Apply for ${Le} at ${d} in ${Ne}. ${Ve} experience required.`,Ut=$v(Oe),lt=`${Xe}${Ut}`,Ze=R6(Oe,Xe),Mt=I6([{name:"Home",url:Xe},{name:"Jobs",url:`${Xe}/jobs`},{name:We,url:`${Xe}/jobs?company=${encodeURIComponent(We)}`},{name:Le,url:lt}]),jt={"@context":"https://schema.org","@graph":[Ze,Mt]};return S.jsxs(S.Fragment,{children:[S.jsx(U0,{title:ut,description:qe,keywords:`${Le}, ${We}, jobs, ${Ne}, ${Oe.department||""}, ${((hn=Oe.coreSkills)==null?void 0:hn.join(", "))||""}`,canonicalUrl:lt,ogTitle:ut,ogDescription:qe,ogImage:((gt=Oe.companyDetails)==null?void 0:gt.logoUrl)||Oe.companyLogoUrl||`${Xe}/logo-text.png`,ogType:"article",ogUrl:lt,twitterCard:"summary_large_image",twitterTitle:ut,twitterDescription:qe,twitterImage:((Tt=Oe.companyDetails)==null?void 0:Tt.logoUrl)||Oe.companyLogoUrl||`${Xe}/logo-text.png`,schemaJsonLd:jt}),S.jsxs("div",{className:"w-full ",children:[Oe&&S.jsxs(R.Suspense,{fallback:S.jsx(an,{}),children:[S.jsx(O6,{jobData:Oe,applicationStatus:oe,handleApplyClick:Je,jobMatchDetails:K,isProfileCheckComplete:z}),S.jsx(B6,{jobData:Oe,applicationStatus:oe,handleApplyClick:Je,jobMatchDetails:K,isProfileCheckComplete:z})]}),p&&S.jsx(V5,{step:v}),x&&S.jsx(D5,{Type:C,gaugeScore:T,gaugeEnabled:b,onClose:()=>Ht()}),N&&S.jsx(F5,{title:(P==null?void 0:P.title)||"",details:(P==null?void 0:P.details)||"",onClose:()=>{F(!1),g(!1),y(!1)}}),O&&W&&S.jsx(wl,{...W,onClose:()=>ne(null),showCloseButton:!1}),ce&&S.jsx(wE,{onClose:()=>ue(!1)})]})]})};class dl extends Error{}dl.prototype.name="InvalidTokenError";function M6(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let s=r.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function j6(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return M6(t)}catch{return atob(t)}}function U6(e,t){if(typeof e!="string")throw new dl("Invalid token specified: must be a string");t||(t={});const r=t.header===!0?0:1,s=e.split(".")[r];if(typeof s!="string")throw new dl(`Invalid token specified: missing part #${r+1}`);let i;try{i=j6(s)}catch(l){throw new dl(`Invalid token specified: invalid base64 for part #${r+1} (${l.message})`)}try{return JSON.parse(i)}
231catch(l){throw new dl(`Invalid token specified: invalid json for part #${r+1} (${l.message})`)}}const Vv=({element:e,requiredRoles:t,tokenRequired:r=!0})=>{const[s,i]=R.useState("pending"),[l,c]=R.useState(),f=ft.getItem(ht.USERTYPE);if(R.useEffect(()=>{let h=!1;return(async()=>{try{const g=await fr.sessionSync(!1);if(h)return;if(!g){i(r?"no-token":"ok");return}}catch{if(h)return;i(r?"no-token":"ok");return}const p=fr.getAccessToken();if(r&&!p){i("no-token");return}if(p)try{const g=U6(p),x=Date.now()/1e3;if(g.exp&&g.exp<x){i("expired");return}}catch(g){c(g instanceof Error?g:void 0),i("error");return}i("ok")})(),()=>{h=!0}},[]),s==="pending")return null;if(s==="error")return S.jsx(dd,{error:l});if(s==="no-token")return alert("You must be logged in to access this page."),t!=null&&t.includes(et.CORPORATE)?S.jsx(Gc,{to:"/auth/corporate/login"}):S.jsx(Gc,{to:"/auth/login"});if(s==="expired")return alert("Your session has expired. Please log in again."),S.jsx(Gc,{to:"/auth/login"});if(t!=null&&t.length){if(!f&&!r)return t.includes(et.GENERAL_USER)?e:S.jsx(Gc,{to:"/auth/login"});if(Array.isArray(f)&&!f.some(h=>t.includes(h)))return S.jsx(dd,{error:new yh(f.includes(et.GENERAL_USER)?et.GENERAL_USER:f[0])})}return e},z6=R.lazy(()=>on(()=>import("./Hero-CTOa0JYP.js").then(e=>e.H),__vite__mapDeps([14,15,16,17,18,3,19]))),$6=R.lazy(()=>on(()=>import("./About-DJaFXU-v.js"),__vite__mapDeps([20,15,21,5,1,22,2,23,24,17,18]))),qv=R.lazy(()=>on(()=>import("./Company-BoaUCr47.js"),__vite__mapDeps([25,26,1,5]))),H6=R.lazy(()=>on(()=>import("./Employee-DmbjV_zZ.js"),__vite__mapDeps([27,15,17,18,16]))),W6=R.lazy(()=>on(()=>import("./Guidance-CWdZMlAW.js"),__vite__mapDeps([28,1,5,26,29,6,30]))),V6=R.lazy(()=>on(()=>import("./Auth.router-B5QEcFBP.js").then(e=>e.A),__vite__mapDeps([31,32,5,1,23,2,33,34]))),q6=R.lazy(()=>on(()=>import("./Corporate-Xs3dapgs.js"),__vite__mapDeps([35,1,5,17,18,34,11]))),K6=R.lazy(()=>on(()=>import("./Dashboard.router-BNZ0i_fq.js").then(e=>e.D),__vite__mapDeps([36,19,1])));R.lazy(()=>on(()=>import("./RequestReferral-bSb_w87r.js"),__vite__mapDeps([29,1,5,6])));const G6=R.lazy(()=>on(()=>import("./CorporateConnect-C2nFlHgT.js"),__vite__mapDeps([37,5,1,4]))),Y6=R.lazy(()=>on(()=>import("./TermsOfUse-D1yBugy2.js"),[])),Q6=R.lazy(()=>on(()=>import("./PrivacyPolicy-NpRskGuS.js"),[])),J6=R.lazy(()=>on(()=>import("./ContactUs-CA9AGS20.js"),__vite__mapDeps([38,7,33]))),X6=R.lazy(()=>on(()=>import("./UnderConstruction-UdTDoz_b.js"),[])),Z6=R.lazy(()=>on(()=>import("./PostSignupForm-nIXD293L.js"),__vite__mapDeps([39,1]))),eP=R.lazy(()=>on(()=>import("./SitemapPage-B0GTQ79U.js"),[])),tP=R.lazy(()=>on(()=>import("./Applyjob-pIsvaxh1.js"),__vite__mapDeps([40,1,10,24,13])));R.lazy(()=>on(()=>import("./CanAiReplaceYouLanding-QwZRMKsl.js"),__vite__mapDeps([41,1,24])));const nP=["faqs","blogs","pricing","employee/*","candidate/*","profile/*","support"],rP=nP.map(e=>({path:e,element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(X6,{})})})),oP=xb([{path:"/",errorElement:S.jsx(dd,{}),element:S.jsx(Vv,{requiredRoles:[et.ADMIN,et.CORPORATE,et.GENERAL_USER],tokenRequired:!1,element:S.jsx(Av,{})}),children:[{path:"debug-sitemap",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(eP,{})})},{index:!0,element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(z6,{})})},{path:"jobs/",children:[{index:!0,element:S.jsx(R.Suspense,{children:S.jsx(qv,{})})},{path:":slug/:jobid",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(Wv,{})})},{path:":companyName/:jobid",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(Wv,{})})}]},{path:"for-employee",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(H6,{})})},{path:"faq",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(JT,{})})},{path:"terms",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(Y6,{})})},{path:"privacy-policy",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(Q6,{})})},{path:"contact-us",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(J6,{})})},{path:"about",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx($6,{})})},{path:"corporate",children:[{index:!0,element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(q6,{})})},{path:"connect-with-us",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(G6,{})})}]},{path:"guidance/",children:[{index:!0,element:S.jsx(R.Suspense,{children:S.jsx(qv,{})})},{path:":compId/:id",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(W6,{})})}]},...rP]},{path:"/post-signup-form",errorElement:S.jsx(dd,{}),element:S.jsx(Vv,{requiredRoles:[et.ADMIN,et.GENERAL_USER],tokenRequired:!0,element:S.jsx(Av,{})}),children:[{index:!0,element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(Z6,{})})}]},{path:"auth/*",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(V6,{})})},{path:"dashboards/*",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(K6,{})})},{path:"apply-job/*",element:S.jsx(R.Suspense,{fallback:S.jsx(an,{}),children:S.jsx(tP,{})})},{path:"*",element:S.jsx(tE,{})}],{});function sP(){return R.useEffect(()=>{console.info("Worko (Prod)"),console.log("Vite Config: isStaging =",!1)},[]),S.jsx(Nb,{router:oP})}var uu={},Kv;function iP(){if(Kv)return uu;Kv=1;var e=B1();return uu.createRoot=e.createRoot,uu.hydrateRoot=e.hydrateRoot,uu}var aP=iP();const lP=Rl(aP),oa=Math.min,Qs=Math.max,md=Math.round,du=Math.floor,ao=e=>({x:e,y:e}
vendor: 6,232 bytes, line 231
231),cP={left:"right",right:"left",bottom:"top",top:"bottom"},uP={start:"end",end:"start"};function Fh(e,t,r){return Qs(e,oa(t,r))}function Ul(e,t){return typeof e=="function"?e(t):e}function ei(e){return e.split("-")[0]}function zl(e){return e.split("-")[1]}function _E(e){return e==="x"?"y":"x"}function vp(e){return e==="y"?"height":"width"}function sa(e){return["top","bottom"].includes(ei(e))?"y":"x"}function wp(e){return _E(sa(e))}function dP(e,t,r){r===void 0&&(r=!1);const s=zl(e),i=wp(e),l=vp(i);let c=i==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=xd(c)),[c,xd(c)]}function fP(e){const t=xd(e);return[Oh(e),t,Oh(t)]}function Oh(e){return e.replace(/start|end/g,t=>uP[t])}function hP(e,t,r){const s=["left","right"],i=["right","left"],l=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:s:t?s:i;case"left":case"right":return t?l:c;default:return[]}}function pP(e,t,r,s){const i=zl(e);let l=hP(ei(e),r==="start",s);return i&&(l=l.map(c=>c+"-"+i),t&&(l=l.concat(l.map(Oh)))),l}function xd(e){return e.replace(/left|right|bottom|top/g,t=>cP[t])}function mP(e){return{top:0,right:0,bottom:0,left:0,...e}}function AE(e){return typeof e!="number"?mP(e):{top:e,right:e,bottom:e,left:e}}function gd(e){const{x:t,y:r,width:s,height:i}=e;return{width:s,height:i,top:r,left:t,right:t+s,bottom:r+i,x:t,y:r}}function Gv(e,t,r){let{reference:s,floating:i}=e;const l=sa(t),c=wp(t),f=vp(c),h=ei(t),d=l==="y",p=s.x+s.width/2-i.width/2,g=s.y+s.height/2-i.height/2,x=s[f]/2-i[f]/2;let y;switch(h){case"top":y={x:p,y:s.y-i.height};break;case"bottom":y={x:p,y:s.y+s.height};break;case"right":y={x:s.x+s.width,y:g};break;case"left":y={x:s.x-i.width,y:g};break;default:y={x:s.x,y:s.y}}switch(zl(t)){case"start":y[c]-=x*(r&&d?-1:1);break;case"end":y[c]+=x*(r&&d?-1:1);break}return y}const xP=async(e,t,r)=>{const{placement:s="bottom",strategy:i="absolute",middleware:l=[],platform:c}=r,f=l.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(t));let d=await c.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:g}=Gv(d,s,h),x=s,y={},v=0;for(let E=0;E<f.length;E++){const{name:C,fn:_}=f[E],{x:b,y:A,data:T,reset:k}=await _({x:p,y:g,initialPlacement:s,placement:x,strategy:i,middlewareData:y,rects:d,platform:c,elements:{reference:e,floating:t}});p=b??p,g=A??g,y={...y,[C]:{...y[C],...T}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(x=k.placement),k.rects&&(d=k.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:p,y:g}=Gv(d,x,h)),E=-1)}return{x:p,y:g,placement:x,strategy:i,middlewareData:y}};async function kE(e,t){var r;t===void 0&&(t={});const{x:s,y:i,platform:l,rects:c,elements:f,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:x=!1,padding:y=0}=Ul(t,e),v=AE(y),C=f[x?g==="floating"?"reference":"floating":g],_=gd(await l.getClippingRect({element:(r=await(l.isElement==null?void 0:l.isElement(C)))==null||r?C:C.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:d,rootBoundary:p,strategy:h})),b=g==="floating"?{x:s,y:i,width:c.floating.width,height:c.floating.height}:c.reference,A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),T=await(l.isElement==null?void 0:l.isElement(A))?await(l.getScale==null?void 0:l.getScale(A))||{x:1,y:1}:{x:1,y:1},k=gd(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:b,offsetParent:A,strategy:h}):b);return{top:(_.top-k.top+v.top)/T.y,bottom:(k.bottom-_.bottom+v.bottom)/T.y,left:(_.left-k.left+v.left)/T.x,right:(k.right-_.right+v.right)/T.x}}const gP=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:s,placement:i,rects:l,platform:c,elements:f,middlewareData:h}=t,{element:d,padding:p=0}=Ul(e,t)||{};if(d==null)return{};const g=AE(p),x={x:r,y:s},y=wp(i),v=vp(y),E=await c.getDimensions(d),C=y==="y",_=C?"top":"left",b=C?"bottom":"right",A=C?"clientHeight":"clientWidth",T=l.reference[v]+l.reference[y]-x[y]-l.floating[v],k=x[y]-l.reference[y],N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let F=N?N[A]:0;(!F||!await(c.isElement==null?void 0:c.isElement(N)))&&(F=f.floating[A]||l.floating[v]);const P=T/2-k/2,U=F/2-E[v]/2-1,O=oa(g[_],U),B=oa(g[b],U),$=O,Y=F-E[v]-B,te=F/2-E[v]/2+P,re=Fh($,te,Y),ce=!h.arrow&&zl(i)!=null&&te!==re&&l.reference[v]/2-(te<$?O:B)-E[v]/2<0,ue=ce?te<$?te-$:te-Y:0;return{[y]:x[y]+ue,data:{[y]:re,centerOffset:te-re-ue,...ce&&{alignmentOffset:ue}},reset:ce}}}),yP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,s;const{placement:i,middlewareData:l,rects:c,initialPlacement:f,platform:h,elements:d}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:E=!0,...C}=Ul(e,t);if((r=l.arrow)!=null&&r.alignmentOffset)return{};const _=ei(i),b=sa(f),A=ei(f)===f,T=await(h.isRTL==null?void 0:h.isRTL(d.floating)),k=x||(A||!E?[xd(f)]:fP(f)),N=v!=="none";!x&&N&&k.push(...pP(f,E,v,T));const F=[f,...k],P=await kE(t,C),U=[];let O=((s=l.flip)==null?void 0:s.overflows)||[];if(p&&U.push(P[_]),g){const te=dP(i,c,T);U.push(P[te[0]],P[te[1]])}if(O=[...O,{placement:i,overflows:U}],!U.every(te=>te<=0)){var B,$;const te=(((B=l.flip)==null?void 0:B.index)||0)+1,re=F[te];if(re)return{data:{index:te,overflows:O},reset:{placement:re}};let ce=($=O.filter(ue=>ue.overflows[0]<=0).sort((ue,W)=>ue.overflows[1]-W.overflows[1])[0])==null?void 0:$.placement;if(!ce)switch(y){case"bestFit":{var Y;const ue=(Y=O.filter(W=>{if(N){const ne=sa(W.placement);return ne===b||ne==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(ne=>ne>0).reduce((ne,oe)=>ne+oe,0)]).sort((W,ne)=>W[1]-ne[1])[0])==null?void 0:Y[0];ue&&(ce=ue);break}case"initialPlacement":ce=f;break}if(i!==ce)return{reset:{placement:ce}}}return{}}}};async function vP(e,t){const{placement:r,platform:s,elements:i}=e,l=await(s.isRTL==null?void 0:s.isRTL(i.floating)),c=ei(r),f=zl(r),h=sa(r)==="y",d=["left","top"].includes(c)?-1:1,p=l&&h?-1:1,g=Ul(t,e);let{mainAxis:x,crossAxis:y,alignmentAxis:v}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}
vendor: 4,591 bytes, line 231
231:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof v=="number"&&(y=f==="end"?v*-1:v),h?{x:y*p,y:x*d}:{x:x*d,y:y*p}}const wP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,s;const{x:i,y:l,placement:c,middlewareData:f}=t,h=await vP(t,e);return c===((r=f.offset)==null?void 0:r.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:i+h.x,y:l+h.y,data:{...h,placement:c}}}}},EP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:s,placement:i}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:C=>{let{x:_,y:b}=C;return{x:_,y:b}}},...h}=Ul(e,t),d={x:r,y:s},p=await kE(t,h),g=sa(ei(i)),x=_E(g);let y=d[x],v=d[g];if(l){const C=x==="y"?"top":"left",_=x==="y"?"bottom":"right",b=y+p[C],A=y-p[_];y=Fh(b,y,A)}if(c){const C=g==="y"?"top":"left",_=g==="y"?"bottom":"right",b=v+p[C],A=v-p[_];v=Fh(b,v,A)}const E=f.fn({...t,[x]:y,[g]:v});return{...E,data:{x:E.x-r,y:E.y-s,enabled:{[x]:l,[g]:c}}}}}};function Od(){return typeof window<"u"}function ga(e){return RE(e)?(e.nodeName||"").toLowerCase():"#document"}function hr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xo(e){var t;return(t=(RE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RE(e){return Od()?e instanceof Node||e instanceof hr(e).Node:!1}function Vr(e){return Od()?e instanceof Element||e instanceof hr(e).Element:!1}function fo(e){return Od()?e instanceof HTMLElement||e instanceof hr(e).HTMLElement:!1}function Yv(e){return!Od()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hr(e).ShadowRoot}function $l(e){const{overflow:t,overflowX:r,overflowY:s,display:i}=qr(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+r)&&!["inline","contents"].includes(i)}function SP(e){return["table","td","th"].includes(ga(e))}function Bd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ep(e){const t=Sp(),r=Vr(e)?qr(e):e;return["transform","translate","scale","rotate","perspective"].some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(r.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(r.contain||"").includes(s))}function CP(e){let t=Cs(e);for(;fo(t)&&!ia(t);){if(Ep(t))return t;if(Bd(t))return null;t=Cs(t)}return null}function Sp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ia(e){return["html","body","#document"].includes(ga(e))}function qr(e){return hr(e).getComputedStyle(e)}function Ld(e){return Vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Cs(e){if(ga(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yv(e)&&e.host||xo(e);return Yv(t)?t.host:t}function IE(e){const t=Cs(e);return ia(t)?e.ownerDocument?e.ownerDocument.body:e.body:fo(t)&&$l(t)?t:IE(t)}function Cl(e,t,r){var s;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=IE(e),l=i===((s=e.ownerDocument)==null?void 0:s.body),c=hr(i);if(l){const f=Bh(c);return t.concat(c,c.visualViewport||[],$l(i)?i:[],f&&r?Cl(f):[])}return t.concat(i,Cl(i,[],r))}function Bh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function TE(e){const t=qr(e);let r=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=fo(e),l=i?e.offsetWidth:r,c=i?e.offsetHeight:s,f=md(r)!==l||md(s)!==c;return f&&(r=l,s=c),{width:r,height:s,$:f}}function Cp(e){return Vr(e)?e:e.contextElement}function zi(e){const t=Cp(e);if(!fo(t))return ao(1);const r=t.getBoundingClientRect(),{width:s,height:i,$:l}=TE(t);let c=(l?md(r.width):r.width)/s,f=(l?md(r.height):r.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const bP=ao(0);function PE(e){const t=hr(e);return!Sp()||!t.visualViewport?bP:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _P(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==hr(e)?!1:t}function ti(e,t,r,s){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=Cp(e);let c=ao(1);t&&(s?Vr(s)&&(c=zi(s)):c=zi(e));const f=_P(l,r,s)?PE(l):ao(0);let h=(i.left+f.x)/c.x,d=(i.top+f.y)/c.y,p=i.width/c.x,g=i.height/c.y;if(l){const x=hr(l),y=s&&Vr(s)?hr(s):s;let v=x,E=Bh(v);for(;E&&s&&y!==v;){const C=zi(E),_=E.getBoundingClientRect(),b=qr(E),A=_.left+(E.clientLeft+parseFloat(b.paddingLeft))*C.x,T=_.top+(E.
231clientTop+parseFloat(b.paddingTop))*C.y;h*=C.x,d*=C.y,p*=C.x,g*=C.y,h+=A,d+=T,v=hr(E),E=Bh(v)}}return gd({width:p,height:g,x:h,y:d})}function bp(e,t){const r=Ld(e).scrollLeft;return t?t.left+r:ti(xo(e)).left+r}function NE(e,t,r){r===void 0&&(r=!1);const s=e.getBoundingClientRect(),i=s.left+t.scrollLeft-(r?0:bp(e,s)),l=s.top+t.scrollTop;return{x:i,y:l}}function AP(e){let{elements:t,rect:r,offsetParent:s,strategy:i}=e;const l=i==="fixed",c=xo(s),f=t?Bd(t.floating):!1;if(s===c||f&&l)return r;let h={scrollLeft:0,scrollTop:0},d=ao(1);const p=ao(0),g=fo(s);if((g||!g&&!l)&&((ga(s)!=="body"||$l(c))&&(h=Ld(s)),fo(s))){const y=ti(s);d=zi(s),p.x=y.x+s.clientLeft,p.y=y.y+s.clientTop}const x=c&&!g&&!l?NE(c,h,!0):ao(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-h.scrollLeft*d.x+p.x+x.x,y:r.y*d.y-h.scrollTop*d.y+p.y+x.y}}function kP(e){return Array.from(e.getClientRects())}function RP(e){const t=xo(e),r=Ld(e),s=e.ownerDocument.body,i=Qs(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),l=Qs(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let c=-r.scrollLeft+bp(e);const f=-r.scrollTop;return qr(s).direction==="rtl"&&(c+=Qs(t.clientWidth,s.clientWidth)-i),{width:i,height:l,x:c,y:f}}function IP(e,t){const r=hr(e),s=xo(e),i=r.visualViewport;let l=s.clientWidth,c=s.clientHeight,f=0,h=0;if(i){l=i.width,c=i.height;const d=Sp();(!d||d&&t==="fixed")&&(f=i.offsetLeft,h=i.offsetTop)}return{width:l,height:c,x:f,y:h}}function TP(e,t){const r=ti(e,!0,t==="fixed"),s=r.top+e.clientTop,i=r.left+e.clientLeft,l=fo(e)?zi(e):ao(1),c=e.clientWidth*l.x,f=e.clientHeight*l.y,h=i*l.x,d=s*l.y;return{width:c,height:f,x:h,y:d}}function Qv(e,t,r){let s;if(t==="viewport")s=IP(e,r);else if(t==="document")s=RP(xo(e));else if(Vr(t))s=TP(t,r);else{const i=PE(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return gd(s)}function DE(e,t){const r=Cs(e);return r===t||!Vr(r)||ia(r)?!1:qr(r).position==="fixed"||DE(r,t)}function PP(e,t){const r=t.get(e);if(r)return r;let s=Cl(e,[],!1).filter(f=>Vr(f)&&ga(f)!=="body"),i=null;const l=qr(e).position==="fixed";let c=l?Cs(e):e;for(;Vr(c)&&!ia(c);){const f=qr(c),h=Ep(c);!h&&f.position==="fixed"&&(i=null),(l?!h&&!i:!h&&f.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||$l(c)&&!h&&DE(e,c))?s=s.filter(p=>p!==c):i=f,c=Cs(c)}return t.set(e,s),s}function NP(e){let{element:t,boundary:r,rootBoundary:s,strategy:i}=e;const c=[...r==="clippingAncestors"?Bd(t)?[]:PP(t,this._c):[].concat(r),s],f=c[0],h=c.reduce((d,p)=>{const g=Qv(t,p,i);return d.top=Qs(g.top,d.top),d.right=oa(g.right,d.right),d.bottom=oa(g.bottom,d.bottom),d.left=Qs(g.left,d.left),d},Qv(t,f,i));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function DP(e){const{width:t,height:r}=TE(e);return{width:t,height:r}}function FP(e,t,r){const s=fo(t),i=xo(t),l=r==="fixed",c=ti(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const h=ao(0);if(s||!s&&!l)if((ga(t)!=="body"||$l(i))&&(f=Ld(t)),s){const x=ti(t,!0,l,t);h.x=x.x+t.clientLeft,h.y=x.y+t.clientTop}else i&&(h.x=bp(i));const d=i&&!s&&!l?NE(i,f):ao(0),p=c.left+f.scrollLeft-h.x-d.x,g=c.top+f.scrollTop-h.y-d.y;return{x:p,y:g,width:c.width,height:c.height}}function z0(e){return qr(e).position==="static"}function Jv(e,t){if(!fo(e)||qr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return xo(e)===r&&(r=r.ownerDocument.body),r}function FE(e,t){const r=hr(e);if(Bd(e))return r;if(!fo(e)){let i=Cs(e);for(;i&&!ia(i);){if(Vr(i)&&!z0(i))return i;i=Cs(i)}return r}let s=Jv(e,t);for(;s&&SP(s)&&z0(s);)s=Jv(s,t);return s&&ia(s)&&z0(s)&&!Ep(s)?r:s||CP(e)||r}const OP=async function(e){const t=this.getOffsetParent||FE,r=this.getDimensions,s=await r(e.floating);return{reference:FP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function BP(e){return qr(e).direction==="rtl"}const LP={convertOffsetParentRelativeRectToViewportRelativeRect:AP,getDocumentElement:xo,getClippingRect:NP,getOffsetParent:FE,getElementRects:OP,getClientRects:kP,getDimensions:DP,getScale:zi,isElement:Vr,isRTL:BP};function OE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function MP(e,t){let r=null,s;const i=xo(e);function l(){var f;clearTimeout(s),(f=r)==null||f.disconnect(),r=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),l();const d=e.getBoundingClientRect(),{left:p,top:g,width:x,height:y}=d;if(f||t(),!x||!y)return;const v=du(g),E=du(i.clientWidth-(p+x)),C=du(i.clientHeight-(g+y)),_=du(p),A={rootMargin:-v+"px "+-E+"px "+-C+"px "+-_+"px",threshold:Qs(0,oa(1,h))||1};let T=!0;function k(N){const F=N[0].intersectionRatio;if(F!==h){if(!T)return c();F?c(!1,F):s=setTimeout(()=>{c(!1,1e-7)},1e3)}F===1&&!OE(d,e.getBoundingClientRect())&&c(),T=!1}try{r=new IntersectionObserver(k,{...A,root:i.ownerDocument})}catch{r=new IntersectionObserver(k,A)}r.observe(e)}return c(!0),l}function jP(e,t,r,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=s,d=Cp(e),p=i||l?[...d?Cl(d):[],...Cl(t)]:[];p.forEach(_=>{i&&_.addEventListener("scroll",r,{passive:!0}),l&&_.addEventListener("resize",r)});const g=d&&f?MP(d,r):null;let x=-1,y=null;c&&(y=new ResizeObserver(_=>{let[b]=_;b&&b.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var A;(A=y)==null||A.observe(t)})),r()}),d&&!h&&y.observe(d),y.observe(t));let v,E=h?ti(e):null;h&&C();function C(){const _=ti(e);E&&!OE(E,_)&&r(),E=_,v=requestAnimationFrame(C)}return r(),()=>{var _;p.forEach(b=>{i&&b.removeEventListener("scroll",r),l&&b.removeEventListener("resize",r)}),g==null||g(),(_=y)==null||_.disconnect(),y=null,h&&cancelAnimationFrame(v)}}const UP=wP,zP=EP,$P=yP,HP=gP,Xv=(e,t,r)=>{const s=new Map,i={platform:LP,...r},l={...i.platform,_c:s};return xP(e,t,{...i,platform:l})};var $0={exports:{}};/*! 232 Copyright (c) 2018 Jed Watson. 233 Licensed under the MIT License (MIT), see 234 http://jedwatson.github.io/classnames 235*/var Zv;function WP(){return Zv||(Zv=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var l="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(l=i(l,s(f)))}return l}function s(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return r.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var c="";for(var f in l)t.call(l,f)&&l[f]&&(c=i(c,f));return c}function i(l,c){return c?l?l+" "+c:l+c:l}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}($0)),$0.exports}var VP=WP();const Lh=Rl(VP);var e1={};const qP="react-tooltip-core-styles",KP="react-tooltip-base-styles",t1={core:!1,base:!1};function n1({css:e,id:t=KP,type:r="base",ref:s}){var i,l;if(!e||typeof document>"u"||t1[r]||r==="core"&&typeof process<"u"&&(!((i=process==null?void 0:e1)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||r!=="base"&&typeof process<"u"&&(!((l=process==null?void 0:e1)===null||l===void 0)&&l.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;r==="core"&&(t=qP),s||(s={});const{insertAt:c}=s;if(document.getElementById(t))return;const f=document.head||document.getElementsByTagName("head")[0],h=document.createElement("style");h.id=t,h.type="text/css",c==="top"&&f.firstChild?f.insertBefore(h,f.firstChild):f.appendChild(h),h.styleSheet?h.styleSheet.cssText=e:h.appendChild(document.createTextNode(e)),t1[r]=!0}const r1=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:r=null,place:s="top",offset:i=10,strategy:l="absolute",middlewares:c=[UP(Number(i)),$P({fallbackAxisSideDirection:"start"}),zP({padding:5})],border:f})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:s};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:s};const h=c;return r?(h.push(HP({element:r,padding:5})),Xv(e,t,{placement:s,strategy:l,middleware:h}).then(({x:d,y:p,placement:g,middlewareData:x})=>{var y,v;const E={left:`${d}px`,top:`${p}px`,border:f},{x:C,y:_}=(y=x.arrow)!==null&&y!==void 0?y:{x:0,y:0}
235,b=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[g.split("-")[0]])!==null&&v!==void 0?v:"bottom",A=f&&{borderBottom:f,borderRight:f};let T=0;if(f){const k=`${f}`.match(/(\d+)px/);T=k!=null&&k[1]?Number(k[1]):1}return{tooltipStyles:E,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:_!=null?`${_}px`:"",right:"",bottom:"",...A,[b]:`-${4+T}px`},place:g}})):Xv(e,t,{placement:"bottom",strategy:l,middleware:h}).then(({x:d,y:p,placement:g})=>({tooltipStyles:{left:`${d}px`,top:`${p}px`},tooltipArrowStyles:{},place:g}))},o1=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),s1=(e,t,r)=>{let s=null;const i=function(...l){const c=()=>{s=null};!s&&(e.apply(this,l),s=setTimeout(c,t))};return i.cancel=()=>{s&&(clearTimeout(s),s=null)},i},i1=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",Mh=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,l)=>Mh(i,t[l]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!i1(e)||!i1(t))return e===t;const r=Object.keys(e),s=Object.keys(t);return r.length===s.length&&r.every(i=>Mh(e[i],t[i]))},GP=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(r=>{const s=t.getPropertyValue(r);return s==="auto"||s==="scroll"})},a1=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(GP(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},YP=typeof window<"u"?R.useLayoutEffect:R.useEffect,Er=e=>{e.current&&(clearTimeout(e.current),e.current=null)},QP="DEFAULT_TOOLTIP_ID",JP={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},XP=R.createContext({getTooltipData:()=>JP});function BE(e=QP){return R.useContext(XP).getTooltipData(e)}var Bi={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},H0={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const ZP=({forwardRef:e,id:t,className:r,classNameArrow:s,variant:i="dark",anchorId:l,anchorSelect:c,place:f="top",offset:h=10,events:d=["hover"],openOnClick:p=!1,positionStrategy:g="absolute",middlewares:x,wrapper:y,delayShow:v=0,delayHide:E=0,float:C=!1,hidden:_=!1,noArrow:b=!1,
235clickable:A=!1,closeOnEsc:T=!1,closeOnScroll:k=!1,closeOnResize:N=!1,openEvents:F,closeEvents:P,globalCloseEvents:U,imperativeModeOnly:O,style:B,position:$,afterShow:Y,afterHide:te,disableTooltip:re,content:ce,contentWrapperRef:ue,isOpen:W,defaultIsOpen:ne=!1,setIsOpen:oe,activeAnchor:D,setActiveAnchor:z,border:L,opacity:K,arrowColor:ve,role:Ee="tooltip"})=>{var we;const se=R.useRef(null),Ce=R.useRef(null),Se=R.useRef(null),He=R.useRef(null),xt=R.useRef(null),[Ge,St]=R.useState({tooltipStyles:{},tooltipArrowStyles:{},place:f}),[bt,Yt]=R.useState(!1),[Rt,Bt]=R.useState(!1),[Je,Ht]=R.useState(null),Oe=R.useRef(!1),Xe=R.useRef(null),{anchorRefs:We,setActiveAnchor:Le}=BE(t),Ne=R.useRef(!1),[Ve,ut]=R.useState([]),qe=R.useRef(!1),Ut=p||d.includes("click"),lt=Ut||(F==null?void 0:F.click)||(F==null?void 0:F.dblclick)||(F==null?void 0:F.mousedown),Ze=F?{...F}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!F&&Ut&&Object.assign(Ze,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Mt=P?{...P}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};
235!P&&Ut&&Object.assign(Mt,{mouseleave:!1,blur:!1,mouseout:!1});const jt=U?{...U}:{escape:T||!1,scroll:k||!1,resize:N||!1,clickOutsideAnchor:lt||!1};O&&(Object.assign(Ze,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Mt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(jt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),YP(()=>(qe.current=!0,()=>{qe.current=!1}),[]);const dt=Q=>{qe.current&&(Q&&Bt(!0),setTimeout(()=>{qe.current&&(oe==null||oe(Q),W===void 0&&Yt(Q))},10))};R.useEffect(()=>{if(W===void 0)return()=>null;W&&Bt(!0);const Q=setTimeout(()=>{Yt(W)},10);return()=>{clearTimeout(Q)}},[W]),R.useEffect(()=>{if(bt!==Oe.current)if(Er(xt),Oe.current=bt,bt)Y==null||Y();else{const Q=(ie=>{const ae=ie.match(/^([\d.]+)(ms|s)$/);if(!ae)return 0;const[,de,ge]=ae;return Number(de)*(ge==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));xt.current=setTimeout(()=>{Bt(!1),Ht(null),te==null||te()},Q+25)}},[bt]);const fn=Q=>{St(ie=>Mh(ie,Q)?ie:Q)},cn=(Q=v)=>{Er(Se),Rt?dt(!0):Se.current=setTimeout(()=>{dt(!0)},Q)},hn=(Q=E)=>{Er(He),He.current=setTimeout(()=>{Ne.current||dt(!1)},Q)},gt=Q=>{var ie;if(!Q)return;const ae=(ie=Q.currentTarget)!==null&&ie!==void 0?ie:Q.target;if(!(ae!=null&&ae.isConnected))return z(null),void Le({current:null});v?cn():dt(!0),z(ae),Le({current:ae}),Er(He)},Tt=()=>{A?hn(E||100):E?hn():dt(!1),Er(Se)},je=({x:Q,y:ie})=>{var ae;const de={getBoundingClientRect:()=>({x:Q,y:ie,width:0,height:0,top:ie,left:Q,right:Q,bottom:ie})};r1({place:(ae=Je==null?void 0:Je.place)!==null&&ae!==void 0?ae:f,offset:h,elementReference:de,tooltipReference:se.current,tooltipArrowReference:Ce.current,strategy:g,middlewares:x,border:L}).then(ge=>{fn(ge)})},Me=Q=>{if(!Q)return;const ie=Q,ae={x:ie.clientX,y:ie.clientY};je(ae),Xe.current=ae},rt=Q=>{var ie;if(!bt)return;const ae=Q.target;ae.isConnected&&(!((ie=se.current)===null||ie===void 0)&&ie.contains(ae)||[document.querySelector(`[id='${l}']`),...Ve].some(de=>de==null?void 0:de.contains(ae))||(dt(!1),Er(Se)))},tt=s1(gt,50),nt=s1(Tt,50),Ct=Q=>{nt.cancel(),tt(Q)},le=()=>{tt.cancel(),nt()},M=R.useCallback(()=>{var Q,ie;const ae=(Q=Je==null?void 0:Je.position)!==null&&Q!==void 0?Q:$;ae?je(ae):C?Xe.current&&je(Xe.current):D!=null&&D.isConnected&&r1({place:(ie=Je==null?void 0:Je.place)!==null&&ie!==void 0?ie:f,offset:h,elementReference:D,tooltipReference:se.current,tooltipArrowReference:Ce.current,strategy:g,middlewares:x,border:L}).then(de=>{qe.current&&fn(de)})},[bt,D,ce,B,f,Je==null?void 0:Je.place,h,g,$,Je==null?void 0:Je.position,C]);R.useEffect(()=>{var Q,ie;const ae=new Set(We);Ve.forEach(ot=>{re!=null&&re(ot)||ae.add({current:ot})});const de=document.querySelector(`[id='${l}']`);de&&!(re!=null&&re(de))&&ae.add({current:de});const ge=()=>{dt(!1)},fe=a1(D),xe=a1(se.current);jt.scroll&&(window.addEventListener("scroll",ge),fe==null||fe.addEventListener("scroll",ge),xe==null||xe.addEventListener("scroll",ge));let _e=null;jt.resize?window.addEventListener("resize",ge):D&&se.current&&(_e=jP(D,se.current,M,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Be=ot=>{ot.key==="Escape"&&dt(!1)};jt.escape&&window.addEventListener("keydown",Be),jt.clickOutsideAnchor&&window.addEventListener("click",rt);const Ue=[],_t=ot=>{bt&&(ot==null?void 0:ot.target)===D||gt(ot)},mt=ot=>{bt&&(ot==null?void 0:ot.target)===D&&Tt()},yt=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Nt=["click","dblclick","mousedown","mouseup"];Object.entries(Ze).forEach(([ot,Jt])=>{Jt&&(yt.includes(ot)?Ue.push({event:ot,listener:Ct}):Nt.includes(ot)&&Ue.push({event:ot,listener:_t}))}),Object.entries(Mt).forEach(([ot,Jt])=>{Jt&&(yt.includes(ot)?Ue.push({event:ot,listener:le}):Nt.includes(ot)&&Ue.push({event:ot,listener:mt}))}),C&&Ue.push({event:"pointermove",listener:Me});const Wn=()=>{Ne.current=!0},Vn=()=>{Ne.current=!1,Tt()};return A&&!lt&&((Q=se.current)===null||Q===void 0||Q.addEventListener("mouseenter",Wn),(ie=se.current)===null||ie===void 0||ie.addEventListener("mouseleave",Vn)),Ue.forEach(({event:ot,listener:Jt})=>{ae.forEach(Gr=>{var or;(or=Gr.current)===null||or===void 0||or.addEventListener(ot,Jt)})}),()=>{var ot,Jt;jt.scroll&&(window.removeEventListener("scroll",ge),fe==null||fe.removeEventListener("scroll",ge),xe==null||xe.removeEventListener("scroll",ge)),jt.resize?window.removeEventListener("resize",ge):_e==null||_e(),jt.clickOutsideAnchor&&window.removeEventListener("click",rt),jt.escape&&window.removeEventListener("keydown",Be),A&&!lt&&((ot=se.current)===null||ot===void 0||ot.removeEventListener("mouseenter",Wn),(Jt=se.current)===null||Jt===void 0||Jt.removeEventListener("mouseleave",Vn)),Ue.forEach(({event:Gr,listener:or})=>{ae.forEach(Ir=>{var Dt;(Dt=Ir.current)===null||Dt===void 0||Dt.removeEventListener(Gr,or)})})}},[D,M,Rt,We,Ve,F,P,U,Ut,v,E]),R.useEffect(()=>{var Q,ie;let ae=(ie=(Q=Je==null?void 0:Je.anchorSelect)!==null&&Q!==void 0?Q:c)!==null&&ie!==void 0?ie:"";!ae&&t&&(ae=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const de=new MutationObserver(ge=>{const fe=[],xe=[];ge.forEach(_e=>{if(_e.type==="attributes"&&_e.attributeName==="data-tooltip-id"&&(_e.target.getAttribute("data-tooltip-id")===t?fe.push(_e.target):_e.oldValue===t&&xe.push(_e.target)),_e.type==="childList"){if(D){const Be=[..._e.removedNodes].filter(Ue=>Ue.nodeType===1);if(ae)try{xe.push(...Be.filter(Ue=>Ue.matches(ae))),xe.push(...Be.flatMap(Ue=>[...Ue.querySelectorAll(ae)]))}catch{}Be.some(Ue=>{var _t;return!!(!((_t=Ue==null?void 0:Ue.contains)===null||_t===void 0)&&_t.call(Ue,D))&&(Bt(!1),dt(!1),z(null),Er(Se),Er(He),!0)})}if(ae)try{const Be=[..._e.addedNodes].filter(Ue=>Ue.nodeType===1);fe.push(...Be.filter(Ue=>Ue.matches(ae))),fe.push(...Be.flatMap(Ue=>[...Ue.querySelectorAll(ae)]))}catch{}}}),(fe.length||xe.length)&&ut(_e=>[..._e.filter(Be=>!xe.includes(Be)),...fe])});return de.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{de.disconnect()}},[t,c,Je==null?void 0:Je.anchorSelect,D]),R.useEffect(()=>{M()},[M]),R.useEffect(()=>{if(!(ue!=null&&ue.current))return()=>null;const Q=new ResizeObserver(()=>{setTimeout(()=>M())});return Q.observe(ue.current),()=>{Q.disconnect()}},[ce,ue==null?void 0:ue.current]),R.useEffect(()=>{var Q;const ie=document.querySelector(`[id='${l}']`),ae=[...Ve,ie];D&&ae.includes(D)||z((Q=Ve[0])!==null&&Q!==void 0?Q:ie)},[l,Ve,D]),R.useEffect(()=>(ne&&dt(!0),()=>{Er(Se),Er(He)}),[]),R.useEffect(()=>{var Q;let ie=(Q=Je==null?void 0:Je.anchorSelect)!==null&&Q!==void 0?Q:c;if(!ie&&t&&(ie=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),ie)try{const ae=Array.from(document.querySelectorAll(ie));ut(ae)}catch{ut([])}},[t,c,Je==null?void 0:Je.anchorSelect]),R.useEffect(()=>{Se.current&&(Er(Se),cn(v))},[v]);const V=(we=Je==null?void 0:Je.content)!==null&&we!==void 0?we:ce,Z=bt&&Object.keys(Ge.tooltipStyles).length>0;return R.useImperativeHandle(e,()=>({open:Q=>{if(Q!=null&&Q.anchorSelect)try{document.querySelector(Q.anchorSelect)}
235catch{return void console.warn(`[react-tooltip] "${Q.anchorSelect}" is not a valid CSS selector`)}Ht(Q??null),Q!=null&&Q.delay?cn(Q.delay):dt(!0)},close:Q=>{Q!=null&&Q.delay?hn(Q.delay):dt(!1)},activeAnchor:D,place:Ge.place,isOpen:!!(Rt&&!_&&V&&Z)})),Rt&&!_&&V?pt.createElement(y,{id:t,role:Ee,className:Lh("react-tooltip",Bi.tooltip,H0.tooltip,H0[i],r,`react-tooltip__place-${Ge.place}`,Bi[Z?"show":"closing"],Z?"react-tooltip__show":"react-tooltip__closing",g==="fixed"&&Bi.fixed,A&&Bi.clickable),onTransitionEnd:Q=>{Er(xt),bt||Q.propertyName!=="opacity"||(Bt(!1),Ht(null),te==null||te())},style:{...B,...Ge.tooltipStyles,opacity:K!==void 0&&Z?K:void 0},ref:se},V,pt.createElement(y,{className:Lh("react-tooltip-arrow",Bi.arrow,H0.arrow,s,b&&Bi.noArrow),style:{...Ge.tooltipArrowStyles,background:ve?`linear-gradient(to right bottom, transparent 50%, ${ve} 50%)`:void 0},ref:Ce})):null},eN=({content:e})=>pt.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),tN=pt.forwardRef(({id:e,anchorId:t,anchorSelect:r,content:s,html:i,render:l,className:c,classNameArrow:f,variant:h="dark",place:d="top",offset:p=10,wrapper:g="div",children:x=null,events:y=["hover"],openOnClick:v=!1,positionStrategy:E="absolute",middlewares:C,delayShow:_=0,delayHide:b=0,float:A=!1,hidden:T=!1,noArrow:k=!1,clickable:N=!1,closeOnEsc:F=!1,closeOnScroll:P=!1,closeOnResize:U=!1,openEvents:O,closeEvents:B,globalCloseEvents:$,imperativeModeOnly:Y=!1,style:te,position:re,isOpen:ce,defaultIsOpen:ue=!1,disableStyleInjection:W=!1,border:ne,opacity:oe,arrowColor:D,setIsOpen:z,afterShow:L,afterHide:K,disableTooltip:ve,role:Ee="tooltip"},we)=>{const[se,Ce]=R.useState(s),[Se,He]=R.useState(i),[xt,Ge]=R.useState(d),[St,bt]=R.useState(h),[Yt,Rt]=R.useState(p),[Bt,Je]=R.useState(_),[Ht,Oe]=R.useState(b),[Xe,We]=R.useState(A),[Le,Ne]=R.useState(T),[Ve,ut]=R.useState(g),[qe,Ut]=R.useState(y),[lt,Ze]=R.useState(E),[Mt,jt]=R.useState(null),[dt,fn]=R.use
235State(null),cn=R.useRef(W),{anchorRefs:hn,activeAnchor:gt}=BE(e),Tt=nt=>nt==null?void 0:nt.getAttributeNames().reduce((Ct,le)=>{var M;return le.startsWith("data-tooltip-")&&(Ct[le.replace(/^data-tooltip-/,"")]=(M=nt==null?void 0:nt.getAttribute(le))!==null&&M!==void 0?M:null),Ct},{}),je=nt=>{const Ct={place:le=>{var M;Ge((M=le)!==null&&M!==void 0?M:d)},content:le=>{Ce(le??s)},html:le=>{He(le??i)},variant:le=>{var M;bt((M=le)!==null&&M!==void 0?M:h)},offset:le=>{Rt(le===null?p:Number(le))},wrapper:le=>{var M;ut((M=le)!==null&&M!==void 0?M:g)},events:le=>{const M=le==null?void 0:le.split(" ");Ut(M??y)},"position-strategy":le=>{var M;Ze((M=le)!==null&&M!==void 0?M:E)},"delay-show":le=>{Je(le===null?_:Number(le))},"delay-hide":le=>{Oe(le===null?b:Number(le))},float:le=>{We(le===null?A:le==="true")},hidden:le=>{Ne(le===null?T:le==="true")},"class-name":le=>{jt(le)}};Object.values(Ct).forEach(le=>le(null)),Object.entries(nt).forEach(([le,M])=>{var V;(V=Ct[le])===null||V===void 0||V.call(Ct,M)})};R.useEffect(()=>{Ce(s)},[s]),R.useEffect(()=>{He(i)},[i]),R.useEffect(()=>{Ge(d)},[d]),R.useEffect(()=>{bt(h)},[h]),R.useEffect(()=>{Rt(p)},[p]),R.useEffect(()=>{Je(_)},[_]),R.useEffect(()=>{Oe(b)},[b]),R.useEffect(()=>{We(A)},[A]),R.useEffect(()=>{Ne(T)},[T]),R.useEffect(()=>{Ze(E)},[E]),R.useEffect(()=>{cn.current!==W&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[W]),R.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:W==="core",disableBase:W}}))},[]),R.useEffect(()=>{var nt;const Ct=new Set(hn);let le=r;if(!le&&e&&(le=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),le)try{document.querySelectorAll(le).forEach(ie=>{Ct.add({current:ie})})}catch{console.warn(`[react-tooltip] "${le}" is not a valid CSS selector`)}const M=document.querySelector(`[id='${t}']`);if(M&&Ct.add({current:M}),!Ct.size)return()=>null;const V=(nt=dt??M)!==null&&nt!==void 0?nt:gt.current,Z=new MutationObserver(ie=>{ie.forEach(ae=>{var de;if(!V||ae.type!=="attributes"||!(!((de=ae.attributeName)===null||de===void 0)&&de.startsWith("data-tooltip-")))return;const ge=Tt(V);je(ge)})}),Q={attributes:!0,childList:!1,subtree:!1};if(V){const ie=Tt(V);je(ie),Z.observe(V,Q)}return()=>{Z.disconnect()}},[hn,gt,dt,t,r]),R.useEffect(()=>{te!=null&&te.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),ne&&!o1("border",`${ne}`)&&console.warn(`[react-tooltip] "${ne}" is not a valid \`border\`.`),te!=null&&te.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),oe&&!o1("opacity",`${oe}`)&&console.warn(`[react-tooltip] "${oe}" is not a valid \`opacity\`.`)},[]);let Me=x;const rt=R.useRef(null);if(l){const nt=l({content:(dt==null?void 0:dt.getAttribute("data-tooltip-content"))||se||null,activeAnchor:dt});Me=nt?pt.createElement("div",{ref:rt,className:"react-tooltip-content-wrapper"},nt):null}else se&&(Me=se);Se&&(Me=pt.createElement(eN,{content:Se}));const tt={forwardRef:we,id:e,anchorId:t,anchorSelect:r,className:Lh(c,Mt),classNameArrow:f,content:Me,contentWrapperRef:rt,place:xt,variant:St,offset:Yt,wrapper:Ve,events:qe,openOnClick:v,positionStrategy:lt,middlewares:C,delayShow:Bt,delayHide:Ht,float:Xe,hidden:Le,noArrow:k,clickable:N,closeOnEsc:F,closeOnScroll:P,closeOnResize:U,openEvents:O,closeEvents:B,globalCloseEvents:$,imperativeModeOnly:Y,style:te,position:re,isOpen:ce,defaultIsOpen:ue,border:ne,opacity:oe,arrowColor:D,setIsOpen:z,afterShow:L,afterHide:K,disableTooltip:ve,activeAnchor:dt,setActiveAnchor:nt=>fn(nt),role:Ee};return pt.createElement(ZP,{...tt})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||n1({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}
235.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||n1({css:` 236.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});class nN extends pt.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("Error caught by Error Boundary:",t,r)}render(){return this.state.hasError?S.jsx("div",{style:{position:"absolute",top:0,width:"100%",background:"red",color:"white",padding:"10px",textAlign:"center"},children:"Something went wrong. Please reload the page."}):this.props.children}}const rN=new dE;lP.createRoot(document.getElementById("root")).render(S.jsxs(S.Fragment,{children:[" ",S.jsx(y5,{client:rN,children:S.jsx(nN,{children:S.jsxs(G8,{children:[S.jsx(sP,{}),S.jsx(tN,{id:"my-tooltip",className:"z-50"}),S.jsx(n4,{stacked:!0,autoClose:1e3})," "]})})})]}));export{zI as $,tn as A,Hb as B,Rn as C,mo as D,Gt as E,aN as F,$t as G,Vt as H,Mi as I,rr as J,bw as K,Nl as L,an as M,qb as N,n_ as O,fr as P,K8 as Q,pt as R,c_ as S,Y0 as T,et as U,Hw as V,U1 as W,I3 as X,LI as Y,NI as Z,on as _,Bv as a,$I as a0,vl as a1,jI as a2,T3 as a3,y3 as a4,Cb as a5,fl as a6,bn as a7,sN as a8,WC as a9,In as aA,g5 as aB,Fv as aC,C5 as aD,TT as aE,Bb as aF,vn as aG,at as aH,Tn as aI,w0 as aJ,jh as aK,B1 as aL,cN as aM,uN as aN,pN as aO,_g as aa,a_ as ab,HC as ac,iN as ad,G8 as ae,Gc as af,V5 as ag,D5 as ah,F5 as ai,bE as aj,j1 as ak,w6 as al,$v as am,_C as an,P5 as ao,jv as ap,zb as aq,hN as ar,lN as as,vE as at,fN as au,EE as av,jl as aw,wh as ax,El as ay,u5 as az,T6 as b,Bn as c,ht as d,ui as e,wl as f,ji as g,zn as h,pd as i,S as j,dN as k,Rl as l,vs as m,lu as n,Rr as o,Uo as p,ho as q,R as r,ft as s,po as t,Mo as u,Pt as v,AA as w,Sw as x,kt as y,zt as z};
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.