vendor: 5,001 bytes, lines 1-17
1var yN=Object.defineProperty;var vN=(e,t,n)=>t in e?yN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var me=(e,t,n)=>vN(e,typeof t!="symbol"?t+"":t,n);function bN(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Rl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yg={exports:{}},Ic={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var B1;function wN(){if(B1)return Ic;B1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var c=null;if(o!==void 0&&(c=""+o),i.key!==void 0&&(c=""+i.key),"key"in i){o={};for(var d in i)d!=="key"&&(o[d]=i[d])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:c,ref:i!==void 0?i:null,props:o}}return Ic.Fragment=t,Ic.jsx=n,Ic.jsxs=n,Ic}var U1;function xN(){return U1||(U1=1,yg.exports=wN()),yg.exports}var y=xN(),vg={exports:{}},Ve={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var H1;function EN(){if(H1)return Ve;H1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.iterator;function b(M){return M===null||typeof M!="object"?null:(M=v&&M[v]||M["@@iterator"],typeof M=="function"?M:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function D(M,X,de){this.props=M,this.context=X,this.refs=T,this.updater=de||w}D.prototype.isReactComponent={},D.prototype.setState=function(M,X){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,X,"setState")},D.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function _(){}_.prototype=D.prototype;function k(M,X,de){this.props=M,this.context=X,this.refs=T,this.updater=de||w}var A=k.prototype=new _;A.constructor=k,x(A,D.prototype),A.isPureReactComponent=!0;var V=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function G(M,X,de,ue,Ee,Ie){return de=Ie.ref,{$$typeof:e,type:M,key:X,ref:de!==void 0?de:null,props:Ie}}function F(M,X){return G(M.type,X,void 0,void 0,void 0,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function le(M){var X={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(de){return X[de]})}var Z=/\/+/g;function ie(M,X){return typeof M=="object"&&M!==null&&M.key!=null?le(""+M.key):X.toString(36)}function ge(){}function oe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(ge,ge):(M.status="pending",M.then(function(X){M.status==="pending"&&(M.status="fulfilled",M.value=X)},function(X){M.status==="pending"&&(M.status="rejected",M.reason=X)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function ce(M,X,de,ue,Ee){var Ie=typeof M;(Ie==="undefined"||Ie==="boolean")&&(M=null);var Ae=!1;if(M===null)Ae=!0;else switch(Ie){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(M.$$typeof){case e:case t:Ae=!0;break;case m:return Ae=M._init,ce(Ae(M._payload),X,de,ue,Ee)}}if(Ae)return Ee=Ee(M),Ae=ue===""?"."+ie(M,0):ue,V(Ee)?(de="",Ae!=null&&(de=Ae.replace(Z,"$&/")+"/"),ce(Ee,X,de,"",function(m
vendor: 4,053 bytes, line 17
17n){return mn})):Ee!=null&&(B(Ee)&&(Ee=F(Ee,de+(Ee.key==null||M&&M.key===Ee.key?"":(""+Ee.key).replace(Z,"$&/")+"/")+Ae)),X.push(Ee)),1;Ae=0;var Ft=ue===""?".":ue+":";if(V(M))for(var Be=0;Be<M.length;Be++)ue=M[Be],Ie=Ft+ie(ue,Be),Ae+=ce(ue,X,de,Ie,Ee);else if(Be=b(M),typeof Be=="function")for(M=Be.call(M),Be=0;!(ue=M.next()).done;)ue=ue.value,Ie=Ft+ie(ue,Be++),Ae+=ce(ue,X,de,Ie,Ee);else if(Ie==="object"){if(typeof M.then=="function")return ce(oe(M),X,de,ue,Ee);throw X=String(M),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function O(M,X,de){if(M==null)return M;var ue=[],Ee=0;return ce(M,ue,"","",function(Ie){return X.call(de,Ie,Ee++)}),ue}function z(M){if(M._status===-1){var X=M._result;X=X(),X.then(function(de){(M._status===0||M._status===-1)&&(M._status=1,M._result=de)},function(de){(M._status===0||M._status===-1)&&(M._status=2,M._result=de)}),M._status===-1&&(M._status=0,M._result=X)}if(M._status===1)return M._result.default;throw M._result}var ee=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function ye(){}return Ve.Children={map:O,forEach:function(M,X,de){O(M,function(){X.apply(this,arguments)},de)},count:function(M){var X=0;return O(M,function(){X++}),X},toArray:function(M){return O(M,function(X){return X})||[]},only:function(M){if(!B(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Ve.Component=D,Ve.Fragment=n,Ve.Profiler=i,Ve.PureComponent=k,Ve.StrictMode=r,Ve.Suspense=f,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(M){return L.H.useMemoCache(M)}},Ve.cache=function(M){return function(){return M.apply(null,arguments)}},Ve.cloneElement=function(M,X,de){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ue=x({},M.props),Ee=M.key,Ie=void 0;if(X!=null)for(Ae in X.ref!==void 0&&(Ie=void 0),X.key!==void 0&&(Ee=""+X.key),X)!R.call(X,Ae)||Ae==="key"||Ae==="__self"||Ae==="__source"||Ae==="ref"&&X.ref===void 0||(ue[Ae]=X[Ae]);var Ae=arguments.length-2;if(Ae===1)ue.children=de;else if(1<Ae){for(var Ft=Array(Ae),Be=0;Be<Ae;Be++)Ft[Be]=arguments[Be+2];ue.children=Ft}return G(M.type,Ee,void 0,void 0,Ie,ue)},Ve.createContext=function(M){return M={$$typeof:c,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:o,_context:M},M},Ve.createElement=function(M,X,de){var ue,Ee={},Ie=null;if(X!=null)for(ue in X.key!==void 0&&(Ie=""+X.key),X)R.call(X,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(Ee[ue]=X[ue]);var Ae=arguments.length-2;if(Ae===1)Ee.children=de;else if(1<Ae){for(var Ft=Array(Ae),Be=0;Be<Ae;Be++)Ft[Be]=arguments[Be+2];Ee.children=Ft}if(M&&M.defaultProps)for(ue in Ae=M.defaultProps,Ae)Ee[ue]===void 0&&(Ee[ue]=Ae[ue]);return G(M,Ie,void 0,void 0,null,Ee)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(M){return{$$typeof:d,render:M}},Ve.isValidElement=B,Ve.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:z}},Ve.memo=function(M,X){return{$$typeof:h,type:M,compare:X===void 0?null:X}},Ve.startTransition=function(M){var X=L.T,de={};L.T=de;try{var ue=M(),Ee=L.S;Ee!==null&&Ee(de,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(ye,ee)}catch(Ie){ee(Ie)}finally{L.T=X}},Ve.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Ve.use=function(M){return L.H.use(M)},Ve.useActionState=function(M,X,de){return L.H.useActionState(M,X,de)}
vendor: 8,756 bytes, lines 17-33
17,Ve.useCallback=function(M,X){return L.H.useCallback(M,X)},Ve.useContext=function(M){return L.H.useContext(M)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(M,X){return L.H.useDeferredValue(M,X)},Ve.useEffect=function(M,X,de){var ue=L.H;if(typeof de=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ue.useEffect(M,X)},Ve.useId=function(){return L.H.useId()},Ve.useImperativeHandle=function(M,X,de){return L.H.useImperativeHandle(M,X,de)},Ve.useInsertionEffect=function(M,X){return L.H.useInsertionEffect(M,X)},Ve.useLayoutEffect=function(M,X){return L.H.useLayoutEffect(M,X)},Ve.useMemo=function(M,X){return L.H.useMemo(M,X)},Ve.useOptimistic=function(M,X){return L.H.useOptimistic(M,X)},Ve.useReducer=function(M,X,de){return L.H.useReducer(M,X,de)},Ve.useRef=function(M){return L.H.useRef(M)},Ve.useState=function(M){return L.H.useState(M)},Ve.useSyncExternalStore=function(M,X,de){return L.H.useSyncExternalStore(M,X,de)},Ve.useTransition=function(){return L.H.useTransition()},Ve.version="19.1.0",Ve}var V1;function Tv(){return V1||(V1=1,vg.exports=EN()),vg.exports}var S=Tv();const W=Rl(S),BT=bN({__proto__:null,default:W},[S]);var bg={exports:{}},Bc={},wg={exports:{}},xg={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var z1;function SN(){return z1||(z1=1,function(e){function t(O,z){var ee=O.length;O.push(z);e:for(;0<ee;){var ye=ee-1>>>1,M=O[ye];if(0<i(M,z))O[ye]=z,O[ee]=M,ee=ye;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var z=O[0],ee=O.pop();if(ee!==z){O[0]=ee;e:for(var ye=0,M=O.length,X=M>>>1;ye<X;){var de=2*(ye+1)-1,ue=O[de],Ee=de+1,Ie=O[Ee];if(0>i(ue,ee))Ee<M&&0>i(Ie,ue)?(O[ye]=Ie,O[Ee]=ee,ye=Ee):(O[ye]=ue,O[de]=ee,ye=de);else if(Ee<M&&0>i(Ie,ee))O[ye]=Ie,O[Ee]=ee,ye=Ee;else break e}}return z}function i(O,z){var ee=O.sortIndex-z.sortIndex;return ee!==0?ee:O.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],m=1,v=null,b=3,w=!1,x=!1,T=!1,D=!1,_=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function V(O){for(var z=n(h);z!==null;){if(z.callback===null)r(h);else if(z.startTime<=O)r(h),z.sortIndex=z.expirationTime,t(f,z);else break;z=n(h)}}function L(O){if(T=!1,V(O),!x)if(n(f)!==null)x=!0,R||(R=!0,ie());else{var z=n(h);z!==null&&ce(L,z.startTime-O)}}var R=!1,G=-1,F=5,B=-1;function le(){return D?!0:!(e.unstable_now()-B<F)}function Z(){if(D=!1,R){var O=e.unstable_now();B=O;var z=!0;try{e:{x=!1,T&&(T=!1,k(G),G=-1),w=!0;var ee=b;try{t:{for(V(O),v=n(f);v!==null&&!(v.expirationTime>O&&le());){var ye=v.callback;if(typeof ye=="function"){v.callback=null,b=v.priorityLevel;var M=ye(v.expirationTime<=O);if(O=e.unstable_now(),typeof M=="function"){v.callback=M,V(O),z=!0;break t}v===n(f)&&r(f),V(O)}else r(f);v=n(f)}if(v!==null)z=!0;else{var X=n(h);X!==null&&ce(L,X.startTime-O),z=!1}}break e}finally{v=null,b=ee,w=!1}z=void 0}}finally{z?ie():R=!1}}}var ie;if(typeof A=="function")ie=function(){A(Z)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,oe=ge.port2;ge.port1.onmessage=Z,ie=function(){oe.postMessage(null)}}else ie=function(){_(Z,0)};function ce(O,z){G=_(function(){O(e.unstable_now())},z)}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(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(O){switch(b){case 1:case 2:case 3:var z=3;break;default:z=b}var ee=b;b=z;try{return O()}finally{b=ee}},e.unstable_requestPaint=function(){D=!0},e.unstable_runWithPriority=function(O,z){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var ee=b;b=O;try{return z()}finally{b=ee}},e.unstable_scheduleCallback=function(O,z,ee){var ye=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ye+ee:ye):ee=ye,O){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=ee+M,O={id:m++,callback:z,priorityLevel:O,startTime:ee,expirationTime:M,sortIndex:-1},ee>ye?(O.sortIndex=ee,t(h,O),n(f)===null&&O===n(h)&&(T?(k(G),G=-1):T=!0,ce(L,ee-ye))):(O.sortIndex=M,t(f,O),x||w||(x=!0,R||(R=!0,ie()))),O},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(O){var z=b;return function(){var ee=b;b=z;try{return O.apply(this,arguments)}finally{b=ee}}}}(xg)),xg}var F1;function TN(){return F1||(F1=1,wg.exports=SN()),wg.exports}var Eg={exports:{}},Cn={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Y1;function DN(){if(Y1)return Cn;Y1=1;var e=Tv();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function o(f,h,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:v==null?null:""+v,children:f,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Cn.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},Cn.flushSync=function(f){var h=c.T,m=r.p;try{if(c.T=null,r.p=2,f)return f()}finally{c.T=h,r.p=m,r.d.f()}},Cn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},Cn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Cn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,v=d(m,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:w}):m==="script"&&r.d.X(f,{crossOrigin:v,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Cn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=d(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},Cn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,v=d(m,h.crossOrigin);r.d.L(f,m,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Cn.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=d(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},Cn.requestFormReset=function(f){r.d.r(f)},Cn.unstable_batchedUpdates=function(f,h){return f(h)},Cn.useFormState=function(f,h,m){return c.H.useFormState(f,h,m)},Cn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Cn.version="19.1.0",Cn}var q1;
vendor: 18,466 bytes, lines 33-48
33function UT(){if(q1)return Eg.exports;q1=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(),Eg.exports=DN(),Eg.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var $1;function _N(){if($1)return Bc;$1=1;var e=TN(),t=Tv(),n=UT();function r(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function o(a){var s=a,l=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(l=s.return),a=s.return;while(a)}return s.tag===3?l:null}function c(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function d(a){if(o(a)!==a)throw Error(r(188))}function f(a){var s=a.alternate;if(!s){if(s=o(a),s===null)throw Error(r(188));return s!==a?null:a}for(var l=a,u=s;;){var p=l.return;if(p===null)break;var g=p.alternate;if(g===null){if(u=p.return,u!==null){l=u;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===l)return d(p),a;if(g===u)return d(p),s;g=g.sibling}throw Error(r(188))}if(l.return!==u.return)l=p,u=g;else{for(var E=!1,C=p.child;C;){if(C===l){E=!0,l=p,u=g;break}if(C===u){E=!0,u=p,l=g;break}C=C.sibling}if(!E){for(C=g.child;C;){if(C===l){E=!0,l=g,u=p;break}if(C===u){E=!0,u=g,l=p;break}C=C.sibling}if(!E)throw Error(r(189))}}if(l.alternate!==u)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?a:s}function h(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=h(a),s!==null)return s;a=a.sibling}return null}var m=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),k=Symbol.for("react.consumer"),A=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function ie(a){return a===null||typeof a!="object"?null:(a=Z&&a[Z]||a["@@iterator"],typeof a=="function"?a:null)}var ge=Symbol.for("react.client.reference");function oe(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===ge?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case x:return"Fragment";case D:return"Profiler";case T:return"StrictMode";case L:return"Suspense";case R:return"SuspenseList";case B:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case w:return"Portal";case A:return(a.displayName||"Context")+".Provider";case k:return(a._context.displayName||"Context")+".Consumer";case V:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case G:return s=a.displayName||null,s!==null?s:oe(a.type)||"Memo";case F:s=a._payload,a=a._init;try{return oe(a(s))}catch{}}return null}var ce=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ye=[],M=-1;function X(a){return{current:a}}function de(a){0>M||(a.current=ye[M],ye[M]=null,M--)}function ue(a,s){M++,ye[M]=a.current,a.current=s}var Ee=X(null),Ie=X(null),Ae=X(null),Ft=X(null);function Be(a,s){switch(ue(Ae,s),ue(Ie,a),ue(Ee,null),s.nodeType){case 9:case 11:a=(a=s.documentElement)&&(a=a.namespaceURI)?f1(a):0;break;default:if(a=s.tagName,s=s.namespaceURI)s=f1(s),a=h1(s,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}de(Ee),ue(Ee,a)}function mn(){de(Ee),de(Ie),de(Ae)}function it(a){a.memoizedState!==null&&ue(Ft,a);var s=Ee.current,l=h1(s,a.type);s!==l&&(ue(Ie,a),ue(Ee,l))}function en(a){Ie.current===a&&(de(Ee),de(Ie)),Ft.current===a&&(de(Ft),Nc._currentValue=ee)}var vr=Object.prototype.hasOwnProperty,zn=e.unstable_scheduleCallback,On=e.unstable_cancelCallback,gn=e.unstable_shouldYield,mi=e.unstable_requestPaint,Yt=e.unstable_now,Kr=e.unstable_getCurrentPriorityLevel,gt=e.unstable_ImmediatePriority,ua=e.unstable_UserBlockingPriority,br=e.unstable_NormalPriority,Pn=e.unstable_LowPriority,Fn=e.unstable_IdlePriority,Oa=e.log,wr=e.unstable_setDisableYieldValue,Pt=null,dt=null;function an(a){if(typeof Oa=="function"&&wr(a),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Pt,a)}catch{}}var kt=Math.clz32?Math.clz32:xr,ms=Math.log,yn=Math.LN2;function xr(a){return a>>>=0,a===0?32:31-(ms(a)/yn|0)|0}var sn=256,yt=4194304;function Yn(a){var s=a&42;if(s!==0)return s;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function tr(a,s,l){var u=a.pendingLanes;if(u===0)return 0;var p=0,g=a.suspendedLanes,E=a.pingedLanes;a=a.warmLanes;var C=u&134217727;return C!==0?(u=C&~g,u!==0?p=Yn(u):(E&=C,E!==0?p=Yn(E):l||(l=C&~a,l!==0&&(p=Yn(l))))):(C=u&~g,C!==0?p=Yn(C):E!==0?p=Yn(E):l||(l=u&~a,l!==0&&(p=Yn(l)))),p===0?0:s!==0&&s!==p&&(s&g)===0&&(g=p&-p,l=s&-s,g>=l||g===32&&(l&4194048)!==0)?s:p}function vn(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function da(a,s){switch(a){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nr(){var a=sn;return sn<<=1,(sn&4194048)===0&&(sn=256),a}function Gr(){var a=yt;return yt<<=1,(yt&62914560)===0&&(yt=4194304),a}function rr(a){for(var s=[],l=0;31>l;l++)s.push(a);return s}function ar(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Pa(a,s,l,u,p,g){var E=a.pendingLanes;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=l,a.entangledLanes&=l,a.errorRecoveryDisabledLanes&=l,a.shellSuspendCounter=0;var C=a.entanglements,N=a.expirationTimes,q=a.hiddenUpdates;for(l=E&~l;0<l;){var re=31-kt(l),se=1<<re;C[re]=0,N[re]=-1;var K=q[re];if(K!==null)for(q[re]=null,re=0;re<K.length;re++){var Q=K[re];Q!==null&&(Q.lane&=-536870913)}l&=~se}u!==0&&Tt(a,u,0),g!==0&&p===0&&a.tag!==0&&(a.suspendedLanes|=g&~(E&~s))}function Tt(a,s,l){a.pendingLanes|=s,a.suspendedLanes&=~s;var u=31-kt(s);a.entangledLanes|=s,a.entanglements[u]=a.entanglements[u]|1073741824|l&4194090}function tn(a,s){var l=a.entangledLanes|=s;for(a=a.entanglements;l;){var u=31-kt(l),p=1<<u;p&s|a[u]&s&&(a[u]|=s),l&=~p}}function ke(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function ze(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function P(){var a=z.p;return a!==0?a:(a=window.event,a===void 0?32:N1(a.type))}function H(a,s){var l=z.p;try{return z.p=a,s()}finally{z.p=l}}var j=Math.random().toString(36).slice(2),$="__reactFiber$"+j,te="__reactProps$"+j,fe="__reactContainer$"+j,we="__reactEvents$"+j,pe="__reactListeners$"+j,xe="__reactHandles$"+j,be="__reactResources$"+j,Te="__reactMarker$"+j;function he(a){delete a[$],delete a[te],delete a[we],delete a[pe],delete a[xe]}function Re(a){var s=a[$];if(s)return s;for(var l=a.parentNode;l;){if(s=l[fe]||l[$]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(a=y1(a);a!==null;){if(l=a[$])return l;a=y1(a)}return s}a=l,l=a.parentNode}return null}function Ze(a){if(a=a[$]||a[fe]){var s=a.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return a}return null}function xt(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a.stateNode;throw Error(r(33))}function Dt(a){var s=a[be];return s||(s=a[be]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Je(a){a[Te]=!0}var qe=new Set,Qr={};function cn(a,s){Ue(a,s),Ue(a+"Capture",s)}function Ue(a,s){for(Qr[a]=s,a=0;a<s.length;a++)qe.add(s[a])}var Rt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Er={},qn={};function gs(a){return vr.call(qn,a)?!0:vr.call(Er,a)?!1:Rt.test(a)?qn[a]=!0:(Er[a]=!0,!1)}function Tn(a,s,l){if(gs(s))if(l===null)a.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var u=s.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+l)}}function ja(a,s,l){if(l===null)a.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+l)}}function $e(a,s,l,u){if(u===null)a.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttributeNS(s,l,""+u)}}var Dn,Xr;function Zr(a){if(Dn===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);Dn=s&&s[1]||"",Xr=-1<l.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+Dn+a+Xr}var ys=!1;function Mt(a,s){if(!a||ys)return"";ys=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(s){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(Q){var K=Q}Reflect.construct(a,[],se)}else{try{se.call()}catch(Q){K=Q}a.call(se.prototype)}}else{try{throw Error()}catch(Q){K=Q}(se=a())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(Q){if(Q&&K&&typeof Q.stack=="string")return[Q.stack,K.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=u.DetermineComponentFrameRoot(),E=g[0],C=g[1];if(E&&C){var N=E.split(` 44`),q=C.split(` 45`);for(p=u=0;u<N.length&&!N[u].includes("DetermineComponentFrameRoot");)u++;for(;p<q.length&&!q[p].includes("DetermineComponentFrameRoot");)p++;if(u===N.length||p===q.length)for(u=N.length-1,p=q.length-1;1<=u&&0<=p&&N[u]!==q[p];)p--;for(;1<=u&&0<=p;u--,p--)if(N[u]!==q[p]){if(u!==1||p!==1)do if(u--,p--,0>p||N[u]!==q[p]){var re=` 46`+N[u].replace(" at new "," at ");return a.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",a.displayName)),re}while(1<=u&&0<=p);break}}}finally{ys=!1,Error.prepareStackTrace=l}return(l=a?a.displayName||a.name:"")?Zr(l):""}function gi(a){switch(a.tag){case 26:case 27:case 5:return Zr(a.type);case 16:return Zr("Lazy");case 13:return Zr("Suspense");case 19:return Zr("SuspenseList");case 0:case 15:return Mt(a.type,!1);case 11:return Mt(a.type.render,!1);case 1:return Mt(a.type,!0);case 31:return Zr("Activity");default:return""}}function Yl(a){try{var s="";do s+=gi(a),a=a.return;while(a);return s}catch(l){return` 47Error generating stack: `+l.message+` 48`+l.stack}}function $n(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function o0(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function fR(a){var s=o0(a)?"checked":"value",l=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),u=""+a[s];if(!a.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,g=l.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return p.call(this)},set:function(E){u=""+E,g.call(this,E)}}),Object.defineProperty(a,s,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(E){u=""+E},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Ju(a){a._valueTracker||(a._valueTracker=fR(a))}function l0(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var l=s.getValue(),u="";return a&&(u=o0(a)?a.checked?"true":"false":a.value),a=u,a!==l?(s.setValue(a),!0):!1}function ed(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var hR=/[\n"\\]/g;function Sr(a){return a.replace(hR,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function pp(a,s,l,u,p,g,E,C){a.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?a.type=E:a.removeAttribute("type"),s!=null?E==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+$n(s)):a.value!==""+$n(s)&&(a.value=""+$n(s)):E!=="submit"&&E!=="reset"||a.removeAttribute("value"),s!=null?mp(a,E,$n(s)):l!=null?mp(a,E,$n(l)):u!=null&&a.removeAttribute("value"),p==null&&g!=null&&(a.defaultChecked=!!g),p!=null&&(a.checked=p&&typeof p!="function"&&typeof p!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?a.name=""+$n(C):a.removeAttribute("name")}function c0(a,s,l,u,p,g,E,C){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(a.type=g),s!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||s!=null))return;l=l!=null?""+$n(l):"",s=s!=null?""+$n(s):l,C||s===a.value||(a.value=s),a.defaultValue=s}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,a.checked=C?a.checked:!!u,a.defaultChecked=!!u,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(a.name=E)}function mp(a,s,l){s==="number"&&ed(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function mo(a,s,l,u){if(a=a.options,s){s={};for(var p=0;p<l.length;p++)s["$"+l[p]]=!0;for(l=0;l<a.length;l++)p=s.hasOwnProperty("$"+a[l].value),a[l].selected!==p&&(a[l].selected=p),p&&u&&(a[l].defaultSelected=!0)}else{for(l=""+$n(l),s=null,p=0;p<a.length;p++){if(a[p].value===l){a[p].selected=!0,u&&(a[p].defaultSelected=!0);return}s!==null||a[p].disabled||(s=a[p])}s!==null&&(s.selected=!0)}}function u0(a,s,l){if(s!=null&&(s=""+$n(s),s!==a.value&&(a.value=s),l==null)){a.defaultValue!==s&&(a.defaultValue=s);return}a.defaultValue=l!=null?""+$n(l):""}function d0(a,s,l,u){if(s==null){if(u!=null){if(l!=null)throw Error(r(92));if(ce(u)){if(1<u.length)throw Error(r(93));u=u[0]}l=u}l==null&&(l=""),s=l}l=$n(s),a.defaultValue=l,u=a.textContent,u===l&&u!==""&&u!==null&&(a.value=u)}function go(a,s){if(s){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=s;return}}a.textContent=s}var pR=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function f0(a,s,l){var u=s.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?a.setProperty(s,""):s==="float"?a.cssFloat="":a[s]="":u?a.setProperty(s,l):typeof l!="number"||l===0||pR.has(s)?s==="float"?a.cssFloat=l:a[s]=(""+l).trim():a[s]=l+"px"}function h0(a,s,l){if(s!=null&&typeof s!="object")throw Error(r(62));if(a=a.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||s!=null&&s.hasOwnProperty(u)||(u.indexOf("--")===0?a.setProperty(u,""):u==="float"?a.cssFloat="":a[u]="");for(var p in s)u=s[p],s.hasOwnProperty(p)&&l[p]!==u&&f0(a,p,u)}else for(var g in s)s.hasOwnProperty(g)&&f0(a,g,s[g])}function gp(a){if(a.indexOf("-")===-1)return!1;switch(a){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 mR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),gR=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function td(a){return gR.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var yp=null;function vp(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var yo=null,vo=null;function p0(a){var s=Ze(a);if(s&&(a=s.stateNode)){var l=a[te]||null;e:switch(a=s.stateNode,s.type){case"input":if(pp(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),s=l.name,l.type==="radio"&&s!=null){for(l=a;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Sr(""+s)+'"][type="radio"]'),s=0;s<l.length;s++){var u=l[s];if(u!==a&&u.form===a.form){var p=u[te]||null;if(!p)throw Error(r(90));pp(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<l.length;s++)u=l[s],u.form===a.form&&l0(u)}break e;case"textarea":u0(a,l.value,l.defaultValue);break e;case"select":s=l.value,s!=null&&mo(a,!!l.multiple,s,!1)}}}var bp=!1;function m0(a,s,l){if(bp)return a(s,l);bp=!0;try{var u=a(s);return u}finally{if(bp=!1,(yo!==null||vo!==null)&&(Hd(),yo&&(s=yo,a=vo,vo=yo=null,p0(s),a)))for(s=0;s<a.length;s++)p0(a[s])}}function ql(a,s){var l=a.stateNode;if(l===null)return null;var u=l[te]||null;if(u===null)return null;l=u[s];e:switch(s){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)||(a=a.type,u=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!u;break e;default:a=!1}if(a)return null;if(l&&typeof l!="function")throw Error(r(231,s,typeof l));return l}var La=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wp=!1;if(La)try{var $l={};Object.defineProperty($l,"passive",{get:function(){wp=!0}}),window.addEventListener("test",$l,$l),window.removeEventListener("test",$l,$l)}catch{wp=!1}var yi=null,xp=null,nd=null;function g0(){if(nd)return nd;var a,s=xp,l=s.length,u,p="value"in yi?yi.value:yi.textContent,g=p.length;for(a=0;a<l&&s[a]===p[a];a++);var E=l-a;for(u=1;u<=E&&s[l-u]===p[g-u];u++);return nd=p.slice(a,1<u?1-u:void 0)}function rd(a){var s=a.keyCode;
vendor: 2,821 bytes, line 48
48return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function ad(){return!0}function y0(){return!1}function Wn(a){function s(l,u,p,g,E){this._reactName=l,this._targetInst=p,this.type=u,this.nativeEvent=g,this.target=E,this.currentTarget=null;for(var C in a)a.hasOwnProperty(C)&&(l=a[C],this[C]=l?l(g):g[C]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?ad:y0,this.isPropagationStopped=y0,this}return m(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ad)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ad)},persist:function(){},isPersistent:ad}),s}var vs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},id=Wn(vs),Wl=m({},vs,{view:0,detail:0}),yR=Wn(Wl),Ep,Sp,Kl,sd=m({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dp,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Kl&&(Kl&&a.type==="mousemove"?(Ep=a.screenX-Kl.screenX,Sp=a.screenY-Kl.screenY):Sp=Ep=0,Kl=a),Ep)},movementY:function(a){return"movementY"in a?a.movementY:Sp}}),v0=Wn(sd),vR=m({},sd,{dataTransfer:0}),bR=Wn(vR),wR=m({},Wl,{relatedTarget:0}),Tp=Wn(wR),xR=m({},vs,{animationName:0,elapsedTime:0,pseudoElement:0}),ER=Wn(xR),SR=m({},vs,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),TR=Wn(SR),DR=m({},vs,{data:0}),b0=Wn(DR),_R={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CR={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"},AR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kR(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=AR[a])?!!s[a]:!1}function Dp(){return kR}var RR=m({},Wl,{key:function(a){if(a.key){var s=_R[a.key]||a.key;if(s!=="Unidentified")return s}
vendor: 5,186 bytes, line 48
48return a.type==="keypress"?(a=rd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?CR[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dp,charCode:function(a){return a.type==="keypress"?rd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?rd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),MR=Wn(RR),NR=m({},sd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),w0=Wn(NR),OR=m({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dp}),PR=Wn(OR),jR=m({},vs,{propertyName:0,elapsedTime:0,pseudoElement:0}),LR=Wn(jR),IR=m({},sd,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),BR=Wn(IR),UR=m({},vs,{newState:0,oldState:0}),HR=Wn(UR),VR=[9,13,27,32],_p=La&&"CompositionEvent"in window,Gl=null;La&&"documentMode"in document&&(Gl=document.documentMode);var zR=La&&"TextEvent"in window&&!Gl,x0=La&&(!_p||Gl&&8<Gl&&11>=Gl),E0=" ",S0=!1;function T0(a,s){switch(a){case"keyup":return VR.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function D0(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var bo=!1;function FR(a,s){switch(a){case"compositionend":return D0(s);case"keypress":return s.which!==32?null:(S0=!0,E0);case"textInput":return a=s.data,a===E0&&S0?null:a;default:return null}}function YR(a,s){if(bo)return a==="compositionend"||!_p&&T0(a,s)?(a=g0(),nd=xp=yi=null,bo=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return x0&&s.locale!=="ko"?null:s.data;default:return null}}var qR={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 _0(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!qR[a.type]:s==="textarea"}function C0(a,s,l,u){yo?vo?vo.push(u):vo=[u]:yo=u,s=$d(s,"onChange"),0<s.length&&(l=new id("onChange","change",null,l,u),a.push({event:l,listeners:s}))}var Ql=null,Xl=null;function $R(a){o1(a,0)}function od(a){var s=xt(a);if(l0(s))return a}function A0(a,s){if(a==="change")return s}var k0=!1;if(La){var Cp;if(La){var Ap="oninput"in document;if(!Ap){var R0=document.createElement("div");R0.setAttribute("oninput","return;"),Ap=typeof R0.oninput=="function"}Cp=Ap}else Cp=!1;k0=Cp&&(!document.documentMode||9<document.documentMode)}function M0(){Ql&&(Ql.detachEvent("onpropertychange",N0),Xl=Ql=null)}function N0(a){if(a.propertyName==="value"&&od(Xl)){var s=[];C0(s,Xl,a,vp(a)),m0($R,s)}}function WR(a,s,l){a==="focusin"?(M0(),Ql=s,Xl=l,Ql.attachEvent("onpropertychange",N0)):a==="focusout"&&M0()}function KR(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return od(Xl)}function GR(a,s){if(a==="click")return od(s)}function QR(a,s){if(a==="input"||a==="change")return od(s)}function XR(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var ir=typeof Object.is=="function"?Object.is:XR;function Zl(a,s){if(ir(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var l=Object.keys(a),u=Object.keys(s);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var p=l[u];if(!vr.call(s,p)||!ir(a[p],s[p]))return!1}return!0}function O0(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function P0(a,s){var l=O0(a);a=0;for(var u;l;){if(l.nodeType===3){if(u=a+l.textContent.length,a<=s&&u>=s)return{node:l,offset:s-a};a=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=O0(l)}}function j0(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?j0(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function L0(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=ed(a.document);s instanceof a.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)a=s.contentWindow;else break;s=ed(a.document)}return s}function kp(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}var ZR=La&&"documentMode"in document&&11>=document.documentMode,wo=null,Rp=null,Jl=null,Mp=!1;function I0(a,s,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Mp||wo==null||wo!==ed(u)||(u=wo,"selectionStart"in u&&kp(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: 76,082 bytes, line 48
48sNode:u.focusNode,focusOffset:u.focusOffset}),Jl&&Zl(Jl,u)||(Jl=u,u=$d(Rp,"onSelect"),0<u.length&&(s=new id("onSelect","select",null,s,l),a.push({event:s,listeners:u}),s.target=wo)))}function bs(a,s){var l={};return l[a.toLowerCase()]=s.toLowerCase(),l["Webkit"+a]="webkit"+s,l["Moz"+a]="moz"+s,l}var xo={animationend:bs("Animation","AnimationEnd"),animationiteration:bs("Animation","AnimationIteration"),animationstart:bs("Animation","AnimationStart"),transitionrun:bs("Transition","TransitionRun"),transitionstart:bs("Transition","TransitionStart"),transitioncancel:bs("Transition","TransitionCancel"),transitionend:bs("Transition","TransitionEnd")},Np={},B0={};La&&(B0=document.createElement("div").style,"AnimationEvent"in window||(delete xo.animationend.animation,delete xo.animationiteration.animation,delete xo.animationstart.animation),"TransitionEvent"in window||delete xo.transitionend.transition);function ws(a){if(Np[a])return Np[a];if(!xo[a])return a;var s=xo[a],l;for(l in s)if(s.hasOwnProperty(l)&&l in B0)return Np[a]=s[l];return a}var U0=ws("animationend"),H0=ws("animationiteration"),V0=ws("animationstart"),JR=ws("transitionrun"),eM=ws("transitionstart"),tM=ws("transitioncancel"),z0=ws("transitionend"),F0=new Map,Op="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Op.push("scrollEnd");function Jr(a,s){F0.set(a,s),cn(s,[a])}var Y0=new WeakMap;function Tr(a,s){if(typeof a=="object"&&a!==null){var l=Y0.get(a);return l!==void 0?l:(s={value:a,source:s,stack:Yl(s)},Y0.set(a,s),s)}return{value:a,source:s,stack:Yl(s)}}var Dr=[],Eo=0,Pp=0;function ld(){for(var a=Eo,s=Pp=Eo=0;s<a;){var l=Dr[s];Dr[s++]=null;var u=Dr[s];Dr[s++]=null;var p=Dr[s];Dr[s++]=null;var g=Dr[s];if(Dr[s++]=null,u!==null&&p!==null){var E=u.pending;E===null?p.next=p:(p.next=E.next,E.next=p),u.pending=p}g!==0&&q0(l,p,g)}}function cd(a,s,l,u){Dr[Eo++]=a,Dr[Eo++]=s,Dr[Eo++]=l,Dr[Eo++]=u,Pp|=u,a.lanes|=u,a=a.alternate,a!==null&&(a.lanes|=u)}function jp(a,s,l,u){return cd(a,s,l,u),ud(a)}function So(a,s){return cd(a,null,null,s),ud(a)}function q0(a,s,l){a.lanes|=l;var u=a.alternate;u!==null&&(u.lanes|=l);for(var p=!1,g=a.return;g!==null;)g.childLanes|=l,u=g.alternate,u!==null&&(u.childLanes|=l),g.tag===22&&(a=g.stateNode,a===null||a._visibility&1||(p=!0)),a=g,g=g.return;return a.tag===3?(g=a.stateNode,p&&s!==null&&(p=31-kt(l),a=g.hiddenUpdates,u=a[p],u===null?a[p]=[s]:u.push(s),s.lane=l|536870912),g):null}function ud(a){if(50<Tc)throw Tc=0,Vm=null,Error(r(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}var To={};function nM(a,s,l,u){this.tag=a,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,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 sr(a,s,l,u){return new nM(a,s,l,u)}function Lp(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ia(a,s){var l=a.alternate;return l===null?(l=sr(a.tag,s,a.key,a.mode),l.elementType=a.elementType,l.type=a.type,l.stateNode=a.stateNode,l.alternate=a,a.alternate=l):(l.pendingProps=s,l.type=a.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=a.flags&65011712,l.childLanes=a.childLanes,l.lanes=a.lanes,l.child=a.child,l.memoizedProps=a.memoizedProps,l.memoizedState=a.memoizedState,l.updateQueue=a.updateQueue,s=a.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=a.sibling,l.index=a.index,l.ref=a.ref,l.refCleanup=a.refCleanup,l}function $0(a,s){a.flags&=65011714;var l=a.alternate;return l===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,s=l.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}function dd(a,s,l,u,p,g){var E=0;if(u=a,typeof a=="function")Lp(a)&&(E=1);else if(typeof a=="string")E=aN(a,l,Ee.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case B:return a=sr(31,l,s,p),a.elementType=B,a.lanes=g,a;case x:return xs(l.children,p,g,s);case T:E=8,p|=24;break;case D:return a=sr(12,l,s,p|2),a.elementType=D,a.lanes=g,a;case L:return a=sr(13,l,s,p),a.elementType=L,a.lanes=g,a;case R:return a=sr(19,l,s,p),a.elementType=R,a.lanes=g,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case _:case A:E=10;break e;case k:E=9;break e;case V:E=11;break e;case G:E=14;break e;case F:E=16,u=null;break e}E=29,l=Error(r(130,a===null?"null":typeof a,"")),u=null}return s=sr(E,l,s,p),s.elementType=a,s.type=u,s.lanes=g,s}function xs(a,s,l,u){return a=sr(7,a,u,s),a.lanes=l,a}function Ip(a,s,l){return a=sr(6,a,null,s),a.lanes=l,a}function Bp(a,s,l){return s=sr(4,a.children!==null?a.children:[],a.key,s),s.lanes=l,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}var Do=[],_o=0,fd=null,hd=0,_r=[],Cr=0,Es=null,Ba=1,Ua="";function Ss(a,s){Do[_o++]=hd,Do[_o++]=fd,fd=a,hd=s}function W0(a,s,l){_r[Cr++]=Ba,_r[Cr++]=Ua,_r[Cr++]=Es,Es=a;var u=Ba;a=Ua;var p=32-kt(u)-1;u&=~(1<<p),l+=1;var g=32-kt(s)+p;if(30<g){var E=p-p%5;g=(u&(1<<E)-1).toString(32),u>>=E,p-=E,Ba=1<<32-kt(s)+p|l<<p|u,Ua=g+a}else Ba=1<<g|l<<p|u,Ua=a}function Up(a){a.return!==null&&(Ss(a,1),W0(a,1,0))}function Hp(a){for(;a===fd;)fd=Do[--_o],Do[_o]=null,hd=Do[--_o],Do[_o]=null;for(;a===Es;)Es=_r[--Cr],_r[Cr]=null,Ua=_r[--Cr],_r[Cr]=null,Ba=_r[--Cr],_r[Cr]=null}var jn=null,Ut=null,st=!1,Ts=null,fa=!1,Vp=Error(r(519));function Ds(a){var s=Error(r(418,""));throw nc(Tr(s,a)),Vp}function K0(a){var s=a.stateNode,l=a.type,u=a.memoizedProps;switch(s[$]=a,s[te]=u,l){case"dialog":Xe("cancel",s),Xe("close",s);break;case"iframe":case"object":case"embed":Xe("load",s);break;case"video":case"audio":for(l=0;l<_c.length;l++)Xe(_c[l],s);break;case"source":Xe("error",s);break;case"img":case"image":case"link":Xe("error",s),Xe("load",s);break;case"details":Xe("toggle",s);break;case"input":Xe("invalid",s),c0(s,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),Ju(s);break;case"select":Xe("invalid",s);break;case"textarea":Xe("invalid",s),d0(s,u.value,u.defaultValue,u.children),Ju(s)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||s.textContent===""+l||u.suppressHydrationWarning===!0||d1(s.textContent,l)?(u.popover!=null&&(Xe("beforetoggle",s),Xe("toggle",s)),u.onScroll!=null&&Xe("scroll",s),u.onScrollEnd!=null&&Xe("scrollend",s),u.onClick!=null&&(s.onclick=Wd),s=!0):s=!1,s||Ds(a)}function G0(a){for(jn=a.return;jn;)switch(jn.tag){case 5:case 13:fa=!1;return;case 27:case 3:fa=!0;return;default:jn=jn.return}}function ec(a){if(a!==jn)return!1;if(!st)return G0(a),st=!0,!1;var s=a.tag,l;if((l=s!==3&&s!==27)&&((l=s===5)&&(l=a.type,l=!(l!=="form"&&l!=="button")||rg(a.type,a.memoizedProps)),l=!l),l&&Ut&&Ds(a),G0(a),s===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,s=0;a;){if(a.nodeType===8)if(l=a.data,l==="/$"){if(s===0){Ut=ta(a.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++;a=a.nextSibling}Ut=null}}else s===27?(s=Ut,Oi(a.type)?(a=og,og=null,Ut=a):Ut=s):Ut=jn?ta(a.stateNode.nextSibling):null;return!0}function tc(){Ut=jn=null,st=!1}function Q0(){var a=Ts;return a!==null&&(Qn===null?Qn=a:Qn.push.apply(Qn,a),Ts=null),a}function nc(a){Ts===null?Ts=[a]:Ts.push(a)}var zp=X(null),_s=null,Ha=null;function vi(a,s,l){ue(zp,s._currentValue),s._currentValue=l}function Va(a){a._currentValue=zp.current,de(zp)}function Fp(a,s,l){for(;a!==null;){var u=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,u!==null&&(u.childLanes|=s)):u!==null&&(u.childLanes&s)!==s&&(u.childLanes|=s),a===l)break;a=a.return}}function Yp(a,s,l,u){var p=a.child;for(p!==null&&(p.return=a);p!==null;){var g=p.dependencies;if(g!==null){var E=p.child;g=g.firstContext;e:for(;g!==null;){var C=g;g=p;for(var N=0;N<s.length;N++)if(C.context===s[N]){g.lanes|=l,C=g.alternate,C!==null&&(C.lanes|=l),Fp(g.return,l,a),u||(E=null);break e}g=C.next}}else if(p.tag===18){if(E=p.return,E===null)throw Error(r(341));E.lanes|=l,g=E.alternate,g!==null&&(g.lanes|=l),Fp(E,l,a),E=null}else E=p.child;if(E!==null)E.return=p;else for(E=p;E!==null;){if(E===a){E=null;break}if(p=E.sibling,p!==null){p.return=E.return,E=p;break}E=E.return}p=E}}function rc(a,s,l,u){a=null;for(var p=s,g=!1;p!==null;){if(!g){if((p.flags&524288)!==0)g=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var E=p.alternate;if(E===null)throw Error(r(387));if(E=E.memoizedProps,E!==null){var C=p.type;ir(p.pendingProps.value,E.value)||(a!==null?a.push(C):a=[C])}}else if(p===Ft.current){if(E=p.alternate,E===null)throw Error(r(387));E.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(a!==null?a.push(Nc):a=[Nc])}p=p.return}a!==null&&Yp(s,a,l,u),s.flags|=262144}function pd(a){for(a=a.firstContext;a!==null;){if(!ir(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Cs(a){_s=a,Ha=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function _n(a){return X0(_s,a)}function md(a,s){return _s===null&&Cs(a),X0(a,s)}function X0(a,s){var l=s._currentValue;if(s={context:s,memoizedValue:l,next:null},Ha===null){if(a===null)throw Error(r(308));Ha=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else Ha=Ha.next=s;return l}var rM=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(l,u){a.push(u)}};this.abort=function(){s.aborted=!0,a.forEach(function(l){return l()})}},aM=e.unstable_scheduleCallback,iM=e.unstable_NormalPriority,on={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qp(){return{controller:new rM,data:new Map,refCount:0}}function ac(a){a.refCount--,a.refCount===0&&aM(iM,function(){a.controller.abort()})}var ic=null,$p=0,Co=0,Ao=null;function sM(a,s){if(ic===null){var l=ic=[];$p=0,Co=Km(),Ao={status:"pending",value:void 0,then:function(u){l.push(u)}}}return $p++,s.then(Z0,Z0),s}function Z0(){if(--$p===0&&ic!==null){Ao!==null&&(Ao.status="fulfilled");var a=ic;ic=null,Co=0,Ao=null;for(var s=0;s<a.length;s++)(0,a[s])()}}function oM(a,s){var l=[],u={status:"pending",value:null,reason:null,then:function(p){l.push(p)}};return a.then(function(){u.status="fulfilled",u.value=s;for(var p=0;p<l.length;p++)(0,l[p])(s)},function(p){for(u.status="rejected",u.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),u}var J0=O.S;O.S=function(a,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&sM(a,s),J0!==null&&J0(a,s)};var As=X(null);function Wp(){var a=As.current;return a!==null?a:_t.pooledCache}function gd(a,s){s===null?ue(As,As.current):ue(As,s.pool)}function ew(){var a=Wp();return a===null?null:{parent:on._currentValue,pool:a}}var sc=Error(r(460)),tw=Error(r(474)),yd=Error(r(542)),Kp={then:function(){}};function nw(a){return a=a.status,a==="fulfilled"||a==="rejected"}function vd(){}function rw(a,s,l){switch(l=a[l],l===void 0?a.push(s):l!==s&&(s.then(vd,vd),s=l),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,iw(a),a;default:if(typeof s.status=="string")s.then(vd,vd);else{if(a=_t,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=s,a.status="pending",a.then(function(u){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=u}},function(u){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=u}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,iw(a),a}throw oc=s,sc}}var oc=null;function aw(){if(oc===null)throw Error(r(459));var a=oc;return oc=null,a}function iw(a){if(a===sc||a===yd)throw Error(r(483))}var bi=!1;function Gp(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qp(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function wi(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function xi(a,s,l){var u=a.updateQueue;if(u===null)return null;if(u=u.shared,(ft&2)!==0){var p=u.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),u.pending=s,s=ud(a),q0(a,null,l),s}return cd(a,u,s,l),ud(a)}function lc(a,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194048)!==0)){var u=s.lanes;u&=a.pendingLanes,l|=u,s.lanes=l,tn(a,l)}}function Xp(a,s){var l=a.updateQueue,u=a.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var p=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var E={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?p=g=E:g=g.next=E,l=l.next}while(l!==null);g===null?p=g=s:g=g.next=s}else p=g=s;l={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:u.shared,callbacks:u.callbacks},a.updateQueue=l;return}a=l.lastBaseUpdate,a===null?l.firstBaseUpdate=s:a.next=s,l.lastBaseUpdate=s}var Zp=!1;function cc(){if(Zp){var a=Ao;if(a!==null)throw a}}function uc(a,s,l,u){Zp=!1;var p=a.updateQueue;bi=!1;var g=p.firstBaseUpdate,E=p.lastBaseUpdate,C=p.shared.pending;if(C!==null){p.shared.pending=null;var N=C,q=N.next;N.next=null,E===null?g=q:E.next=q,E=N;var re=a.alternate;re!==null&&(re=re.updateQueue,C=re.lastBaseUpdate,C!==E&&(C===null?re.firstBaseUpdate=q:C.next=q,re.lastBaseUpdate=N))}if(g!==null){var se=p.baseState;E=0,re=q=N=null,C=g;do{var K=C.lane&-536870913,Q=K!==C.lane;if(Q?(et&K)===K:(u&K)===K){K!==0&&K===Co&&(Zp=!0),re!==null&&(re=re.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var je=a,Ne=C;K=s;var wt=l;switch(Ne.tag){case 1:if(je=Ne.payload,typeof je=="function"){se=je.call(wt,se,K);break e}se=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Ne.payload,K=typeof je=="function"?je.call(wt,se,K):je,K==null)break e;se=m({},se,K);break e;case 2:bi=!0}}K=C.callback,K!==null&&(a.flags|=64,Q&&(a.flags|=8192),Q=p.callbacks,Q===null?p.callbacks=[K]:Q.push(K))}else Q={lane:K,tag:C.tag,payload:C.payload,callback:C.callback,next:null},re===null?(q=re=Q,N=se):re=re.next=Q,E|=K;if(C=C.next,C===null){if(C=p.shared.pending,C===null)break;Q=C,C=Q.next,Q.next=null,p.lastBaseUpdate=Q,p.shared.pending=null}}while(!0);re===null&&(N=se),p.baseState=N,p.firstBaseUpdate=q,p.lastBaseUpdate=re,g===null&&(p.shared.lanes=0),ki|=E,a.lanes=E,a.memoizedState=se}}function sw(a,s){if(typeof a!="function")throw Error(r(191,a));a.call(s)}function ow(a,s){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)sw(l[a],s)}var ko=X(null),bd=X(0);function lw(a,s){a=Ka,ue(bd,a),ue(ko,s),Ka=a|s.baseLanes}function Jp(){ue(bd,Ka),ue(ko,ko.current)}function em(){Ka=bd.current,de(ko),de(bd)}var Ei=0,Fe=null,vt=null,nn=null,wd=!1,Ro=!1,ks=!1,xd=0,dc=0,Mo=null,lM=0;function qt(){throw Error(r(321))}function tm(a,s){if(s===null)return!1;for(var l=0;l<s.length&&l<a.length;l++)if(!ir(a[l],s[l]))return!1;return!0}function nm(a,s,l,u,p,g){return Ei=g,Fe=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,O.H=a===null||a.memoizedState===null?qw:$w,ks=!1,g=l(u,p),ks=!1,Ro&&(g=uw(s,l,u,p)),cw(a),g}function cw(a){O.H=Cd;var s=vt!==null&&vt.next!==null;if(Ei=0,nn=vt=Fe=null,wd=!1,dc=0,Mo=null,s)throw Error(r(300));a===null||un||(a=a.dependencies,a!==null&&pd(a)&&(un=!0))}function uw(a,s,l,u){Fe=a;var p=0;do{if(Ro&&(Mo=null),dc=0,Ro=!1,25<=p)throw Error(r(301));if(p+=1,nn=vt=null,a.updateQueue!=null){var g=a.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}O.H=mM,g=s(l,u)}while(Ro);return g}function cM(){var a=O.H,s=a.useState()[0];return s=typeof s.then=="function"?fc(s):s,a=a.useState()[0],(vt!==null?vt.memoizedState:null)!==a&&(Fe.flags|=1024),s}function rm(){var a=xd!==0;return xd=0,a}function am(a,s,l){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~l}function im(a){if(wd){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}wd=!1}Ei=0,nn=vt=Fe=null,Ro=!1,dc=xd=0,Mo=null}function Kn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nn===null?Fe.memoizedState=nn=a:nn=nn.next=a,nn}function rn(){if(vt===null){var a=Fe.alternate;a=a!==null?a.memoizedState:null}else a=vt.next;var s=nn===null?Fe.memoizedState:nn.next;if(s!==null)nn=s,vt=a;else{if(a===null)throw Fe.alternate===null?Error(r(467)):Error(r(310));vt=a,a={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},nn===null?Fe.memoizedState=nn=a:nn=nn.next=a}return nn}function sm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fc(a){var s=dc;return dc+=1,Mo===null&&(Mo=[]),a=rw(Mo,a,s),s=Fe,(nn===null?s.memoizedState:nn.next)===null&&(s=s.alternate,O.H=s===null||s.memoizedState===null?qw:$w),a}function Ed(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return fc(a);if(a.$$typeof===A)return _n(a)}throw Error(r(438,String(a)))}function om(a){var s=null,l=Fe.updateQueue;if(l!==null&&(s=l.memoCache),s==null){var u=Fe.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(s={data:u.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),l===null&&(l=sm(),Fe.updateQueue=l),l.memoCache=s,l=s.data[s.index],l===void 0)for(l=s.data[s.index]=Array(a),u=0;u<a;u++)l[u]=le;return s.index++,l}function za(a,s){return typeof s=="function"?s(a):s}function Sd(a){var s=rn();return lm(s,vt,a)}function lm(a,s,l){var u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=l;var p=a.baseQueue,g=u.pending;if(g!==null){if(p!==null){var E=p.next;p.next=g.next,g.next=E}s.baseQueue=p=g,u.pending=null}if(g=a.baseState,p===null)a.memoizedState=g;else{s=p.next;var C=E=null,N=null,q=s,re=!1;do{var se=q.lane&-536870913;if(se!==q.lane?(et&se)===se:(Ei&se)===se){var K=q.revertLane;if(K===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),se===Co&&(re=!0);else if((Ei&K)===K){q=q.next,K===Co&&(re=!0);continue}else se={lane:0,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},N===null?(C=N=se,E=g):N=N.next=se,Fe.lanes|=K,ki|=K;se=q.action,ks&&l(g,se),g=q.hasEagerState?q.eagerState:l(g,se)}else K={lane:se,revertLane:q.revertLane,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},N===null?(C=N=K,E=g):N=N.next=K,Fe.lanes|=se,ki|=se;q=q.next}while(q!==null&&q!==s);if(N===null?E=g:N.next=C,!ir(g,a.memoizedState)&&(un=!0,re&&(l=Ao,l!==null)))throw l;a.memoizedState=g,a.baseState=E,a.baseQueue=N,u.lastRenderedState=g}return p===null&&(u.lanes=0),[a.memoizedState,u.dispatch]}function cm(a){var s=rn(),l=s.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var u=l.dispatch,p=l.pending,g=s.memoizedState;if(p!==null){l.pending=null;var E=p=p.next;do g=a(g,E.action),E=E.next;while(E!==p);ir(g,s.memoizedState)||(un=!0),s.memoizedState=g,s.baseQueue===null&&(s.baseState=g),l.lastRenderedState=g}return[g,u]}function dw(a,s,l){var u=Fe,p=rn(),g=st;if(g){if(l===void 0)throw Error(r(407));l=l()}else l=s();var E=!ir((vt||p).memoizedState,l);E&&(p.memoizedState=l,un=!0),p=p.queue;var C=pw.bind(null,u,p,a);if(hc(2048,8,C,[a]),p.getSnapshot!==s||E||nn!==null&&nn.memoizedState.tag&1){if(u.flags|=2048,No(9,Td(),hw.bind(null,u,p,l,s),null),_t===null)throw Error(r(349));g||(Ei&124)!==0||fw(u,s,l)}return l}function fw(a,s,l){a.flags|=16384,a={getSnapshot:s,value:l},s=Fe.updateQueue,s===null?(s=sm(),Fe.updateQueue=s,s.stores=[a]):(l=s.stores,l===null?s.stores=[a]:l.push(a))}function hw(a,s,l,u){s.value=l,s.getSnapshot=u,mw(s)&&gw(a)}function pw(a,s,l){return l(function(){mw(s)&&gw(a)})}function mw(a){var s=a.getSnapshot;a=a.value;try{var l=s();return!ir(a,l)}catch{return!0}}function gw(a){var s=So(a,2);s!==null&&dr(s,a,2)}function um(a){var s=Kn();if(typeof a=="function"){var l=a;if(a=l(),ks){an(!0);try{l()}finally{an(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:a},s}function yw(a,s,l,u){return a.baseState=l,lm(a,vt,typeof u=="function"?u:za)}function uM(a,s,l,u,p){if(_d(a))throw Error(r(485));if(a=s.action,a!==null){var g={payload:p,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){g.listeners.push(E)}};O.T!==null?l(!0):g.isTransition=!1,u(g),l=s.pending,l===null?(g.next=s.pending=g,vw(s,g)):(g.next=l.next,s.pending=l.next=g)}}function vw(a,s){var l=s.action,u=s.payload,p=a.state;if(s.isTransition){var g=O.T,E={};O.T=E;try{var C=l(p,u),N=O.S;N!==null&&N(E,C),bw(a,s,C)}catch(q){dm(a,s,q)}finally{O.T=g}}else try{g=l(p,u),bw(a,s,g)}catch(q){dm(a,s,q)}}function bw(a,s,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){ww(a,s,u)},function(u){return dm(a,s,u)}):ww(a,s,l)}function ww(a,s,l){s.status="fulfilled",s.value=l,xw(s),a.state=l,s=a.pending,s!==null&&(l=s.next,l===s?a.pending=null:(l=l.next,s.next=l,vw(a,l)))}function dm(a,s,l){var u=a.pending;if(a.pending=null,u!==null){u=u.next;do s.status="rejected",s.reason=l,xw(s),s=s.next;while(s!==u)}a.action=null}function xw(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}function Ew(a,s){return s}function Sw(a,s){if(st){var l=_t.formState;if(l!==null){e:{var u=Fe;if(st){if(Ut){t:{for(var p=Ut,g=fa;p.nodeType!==8;){if(!g){p=null;break t}if(p=ta(p.nextSibling),p===null){p=null;break t}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){Ut=ta(p.nextSibling),u=p.data==="F!";break e}}Ds(u)}u=!1}u&&(s=l[0])}}return l=Kn(),l.memoizedState=l.baseState=s,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ew,lastRenderedState:s},l.queue=u,l=zw.bind(null,Fe,u),u.dispatch=l,u=um(!1),g=gm.bind(null,Fe,!1,u.queue),u=Kn(),p={state:s,dispatch:null,action:a,pending:null},u.queue=p,l=uM.bind(null,Fe,p,g,l),p.dispatch=l,u.memoizedState=a,[s,l,!1]}function Tw(a){var s=rn();return Dw(s,vt,a)}function Dw(a,s,l){if(s=lm(a,s,Ew)[0],a=Sd(za)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var u=fc(s)}catch(E){throw E===sc?yd:E}else u=s;s=rn();var p=s.queue,g=p.dispatch;return l!==s.memoizedState&&(Fe.flags|=2048,No(9,Td(),dM.bind(null,p,l),null)),[u,g,a]}function dM(a,s){a.action=s}function _w(a){var s=rn(),l=vt;if(l!==null)return Dw(s,l,a);rn(),s=s.memoizedState,l=rn();var u=l.queue.dispatch;return l.memoizedState=a,[s,u,!1]}function No(a,s,l,u){return a={tag:a,create:l,deps:u,inst:s,next:null},s=Fe.updateQueue,s===null&&(s=sm(),Fe.updateQueue=s),l=s.lastEffect,l===null?s.lastEffect=a.next=a:(u=l.next,l.next=a,a.next=u,s.lastEffect=a),a}function Td(){return{destroy:void 0,resource:void 0}}function Cw(){return rn().memoizedState}function Dd(a,s,l,u){var p=Kn();u=u===void 0?null:u,Fe.flags|=a,p.memoizedState=No(1|s,Td(),l,u)}function hc(a,s,l,u){var p=rn();u=u===void 0?null:u;var g=p.memoizedState.inst;vt!==null&&u!==null&&tm(u,vt.memoizedState.deps)?p.memoizedState=No(s,g,l,u):(Fe.flags|=a,p.memoizedState=No(1|s,g,l,u))}function Aw(a,s){Dd(8390656,8,a,s)}function kw(a,s){hc(2048,8,a,s)}function Rw(a,s){return hc(4,2,a,s)}function Mw(a,s){return hc(4,4,a,s)}function Nw(a,s){if(typeof s=="function"){a=a();var l=s(a);return function(){typeof l=="function"?l():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function Ow(a,s,l){l=l!=null?l.concat([a]):null,hc(4,4,Nw.bind(null,s,a),l)}function fm(){}function Pw(a,s){var l=rn();s=s===void 0?null:s;var u=l.memoizedState;return s!==null&&tm(s,u[1])?u[0]:(l.memoizedState=[a,s],a)}function jw(a,s){var l=rn();s=s===void 0?null:s;var u=l.memoizedState;if(s!==null&&tm(s,u[1]))return u[0];if(u=a(),ks){an(!0);try{a()}finally{an(!1)}}return l.memoizedState=[u,s],u}function hm(a,s,l){return l===void 0||(Ei&1073741824)!==0?a.memoizedState=s:(a.memoizedState=l,a=Bx(),Fe.lanes|=a,ki|=a,l)}function Lw(a,s,l,u){return ir(l,s)?l:ko.current!==null?(a=hm(a,l,u),ir(a,s)||(un=!0),a):(Ei&42)===0?(un=!0,a.memoizedState=l):(a=Bx(),Fe.lanes|=a,ki|=a,s)}function Iw(a,s,l,u,p){var g=z.p;z.p=g!==0&&8>g?g:8;var E=O.T,C={};O.T=C,gm(a,!1,s,l);try{var N=p(),q=O.S;if(q!==null&&q(C,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var re=oM(N,u);pc(a,s,re,ur(a))}else pc(a,s,u,ur(a))}catch(se){pc(a,s,{then:function(){},status:"rejected",reason:se},ur())}finally{z.p=g,O.T=E}}function fM(){}function pm(a,s,l,u){if(a.tag!==5)throw Error(r(476));var p=Bw(a).queue;Iw(a,p,s,ee,l===null?fM:function(){return Uw(a),l(u)})}function Bw(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:ee},next:null};var l={};return s.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:l},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function Uw(a){var s=Bw(a).next.queue;pc(a,s,{},ur())}function mm(){return _n(Nc)}function Hw(){return rn().memoizedState}function Vw(){return rn().memoizedState}function hM(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var l=ur();a=wi(l);var u=xi(s,a,l);u!==null&&(dr(u,s,l),lc(u,s,l)),s={cache:qp()},a.payload=s;return}s=s.return}}function pM(a,s,l){var u=ur();l={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},_d(a)?Fw(s,l):(l=jp(a,s,l,u),l!==null&&(dr(l,a,u),Yw(l,s,u)))}function zw(a,s,l){var u=ur();pc(a,s,l,u)}function pc(a,s,l,u){var p={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(_d(a))Fw(s,p);else{var g=a.alternate;if(a.lanes===0&&(g===null||g.lanes===0)&&(g=s.lastRenderedReducer,g!==null))try{var E=s.lastRenderedState,C=g(E,l);if(p.hasEagerState=!0,p.eagerState=C,ir(C,E))return cd(a,s,p,0),_t===null&&ld(),!1}catch{}finally{}if(l=jp(a,s,p,u),l!==null)return dr(l,a,u),Yw(l,s,u),!0}return!1}function gm(a,s,l,u){if(u={lane:2,revertLane:Km(),action:u,hasEagerState:!1,eagerState:null,next:null},_d(a)){if(s)throw Error(r(479))}else s=jp(a,l,u,2),s!==null&&dr(s,a,2)}function _d(a){var s=a.alternate;return a===Fe||s!==null&&s===Fe}function Fw(a,s){Ro=wd=!0;var l=a.pending;l===null?s.next=s:(s.next=l.next,l.next=s),a.pending=s}function Yw(a,s,l){if((l&4194048)!==0){var u=s.lanes;u&=a.pendingLanes,l|=u,s.lanes=l,tn(a,l)}}var Cd={readContext:_n,use:Ed,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt},qw={readContext:_n,use:Ed,useCallback:function(a,s){return Kn().memoizedState=[a,s===void 0?null:s],a},useContext:_n,useEffect:Aw,useImperativeHandle:function(a,s,l){l=l!=null?l.concat([a]):null,Dd(4194308,4,Nw.bind(null,s,a),l)},useLayoutEffect:function(a,s){return Dd(4194308,4,a,s)},useInsertionEffect:function(a,s){Dd(4,2,a,s)},useMemo:function(a,s){var l=Kn();s=s===void 0?null:s;var u=a();if(ks){an(!0);try{a()}finally{an(!1)}}return l.memoizedState=[u,s],u},useReducer:function(a,s,l){var u=Kn();if(l!==void 0){var p=l(s);if(ks){an(!0);try{l(s)}finally{an(!1)}}}else p=s;return u.memoizedState=u.baseState=p,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:p},u.queue=a,a=a.dispatch=pM.bind(null,Fe,a),[u.memoizedState,a]},useRef:function(a){var s=Kn();return a={current:a},s.memoizedState=a},useState:function(a){a=um(a);var s=a.queue,l=zw.bind(null,Fe,s);return s.dispatch=l,[a.memoizedState,l]},useDebugValue:fm,useDeferredValue:function(a,s){var l=Kn();return hm(l,a,s)},useTransition:function(){var a=um(!1);return a=Iw.bind(null,Fe,a.queue,!0,!1),Kn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,l){var u=Fe,p=Kn();if(st){if(l===void 0)throw Error(r(407));l=l()}else{if(l=s(),_t===null)throw Error(r(349));(et&124)!==0||fw(u,s,l)}p.memoizedState=l;var g={value:l,getSnapshot:s};return p.queue=g,Aw(pw.bind(null,u,g,a),[a]),u.flags|=2048,No(9,Td(),hw.bind(null,u,g,l,s),null),l},useId:function(){var a=Kn(),s=_t.identifierPrefix;if(st){var l=Ua,u=Ba;l=(u&~(1<<32-kt(u)-1)).toString(32)+l,s="«"+s+"R"+l,l=xd++,0<l&&(s+="H"+l.toString(32)),s+="»"}else l=lM++,s="«"+s+"r"+l.toString(32)+"»";return a.memoizedState=s},useHostTransitionStatus:mm,useFormState:Sw,useActionState:Sw,useOptimistic:function(a){var s=Kn();s.memoizedState=s.baseState=a;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=l,s=gm.bind(null,Fe,!0,l),l.dispatch=s,[a,s]},useMemoCache:om,useCacheRefresh:function(){return Kn().memoizedState=hM.bind(null,Fe)}},$w={readContext:_n,use:Ed,useCallback:Pw,useContext:_n,useEffect:kw,useImperativeHandle:Ow,useInsertionEffect:Rw,useLayoutEffect:Mw,useMemo:jw,useReducer:Sd,useRef:Cw,useState:function(){return Sd(za)},useDebugValue:fm,useDeferredValue:function(a,s){var l=rn();return Lw(l,vt.memoizedState,a,s)},useTransition:function(){var a=Sd(za)[0],s=rn().memoizedState;return[typeof a=="boolean"?a:fc(a),s]},useSyncExternalStore:dw,useId:Hw,useHostTransitionStatus:mm,useFormState:Tw,useActionState:Tw,useOptimistic:function(a,s){var l=rn();return yw(l,vt,a,s)},useMemoCache:om,useCacheRefresh:Vw},mM={readContext:_n,use:Ed,useCallback:Pw,useContext:_n,useEffect:kw,useImperativeHandle:Ow,useInsertionEffect:Rw,useLayoutEffect:Mw,useMemo:jw,useReducer:cm,useRef:Cw,useState:function(){return cm(za)},useDebugValue:fm,useDeferredValue:function(a,s){var l=rn();return vt===null?hm(l,a,s):Lw(l,vt.memoizedState,a,s)},useTransition:function(){var a=cm(za)[0],s=rn().memoizedState;return[typeof a=="boolean"?a:fc(a),s]},useSyncExternalStore:dw,useId:Hw,useHostTransitionStatus:mm,useFormState:_w,useActionState:_w,useOptimistic:function(a,s){var l=rn();return vt!==null?yw(l,vt,a,s):(l.baseState=a,[a,l.queue.dispatch])},useMemoCache:om,useCacheRefresh:Vw},Oo=null,mc=0;function Ad(a){var s=mc;return mc+=1,Oo===null&&(Oo=[]),rw(Oo,a,s)}function gc(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}function kd(a,s){throw s.$$typeof===v?Error(r(525)):(a=Object.prototype.toString.call(s),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}function Ww(a){var s=a._init;return s(a._payload)}function Kw(a){function s(U,I){if(a){var Y=U.deletions;Y===null?(U.deletions=[I],U.flags|=16):Y.push(I)}}function l(U,I){if(!a)return null;for(;I!==null;)s(U,I),I=I.sibling;return null}function u(U){for(var I=new Map;U!==null;)U.key!==null?I.set(U.key,U):I.set(U.index,U),U=U.sibling;return I}function p(U,I){return U=Ia(U,I),U.index=0,U.sibling=null,U}function g(U,I,Y){return U.index=Y,a?(Y=U.alternate,Y!==null?(Y=Y.index,Y<I?(U.flags|=67108866,I):Y):(U.flags|=67108866,I)):(U.flags|=1048576,I)}function E(U){return a&&U.alternate===null&&(U.flags|=67108866),U}function C(U,I,Y,ae){return I===null||I.tag!==6?(I=Ip(Y,U.mode,ae),I.return=U,I):(I=p(I,Y),I.return=U,I)}function N(U,I,Y,ae){var Se=Y.type;return Se===x?re(U,I,Y.props.children,ae,Y.key):I!==null&&(I.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===F&&Ww(Se)===I.type)?(I=p(I,Y.props),gc(I,Y),I.return=U,I):(I=dd(Y.type,Y.key,Y.props,null,U.mode,ae),gc(I,Y),I.return=U,I)}function q(U,I,Y,ae){return I===null||I.tag!==4||I.stateNode.containerInfo!==Y.containerInfo||I.stateNode.implementation!==Y.implementation?(I=Bp(Y,U.mode,ae),I.return=U,I):(I=p(I,Y.children||[]),I.return=U,I)}function re(U,I,Y,ae,Se){return I===null||I.tag!==7?(I=xs(Y,U.mode,ae,Se),I.return=U,I):(I=p(I,Y),I.return=U,I)}function se(U,I,Y){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Ip(""+I,U.mode,Y),I.return=U,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return Y=dd(I.type,I.key,I.props,null,U.mode,Y),gc(Y,I),Y.return=U,Y;case w:return I=Bp(I,U.mode,Y),I.return=U,I;case F:var ae=I._init;return I=ae(I._payload),se(U,I,Y)}if(ce(I)||ie(I))return I=xs(I,U.mode,Y,null),I.return=U,I;if(typeof I.then=="function")return se(U,Ad(I),Y);if(I.$$typeof===A)return se(U,md(U,I),Y);kd(U,I)}return null}function K(U,I,Y,ae){var Se=I!==null?I.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Se!==null?null:C(U,I,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:return Y.key===Se?N(U,I,Y,ae):null;case w:return Y.key===Se?q(U,I,Y,ae):null;case F:return Se=Y._init,Y=Se(Y._payload),K(U,I,Y,ae)}if(ce(Y)||ie(Y))return Se!==null?null:re(U,I,Y,ae,null);if(typeof Y.then=="function")return K(U,I,Ad(Y),ae);if(Y.$$typeof===A)return K(U,I,md(U,Y),ae);kd(U,Y)}return null}function Q(U,I,Y,ae,Se){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return U=U.get(Y)||null,C(I,U,""+ae,Se);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case b:return U=U.get(ae.key===null?Y:ae.key)||null,N(I,U,ae,Se);case w:return U=U.get(ae.key===null?Y:ae.key)||null,q(I,U,ae,Se);case F:var We=ae._init;return ae=We(ae._payload),Q(U,I,Y,ae,Se)}if(ce(ae)||ie(ae))return U=U.get(Y)||null,re(I,U,ae,Se,null);if(typeof ae.then=="function")return Q(U,I,Y,Ad(ae),Se);if(ae.$$typeof===A)return Q(U,I,Y,md(I,ae),Se);kd(I,ae)}return null}function je(U,I,Y,ae){for(var Se=null,We=null,_e=I,Oe=I=0,fn=null;_e!==null&&Oe<Y.length;Oe++){_e.index>Oe?(fn=_e,_e=null):fn=_e.sibling;var rt=K(U,_e,Y[Oe],ae);if(rt===null){_e===null&&(_e=fn);break}a&&_e&&rt.alternate===null&&s(U,_e),I=g(rt,I,Oe),We===null?Se=rt:We.sibling=rt,We=rt,_e=fn}if(Oe===Y.length)return l(U,_e),st&&Ss(U,Oe),Se;if(_e===null){for(;Oe<Y.length;Oe++)_e=se(U,Y[Oe],ae),_e!==null&&(I=g(_e,I,Oe),We===null?Se=_e:We.sibling=_e,We=_e);return st&&Ss(U,Oe),Se}for(_e=u(_e);Oe<Y.length;Oe++)fn=Q(_e,U,Oe,Y[Oe],ae),fn!==null&&(a&&fn.alternate!==null&&_e.delete(fn.key===null?Oe:fn.key),I=g(fn,I,Oe),We===null?Se=fn:We.sibling=fn,We=fn);return a&&_e.forEach(function(Bi){return s(U,Bi)}),st&&Ss(U,Oe),Se}function Ne(U,I,Y,ae){if(Y==null)throw Error(r(151));for(var Se=null,We=null,_e=I,Oe=I=0,fn=null,rt=Y.next();_e!==null&&!rt.done;Oe++,rt=Y.next()){_e.index>Oe?(fn=_e,_e=null):fn=_e.sibling;var Bi=K(U,_e,rt.value,ae);if(Bi===null){_e===null&&(_e=fn);break}a&&_e&&Bi.alternate===null&&s(U,_e),I=g(Bi,I,Oe),We===null?Se=Bi:We.sibling=Bi,We=Bi,_e=fn}if(rt.done)return l(U,_e),st&&Ss(U,Oe),Se;if(_e===null){for(;!rt.done;Oe++,rt=Y.next())rt=se(U,rt.value,ae),rt!==null&&(I=g(rt,I,Oe),We===null?Se=rt:We.sibling=rt,We=rt);return st&&Ss(U,Oe),Se}for(_e=u(_e);!rt.done;Oe++,rt=Y.next())rt=Q(_e,U,Oe,rt.value,ae),rt!==null&&(a&&rt.alternate!==null&&_e.delete(rt.key===null?Oe:rt.key),I=g(rt,I,Oe),We===null?Se=rt:We.sibling=rt,We=rt);return a&&_e.forEach(function(gN){return s(U,gN)}),st&&Ss(U,Oe),Se}function wt(U,I,Y,ae){if(typeof Y=="object"&&Y!==null&&Y.type===x&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:e:{for(var Se=Y.key;I!==null;){if(I.key===Se){if(Se=Y.type,Se===x){if(I.tag===7){l(U,I.sibling),ae=p(I,Y.props.children),ae.return=U,U=ae;break e}}else if(I.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===F&&Ww(Se)===I.type){l(U,I.sibling),ae=p(I,Y.props),gc(ae,Y),ae.return=U,U=ae;break e}l(U,I);break}else s(U,I);I=I.sibling}Y.type===x?(ae=xs(Y.props.children,U.mode,ae,Y.key),ae.return=U,U=ae):(ae=dd(Y.type,Y.key,Y.props,null,U.mode,ae),gc(ae,Y),ae.return=U,U=ae)}return E(U);case w:e:{for(Se=Y.key;I!==null;){if(I.key===Se)if(I.tag===4&&I.stateNode.containerInfo===Y.containerInfo&&I.stateNode.implementation===Y.implementation){l(U,I.sibling),ae=p(I,Y.children||[]),ae.return=U,U=ae;break e}else{l(U,I);break}else s(U,I);I=I.sibling}ae=Bp(Y,U.mode,ae),ae.return=U,U=ae}return E(U);case F:return Se=Y._init,Y=Se(Y._payload),wt(U,I,Y,ae)}if(ce(Y))return je(U,I,Y,ae);if(ie(Y)){if(Se=ie(Y),typeof Se!="function")throw Error(r(150));return Y=Se.call(Y),Ne(U,I,Y,ae)}if(typeof Y.then=="function")return wt(U,I,Ad(Y),ae);if(Y.$$typeof===A)return wt(U,I,md(U,Y),ae);kd(U,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,I!==null&&I.tag===6?(l(U,I.sibling),ae=p(I,Y),ae.return=U,U=ae):(l(U,I),ae=Ip(Y,U.mode,ae),ae.return=U,U=ae),E(U)):l(U,I)}return function(U,I,Y,ae){try{mc=0;var Se=wt(U,I,Y,ae);return Oo=null,Se}catch(_e){if(_e===sc||_e===yd)throw _e;var We=sr(29,_e,null,U.mode);return We.lanes=ae,We.return=U,We}finally{}}}var Po=Kw(!0),Gw=Kw(!1),Ar=X(null),ha=null;function Si(a){var s=a.alternate;ue(ln,ln.current&1),ue(Ar,a),ha===null&&(s===null||ko.current!==null||s.memoizedState!==null)&&(ha=a)}function Qw(a){if(a.tag===22){if(ue(ln,ln.current),ue(Ar,a),ha===null){var s=a.alternate;s!==null&&s.memoizedState!==null&&(ha=a)}}else Ti()}function Ti(){ue(ln,ln.current),ue(Ar,Ar.current)}function Fa(a){de(Ar),ha===a&&(ha=null),de(ln)}var ln=X(0);function Rd(a){for(var s=a;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||sg(l)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}function ym(a,s,l,u){s=a.memoizedState,l=l(u,s),l=l==null?s:m({},s,l),a.memoizedState=l,a.lanes===0&&(a.updateQueue.baseState=l)}var vm={enqueueSetState:function(a,s,l){a=a._reactInternals;var u=ur(),p=wi(u);p.payload=s,l!=null&&(p.callback=l),s=xi(a,p,u),s!==null&&(dr(s,a,u),lc(s,a,u))},enqueueReplaceState:function(a,s,l){a=a._reactInternals;var u=ur(),p=wi(u);p.tag=1,p.payload=s,l!=null&&(p.callback=l),s=xi(a,p,u),s!==null&&(dr(s,a,u),lc(s,a,u))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var l=ur(),u=wi(l);u.tag=2,s!=null&&(u.callback=s),s=xi(a,u,l),s!==null&&(dr(s,a,l),lc(s,a,l))}};function Xw(a,s,l,u,p,g,E){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(u,g,E):s.prototype&&s.prototype.isPureReactComponent?!Zl(l,u)||!Zl(p,g):!0}function Zw(a,s,l,u){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,u),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,u),s.state!==a&&vm.enqueueReplaceState(s,s.state,null)}function Rs(a,s){var l=s;if("ref"in s){l={};for(var u in s)u!=="ref"&&(l[u]=s[u])}if(a=a.defaultProps){l===s&&(l=m({},l));for(var p in a)l[p]===void 0&&(l[p]=a[p])}return l}var Md=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function Jw(a){Md(a)}function ex(a){console.error(a)}function tx(a){Md(a)}function Nd(a,s){try{var l=a.onUncaughtError;l(s.value,{componentStack:s.stack})}catch(u){setTimeout(function(){throw u})}}function nx(a,s,l){try{var u=a.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function bm(a,s,l){return l=wi(l),l.tag=3,l.payload={element:null},l.callback=function(){Nd(a,s)},l}function rx(a){return a=wi(a),a.tag=3,a}function ax(a,s,l,u){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var g=u.value;a.payload=function(){return p(g)},a.callback=function(){nx(s,l,u)}}var E=l.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){nx(s,l,u),typeof p!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var C=u.stack;this.componentDidCatch(u.value,{componentStack:C!==null?C:""})})}function gM(a,s,l,u,p){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(s=l.alternate,s!==null&&rc(s,l,p,!0),l=Ar.current,l!==null){switch(l.tag){case 13:return ha===null?Fm():l.alternate===null&&Ht===0&&(Ht=3),l.flags&=-257,l.flags|=65536,l.lanes=p,u===Kp?l.flags|=16384:(s=l.updateQueue,s===null?l.updateQueue=new Set([u]):s.add(u),qm(a,u,p)),!1;case 22:return l.flags|=65536,u===Kp?l.flags|=16384:(s=l.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=s):(l=s.retryQueue,l===null?s.retryQueue=new Set([u]):l.add(u)),qm(a,u,p)),!1}throw Error(r(435,l.tag))}return qm(a,u,p),Fm(),!1}if(st)return s=Ar.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,u!==Vp&&(a=Error(r(422),{cause:u}),nc(Tr(a,l)))):(u!==Vp&&(s=Error(r(423),{cause:u}),nc(Tr(s,l))),a=a.current.alternate,a.flags|=65536,p&=-p,a.lanes|=p,u=Tr(u,l),p=bm(a.stateNode,u,p),Xp(a,p),Ht!==4&&(Ht=2)),!1;var g=Error(r(520),{cause:u});if(g=Tr(g,l),Sc===null?Sc=[g]:Sc.push(g),Ht!==4&&(Ht=2),s===null)return!0;u=Tr(u,l),l=s;do{switch(l.tag){case 3:return l.flags|=65536,a=p&-p,l.lanes|=a,a=bm(l.stateNode,u,a),Xp(l,a),!1;case 1:if(s=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ri===null||!Ri.has(g))))return l.flags|=65536,p&=-p,l.lanes|=p,p=rx(p),ax(p,a,l,u),Xp(l,p),!1}l=l.return}while(l!==null);return!1}var ix=Error(r(461)),un=!1;function bn(a,s,l,u){s.child=a===null?Gw(s,null,l,u):Po(s,a.child,l,u)}function sx(a,s,l,u,p){l=l.render;var g=s.ref;if("ref"in u){var E={};for(var C in u)C!=="ref"&&(E[C]=u[C])}else E=u;return Cs(s),u=nm(a,s,l,E,g,p),C=rm(),a!==null&&!un?(am(a,s,p),Ya(a,s,p)):(st&&C&&Up(s),s.flags|=1,bn(a,s,u,p),s.child)}function ox(a,s,l,u,p){if(a===null){var g=l.type;return typeof g=="function"&&!Lp(g)&&g.defaultProps===void 0&&l.compare===null?(s.tag=15,s.type=g,lx(a,s,g,u,p)):(a=dd(l.type,null,u,s,s.mode,p),a.ref=s.ref,a.return=s,s.child=a)}if(g=a.child,!Cm(a,p)){var E=g.memoizedProps;if(l=l.compare,l=l!==null?l:Zl,l(E,u)&&a.ref===s.ref)return Ya(a,s,p)}return s.flags|=1,a=Ia(g,u),a.ref=s.ref,a.return=s,s.child=a}function lx(a,s,l,u,p){if(a!==null){var g=a.memoizedProps;if(Zl(g,u)&&a.ref===s.ref)if(un=!1,s.pendingProps=u=g,Cm(a,p))(a.flags&131072)!==0&&(un=!0);else return s.lanes=a.lanes,Ya(a,s,p)}return wm(a,s,l,u,p)}function cx(a,s,l){var u=s.pendingProps,p=u.children,g=a!==null?a.memoizedState:null;if(u.mode==="hidden"){if((s.flags&128)!==0){if(u=g!==null?g.baseLanes|l:l,a!==null){for(p=s.child=a.child,g=0;p!==null;)g=g|p.lanes|p.childLanes,p=p.sibling;s.childLanes=g&~u}else s.childLanes=0,s.child=null;return ux(a,s,u,l)}if((l&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&gd(s,g!==null?g.cachePool:null),g!==null?lw(s,g):Jp(),Qw(s);else return s.lanes=s.childLanes=536870912,ux(a,s,g!==null?g.baseLanes|l:l,l)}else g!==null?(gd(s,g.cachePool),lw(s,g),Ti(),s.memoizedState=null):(a!==null&&gd(s,null),Jp(),Ti());return bn(a,s,p,l),s.child}function ux(a,s,l,u){var p=Wp();return p=p===null?null:{parent:on._currentValue,pool:p},s.memoizedState={baseLanes:l,cachePool:p},a!==null&&gd(s,null),Jp(),Qw(s),a!==null&&rc(a,s,u,!0),null}function Od(a,s){var l=s.ref;if(l===null)a!==null&&a.ref!==null&&(s.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(a===null||a.ref!==l)&&(s.flags|=4194816)}}function wm(a,s,l,u,p){return Cs(s),l=nm(a,s,l,u,void 0,p),u=rm(),a!==null&&!un?(am(a,s,p),Ya(a,s,p)):(st&&u&&Up(s),s.flags|=1,bn(a,s,l,p),s.child)}function dx(a,s,l,u,p,g){return Cs(s),s.updateQueue=null,l=uw(s,u,l,p),cw(a),u=rm(),a!==null&&!un?(am(a,s,g),Ya(a,s,g)):(st&&u&&Up(s),s.flags|=1,bn(a,s,l,g),s.child)}function fx(a,s,l,u,p){if(Cs(s),s.stateNode===null){var g=To,E=l.contextType;typeof E=="object"&&E!==null&&(g=_n(E)),g=new l(u,g),s.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=vm,s.stateNode=g,g._reactInternals=s,g=s.stateNode,g.props=u,g.state=s.memoizedState,g.refs={},Gp(s),E=l.contextType,g.context=typeof E=="object"&&E!==null?_n(E):To,g.state=s.memoizedState,E=l.getDerivedStateFromProps,typeof E=="function"&&(ym(s,l,E,u),g.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(E=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),E!==g.state&&vm.enqueueReplaceState(g,g.state,null),uc(s,u,g,p),cc(),g.state=s.memoizedState),typeof g.componentDidMount=="function"&&(s.flags|=4194308),u=!0}else if(a===null){g=s.stateNode;var C=s.memoizedProps,N=Rs(l,C);g.props=N;var q=g.context,re=l.contextType;E=To,typeof re=="object"&&re!==null&&(E=_n(re));var se=l.getDerivedStateFromProps;re=typeof se=="function"||typeof g.getSnapshotBeforeUpdate=="function",C=s.pendingProps!==C,re||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C||q!==E)&&Zw(s,g,u,E),bi=!1;var K=s.memoizedState;g.state=K,uc(s,u,g,p),cc(),q=s.memoizedState,C||K!==q||bi?(typeof se=="function"&&(ym(s,l,se,u),q=s.memoizedState),(N=bi||Xw(s,l,N,u,K,q,E))?(re||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(s.flags|=4194308)):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=u,s.memoizedState=q),g.props=u,g.state=q,g.context=E,u=N):(typeof g.componentDidMount=="function"&&(s.flags|=4194308),u=!1)}else{g=s.stateNode,Qp(a,s),E=s.memoizedProps,re=Rs(l,E),g.props=re,se=s.pendingProps,K=g.context,q=l.contextType,N=To,typeof q=="object"&&q!==null&&(N=_n(q)),C=l.getDerivedStateFromProps,(q=typeof C=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(E!==se||K!==N)&&Zw(s,g,u,N),bi=!1,K=s.memoizedState,g.state=K,uc(s,u,g,p),cc();var Q=s.memoizedState;E!==se||K!==Q||bi||a!==null&&a.dependencies!==null&&pd(a.dependencies)?(typeof C=="function"&&(ym(s,l,C,u),Q=s.memoizedState),(re=bi||Xw(s,l,re,u,K,Q,N)||a!==null&&a.dependencies!==null&&pd(a.dependencies))?(q||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,Q,N),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,Q,N)),typeof g.componentDidUpdate=="function"&&(s.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof g.componentDidUpdate!="function"||E===a.memoizedProps&&K===a.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&K===a.memoizedState||(s.flags|=1024),s.memoizedProps=u,s.memoizedState=Q),g.props=u,g.state=Q,g.context=N,u=re):(typeof g.componentDidUpdate!="function"||E===a.memoizedProps&&K===a.memoizedState||(s.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&K===a.memoizedState||(s.flags|=1024),u=!1)}return g=u,Od(a,s),u=(s.flags&128)!==0,g||u?(g=s.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:g.render(),s.flags|=1,a!==null&&u?(s.child=Po(s,a.child,null,p),s.child=Po(s,null,l,p)):bn(a,s,l,p),s.memoizedState=g.state,a=s.child):a=Ya(a,s,p),a}function hx(a,s,l,u){return tc(),s.flags|=256,bn(a,s,l,u),s.child}var xm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Em(a){return{baseLanes:a,cachePool:ew()}}function Sm(a,s,l){return a=a!==null?a.childLanes&~l:0,s&&(a|=kr),a}function px(a,s,l){var u=s.pendingProps,p=!1,g=(s.flags&128)!==0,E;if((E=g)||(E=a!==null&&a.memoizedState===null?!1:(ln.current&2)!==0),E&&(p=!0,s.flags&=-129),E=(s.flags&32)!==0,s.flags&=-33,a===null){if(st){if(p?Si(s):Ti(),st){var C=Ut,N;if(N=C){e:{for(N=C,C=fa;N.nodeType!==8;){if(!C){C=null;break e}if(N=ta(N.nextSibling),N===null){C=null;break e}}C=N}C!==null?(s.memoizedState={dehydrated:C,treeContext:Es!==null?{id:Ba,overflow:Ua}:null,retryLane:536870912,hydrationErrors:null},N=sr(18,null,null,0),N.stateNode=C,N.return=s,s.child=N,jn=s,Ut=null,N=!0):N=!1}N||Ds(s)}if(C=s.memoizedState,C!==null&&(C=C.dehydrated,C!==null))return sg(C)?s.lanes=32:s.lanes=536870912,null;Fa(s)}return C=u.children,u=u.fallback,p?(Ti(),p=s.mode,C=Pd({mode:"hidden",children:C},p),u=xs(u,p,l,null),C.return=s,u.return=s,C.sibling=u,s.child=C,p=s.child,p.memoizedState=Em(l),p.childLanes=Sm(a,E,l),s.memoizedState=xm,u):(Si(s),Tm(s,C))}if(N=a.memoizedState,N!==null&&(C=N.dehydrated,C!==null)){if(g)s.flags&256?(Si(s),s.flags&=-257,s=Dm(a,s,l)):s.memoizedState!==null?(Ti(),s.child=a.child,s.flags|=128,s=null):(Ti(),p=u.fallback,C=s.mode,u=Pd({mode:"visible",children:u.children},C),p=xs(p,C,l,null),p.flags|=2,u.return=s,p.return=s,u.sibling=p,s.child=u,Po(s,a.child,null,l),u=s.child,u.memoizedState=Em(l),u.childLanes=Sm(a,E,l),s.memoizedState=xm,s=p);else if(Si(s),sg(C)){if(E=C.nextSibling&&C.nextSibling.dataset,E)var q=E.dgst;E=q,u=Error(r(419)),u.stack="",u.digest=E,nc({value:u,source:null,stack:null}),s=Dm(a,s,l)}else if(un||rc(a,s,l,!1),E=(l&a.childLanes)!==0,un||E){if(E=_t,E!==null&&(u=l&-l,u=(u&42)!==0?1:ke(u),u=(u&(E.suspendedLanes|l))!==0?0:u,u!==0&&u!==N.retryLane))throw N.retryLane=u,So(a,u),dr(E,a,u),ix;C.data==="$?"||Fm(),s=Dm(a,s,l)}else C.data==="$?"?(s.flags|=192,s.child=a.child,s=null):(a=N.treeContext,Ut=ta(C.nextSibling),jn=s,st=!0,Ts=null,fa=!1,a!==null&&(_r[Cr++]=Ba,_r[Cr++]=Ua,_r[Cr++]=Es,Ba=a.id,Ua=a.overflow,Es=s),s=Tm(s,u.children),s.flags|=4096);return s}return p?(Ti(),p=u.fallback,C=s.mode,N=a.child,q=N.sibling,u=Ia(N,{mode:"hidden",children:u.children}),u.subtreeFlags=N.subtreeFlags&65011712,q!==null?p=Ia(q,p):(p=xs(p,C,l,null),p.flags|=2),p.return=s,u.return=s,u.sibling=p,s.child=u,u=p,p=s.child,C=a.child.memoizedState,C===null?C=Em(l):(N=C.cachePool,N!==null?(q=on._currentValue,N=N.parent!==q?{parent:q,pool:q}:N):N=ew(),C={baseLanes:C.baseLanes|l,cachePool:N}),p.memoizedState=C,p.childLanes=Sm(a,E,l),s.memoizedState=xm,u):(Si(s),l=a.child,a=l.sibling,l=Ia(l,{mode:"visible",children:u.children}),l.return=s,l.sibling=null,a!==null&&(E=s.deletions,E===null?(s.deletions=[a],s.flags|=16):E.push(a)),s.child=l,s.memoizedState=null,l)}function Tm(a,s){return s=Pd({mode:"visible",children:s},a.mode),s.return=a,a.child=s}function Pd(a,s){return a=sr(22,a,null,s),a.lanes=0,a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},a}function Dm(a,s,l){return Po(s,a.child,null,l),a=Tm(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function mx(a,s,l){a.lanes|=s;var u=a.alternate;u!==null&&(u.lanes|=s),Fp(a.return,s,l)}function _m(a,s,l,u,p){var g=a.memoizedState;g===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:p}:(g.isBackwards=s,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=l,g.tailMode=p)}function gx(a,s,l){var u=s.pendingProps,p=u.revealOrder,g=u.tail;if(bn(a,s,u.children,l),u=ln.current,(u&2)!==0)u=u&1|2,s.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&mx(a,l,s);else if(a.tag===19)mx(a,l,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}u&=1}switch(ue(ln,u),p){case"forwards":for(l=s.child,p=null;l!==null;)a=l.alternate,a!==null&&Rd(a)===null&&(p=l),l=l.sibling;l=p,l===null?(p=s.child,s.child=null):(p=l.sibling,l.sibling=null),_m(s,!1,p,l,g);break;case"backwards":for(l=null,p=s.child,s.child=null;p!==null;){if(a=p.alternate,a!==null&&Rd(a)===null){s.child=p;break}a=p.sibling,p.sibling=l,l=p,p=a}_m(s,!0,l,null,g);break;case"together":_m(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Ya(a,s,l){if(a!==null&&(s.dependencies=a.dependencies),ki|=s.lanes,(l&s.childLanes)===0)if(a!==null){if(rc(a,s,l,!1),(l&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(r(153));if(s.child!==null){for(a=s.child,l=Ia(a,a.pendingProps),s.child=l,l.return=s;a.sibling!==null;)a=a.sibling,l=l.sibling=Ia(a,a.pendingProps),l.return=s;l.sibling=null}return s.child}function Cm(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&pd(a)))}function yM(a,s,l){switch(s.tag){case 3:Be(s,s.stateNode.containerInfo),vi(s,on,a.memoizedState.cache),tc();break;case 27:case 5:it(s);break;case 4:Be(s,s.stateNode.containerInfo);break;case 10:vi(s,s.type,s.memoizedProps.value);break;case 13:var u=s.memoizedState;if(u!==null)return u.dehydrated!==null?(Si(s),s.flags|=128,null):(l&s.child.childLanes)!==0?px(a,s,l):(Si(s),a=Ya(a,s,l),a!==null?a.sibling:null);Si(s);break;case 19:var p=(a.flags&128)!==0;if(u=(l&s.childLanes)!==0,u||(rc(a,s,l,!1),u=(l&s.childLanes)!==0),p){if(u)return gx(a,s,l);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),ue(ln,ln.current),u)break;return null;case 22:case 23:return s.lanes=0,cx(a,s,l);case 24:vi(s,on,a.memoizedState.cache)}return Ya(a,s,l)}function yx(a,s,l){if(a!==null)if(a.memoizedProps!==s.pendingProps)un=!0;else{if(!Cm(a,l)&&(s.flags&128)===0)return un=!1,yM(a,s,l);un=(a.flags&131072)!==0}else un=!1,st&&(s.flags&1048576)!==0&&W0(s,hd,s.index);switch(s.lanes=0,s.tag){case 16:e:{a=s.pendingProps;var u=s.elementType,p=u._init;if(u=p(u._payload),s.type=u,typeof u=="function")Lp(u)?(a=Rs(u,a),s.tag=1,s=fx(null,s,u,a,l)):(s.tag=0,s=wm(null,s,u,a,l));else{if(u!=null){if(p=u.$$typeof,p===V){s.tag=11,s=sx(null,s,u,a,l);break e}else if(p===G){s.tag=14,s=ox(null,s,u,a,l);break e}}throw s=oe(u)||u,Error(r(306,s,""))}}return s;case 0:return wm(a,s,s.type,s.pendingProps,l);case 1:return u=s.type,p=Rs(u,s.pendingProps),fx(a,s,u,p,l);case 3:e:{if(Be(s,s.stateNode.containerInfo),a===null)throw Error(r(387));u=s.pendingProps;var g=s.memoizedState;p=g.element,Qp(a,s),uc(s,u,null,l);var E=s.memoizedState;if(u=E.cache,vi(s,on,u),u!==g.cache&&Yp(s,[on],l,!0),cc(),u=E.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:E.cache},s.updateQueue.baseState=g,s.memoizedState=g,s.flags&256){s=hx(a,s,u,l);break e}else if(u!==p){p=Tr(Error(r(424)),s),nc(p),s=hx(a,s,u,l);break e}else{switch(a=s.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(Ut=ta(a.firstChild),jn=s,st=!0,Ts=null,fa=!0,l=Gw(s,null,u,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(tc(),u===p){s=Ya(a,s,l);break e}bn(a,s,u,l)}s=s.child}return s;case 26:return Od(a,s),a===null?(l=x1(s.type,null,s.pendingProps,null))?s.memoizedState=l:st||(l=s.type,a=s.pendingProps,u=Kd(Ae.current).createElement(l),u[$]=s,u[te]=a,xn(u,l,a),Je(u),s.stateNode=u):s.memoizedState=x1(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:return it(s),a===null&&st&&(u=s.stateNode=v1(s.type,s.pendingProps,Ae.current),jn=s,fa=!0,p=Ut,Oi(s.type)?(og=p,Ut=ta(u.firstChild)):Ut=p),bn(a,s,s.pendingProps.children,l),Od(a,s),a===null&&(s.flags|=4194304),s.child;case 5:return a===null&&st&&((p=u=Ut)&&(u=qM(u,s.type,s.pendingProps,fa),u!==null?(s.stateNode=u,jn=s,Ut=ta(u.firstChild),fa=!1,p=!0):p=!1),p||Ds(s)),it(s),p=s.type,g=s.pendingProps,E=a!==null?a.memoizedProps:null,u=g.children,rg(p,g)?u=null:E!==null&&rg(p,E)&&(s.flags|=32),s.memoizedState!==null&&(p=nm(a,s,cM,null,null,l),Nc._currentValue=p),Od(a,s),bn(a,s,u,l),s.child;case 6:return a===null&&st&&((a=l=Ut)&&(l=$M(l,s.pendingProps,fa),l!==null?(s.stateNode=l,jn=s,Ut=null,a=!0):a=!1),a||Ds(s)),null;case 13:return px(a,s,l);case 4:return Be(s,s.stateNode.containerInfo),u=s.pendingProps,a===null?s.child=Po(s,null,u,l):bn(a,s,u,l),s.child;case 11:return sx(a,s,s.type,s.pendingProps,l);case 7:return bn(a,s,s.pendingProps,l),s.child;case 8:return bn(a,s,s.pendingProps.children,l),s.child;case 12:return bn(a,s,s.pendingProps.children,l),s.child;case 10:return u=s.pendingProps,vi(s,s.type,u.value),bn(a,s,u.children,l),s.child;case 9:return p=s.type._context,u=s.pendingProps.children,Cs(s),p=_n(p),u=u(p),s.flags|=1,bn(a,s,u,l),s.child;case 14:return ox(a,s,s.type,s.pendingProps,l);case 15:return lx(a,s,s.type,s.pendingProps,l);case 19:return gx(a,s,l);case 31:return u=s.pendingProps,l=s.mode,u={mode:u.mode,children:u.children},a===null?(l=Pd(u,l),l.ref=s.ref,s.child=l,l.return=s,s=l):(l=Ia(a.child,u),l.ref=s.ref,s.child=l,l.return=s,s=l),s;case 22:return cx(a,s,l);case 24:return Cs(s),u=_n(on),a===null?(p=Wp(),p===null&&(p=_t,g=qp(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=l),p=g),s.memoizedState={parent:u,cache:p},Gp(s),vi(s,on,p)):((a.lanes&l)!==0&&(Qp(a,s),uc(s,null,null,l),cc()),p=a.memoizedState,g=s.memoizedState,p.parent!==u?(p={parent:u,cache:u},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),vi(s,on,u)):(u=g.cache,vi(s,on,u),u!==p.cache&&Yp(s,[on],l,!0))),bn(a,s,s.pendingProps.children,l),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function qa(a){a.flags|=4}function vx(a,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!_1(s)){if(s=Ar.current,s!==null&&((et&4194048)===et?ha!==null:(et&62914560)!==et&&(et&536870912)===0||s!==ha))throw oc=Kp,tw;a.flags|=8192}}function jd(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?Gr():536870912,a.lanes|=s,Bo|=s)}function yc(a,s){if(!st)switch(a.tailMode){case"hidden":s=a.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?a.tail=null:l.sibling=null;break;case"collapsed":l=a.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:u.sibling=null}}function jt(a){var s=a.alternate!==null&&a.alternate.child===a.child,l=0,u=0;if(s)for(var p=a.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=a,p=p.sibling;else for(p=a.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=a,p=p.sibling;return a.subtreeFlags|=u,a.childLanes=l,s}function vM(a,s,l){var u=s.pendingProps;switch(Hp(s),s.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(s),null;case 1:return jt(s),null;case 3:return l=s.stateNode,u=null,a!==null&&(u=a.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Va(on),mn(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(a===null||a.child===null)&&(ec(s)?qa(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Q0())),jt(s),null;case 26:return l=s.memoizedState,a===null?(qa(s),l!==null?(jt(s),vx(s,l)):(jt(s),s.flags&=-16777217)):l?l!==a.memoizedState?(qa(s),jt(s),vx(s,l)):(jt(s),s.flags&=-16777217):(a.memoizedProps!==u&&qa(s),jt(s),s.flags&=-16777217),null;case 27:en(s),l=Ae.current;var p=s.type;if(a!==null&&s.stateNode!=null)a.memoizedProps!==u&&qa(s);else{if(!u){if(s.stateNode===null)throw Error(r(166));return jt(s),null}a=Ee.current,ec(s)?K0(s):(a=v1(p,u,l),s.stateNode=a,qa(s))}return jt(s),null;case 5:if(en(s),l=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==u&&qa(s);else{if(!u){if(s.stateNode===null)throw Error(r(166));return jt(s),null}if(a=Ee.current,ec(s))K0(s);else{switch(p=Kd(Ae.current),a){case 1:a=p.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:a=p.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":a=p.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":a=p.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":a=p.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof u.is=="string"?p.createElement("select",{is:u.is}):p.createElement("select"),u.multiple?a.multiple=!0:u.size&&(a.size=u.size);break;default:a=typeof u.is=="string"?p.createElement(l,{is:u.is}):p.createElement(l)}}a[$]=s,a[te]=u;e:for(p=s.child;p!==null;){if(p.tag===5||p.tag===6)a.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break e;for(;p.sibling===null;){if(p.return===null||p.return===s)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}s.stateNode=a;e:switch(xn(a,l,u),l){case"button":case"input":case"select":case"textarea":a=!!u.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&qa(s)}}return jt(s),s.flags&=-16777217,null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==u&&qa(s);else{if(typeof u!="string"&&s.stateNode===null)throw Error(r(166));if(a=Ae.current,ec(s)){if(a=s.stateNode,l=s.memoizedProps,u=null,p=jn,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}a[$]=s,a=!!(a.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||d1(a.nodeValue,l)),a||Ds(s)}else a=Kd(a).createTextNode(u),a[$]=s,s.stateNode=a}return jt(s),null;case 13:if(u=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(p=ec(s),u!==null&&u.dehydrated!==null){if(a===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[$]=s}else tc(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;jt(s),p=!1}else p=Q0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),p=!0;if(!p)return s.flags&256?(Fa(s),s):(Fa(s),null)}if(Fa(s),(s.flags&128)!==0)return s.lanes=l,s;if(l=u!==null,a=a!==null&&a.memoizedState!==null,l){u=s.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool);var g=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==p&&(u.flags|=2048)}return l!==a&&l&&(s.child.flags|=8192),jd(s,s.updateQueue),jt(s),null;case 4:return mn(),a===null&&Zm(s.stateNode.containerInfo),jt(s),null;case 10:return Va(s.type),jt(s),null;case 19:if(de(ln),p=s.memoizedState,p===null)return jt(s),null;if(u=(s.flags&128)!==0,g=p.rendering,g===null)if(u)yc(p,!1);else{if(Ht!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(g=Rd(a),g!==null){for(s.flags|=128,yc(p,!1),a=g.updateQueue,s.updateQueue=a,jd(s,a),s.subtreeFlags=0,a=l,l=s.child;l!==null;)$0(l,a),l=l.sibling;return ue(ln,ln.current&1|2),s.child}a=a.sibling}p.tail!==null&&Yt()>Bd&&(s.flags|=128,u=!0,yc(p,!1),s.lanes=4194304)}else{if(!u)if(a=Rd(g),a!==null){if(s.flags|=128,u=!0,a=a.updateQueue,s.updateQueue=a,jd(s,a),yc(p,!0),p.tail===null&&p.tailMode==="hidden"&&!g.alternate&&!st)return jt(s),null}else 2*Yt()-p.renderingStartTime>Bd&&l!==536870912&&(s.flags|=128,u=!0,yc(p,!1),s.lanes=4194304);p.isBackwards?(g.sibling=s.child,s.child=g):(a=p.last,a!==null?a.sibling=g:s.child=g,p.last=g)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=Yt(),s.sibling=null,a=ln.current,ue(ln,u?a&1|2:a&1),s):(jt(s),null);case 22:case 23:return Fa(s),em(),u=s.memoizedState!==null,a!==null?a.memoizedState!==null!==u&&(s.flags|=8192):u&&(s.flags|=8192),u?(l&536870912)!==0&&(s.flags&128)===0&&(jt(s),s.subtreeFlags&6&&(s.flags|=8192)):jt(s),l=s.updateQueue,l!==null&&jd(s,l.retryQueue),l=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==l&&(s.flags|=2048),a!==null&&de(As),null;case 24:return l=null,a!==null&&(l=a.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),Va(on),jt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function bM(a,s){switch(Hp(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return Va(on),mn(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return en(s),null;case 13:if(Fa(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));tc()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return de(ln),null;case 4:return mn(),null;case 10:return Va(s.type),null;case 22:case 23:return Fa(s),em(),a!==null&&de(As),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return Va(on),null;case 25:return null;default:return null}}function bx(a,s){switch(Hp(s),s.tag){case 3:Va(on),mn();break;case 26:case 27:case 5:en(s);break;case 4:mn();break;case 13:Fa(s);break;case 19:de(ln);break;case 10:Va(s.type);break;case 22:case 23:Fa(s),em(),a!==null&&de(As);break;case 24:Va(on)}}function vc(a,s){try{var l=s.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var p=u.next;l=p;do{if((l.tag&a)===a){u=void 0;var g=l.create,E=l.inst;u=g(),E.destroy=u}l=l.next}while(l!==p)}}catch(C){Et(s,s.return,C)}}function Di(a,s,l){try{var u=s.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var g=p.next;u=g;do{if((u.tag&a)===a){var E=u.inst,C=E.destroy;if(C!==void 0){E.destroy=void 0,p=s;var N=l,q=C;try{q()}catch(re){Et(p,N,re)}}}u=u.next}while(u!==g)}}catch(re){Et(s,s.return,re)}}function wx(a){var s=a.updateQueue;if(s!==null){var l=a.stateNode;try{ow(s,l)}catch(u){Et(a,a.return,u)}}}function xx(a,s,l){l.props=Rs(a.type,a.memoizedProps),l.state=a.memoizedState;try{l.componentWillUnmount()}catch(u){Et(a,s,u)}}function bc(a,s){try{var l=a.ref;if(l!==null){switch(a.tag){case 26:case 27:case 5:var u=a.stateNode;break;case 30:u=a.stateNode;break;default:u=a.stateNode}typeof l=="function"?a.refCleanup=l(u):l.current=u}}catch(p){Et(a,s,p)}}function pa(a,s){var l=a.ref,u=a.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(p){Et(a,s,p)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(p){Et(a,s,p)}else l.current=null}function Ex(a){var s=a.type,l=a.memoizedProps,u=a.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(p){Et(a,a.return,p)}}function Am(a,s,l){try{var u=a.stateNode;HM(u,a.type,l,s),u[te]=s}catch(p){Et(a,a.return,p)}}function Sx(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Oi(a.type)||a.tag===4}function km(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Sx(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Oi(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Rm(a,s,l){var u=a.tag;if(u===5||u===6)a=a.stateNode,s?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,s):(s=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,s.appendChild(a),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Wd));else if(u!==4&&(u===27&&Oi(a.type)&&(l=a.stateNode,s=null),a=a.child,a!==null))for(Rm(a,s,l),a=a.sibling;a!==null;)Rm(a,s,l),a=a.sibling}function Ld(a,s,l){var u=a.tag;if(u===5||u===6)a=a.stateNode,s?l.insertBefore(a,s):l.appendChild(a);else if(u!==4&&(u===27&&Oi(a.type)&&(l=a.stateNode),a=a.child,a!==null))for(Ld(a,s,l),a=a.sibling;a!==null;)Ld(a,s,l),a=a.sibling}function Tx(a){var s=a.stateNode,l=a.memoizedProps;try{for(var u=a.type,p=s.attributes;p.length;)s.removeAttributeNode(p[0]);xn(s,u,l),s[$]=a,s[te]=l}catch(g){Et(a,a.return,g)}}var $a=!1,$t=!1,Mm=!1,Dx=typeof WeakSet=="function"?WeakSet:Set,dn=null;function wM(a,s){if(a=a.containerInfo,tg=ef,a=L0(a),kp(a)){if("selectionStart"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{l=(l=a.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var p=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var E=0,C=-1,N=-1,q=0,re=0,se=a,K=null;t:for(;;){for(var Q;se!==l||p!==0&&se.nodeType!==3||(C=E+p),se!==g||u!==0&&se.nodeType!==3||(N=E+u),se.nodeType===3&&(E+=se.nodeValue.length),(Q=se.firstChild)!==null;)K=se,se=Q;for(;;){if(se===a)break t;if(K===l&&++q===p&&(C=E),K===g&&++re===u&&(N=E),(Q=se.nextSibling)!==null)break;se=K,K=se.parentNode}se=Q}l=C===-1||N===-1?null:{start:C,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(ng={focusedElem:a,selectionRange:l},ef=!1,dn=s;dn!==null;)if(s=dn,a=s.child,(s.subtreeFlags&1024)!==0&&a!==null)a.return=s,dn=a;else for(;dn!==null;){switch(s=dn,g=s.alternate,a=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&g!==null){a=void 0,l=s,p=g.memoizedProps,g=g.memoizedState,u=l.stateNode;try{var je=Rs(l.type,p,l.elementType===l.type);a=u.getSnapshotBeforeUpdate(je,g),u.__reactInternalSnapshotBeforeUpdate=a}catch(Ne){Et(l,l.return,Ne)}}break;case 3:if((a&1024)!==0){if(a=s.stateNode.containerInfo,l=a.nodeType,l===9)ig(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":ig(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=s.sibling,a!==null){a.return=s.return,dn=a;break}dn=s.return}}function _x(a,s,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:_i(a,l),u&4&&vc(5,l);break;case 1:if(_i(a,l),u&4)if(a=l.stateNode,s===null)try{a.componentDidMount()}catch(E){Et(l,l.return,E)}else{var p=Rs(l.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(p,s,a.__reactInternalSnapshotBeforeUpdate)}catch(E){Et(l,l.return,E)}}u&64&&wx(l),u&512&&bc(l,l.return);break;case 3:if(_i(a,l),u&64&&(a=l.updateQueue,a!==null)){if(s=null,l.child!==null)switch(l.child.tag){case 27:case 5:s=l.child.stateNode;break;case 1:s=l.child.stateNode}try{ow(a,s)}catch(E){Et(l,l.return,E)}}break;case 27:s===null&&u&4&&Tx(l);case 26:case 5:_i(a,l),s===null&&u&4&&Ex(l),u&512&&bc(l,l.return);break;case 12:_i(a,l);break;case 13:_i(a,l),u&4&&kx(a,l),u&64&&(a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(l=kM.bind(null,l),WM(a,l))));break;case 22:if(u=l.memoizedState!==null||$a,!u){s=s!==null&&s.memoizedState!==null||$t,p=$a;var g=$t;$a=u,($t=s)&&!g?Ci(a,l,(l.subtreeFlags&8772)!==0):_i(a,l),$a=p,$t=g}break;case 30:break;default:_i(a,l)}}function Cx(a){var s=a.alternate;s!==null&&(a.alternate=null,Cx(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&he(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var Nt=null,Gn=!1;function Wa(a,s,l){for(l=l.child;l!==null;)Ax(a,s,l),l=l.sibling}function Ax(a,s,l){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Pt,l)}catch{}switch(l.tag){case 26:$t||pa(l,s),Wa(a,s,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:$t||pa(l,s);var u=Nt,p=Gn;Oi(l.type)&&(Nt=l.stateNode,Gn=!1),Wa(a,s,l),Ac(l.stateNode),Nt=u,Gn=p;break;case 5:$t||pa(l,s);case 6:if(u=Nt,p=Gn,Nt=null,Wa(a,s,l),Nt=u,Gn=p,Nt!==null)if(Gn)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(l.stateNode)}catch(g){Et(l,s,g)}else try{Nt.removeChild(l.stateNode)}catch(g){Et(l,s,g)}break;case 18:Nt!==null&&(Gn?(a=Nt,g1(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,l.stateNode),Lc(a)):g1(Nt,l.stateNode));break;case 4:u=Nt,p=Gn,Nt=l.stateNode.containerInfo,Gn=!0,Wa(a,s,l),Nt=u,Gn=p;break;case 0:case 11:case 14:case 15:$t||Di(2,l,s),$t||Di(4,l,s),Wa(a,s,l);break;case 1:$t||(pa(l,s),u=l.stateNode,typeof u.componentWillUnmount=="function"&&xx(l,s,u)),Wa(a,s,l);break;case 21:Wa(a,s,l);break;case 22:$t=(u=$t)||l.memoizedState!==null,Wa(a,s,l),$t=u;break;default:Wa(a,s,l)}}function kx(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Lc(a)}catch(l){Et(s,s.return,l)}}function xM(a){switch(a.tag){case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new Dx),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new Dx),s;default:throw Error(r(435,a.tag))}}function Nm(a,s){var l=xM(a);s.forEach(function(u){var p=RM.bind(null,a,u);l.has(u)||(l.add(u),u.then(p,p))})}function or(a,s){var l=s.deletions;if(l!==null)for(var u=0;u<l.length;u++){var p=l[u],g=a,E=s,C=E;e:for(;C!==null;){switch(C.tag){case 27:if(Oi(C.type)){Nt=C.stateNode,Gn=!1;break e}break;case 5:Nt=C.stateNode,Gn=!1;break e;case 3:case 4:Nt=C.stateNode.containerInfo,Gn=!0;break e}C=C.return}if(Nt===null)throw Error(r(160));Ax(g,E,p),Nt=null,Gn=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)Rx(s,a),s=s.sibling}var ea=null;function Rx(a,s){var l=a.alternate,u=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:or(s,a),lr(a),u&4&&(Di(3,a,a.return),vc(3,a),Di(5,a,a.return));break;case 1:or(s,a),lr(a),u&512&&($t||l===null||pa(l,l.return)),u&64&&$a&&(a=a.updateQueue,a!==null&&(u=a.callbacks,u!==null&&(l=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var p=ea;if(or(s,a),lr(a),u&512&&($t||l===null||pa(l,l.return)),u&4){var g=l!==null?l.memoizedState:null;if(u=a.memoizedState,l===null)if(u===null)if(a.stateNode===null){e:{u=a.type,l=a.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":g=p.getElementsByTagName("title")[0],(!g||g[Te]||g[$]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(u),p.head.insertBefore(g,p.querySelector("head > title"))),xn(g,u,l),g[$]=a,Je(g),u=g;break e;case"link":var E=T1("link","href",p).get(u+(l.href||""));if(E){for(var C=0;C<E.length;C++)if(g=E[C],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){E.splice(C,1);break t}}g=p.createElement(u),xn(g,u,l),p.head.appendChild(g);break;case"meta":if(E=T1("meta","content",p).get(u+(l.content||""))){for(C=0;C<E.length;C++)if(g=E[C],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){E.splice(C,1);break t}}g=p.createElement(u),xn(g,u,l),p.head.appendChild(g);break;default:throw Error(r(468,u))}g[$]=a,Je(g),u=g}a.stateNode=u}else D1(p,a.type,a.stateNode);else a.stateNode=S1(p,u,a.memoizedProps);else g!==u?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,u===null?D1(p,a.type,a.stateNode):S1(p,u,a.memoizedProps)):u===null&&a.stateNode!==null&&Am(a,a.memoizedProps,l.memoizedProps)}break;case 27:or(s,a),lr(a),u&512&&($t||l===null||pa(l,l.return)),l!==null&&u&4&&Am(a,a.memoizedProps,l.memoizedProps);break;case 5:if(or(s,a),lr(a),u&512&&($t||l===null||pa(l,l.return)),a.flags&32){p=a.stateNode;try{go(p,"")}catch(Q){Et(a,a.return,Q)}}u&4&&a.stateNode!=null&&(p=a.memoizedProps,Am(a,p,l!==null?l.memoizedProps:p)),u&1024&&(Mm=!0);break;case 6:if(or(s,a),lr(a),u&4){if(a.stateNode===null)throw Error(r(162));u=a.memoizedProps,l=a.stateNode;try{l.nodeValue=u}
vendor: 4,236 bytes, line 48
48catch(Q){Et(a,a.return,Q)}}break;case 3:if(Xd=null,p=ea,ea=Gd(s.containerInfo),or(s,a),ea=p,lr(a),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Lc(s.containerInfo)}catch(Q){Et(a,a.return,Q)}Mm&&(Mm=!1,Mx(a));break;case 4:u=ea,ea=Gd(a.stateNode.containerInfo),or(s,a),lr(a),ea=u;break;case 12:or(s,a),lr(a);break;case 13:or(s,a),lr(a),a.child.flags&8192&&a.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Bm=Yt()),u&4&&(u=a.updateQueue,u!==null&&(a.updateQueue=null,Nm(a,u)));break;case 22:p=a.memoizedState!==null;var N=l!==null&&l.memoizedState!==null,q=$a,re=$t;if($a=q||p,$t=re||N,or(s,a),$t=re,$a=q,lr(a),u&8192)e:for(s=a.stateNode,s._visibility=p?s._visibility&-2:s._visibility|1,p&&(l===null||N||$a||$t||Ms(a)),l=null,s=a;;){if(s.tag===5||s.tag===26){if(l===null){N=l=s;try{if(g=N.stateNode,p)E=g.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{C=N.stateNode;var se=N.memoizedProps.style,K=se!=null&&se.hasOwnProperty("display")?se.display:null;C.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(Q){Et(N,N.return,Q)}}}else if(s.tag===6){if(l===null){N=s;try{N.stateNode.nodeValue=p?"":N.memoizedProps}catch(Q){Et(N,N.return,Q)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;l===s&&(l=null),s=s.return}l===s&&(l=null),s.sibling.return=s.return,s=s.sibling}u&4&&(u=a.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Nm(a,l))));break;case 19:or(s,a),lr(a),u&4&&(u=a.updateQueue,u!==null&&(a.updateQueue=null,Nm(a,u)));break;case 30:break;case 21:break;default:or(s,a),lr(a)}}function lr(a){var s=a.flags;if(s&2){try{for(var l,u=a.return;u!==null;){if(Sx(u)){l=u;break}u=u.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var p=l.stateNode,g=km(a);Ld(a,g,p);break;case 5:var E=l.stateNode;l.flags&32&&(go(E,""),l.flags&=-33);var C=km(a);Ld(a,C,E);break;case 3:case 4:var N=l.stateNode.containerInfo,q=km(a);Rm(a,q,N);break;default:throw Error(r(161))}}catch(re){Et(a,a.return,re)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function Mx(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;Mx(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),a=a.sibling}}function _i(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)_x(a,s.alternate,s),s=s.sibling}function Ms(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:Di(4,s,s.return),Ms(s);break;case 1:pa(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount=="function"&&xx(s,s.return,l),Ms(s);break;case 27:Ac(s.stateNode);case 26:case 5:pa(s,s.return),Ms(s);break;case 22:s.memoizedState===null&&Ms(s);break;case 30:Ms(s);break;default:Ms(s)}a=a.sibling}}function Ci(a,s,l){for(l=l&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var u=s.alternate,p=a,g=s,E=g.flags;switch(g.tag){case 0:case 11:case 15:Ci(p,g,l),vc(4,g);break;case 1:if(Ci(p,g,l),u=g,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(q){Et(u,u.return,q)}if(u=g,p=u.updateQueue,p!==null){var C=u.stateNode;try{var N=p.shared.hiddenCallbacks;if(N!==null)for(p.shared.hiddenCallbacks=null,p=0;p<N.length;p++)sw(N[p],C)}catch(q){Et(u,u.return,q)}}l&&E&64&&wx(g),bc(g,g.return);break;case 27:Tx(g);case 26:case 5:Ci(p,g,l),l&&u===null&&E&4&&Ex(g),bc(g,g.return);break;case 12:Ci(p,g,l);break;case 13:Ci(p,g,l),l&&E&4&&kx(p,g);break;case 22:g.memoizedState===null&&Ci(p,g,l),bc(g,g.return);break;case 30:break;default:Ci(p,g,l)}s=s.sibling}}function Om(a,s){var l=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==l&&(a!=null&&a.refCount++,l!=null&&ac(l))}function Pm(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&ac(a))}function ma(a,s,l,u){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Nx(a,s,l,u),s=s.sibling}function Nx(a,s,l,u){var p=s.flags;switch(s.tag){case 0:case 11:case 15:ma(a,s,l,u),p&2048&&vc(9,s);break;case 1:ma(a,s,l,u);break;
vendor: 17,735 bytes, line 48
48case 3:ma(a,s,l,u),p&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&ac(a)));break;case 12:if(p&2048){ma(a,s,l,u),a=s.stateNode;try{var g=s.memoizedProps,E=g.id,C=g.onPostCommit;typeof C=="function"&&C(E,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(N){Et(s,s.return,N)}}else ma(a,s,l,u);break;case 13:ma(a,s,l,u);break;case 23:break;case 22:g=s.stateNode,E=s.alternate,s.memoizedState!==null?g._visibility&2?ma(a,s,l,u):wc(a,s):g._visibility&2?ma(a,s,l,u):(g._visibility|=2,jo(a,s,l,u,(s.subtreeFlags&10256)!==0)),p&2048&&Om(E,s);break;case 24:ma(a,s,l,u),p&2048&&Pm(s.alternate,s);break;default:ma(a,s,l,u)}}function jo(a,s,l,u,p){for(p=p&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var g=a,E=s,C=l,N=u,q=E.flags;switch(E.tag){case 0:case 11:case 15:jo(g,E,C,N,p),vc(8,E);break;case 23:break;case 22:var re=E.stateNode;E.memoizedState!==null?re._visibility&2?jo(g,E,C,N,p):wc(g,E):(re._visibility|=2,jo(g,E,C,N,p)),p&&q&2048&&Om(E.alternate,E);break;case 24:jo(g,E,C,N,p),p&&q&2048&&Pm(E.alternate,E);break;default:jo(g,E,C,N,p)}s=s.sibling}}function wc(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var l=a,u=s,p=u.flags;switch(u.tag){case 22:wc(l,u),p&2048&&Om(u.alternate,u);break;case 24:wc(l,u),p&2048&&Pm(u.alternate,u);break;default:wc(l,u)}s=s.sibling}}var xc=8192;function Lo(a){if(a.subtreeFlags&xc)for(a=a.child;a!==null;)Ox(a),a=a.sibling}function Ox(a){switch(a.tag){case 26:Lo(a),a.flags&xc&&a.memoizedState!==null&&sN(ea,a.memoizedState,a.memoizedProps);break;case 5:Lo(a);break;case 3:case 4:var s=ea;ea=Gd(a.stateNode.containerInfo),Lo(a),ea=s;break;case 22:a.memoizedState===null&&(s=a.alternate,s!==null&&s.memoizedState!==null?(s=xc,xc=16777216,Lo(a),xc=s):Lo(a));break;default:Lo(a)}}function Px(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}function Ec(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var u=s[l];dn=u,Lx(u,a)}Px(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)jx(a),a=a.sibling}function jx(a){switch(a.tag){case 0:case 11:case 15:Ec(a),a.flags&2048&&Di(9,a,a.return);break;case 3:Ec(a);break;case 12:Ec(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&2&&(a.return===null||a.return.tag!==13)?(s._visibility&=-3,Id(a)):Ec(a);break;default:Ec(a)}}function Id(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var u=s[l];dn=u,Lx(u,a)}Px(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:Di(8,s,s.return),Id(s);break;case 22:l=s.stateNode,l._visibility&2&&(l._visibility&=-3,Id(s));break;default:Id(s)}a=a.sibling}}function Lx(a,s){for(;dn!==null;){var l=dn;switch(l.tag){case 0:case 11:case 15:Di(8,l,s);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:ac(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,dn=u;else e:for(l=a;dn!==null;){u=dn;var p=u.sibling,g=u.return;if(Cx(u),u===l){dn=null;break e}if(p!==null){p.return=g,dn=p;break e}dn=g}}}var EM={getCacheForType:function(a){var s=_n(on),l=s.data.get(a);return l===void 0&&(l=a(),s.data.set(a,l)),l}},SM=typeof WeakMap=="function"?WeakMap:Map,ft=0,_t=null,Qe=null,et=0,ht=0,cr=null,Ai=!1,Io=!1,jm=!1,Ka=0,Ht=0,ki=0,Ns=0,Lm=0,kr=0,Bo=0,Sc=null,Qn=null,Im=!1,Bm=0,Bd=1/0,Ud=null,Ri=null,wn=0,Mi=null,Uo=null,Ho=0,Um=0,Hm=null,Ix=null,Tc=0,Vm=null;function ur(){if((ft&2)!==0&&et!==0)return et&-et;if(O.T!==null){var a=Co;return a!==0?a:Km()}return P()}function Bx(){kr===0&&(kr=(et&536870912)===0||st?nr():536870912);var a=Ar.current;return a!==null&&(a.flags|=32),kr}function dr(a,s,l){(a===_t&&(ht===2||ht===9)||a.cancelPendingCommit!==null)&&(Vo(a,0),Ni(a,et,kr,!1)),ar(a,l),((ft&2)===0||a!==_t)&&(a===_t&&((ft&2)===0&&(Ns|=l),Ht===4&&Ni(a,et,kr,!1)),ga(a))}function Ux(a,s,l){if((ft&6)!==0)throw Error(r(327));var u=!l&&(s&124)===0&&(s&a.expiredLanes)===0||vn(a,s),p=u?_M(a,s):Ym(a,s,!0),g=u;do{if(p===0){Io&&!u&&Ni(a,s,0,!1);break}else{if(l=a.current.alternate,g&&!TM(l)){p=Ym(a,s,!1),g=!1;continue}if(p===2){if(g=s,a.errorRecoveryDisabledLanes&g)var E=0;else E=a.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){s=E;e:{var C=a;p=Sc;var N=C.current.memoizedState.isDehydrated;if(N&&(Vo(C,E).flags|=256),E=Ym(C,E,!1),E!==2){if(jm&&!N){C.errorRecoveryDisabledLanes|=g,Ns|=g,p=4;break e}g=Qn,Qn=p,g!==null&&(Qn===null?Qn=g:Qn.push.apply(Qn,g))}p=E}if(g=!1,p!==2)continue}}if(p===1){Vo(a,0),Ni(a,s,0,!0);break}e:{switch(u=a,g=p,g){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:Ni(u,s,kr,!Ai);break e;case 2:Qn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(p=Bm+300-Yt(),10<p)){if(Ni(u,s,kr,!Ai),tr(u,0,!0)!==0)break e;u.timeoutHandle=p1(Hx.bind(null,u,l,Qn,Ud,Im,s,kr,Ns,Bo,Ai,g,2,-0,0),p);break e}Hx(u,l,Qn,Ud,Im,s,kr,Ns,Bo,Ai,g,0,-0,0)}}break}while(!0);ga(a)}function Hx(a,s,l,u,p,g,E,C,N,q,re,se,K,Q){if(a.timeoutHandle=-1,se=s.subtreeFlags,(se&8192||(se&16785408)===16785408)&&(Mc={stylesheets:null,count:0,unsuspend:iN},Ox(s),se=oN(),se!==null)){a.cancelPendingCommit=se(Wx.bind(null,a,s,g,l,u,p,E,C,N,re,1,K,Q)),Ni(a,g,E,!q);return}Wx(a,s,g,l,u,p,E,C,N)}function TM(a){for(var s=a;;){var l=s.tag;if((l===0||l===11||l===15)&&s.flags&16384&&(l=s.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var p=l[u],g=p.getSnapshot;p=p.value;try{if(!ir(g(),p))return!1}catch{return!1}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ni(a,s,l,u){s&=~Lm,s&=~Ns,a.suspendedLanes|=s,a.pingedLanes&=~s,u&&(a.warmLanes|=s),u=a.expirationTimes;for(var p=s;0<p;){var g=31-kt(p),E=1<<g;u[g]=-1,p&=~E}l!==0&&Tt(a,l,s)}function Hd(){return(ft&6)===0?(Dc(0),!1):!0}function zm(){if(Qe!==null){if(ht===0)var a=Qe.return;else a=Qe,Ha=_s=null,im(a),Oo=null,mc=0,a=Qe;for(;a!==null;)bx(a.alternate,a),a=a.return;Qe=null}}function Vo(a,s){var l=a.timeoutHandle;l!==-1&&(a.timeoutHandle=-1,zM(l)),l=a.cancelPendingCommit,l!==null&&(a.cancelPendingCommit=null,l()),zm(),_t=a,Qe=l=Ia(a.current,null),et=s,ht=0,cr=null,Ai=!1,Io=vn(a,s),jm=!1,Bo=kr=Lm=Ns=ki=Ht=0,Qn=Sc=null,Im=!1,(s&8)!==0&&(s|=s&32);var u=a.entangledLanes;if(u!==0)for(a=a.entanglements,u&=s;0<u;){var p=31-kt(u),g=1<<p;s|=a[p],u&=~g}return Ka=s,ld(),l}function Vx(a,s){Fe=null,O.H=Cd,s===sc||s===yd?(s=aw(),ht=3):s===tw?(s=aw(),ht=4):ht=s===ix?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,cr=s,Qe===null&&(Ht=1,Nd(a,Tr(s,a.current)))}function zx(){var a=O.H;return O.H=Cd,a===null?Cd:a}function Fx(){var a=O.A;return O.A=EM,a}function Fm(){Ht=4,Ai||(et&4194048)!==et&&Ar.current!==null||(Io=!0),(ki&134217727)===0&&(Ns&134217727)===0||_t===null||Ni(_t,et,kr,!1)}function Ym(a,s,l){var u=ft;ft|=2;var p=zx(),g=Fx();(_t!==a||et!==s)&&(Ud=null,Vo(a,s)),s=!1;var E=Ht;e:do try{if(ht!==0&&Qe!==null){var C=Qe,N=cr;switch(ht){case 8:zm(),E=6;break e;case 3:case 2:case 9:case 6:Ar.current===null&&(s=!0);var q=ht;if(ht=0,cr=null,zo(a,C,N,q),l&&Io){E=0;break e}break;default:q=ht,ht=0,cr=null,zo(a,C,N,q)}}DM(),E=Ht;break}catch(re){Vx(a,re)}while(!0);return s&&a.shellSuspendCounter++,Ha=_s=null,ft=u,O.H=p,O.A=g,Qe===null&&(_t=null,et=0,ld()),E}function DM(){for(;Qe!==null;)Yx(Qe)}function _M(a,s){var l=ft;ft|=2;var u=zx(),p=Fx();_t!==a||et!==s?(Ud=null,Bd=Yt()+500,Vo(a,s)):Io=vn(a,s);e:do try{if(ht!==0&&Qe!==null){s=Qe;var g=cr;t:switch(ht){case 1:ht=0,cr=null,zo(a,s,g,1);break;case 2:case 9:if(nw(g)){ht=0,cr=null,qx(s);break}s=function(){ht!==2&&ht!==9||_t!==a||(ht=7),ga(a)},g.then(s,s);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:nw(g)?(ht=0,cr=null,qx(s)):(ht=0,cr=null,zo(a,s,g,7));break;case 5:var E=null;switch(Qe.tag){case 26:E=Qe.memoizedState;case 5:case 27:var C=Qe;if(!E||_1(E)){ht=0,cr=null;var N=C.sibling;if(N!==null)Qe=N;else{var q=C.return;q!==null?(Qe=q,Vd(q)):Qe=null}break t}}ht=0,cr=null,zo(a,s,g,5);break;case 6:ht=0,cr=null,zo(a,s,g,6);break;case 8:zm(),Ht=6;break e;default:throw Error(r(462))}}CM();break}catch(re){Vx(a,re)}while(!0);return Ha=_s=null,O.H=u,O.A=p,ft=l,Qe!==null?0:(_t=null,et=0,ld(),Ht)}function CM(){for(;Qe!==null&&!gn();)Yx(Qe)}function Yx(a){var s=yx(a.alternate,a,Ka);a.memoizedProps=a.pendingProps,s===null?Vd(a):Qe=s}function qx(a){var s=a,l=s.alternate;switch(s.tag){case 15:case 0:s=dx(l,s,s.pendingProps,s.type,void 0,et);break;case 11:s=dx(l,s,s.pendingProps,s.type.render,s.ref,et);break;case 5:im(s);default:bx(l,s),s=Qe=$0(s,Ka),s=yx(l,s,Ka)}a.memoizedProps=a.pendingProps,s===null?Vd(a):Qe=s}function zo(a,s,l,u){Ha=_s=null,im(s),Oo=null,mc=0;var p=s.return;try{if(gM(a,p,s,l,et)){Ht=1,Nd(a,Tr(l,a.current)),Qe=null;return}}catch(g){if(p!==null)throw Qe=p,g;Ht=1,Nd(a,Tr(l,a.current)),Qe=null;return}s.flags&32768?(st||u===1?a=!0:Io||(et&536870912)!==0?a=!1:(Ai=a=!0,(u===2||u===9||u===3||u===6)&&(u=Ar.current,u!==null&&u.tag===13&&(u.flags|=16384))),$x(s,a)):Vd(s)}function Vd(a){var s=a;do{if((s.flags&32768)!==0){$x(s,Ai);return}a=s.return;var l=vM(s.alternate,s,Ka);if(l!==null){Qe=l;return}if(s=s.sibling,s!==null){Qe=s;return}Qe=s=a}while(s!==null);Ht===0&&(Ht=5)}function $x(a,s){do{var l=bM(a.alternate,a);if(l!==null){l.flags&=32767,Qe=l;return}if(l=a.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!s&&(a=a.sibling,a!==null)){Qe=a;return}Qe=a=l}while(a!==null);Ht=6,Qe=null}function Wx(a,s,l,u,p,g,E,C,N){a.cancelPendingCommit=null;do zd();while(wn!==0);if((ft&6)!==0)throw Error(r(327));if(s!==null){if(s===a.current)throw Error(r(177));if(g=s.lanes|s.childLanes,g|=Pp,Pa(a,l,g,E,C,N),a===_t&&(Qe=_t=null,et=0),Uo=s,Mi=a,Ho=l,Um=g,Hm=p,Ix=u,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,MM(br,function(){return Zx(),null})):(a.callbackNode=null,a.callbackPriority=0),u=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||u){u=O.T,O.T=null,p=z.p,z.p=2,E=ft,ft|=4;try{wM(a,s,l)}finally{ft=E,z.p=p,O.T=u}}wn=1,Kx(),Gx(),Qx()}}function Kx(){if(wn===1){wn=0;var a=Mi,s=Uo,l=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var u=z.p;z.p=2;var p=ft;ft|=4;try{Rx(s,a);var g=ng,E=L0(a.containerInfo),C=g.focusedElem,N=g.selectionRange;if(E!==C&&C&&C.ownerDocument&&j0(C.ownerDocument.documentElement,C)){if(N!==null&&kp(C)){var q=N.start,re=N.end;if(re===void 0&&(re=q),"selectionStart"in C)C.selectionStart=q,C.selectionEnd=Math.min(re,C.value.length);else{var se=C.ownerDocument||document,K=se&&se.defaultView||window;if(K.getSelection){var Q=K.getSelection(),je=C.textContent.length,Ne=Math.min(N.start,je),wt=N.end===void 0?Ne:Math.min(N.end,je);!Q.extend&&Ne>wt&&(E=wt,wt=Ne,Ne=E);var U=P0(C,Ne),I=P0(C,wt);if(U&&I&&(Q.rangeCount!==1||Q.anchorNode!==U.node||Q.anchorOffset!==U.offset||Q.focusNode!==I.node||Q.focusOffset!==I.offset)){var Y=se.createRange();Y.setStart(U.node,U.offset),Q.removeAllRanges(),Ne>wt?(Q.addRange(Y),Q.extend(I.node,I.offset)):(Y.setEnd(I.node,I.offset),Q.addRange(Y))}}}}for(se=[],Q=C;Q=Q.parentNode;)Q.nodeType===1&&se.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<se.length;C++){var ae=se[C];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}ef=!!tg,ng=tg=null}finally{ft=p,z.p=u,O.T=l}}a.current=s,wn=2}}function Gx(){if(wn===2){wn=0;var a=Mi,s=Uo,l=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var u=z.p;z.p=2;var p=ft;ft|=4;try{_x(a,s.alternate,s)}finally{ft=p,z.p=u,O.T=l}}wn=3}}function Qx(){if(wn===4||wn===3){wn=0,mi();var a=Mi,s=Uo,l=Ho,u=Ix;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?wn=5:(wn=0,Uo=Mi=null,Xx(a,a.pendingLanes));var p=a.pendingLanes;if(p===0&&(Ri=null),ze(l),s=s.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Pt,s,void 0,(s.current.flags&128)===128)}catch{}if(u!==null){s=O.T,p=z.p,z.p=2,O.T=null;try{for(var g=a.onRecoverableError,E=0;E<u.length;E++){var C=u[E];g(C.value,{componentStack:C.stack})}}finally{O.T=s,z.p=p}}(Ho&3)!==0&&zd(),ga(a),p=a.pendingLanes,(l&4194090)!==0&&(p&42)!==0?a===Vm?Tc++:(Tc=0,Vm=a):Tc=0,Dc(0)}}function Xx(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,ac(s)))}function zd(a){return Kx(),Gx(),Qx(),Zx()}function Zx(){if(wn!==5)return!1;var a=Mi,s=Um;Um=0;var l=ze(Ho),u=O.T,p=z.p;try{z.p=32>l?32:l,O.T=null,l=Hm,Hm=null;var g=Mi,E=Ho;if(wn=0,Uo=Mi=null,Ho=0,(ft&6)!==0)throw Error(r(331));var C=ft;if(ft|=4,jx(g.current),Nx(g,g.current,E,l),ft=C,Dc(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Pt,g)}catch{}return!0}finally{z.p=p,O.T=u,Xx(a,s)}}function Jx(a,s,l){s=Tr(l,s),s=bm(a.stateNode,s,2),a=xi(a,s,2),a!==null&&(ar(a,2),ga(a))}function Et(a,s,l){if(a.tag===3)Jx(a,a,l);else for(;s!==null;){if(s.tag===3){Jx(s,a,l);break}else if(s.tag===1){var u=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ri===null||!Ri.has(u))){a=Tr(l,a),l=rx(2),u=xi(s,l,2),u!==null&&(ax(l,u,s,a),ar(u,2),ga(u));break}}s=s.return}}function qm(a,s,l){var u=a.pingCache;if(u===null){u=a.pingCache=new SM;var p=new Set;u.set(s,p)}else p=u.get(s),p===void 0&&(p=new Set,u.set(s,p));p.has(l)||(jm=!0,p.add(l),a=AM.bind(null,a,s,l),s.then(a,a))}function AM(a,s,l){var u=a.pingCache;u!==null&&u.delete(s),a.pingedLanes|=a.suspendedLanes&l,a.warmLanes&=~l,_t===a&&(et&l)===l&&(Ht===4||Ht===3&&(et&62914560)===et&&300>Yt()-Bm?(ft&2)===0&&Vo(a,0):Lm|=l,Bo===et&&(Bo=0)),ga(a)}function e1(a,s){s===0&&(s=Gr()),a=So(a,s),a!==null&&(ar(a,s),ga(a))}function kM(a){var s=a.memoizedState,l=0;s!==null&&(l=s.retryLane),e1(a,l)}function RM(a,s){var l=0;switch(a.tag){case 13:var u=a.stateNode,p=a.memoizedState;p!==null&&(l=p.retryLane);break;case 19:u=a.stateNode;break;case 22:u=a.stateNode._retryCache;break;default:throw Error(r(314))}u!==null&&u.delete(s),e1(a,l)}function MM(a,s){return zn(a,s)}var Fd=null,Fo=null,$m=!1,Yd=!1,Wm=!1,Os=0;function ga(a){a!==Fo&&a.next===null&&(Fo===null?Fd=Fo=a:Fo=Fo.next=a),Yd=!0,$m||($m=!0,OM())}function Dc(a,s){if(!Wm&&Yd){Wm=!0;do for(var l=!1,u=Fd;u!==null;){if(a!==0){var p=u.pendingLanes;if(p===0)var g=0;else{var E=u.suspendedLanes,C=u.pingedLanes;g=(1<<31-kt(42|a)+1)-1,g&=p&~(E&~C),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,a1(u,g))}else g=et,g=tr(u,u===_t?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(g&3)===0||vn(u,g)||(l=!0,a1(u,g));u=u.next}while(l);Wm=!1}}function NM(){t1()}function t1(){Yd=$m=!1;var a=0;Os!==0&&(VM()&&(a=Os),Os=0);for(var s=Yt(),l=null,u=Fd;u!==null;){var p=u.next,g=n1(u,s);g===0?(u.next=null,l===null?Fd=p:l.next=p,p===null&&(Fo=l)):(l=u,(a!==0||(g&3)!==0)&&(Yd=!0)),u=p}Dc(a)}function n1(a,s){for(var l=a.suspendedLanes,u=a.pingedLanes,p=a.expirationTimes,g=a.pendingLanes&-62914561;0<g;){var E=31-kt(g),C=1<<E,N=p[E];N===-1?((C&l)===0||(C&u)!==0)&&(p[E]=da(C,s)):N<=s&&(a.expiredLanes|=C),g&=~C}if(s=_t,l=et,l=tr(a,a===s?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),u=a.callbackNode,l===0||a===s&&(ht===2||ht===9)||a.cancelPendingCommit!==null)return u!==null&&u!==null&&On(u),a.callbackNode=null,a.callbackPriority=0;if((l&3)===0||vn(a,l)){if(s=l&-l,s===a.callbackPriority)return s;switch(u!==null&&On(u),ze(l)){case 2:case 8:l=ua;break;case 32:l=br;break;case 268435456:l=Fn;break;default:l=br}return u=r1.bind(null,a),l=zn(l,u),a.callbackPriority=s,a.callbackNode=l,s}return u!==null&&u!==null&&On(u),a.callbackPriority=2,a.callbackNode=null,2}function r1(a,s){if(wn!==0&&wn!==5)return a.callbackNode=null,a.callbackPriority=0,null;var l=a.callbackNode;if(zd()&&a.callbackNode!==l)return null;var u=et;return u=tr(a,a===_t?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),u===0?null:(Ux(a,u,s),n1(a,Yt()),a.callbackNode!=null&&a.callbackNode===l?r1.bind(null,a):null)}function a1(a,s){if(zd())return null;Ux(a,s,!0)}function OM(){FM(function(){(ft&6)!==0?zn(gt,NM):t1()})}function Km(){return Os===0&&(Os=nr()),Os}function i1(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:td(""+a)}function s1(a,s){var l=s.ownerDocument.createElement("input");return l.name=s.name,l.value=s.value,a.id&&l.setAttribute("form",a.id),s.parentNode.insertBefore(l,s),a=new FormData(a),l.parentNode.removeChild(l),a}function PM(a,s,l,u,p){if(s==="submit"&&l&&l.stateNode===p){var g=i1((p[te]||null).action),E=u.submitter;E&&(s=(s=E[te]||null)?i1(s.formAction):E.getAttribute("formAction"),s!==null&&(g=s,E=null));var C=new id("action","action",null,u,p);a.push({event:C,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Os!==0){var N=E?s1(p,E):new FormData(p);pm(l,{pending:!0,data:N,method:p.method,action:g},null,N)}}else typeof g=="function"&&(C.preventDefault(),N=E?s1(p,E):new FormData(p),pm(l,{pending:!0,data:N,method:p.method,action:g},g,N))},currentTarget:p}]})}}for(var Gm=0;Gm<Op.length;Gm++){var Qm=Op[Gm],jM=Qm.toLowerCase(),LM=Qm[0].toUpperCase()+Qm.slice(1);Jr(jM,"on"+LM)}Jr(U0,"onAnimationEnd"),Jr(H0,"onAnimationIteration"),Jr(V0,"onAnimationStart"),Jr("dblclick","onDoubleClick"),Jr("focusin","onFocus"),Jr("focusout","onBlur"),Jr(JR,"onTransitionRun"),Jr(eM,"onTransitionStart"),Jr(tM,"onTransitionCancel"),Jr(z0,"onTransitionEnd"),Ue("onMouseEnter",["mouseout","mouseover"]),Ue("onMouseLeave",["mouseout","mouseover"]),Ue("onPointerEnter",["pointerout","pointerover"]),Ue("onPointerLeave",["pointerout","pointerover"]),cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cn("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),cn("onBeforeInput",["compositionend","keypress","textInput","paste"]),cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _c="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(" "),IM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_c));function o1(a,s){s=(s&4)!==0;for(var l=0;l<a.length;l++){var u=a[l],p=u.event;u=u.listeners;e:{var g=void 0;if(s)for(var E=u.length-1;0<=E;E--){var C=u[E],N=C.instance,q=C.currentTarget;if(C=C.listener,N!==g&&p.isPropagationStopped())break e;g=C,p.currentTarget=q;try{g(p)}catch(re){Md(re)}p.currentTarget=null,g=N}else for(E=0;E<u.length;E++){if(C=u[E],N=C.instance,q=C.currentTarget,C=C.listener,N!==g&&p.isPropagationStopped())break e;g=C,p.currentTarget=q;try{g(p)}catch(re){Md(re)}p.currentTarget=null,g=N}}}}function Xe(a,s){var l=s[we];l===void 0&&(l=s[we]=new Set);var u=a+"__bubble";l.has(u)||(l1(s,a,2,!1),l.add(u))}function Xm(a,s,l){var u=0;s&&(u|=4),l1(l,a,u,s)}var qd="_reactListening"+Math.random().toString(36).slice(2);function Zm(a){if(!a[qd]){a[qd]=!0,qe.forEach(function(l){l!=="selectionchange"&&(IM.has(l)||Xm(l,!1,a),Xm(l,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[qd]||(s[qd]=!0,Xm("selectionchange",!1,s))}}function l1(a,s,l,u){switch(N1(s)){case 2:var p=uN;break;case 8:p=dN;break;default:p=fg}l=p.bind(null,s,l,a),p=void 0,!wp||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),u?p!==void 0?a.addEventListener(s,l,{capture:!0,passive:p}):a.addEventListener(s,l,!0):p!==void 0?a.addEventListener(s,l,{passive:p}):a.addEventListener(s,l,!1)}function Jm(a,s,l,u,p){var g=u;if((s&1)===0&&(s&2)===0&&u!==null)e:for(;;){if(u===null)return;var E=u.tag;if(E===3||E===4){var C=u.stateNode.containerInfo;if(C===p)break;if(E===4)for(E=u.return;E!==null;){var N=E.tag;if((N===3||N===4)&&E.stateNode.containerInfo===p)return;E=E.return}for(;C!==null;){if(E=Re(C),E===null)return;if(N=E.tag,N===5||N===6||N===26||N===27){u=g=E;continue e}C=C.parentNode}}u=u.return}m0(function(){var q=g,re=vp(l),se=[];e:{var K=F0.get(a);if(K!==void 0){var Q=id,je=a;switch(a){case"keypress":if(rd(l)===0)break e;case"keydown":case"keyup":Q=MR;break;case"focusin":je="focus",Q=Tp;break;case"focusout":je="blur",Q=Tp;break;case"beforeblur":case"afterblur":Q=Tp;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=v0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=bR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=PR;break;case U0:case H0:case V0:Q=ER;break;case z0:Q=LR;break;case"scroll":case"scrollend":Q=yR;break;case"wheel":Q=BR;break;case"copy":case"cut":case"paste":Q=TR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=w0;break;case"toggle":case"beforetoggle":Q=HR}var Ne=(s&4)!==0,wt=!Ne&&(a==="scroll"||a==="scrollend"),U=Ne?K!==null?K+"Capture":null:K;Ne=[];for(var I=q,Y;I!==null;){var ae=I;if(Y=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Y===null||U===null||(ae=ql(I,U),ae!=null&&Ne.push(Cc(I,ae,Y))),wt)break;I=I.return}0<Ne.length&&(K=new Q(K,je,null,l,re),se.push({event:K,listeners:Ne}))}}if((s&7)===0){e:{if(K=a==="mouseover"||a==="pointerover",Q=a==="mouseout"||a==="pointerout",K&&l!==yp&&(je=l.relatedTarget||l.fromElement)&&(Re(je)||je[fe]))break e;if((Q||K)&&(K=re.window===re?re:(K=re.ownerDocument)?K.defaultView||K.parentWindow:window,Q?(je=l.relatedTarget||l.toElement,Q=q,je=je?Re(je):null,je!==null&&(wt=o(je),Ne=je.tag,je!==wt||Ne!==5&&Ne!==27&&Ne!==6)&&(je=null)):(Q=null,je=q),Q!==je)){if(Ne=v0,ae="onMouseLeave",U="onMouseEnter",I="mouse",(a==="pointerout"||a==="pointerover")&&(Ne=w0,ae="onPointerLeave",U="onPointerEnter",I="pointer"),wt=Q==null?K:xt(Q),Y=je==null?K:xt(je),K=new Ne(ae,I+"leave",Q,l,re),K.target=wt,K.relatedTarget=Y,ae=null,Re(re)===q&&(Ne=new Ne(U,I+"enter",je,l,re),Ne.target=Y,Ne.relatedTarget=wt,ae=Ne),wt=ae,Q&&je)t:{for(Ne=Q,U=je,I=0,Y=Ne;Y;Y=Yo(Y))I++;for(Y=0,ae=U;ae;ae=Yo(ae))Y++;for(;0<I-Y;)Ne=Yo(Ne),I--;for(;0<Y-I;)U=Yo(U),Y--;for(;I--;){if(Ne===U||U!==null&&Ne===U.alternate)break t;Ne=Yo(Ne),U=Yo(U)}Ne=null}else Ne=null;Q!==null&&c1(se,K,Q,Ne,!1),je!==null&&wt!==null&&c1(se,wt,je,Ne,!0)}}
vendor: 5,218 bytes, lines 48-49
48e:{if(K=q?xt(q):window,Q=K.nodeName&&K.nodeName.toLowerCase(),Q==="select"||Q==="input"&&K.type==="file")var Se=A0;else if(_0(K))if(k0)Se=QR;else{Se=KR;var We=WR}else Q=K.nodeName,!Q||Q.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?q&&gp(q.elementType)&&(Se=A0):Se=GR;if(Se&&(Se=Se(a,q))){C0(se,Se,l,re);break e}We&&We(a,K,q),a==="focusout"&&q&&K.type==="number"&&q.memoizedProps.value!=null&&mp(K,"number",K.value)}switch(We=q?xt(q):window,a){case"focusin":(_0(We)||We.contentEditable==="true")&&(wo=We,Rp=q,Jl=null);break;case"focusout":Jl=Rp=wo=null;break;case"mousedown":Mp=!0;break;case"contextmenu":case"mouseup":case"dragend":Mp=!1,I0(se,l,re);break;case"selectionchange":if(ZR)break;case"keydown":case"keyup":I0(se,l,re)}var _e;if(_p)e:{switch(a){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else bo?T0(a,l)&&(Oe="onCompositionEnd"):a==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(x0&&l.locale!=="ko"&&(bo||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&bo&&(_e=g0()):(yi=re,xp="value"in yi?yi.value:yi.textContent,bo=!0)),We=$d(q,Oe),0<We.length&&(Oe=new b0(Oe,a,null,l,re),se.push({event:Oe,listeners:We}),_e?Oe.data=_e:(_e=D0(l),_e!==null&&(Oe.data=_e)))),(_e=zR?FR(a,l):YR(a,l))&&(Oe=$d(q,"onBeforeInput"),0<Oe.length&&(We=new b0("onBeforeInput","beforeinput",null,l,re),se.push({event:We,listeners:Oe}),We.data=_e)),PM(se,a,q,l,re)}o1(se,s)})}function Cc(a,s,l){return{instance:a,listener:s,currentTarget:l}}function $d(a,s){for(var l=s+"Capture",u=[];a!==null;){var p=a,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=ql(a,l),p!=null&&u.unshift(Cc(a,p,g)),p=ql(a,s),p!=null&&u.push(Cc(a,p,g))),a.tag===3)return u;a=a.return}return[]}function Yo(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function c1(a,s,l,u,p){for(var g=s._reactName,E=[];l!==null&&l!==u;){var C=l,N=C.alternate,q=C.stateNode;if(C=C.tag,N!==null&&N===u)break;C!==5&&C!==26&&C!==27||q===null||(N=q,p?(q=ql(l,g),q!=null&&E.unshift(Cc(l,q,N))):p||(q=ql(l,g),q!=null&&E.push(Cc(l,q,N)))),l=l.return}E.length!==0&&a.push({event:s,listeners:E})}var BM=/\r\n?/g,UM=/\u0000|\uFFFD/g;function u1(a){return(typeof a=="string"?a:""+a).replace(BM,` 49`).replace(UM,"")}function d1(a,s){return s=u1(s),u1(a)===s}function Wd(){}function bt(a,s,l,u,p,g){switch(l){case"children":typeof u=="string"?s==="body"||s==="textarea"&&u===""||go(a,u):(typeof u=="number"||typeof u=="bigint")&&s!=="body"&&go(a,""+u);break;case"className":ja(a,"class",u);break;case"tabIndex":ja(a,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ja(a,l,u);break;case"style":h0(a,u,g);break;case"data":if(s!=="object"){ja(a,"data",u);break}case"src":case"href":if(u===""&&(s!=="a"||l!=="href")){a.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){a.removeAttribute(l);break}u=td(""+u),a.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){a.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(l==="formAction"?(s!=="input"&&bt(a,s,"name",p.name,p,null),bt(a,s,"formEncType",p.formEncType,p,null),bt(a,s,"formMethod",p.formMethod,p,null),bt(a,s,"formTarget",p.formTarget,p,null)):(bt(a,s,"encType",p.encType,p,null),bt(a,s,"method",p.method,p,null),bt(a,s,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){a.removeAttribute(l);break}u=td(""+u),a.setAttribute(l,u);break;case"onClick":u!=null&&(a.onclick=Wd);break;case"onScroll":u!=null&&Xe("scroll",a);break;case"onScrollEnd":u!=null&&Xe("scrollend",a);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=l}}break;case"multiple":a.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":a.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){a.removeAttribute("xlink:href");break}l=td(""+u),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?a.setAttribute(l,""+u):a.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?a.setAttribute(l,""):a.removeAttribute(l);break;case"capture":case"download":u===!0?a.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?a.setAttribute(l,u):a.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?a.setAttribute(l,u):a.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?a.removeAttribute(l):a.setAttribute(l,u);break;case"popover":Xe("beforetoggle",a),Xe("toggle",a),Tn(a,"popover",u);break;case"xlinkActuate":$e(a,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":$e(a,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":$e(a,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":$e(a,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":$e(a,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":$e(a,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":$e(a,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":$e(a,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":$e(a,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Tn(a,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=mR.get(l)||l,Tn(a,l,u))}}function eg(a,s,l,u,p,g){switch(l){case"style":h0(a,u,g);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(r(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=l}}break;case"children":typeof u=="string"?go(a,u):(typeof u=="number"||typeof u=="bigint")&&go(a,""+u);break;case"onScroll":u!=null&&Xe("scroll",a);break;case"onScrollEnd":u!=null&&Xe("scrollend",a);break;case"onClick":u!=null&&(a.onclick=Wd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(p=l.endsWith("Capture"),s=l.slice(2,p?l.length-7:void 0),g=a[te]||null,g=g!=null?g[l]:null,typeof g=="function"&&a.removeEventListener(s,g,p),typeof u=="function")){typeof g!="function"&&g!==null&&(l in a?a[l]=null:a.hasAttribute(l)&&a.removeAttribute(l)),a.addEventListener(s,u,p);break e}l in a?a[l]=u:u===!0?a.setAttribute(l,""):Tn(a,l,u)}}}function xn(a,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",a),Xe("load",a);var u=!1,p=!1,g;for(g in l)if(l.hasOwnProperty(g)){var E=l[g];if(E!=null)switch(g){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:bt(a,s,g,E,l,null)}}p&&bt(a,s,"srcSet",l.srcSet,l,null),u&&bt(a,s,"src",l.src,l,null);return;case"input":Xe("invalid",a);
vendor: 25,006 bytes, line 49
49var C=g=E=p=null,N=null,q=null;for(u in l)if(l.hasOwnProperty(u)){var re=l[u];if(re!=null)switch(u){case"name":p=re;break;case"type":E=re;break;case"checked":N=re;break;case"defaultChecked":q=re;break;case"value":g=re;break;case"defaultValue":C=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,s));break;default:bt(a,s,u,re,l,null)}}c0(a,g,C,N,q,E,p,!1),Ju(a);return;case"select":Xe("invalid",a),u=E=g=null;for(p in l)if(l.hasOwnProperty(p)&&(C=l[p],C!=null))switch(p){case"value":g=C;break;case"defaultValue":E=C;break;case"multiple":u=C;default:bt(a,s,p,C,l,null)}s=g,l=E,a.multiple=!!u,s!=null?mo(a,!!u,s,!1):l!=null&&mo(a,!!u,l,!0);return;case"textarea":Xe("invalid",a),g=p=u=null;for(E in l)if(l.hasOwnProperty(E)&&(C=l[E],C!=null))switch(E){case"value":u=C;break;case"defaultValue":p=C;break;case"children":g=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:bt(a,s,E,C,l,null)}d0(a,u,p,g),Ju(a);return;case"option":for(N in l)if(l.hasOwnProperty(N)&&(u=l[N],u!=null))switch(N){case"selected":a.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:bt(a,s,N,u,l,null)}return;case"dialog":Xe("beforetoggle",a),Xe("toggle",a),Xe("cancel",a),Xe("close",a);break;case"iframe":case"object":Xe("load",a);break;case"video":case"audio":for(u=0;u<_c.length;u++)Xe(_c[u],a);break;case"image":Xe("error",a),Xe("load",a);break;case"details":Xe("toggle",a);break;case"embed":case"source":case"link":Xe("error",a),Xe("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(q in l)if(l.hasOwnProperty(q)&&(u=l[q],u!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:bt(a,s,q,u,l,null)}return;default:if(gp(s)){for(re in l)l.hasOwnProperty(re)&&(u=l[re],u!==void 0&&eg(a,s,re,u,l,void 0));return}}for(C in l)l.hasOwnProperty(C)&&(u=l[C],u!=null&&bt(a,s,C,u,l,null))}function HM(a,s,l,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,E=null,C=null,N=null,q=null,re=null;for(Q in l){var se=l[Q];if(l.hasOwnProperty(Q)&&se!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":N=se;default:u.hasOwnProperty(Q)||bt(a,s,Q,null,u,se)}}for(var K in u){var Q=u[K];if(se=l[K],u.hasOwnProperty(K)&&(Q!=null||se!=null))switch(K){case"type":g=Q;break;case"name":p=Q;break;case"checked":q=Q;break;case"defaultChecked":re=Q;break;case"value":E=Q;break;case"defaultValue":C=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,s));break;default:Q!==se&&bt(a,s,K,Q,u,se)}}pp(a,E,C,N,q,re,g,p);return;case"select":Q=E=C=K=null;for(g in l)if(N=l[g],l.hasOwnProperty(g)&&N!=null)switch(g){case"value":break;case"multiple":Q=N;default:u.hasOwnProperty(g)||bt(a,s,g,null,u,N)}for(p in u)if(g=u[p],N=l[p],u.hasOwnProperty(p)&&(g!=null||N!=null))switch(p){case"value":K=g;break;case"defaultValue":C=g;break;case"multiple":E=g;default:g!==N&&bt(a,s,p,g,u,N)}s=C,l=E,u=Q,K!=null?mo(a,!!l,K,!1):!!u!=!!l&&(s!=null?mo(a,!!l,s,!0):mo(a,!!l,l?[]:"",!1));return;case"textarea":Q=K=null;for(C in l)if(p=l[C],l.hasOwnProperty(C)&&p!=null&&!u.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:bt(a,s,C,null,u,p)}for(E in u)if(p=u[E],g=l[E],u.hasOwnProperty(E)&&(p!=null||g!=null))switch(E){case"value":K=p;break;case"defaultValue":Q=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==g&&bt(a,s,E,p,u,g)}u0(a,K,Q);return;case"option":for(var je in l)if(K=l[je],l.hasOwnProperty(je)&&K!=null&&!u.hasOwnProperty(je))switch(je){case"selected":a.selected=!1;break;default:bt(a,s,je,null,u,K)}for(N in u)if(K=u[N],Q=l[N],u.hasOwnProperty(N)&&K!==Q&&(K!=null||Q!=null))switch(N){case"selected":a.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:bt(a,s,N,K,u,Q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ne in l)K=l[Ne],l.hasOwnProperty(Ne)&&K!=null&&!u.hasOwnProperty(Ne)&&bt(a,s,Ne,null,u,K);for(q in u)if(K=u[q],Q=l[q],u.hasOwnProperty(q)&&K!==Q&&(K!=null||Q!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,s));break;default:bt(a,s,q,K,u,Q)}return;default:if(gp(s)){for(var wt in l)K=l[wt],l.hasOwnProperty(wt)&&K!==void 0&&!u.hasOwnProperty(wt)&&eg(a,s,wt,void 0,u,K);for(re in u)K=u[re],Q=l[re],!u.hasOwnProperty(re)||K===Q||K===void 0&&Q===void 0||eg(a,s,re,K,u,Q);return}}for(var U in l)K=l[U],l.hasOwnProperty(U)&&K!=null&&!u.hasOwnProperty(U)&&bt(a,s,U,null,u,K);for(se in u)K=u[se],Q=l[se],!u.hasOwnProperty(se)||K===Q||K==null&&Q==null||bt(a,s,se,K,u,Q)}var tg=null,ng=null;function Kd(a){return a.nodeType===9?a:a.ownerDocument}function f1(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function h1(a,s){if(a===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&s==="foreignObject"?0:a}function rg(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var ag=null;function VM(){var a=window.event;return a&&a.type==="popstate"?a===ag?!1:(ag=a,!0):(ag=null,!1)}var p1=typeof setTimeout=="function"?setTimeout:void 0,zM=typeof clearTimeout=="function"?clearTimeout:void 0,m1=typeof Promise=="function"?Promise:void 0,FM=typeof queueMicrotask=="function"?queueMicrotask:typeof m1<"u"?function(a){return m1.resolve(null).then(a).catch(YM)}:p1;function YM(a){setTimeout(function(){throw a})}function Oi(a){return a==="head"}function g1(a,s){var l=s,u=0,p=0;do{var g=l.nextSibling;if(a.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"){if(0<u&&8>u){l=u;var E=a.ownerDocument;if(l&1&&Ac(E.documentElement),l&2&&Ac(E.body),l&4)for(l=E.head,Ac(l),E=l.firstChild;E;){var C=E.nextSibling,N=E.nodeName;E[Te]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&E.rel.toLowerCase()==="stylesheet"||l.removeChild(E),E=C}}if(p===0){a.removeChild(g),Lc(s);return}p--}else l==="$"||l==="$?"||l==="$!"?p++:u=l.charCodeAt(0)-48;else u=0;l=g}while(l);Lc(s)}function ig(a){var s=a.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var l=s;switch(s=s.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ig(l),he(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}a.removeChild(l)}}function qM(a,s,l,u){for(;a.nodeType===1;){var p=l;if(a.nodeName.toLowerCase()!==s.toLowerCase()){if(!u&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(u){if(!a[Te])switch(s){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(g=a.getAttribute("rel"),g==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(g!==p.rel||a.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||a.getAttribute("title")!==(p.title==null?null:p.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(g=a.getAttribute("src"),(g!==(p.src==null?null:p.src)||a.getAttribute("type")!==(p.type==null?null:p.type)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(s==="input"&&a.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&a.getAttribute("name")===g)return a}else return a;if(a=ta(a.nextSibling),a===null)break}return null}function $M(a,s,l){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=ta(a.nextSibling),a===null))return null;return a}function sg(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState==="complete"}function WM(a,s){var l=a.ownerDocument;if(a.data!=="$?"||l.readyState==="complete")s();else{var u=function(){s(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),a._reactRetry=u}}function ta(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return a}var og=null;function y1(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var l=a.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return a;s--}else l==="/$"&&s++}a=a.previousSibling}return null}function v1(a,s,l){switch(s=Kd(l),a){case"html":if(a=s.documentElement,!a)throw Error(r(452));return a;case"head":if(a=s.head,!a)throw Error(r(453));return a;case"body":if(a=s.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Ac(a){for(var s=a.attributes;s.length;)a.removeAttributeNode(s[0]);he(a)}var Rr=new Map,b1=new Set;function Gd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Ga=z.d;z.d={f:KM,r:GM,D:QM,C:XM,L:ZM,m:JM,X:tN,S:eN,M:nN};function KM(){var a=Ga.f(),s=Hd();return a||s}function GM(a){var s=Ze(a);s!==null&&s.tag===5&&s.type==="form"?Uw(s):Ga.r(a)}var qo=typeof document>"u"?null:document;function w1(a,s,l){var u=qo;if(u&&typeof s=="string"&&s){var p=Sr(s);p='link[rel="'+a+'"][href="'+p+'"]',typeof l=="string"&&(p+='[crossorigin="'+l+'"]'),b1.has(p)||(b1.add(p),a={rel:a,crossOrigin:l,href:s},u.querySelector(p)===null&&(s=u.createElement("link"),xn(s,"link",a),Je(s),u.head.appendChild(s)))}}function QM(a){Ga.D(a),w1("dns-prefetch",a,null)}function XM(a,s){Ga.C(a,s),w1("preconnect",a,s)}function ZM(a,s,l){Ga.L(a,s,l);var u=qo;if(u&&a&&s){var p='link[rel="preload"][as="'+Sr(s)+'"]';s==="image"&&l&&l.imageSrcSet?(p+='[imagesrcset="'+Sr(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(p+='[imagesizes="'+Sr(l.imageSizes)+'"]')):p+='[href="'+Sr(a)+'"]';var g=p;switch(s){case"style":g=$o(a);break;case"script":g=Wo(a)}Rr.has(g)||(a=m({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:a,as:s},l),Rr.set(g,a),u.querySelector(p)!==null||s==="style"&&u.querySelector(kc(g))||s==="script"&&u.querySelector(Rc(g))||(s=u.createElement("link"),xn(s,"link",a),Je(s),u.head.appendChild(s)))}}function JM(a,s){Ga.m(a,s);var l=qo;if(l&&a){var u=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Sr(u)+'"][href="'+Sr(a)+'"]',g=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Wo(a)}if(!Rr.has(g)&&(a=m({rel:"modulepreload",href:a},s),Rr.set(g,a),l.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Rc(g)))return}u=l.createElement("link"),xn(u,"link",a),Je(u),l.head.appendChild(u)}}}function eN(a,s,l){Ga.S(a,s,l);var u=qo;if(u&&a){var p=Dt(u).hoistableStyles,g=$o(a);s=s||"default";var E=p.get(g);if(!E){var C={loading:0,preload:null};if(E=u.querySelector(kc(g)))C.loading=5;else{a=m({rel:"stylesheet",href:a,"data-precedence":s},l),(l=Rr.get(g))&&lg(a,l);var N=E=u.createElement("link");Je(N),xn(N,"link",a),N._p=new Promise(function(q,re){N.onload=q,N.onerror=re}),N.addEventListener("load",function(){C.loading|=1}),N.addEventListener("error",function(){C.loading|=2}),C.loading|=4,Qd(E,s,u)}E={type:"stylesheet",instance:E,count:1,state:C},p.set(g,E)}}}function tN(a,s){Ga.X(a,s);var l=qo;if(l&&a){var u=Dt(l).hoistableScripts,p=Wo(a),g=u.get(p);g||(g=l.querySelector(Rc(p)),g||(a=m({src:a,async:!0},s),(s=Rr.get(p))&&cg(a,s),g=l.createElement("script"),Je(g),xn(g,"link",a),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(p,g))}}function nN(a,s){Ga.M(a,s);var l=qo;if(l&&a){var u=Dt(l).hoistableScripts,p=Wo(a),g=u.get(p);g||(g=l.querySelector(Rc(p)),g||(a=m({src:a,async:!0,type:"module"},s),(s=Rr.get(p))&&cg(a,s),g=l.createElement("script"),Je(g),xn(g,"link",a),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(p,g))}}function x1(a,s,l,u){var p=(p=Ae.current)?Gd(p):null;if(!p)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(s=$o(l.href),l=Dt(p).hoistableStyles,u=l.get(s),u||(u={type:"style",instance:null,count:0,state:null},l.set(s,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){a=$o(l.href);var g=Dt(p).hoistableStyles,E=g.get(a);if(E||(p=p.ownerDocument||p,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(a,E),(g=p.querySelector(kc(a)))&&!g._p&&(E.instance=g,E.state.loading=5),Rr.has(a)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Rr.set(a,l),g||rN(p,a,l,E.state))),s&&u===null)throw Error(r(528,""));return E}if(s&&u!==null)throw Error(r(529,""));return null;case"script":return s=l.async,l=l.src,typeof l=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Wo(l),l=Dt(p).hoistableScripts,u=l.get(s),u||(u={type:"script",instance:null,count:0,state:null},l.set(s,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function $o(a){return'href="'+Sr(a)+'"'}function kc(a){return'link[rel="stylesheet"]['+a+"]"}function E1(a){return m({},a,{"data-precedence":a.precedence,precedence:null})}function rN(a,s,l,u){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?u.loading=1:(s=a.createElement("link"),u.preload=s,s.addEventListener("load",function(){return u.loading|=1}),s.addEventListener("error",function(){return u.loading|=2}),xn(s,"link",l),Je(s),a.head.appendChild(s))}function Wo(a){return'[src="'+Sr(a)+'"]'}function Rc(a){return"script[async]"+a}function S1(a,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var u=a.querySelector('style[data-href~="'+Sr(l.href)+'"]');if(u)return s.instance=u,Je(u),u;var p=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(a.ownerDocument||a).createElement("style"),Je(u),xn(u,"style",p),Qd(u,l.precedence,a),s.instance=u;case"stylesheet":p=$o(l.href);var g=a.querySelector(kc(p));if(g)return s.state.loading|=4,s.instance=g,Je(g),g;u=E1(l),(p=Rr.get(p))&&lg(u,p),g=(a.ownerDocument||a).createElement("link"),Je(g);var E=g;return E._p=new Promise(function(C,N){E.onload=C,E.onerror=N}),xn(g,"link",u),s.state.loading|=4,Qd(g,l.precedence,a),s.instance=g;case"script":return g=Wo(l.src),(p=a.querySelector(Rc(g)))?(s.instance=p,Je(p),p):(u=l,(p=Rr.get(g))&&(u=m({},l),cg(u,p)),a=a.ownerDocument||a,p=a.createElement("script"),Je(p),xn(p,"link",u),a.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(u=s.instance,s.state.loading|=4,Qd(u,l.precedence,a));return s.instance}function Qd(a,s,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,g=p,E=0;E<u.length;E++){var C=u[E];if(C.dataset.precedence===s)g=C;else if(g!==p)break}g?g.parentNode.insertBefore(a,g.nextSibling):(s=l.nodeType===9?l.head:l,s.insertBefore(a,s.firstChild))}function lg(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.title==null&&(a.title=s.title)}function cg(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.integrity==null&&(a.integrity=s.integrity)}var Xd=null;function T1(a,s,l){if(Xd===null){var u=new Map,p=Xd=new Map;p.set(l,u)}else p=Xd,u=p.get(l),u||(u=new Map,p.set(l,u));if(u.has(a))return u;for(u.set(a,null),l=l.getElementsByTagName(a),p=0;p<l.length;p++){var g=l[p];if(!(g[Te]||g[$]||a==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var E=g.getAttribute(s)||"";E=a+E;var C=u.get(E);C?C.push(g):u.set(E,[g])}}return u}function D1(a,s,l){a=a.ownerDocument||a,a.head.insertBefore(l,s==="title"?a.querySelector("head > title"):null)}function aN(a,s,l){if(l===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function _1(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var Mc=null;function iN(){}function sN(a,s,l){if(Mc===null)throw Error(r(475));var u=Mc;if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=$o(l.href),g=a.querySelector(kc(p));if(g){a=g._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(u.count++,u=Zd.bind(u),a.then(u,u)),s.state.loading|=4,s.instance=g,Je(g);return}g=a.ownerDocument||a,l=E1(l),(p=Rr.get(p))&&lg(l,p),g=g.createElement("link"),Je(g);var E=g;E._p=new Promise(function(C,N){E.onload=C,E.onerror=N}),xn(g,"link",l),s.instance=g}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(u.count++,s=Zd.bind(u),a.addEventListener("load",s),a.addEventListener("error",s))}}function oN(){if(Mc===null)throw Error(r(475));var a=Mc;return a.stylesheets&&a.count===0&&ug(a,a.stylesheets),0<a.count?function(s){var l=setTimeout(function(){if(a.stylesheets&&ug(a,a.stylesheets),a.unsuspend){var u=a.unsuspend;a.unsuspend=null,u()}},6e4);return a.unsuspend=s,function(){a.unsuspend=null,clearTimeout(l)}}:null}function Zd(){if(this.count--,this.count===0){if(this.stylesheets)ug(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Jd=null;function ug(a,s){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Jd=new Map,s.forEach(lN,a),Jd=null,Zd.call(a))}function lN(a,s){if(!(s.state.loading&4)){var l=Jd.get(a);if(l)var u=l.get(null);else{l=new Map,Jd.set(a,l);for(var p=a.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var E=p[g];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(l.set(E.dataset.precedence,E),u=E)}u&&l.set(null,u)}p=s.instance,E=p.getAttribute("data-precedence"),g=l.get(E)||u,g===u&&l.set(null,p),l.set(E,p),this.count++,u=Zd.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),g?g.parentNode.insertBefore(p,g.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(p,a.firstChild)),s.state.loading|=4}}var Nc={$$typeof:A,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function cN(a,s,l,u,p,g,E,C){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rr(0),this.hiddenUpdates=rr(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function C1(a,s,l,u,p,g,E,C,N,q,re,se){return a=new cN(a,s,l,E,C,N,q,se),s=1,g===!0&&(s|=24),g=sr(3,null,null,s),a.current=g,g.stateNode=a,s=qp(),s.refCount++,a.pooledCache=s,s.refCount++,g.memoizedState={element:u,isDehydrated:l,cache:s},Gp(g),a}function A1(a){return a?(a=To,a):To}function k1(a,s,l,u,p,g){p=A1(p),u.context===null?u.context=p:u.pendingContext=p,u=wi(s),u.payload={element:l},g=g===void 0?null:g,g!==null&&(u.callback=g),l=xi(a,u,s),l!==null&&(dr(l,a,s),lc(l,a,s))}function R1(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var l=a.retryLane;a.retryLane=l!==0&&l<s?l:s}}function dg(a,s){R1(a,s),(a=a.alternate)&&R1(a,s)}function M1(a){if(a.tag===13){var s=So(a,67108864);s!==null&&dr(s,a,67108864),dg(a,67108864)}}var ef=!0;function uN(a,s,l,u){var p=O.T;O.T=null;var g=z.p;try{z.p=2,fg(a,s,l,u)}finally{z.p=g,O.T=p}}function dN(a,s,l,u){var p=O.T;O.T=null;var g=z.p;try{z.p=8,fg(a,s,l,u)}finally{z.p=g,O.T=p}}function fg(a,s,l,u){if(ef){var p=hg(u);if(p===null)Jm(a,s,u,tf,l),O1(a,u);else if(hN(p,a,s,l,u))u.stopPropagation();else if(O1(a,u),s&4&&-1<fN.indexOf(a)){for(;p!==null;){var g=Ze(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var E=Yn(g.pendingLanes);if(E!==0){var C=g;for(C.pendingLanes|=2,C.entangledLanes|=2;E;){var N=1<<31-kt(E);C.entanglements[1]|=N,E&=~N}ga(g),(ft&6)===0&&(Bd=Yt()+500,Dc(0))}}break;case 13:C=So(g,2),C!==null&&dr(C,g,2),Hd(),dg(g,2)}if(g=hg(u),g===null&&Jm(a,s,u,tf,l),g===p)break;p=g}p!==null&&u.stopPropagation()}else Jm(a,s,u,null,l)}}function hg(a){return a=vp(a),pg(a)}var tf=null;function pg(a){if(tf=null,a=Re(a),a!==null){var s=o(a);if(s===null)a=null;else{var l=s.tag;if(l===13){if(a=c(s),a!==null)return a;a=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null)}}return tf=a,null}function N1(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Kr()){case gt:return 2;case ua:return 8;case br:case Pn:return 32;case Fn:return 268435456;default:return 32}default:return 32}}var mg=!1,Pi=null,ji=null,Li=null,Oc=new Map,Pc=new Map,Ii=[],fN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function O1(a,s){switch(a){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":ji=null;break;case"mouseover":case"mouseout":Li=null;break;case"pointerover":case"pointerout":Oc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(s.pointerId)}}function jc(a,s,l,u,p,g){return a===null||a.nativeEvent!==g?(a={blockedOn:s,domEventName:l,eventSystemFlags:u,nativeEvent:g,targetContainers:[p]},s!==null&&(s=Ze(s),s!==null&&M1(s)),a):(a.eventSystemFlags|=u,s=a.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),a)}function hN(a,s,l,u,p){switch(s){case"focusin":return Pi=jc(Pi,a,s,l,u,p),!0;case"dragenter":return ji=jc(ji,a,s,l,u,p),!0;case"mouseover":return Li=jc(Li,a,s,l,u,p),!0;case"pointerover":var g=p.pointerId;return Oc.set(g,jc(Oc.get(g)||null,a,s,l,u,p)),!0;case"gotpointercapture":return g=p.pointerId,Pc.set(g,jc(Pc.get(g)||null,a,s,l,u,p)),!0}return!1}function P1(a){var s=Re(a.target);if(s!==null){var l=o(s);if(l!==null){if(s=l.tag,s===13){if(s=c(l),s!==null){a.blockedOn=s,H(a.priority,function(){if(l.tag===13){var u=ur();u=ke(u);var p=So(l,u);p!==null&&dr(p,l,u),dg(l,u)}});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){a.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}a.blockedOn=null}function nf(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var l=hg(a.nativeEvent);if(l===null){l=a.nativeEvent;var u=new l.constructor(l.type,l);yp=u,l.target.dispatchEvent(u),yp=null}else return s=Ze(l),s!==null&&M1(s),a.blockedOn=l,!1;s.shift()}return!0}function j1(a,s,l){nf(a)&&l.delete(s)}function pN(){mg=!1,Pi!==null&&nf(Pi)&&(Pi=null),ji!==null&&nf(ji)&&(ji=null),Li!==null&&nf(Li)&&(Li=null),Oc.forEac
vendor: 4,271 bytes, line 49
49h(j1),Pc.forEach(j1)}function rf(a,s){a.blockedOn===s&&(a.blockedOn=null,mg||(mg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,pN)))}var af=null;function L1(a){af!==a&&(af=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){af===a&&(af=null);for(var s=0;s<a.length;s+=3){var l=a[s],u=a[s+1],p=a[s+2];if(typeof u!="function"){if(pg(u||l)===null)continue;break}var g=Ze(l);g!==null&&(a.splice(s,3),s-=3,pm(g,{pending:!0,data:p,method:l.method,action:u},u,p))}}))}function Lc(a){function s(N){return rf(N,a)}Pi!==null&&rf(Pi,a),ji!==null&&rf(ji,a),Li!==null&&rf(Li,a),Oc.forEach(s),Pc.forEach(s);for(var l=0;l<Ii.length;l++){var u=Ii[l];u.blockedOn===a&&(u.blockedOn=null)}for(;0<Ii.length&&(l=Ii[0],l.blockedOn===null);)P1(l),l.blockedOn===null&&Ii.shift();if(l=(a.ownerDocument||a).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var p=l[u],g=l[u+1],E=p[te]||null;if(typeof g=="function")E||L1(l);else if(E){var C=null;if(g&&g.hasAttribute("formAction")){if(p=g,E=g[te]||null)C=E.formAction;else if(pg(p)!==null)continue}else C=E.action;typeof C=="function"?l[u+1]=C:(l.splice(u,3),u-=3),L1(l)}}}function gg(a){this._internalRoot=a}sf.prototype.render=gg.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(r(409));var l=s.current,u=ur();k1(l,u,a,s,null,null)},sf.prototype.unmount=gg.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;k1(a.current,2,null,a,null,null),Hd(),s[fe]=null}};function sf(a){this._internalRoot=a}sf.prototype.unstable_scheduleHydration=function(a){if(a){var s=P();a={blockedOn:null,target:a,priority:s};for(var l=0;l<Ii.length&&s!==0&&s<Ii[l].priority;l++);Ii.splice(l,0,a),l===0&&P1(a)}};var I1=t.version;if(I1!=="19.1.0")throw Error(r(527,I1,"19.1.0"));z.findDOMNode=function(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=f(s),a=a!==null?h(a):null,a=a===null?null:a.stateNode,a};var mN={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var of=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!of.isDisabled&&of.supportsFiber)try{Pt=of.inject(mN),dt=of}catch{}}return Bc.createRoot=function(a,s){if(!i(a))throw Error(r(299));var l=!1,u="",p=Jw,g=ex,E=tx,C=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(g=s.onCaughtError),s.onRecoverableError!==void 0&&(E=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(C=s.unstable_transitionCallbacks)),s=C1(a,1,!1,null,null,l,u,p,g,E,C,null),a[fe]=s.current,Zm(a),new gg(s)},Bc.hydrateRoot=function(a,s,l){if(!i(a))throw Error(r(299));var u=!1,p="",g=Jw,E=ex,C=tx,N=null,q=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(E=l.onCaughtError),l.onRecoverableError!==void 0&&(C=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(N=l.unstable_transitionCallbacks),l.formState!==void 0&&(q=l.formState)),s=C1(a,1,!0,s,l??null,u,p,g,E,C,N,q),s.context=A1(null),l=s.current,u=ur(),u=ke(u),p=wi(u),p.callback=null,xi(l,p,u),l=u,s.current.lanes=l,ar(s,l),ga(s),a[fe]=s.current,Zm(a),new sf(s)},Bc.version="19.1.0",Bc}var W1;function CN(){if(W1)return bg.exports;W1=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(),bg.exports=_N(),bg.exports}var AN=CN(),Sg,K1;function kN(){if(K1)return Sg;K1=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,c){if(o===c)return!0;if(o&&c&&typeof o=="object"&&typeof c=="object"){if(o.constructor!==c.constructor)return!1;var d,f,h;if(Array.isArray(o)){if(d=o.length,d!=c.length)return!1;for(f=d;f--!==0;)if(!i(o[f],c[f]))return!1;return!0}var m;if(t&&o instanceof Map&&c instanceof Map){if(o.size!==c.size)return!1;
49for(m=o.entries();!(f=m.next()).done;)if(!c.has(f.value[0]))return!1;for(m=o.entries();!(f=m.next()).done;)if(!i(f.value[1],c.get(f.value[0])))return!1;return!0}if(n&&o instanceof Set&&c instanceof Set){if(o.size!==c.size)return!1;for(m=o.entries();!(f=m.next()).done;)if(!c.has(f.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(c)){if(d=o.length,d!=c.length)return!1;for(f=d;f--!==0;)if(o[f]!==c[f])return!1;return!0}if(o.constructor===RegExp)return o.source===c.source&&o.flags===c.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof c.valueOf=="function")return o.valueOf()===c.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof c.toString=="function")return o.toString()===c.toString();if(h=Object.keys(o),d=h.length,d!==Object.keys(c).length)return!1;for(f=d;f--!==0;)if(!Object.prototype.hasOwnProperty.call(c,h[f]))return!1;if(e&&o instanceof Element)return!1;for(f=d;f--!==0;)if(!((h[f]==="_owner"||h[f]==="__v"||h[f]==="__o")&&o.$$typeof)&&!i(o[h[f]],c[h[f]]))return!1;return!0}return o!==o&&c!==c}return Sg=function(c,d){try{return i(c,d)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Sg}var RN=kN();const MN=Rl(RN);var Tg,G1;function NN(){if(G1)return Tg;G1=1;var e=function(t,n,r,i,o,c,d,f){if(!t){var h;if(n===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[r,i,o,c,d,f],v=0;h=new Error(n.replace(/%s/g,function(){return m[v++]})),h.name="Invariant Violation"}throw h.framesToPop=1,h}};return Tg=e,Tg}var ON=NN();const Q1=Rl(ON);var Dg,X1;function PN(){return X1||(X1=1,Dg=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var c=Object.keys(t),d=Object.keys(n);if(c.length!==d.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(n),h=0;h<c.length;h++){var m=c[h];if(!f(m))return!1;var v=t[m],b=n[m];if(o=r?r.call(i,v,b,m):void 0,o===!1||o===void 0&&v!==b)return!1}return!0}),Dg}var jN=PN();const LN=Rl(jN);var HT=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(HT||{}),_g={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Z1=Object.values(HT),Dv={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},IN=Object.entries(Dv).reduce((e,[t,n])=>(e[n]=t,e),{}),ra="data-rh",il={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},sl=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},BN=e=>{let t=sl(e,"title");const n=sl(e,il.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=sl(e,il.DEFAULT_TITLE);return t||r||void 0},UN=e=>sl(e,il.ON_CHANGE_CLIENT_STATE)||(()=>{}),Cg=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),HN=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const d=i[o].toLowerCase();if(e.indexOf(d)!==-1&&r[d])return n.concat(r)}}return n},[]),VN=e=>console&&typeof console.warn=="function"&&console.warn(e),Uc=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&VN(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const c={};o.filter(f=>{let h;const m=Object.keys(f);for(let b=0;b<m.length;b+=1){const w=m[b],x=w.toLowerCase();
49t.indexOf(x)!==-1&&!(h==="rel"&&f[h].toLowerCase()==="canonical")&&!(x==="rel"&&f[x].toLowerCase()==="stylesheet")&&(h=x),t.indexOf(w)!==-1&&(w==="innerHTML"||w==="cssText"||w==="itemprop")&&(h=w)}if(!h||!f[h])return!1;const v=f[h].toLowerCase();return r[h]||(r[h]={}),c[h]||(c[h]={}),r[h][v]?!1:(c[h][v]=!0,!0)}).reverse().forEach(f=>i.push(f));const d=Object.keys(c);for(let f=0;f<d.length;f+=1){const h=d[f],m={...r[h],...c[h]};r[h]=m}return i},[]).reverse()},zN=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},FN=e=>({baseTag:HN(["href"],e),bodyAttributes:Cg("bodyAttributes",e),defer:sl(e,il.DEFER),encode:sl(e,il.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Cg("htmlAttributes",e),linkTags:Uc("link",["rel","href"],e),metaTags:Uc("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Uc("noscript",["innerHTML"],e),onChangeClientState:UN(e),scriptTags:Uc("script",["src","innerHTML"],e),styleTags:Uc("style",["cssText"],e),title:BN(e),titleAttributes:Cg("titleAttributes",e),prioritizeSeoTags:zN(e,il.PRIORITIZE_SEO_TAGS)}),VT=e=>Array.isArray(e)?e.join(""):e,YN=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Ag=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(YN(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},J1=(e,t)=>({...e,[t]:void 0}),qN=["noscript","script","style"],vy=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),zT=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),$N=(e,t,n,r)=>{const i=zT(n),o=VT(t);return i?`<${e} ${ra}="true" ${i}>${vy(o,r)}</${e}>`:`<${e} ${ra}="true">${vy(o,r)}</${e}>`},WN=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,c=Object.keys(o).filter(h=>!(h==="innerHTML"||h==="cssText")).reduce((h,m)=>{const v=typeof o[m]>"u"?m:`${m}="${vy(o[m],n)}"`;return h?`${h} ${v}`:v},""),d=o.innerHTML||o.cssText||"",f=qN.indexOf(e)===-1;return`${r}<${e} ${ra}="true" ${c}${f?"/>":`>${d}</${e}>`}`},""),FT=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=Dv[r];return n[i||r]=e[r],n},t),KN=(e,t,n)=>{const r={key:t,[ra]:!0},i=FT(n,r);return[W.createElement("title",i,t)]},Tf=(e,t)=>t.map((n,r)=>{const i={key:r,[ra]:!0};return Object.keys(n).forEach(o=>{const d=Dv[o]||o;if(d==="innerHTML"||d==="cssText"){const f=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:f}}else i[d]=n[o]}),W.createElement(e,i)}),Pr=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>KN(e,t.title,t.titleAttributes),toString:()=>$N(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>FT(t),toString:()=>zT(t)};default:return{toComponent:()=>Tf(e,t),toString:()=>WN(e,t,n)}}},GN=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=Ag(e,_g.meta),o=Ag(t,_g.link),c=Ag(n,_g.script);return{priorityMethods:{toComponent:()=>[...Tf("meta",i.priority),...Tf("link",o.priority),...Tf("script",c.priority)],toString:()=>`${Pr("meta",i.priority,r)} ${Pr("link",o.priority,r)} ${Pr("script",c.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:c.default}},QN=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:c,title:d="",titleAttributes:f,prioritizeSeoTags:h}=e;let{linkTags:m,metaTags:v,scriptTags:b}=e,w={toComponent:()=>{},toString:()=>""};return h&&({priorityMethods:w,linkTags:m,metaTags:v,scriptTags:b}=GN(e)),{priority:w,base:Pr("base",t,r),bodyAttributes:Pr("bodyAttributes",n,r),htmlAttributes:Pr("htmlAttributes",i,r),link:Pr("link",m,r),meta:Pr("meta",v,r),noscript:Pr("noscript",o,r),script:Pr("script",b,r),style:Pr("style",c,r),title:Pr("title",{title:d,titleAttributes:f},r)}},by=QN,lf=[],YT=!!(typeof window<"u"&&window.document&&window.document.createElement),wy=class{constructor(e,t){me(this,"instances",[]);me(this,"canUseDOM",YT);me(this,"context");me(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?lf:this.instances,add:e=>{(this.canUseDOM?lf:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?lf:this.instances).indexOf(e);(this.canUseDOM?lf:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=by({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},XN={},qT=W.createContext(XN),Ks,_v=(Ks=class extends S.Component{constructor(n){super(n);me(this,"helmetData");this.helmetData=new wy(this.props.context||{},Ks.canUseDOM)}render(){return W.createElement(qT.Provider,{value:this.helmetData.value},this.props.children)}},me(Ks,"canUseDOM",YT),Ks),Ko=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${ra}]`),i=[].slice.call(r),o=[];let c;return t&&t.length&&t.forEach(d=>{const f=document.createElement(e);for(const h in d)if(Object.prototype.hasOwnProperty.call(d,h))if(h==="innerHTML")f.innerHTML=d.innerHTML;else if(h==="cssText")f.styleSheet?f.styleSheet.cssText=d.cssText:f.appendChild(document.createTextNode(d.cssText));else{const m=h,v=typeof d[m]>"u"?"":d[m];f.setAttribute(h,v)}
49f.setAttribute(ra,"true"),i.some((h,m)=>(c=m,f.isEqualNode(h)))?i.splice(c,1):o.push(f)}),i.forEach(d=>{var f;return(f=d.parentNode)==null?void 0:f.removeChild(d)}),o.forEach(d=>n.appendChild(d)),{oldTags:i,newTags:o}},xy=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(ra),i=r?r.split(","):[],o=[...i],c=Object.keys(t);for(const d of c){const f=t[d]||"";n.getAttribute(d)!==f&&n.setAttribute(d,f),i.indexOf(d)===-1&&i.push(d);const h=o.indexOf(d);h!==-1&&o.splice(h,1)}for(let d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute(ra):n.getAttribute(ra)!==c.join(",")&&n.setAttribute(ra,c.join(","))},ZN=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=VT(e)),xy("title",t)},eE=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:c,noscriptTags:d,onChangeClientState:f,scriptTags:h,styleTags:m,title:v,titleAttributes:b}=e;xy("body",r),xy("html",i),ZN(v,b);const w={baseTag:Ko("base",n),linkTags:Ko("link",o),metaTags:Ko("meta",c),noscriptTags:Ko("noscript",d),scriptTags:Ko("script",h),styleTags:Ko("style",m)},x={},T={};
49Object.keys(w).forEach(D=>{const{newTags:_,oldTags:k}=w[D];_.length&&(x[D]=_),k.length&&(T[D]=w[D].oldTags)}),t&&t(),f(e,x,T)},Hc=null,JN=e=>{Hc&&cancelAnimationFrame(Hc),e.defer?Hc=requestAnimationFrame(()=>{eE(e,()=>{Hc=null})}):(eE(e),Hc=null)},eO=JN,tE=class extends S.Component{constructor(){super(...arguments);me(this,"rendered",!1)}shouldComponentUpdate(t){return!LN(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=FN(t.get().map(o=>{const c={...o.props};return delete c.context,c}));_v.canUseDOM?eO(i):by&&(r=by(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},yy,Ml=(yy=class extends S.Component{shouldComponentUpdate(e){return!MN(J1(this.props,"helmetData"),J1(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Q1(Z1.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Z1.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Q1(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return W.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,c=Object.keys(o).reduce((f,h)=>(f[IN[h]||h]=o[h],f),{});let{type:d}=r;
49switch(typeof d=="symbol"?d=d.toString():this.warnOnInvalidChildren(r,i),d){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,c,i);break;default:t=this.mapObjectTypeChildren(r,t,c,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof wy)){const i=r;r=new wy(i.context,!0),delete n.helmetData}return r?W.createElement(tE,{...n,context:r.value}):W.createElement(qT.Consumer,null,i=>W.createElement(tE,{...n,context:i}))}},me(yy,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),yy),Vc={},nE;function tO(){if(nE)return Vc;nE=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.parse=c,Vc.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,o=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function c(b,w){const x=new o,T=b.length;if(T<2)return x;const D=(w==null?void 0:w.decode)||m;let _=0;do{const k=b.indexOf("=",_);if(k===-1)break;const A=b.indexOf(";",_),V=A===-1?T:A;if(k>V){_=b.lastIndexOf(";",k-1)+1;continue}const L=d(b,_,k),R=f(b,k,L),G=b.slice(L,R);if(x[G]===void 0){let F=d(b,k+1,V),B=f(b,V,F);const le=D(b.slice(F,B));x[G]=le}_=V+1}while(_<T);return x}function d(b,w,x){do{const T=b.charCodeAt(w);if(T!==32&&T!==9)return w}while(++w<x);return x}function f(b,w,x){for(;w>x;){const T=b.charCodeAt(--w);if(T!==32&&T!==9)return w+1}return x}function h(b,w,x){const T=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(b))throw new TypeError(`argument name is invalid: ${b}`);const D=T(w);if(!t.test(D))throw new TypeError(`argument val is invalid: ${w}`);let _=b+"="+D;if(!x)return _;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);_+="; Max-Age="+x.maxAge}if(x.domain){if(!n.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);_+="; Domain="+x.domain}if(x.path){if(!r.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);_+="; Path="+x.path}if(x.expires){if(!v(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invali
49d: ${x.expires}`);_+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(_+="; HttpOnly"),x.secure&&(_+="; Secure"),x.partitioned&&(_+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.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: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.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: ${x.sameSite}`)}return _}function m(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function v(b){return i.call(b)==="[object Date]"}return Vc}tO();/** 50 * react-router v7.6.2 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */var $T=e=>{throw TypeError(e)},nO=(e,t,n)=>t.has(e)||$T("Cannot "+n),kg=(e,t,n)=>(nO(e,t,"read from private field"),n?n.call(e):t.get(e)),rO=(e,t,n)=>t.has(e)?$T("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),rE="popstate";function aO(e={}){function t(r,i){let{pathname:o,search:c,hash:d}=r.location;return du("",{pathname:o,search:c,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:rs(i)}return sO(t,n,null,e)}function Ge(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function iO(){return Math.random().toString(36).substring(2,10)}function aE(e,t){return{usr:e.state,key:e.key,idx:t}}function du(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ls(t):t,state:n,key:t&&t.key||r||iO()}}function rs({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ls(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function sO(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,c=i.history,d="POP",f=null,h=m();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function m(){return(c.state||{idx:null}).idx}function v(){d="POP";let D=m(),_=D==null?null:D-h;h=D,f&&f({action:d,location:T.location,delta:_})}function b(D,_){d="PUSH";let k=du(T.location,D,_);h=m()+1;let A=aE(k,h),V=T.createHref(k);try{c.pushState(A,"",V)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;i.location.assign(V)}o&&f&&f({action:d,location:T.location,delta:1})}function w(D,_){d="REPLACE";let k=du(T.location,D,_);h=m();let A=aE(k,h),V=T.createHref(k);c.replaceState(A,"",V),o&&f&&f({action:d,location:T.location,delta:0})}function x(D){return WT(D)}let T={get action(){return d},get location(){return e(i,c)},listen(D){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(rE,v),f=D,()=>{i.removeEventListener(rE,v),f=null}},createHref(D){return t(i,D)},createURL:x,encodeLocation(D){let _=x(D);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:b,replace:w,go(D){return c.go(D)}};return T}function WT(e,t=!1){let n="http://localhost";
58typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ge(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:rs(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Xc,iE=class{constructor(e){if(rO(this,Xc,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(kg(this,Xc).has(e))return kg(this,Xc).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){kg(this,Xc).set(e,t)}};Xc=new WeakMap;var oO=new Set(["lazy","caseSensitive","path","id","index","children"]);function lO(e){return oO.has(e)}var cO=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function uO(e){return cO.has(e)}function dO(e){return e.index===!0}function qf(e,t,n=[],r={}){return e.map((i,o)=>{let c=[...n,String(o)],d=typeof i.id=="string"?i.id:c.join("-");if(Ge(i.index!==!0||!i.children,"Cannot specify children on an index route"),Ge(!r[d],`Found a route id collision on i
58d "${d}". Route id's must be globally unique within Data Router usages`),dO(i)){let f={...i,...t(i),id:d};return r[d]=f,f}else{let f={...i,...t(i),id:d,children:void 0};return r[d]=f,i.children&&(f.children=qf(i.children,t,c,r)),f}})}function Yi(e,t,n="/"){return Df(e,t,n,!1)}function Df(e,t,n,r){let i=typeof t=="string"?ls(t):t,o=Vr(i.pathname||"/",n);if(o==null)return null;let c=KT(e);hO(c);let d=null;for(let f=0;d==null&&f<c.length;++f){let h=TO(o);d=EO(c[f],h,r)}return d}function fO(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function KT(e,t=[],n=[],r=""){let i=(o,c,d)=>{let f={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:c,route:o};f.relativePath.startsWith("/")&&(Ge(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let h=Ta([r,f.relativePath]),m=n.concat(f);o.children&&o.children.length>0&&(Ge(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),KT(o.children,t,m,h)),!(o.path==null&&!o.index)&&t.push({path:h,score:wO(h,o.index),routesMeta:m})};return e.forEach((o,c)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))i(o,c);else for(let f of GT(o.path))i(o,c,f)}),t}function GT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let c=GT(r.join("/")),d=[];return d.push(...c.map(f=>f===""?o:[o,f].join("/"))),i&&d.push(...c),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function hO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var pO=/^:[\w-]+$/,mO=3,gO=2,yO=1,vO=10,bO=-2,sE=e=>e==="*";function wO(e,t){let n=e.split("/"),r=n.length;return n.some(sE)&&(r+=bO),t&&(r+=gO),n.filter(i=>!sE(i)).reduce((i,o)=>i+(pO.test(o)?mO:o===""?yO:vO),r)}function xO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function EO(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",c=[];for(let d=0;d<r.length;++d){let f=r[d],h=d===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",v=$f({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),b=f.route;if(!v&&h&&n&&!r[r.length-1].route.index&&(v=$f({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!v)return null;
58Object.assign(i,v.params),c.push({params:i,pathname:Ta([o,v.pathname]),pathnameBase:CO(Ta([o,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(o=Ta([o,v.pathnameBase]))}return c}function $f(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=SO(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],c=o.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:v},b)=>{if(m==="*"){let x=d[b]||"";c=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const w=d[b];return v&&!w?h[m]=void 0:h[m]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:c,pattern:e}}function SO(e,t=!1,n=!0){Xt(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,f)=>(r.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function TO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Vr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function DO(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ls(e):e;return{pathname:n?n.startsWith("/")?n:_O(n,t):t,search:AO(r),hash:kO(i)}}function _O(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Rg(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function QT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Oh(e){let t=QT(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ph(e,t,n,r=!1){let i;typeof e=="string"?i=ls(e):(i={...e},Ge(!i.pathname||!i.pathname.includes("?"),Rg("?","pathname","search",i)),Ge(!i.pathname||!i.pathname.includes("#"),Rg("#","pathname","hash",i)),Ge(!i.search||!i.search.includes("#"),Rg("#","search","hash",i)));let o=e===""||i.pathname==="",c=o?"/":i.pathname,d;if(c==null)d=n;else{let v=t.length-1;if(!r&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),v-=1;i.pathname=b.join("/")}d=v>=0?t[v]:"/"}let f=DO(i,d),h=c&&c!=="/"&&c.endsWith("/"),m=(o||c===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var Ta=e=>e.join("/").replace(/\/\/+/g,"/"),CO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Wf=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function fu(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var XT=["POST","PUT","PATCH","DELETE"],RO=new Set(XT),MO=["GET",...XT],NO=new Set(MO),OO=new Set([301,302,303,307,308]),PO=new Set([307,308]),Mg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jO={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Cv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LO=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ZT="remix-router-transitions",JT=Symbol("ResetLoaderData");function IO(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Ge(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||LO,o={},c=qf(e.routes,i,void 0,o),d,f=e.basename||"/",h=e.dataStrategy||zO,m={unstable_middleware:!1,...e.future},v=null,b=new Set,w=null,x=null,T=null,D=e.hydrationData!=null,_=Yi(c,e.history.location,f),k=!1,A=null,V;if(_==null&&!e.patchRoutesOnNavigation){let P=jr(404,{pathname:e.history.location.pathname}),{matches:H,route:j}=vE(c);V=!0,_=H,A={[j.id]:P}}else if(_&&!e.hydrationData&&Tt(_,c,e.history.location.pathname).active&&(_=null),_)if(_.some(P=>P.route.lazy))V=!1;else if(!_.some(P=>P.route.loader))V=!0;else{let P=e.hydrationData?e.hydrationData.loaderData:null,H=e.hydrationData?e.hydrationData.errors:null;if(H){let j=_.findIndex($=>H[$.route.id]!==void 0);V=_.slice(0,j+1).every($=>!Sy($.route,P,H))}else V=_.every(j=>!Sy(j.route,P,H))}else{V=!1,_=[];let P=Tt(null,c,e.history.location.pathname);P.active&&P.matches&&(k=!0,_=P.matches)}let L,R={historyAction:e.history.action,location:e.history.location,matches:_,initialized:V,navigation:Mg,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||A,fetchers:new Map,blockers:new Map},G="POP",F=!1,B,le=!1,Z=new Map,ie=null,ge=!1,oe=!1,ce=new Set,O=new Map,z=0,ee=-1,ye=new Map,M=new Set,X=new Map,de=new Map,ue=new Set,Ee=new Map,Ie,Ae=null;function Ft(){if(v=e.history.listen(({action:P,location:H,delta:j})=>{if(Ie){Ie(),Ie=void 0;return}Xt(Ee.size===0||j!=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.");let $=da({currentLocation:R.location,nextLocation:H,historyAction:P});if($&&j!=null){let te=new Promise(fe=>{Ie=fe});e.history.go(j*-1),vn($,{state:"blocked",location:H,proceed(){vn($,{state:"proceeding",proceed:void 0,reset:void 0,location:H}),te.then(()=>e.history.go(j))},reset(){let fe=new Map(R.blockers);
58fe.set($,zc),it({blockers:fe})}});return}return On(P,H)}),n){JO(t,Z);let P=()=>eP(t,Z);t.addEventListener("pagehide",P),ie=()=>t.removeEventListener("pagehide",P)}return R.initialized||On("POP",R.location,{initialHydration:!0}),L}function Be(){v&&v(),ie&&ie(),b.clear(),B&&B.abort(),R.fetchers.forEach((P,H)=>kt(H)),R.blockers.forEach((P,H)=>tr(H))}function mn(P){return b.add(P),()=>b.delete(P)}function it(P,H={}){R={...R,...P};let j=[],$=[];R.fetchers.forEach((te,fe)=>{te.state==="idle"&&(ue.has(fe)?j.push(fe):$.push(fe))}),ue.forEach(te=>{!R.fetchers.has(te)&&!O.has(te)&&j.push(te)}),[...b].forEach(te=>te(R,{deletedFetchers:j,viewTransitionOpts:H.viewTransitionOpts,flushSync:H.flushSync===!0})),j.forEach(te=>kt(te)),$.forEach(te=>R.fetchers.delete(te))}function en(P,H,{flushSync:j}={}){var be,Te;let $=R.actionData!=null&&R.navigation.formMethod!=null&&hr(R.navigation.formMethod)&&R.navigation.state==="loading"&&((be=P.state)==null?void 0:be._isRedirect)!==!0,te;H.actionData?Object.keys(H.actionData).length>0?te=H.actionData:te=null:$?te=R.actionData:te=null;let fe=H.loaderData?gE(R.loaderData,H.loaderData,H.matches||[],H.errors):R.loaderData,we=R.blockers;we.size>0&&(we=new Map(we),we.forEach((he,Re)=>we.set(Re,zc)));let pe=F===!0||R.navigation.formMethod!=null&&hr(R.navigation.formMethod)&&((Te=P.state)==null?void 0:Te._isRedirect)!==!0;d&&(c=d,d=void 0),ge||G==="POP"||(G==="PUSH"?e.history.push(P,P.state):G==="REPLACE"&&e.history.replace(P,P.state));let xe;if(G==="POP"){let he=Z.get(R.location.pathname);he&&he.has(P.pathname)?xe={currentLocation:R.location,nextLocation:P}:Z.has(P.pathname)&&(xe={currentLocation:P,nextLocation:R.location})}else if(le){let he=Z.get(R.location.pathname);he?he.add(P.pathname):(he=new Set([P.pathname]),Z.set(R.location.pathname,he)),xe={currentLocation:R.location,nextLocation:P}}it({...H,actionData:te,loaderData:fe,historyAction:G,location:P,initialized:!0,navigation:Mg,revalidation:"idle",restoreScrollPosition:Pa(P,H.matches||R.matches),preventScrollReset:pe,blockers:we},{viewTransitionOpts:xe,flushSync:j===!0}),G="POP",F=!1,le=!1,ge=!1,oe=!1,Ae==null||Ae.resolve(),Ae=null}async function vr(P,H){if(typeof P=="number"){e.history.go(P);return}let j=Ey(R.location,R.matches,f,P,H==null?void 0:H.fromRouteId,H==null?void 0:H.relative),{path:$,submission:te,error:fe}=oE(!1,j,H),we=R.location,pe=du(R.location,$,H&&H.state);pe={...pe,...e.history.encodeLocation(pe)};let xe=H&&H.replace!=null?H.replace:void 0,be="PUSH";xe===!0?be="REPLACE":xe===!1||te!=null&&hr(te.formMethod)&&te.formAction===R.location.pathname+R.location.search&&(be="REPLACE");let Te=H&&"preventScrollReset"in H?H.preventScrollReset===!0:void 0,he=(H&&H.flushSync)===!0,Re=da({currentLocation:we,nextLocation:pe,historyAction:be});if(Re){vn(Re,{state:"blocked",location:pe,proceed(){vn(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:pe}),vr(P,H)},reset(){let Ze=new Map(R.blockers);Ze.set(Re,zc),it({blockers:Ze})}});return}await On(be,pe,{submission:te,pendingError:fe,preventScrollReset:Te,replace:H&&H.replace,enableViewTransition:H&&H.viewTransition,flushSync:he})}function zn(){Ae||(Ae=tP()),wr(),it({revalidation:"loading"});let P=Ae.promise;return R.navigation.state==="submitting"?P:R.navigation.state==="idle"?(On(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),P):(On(G||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:le===!0}),P)}async function On(P,H,j){B&&B.abort(),B=null,G=P,ge=(j&&j.startUninterruptedRevalidation)===!0,ar(R.location,R.matches),F=(j&&j.preventScrollReset)===!0,le=(j&&j.enableViewTransition)===!0;let $=d||c,te=j&&j.overrideNavigation,fe=j!=null&&j.initialHydration&&R.matches&&R.matches.length>0&&!k?R.matches:Yi($,H,f),we=(j&&j.flushSync)===!0;if(fe&&R.initialized&&!oe&&KO(R.location,H)&&!(j&&j.submission&&hr(j.submission.formMethod))){en(H,{matches:fe},{flushSync:we});return}let pe=Tt(fe,$,H.pathname);if(pe.active&&pe.matches&&(fe=pe.matches),!fe){let{error:Dt,notFoundMatches:Je,route:qe}=nr(H.pathname);en(H,{matches:Je,loaderData:{},errors:{[qe.id]:Dt}},{flushSync:we});return}B=new AbortController;let xe=Xo(e.history,H,B.signal,j&&j.submission),be=new iE(e.unstable_getContext?await e.unstable_getContext():void 0),Te;if(j&&j.pendingError)Te=[Us(fe).route.id,{type:"error",error:j.pendingError}];else if(j&&j.submission&&hr(j.submission.formMethod)){let Dt=await gn(xe,H,j.submission,fe,be,pe.active,j&&j.initialHydration===!0,{replace:j.replace,flushSync:we});if(Dt.shortCircuited)return;
58if(Dt.pendingActionResult){let[Je,qe]=Dt.pendingActionResult;if(fr(qe)&&fu(qe.error)&&qe.error.status===404){B=null,en(H,{matches:Dt.matches,loaderData:{},errors:{[Je]:qe.error}});return}}fe=Dt.matches||fe,Te=Dt.pendingActionResult,te=Ng(H,j.submission),we=!1,pe.active=!1,xe=Xo(e.history,xe.url,xe.signal)}let{shortCircuited:he,matches:Re,loaderData:Ze,errors:xt}=await mi(xe,H,fe,be,pe.active,te,j&&j.submission,j&&j.fetcherSubmission,j&&j.replace,j&&j.initialHydration===!0,we,Te);he||(B=null,en(H,{matches:Re||fe,...yE(Te),loaderData:Ze,errors:xt}))}async function gn(P,H,j,$,te,fe,we,pe={}){wr();let xe=XO(H,j);if(it({navigation:xe},{flushSync:pe.flushSync===!0}),fe){let he=await tn($,H.pathname,P.signal);if(he.type==="aborted")return{shortCircuited:!0};if(he.type==="error"){let Re=Us(he.partialMatches).route.id;return{matches:he.partialMatches,pendingActionResult:[Re,{type:"error",error:he.error}]}}else if(he.matches)$=he.matches;else{let{notFoundMatches:Re,error:Ze,route:xt}=nr(H.pathname);return{matches:Re,pendingActionResult:[xt.id,{type:"error",error:Ze}]}}}let be,Te=Zc($,H);if(!Te.route.action&&!Te.route.lazy)be={type:"error",error:jr(405,{method:P.method,pathname:H.pathname,routeId:Te.route.id})};else{let he=ol(i,o,P,$,Te,we?[]:r,te),Re=await Fn(P,he,te,null);if(be=Re[Te.route.id],!be){for(let Ze of $)if(Re[Ze.route.id]){be=Re[Ze.route.id];break}}if(P.signal.aborted)return{shortCircuited:!0}}if(Hs(be)){let he;return pe&&pe.replace!=null?he=pe.replace:he=hE(be.response.headers.get("Location"),new URL(P.url),f)===R.location.pathname+R.location.search,await Pn(P,be,!0,{submission:j,replace:he}),{shortCircuited:!0}}if(fr(be)){let he=Us($,Te.route.id);return(pe&&pe.replace)!==!0&&(G="PUSH"),{matches:$,pendingActionResult:[he.route.id,be,Te.route.id]}}return{matches:$,pendingActionResult:[Te.route.id,be]}}async function mi(P,H,j,$,te,fe,we,pe,xe,be,Te,he){let Re=fe||Ng(H,we),Ze=we||pe||wE(Re),xt=!ge&&!be;if(te){if(xt){let Dn=Yt(he);it({navigation:Re,...Dn!==void 0?{actionData:Dn}:{}},{flushSync:Te})}let $e=await tn(j,H.pathname,P.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let Dn=Us($e.partialMatches).route.id;return{matches:$e.partialMatches,loaderData:{},errors:{[Dn]:$e.error}}}else if($e.matches)j=$e.matches;else{let{error:Dn,notFoundMatches:Xr,route:Zr}=nr(H.pathname);return{matches:Xr,loaderData:{},errors:{[Zr.id]:Dn}}}}let Dt=d||c,{dsMatches:Je,revalidatingFetchers:qe}=lE(P,$,i,o,e.history,R,j,Ze,H,be?[]:r,be===!0,oe,ce,ue,X,M,Dt,f,e.patchRoutesOnNavigation!=null,he);if(ee=++z,!e.dataStrategy&&!Je.some($e=>$e.shouldLoad)&&qe.length===0){let $e=sn();return en(H,{matches:j,loaderData:{},errors:he&&fr(he[1])?{[he[0]]:he[1].error}:null,...yE(he),...$e?{fetchers:new Map(R.fetchers)}:{}},{flushSync:Te}),{shortCircuited:!0}}if(xt){let $e={};if(!te){$e.navigation=Re;let Dn=Yt(he);Dn!==void 0&&($e.actionData=Dn)}qe.length>0&&($e.fetchers=Kr(qe)),it($e,{flushSync:Te})}qe.forEach($e=>{yn($e.key),$e.controller&&O.set($e.key,$e.controller)});let Qr=()=>qe.forEach($e=>yn($e.key));B&&B.signal.addEventListener("abort",Qr);let{loaderResults:cn,fetcherResults:Ue}=await Oa(Je,qe,P,$);if(P.signal.aborted)return{shortCircuited:!0};B&&B.signal.removeEventListener("abort",Qr),qe.forEach($e=>O.delete($e.key));let Rt=cf(cn);if(Rt)return await Pn(P,Rt.result,!0,{replace:xe}),{shortCircuited:!0};if(Rt=cf(Ue),Rt)return M.add(Rt.key),await Pn(P,Rt.result,!0,{replace:xe}),{shortCircuited:!0};let{loaderData:Er,errors:qn}=mE(R,j,cn,he,qe,Ue);be&&R.errors&&(qn={...R.errors,...qn});let gs=sn(),Tn=yt(ee),ja=gs||Tn||qe.length>0;return{matches:j,loaderData:Er,errors:qn,...ja?{fetchers:new Map(R.fetchers)}:{}}}function Yt(P){if(P&&!fr(P[1]))return{[P[0]]:P[1].data};if(R.actionData)return Object.keys(R.actionData).length===0?null:R.actionData}function Kr(P){return P.forEach(H=>{let j=R.fetchers.get(H.key),$=Fc(void 0,j?j.data:void 0);R.fetchers.set(H.key,$)}),new Map(R.fetchers)}async function gt(P,H,j,$){yn(P);let te=($&&$.flushSync)===!0,fe=d||c,we=Ey(R.location,R.matches,f,j,H,$==null?void 0:$.relative),pe=Yi(fe,we,f),xe=Tt(pe,fe,we);
58if(xe.active&&xe.matches&&(pe=xe.matches),!pe){dt(P,H,jr(404,{pathname:we}),{flushSync:te});return}let{path:be,submission:Te,error:he}=oE(!0,we,$);if(he){dt(P,H,he,{flushSync:te});return}let Re=Zc(pe,be),Ze=new iE(e.unstable_getContext?await e.unstable_getContext():void 0),xt=($&&$.preventScrollReset)===!0;if(Te&&hr(Te.formMethod)){await ua(P,H,be,Re,pe,Ze,xe.active,te,xt,Te);return}X.set(P,{routeId:H,path:be}),await br(P,H,be,Re,pe,Ze,xe.active,te,xt,Te)}async function ua(P,H,j,$,te,fe,we,pe,xe,be){wr(),X.delete(P);function Te(Mt){if(!Mt.route.action&&!Mt.route.lazy){let gi=jr(405,{method:be.formMethod,pathname:j,routeId:H});return dt(P,H,gi,{flushSync:pe}),!0}return!1}if(!we&&Te($))return;let he=R.fetchers.get(P);Pt(P,ZO(be,he),{flushSync:pe});let Re=new AbortController,Ze=Xo(e.history,j,Re.signal,be);if(we){let Mt=await tn(te,j,Ze.signal,P);if(Mt.type==="aborted")return;if(Mt.type==="error"){dt(P,H,Mt.error,{flushSync:pe});return}else if(Mt.matches){if(te=Mt.matches,$=Zc(te,j),Te($))return}else{dt(P,H,jr(404,{pathname:j}),{flushSync:pe});return}}O.set(P,Re);let xt=z,Dt=ol(i,o,Ze,te,$,r,fe),qe=(await Fn(Ze,Dt,fe,P))[$.route.id];if(Ze.signal.aborted){O.get(P)===Re&&O.delete(P);return}if(ue.has(P)){if(Hs(qe)||fr(qe)){Pt(P,zi(void 0));return}}else{if(Hs(qe))if(O.delete(P),ee>xt){Pt(P,zi(void 0));return}else return M.add(P),Pt(P,Fc(be)),Pn(Ze,qe,!1,{fetcherSubmission:be,preventScrollReset:xe});if(fr(qe)){dt(P,H,qe.error);return}}let Qr=R.navigation.location||R.location,cn=Xo(e.history,Qr,Re.signal),Ue=d||c,Rt=R.navigation.state!=="idle"?Yi(Ue,R.navigation.location,f):R.matches;Ge(Rt,"Didn't find any matches after fetcher action");let Er=++z;ye.set(P,Er);let qn=Fc(be,qe.data);R.fetchers.set(P,qn);let{dsMatches:gs,revalidatingFetchers:Tn}=lE(cn,fe,i,o,e.history,R,Rt,be,Qr,r,!1,oe,ce,ue,X,M,Ue,f,e.patchRoutesOnNavigation!=null,[$.route.id,qe]);Tn.filter(Mt=>Mt.key!==P).forEach(Mt=>{let gi=Mt.key,Yl=R.fetchers.get(gi),$n=Fc(void 0,Yl?Yl.data:void 0);R.fetchers.set(gi,$n),yn(gi),Mt.controller&&O.set(gi,Mt.controller)}),it({fetchers:new Map(R.fetchers)});let ja=()=>Tn.forEach(Mt=>yn(Mt.key));Re.signal.addEventListener("abort",ja);let{loaderResults:$e,fetcherResults:Dn}=await Oa(gs,Tn,cn,fe);if(Re.signal.aborted)return;if(Re.signal.removeEventListener("abort",ja),ye.delete(P),O.delete(P),Tn.forEach(Mt=>O.delete(Mt.key)),R.fetchers.has(P)){let Mt=zi(qe.data);R.fetchers.set(P,Mt)}let Xr=cf($e);if(Xr)return Pn(cn,Xr.result,!1,{preventScrollReset:xe});if(Xr=cf(Dn),Xr)return M.add(Xr.key),Pn(cn,Xr.result,!1,{preventScrollReset:xe});let{loaderData:Zr,errors:ys}=mE(R,Rt,$e,void 0,Tn,Dn);yt(Er),R.navigation.state==="loading"&&Er>ee?(Ge(G,"Expected pending action"),B&&B.abort(),en(R.navigation.location,{matches:Rt,loaderData:Zr,errors:ys,fetchers:new Map(R.fetchers)})):(it({errors:ys,loaderData:gE(R.loaderData,Zr,Rt,ys),fetchers:new Map(R.fetchers)}),oe=!1)}async function br(P,H,j,$,te,fe,we,pe,xe,be){let Te=R.fetchers.get(P);Pt(P,Fc(be,Te?Te.data:void 0),{flushSync:pe});let he=new AbortController,Re=Xo(e.history,j,he.signal);if(we){let qe=await tn(te,j,Re.signal,P);if(qe.type==="aborted")return;if(qe.type==="error"){dt(P,H,qe.error,{flushSync:pe});return}else if(qe.matches)te=qe.matches,$=Zc(te,j);else{dt(P,H,jr(404,{pathname:j}),{flushSync:pe});return}}O.set(P,he);let Ze=z,xt=ol(i,o,Re,te,$,r,fe),Je=(await Fn(Re,xt,fe,P))[$.route.id];if(O.get(P)===he&&O.delete(P),!Re.signal.aborted){if(ue.has(P)){Pt(P,zi(void 0));return}if(Hs(Je))if(ee>Ze){Pt(P,zi(void 0));return}else{M.add(P),await Pn(Re,Je,!1,{preventScrollReset:xe});return}if(fr(Je)){dt(P,H,Je.error);return}Pt(P,zi(Je.data))}}async function Pn(P,H,j,{submission:$,fetcherSubmission:te,preventScrollReset:fe,replace:we}={}){H.response.headers.has("X-Remix-Revalidate")&&(oe=!0);let pe=H.response.headers.get("Location");Ge(pe,"Expected a Location header on the redirect Response"),pe=hE(pe,new URL(P.url),f);let xe=du(R.location,pe,{_isRedirect:!0});if(n){let xt=!1;if(H.response.headers.has("X-Remix-Reload-Document"))xt=!0;else if(Cv.test(pe)){const Dt=WT(pe,!0);xt=Dt.origin!==t.location.origin||Vr(Dt.pathname,f)==null}if(xt){we?t.location.replace(pe):t.location.assign(pe);return}}B=null;let be=we===!0||H.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Te,formAction:he,formEncType:Re}=R.navigation;!$&&!te&&Te&&he&&Re&&($=wE(R.navigation));let Ze=$||te;if(PO.has(H.response.status)&&Ze&&hr(Ze.formMethod))await On(be,xe,{submission:{...Ze,formAction:pe},preventScrollReset:fe||F,enableViewTransition:j?le:void 0});else{let xt=Ng(xe,$);await On(be,xe,{overrideNavigation:xt,fetcherSubmission:te,preventScrollReset:fe||F,enableViewTransition:j?le:void 0})}}async function Fn(P,H,j,$){let te,fe={};try{te=await FO(h,P,H,$,j,!1)}catch(we){return H.filter(pe=>
vendor: 5,125 bytes, line 58
58pe.shouldLoad).forEach(pe=>{fe[pe.route.id]={type:"error",error:we}}),fe}if(P.signal.aborted)return fe;for(let[we,pe]of Object.entries(te))if(GO(pe)){let xe=pe.result;fe[we]={type:"redirect",response:$O(xe,P,we,H,f)}}else fe[we]=await qO(pe);return fe}async function Oa(P,H,j,$){let te=Fn(j,P,$,null),fe=Promise.all(H.map(async xe=>{if(xe.matches&&xe.match&&xe.request&&xe.controller){let Te=(await Fn(xe.request,xe.matches,$,xe.key))[xe.match.route.id];return{[xe.key]:Te}}else return Promise.resolve({[xe.key]:{type:"error",error:jr(404,{pathname:xe.path})}})})),we=await te,pe=(await fe).reduce((xe,be)=>Object.assign(xe,be),{});return{loaderResults:we,fetcherResults:pe}}function wr(){oe=!0,X.forEach((P,H)=>{O.has(H)&&ce.add(H),yn(H)})}function Pt(P,H,j={}){R.fetchers.set(P,H),it({fetchers:new Map(R.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function dt(P,H,j,$={}){let te=Us(R.matches,H);kt(P),it({errors:{[te.route.id]:j},fetchers:new Map(R.fetchers)},{flushSync:($&&$.flushSync)===!0})}function an(P){return de.set(P,(de.get(P)||0)+1),ue.has(P)&&ue.delete(P),R.fetchers.get(P)||jO}function kt(P){let H=R.fetchers.get(P);O.has(P)&&!(H&&H.state==="loading"&&ye.has(P))&&yn(P),X.delete(P),ye.delete(P),M.delete(P),ue.delete(P),ce.delete(P),R.fetchers.delete(P)}function ms(P){let H=(de.get(P)||0)-1;H<=0?(de.delete(P),ue.add(P)):de.set(P,H),it({fetchers:new Map(R.fetchers)})}function yn(P){let H=O.get(P);H&&(H.abort(),O.delete(P))}function xr(P){for(let H of P){let j=an(H),$=zi(j.data);R.fetchers.set(H,$)}}function sn(){let P=[],H=!1;for(let j of M){let $=R.fetchers.get(j);Ge($,`Expected fetcher: ${j}`),$.state==="loading"&&(M.delete(j),P.push(j),H=!0)}return xr(P),H}function yt(P){let H=[];for(let[j,$]of ye)if($<P){let te=R.fetchers.get(j);Ge(te,`Expected fetcher: ${j}`),te.state==="loading"&&(yn(j),ye.delete(j),H.push(j))}return xr(H),H.length>0}function Yn(P,H){let j=R.blockers.get(P)||zc;return Ee.get(P)!==H&&Ee.set(P,H),j}function tr(P){R.blockers.delete(P),Ee.delete(P)}function vn(P,H){let j=R.blockers.get(P)||zc;Ge(j.state==="unblocked"&&H.state==="blocked"||j.state==="blocked"&&H.state==="blocked"||j.state==="blocked"&&H.state==="proceeding"||j.state==="blocked"&&H.state==="unblocked"||j.state==="proceeding"&&H.state==="unblocked",`Invalid blocker state transition: ${j.state} -> ${H.state}`);let $=new Map(R.blockers);$.set(P,H),it({blockers:$})}function da({currentLocation:P,nextLocation:H,historyAction:j}){if(Ee.size===0)return;Ee.size>1&&Xt(!1,"A router only supports one blocker at a time");let $=Array.from(Ee.entries()),[te,fe]=$[$.length-1],we=R.blockers.get(te);if(!(we&&we.state==="proceeding")&&fe({currentLocation:P,nextLocation:H,historyAction:j}))return te}function nr(P){let H=jr(404,{pathname:P}),j=d||c,{matches:$,route:te}=vE(j);return{notFoundMatches:$,route:te,error:H}}function Gr(P,H,j){if(w=P,T=H,x=j||null,!D&&R.navigation===Mg){D=!0;let $=Pa(R.location,R.matches);$!=null&&it({restoreScrollPosition:$})}return()=>{w=null,T=null,x=null}}function rr(P,H){return x&&x(P,H.map($=>fO($,R.loaderData)))||P.key}function ar(P,H){if(w&&T){let j=rr(P,H);w[j]=T()}}function Pa(P,H){if(w){let j=rr(P,H),$=w[j];if(typeof $=="number")return $}return null}function Tt(P,H,j){if(e.patchRoutesOnNavigation)if(P){if(Object.keys(P[0].params).length>0)return{active:!0,matches:Df(H,j,f,!0)}}else return{active:!0,matches:Df(H,j,f,!0)||[]};return{active:!1,matches:null}}async function tn(P,H,j,$){if(!e.patchRoutesOnNavigation)return{type:"success",matches:P};let te=P;for(;;){let fe=d==null,we=d||c,pe=o;try{await e.patchRoutesOnNavigation({signal:j,path:H,matches:te,fetcherKey:$,patch:(Te,he)=>{j.aborted||cE(Te,he,we,pe,i)}})}catch(Te){return{type:"error",error:Te,partialMatches:te}}finally{fe&&!j.aborted&&(c=[...c])}if(j.aborted)return{type:"aborted"};let xe=Yi(we,H,f);if(xe)return{type:"success",matches:xe};let be=Df(we,H,f,!0);if(!be||te.length===be.length&&te.every((Te,he)=>Te.route.id===be[he].route.id))return{type:"success",matches:null};te=be}}function ke(P){o={},d=qf(P,i,void 0,o)}function ze(P,H){let j=d==null;cE(P,H,d||c,o,i),j&&(c=[...c],it({}))}return L={get basename(){return f},get future(){return m},get state(){return R},get routes(){return c},get window(){return t},initialize:Ft,subscribe:mn,enableScrollRestoration:Gr,navigate:vr,fetch:gt,revalidate:zn,createHref:P=>e.history.createHref(P),encodeLocation:P=>e.history.encodeLocation(P),getFetcher:an,deleteFetcher:ms,dispose:Be,getBlocker:Yn,deleteBlocker:tr,patchRoutes:ze,_internalFetchControllers:O,_internalSetRoutes:ke},L}function BO(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ey(e,t,n,r,i,o){let c,d;if(i){c=[];for(let h of t)if(c.push(h),h.route.id===i){d=h;break}}else c=t,d=t[t.length-1];let f=Ph(r||".",Oh(c),Vr(e.pathname,n)||e.pathname,o==="path");if(r==null&&(f.search=e.search,f.hash=e.hash),(r==null||r===""||r===".")&&d){let h=Av(f.search);if(d.route.index&&!h)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&h){let m=new URLSearchParams(f.search),v=m.getAll("index");m.delete("index"),v.filter(w=>
58w).forEach(w=>m.append("index",w));let b=m.toString();f.search=b?`?${b}`:""}}return n!=="/"&&(f.pathname=f.pathname==="/"?n:Ta([n,f.pathname])),rs(f)}function oE(e,t,n){if(!n||!BO(n))return{path:t};if(n.formMethod&&!QO(n.formMethod))return{path:t,error:jr(405,{method:n.formMethod})};let r=()=>({path:t,error:jr(400,{type:"invalid-body"})}),o=(n.formMethod||"get").toUpperCase(),c=iD(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!hr(o))return r();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((b,[w,x])=>`${b}${w}=${x} 59`,""):String(n.body);return{path:t,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!hr(o))return r();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:o,formAction:c,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return r()}}}Ge(typeof FormData=="function","FormData is not available in this environment");let d,f;if(n.formData)d=Dy(n.formData),f=n.formData;else if(n.body instanceof FormData)d=Dy(n.body),f=n.body;else if(n.body instanceof URLSearchParams)d=n.body,f=pE(d);else if(n.body==null)d=new URLSearchParams,f=new FormData;else try{d=new URLSearchParams(n.body),f=pE(d)}catch{return r()}let h={formMethod:o,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(hr(h.formMethod))return{path:t,submission:h};let m=ls(t);return e&&m.search&&Av(m.search)&&d.append("index",""),m.search=`?${d}`,{path:rs(m),submission:h}}function lE(e,t,n,r,i,o,c,d,f,h,m,v,b,w,x,T,D,_,k,A){var ge;let V=A?fr(A[1])?A[1].error:A[1].data:void 0,L=i.createURL(o.location),R=i.createURL(f),G;if(m&&o.errors){let oe=Object.keys(o.errors)[0];G=c.findIndex(ce=>ce.route.id===oe)}else if(A&&fr(A[1])){let oe=A[0];G=c.findIndex(ce=>ce.route.id===oe)-1}let F=A?A[1].statusCode:void 0,B=F&&F>=400,le={currentUrl:L,currentParams:((ge=o.matches[0])==null?void 0:ge.params)||{},nextUrl:R,nextParams:c[0].params,...d,actionResult:V,actionStatus:F},Z=c.map((oe,ce)=>{let{route:O}=oe,z=null;if(G!=null&&ce>G?z=!1:O.lazy?z=!0:O.loader==null?z=!1:m?z=Sy(O,o.loaderData,o.errors):UO(o.loaderData,o.matches[ce],oe)&&(z=!0),z!==null)return Ty(n,r,e,oe,h,t,z);let ee=B?!1:v||L.pathname+L.search===R.pathname+R.search||L.search!==R.search||HO(o.matches[ce],oe),ye={...le,defaultShouldRevalidate:ee},M=Kf(oe,ye);return Ty(n,r,e,oe,h,t,M,ye)}),ie=[];return x.forEach((oe,ce)=>{if(m||!c.some(ue=>ue.route.id===oe.routeId)||w.has(ce))return;let O=o.fetchers.get(ce),z=O&&O.state!=="idle"&&O.data===void 0,ee=Yi(D,oe.path,_);if(!ee){if(k&&z)return;ie.push({key:ce,routeId:oe.routeId,path:oe.path,matches:null,match:null,request:null,controller:null});return}if(T.has(ce))return;let ye=Zc(ee,oe.path),M=new AbortController,X=Xo(i,oe.path,M.signal),de=null;if(b.has(ce))b.delete(ce),de=ol(n,r,X,ee,ye,h,t);else if(z)v&&(de=ol(n,r,X,ee,ye,h,t));else{let ue={...le,defaultShouldRevalidate:B?!1:v};Kf(ye,ue)&&(de=ol(n,r,X,ee,ye,h,t,ue))}de&&ie.push({key:ce,routeId:oe.routeId,path:oe.path,matches:de,match:ye,request:X,controller:M})}),{dsMatches:Z,revalidatingFetchers:ie}}function Sy(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function UO(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function HO(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Kf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function cE(e,t,n,r,i){let o;if(e){let f=r[e];Ge(f,`No route found to patch children into: routeId = ${e}`),f.children||(f.children=[]),o=f.children}else o=n;let c=t.filter(f=>!o.some(h=>eD(f,h))),d=qf(c,i,[e||"_","patch",String((o==null?void 0:o.length)||"0")],r);o.push(...d)}function eD(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((n,r)=>{var i;return(i=t.children)==null?void 0:i.some(o=>eD(n,o))}):!1}var uE=new WeakMap,tD=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(Ge(i,"No route found in manifest"),!i.lazy||typeof i.lazy!="object")return;let o=i.lazy[e];if(!o)return;let c=uE.get(i);c||(c={},uE.set(i,c));let d=c[e];if(d)return d;let f=(async()=>{let h=lO(e),v=i[e]!==void 0&&e!=="hasErrorBoundary";if(h)Xt(!h,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),c[e]=Promise.resolve();else if(v)Xt(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let b=await o();b!=null&&(Object.assign(i,{[e]:b}),Object.assign(i,r(i)))}typeof i.lazy=="object"&&(i.lazy[e]=void 0,Object.values(i.lazy).every(b=>b===void 0)&&(i.lazy=void 0))})();return c[e]=f,f},dE=new WeakMap;function VO(e,t,n,r,i){let o=n[e.id];if(Ge(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let m=dE.get(o);if(m)return{lazyRoutePromise:m,lazyHandlerPromise:m};let v=(async()=>{Ge(typeof e.lazy=="function","No lazy route function found");let b=await e.lazy(),w={};for(let x in b){let T=b[x];if(T===void 0)continue;let D=uO(x),k=o[x]!==void 0&&x!=="hasErrorBoundary";D?Xt(!D,"Route property "+x+" is not a supported property to be returned from a lazy route function. This property will be ignored."):k?Xt(!k,`Route "${o.id}" has a static property "${x}" defined but its lazy function is also returning a value for this property. The lazy route property "${x}" will be ignored.`):w[x]=T}Object.assign(o,w),Object.assign(o,{...r(o),lazy:void 0})})();return dE.set(o,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let c=Object.keys(e.lazy),d=[],f;for(let m of c){if(i&&i.includes(m))continue;let v=tD({key:m,route:e,manifest:n,mapRouteProperties:r});v&&(d.push(v),m===t&&(f=v))}let h=d.length>0?Promise.all(d).then(()=>{}):void 0;return h==null||h.catch(()=>{}),f==null||f.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:f}}async function fE(e){let t=e.matches.filter(i=>i.shouldLoad),n={};return(await Promise.all(t.map(i=>
59i.resolve()))).forEach((i,o)=>{n[t[o].route.id]=i}),n}async function zO(e){return e.matches.some(t=>t.route.unstable_middleware)?nD(e,!1,()=>fE(e),(t,n)=>({[n]:{type:"error",result:t}})):fE(e)}async function nD(e,t,n,r){let{matches:i,request:o,params:c,context:d}=e,f={handlerResult:void 0};try{let h=i.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(b=>[v.route.id,b]):[]),m=await rD({request:o,params:c,context:d},h,t,f,n);return t?m:f.handlerResult}catch(h){if(!f.middlewareError)throw h;let m=await r(f.middlewareError.error,f.middlewareError.routeId);return f.handlerResult?Object.assign(f.handlerResult,m):m}}async function rD(e,t,n,r,i,o=0){let{request:c}=e;if(c.signal.aborted)throw c.signal.reason?c.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${c.method} ${c.url}`);let d=t[o];if(!d)return r.handlerResult=await i(),r.handlerResult;let[f,h]=d,m=!1,v,b=async()=>{if(m)throw new Error("You may only call `next()` once per middleware");m=!0,await rD(e,t,n,r,i,o+1)};try{let w=await h({request:e.request,params:e.params,context:e.context},b);return m?w===void 0?v:w:b()}catch(w){throw r.middlewareError?r.middlewareError.error!==w&&(r.middlewareError={routeId:f,error:w}):r.middlewareError={routeId:f,error:w},w}}function aD(e,t,n,r,i){let o=tD({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),c=VO(r.route,hr(n.method)?"action":"loader",t,e,i);return{middleware:o,route:c.lazyRoutePromise,handler:c.lazyHandlerPromise}}function Ty(e,t,n,r,i,o,c,d=null){let f=!1,h=aD(e,t,n,r,i);return{...r,_lazyPromises:h,shouldLoad:c,unstable_shouldRevalidateArgs:d,unstable_shouldCallHandler(m){return f=!0,d?typeof m=="boolean"?Kf(r,{...d,defaultShouldRevalidate:m}):Kf(r,d):c},resolve(m){return f||c||m&&n.method==="GET"&&(r.route.lazy||r.route.loader)?YO({request:n,match:r,lazyHandlerPromise:h==null?void 0:h.handler,lazyRoutePromise:h==null?void 0:h.route,handlerOverride:m,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function ol(e,t,n,r,i,o,c,d=null){return r.map(f=>f.route.id!==i.route.id?{...f,shouldLoad:!1,unstable_shouldRevalidateArgs:d,unstable_shouldCallHandler:()=>!1,_lazyPromises:aD(e,t,n,f,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Ty(e,t,n,f,o,c,!0,d))}async function FO(e,t,n,r,i,o){n.some(h=>{var m;return(m=h._lazyPromises)==null?void 0:m.middleware})&&await Promise.all(n.map(h=>{var m;return(m=h._lazyPromises)==null?void 0:m.middleware}));let c={request:t,params:n[0].params,context:i,matches:n},f=await e({...c,fetcherKey:r,unstable_runClientMiddleware:h=>{let m=c;return nD(m,!1,()=>h({...m,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(v,b)=>({[b]:{type:"error",result:v}}))}});try{await Promise.all(n.flatMap(h=>{var m,v;return[(m=h._lazyPromises)==null?void 0:m.handler,(v=h._lazyPromises)==null?void 0:v.route]}))}catch{}return f}async function YO({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:i,scopedContext:o}){let c,d,f=hr(e.method),h=f?"action":"loader",m=v=>{let b,w=new Promise((D,_)=>b=_);d=()=>b(),e.signal.addEventListener("abort",d);let x=D=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${h}" [routeId: ${t.route.id}]`)):v({request:e,params:t.params,context:o},...D!==void 0?[D]:[]),T=(async()=>{try{return{type:"data",result:await(i?i(_=>x(_)):x())}}catch(D){return{type:"error",result:D}}})();return Promise.race([T,w])};try{let v=f?t.route.action:t.route.loader;if(n||r)if(v){let b,[w]=await Promise.all([m(v).catch(x=>{b=x}),n,r]);if(b!==void 0)throw b;c=w}else{await n;let b=f?t.route.action:t.route.loader;if(b)[c]=await Promise.all([m(b),r]);else if(h==="action"){let w=new URL(e.url),x=w.pathname+w.search;throw jr(405,{method:e.method,pathname:x,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(v)c=await m(v);else{let b=new URL(e.url),w=b.pathname+b.search;throw jr(404,{pathname:w})}}catch(v){return{type:"error",result:v}}finally{d&&e.signal.removeEventListener("abort",d)}return c}async function qO(e){var r,i,o,c,d,f;let{result:t,type:n}=e;if(sD(t)){let h;try{let m=t.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?t.body==null?h=null:h=await t.json():h=await t.text()}catch(m){return{type:"error",error:m}}return n==="error"?{type:"error",error:new Wf(t.status,t.statusText,h),statusCode:t.status,headers:t.headers}:{type:"data",data:h,statusCode:t.status,headers:t.headers}}return n==="error"?bE(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(r=t.init)==null?void 0:r.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Wf(((o=t.init)==null?void 0:o.status)||500,void 0,t.data),statusCode:fu(t)?t.status:void 0,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:fu(t)?t.status:void 0}:bE(t)?{type:"data",data:t.data,statusCode:(d=t.init)==null?void 0:d.status,headers:(f=t.init)!=null&&f.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function $O(e,t,n,r,i){let o=e.headers.get("Location");if(Ge(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Cv.test(o)){let c=r.slice(0,r.findIndex(d=>d.route.id===n)+1);o=Ey(new URL(t.url),c,i,o),e.headers.set("Location",o)}return e}function hE(e,t,n){if(Cv.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=Vr(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Xo(e,t,n,r){let i=e.createURL(iD(t)).toString(),o={signal:n};if(r&&hr(r.formMethod)){let{formMethod:c,formEncType:d}=r;o.method=c.toUpperCase(),d==="application/json"?(o.headers=new Headers({"Content-Type":d}),o.body=JSON.stringify(r.json)):d==="text/plain"?o.body=r.text:d==="application/x-www-form-urlencoded"&&r.formData?o.body=Dy(r.formData):o.body=r.formData}
59return new Request(i,o)}function Dy(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function pE(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function WO(e,t,n,r=!1,i=!1){let o={},c=null,d,f=!1,h={},m=n&&fr(n[1])?n[1].error:void 0;return e.forEach(v=>{if(!(v.route.id in t))return;let b=v.route.id,w=t[b];if(Ge(!Hs(w),"Cannot handle redirect results in processLoaderData"),fr(w)){let x=w.error;if(m!==void 0&&(x=m,m=void 0),c=c||{},i)c[b]=x;else{let T=Us(e,b);c[T.route.id]==null&&(c[T.route.id]=x)}r||(o[b]=JT),f||(f=!0,d=fu(w.error)?w.error.status:500),w.headers&&(h[b]=w.headers)}else o[b]=w.data,w.statusCode&&w.statusCode!==200&&!f&&(d=w.statusCode),w.headers&&(h[b]=w.headers)}),m!==void 0&&n&&(c={[n[0]]:m},n[2]&&(o[n[2]]=void 0)),{loaderData:o,errors:c,statusCode:d||200,loaderHeaders:h}}function mE(e,t,n,r,i,o){let{loaderData:c,errors:d}=WO(t,n,r);return i.filter(f=>!f.matches||f.matches.some(h=>h.shouldLoad)).forEach(f=>{let{key:h,match:m,controller:v}=f,b=o[h];if(Ge(b,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(fr(b)){let w=Us(e.matches,m==null?void 0:m.route.id);d&&d[w.route.id]||(d={...d,[w.route.id]:b.error}),e.fetchers.delete(h)}else if(Hs(b))Ge(!1,"Unhandled fetcher revalidation redirect");else{let w=zi(b.data);e.fetchers.set(h,w)}}),{loaderData:c,errors:d}}function gE(e,t,n,r){let i=Object.entries(t).filter(([,o])=>o!==JT).reduce((o,[c,d])=>(o[c]=d,o),{});for(let o of n){let c=o.route.id;if(!t.hasOwnProperty(c)&&e.hasOwnProperty(c)&&o.route.loader&&(i[c]=e[c]),r&&r.hasOwnProperty(c))break}return i}function yE(e){return e?fr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Us(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function vE(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function jr(e,{pathname:t,routeId:n,method:r,type:i,message:o}={}){let c="Unknown Server Error",d="Unknown @remix-run/router error";return e===400?(c="Bad Request",r&&t&&n?d=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i==="invalid-body"&&(d="Unable to encode submission body")):e===403?(c="Forbidden",d=`Route "${n}" does not match URL "${t}"`):e===404?(c="Not Found",d=`No route matches URL "${t}"`):e===405&&(c="Method Not Allowed",r&&t&&n?d=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(d=`Invalid request method "${r.toUpperCase()}"`)),new Wf(e||500,c,new Error(d),!0)}function cf(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Hs(i))return{key:r,result:i}}}function iD(e){let t=typeof e=="string"?ls(e):e;return rs({...t,hash:""})}function KO(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function GO(e){return sD(e.result)&&OO.has(e.result.status)}function fr(e){return e.type==="error"}function Hs(e){return(e&&e.type)==="redirect"}function bE(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function sD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function QO(e){return NO.has(e.toUpperCase())}function hr(e){return RO.has(e.toUpperCase())}function Av(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Zc(e,t){let n=typeof t=="string"?ls(t).search:t.search;if(e[e.length-1].route.index&&Av(n||""))return e[e.length-1];let r=QT(e);return r[r.length-1]}function wE(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:c}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(c!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:c,text:void 0}}}function Ng(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 XO(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 Fc(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 ZO(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 zi(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 JO(e,t){try{let n=e.sessionStorage.getItem(ZT);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function eP(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ZT,JSON.stringify(n))}catch(r){Xt(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function tP(){let e,t,n=new Promise((r,i)=>{e=async o=>{r(o);try{await n}catch{}},t=async o=>{i(o);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var uo=S.createContext(null);uo.displayName="DataRouter";var _u=S.createContext(null);_u.displayName="DataRouterState";var kv=S.createContext({isTransitioning:!1});kv.displayName="ViewTransition";var oD=S.createContext(new Map);oD.displayName="Fetchers";var nP=S.createContext(null);nP.displayName="Await";var la=S.createContext(null);la.displayName="Navigation";var jh=S.createContext(null);jh.displayName="Location";var qr=S.createContext({outlet:null,matches:[],isDataRoute:!1});qr.displayName="Route";var Rv=S.createContext(null);Rv.displayName="RouteError";function rP(e,{relative:t}={}){Ge(Nl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(la),{hash:i,pathname:o,search:c}=Cu(e,{relative:t}),d=o;return n!=="/"&&(d=o==="/"?n:Ta([n,o])),r.createHref({pathname:d,search:c,hash:i})}function Nl(){return S.useContext(jh)!=null}function $r(){return Ge(Nl(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(jh).location}var lD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function cD(e){S.useContext(la).static||S.useLayoutEffect(e)}function Wr(){let{isDataRoute:e}=S.useContext(qr);
59return e?vP():aP()}function aP(){Ge(Nl(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(uo),{basename:t,navigator:n}=S.useContext(la),{matches:r}=S.useContext(qr),{pathname:i}=$r(),o=JSON.stringify(Oh(r)),c=S.useRef(!1);return cD(()=>{c.current=!0}),S.useCallback((f,h={})=>{if(Xt(c.current,lD),!c.current)return;if(typeof f=="number"){n.go(f);return}let m=Ph(f,JSON.parse(o),i,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ta([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,i,e])}var iP=S.createContext(null);function sP(e){let t=S.useContext(qr).outlet;return t&&S.createElement(iP.Provider,{value:e},t)}function uD(){let{matches:e}=S.useContext(qr),t=e[e.length-1];return t?t.params:{}}function Cu(e,{relative:t}={}){let{matches:n}=S.useContext(qr),{pathname:r}=$r(),i=JSON.stringify(Oh(n));return S.useMemo(()=>Ph(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function oP(e,t,n,r){Ge(Nl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(la),{matches:o}=S.useContext(qr),c=o[o.length-1],d=c?c.params:{},f=c?c.pathname:"/",h=c?c.pathnameBase:"/",m=c&&c.route;{let _=m&&m.path||"";dD(f,!m||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${_}">) 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. 60 61Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let v=$r(),b;b=v;let w=b.pathname||"/",x=w;if(h!=="/"){let _=h.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(_.length).join("/")}let T=Yi(e,{pathname:x});return Xt(m||T!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Xt(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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.`),fP(T&&T.map(_=>Object.assign({},_,{params:Object.assign({},d,_.params),pathname:Ta([h,i.encodeLocation?i.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?h:Ta([h,i.encodeLocation?i.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,n,r)}function lP(){let e=yP(),t=fu(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=S.createElement(S.Fragment,null,S.createElement("p",null,"ð¿ Hey developer ð"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:o},"ErrorBoundary")," or"," ",S.createElement("code",{style:o},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,c)}var cP=S.createElement(lP,null),uP=class extends S.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?S.createElement(qr.Provider,{value:this.props.routeContext},S.createElement(Rv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function dP({routeContext:e,match:t,children:n}){let r=S.useContext(uo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(qr.Provider,{value:e},n)}function fP(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,o=n==null?void 0:n.errors;if(o!=null){let f=i.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);Ge(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,d=-1;if(n)for(let f=0;f<i.length;f++){let h=i[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=f),h.route.id){let{loaderData:m,errors:v}
61=n,b=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!v||v[h.route.id]===void 0);if(h.route.lazy||b){c=!0,d>=0?i=i.slice(0,d+1):i=[i[0]];break}}}return i.reduceRight((f,h,m)=>{let v,b=!1,w=null,x=null;n&&(v=o&&h.route.id?o[h.route.id]:void 0,w=h.route.errorElement||cP,c&&(d<0&&m===0?(dD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,x=null):d===m&&(b=!0,x=h.route.hydrateFallbackElement||null)));let T=t.concat(i.slice(0,m+1)),D=()=>{let _;return v?_=w:b?_=x:h.route.Component?_=S.createElement(h.route.Component,null):h.route.element?_=h.route.element:_=f,S.createElement(dP,{match:h,routeContext:{outlet:f,matches:T,isDataRoute:n!=null},children:_})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?S.createElement(uP,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:D(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):D()},null)}function Mv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hP(e){let t=S.useContext(uo);return Ge(t,Mv(e)),t}function pP(e){let t=S.useContext(_u);return Ge(t,Mv(e)),t}function mP(e){let t=S.useContext(qr);return Ge(t,Mv(e)),t}function Nv(e){let t=mP(e),n=t.matches[t.matches.length-1];return Ge(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function gP(){return Nv("useRouteId")}function yP(){var r;let e=S.useContext(Rv),t=pP("useRouteError"),n=Nv("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function vP(){let{router:e}=hP("useNavigate"),t=Nv("useNavigate"),n=S.useRef(!1);return cD(()=>{n.current=!0}),S.useCallback(async(i,o={})=>{Xt(n.current,lD),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var xE={};function dD(e,t,n){!t&&!xE[e]&&(xE[e]=!0,Xt(!1,n))}var EE={};function SE(e,t){!e&&!EE[t]&&(EE[t]=!0,console.warn(t))}function bP(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Xt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:S.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Xt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Xt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var wP=["HydrateFallback","hydrateFallbackElement"],xP=class{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}};function EP({router:e,flushSync:t}){let[n,r]=S.useState(e.state),[i,o]=S.useState(),[c,d]=S.useState({isTransitioning:!1}),[f,h]=S.useState(),[m,v]=S.useState(),[b,w]=S.useState(),x=S.useRef(new Map),T=S.useCallback((A,{deletedFetchers:V,flushSync:L,viewTransitionOpts:R})=>{A.fetchers.forEach((F,B)=>{F.data!==void 0&&x.current.set(B,F.data)}),V.forEach(F=>x.current.delete(F)),SE(L===!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 G=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(SE(R==null||G,"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."),!R||!G){t&&L?t(()=>r(A)):S.startTransition(()=>r(A));return}if(t&&L){t(()=>{m&&(f&&f.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:R.currentLocation,nextLocation:R.nextLocation})});let F=e.window.document.startViewTransition(()=>{t(()=>r(A))});F.finished.finally(()=>{t(()=>{h(void 0),v(void 0),o(void 0),d({isTransitioning:!1})})}),t(()=>v(F));return}m?(f&&f.resolve(),m.skipTransition(),w({state:A,currentLocation:R.currentLocation,nextLocation:R.nextLocation})):(o(A),d({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}))},[e.window,t,m,f]);S.useLayoutEffect(()=>e.subscribe(T),[e,T]),S.useEffect(()=>{c.isTransitioning&&!c.flushSync&&h(new xP)},[c]),S.useEffect(()=>{if(f&&i&&e.window){let A=i,V=f.promise,L=e.window.document.startViewTransition(async()=>{S.startTransition(()=>r(A)),await V});L.finished.finally(()=>{h(void 0),v(void 0),o(void 0),d({isTransitioning:!1})}),v(L)}},[i,f,e.window]),S.useEffect(()=>{f&&i&&n.location.key===i.location.key&&f.resolve()},[f,m,n.location,i]),S.useEffect(()=>{!c.isTransitioning&&b&&(o(b.state),d({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),w(void 0))},[c.isTransitioning,b]);let D=S.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:A=>e.navigate(A),push:(A,V,L)=>e.navigate(A,{state:V,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(A,V,L)=>e.navigate(A,{replace:!0,state:V,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[e]),_=e.basename||"/",k=S.useMemo(()=>({router:e,navigator:D,static:!1,basename:_}),[e,D,_]);return S.createElement(S.Fragment,null,S.createElement(uo.Provider,{value:k},S.createElement(_u.Provider,{value:n},S.createElement(oD.Provider,{value:x.current},S.createElement(kv.Provider,{value:c},S.createElement(_P,{basename:_,location:n.location,navigationType:n.historyAction,navigator:D},S.createElement(SP,{routes:e.routes,future:e.future,state:n})))))),null)}var SP=S.memo(TP);function TP({routes:e,future:t,state:n}){return oP(e,void 0,n,t)}function DP({to:e,replace:t,state:n,relative:r}){Ge(Nl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=S.useContext(la);Xt(!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:o}=S.useContext(qr),{pathname:c}=$r(),d=Wr(),f=Ph(e,Oh(o),c,r==="path"),h=JSON.stringify(f);return S.useEffect(()=>{d(JSON.parse(h),{replace:t,state:n,relative:r})},[d,h,r,t,n]),null}function fD(e){return sP(e.context)}function _P({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){Ge(!Nl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=S.useMemo(()=>({basename:c,navigator:i,static:o,future:{}}
61),[c,i,o]);typeof n=="string"&&(n=ls(n));let{pathname:f="/",search:h="",hash:m="",state:v=null,key:b="default"}=n,w=S.useMemo(()=>{let x=Vr(f,c);return x==null?null:{location:{pathname:x,search:h,hash:m,state:v,key:b},navigationType:r}},[c,f,h,m,v,b,r]);return Xt(w!=null,`<Router basename="${c}"> is not able to match the URL "${f}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:S.createElement(la.Provider,{value:d},S.createElement(jh.Provider,{children:t,value:w}))}var _f="get",Cf="application/x-www-form-urlencoded";function Lh(e){return e!=null&&typeof e.tagName=="string"}function CP(e){return Lh(e)&&e.tagName.toLowerCase()==="button"}function AP(e){return Lh(e)&&e.tagName.toLowerCase()==="form"}function kP(e){return Lh(e)&&e.tagName.toLowerCase()==="input"}function RP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function MP(e,t){return e.button===0&&(!t||t==="_self")&&!RP(e)}var uf=null;function NP(){if(uf===null)try{new FormData(document.createElement("form"),0),uf=!1}catch{uf=!0}return uf}var OP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Og(e){return e!=null&&!OP.has(e)?(Xt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Cf}"`),null):e}function PP(e,t){let n,r,i,o,c;if(AP(e)){let d=e.getAttribute("action");r=d?Vr(d,t):null,n=e.getAttribute("method")||_f,i=Og(e.getAttribute("enctype"))||Cf,o=new FormData(e)}else if(CP(e)||kP(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(r=f?Vr(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||_f,i=Og(e.getAttribute("formenctype"))||Og(d.getAttribute("enctype"))||Cf,o=new FormData(d,e),!NP()){let{name:h,type:m,value:v}=e;if(m==="image"){let b=h?`${h}.`:"";o.append(`${b}x`,"0"),o.append(`${b}y`,"0")}else h&&o.append(h,v)}}else{if(Lh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=_f,r=null,i=Cf,c=e}return o&&i==="text/plain"&&(c=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:c}}function Ov(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function jP(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function LP(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 IP(e,t,n){let r=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let c=await jP(o,n);return c.links?c.links():[]}return[]}));return VP(r.flat(1).filter(LP).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function TE(e,t,n,r,i,o){let c=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,d=(f,h)=>{var m;return n[h].pathname!==f.pathname||((m=n[h].route.path)==null?void 0:m.endsWith("*"))&&n[h].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,h)=>c(f,h)||d(f,h)):o==="data"?t.filter((f,h)=>{var v;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(c(f,h)||d(f,h))return!0;if(f.route.shouldRevalidate){let b=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((v=n[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function BP(e,t,{includeHydrateFallback:n}={}){return UP(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.c
61oncat(i.imports)),o}).flat(1))}function UP(e){return[...new Set(e)]}function HP(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function VP(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let o=JSON.stringify(HP(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var zP=new Set([100,101,204,205]);function FP(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Vr(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function hD(){let e=S.useContext(uo);return Ov(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function YP(){let e=S.useContext(_u);return Ov(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Pv=S.createContext(void 0);Pv.displayName="FrameworkContext";function pD(){let e=S.useContext(Pv);return Ov(e,"You must render this element inside a <HydratedRouter> element"),e}function qP(e,t){let n=S.useContext(Pv),[r,i]=S.useState(!1),[o,c]=S.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:v}=t,b=S.useRef(null);S.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let T=_=>{_.forEach(k=>{c(k.isIntersecting)})},D=new IntersectionObserver(T,{threshold:.5});return b.current&&D.observe(b.current),()=>{D.disconnect()}}},[e]),S.useEffect(()=>{if(r){let T=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(T)}}},[r]);let w=()=>{i(!0)},x=()=>{i(!1),c(!1)};return n?e!=="intent"?[o,b,{}]:[o,b,{onFocus:Yc(d,w),onBlur:Yc(f,x),onMouseEnter:Yc(h,w),onMouseLeave:Yc(m,x),onTouchStart:Yc(v,w)}]:[!1,b,{}]}function Yc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function $P({page:e,...t}){let{router:n}=hD(),r=S.useMemo(()=>Yi(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(KP,{page:e,matches:r,...t}):null}function WP(e){let{manifest:t,routeModules:n}=pD(),[r,i]=S.useState([]);return S.useEffect(()=>{let o=!1;return IP(e,t,n).then(c=>{o||i(c)}),()=>{o=!0}},[e,t,n]),r}function KP({page:e,matches:t,...n}){let r=$r(),{manifest:i,routeModules:o}=pD(),{basename:c}=hD(),{loaderData:d,matches:f}=YP(),h=S.useMemo(()=>TE(e,t,f,i,r,"data"),[e,t,f,i,r]),m=S.useMemo(()=>TE(e,t,f,i,r,"assets"),[e,t,f,i,r]),v=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,T=!1;if(t.forEach(_=>{var A;let k=i.routes[_.route.id];!k||!k.hasLoader||(!h.some(V=>V.route.id===_.route.id)&&_.route.id in d&&((A=o[_.route.id])!=null&&A.shouldRevalidate)||k.hasClientLoader?T=!0:x.add(_.route.id))}),x.size===0)return[];let D=FP(e,c);return T&&x.size>0&&D.searchParams.set("_routes",t.filter(_=>x.has(_.route.id)).map(_=>_.route.id).join(",")),[D.pathname+D.search]},[c,d,r,i,h,t,e,o]),b=S.useMemo(()=>BP(m,i),[m,i]),w=WP(m);return S.createElement(S.Fragment,null,v.map(x=>S.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),b.map(x=>S.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),w.map(({key:x,link:T})=>S.createElement("link",{key:x,...T})))}function GP(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var mD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mD&&(window.__reactRouterVersion="7.6.2")}catch{}function QP(e,t){return IO({basename:t==null?void 0:t.basename,unstable_getContext:t==null?void 0:t.unstable_getContext,future:t==null?void 0:t.future,history:aO({window:t==null?void 0:t.window}),hydrationData:XP(),routes:e,mapRouteProperties:bP,hydrationRouteProperties:wP,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function XP(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ZP(e.errors)}),e}function ZP(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Wf(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let c=new o(i.message);c.stack="",n[r]=c}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}var gD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Au=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:o,replace:c,state:d,target:f,to:h,preventScrollReset:m,viewTransition:v,...b},w){let{basename:x}=S.useContext(la),T=typeof h=="string"&&gD.test(h),D,_=!1;if(typeof h=="string"&&T&&(D=h,mD))try{let B=new URL(window.location.href),le=h.startsWith("//")?new URL(B.protocol+h):new URL(h),Z=Vr(le.pathname,x);le.origin===B.origin&&Z!=null?h=Z+le.search+le.hash:_=!0}catch{Xt(!1,`<Link to="${h}">
61 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let k=rP(h,{relative:i}),[A,V,L]=qP(r,b),R=tj(h,{replace:c,state:d,target:f,preventScrollReset:m,relative:i,viewTransition:v});function G(B){t&&t(B),B.defaultPrevented||R(B)}let F=S.createElement("a",{...b,...L,href:D||k,onClick:_||o?t:G,ref:GP(w,V),target:f,"data-discover":!T&&n==="render"?"true":void 0});return A&&!T?S.createElement(S.Fragment,null,F,S.createElement($P,{page:k})):F});Au.displayName="Link";var Vs=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:o,to:c,viewTransition:d,children:f,...h},m){let v=Cu(c,{relative:h.relative}),b=$r(),w=S.useContext(_u),{navigator:x,basename:T}=S.useContext(la),D=w!=null&&sj(v)&&d===!0,_=x.encodeLocation?x.encodeLocation(v).pathname:v.pathname,k=b.pathname,A=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(k=k.toLowerCase(),A=A?A.toLowerCase():null,_=_.toLowerCase()),A&&T&&(A=Vr(A,T)||A);const V=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=k===_||!i&&k.startsWith(_)&&k.charAt(V)==="/",R=A!=null&&(A===_||!i&&A.startsWith(_)&&A.charAt(_.length)==="/"),G={isActive:L,isPending:R,isTransitioning:D},F=L?t:void 0,B;typeof r=="function"?B=r(G):B=[r,L?"active":null,R?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let le=typeof o=="function"?o(G):o;return S.createElement(Au,{...h,"aria-current":F,className:B,ref:m,style:le,to:c,viewTransition:d},typeof f=="function"?f(G):f)});Vs.displayName="NavLink";var JP=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:c=_f,action:d,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:v,...b},w)=>{let x=aj(),T=ij(d,{relative:h}),D=c.toLowerCase()==="get"?"get":"post",_=typeof d=="string"&&gD.test(d),k=A=>{if(f&&f(A),A.defaultPrevented)return;A.preventDefault();let V=A.nativeEvent.submitter,L=(V==null?void 0:V.getAttribute("formmethod"))||c;x(V||A.currentTarget,{fetcherKey:t,method:L,navigate:n,replace:i,state:o,relative:h,preventScrollReset:m,viewTransition:v})};return S.createElement("form",{ref:w,method:D,action:T,onSubmit:r?f:k,...b,"data-discover":!_&&e==="render"?"true":void 0})});JP.displayName="Form";function ej(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yD(e){let t=S.useContext(uo);return Ge(t,ej(e)),t}function tj(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:c}={}){let d=Wr(),f=$r(),h=Cu(e,{relative:o});return S.useCallback(m=>{if(MP(m,t)){m.preventDefault();let v=n!==void 0?n:rs(f)===rs(h);d(e,{replace:v,state:r,preventScrollReset:i,relative:o,viewTransition:c})}},[f,d,h,n,r,t,e,i,o,c])}var nj=0,rj=()=>`__${String(++nj)}__`;function aj(){let{router:e}=yD("useSubmit"),{basename:t}=S.useContext(la),n=gP();return S.useCallback(async(r,i={})=>{let{action:o,method:c,encType:d,formData:f,body:h}=PP(r,t);if(i.navigate===!1){let m=i.fetcherKey||rj();await e.fetch(m,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:f,body:h,formMethod:i.method||c,formEncType:i.encType||d,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:f,body:h,formMethod:i.method||c,formEncType:i.encType||d,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function ij(e,{relative:t}={}){let{basename:n}=S.useContext(la),r=S.useContext(qr);Ge(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Cu(e||".",{relative:t})},c=$r();if(e==null){o.search=c.search;let d=new URLSearchParams(o.search),f=d.getAll("index");if(f.some(m=>m==="")){d.delete("index"),f.filter(v=>v).forEach(v=>d.append("index",v));let m=d.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Ta([n,o.pathname])),rs(o)}function sj(e,t={}){let n=S.useContext(kv);Ge(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=yD("useViewTransitionState"),i=Cu(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Vr(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=Vr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $f(i.pathname,c)!=null||$f(i.pathname,o)!=null}[...zP];const oj=()=>{};var DE={};/** 62 * @license 63 * Copyright 2017 Google LLC 64 * 65 * Licensed under the Apache License, Version 2.0 (the "License");
66 * you may not use this file except in compliance with the License. 67 * You may obtain a copy of the License at 68 * 69 * http://www.apache.org/licenses/LICENSE-2.0 70 * 71 * Unless required by applicable law or agreed to in writing, software 72 * distributed under the License is distributed on an "AS IS" BASIS, 73 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 74 * See the License for the specific language governing permissions and 75 * limitations under the License. 76 */const vD=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},lj=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],c=e[n++],d=e[n++],f=((i&7)<<18|(o&63)<<12|(c&63)<<6|d&63)-65536;t[r++]=String.fromCharCode(55296+(f>>10)),t[r++]=String.fromCharCode(56320+(f&1023))}else{const o=e[n++],c=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|c&63)}}return t.join("")},bD={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],c=i+1<e.length,d=c?e[i+1]:0,f=i+2<e.length,h=f?e[i+2]:0,m=o>>2,v=(o&3)<<4|d>>4;let b=(d&15)<<2|h>>6,w=h&63;f||(w=64,c||(b=64)),r.push(n[m],n[v],n[b],n[w])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(vD(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):lj(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],d=i<e.length?n[e.charAt(i)]:0;++i;const h=i<e.length?n[e.charAt(i)]:64;++i;const v=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||d==null||h==null||v==null)throw new cj;const b=o<<2|d>>4;if(r.push(b),h!==64){const w=d<<4&240|h>>2;if(r.push(w),v!==64){const x=h<<6&192|v;r.push(x)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class cj extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const uj=function(e){const t=vD(e);return bD.encodeByteArray(t,!0)},wD=function(e){return uj(e).replace(/\./g,"")},xD=function(e){try{return bD.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** 77 * @license 78 * Copyright 2022 Google LLC 79 * 80 * Licensed under the Apache License, Version 2.0 (the "License"); 81 * you may not use this file except in compliance with the License. 82 * You may obtain a copy of the License at 83 * 84 * http://www.apache.org/licenses/LICENSE-2.0 85 * 86 * Unless required by applicable law or agreed to in writing, software 87 * distributed under the License is distributed on an "AS IS" BASIS, 88 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 89 * See the License for the specific language governing permissions and 90 * limitations under the License. 91 */function dj(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 92 * @license 93 * Copyright 2022 Google LLC 94 * 95 * Licensed under the Apache License, Version 2.0 (the "License");
96 * you may not use this file except in compliance with the License. 97 * You may obtain a copy of the License at 98 * 99 * http://www.apache.org/licenses/LICENSE-2.0 100 * 101 * Unless required by applicable law or agreed to in writing, software 102 * distributed under the License is distributed on an "AS IS" BASIS, 103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 104 * See the License for the specific language governing permissions and 105 * limitations under the License. 106 */const fj=()=>dj().__FIREBASE_DEFAULTS__,hj=()=>{if(typeof process>"u"||typeof DE>"u")return;const e=DE.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},pj=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&xD(e[1]);return t&&JSON.parse(t)},jv=()=>{try{return oj()||fj()||hj()||pj()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},mj=e=>{var t,n;return(n=(t=jv())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},ED=()=>{var e;return(e=jv())===null||e===void 0?void 0:e.config},SD=e=>{var t;return(t=jv())===null||t===void 0?void 0:t[`_${e}`]};/** 107 * @license 108 * Copyright 2017 Google LLC 109 * 110 * Licensed under the Apache License, Version 2.0 (the "License"); 111 * you may not use this file except in compliance with the License. 112 * You may obtain a copy of the License at 113 * 114 * http://www.apache.org/licenses/LICENSE-2.0 115 * 116 * Unless required by applicable law or agreed to in writing, software 117 * distributed under the License is distributed on an "AS IS" BASIS, 118 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 119 * See the License for the specific language governing permissions and 120 * limitations under the License. 121 */class gj{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/** 122 * @license 123 * Copyright 2025 Google LLC 124 * 125 * Licensed under the Apache License, Version 2.0 (the "License"); 126 * you may not use this file except in compliance with the License. 127 * You may obtain a copy of the License at 128 * 129 * http://www.apache.org/licenses/LICENSE-2.0 130 * 131 * Unless required by applicable law or agreed to in writing, software 132 * distributed under the License is distributed on an "AS IS" BASIS, 133 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 134 * See the License for the specific language governing permissions and 135 * limitations under the License. 136 */function Lv(e){return e.endsWith(".cloudworkstations.dev")}async function yj(e){return(await fetch(e,{credentials:"include"})).ok}const au={};function vj(){const e={prod:[],emulator:[]};for(const t of Object.keys(au))au[t]?e.emulator.push(t):e.prod.push(t);return e}function bj(e){let t=document.getElementById(e),n=!1;return t||(t=document.createElement("div"),t.setAttribute("id",e),n=!0),{created:n,element:t}}let _E=!1;function wj(e,t){if(typeof window>"u"||typeof document>"u"||!Lv(window.location.host)||au[e]===t||au[e]||_E)return;au[e]=t;function n(b){return`__firebase__banner__${b}`}const r="__firebase__banner",o=vj().prod.length>0;function c(){const b=document.getElementById(r);b&&b.remove()}function d(b){b.style.display="flex",b.style.background="#7faaf0",b.style.position="fixed",b.style.bottom="5px",b.style.left="5px",b.style.padding=".5em",b.style.borderRadius="5px",b.style.alignItems="center"}function f(b,w){b.setAttribute("width","24"),b.setAttribute("id",w),b.setAttribute("height","24"),b.setAttribute("viewBox","0 0 24 24"),b.setAttribute("fill","none"),b.style.marginLeft="-6px"}function h(){const b=document.createElement("span");return b.style.cursor="pointer",b.style.marginLeft="16px",b.style.fontSize="24px",b.innerHTML=" ×
136",b.onclick=()=>{_E=!0,c()},b}function m(b,w){b.setAttribute("id",w),b.innerText="Learn more",b.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",b.setAttribute("target","__blank"),b.style.paddingLeft="5px",b.style.textDecoration="underline"}function v(){const b=bj(r),w=n("text"),x=document.getElementById(w)||document.createElement("span"),T=n("learnmore"),D=document.getElementById(T)||document.createElement("a"),_=n("preprendIcon"),k=document.getElementById(_)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(b.created){const A=b.element;d(A),m(D,T);const V=h();f(k,_),A.append(k,x,D,V),document.body.appendChild(A)}o?(x.innerText="Preview backend disconnected.",k.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 137<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 138</g> 139<defs> 140<clipPath id="clip0_6013_33858"> 141<rect width="24" height="24" fill="white"/> 142</clipPath> 143</defs>`):(k.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 144<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 145</g> 146<defs> 147<clipPath id="clip0_6083_34804"> 148<rect width="24" height="24" fill="white"/> 149</clipPath> 150</defs>`,x.innerText="Preview backend running in this workspace."),x.setAttribute("id",w)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",v):v()}/** 151 * @license 152 * Copyright 2017 Google LLC 153 * 154 * Licensed under the Apache License, Version 2.0 (the "License"); 155 * you may not use this file except in compliance with the License. 156 * You may obtain a copy of the License at 157 * 158 * http://www.apache.org/licenses/LICENSE-2.0 159 * 160 * Unless required by applicable law or agreed to in writing, software 161 * distributed under the License is distributed on an "AS IS" BASIS, 162 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 163 * See the License for the specific language governing permissions and 164 * limitations under the License. 165 */function Un(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function xj(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Un())}function Ej(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function Sj(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function Tj(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Dj(){const e=Un();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function _j(){try{return typeof indexedDB=="object"}catch{return!1}}function Cj(){return new Promise((e,t)=>
165{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}/** 166 * @license 167 * Copyright 2017 Google LLC 168 * 169 * Licensed under the Apache License, Version 2.0 (the "License"); 170 * you may not use this file except in compliance with the License. 171 * You may obtain a copy of the License at 172 * 173 * http://www.apache.org/licenses/LICENSE-2.0 174 * 175 * Unless required by applicable law or agreed to in writing, software 176 * distributed under the License is distributed on an "AS IS" BASIS, 177 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 178 * See the License for the specific language governing permissions and 179 * limitations under the License. 180 */const Aj="FirebaseError";class cs extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=Aj,Object.setPrototypeOf(this,cs.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ku.prototype.create)}}class ku{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],c=o?kj(o,r):"Error",d=`${this.serviceName}: ${c} (${i}).`;return new cs(i,d,r)}}function kj(e,t){return e.replace(Rj,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const Rj=/\{\$([^}]+)}/g;function Mj(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function gl(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],c=t[i];if(CE(o)&&CE(c)){if(!gl(o,c))return!1}else if(o!==c)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function CE(e){return e!==null&&typeof e=="object"}/** 181 * @license 182 * Copyright 2017 Google LLC 183 * 184 * Licensed under the Apache License, Version 2.0 (the "License"); 185 * you may not use this file except in compliance with the License. 186 * You may obtain a copy of the License at 187 * 188 * http://www.apache.org/licenses/LICENSE-2.0 189 * 190 * Unless required by applicable law or agreed to in writing, software 191 * distributed under the License is distributed on an "AS IS" BASIS, 192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 193 * See the License for the specific language governing permissions and 194 * limitations under the License. 195 */function Ru(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(i=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function Jc(e){const t={};return e.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[i,o]=r.split("=");
195t[decodeURIComponent(i)]=decodeURIComponent(o)}}),t}function eu(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function Nj(e,t){const n=new Oj(e,t);return n.subscribe.bind(n)}class Oj{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let i;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Pj(t,["next","error","complete"])?i=t:i={next:t,error:n,complete:r},i.next===void 0&&(i.next=Pg),i.error===void 0&&(i.error=Pg),i.complete===void 0&&(i.complete=Pg);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),o}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,t)}sendOne(t,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Pj(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function Pg(){}/** 196 * @license 197 * Copyright 2021 Google LLC 198 * 199 * Licensed under the Apache License, Version 2.0 (the "License"); 200 * you may not use this file except in compliance with the License. 201 * You may obtain a copy of the License at 202 * 203 * http://www.apache.org/licenses/LICENSE-2.0 204 * 205 * Unless required by applicable law or agreed to in writing, software 206 * distributed under the License is distributed on an "AS IS" BASIS, 207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 208 * See the License for the specific language governing permissions and 209 * limitations under the License. 210 */function di(e){return e&&e._delegate?e._delegate:e}class yl{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** 211 * @license 212 * Copyright 2019 Google LLC 213 * 214 * Licensed under the Apache License, Version 2.0 (the "License"); 215 * you may not use this file except in compliance with the License. 216 * You may obtain a copy of the License at 217 * 218 * http://www.apache.org/licenses/LICENSE-2.0 219 * 220 * Unless required by applicable law or agreed to in writing, software 221 * distributed under the License is distributed on an "AS IS" BASIS, 222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 223 * See the License for the specific language governing permissions and 224 * limitations under the License. 225 */const Ls="[DEFAULT]";/** 226 * @license 227 * Copyright 2019 Google LLC 228 * 229 * Licensed under the Apache License, Version 2.0 (the "License"); 230 * you may not use this file except in compliance with the License. 231 * You may obtain a copy of the License at 232 * 233 * http://www.apache.org/licenses/LICENSE-2.0 234 * 235 * Unless required by applicable law or agreed to in writing, software 236 * distributed under the License is distributed on an "AS IS" BASIS, 237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 238 * See the License for the specific language governing permissions and 239 * limitations under the License. 240 */class jj{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new gj;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(Ij(t))try{this.getOrInitializeService({instanceIdentifier:Ls})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(t=Ls){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Ls){return this.instances.has(t)}getOptions(t=Ls){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,c]of this.instancesDeferred.entries()){const d=this.normalizeInstanceIdentifier(o);r===d&&c.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const c=this.instances.get(i);return c&&t(c,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Lj(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Ls){return this.component?this.component.multipleInstances?t:Ls:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function Lj(e){return e===Ls?void 0:e}function Ij(e){return e.instantiationMode==="EAGER"}/** 241 * @license 242 * Copyright 2019 Google LLC 243 * 244 * Licensed under the Apache License, Version 2.0 (the "License");
245 * you may not use this file except in compliance with the License. 246 * You may obtain a copy of the License at 247 * 248 * http://www.apache.org/licenses/LICENSE-2.0 249 * 250 * Unless required by applicable law or agreed to in writing, software 251 * distributed under the License is distributed on an "AS IS" BASIS, 252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 253 * See the License for the specific language governing permissions and 254 * limitations under the License. 255 */class Bj{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new jj(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** 256 * @license 257 * Copyright 2017 Google LLC 258 * 259 * Licensed under the Apache License, Version 2.0 (the "License"); 260 * you may not use this file except in compliance with the License. 261 * You may obtain a copy of the License at 262 * 263 * http://www.apache.org/licenses/LICENSE-2.0 264 * 265 * Unless required by applicable law or agreed to in writing, software 266 * distributed under the License is distributed on an "AS IS" BASIS, 267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 268 * See the License for the specific language governing permissions and 269 * limitations under the License. 270 */var St;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(St||(St={}));const Uj={debug:St.DEBUG,verbose:St.VERBOSE,info:St.INFO,warn:St.WARN,error:St.ERROR,silent:St.SILENT},Hj=St.INFO,Vj={[St.DEBUG]:"log",[St.VERBOSE]:"log",[St.INFO]:"info",[St.WARN]:"warn",[St.ERROR]:"error"},zj=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=Vj[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class TD{constructor(t){this.name=t,this._logLevel=Hj,this._logHandler=zj,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in St))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?Uj[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,St.DEBUG,...t),this._logHandler(this,St.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,St.VERBOSE,...t),this._logHandler(this,St.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,St.INFO,...t),this._logHandler(this,St.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,St.WARN,...t),this._logHandler(this,St.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,St.ERROR,...t),this._logHandler(this,St.ERROR,...t)}}const Fj=(e,t)=>t.some(n=>e instanceof n);let AE,kE;function Yj(){return AE||(AE=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function qj(){return kE||(kE=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const DD=new WeakMap,_y=new WeakMap,_D=new WeakMap,jg=new WeakMap,Iv=new WeakMap;function $j(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",c)},o=()=>{n(Zi(e.result)),i()},c=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",c)});return t.then(n=>{n instanceof IDBCursor&&DD.set(n,e)}).catch(()=>{}),Iv.set(t,e),t}function Wj(e){if(_y.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",c),e.removeEventListener("abort",c)},o=()=>{n(),i()},c=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",c),e.addEventListener("abort",c)});_y.set(e,t)}let Cy={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return _y.get(e);if(t==="objectStoreNames")return e.objectStoreNames||_D.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Zi(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Kj(e){Cy=e(Cy)}function Gj(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Lg(this),t,...n);return _D.set(r,t.sort?t.sort():[t]),Zi(r)}:qj().includes(e)?function(...t){return e.apply(Lg(this),t),Zi(DD.get(this))}:function(...t){return Zi(e.apply(Lg(this),t))}}function Qj(e){return typeof e=="function"?Gj(e):(e instanceof IDBTransaction&&Wj(e),Fj(e,Yj())?new Proxy(e,Cy):e)}function Zi(e){if(e instanceof IDBRequest)return $j(e);if(jg.has(e))return jg.get(e);const t=Qj(e);return t!==e&&(jg.set(e,t),Iv.set(t,e)),t}const Lg=e=>Iv.get(e);function Xj(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const c=indexedDB.open(e,t),d=Zi(c);return r&&c.addEventListener("upgradeneeded",f=>{r(Zi(c.result),f.oldVersion,f.newVersion,Zi(c.transaction),f)}),n&&c.addEventListener("blocked",f=>n(f.oldVersion,f.newVersion,f)),d.then(f=>{o&&f.addEventListener("close",()=>o()),i&&f.addEventListener("versionchange",h=>i(h.oldVersion,h.newVersion,h))}).catch(()=>{}),d}const Zj=["get","getKey","getAll","getAllKeys","count"],Jj=["put","add","delete","clear"],Ig=new Map;function RE(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Ig.get(t))return Ig.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Jj.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Zj.includes(n)))return;const o=async function(c,...d){const f=this.transaction(c,i?"readwrite":"readonly");let h=f.store;
270return r&&(h=h.index(d.shift())),(await Promise.all([h[n](...d),i&&f.done]))[0]};return Ig.set(t,o),o}Kj(e=>({...e,get:(t,n,r)=>RE(t,n)||e.get(t,n,r),has:(t,n)=>!!RE(t,n)||e.has(t,n)}));/** 271 * @license 272 * Copyright 2019 Google LLC 273 * 274 * Licensed under the Apache License, Version 2.0 (the "License"); 275 * you may not use this file except in compliance with the License. 276 * You may obtain a copy of the License at 277 * 278 * http://www.apache.org/licenses/LICENSE-2.0 279 * 280 * Unless required by applicable law or agreed to in writing, software 281 * distributed under the License is distributed on an "AS IS" BASIS, 282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 283 * See the License for the specific language governing permissions and 284 * limitations under the License. 285 */class eL{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(tL(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function tL(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Ay="@firebase/app",ME="0.13.0";/** 286 * @license 287 * Copyright 2019 Google LLC 288 * 289 * Licensed under the Apache License, Version 2.0 (the "License"); 290 * you may not use this file except in compliance with the License. 291 * You may obtain a copy of the License at 292 * 293 * http://www.apache.org/licenses/LICENSE-2.0 294 * 295 * Unless required by applicable law or agreed to in writing, software 296 * distributed under the License is distributed on an "AS IS" BASIS, 297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 298 * See the License for the specific language governing permissions and 299 * limitations under the License. 300 */const si=new TD("@firebase/app"),nL="@firebase/app-compat",rL="@firebase/analytics-compat",aL="@firebase/analytics",iL="@firebase/app-check-compat",sL="@firebase/app-check",oL="@firebase/auth",lL="@firebase/auth-compat",cL="@firebase/database",uL="@firebase/data-connect",dL="@firebase/database-compat",fL="@firebase/functions",hL="@firebase/functions-compat",pL="@firebase/installations",mL="@firebase/installations-compat",gL="@firebase/messaging",yL="@firebase/messaging-compat",vL="@firebase/performance",bL="@firebase/performance-compat",wL="@firebase/remote-config",xL="@firebase/remote-config-compat",EL="@firebase/storage",SL="@firebase/storage-compat",TL="@firebase/firestore",DL="@firebase/ai",_L="@firebase/firestore-compat",CL="firebase",AL="11.8.0";/** 301 * @license 302 * Copyright 2019 Google LLC 303 * 304 * Licensed under the Apache License, Version 2.0 (the "License"); 305 * you may not use this file except in compliance with the License. 306 * You may obtain a copy of the License at 307 * 308 * http://www.apache.org/licenses/LICENSE-2.0 309 * 310 * Unless required by applicable law or agreed to in writing, software 311 * distributed under the License is distributed on an "AS IS" BASIS, 312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 313 * See the License for the specific language governing permissions and 314 * limitations under the License. 315 */const ky="[DEFAULT]",kL={[Ay]:"fire-core",[nL]:"fire-core-compat",[aL]:"fire-analytics",[rL]:"fire-analytics-compat",[sL]:"fire-app-check",[iL]:"fire-app-check-compat",[oL]:"fire-auth",[lL]:"fire-auth-compat",[cL]:"fire-rtdb",[uL]:"fire-data-connect",[dL]:"fire-rtdb-compat",[fL]:"fire-fn",[hL]:"fire-fn-compat",[pL]:"fire-iid",[mL]:"fire-iid-compat",[gL]:"fire-fcm",[yL]:"fire-fcm-compat",[vL]:"fire-perf",[bL]:"fire-perf-compat",[wL]:"fire-rc",[xL]:"fire-rc-compat",[EL]:"fire-gcs",[SL]:"fire-gcs-compat",[TL]:"fire-fst",[_L]:"fire-fst-compat",[DL]:"fire-vertex","fire-js":"fire-js",[CL]:"fire-js-all"};/** 316 * @license 317 * Copyright 2019 Google LLC 318 * 319 * Licensed under the Apache License, Version 2.0 (the "License"); 320 * you may not use this file except in compliance with the License. 321 * You may obtain a copy of the License at 322 * 323 * http://www.apache.org/licenses/LICENSE-2.0 324 * 325 * Unless required by applicable law or agreed to in writing, software 326 * distributed under the License is distributed on an "AS IS" BASIS, 327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 328 * See the License for the specific language governing permissions and 329 * limitations under the License. 330 */const Gf=new Map,RL=new Map,Ry=new Map;function NE(e,t){try{e.container.addComponent(t)}catch(n){si.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function hu(e){const t=e.name;if(Ry.has(t))return si.debug(`There were multiple attempts to register component ${t}.`),!1;Ry.set(t,e);for(const n of Gf.values())NE(n,e);for(const n of RL.values())NE(n,e);return!0}function CD(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Ur(e){return e==null?!1:e.settings!==void 0}/** 331 * @license 332 * Copyright 2019 Google LLC 333 * 334 * Licensed under the Apache License, Version 2.0 (the "License");
335 * you may not use this file except in compliance with the License. 336 * You may obtain a copy of the License at 337 * 338 * http://www.apache.org/licenses/LICENSE-2.0 339 * 340 * Unless required by applicable law or agreed to in writing, software 341 * distributed under the License is distributed on an "AS IS" BASIS, 342 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 343 * See the License for the specific language governing permissions and 344 * limitations under the License. 345 */const ML={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
345d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Ji=new ku("app","Firebase",ML);/** 346 * @license 347 * Copyright 2019 Google LLC 348 * 349 * Licensed under the Apache License, Version 2.0 (the "License"); 350 * you may not use this file except in compliance with the License. 351 * You may obtain a copy of the License at 352 * 353 * http://www.apache.org/licenses/LICENSE-2.0 354 * 355 * Unless required by applicable law or agreed to in writing, software 356 * distributed under the License is distributed on an "AS IS" BASIS, 357 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 358 * See the License for the specific language governing permissions and 359 * limitations under the License. 360 */class NL{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new yl("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Ji.create("app-deleted",{appName:this._name})}}/** 361 * @license 362 * Copyright 2019 Google LLC 363 * 364 * Licensed under the Apache License, Version 2.0 (the "License"); 365 * you may not use this file except in compliance with the License. 366 * You may obtain a copy of the License at 367 * 368 * http://www.apache.org/licenses/LICENSE-2.0 369 * 370 * Unless required by applicable law or agreed to in writing, software 371 * distributed under the License is distributed on an "AS IS" BASIS, 372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 373 * See the License for the specific language governing permissions and 374 * limitations under the License. 375 */const Mu=AL;function AD(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:ky,automaticDataCollectionEnabled:!0},t),i=r.name;if(typeof i!="string"||!i)throw Ji.create("bad-app-name",{appName:String(i)});if(n||(n=ED()),!n)throw Ji.create("no-options");const o=Gf.get(i);if(o){if(gl(n,o.options)&&gl(r,o.config))return o;throw Ji.create("duplicate-app",{appName:i})}const c=new Bj(i);for(const f of Ry.values())c.addComponent(f);const d=new NL(n,r,c);return Gf.set(i,d),d}function OL(e=ky){const t=Gf.get(e);if(!t&&e===ky&&ED())return AD();if(!t)throw Ji.create("no-app",{appName:e});return t}function ll(e,t,n){var r;let i=(r=kL[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),c=t.match(/\s|\//);if(o||c){const d=[`Unable to register library "${i}" with version "${t}":`];o&&d.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&c&&d.push("and"),c&&d.push(`version name "${t}" contains illegal characters (whitespace or "/")`),si.warn(d.join(" "));return}hu(new yl(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/** 376 * @license 377 * Copyright 2021 Google LLC 378 * 379 * Licensed under the Apache License, Version 2.0 (the "License"); 380 * you may not use this file except in compliance with the License. 381 * You may obtain a copy of the License at 382 * 383 * http://www.apache.org/licenses/LICENSE-2.0 384 * 385 * Unless required by applicable law or agreed to in writing, softw
385are 386 * distributed under the License is distributed on an "AS IS" BASIS, 387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 388 * See the License for the specific language governing permissions and 389 * limitations under the License. 390 */const PL="firebase-heartbeat-database",jL=1,pu="firebase-heartbeat-store";let Bg=null;function kD(){return Bg||(Bg=Xj(PL,jL,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(pu)}catch(n){console.warn(n)}}}}).catch(e=>{throw Ji.create("idb-open",{originalErrorMessage:e.message})})),Bg}async function LL(e){try{const n=(await kD()).transaction(pu),r=await n.objectStore(pu).get(RD(e));return await n.done,r}catch(t){if(t instanceof cs)si.warn(t.message);else{const n=Ji.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});si.warn(n.message)}}}async function OE(e,t){try{const r=(await kD()).transaction(pu,"readwrite");await r.objectStore(pu).put(t,RD(e)),await r.done}catch(n){if(n instanceof cs)si.warn(n.message);else{const r=Ji.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});si.warn(r.message)}}}function RD(e){return`${e.name}!${e.options.appId}`}/** 391 * @license 392 * Copyright 2021 Google LLC 393 * 394 * Licensed under the Apache License, Version 2.0 (the "License"); 395 * you may not use this file except in compliance with the License. 396 * You may obtain a copy of the License at 397 * 398 * http://www.apache.org/licenses/LICENSE-2.0 399 * 400 * Unless required by applicable law or agreed to in writing, software 401 * distributed under the License is distributed on an "AS IS" BASIS, 402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 403 * See the License for the specific language governing permissions and 404 * limitations under the License. 405 */const IL=1024,BL=30;class UL{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new VL(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=PE();if(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(c=>c.date===o))return;if(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats.length>BL){const c=zL(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(c,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){si.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=PE(),{heartbeatsToSend:r,unsentEntries:i}=HL(this._heartbeatsCache.heartbeats),o=wD(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return si.warn(n),""}}}function PE(){return new Date().toISOString().substring(0,10)}function HL(e,t=IL){const n=[];let r=e.slice();for(const i of e){const o=n.find(c=>c.agent===i.agent);if(o){if(o.dates.push(i.date),jE(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),jE(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class VL{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return _j()?Cj().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await LL(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return OE(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return OE(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function jE(e){return wD(JSON.stringify({version:2,heartbeats:e})).length}function zL(e){if(e.length===0)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}/** 406 * @license 407 * Copyright 2019 Google LLC 408 * 409 * Licensed under the Apache License, Version 2.0 (the "License");
410 * you may not use this file except in compliance with the License. 411 * You may obtain a copy of the License at 412 * 413 * http://www.apache.org/licenses/LICENSE-2.0 414 * 415 * Unless required by applicable law or agreed to in writing, software 416 * distributed under the License is distributed on an "AS IS" BASIS, 417 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 418 * See the License for the specific language governing permissions and 419 * limitations under the License. 420 */function FL(e){hu(new yl("platform-logger",t=>new eL(t),"PRIVATE")),hu(new yl("heartbeat",t=>new UL(t),"PRIVATE")),ll(Ay,ME,e),ll(Ay,ME,"esm2017"),ll("fire-js","")}FL("");function Bv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function MD(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const YL=MD,ND=new ku("auth","Firebase",MD());/** 421 * @license 422 * Copyright 2020 Google LLC 423 * 424 * Licensed under the Apache License, Version 2.0 (the "License"); 425 * you may not use this file except in compliance with the License. 426 * You may obtain a copy of the License at 427 * 428 * http://www.apache.org/licenses/LICENSE-2.0 429 * 430 * Unless required by applicable law or agreed to in writing, software 431 * distributed under the License is distributed on an "AS IS" BASIS, 432 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 433 * See the License for the specific language governing permissions and 434 * limitations under the License. 435 */const Qf=new TD("@firebase/auth");function qL(e,...t){Qf.logLevel<=St.WARN&&Qf.warn(`Auth (${Mu}): ${e}`,...t)}function Af(e,...t){Qf.logLevel<=St.ERROR&&Qf.error(`Auth (${Mu}): ${e}`,...t)}/** 436 * @license 437 * Copyright 2020 Google LLC 438 * 439 * Licensed under the Apache License, Version 2.0 (the "License"); 440 * you may not use this file except in compliance with the License. 441 * You may obtain a copy of the License at 442 * 443 * http://www.apache.org/licenses/LICENSE-2.0 444 * 445 * Unless required by applicable law or agreed to in writing, software 446 * distributed under the License is distributed on an "AS IS" BASIS, 447 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 448 * See the License for the specific language governing permissions and 449 * limitations under the License. 450 */function zr(e,...t){throw Hv(e,...t)}function ia(e,...t){return Hv(e,...t)}function Uv(e,t,n){const r=Object.assign(Object.assign({},YL()),{[t]:n});return new ku("auth","Firebase",r).create(t,{appName:e.name})}function Ja(e){return Uv(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function $L(e,t,n){const r=n;if(!(t instanceof r))throw r.name!==t.constructor.name&&zr(e,"argument-error"),Uv(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Hv(e,...t){if(typeof e!="string"){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return ND.create(e,...t)}function Pe(e,t,...n){if(!e)throw Hv(t,...n)}function Xa(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Af(t),new Error(t)}function oi(e,t){e||Xa(t)}/** 451 * @license 452 * Copyright 2020 Google LLC 453 * 454 * Licensed under the Apache License, Version 2.0 (the "License"); 455 * you may not use this file except in compliance with the License. 456 * You may obtain a copy of the License at 457 * 458 * http://www.apache.org/licenses/LICENSE-2.0 459 * 460 * Unless required by applicable law or agreed to in writing, software 461 * distributed under the License is distributed on an "AS IS" BASIS, 462 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 463 * See the License for the specific language governing permissions and 464 * limitations under the License. 465 */function My(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.href)||""}function WL(){return LE()==="http:"||LE()==="https:"}function LE(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.protocol)||null}/** 466 * @license 467 * Copyright 2020 Google LLC 468 * 469 * Licensed under the Apache License, Version 2.0 (the "License");
470 * you may not use this file except in compliance with the License. 471 * You may obtain a copy of the License at 472 * 473 * http://www.apache.org/licenses/LICENSE-2.0 474 * 475 * Unless required by applicable law or agreed to in writing, software 476 * distributed under the License is distributed on an "AS IS" BASIS, 477 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 478 * See the License for the specific language governing permissions and 479 * limitations under the License. 480 */function KL(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(WL()||Sj()||"connection"in navigator)?navigator.onLine:!0}function GL(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/** 481 * @license 482 * Copyright 2020 Google LLC 483 * 484 * Licensed under the Apache License, Version 2.0 (the "License"); 485 * you may not use this file except in compliance with the License. 486 * You may obtain a copy of the License at 487 * 488 * http://www.apache.org/licenses/LICENSE-2.0 489 * 490 * Unless required by applicable law or agreed to in writing, software 491 * distributed under the License is distributed on an "AS IS" BASIS, 492 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 493 * See the License for the specific language governing permissions and 494 * limitations under the License. 495 */class Nu{constructor(t,n){this.shortDelay=t,this.longDelay=n,oi(n>t,"Short delay should be less than long delay!"),this.isMobile=xj()||Tj()}get(){return KL()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 496 * @license 497 * Copyright 2020 Google LLC 498 * 499 * Licensed under the Apache License, Version 2.0 (the "License"); 500 * you may not use this file except in compliance with the License. 501 * You may obtain a copy of the License at 502 * 503 * http://www.apache.org/licenses/LICENSE-2.0 504 * 505 * Unless required by applicable law or agreed to in writing, software 506 * distributed under the License is distributed on an "AS IS" BASIS, 507 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 508 * See the License for the specific language governing permissions and 509 * limitations under the License. 510 */function Vv(e,t){oi(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/** 511 * @license 512 * Copyright 2020 Google LLC 513 * 514 * Licensed under the Apache License, Version 2.0 (the "License"); 515 * you may not use this file except in compliance with the License. 516 * You may obtain a copy of the License at 517 * 518 * http://www.apache.org/licenses/LICENSE-2.0 519 * 520 * Unless required by applicable law or agreed to in writing, software 521 * distributed under the License is distributed on an "AS IS" BASIS, 522 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 523 * See the License for the specific language governing permissions and 524 * limitations under the License. 525 */class OD{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Xa("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Xa("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Xa("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 526 * @license 527 * Copyright 2020 Google LLC 528 * 529 * Licensed under the Apache License, Version 2.0 (the "License");
530 * you may not use this file except in compliance with the License. 531 * You may obtain a copy of the License at 532 * 533 * http://www.apache.org/licenses/LICENSE-2.0 534 * 535 * Unless required by applicable law or agreed to in writing, software 536 * distributed under the License is distributed on an "AS IS" BASIS, 537 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 538 * See the License for the specific language governing permissions and 539 * limitations under the License. 540 */const QL={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 541 * @license 542 * Copyright 2020 Google LLC 543 * 544 * Licensed under the Apache License, Version 2.0 (the "License"); 545 * you may not use this file except in compliance with the License. 546 * You may obtain a copy of the License at 547 * 548 * http://www.apache.org/licenses/LICENSE-2.0 549 * 550 * Unless required by applicable law or agreed to in writing, software 551 * distributed under the License is distributed on an "AS IS" BASIS, 552 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 553 * See the License for the specific language governing permissions and 554 * limitations under the License. 555 */const XL=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],ZL=new Nu(3e4,6e4);function us(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function fi(e,t,n,r,i={}){return PD(e,i,async()=>{let o={},c={};r&&(t==="GET"?c=r:o={body:JSON.stringify(r)});const d=Ru(Object.assign({key:e.config.apiKey},c)).slice(1),f=await e._getAdditionalHeaders();f["Content-Type"]="application/json",e.languageCode&&(f["X-Firebase-Locale"]=e.languageCode);const h=Object.assign({method:t,headers:f},o);return Ej()||(h.referrerPolicy="no-referrer"),e.emulatorConfig&&Lv(e.emulatorConfig.host)&&(h.credentials="include"),OD.fetch()(await jD(e,e.config.apiHost,n,d),h)})}async function PD(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},QL),t);try{const i=new e3(e),o=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const c=await o.json();if("needConfirmation"in c)throw df(e,"account-exists-with-different-credential",c);if(o.ok&&!("errorMessage"in c))return c;{const d=o.ok?c.errorMessage:c.error.message,[f,h]=d.split(" : ");if(f==="FEDERATED_USER_ID_ALREADY_LINKED")throw df(e,"credential-already-in-use",c);if(f==="EMAIL_EXISTS")throw df(e,"email-already-in-use",c);if(f==="USER_DISABLED")throw df(e,"user-disabled",c);const m=r[f]||f.toLowerCase().replace(/[_\s]+/g,"-");if(h)throw Uv(e,m,h);zr(e,m)}}catch(i){if(i instanceof cs)throw i;zr(e,"network-request-failed",{message:String(i)})}}async function Ou(e,t,n,r,i={}){const o=await fi(e,t,n,r,i);return"mfaPendingCredential"in o&&zr(e,"multi-factor-auth-required",{_serverResponse:o}),o}async function jD(e,t,n,r){const i=`${t}${n}?${r}`,o=e,c=o.config.emulator?Vv(e.config,i):`${e.config.apiScheme}://${i}`;return XL.includes(n)&&(await o._persistenceManagerAvailable,o._getPersistenceType()==="COOKIE")?o._getPersistence()._getFinalTarget(c).toString():c}function JL(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class e3{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(ia(this.auth,"network-request-failed")),ZL.get())})}}
555function df(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=ia(e,t,r);return i.customData._tokenResponse=n,i}function IE(e){return e!==void 0&&e.enterprise!==void 0}class t3{constructor(t){if(this.siteKey="",this.recaptchaEnforcementState=[],t.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=t.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=t.recaptchaEnforcementState}getProviderEnforcementState(t){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===t)return JL(n.enforcementState);return null}isProviderEnabled(t){return this.getProviderEnforcementState(t)==="ENFORCE"||this.getProviderEnforcementState(t)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function n3(e,t){return fi(e,"GET","/v2/recaptchaConfig",us(e,t))}/** 556 * @license 557 * Copyright 2020 Google LLC 558 * 559 * Licensed under the Apache License, Version 2.0 (the "License"); 560 * you may not use this file except in compliance with the License. 561 * You may obtain a copy of the License at 562 * 563 * http://www.apache.org/licenses/LICENSE-2.0 564 * 565 * Unless required by applicable law or agreed to in writing, software 566 * distributed under the License is distributed on an "AS IS" BASIS, 567 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 568 * See the License for the specific language governing permissions and 569 * limitations under the License. 570 */async function r3(e,t){return fi(e,"POST","/v1/accounts:delete",t)}async function Xf(e,t){return fi(e,"POST","/v1/accounts:lookup",t)}/** 571 * @license 572 * Copyright 2020 Google LLC 573 * 574 * Licensed under the Apache License, Version 2.0 (the "License"); 575 * you may not use this file except in compliance with the License. 576 * You may obtain a copy of the License at 577 * 578 * http://www.apache.org/licenses/LICENSE-2.0 579 * 580 * Unless required by applicable law or agreed to in writing, software 581 * distributed under the License is distributed on an "AS IS" BASIS, 582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 583 * See the License for the specific language governing permissions and 584 * limitations under the License. 585 */function iu(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function a3(e,t=!1){const n=di(e),r=await n.getIdToken(t),i=zv(r);Pe(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o=typeof i.firebase=="object"?i.firebase:void 0,c=o==null?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:iu(Ug(i.auth_time)),issuedAtTime:iu(Ug(i.iat)),expirationTime:iu(Ug(i.exp)),signInProvider:c||null,signInSecondFactor:(o==null?void 0:o.sign_in_second_factor)||null}}function Ug(e){return Number(e)*1e3}function zv(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return Af("JWT malformed, contained fewer than 3 sections"),null;try{const i=xD(n);return i?JSON.parse(i):(Af("Failed to decode base64 JWT payload"),null)}catch(i){return Af("Caught error parsing JWT payload as JSON",i==null?void 0:i.toString()),null}}function BE(e){const t=zv(e);return Pe(t,"internal-error"),Pe(typeof t.exp<"u","internal-error"),Pe(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/** 586 * @license 587 * Copyright 2020 Google LLC 588 * 589 * Licensed under the Apache License, Version 2.0 (the "License"); 590 * you may not use this file except in compliance with the License. 591 * You may obtain a copy of the License at 592 * 593 * http://www.apache.org/licenses/LICENSE-2.0 594 * 595 * Unless required by applicable law or agreed to in writing, software 596 * distributed under the License is distributed on an "AS IS" BASIS, 597 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 598 * See the License for the specific language governing permissions and 599 * limitations under the License. 600 */async function vl(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof cs&&i3(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function i3({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/** 601 * @license 602 * Copyright 2020 Google LLC 603 * 604 * Licensed under the Apache License, Version 2.0 (the "License");
605 * you may not use this file except in compliance with the License. 606 * You may obtain a copy of the License at 607 * 608 * http://www.apache.org/licenses/LICENSE-2.0 609 * 610 * Unless required by applicable law or agreed to in writing, software 611 * distributed under the License is distributed on an "AS IS" BASIS, 612 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 613 * See the License for the specific language governing permissions and 614 * limitations under the License. 615 */class s3{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){var n;if(t){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const i=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 616 * @license 617 * Copyright 2020 Google LLC 618 * 619 * Licensed under the Apache License, Version 2.0 (the "License"); 620 * you may not use this file except in compliance with the License. 621 * You may obtain a copy of the License at 622 * 623 * http://www.apache.org/licenses/LICENSE-2.0 624 * 625 * Unless required by applicable law or agreed to in writing, software 626 * distributed under the License is distributed on an "AS IS" BASIS, 627 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 628 * See the License for the specific language governing permissions and 629 * limitations under the License. 630 */class Ny{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=iu(this.lastLoginAt),this.creationTime=iu(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 631 * @license 632 * Copyright 2019 Google LLC 633 * 634 * Licensed under the Apache License, Version 2.0 (the "License"); 635 * you may not use this file except in compliance with the License. 636 * You may obtain a copy of the License at 637 * 638 * http://www.apache.org/licenses/LICENSE-2.0 639 * 640 * Unless required by applicable law or agreed to in writing, software 641 * distributed under the License is distributed on an "AS IS" BASIS, 642 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 643 * See the License for the specific language governing permissions and 644 * limitations under the License. 645 */async function Zf(e){var t;const n=e.auth,r=await e.getIdToken(),i=await vl(e,Xf(n,{idToken:r}));Pe(i==null?void 0:i.users.length,n,"internal-error");const o=i.users[0];e._notifyReloadListener(o);const c=!((t=o.providerUserInfo)===null||t===void 0)&&t.length?LD(o.providerUserInfo):[],d=l3(e.providerData,c),f=e.isAnonymous,h=!(e.email&&o.passwordHash)&&!(d!=null&&d.length),m=f?h:!1,v={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:d,metadata:new Ny(o.createdAt,o.lastLoginAt),isAnonymous:m};Object.assign(e,v)}async function o3(e){const t=di(e);await Zf(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function l3(e,t){return[...e.filter(r=>!t.some(i=>i.providerId===r.providerId)),...t]}function LD(e){return e.map(t=>{var{providerId:n}=t,r=Bv(t,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/** 646 * @license 647 * Copyright 2020 Google LLC 648 * 649 * Licensed under the Apache License, Version 2.0 (the "License"); 650 * you may not use this file except in compliance with the License. 651 * You may obtain a copy of the License at 652 * 653 * http://www.apache.org/licenses/LICENSE-2.0 654 * 655 * Unless required by applicable law or agreed to in writing, softw
655are 656 * distributed under the License is distributed on an "AS IS" BASIS, 657 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 658 * See the License for the specific language governing permissions and 659 * limitations under the License. 660 */async function c3(e,t){const n=await PD(e,{},async()=>{const r=Ru({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:i,apiKey:o}=e.config,c=await jD(e,i,"/v1/token",`key=${o}`),d=await e._getAdditionalHeaders();return d["Content-Type"]="application/x-www-form-urlencoded",OD.fetch()(c,{method:"POST",headers:d,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function u3(e,t){return fi(e,"POST","/v2/accounts:revokeToken",us(e,t))}/** 661 * @license 662 * Copyright 2020 Google LLC 663 * 664 * Licensed under the Apache License, Version 2.0 (the "License"); 665 * you may not use this file except in compliance with the License. 666 * You may obtain a copy of the License at 667 * 668 * http://www.apache.org/licenses/LICENSE-2.0 669 * 670 * Unless required by applicable law or agreed to in writing, software 671 * distributed under the License is distributed on an "AS IS" BASIS, 672 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 673 * See the License for the specific language governing permissions and 674 * limitations under the License. 675 */class cl{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){Pe(t.idToken,"internal-error"),Pe(typeof t.idToken<"u","internal-error"),Pe(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):BE(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){Pe(t.length!==0,"internal-error");const n=BE(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Pe(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:i,expiresIn:o}=await c3(t,n);this.updateTokensAndExpiration(r,i,Number(o))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:i,expirationTime:o}=n,c=new cl;return r&&(Pe(typeof r=="string","internal-error",{appName:t}),c.refreshToken=r),i&&(Pe(typeof i=="string","internal-error",{appName:t}),c.accessToken=i),o&&(Pe(typeof o=="number","internal-error",{appName:t}),c.expirationTime=o),c}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new cl,this.toJSON())}_performRefresh(){return Xa("not implemented")}}/** 676 * @license 677 * Copyright 2020 Google LLC 678 * 679 * Licensed under the Apache License, Version 2.0 (the "License"); 680 * you may not use this file except in compliance with the License. 681 * You may obtain a copy of the License at 682 * 683 * http://www.apache.org/licenses/LICENSE-2.0 684 * 685 * Unless required by applicable law or agreed to in writing, software 686 * distributed under the License is distributed on an "AS IS" BASIS, 687 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 688 * See the License for the specific language governing permissions and 689 * limitations under the License. 690 */function Ui(e,t){Pe(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class aa{constructor(t){var{uid:n,auth:r,stsTokenManager:i}=t,o=Bv(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new s3(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new Ny(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(t){const n=await vl(this,this.stsTokenManager.getToken(this.auth,t));return Pe(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return a3(this,t)}reload(){return o3(this)}_assign(t){this!==t&&(Pe(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>Object.assign({},n)),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new aa(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(t){Pe(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await Zf(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Ur(this.auth.app))return Promise.reject(Ja(this.auth));const t=await this.getIdToken();return await vl(this,r3(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
690nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>Object.assign({},t)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){var r,i,o,c,d,f,h,m;const v=(r=n.displayName)!==null&&r!==void 0?r:void 0,b=(i=n.email)!==null&&i!==void 0?i:void 0,w=(o=n.phoneNumber)!==null&&o!==void 0?o:void 0,x=(c=n.photoURL)!==null&&c!==void 0?c:void 0,T=(d=n.tenantId)!==null&&d!==void 0?d:void 0,D=(f=n._redirectEventId)!==null&&f!==void 0?f:void 0,_=(h=n.createdAt)!==null&&h!==void 0?h:void 0,k=(m=n.lastLoginAt)!==null&&m!==void 0?m:void 0,{uid:A,emailVerified:V,isAnonymous:L,providerData:R,stsTokenManager:G}=n;Pe(A&&G,t,"internal-error");const F=cl.fromJSON(this.name,G);Pe(typeof A=="string",t,"internal-error"),Ui(v,t.name),Ui(b,t.name),Pe(typeof V=="boolean",t,"internal-error"),Pe(typeof L=="boolean",t,"internal-error"),Ui(w,t.name),Ui(x,t.name),Ui(T,t.name),Ui(D,t.name),Ui(_,t.name),Ui(k,t.name);const B=new aa({uid:A,auth:t,email:b,emailVerified:V,displayName:v,isAnonymous:L,photoURL:x,phoneNumber:w,tenantId:T,stsTokenManager:F,createdAt:_,lastLoginAt:k});return R&&Array.isArray(R)&&(B.providerData=R.map(le=>Object.assign({},le))),D&&(B._redirectEventId=D),B}static async _fromIdTokenResponse(t,n,r=!1){const i=new cl;i.updateFromServerResponse(n);const o=new aa({uid:n.localId,auth:t,stsTokenManager:i,isAnonymous:r});return await Zf(o),o}static async _fromGetAccountInfoResponse(t,n,r){const i=n.users[0];Pe(i.localId!==void 0,"internal-error");const o=i.providerUserInfo!==void 0?LD(i.providerUserInfo):[],c=!(i.email&&i.passwordHash)&&!(o!=null&&o.length),d=new cl;d.updateFromIdToken(r);const f=new aa({uid:i.localId,auth:t,stsTokenManager:d,isAnonymous:c}),h={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new Ny(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!(o!=null&&o.length)};return Object.assign(f,h),f}}/** 691 * @license 692 * Copyright 2020 Google LLC 693 * 694 * Licensed under the Apache License, Version 2.0 (the "License"); 695 * you may not use this file except in compliance with the License. 696 * You may obtain a copy of the License at 697 * 698 * http://www.apache.org/licenses/LICENSE-2.0 699 * 700 * Unless required by applicable law or agreed to in writing, software 701 * distributed under the License is distributed on an "AS IS" BASIS, 702 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 703 * See the License for the specific language governing permissions and 704 * limitations under the License. 705 */const UE=new Map;function Za(e){oi(e instanceof Function,"Expected a class definition");let t=UE.get(e);return t?(oi(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,UE.set(e,t),t)}/** 706 * @license 707 * Copyright 2019 Google LLC 708 * 709 * Licensed under the Apache License, Version 2.0 (the "License"); 710 * you may not use this file except in compliance with the License. 711 * You may obtain a copy of the License at 712 * 713 * http://www.apache.org/licenses/LICENSE-2.0 714 * 715 * Unless required by applicable law or agreed to in writing, software 716 * distributed under the License is distributed on an "AS IS" BASIS, 717 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 718 * See the License for the specific language governing permissions and 719 * limitations under the License. 720 */class ID{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}ID.type="NONE";const HE=ID;/** 721 * @license 722 * Copyright 2019 Google LLC 723 * 724 * Licensed under the Apache License, Version 2.0 (the "License");
725 * you may not use this file except in compliance with the License. 726 * You may obtain a copy of the License at 727 * 728 * http://www.apache.org/licenses/LICENSE-2.0 729 * 730 * Unless required by applicable law or agreed to in writing, software 731 * distributed under the License is distributed on an "AS IS" BASIS, 732 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 733 * See the License for the specific language governing permissions and 734 * limitations under the License. 735 */function kf(e,t,n){return`firebase:${e}:${t}:${n}`}class ul{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:i,name:o}=this.auth;this.fullUserKey=kf(this.userKey,i.apiKey,o),this.fullPersistenceKey=kf("persistence",i.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);if(!t)return null;if(typeof t=="string"){const n=await Xf(this.auth,{idToken:t}).catch(()=>{});return n?aa._fromGetAccountInfoResponse(this.auth,n,t):null}return aa._fromJSON(this.auth,t)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r="authUser"){if(!n.length)return new ul(Za(HE),t,r);const i=(await Promise.all(n.map(async h=>{if(await h._isAvailable())return h}))).filter(h=>h);let o=i[0]||Za(HE);const c=kf(r,t.config.apiKey,t.name);let d=null;for(const h of n)try{const m=await h._get(c);if(m){let v;if(typeof m=="string"){const b=await Xf(t,{idToken:m}).catch(()=>{});if(!b)break;v=await aa._fromGetAccountInfoResponse(t,b,m)}else v=aa._fromJSON(t,m);h!==o&&(d=v),o=h;break}}catch{}const f=i.filter(h=>h._shouldAllowMigration);return!o._shouldAllowMigration||!f.length?new ul(o,t,r):(o=f[0],d&&await o._set(c,d.toJSON()),await Promise.all(n.map(async h=>{if(h!==o)try{await h._remove(c)}catch{}})),new ul(o,t,r))}}/** 736 * @license 737 * Copyright 2020 Google LLC 738 * 739 * Licensed under the Apache License, Version 2.0 (the "License"); 740 * you may not use this file except in compliance with the License. 741 * You may obtain a copy of the License at 742 * 743 * http://www.apache.org/licenses/LICENSE-2.0 744 * 745 * Unless required by applicable law or agreed to in writing, software 746 * distributed under the License is distributed on an "AS IS" BASIS, 747 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 748 * See the License for the specific language governing permissions and 749 * limitations under the License. 750 */function VE(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(VD(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(BD(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(FD(t))return"Blackberry";if(YD(t))return"Webos";if(UD(t))return"Safari";if((t.includes("chrome/")||HD(t))&&!t.includes("edge/"))return"Chrome";if(zD(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function BD(e=Un()){return/firefox\//i.test(e)}function UD(e=Un()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function HD(e=Un()){return/crios\//i.test(e)}function VD(e=Un()){return/iemobile/i.test(e)}function zD(e=Un()){return/android/i.test(e)}function FD(e=Un()){return/blackberry/i.test(e)}function YD(e=Un()){return/webos/i.test(e)}function Fv(e=Un()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function d3(e=Un()){var t;return Fv(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function f3(){return Dj()&&document.documentMode===10}function qD(e=Un()){return Fv(e)||zD(e)||YD(e)||FD(e)||/windows phone/i.test(e)||VD(e)}/** 751 * @license 752 * Copyright 2020 Google LLC 753 * 754 * Licensed under the Apache License, Version 2.0 (the "License");
755 * you may not use this file except in compliance with the License. 756 * You may obtain a copy of the License at 757 * 758 * http://www.apache.org/licenses/LICENSE-2.0 759 * 760 * Unless required by applicable law or agreed to in writing, software 761 * distributed under the License is distributed on an "AS IS" BASIS, 762 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 763 * See the License for the specific language governing permissions and 764 * limitations under the License. 765 */function $D(e,t=[]){let n;switch(e){case"Browser":n=VE(Un());break;case"Worker":n=`${VE(Un())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${Mu}/${r}`}/** 766 * @license 767 * Copyright 2022 Google LLC 768 * 769 * Licensed under the Apache License, Version 2.0 (the "License"); 770 * you may not use this file except in compliance with the License. 771 * You may obtain a copy of the License at 772 * 773 * http://www.apache.org/licenses/LICENSE-2.0 774 * 775 * Unless required by applicable law or agreed to in writing, software 776 * distributed under the License is distributed on an "AS IS" BASIS, 777 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 778 * See the License for the specific language governing permissions and 779 * limitations under the License. 780 */class h3{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=o=>new Promise((c,d)=>{try{const f=t(o);c(f)}catch(f){d(f)}});r.onAbort=n,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const i of n)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/** 781 * @license 782 * Copyright 2023 Google LLC 783 * 784 * Licensed under the Apache License, Version 2.0 (the "License"); 785 * you may not use this file except in compliance with the License. 786 * You may obtain a copy of the License at 787 * 788 * http://www.apache.org/licenses/LICENSE-2.0 789 * 790 * Unless required by applicable law or agreed to in writing, software 791 * distributed under the License is distributed on an "AS IS" BASIS, 792 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 793 * See the License for the specific language governing permissions and 794 * limitations under the License. 795 */async function p3(e,t={}){return fi(e,"GET","/v2/passwordPolicy",us(e,t))}/** 796 * @license 797 * Copyright 2023 Google LLC 798 * 799 * Licensed under the Apache License, Version 2.0 (the "License"); 800 * you may not use this file except in compliance with the License. 801 * You may obtain a copy of the License at 802 * 803 * http://www.apache.org/licenses/LICENSE-2.0 804 * 805 * Unless required by applicable law or agreed to in writing, software 806 * distributed under the License is distributed on an "AS IS" BASIS, 807 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 808 * See the License for the specific language governing permissions and 809 * limitations under the License. 810 */const m3=6;class g3{constructor(t){var n,r,i,o;const c=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=c.minPasswordLength)!==null&&n!==void 0?n:m3,c.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=c.maxPasswordLength),c.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=c.containsLowercaseCharacter),c.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=c.containsUppercaseCharacter),c.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=c.containsNumericCharacter),c.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=c.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(i=(r=t.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&i!==void 0?i:"",this.forceUpgradeOnSignin=(o=t.forceUpgradeOnSignin)!==null&&o!==void 0?o:!1,this.schemaVersion=t.schemaVersion}validatePassword(t){var n,r,i,o,c,d;const f={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,f),this.validatePasswordCharacterOptions(t,f),f.isValid&&
810(f.isValid=(n=f.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),f.isValid&&(f.isValid=(r=f.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),f.isValid&&(f.isValid=(i=f.containsLowercaseLetter)!==null&&i!==void 0?i:!0),f.isValid&&(f.isValid=(o=f.containsUppercaseLetter)!==null&&o!==void 0?o:!0),f.isValid&&(f.isValid=(c=f.containsNumericCharacter)!==null&&c!==void 0?c:!0),f.isValid&&(f.isValid=(d=f.containsNonAlphanumericCharacter)!==null&&d!==void 0?d:!0),f}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),i&&(n.meetsMaxPasswordLength=t.length<=i)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let i=0;i<t.length;i++)r=t.charAt(i),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,i,o){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=o))}}/** 811 * @license 812 * Copyright 2020 Google LLC 813 * 814 * Licensed under the Apache License, Version 2.0 (the "License"); 815 * you may not use this file except in compliance with the License. 816 * You may obtain a copy of the License at 817 * 818 * http://www.apache.org/licenses/LICENSE-2.0 819 * 820 * Unless required by applicable law or agreed to in writing, software 821 * distributed under the License is distributed on an "AS IS" BASIS, 822 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 823 * See the License for the specific language governing permissions and 824 * limitations under the License. 825 */class y3{constructor(t,n,r,i){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new zE(this),this.idTokenSubscription=new zE(this),this.beforeStateQueue=new h3(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=ND,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=i.sdkClientVersion,this._persistenceManagerAvailable=new Promise(o=>this._resolvePersistenceManagerAvailable=o)}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=Za(n)),this._initializationPromise=this.queue(async()=>{var r,i,o;if(!this._deleted&&(this.persistenceManager=await ul.create(this,t),(r=this._resolvePersistenceManagerAvailable)===null||r===void 0||r.call(this),!this._deleted)){if(!((i=this._popupRedirectResolver)===null||i===void 0)&&i._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((o=this.currentUser)===null||o===void 0?void 0:o.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await Xf(this,{idToken:t}),r=await aa._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var n;if(Ur(this.app)){const c=this.app.settings.authIdToken;return c?new Promise(d=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(c).then(d,d))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let i=r,o=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const c=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,d=i==null?void 0:i._redirectEventId,f=await this.tryRedirectSignIn(t);(!c||c===d)&&(f!=null&&f.user)&&(i=f.user,o=!0)}if(!i)return this.directlySetCurrentUser(null);
825if(!i._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(i)}catch(c){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(c))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return Pe(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await Zf(t)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=GL()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Ur(this.app))return Promise.reject(Ja(this));const n=t?di(t):null;return n&&Pe(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&Pe(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return Ur(this.app)?Promise.reject(Ja(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Ur(this.app)?Promise.reject(Ja(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Za(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await p3(this),n=new g3(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(t){this._errorFactory=new ku("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await u3(this,r)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)===null||t===void 0?void 0:t.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&Za(t)||this._popupRedirectResolver;Pe(n,this,"argument-error"),this.redirectPersistenceManager=await ul.create(this,[Za(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===t?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(t=this.currentUser)===null||t===void 0?void 0:t.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,i){if(this._deleted)return()=>{};const o=typeof n=="function"?n:n.next.bind(n);let c=!1;const d=this._isInitialized?Promise.resolve():this._initializationPromise;if(Pe(d,this,"internal-error"),d.then(()=>{c||o(this.currentUser)}),typeof n=="function"){const f=t.addObserver(n,r,i);return()=>{c=!0,f()}}else{const f=t.addObserver(n);return()=>{c=!0,f()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return Pe(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=$D(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((t=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const i=await this._getAppCheckToken();return i&&(n["X-Firebase-AppCheck"]=i),n}async _getAppCheckToken(){var t;if(Ur(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const n=await((t=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getToken());return n!=null&&n.error&&qL(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function ds(e){return di(e)}class zE{constructor(t){this.auth=t,this.observer=null,this.addObserver=Nj(n=>this.observer=n)}get next(){return Pe(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 826 * @license 827 * Copyright 2020 Google LLC 828 * 829 * Licensed under the Apache License, Version 2.0 (the "License");
830 * you may not use this file except in compliance with the License. 831 * You may obtain a copy of the License at 832 * 833 * http://www.apache.org/licenses/LICENSE-2.0 834 * 835 * Unless required by applicable law or agreed to in writing, software 836 * distributed under the License is distributed on an "AS IS" BASIS, 837 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 838 * See the License for the specific language governing permissions and 839 * limitations under the License. 840 */let Ih={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function v3(e){Ih=e}function WD(e){return Ih.loadJS(e)}function b3(){return Ih.recaptchaEnterpriseScript}function w3(){return Ih.gapiScript}function x3(e){return`__${e}${Math.floor(Math.random()*1e6)}`}class E3{constructor(){this.enterprise=new S3}ready(t){t()}execute(t,n){return Promise.resolve("token")}render(t,n){return""}}class S3{ready(t){t()}execute(t,n){return Promise.resolve("token")}render(t,n){return""}}const T3="recaptcha-enterprise",KD="NO_RECAPTCHA";class D3{constructor(t){this.type=T3,this.auth=ds(t)}async verify(t="verify",n=!1){async function r(o){if(!n){if(o.tenantId==null&&o._agentRecaptchaConfig!=null)return o._agentRecaptchaConfig.siteKey;if(o.tenantId!=null&&o._tenantRecaptchaConfigs[o.tenantId]!==void 0)return o._tenantRecaptchaConfigs[o.tenantId].siteKey}return new Promise(async(c,d)=>{n3(o,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(f=>{if(f.recaptchaKey===void 0)d(new Error("recaptcha Enterprise site key undefined"));else{const h=new t3(f);return o.tenantId==null?o._agentRecaptchaConfig=h:o._tenantRecaptchaConfigs[o.tenantId]=h,c(h.siteKey)}}).catch(f=>{d(f)})})}function i(o,c,d){const f=window.grecaptcha;IE(f)?f.enterprise.ready(()=>{f.enterprise.execute(o,{action:t}).then(h=>{c(h)}).catch(()=>{c(KD)})}):d(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new E3().execute("siteKey",{action:"verify"}):new Promise((o,c)=>{r(this.auth).then(d=>{if(!n&&IE(window.grecaptcha))i(d,o,c);else{if(typeof window>"u"){c(new Error("RecaptchaVerifier is only supported in browser"));return}let f=b3();f.length!==0&&(f+=d),WD(f).then(()=>{i(d,o,c)}).catch(h=>{c(h)})}}).catch(d=>{c(d)})})}}async function FE(e,t,n,r=!1,i=!1){const o=new D3(e);let c;if(i)c=KD;else try{c=await o.verify(n)}catch{c=await o.verify(n,!0)}const d=Object.assign({},t);if(n==="mfaSmsEnrollment"||n==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in d){const f=d.phoneEnrollmentInfo.phoneNumber,h=d.phoneEnrollmentInfo.recaptchaToken;Object.assign(d,{phoneEnrollmentInfo:{phoneNumber:f,recaptchaToken:h,captchaResponse:c,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in d){const f=d.phoneSignInInfo.recaptchaToken;Object.assign(d,{phoneSignInInfo:{recaptchaToken:f,captchaResponse:c,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return d}return r?Object.assign(d,{captchaResp:c}):Object.assign(d,{captchaResponse:c}),Object.assign(d,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(d,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),d}async function Oy(e,t,n,r,i){var o;if(!((o=e._getRecaptchaConfig())===null||o===void 0)&&o.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const c=await FE(e,t,n,n==="getOobCode");return r(e,c)}else return r(e,t).catch(async c=>{if(c.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const d=await FE(e,t,n,n==="getOobCode");return r(e,d)}else return Promise.reject(c)})}/** 841 * @license 842 * Copyright 2020 Google LLC 843 * 844 * Licensed under the Apache License, Version 2.0 (the "License"); 845 * you may not use this file except in compliance with the License. 846 * You may obtain a copy of the License at 847 * 848 * http://www.apache.org/licenses/LICENSE-2.0 849 * 850 * Unless required by applicable law or agreed to in writing, software 851 * distributed under the License is distributed on an "AS IS" BASIS, 852 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 853 * See the License for the specific language governing permissions and 854 * limitations under the License. 855 */function _3(e,t){const n=CD(e,"auth");if(n.isInitialized()){const i=n.getImmediate(),o=n.getOptions();if(gl(o,t??{}))return i;zr(i,"already-initialized")}return n.initialize({options:t})}function C3(e,t){const n=(t==null?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Za);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t==null?void 0:t.popupRedirectResolver)}function A3(e,t,n){const r=ds(e);
855Pe(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!1,o=GD(t),{host:c,port:d}=k3(t),f=d===null?"":`:${d}`,h={url:`${o}//${c}${f}/`},m=Object.freeze({host:c,port:d,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator){Pe(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),Pe(gl(h,r.config.emulator)&&gl(m,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=h,r.emulatorConfig=m,r.settings.appVerificationDisabledForTesting=!0,Lv(c)?(yj(`${o}//${c}${f}`),wj("Auth",!0)):R3()}function GD(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function k3(e){const t=GD(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const o=i[1];return{host:o,port:YE(r.substr(o.length+1))}}else{const[o,c]=r.split(":");return{host:o,port:YE(c)}}}function YE(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function R3(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/** 856 * @license 857 * Copyright 2020 Google LLC 858 * 859 * Licensed under the Apache License, Version 2.0 (the "License"); 860 * you may not use this file except in compliance with the License. 861 * You may obtain a copy of the License at 862 * 863 * http://www.apache.org/licenses/LICENSE-2.0 864 * 865 * Unless required by applicable law or agreed to in writing, software 866 * distributed under the License is distributed on an "AS IS" BASIS, 867 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 868 * See the License for the specific language governing permissions and 869 * limitations under the License. 870 */class Yv{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return Xa("not implemented")}_getIdTokenResponse(t){return Xa("not implemented")}_linkToIdToken(t,n){return Xa("not implemented")}_getReauthenticationResolver(t){return Xa("not implemented")}}async function M3(e,t){return fi(e,"POST","/v1/accounts:signUp",t)}/** 871 * @license 872 * Copyright 2020 Google LLC 873 * 874 * Licensed under the Apache License, Version 2.0 (the "License"); 875 * you may not use this file except in compliance with the License. 876 * You may obtain a copy of the License at 877 * 878 * http://www.apache.org/licenses/LICENSE-2.0 879 * 880 * Unless required by applicable law or agreed to in writing, software 881 * distributed under the License is distributed on an "AS IS" BASIS, 882 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 883 * See the License for the specific language governing permissions and 884 * limitations under the License. 885 */async function N3(e,t){return Ou(e,"POST","/v1/accounts:signInWithPassword",us(e,t))}/** 886 * @license 887 * Copyright 2020 Google LLC 888 * 889 * Licensed under the Apache License, Version 2.0 (the "License"); 890 * you may not use this file except in compliance with the License. 891 * You may obtain a copy of the License at 892 * 893 * http://www.apache.org/licenses/LICENSE-2.0 894 * 895 * Unless required by applicable law or agreed to in writing, software 896 * distributed under the License is distributed on an "AS IS" BASIS, 897 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 898 * See the License for the specific language governing permissions and 899 * limitations under the License. 900 */async function O3(e,t){return Ou(e,"POST","/v1/accounts:signInWithEmailLink",us(e,t))}async function P3(e,t){return Ou(e,"POST","/v1/accounts:signInWithEmailLink",us(e,t))}/** 901 * @license 902 * Copyright 2020 Google LLC 903 * 904 * Licensed under the Apache License, Version 2.0 (the "License");
905 * you may not use this file except in compliance with the License. 906 * You may obtain a copy of the License at 907 * 908 * http://www.apache.org/licenses/LICENSE-2.0 909 * 910 * Unless required by applicable law or agreed to in writing, software 911 * distributed under the License is distributed on an "AS IS" BASIS, 912 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 913 * See the License for the specific language governing permissions and 914 * limitations under the License. 915 */class mu extends Yv{constructor(t,n,r,i=null){super("password",r),this._email=t,this._password=n,this._tenantId=i}static _fromEmailAndPassword(t,n){return new mu(t,n,"password")}static _fromEmailAndCode(t,n,r=null){return new mu(t,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t;if(n!=null&&n.email&&(n!=null&&n.password)){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(t){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Oy(t,n,"signInWithPassword",N3);case"emailLink":return O3(t,{email:this._email,oobCode:this._password});default:zr(t,"internal-error")}}async _linkToIdToken(t,n){switch(this.signInMethod){case"password":const r={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Oy(t,r,"signUpPassword",M3);case"emailLink":return P3(t,{idToken:n,email:this._email,oobCode:this._password});default:zr(t,"internal-error")}}_getReauthenticationResolver(t){return this._getIdTokenResponse(t)}}/** 916 * @license 917 * Copyright 2020 Google LLC 918 * 919 * Licensed under the Apache License, Version 2.0 (the "License"); 920 * you may not use this file except in compliance with the License. 921 * You may obtain a copy of the License at 922 * 923 * http://www.apache.org/licenses/LICENSE-2.0 924 * 925 * Unless required by applicable law or agreed to in writing, software 926 * distributed under the License is distributed on an "AS IS" BASIS, 927 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 928 * See the License for the specific language governing permissions and 929 * limitations under the License. 930 */async function dl(e,t){return Ou(e,"POST","/v1/accounts:signInWithIdp",us(e,t))}/** 931 * @license 932 * Copyright 2020 Google LLC 933 * 934 * Licensed under the Apache License, Version 2.0 (the "License"); 935 * you may not use this file except in compliance with the License. 936 * You may obtain a copy of the License at 937 * 938 * http://www.apache.org/licenses/LICENSE-2.0 939 * 940 * Unless required by applicable law or agreed to in writing, software 941 * distributed under the License is distributed on an "AS IS" BASIS, 942 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 943 * See the License for the specific language governing permissions and 944 * limitations under the License. 945 */const j3="http://localhost";class no extends Yv{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new no(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):zr("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
945once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:i}=n,o=Bv(n,["providerId","signInMethod"]);if(!r||!i)return null;const c=new no(r,i);return c.idToken=o.idToken||void 0,c.accessToken=o.accessToken||void 0,c.secret=o.secret,c.nonce=o.nonce,c.pendingToken=o.pendingToken||null,c}_getIdTokenResponse(t){const n=this.buildRequest();return dl(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,dl(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,dl(t,n)}buildRequest(){const t={requestUri:j3,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=Ru(n)}return t}}/** 946 * @license 947 * Copyright 2020 Google LLC 948 * 949 * Licensed under the Apache License, Version 2.0 (the "License"); 950 * you may not use this file except in compliance with the License. 951 * You may obtain a copy of the License at 952 * 953 * http://www.apache.org/licenses/LICENSE-2.0 954 * 955 * Unless required by applicable law or agreed to in writing, software 956 * distributed under the License is distributed on an "AS IS" BASIS, 957 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 958 * See the License for the specific language governing permissions and 959 * limitations under the License. 960 */function L3(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function I3(e){const t=Jc(eu(e)).link,n=t?Jc(eu(t)).deep_link_id:null,r=Jc(eu(e)).deep_link_id;return(r?Jc(eu(r)).link:null)||r||n||t||e}class qv{constructor(t){var n,r,i,o,c,d;const f=Jc(eu(t)),h=(n=f.apiKey)!==null&&n!==void 0?n:null,m=(r=f.oobCode)!==null&&r!==void 0?r:null,v=L3((i=f.mode)!==null&&i!==void 0?i:null);Pe(h&&m&&v,"argument-error"),this.apiKey=h,this.operation=v,this.code=m,this.continueUrl=(o=f.continueUrl)!==null&&o!==void 0?o:null,this.languageCode=(c=f.lang)!==null&&c!==void 0?c:null,this.tenantId=(d=f.tenantId)!==null&&d!==void 0?d:null}static parseLink(t){const n=I3(t);try{return new qv(n)}catch{return null}}}/** 961 * @license 962 * Copyright 2020 Google LLC 963 * 964 * Licensed under the Apache License, Version 2.0 (the "License"); 965 * you may not use this file except in compliance with the License. 966 * You may obtain a copy of the License at 967 * 968 * http://www.apache.org/licenses/LICENSE-2.0 969 * 970 * Unless required by applicable law or agreed to in writing, software 971 * distributed under the License is distributed on an "AS IS" BASIS, 972 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 973 * See the License for the specific language governing permissions and 974 * limitations under the License. 975 */class Ol{constructor(){this.providerId=Ol.PROVIDER_ID}static credential(t,n){return mu._fromEmailAndPassword(t,n)}static credentialWithLink(t,n){const r=qv.parseLink(n);return Pe(r,"argument-error"),mu._fromEmailAndCode(t,r.code,r.tenantId)}}Ol.PROVIDER_ID="password";Ol.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Ol.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/** 976 * @license 977 * Copyright 2020 Google LLC 978 * 979 * Licensed under the Apache License, Version 2.0 (the "License"); 980 * you may not use this file except in compliance with the License. 981 * You may obtain a copy of the License at 982 * 983 * http://www.apache.org/licenses/LICENSE-2.0 984 * 985 * Unless required by applicable law or agreed to in writing, software 986 * distributed under the License is distributed on an "AS IS" BASIS, 987 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 988 * See the License for the specific language governing permissions and 989 * limitations under the License. 990 */class $v{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/** 991 * @license 992 * Copyright 2019 Google LLC 993 * 994 * Licensed under the Apache License, Version 2.0 (the "License");
995 * you may not use this file except in compliance with the License. 996 * You may obtain a copy of the License at 997 * 998 * http://www.apache.org/licenses/LICENSE-2.0 999 * 1000 * Unless required by applicable law or agreed to in writing, software 1001 * distributed under the License is distributed on an "AS IS" BASIS, 1002 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1003 * See the License for the specific language governing permissions and 1004 * limitations under the License. 1005 */class Pu extends $v{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/** 1006 * @license 1007 * Copyright 2020 Google LLC 1008 * 1009 * Licensed under the Apache License, Version 2.0 (the "License"); 1010 * you may not use this file except in compliance with the License. 1011 * You may obtain a copy of the License at 1012 * 1013 * http://www.apache.org/licenses/LICENSE-2.0 1014 * 1015 * Unless required by applicable law or agreed to in writing, software 1016 * distributed under the License is distributed on an "AS IS" BASIS, 1017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1018 * See the License for the specific language governing permissions and 1019 * limitations under the License. 1020 */class qi extends Pu{constructor(){super("facebook.com")}static credential(t){return no._fromParams({providerId:qi.PROVIDER_ID,signInMethod:qi.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return qi.credentialFromTaggedObject(t)}static credentialFromError(t){return qi.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return qi.credential(t.oauthAccessToken)}catch{return null}}}qi.FACEBOOK_SIGN_IN_METHOD="facebook.com";qi.PROVIDER_ID="facebook.com";/** 1021 * @license 1022 * Copyright 2020 Google LLC 1023 * 1024 * Licensed under the Apache License, Version 2.0 (the "License"); 1025 * you may not use this file except in compliance with the License. 1026 * You may obtain a copy of the License at 1027 * 1028 * http://www.apache.org/licenses/LICENSE-2.0 1029 * 1030 * Unless required by applicable law or agreed to in writing, software 1031 * distributed under the License is distributed on an "AS IS" BASIS, 1032 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1033 * See the License for the specific language governing permissions and 1034 * limitations under the License. 1035 */class Qa extends Pu{constructor(){super("google.com"),this.addScope("profile")}static credential(t,n){return no._fromParams({providerId:Qa.PROVIDER_ID,signInMethod:Qa.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return Qa.credentialFromTaggedObject(t)}static credentialFromError(t){return Qa.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Qa.credential(n,r)}catch{return null}}}Qa.GOOGLE_SIGN_IN_METHOD="google.com";Qa.PROVIDER_ID="google.com";/** 1036 * @license 1037 * Copyright 2020 Google LLC 1038 * 1039 * Licensed under the Apache License, Version 2.0 (the "License"); 1040 * you may not use this file except in compliance with the License. 1041 * You may obtain a copy of the License at 1042 * 1043 * http://www.apache.org/licenses/LICENSE-2.0 1044 * 1045 * Unless required by applicable law or agreed to in writing, software 1046 * distributed under the License is distributed on an "AS IS" BASIS, 1047 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1048 * See the License for the specific language governing permissions and 1049 * limitations under the License. 1050 */class $i extends Pu{constructor(){super("github.com")}static credential(t){return no._fromParams({providerId:$i.PROVIDER_ID,signInMethod:$i.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return $i.credentialFromTaggedObject(t)}static credentialFromError(t){return $i.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return $i.credential(t.oauthAccessToken)}catch{return null}}}$i.GITHUB_SIGN_IN_METHOD="github.com";$i.PROVIDER_ID="github.com";/** 1051 * @license 1052 * Copyright 2020 Google LLC 1053 * 1054 * Licensed under the Apache License, Version 2.0 (the "License");
1055 * you may not use this file except in compliance with the License. 1056 * You may obtain a copy of the License at 1057 * 1058 * http://www.apache.org/licenses/LICENSE-2.0 1059 * 1060 * Unless required by applicable law or agreed to in writing, software 1061 * distributed under the License is distributed on an "AS IS" BASIS, 1062 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1063 * See the License for the specific language governing permissions and 1064 * limitations under the License. 1065 */class Wi extends Pu{constructor(){super("twitter.com")}static credential(t,n){return no._fromParams({providerId:Wi.PROVIDER_ID,signInMethod:Wi.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return Wi.credentialFromTaggedObject(t)}static credentialFromError(t){return Wi.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Wi.credential(n,r)}catch{return null}}}Wi.TWITTER_SIGN_IN_METHOD="twitter.com";Wi.PROVIDER_ID="twitter.com";/** 1066 * @license 1067 * Copyright 2020 Google LLC 1068 * 1069 * Licensed under the Apache License, Version 2.0 (the "License"); 1070 * you may not use this file except in compliance with the License. 1071 * You may obtain a copy of the License at 1072 * 1073 * http://www.apache.org/licenses/LICENSE-2.0 1074 * 1075 * Unless required by applicable law or agreed to in writing, software 1076 * distributed under the License is distributed on an "AS IS" BASIS, 1077 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1078 * See the License for the specific language governing permissions and 1079 * limitations under the License. 1080 */async function B3(e,t){return Ou(e,"POST","/v1/accounts:signUp",us(e,t))}/** 1081 * @license 1082 * Copyright 2020 Google LLC 1083 * 1084 * Licensed under the Apache License, Version 2.0 (the "License"); 1085 * you may not use this file except in compliance with the License. 1086 * You may obtain a copy of the License at 1087 * 1088 * http://www.apache.org/licenses/LICENSE-2.0 1089 * 1090 * Unless required by applicable law or agreed to in writing, software 1091 * distributed under the License is distributed on an "AS IS" BASIS, 1092 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1093 * See the License for the specific language governing permissions and 1094 * limitations under the License. 1095 */class ro{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,i=!1){const o=await aa._fromIdTokenResponse(t,r,i),c=qE(r);return new ro({user:o,providerId:c,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const i=qE(r);return new ro({user:t,providerId:i,_tokenResponse:r,operationType:n})}}function qE(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/** 1096 * @license 1097 * Copyright 2020 Google LLC 1098 * 1099 * Licensed under the Apache License, Version 2.0 (the "License"); 1100 * you may not use this file except in compliance with the License. 1101 * You may obtain a copy of the License at 1102 * 1103 * http://www.apache.org/licenses/LICENSE-2.0 1104 * 1105 * Unless required by applicable law or agreed to in writing, software 1106 * distributed under the License is distributed on an "AS IS" BASIS, 1107 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1108 * See the License for the specific language governing permissions and 1109 * limitations under the License. 1110 */class Jf extends cs{constructor(t,n,r,i){var o;super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,Jf.prototype),this.customData={appName:t.name,tenantId:(o=t.tenantId)!==null&&o!==void 0?o:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,i){return new Jf(t,n,r,i)}}function QD(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(o=>{throw o.code==="auth/multi-factor-auth-required"?Jf._fromErrorAndOperation(e,o,t,r):o})}async function U3(e,t,n=!1){const r=await vl(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return ro._forOperation(e,"link",r)}/** 1111 * @license 1112 * Copyright 2019 Google LLC 1113 * 1114 * Licensed under the Apache License, Version 2.0 (the "License");
1115 * you may not use this file except in compliance with the License. 1116 * You may obtain a copy of the License at 1117 * 1118 * http://www.apache.org/licenses/LICENSE-2.0 1119 * 1120 * Unless required by applicable law or agreed to in writing, software 1121 * distributed under the License is distributed on an "AS IS" BASIS, 1122 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1123 * See the License for the specific language governing permissions and 1124 * limitations under the License. 1125 */async function H3(e,t,n=!1){const{auth:r}=e;if(Ur(r.app))return Promise.reject(Ja(r));const i="reauthenticate";try{const o=await vl(e,QD(r,i,t,e),n);Pe(o.idToken,r,"internal-error");const c=zv(o.idToken);Pe(c,r,"internal-error");const{sub:d}=c;return Pe(e.uid===d,r,"user-mismatch"),ro._forOperation(e,i,o)}catch(o){throw(o==null?void 0:o.code)==="auth/user-not-found"&&zr(r,"user-mismatch"),o}}/** 1126 * @license 1127 * Copyright 2020 Google LLC 1128 * 1129 * Licensed under the Apache License, Version 2.0 (the "License"); 1130 * you may not use this file except in compliance with the License. 1131 * You may obtain a copy of the License at 1132 * 1133 * http://www.apache.org/licenses/LICENSE-2.0 1134 * 1135 * Unless required by applicable law or agreed to in writing, software 1136 * distributed under the License is distributed on an "AS IS" BASIS, 1137 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1138 * See the License for the specific language governing permissions and 1139 * limitations under the License. 1140 */async function XD(e,t,n=!1){if(Ur(e.app))return Promise.reject(Ja(e));const r="signIn",i=await QD(e,r,t),o=await ro._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(o.user),o}async function V3(e,t){return XD(ds(e),t)}/** 1141 * @license 1142 * Copyright 2020 Google LLC 1143 * 1144 * Licensed under the Apache License, Version 2.0 (the "License"); 1145 * you may not use this file except in compliance with the License. 1146 * You may obtain a copy of the License at 1147 * 1148 * http://www.apache.org/licenses/LICENSE-2.0 1149 * 1150 * Unless required by applicable law or agreed to in writing, software 1151 * distributed under the License is distributed on an "AS IS" BASIS, 1152 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1153 * See the License for the specific language governing permissions and 1154 * limitations under the License. 1155 */async function ZD(e){const t=ds(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function z3(e,t,n){if(Ur(e.app))return Promise.reject(Ja(e));const r=ds(e),c=await Oy(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",B3).catch(f=>{throw f.code==="auth/password-does-not-meet-requirements"&&ZD(e),f}),d=await ro._fromIdTokenResponse(r,"signIn",c);return await r._updateCurrentUser(d.user),d}function F3(e,t,n){return Ur(e.app)?Promise.reject(Ja(e)):V3(di(e),Ol.credential(t,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&ZD(e),r})}/** 1156 * @license 1157 * Copyright 2020 Google LLC 1158 * 1159 * Licensed under the Apache License, Version 2.0 (the "License"); 1160 * you may not use this file except in compliance with the License. 1161 * You may obtain a copy of the License at 1162 * 1163 * http://www.apache.org/licenses/LICENSE-2.0 1164 * 1165 * Unless required by applicable law or agreed to in writing, software 1166 * distributed under the License is distributed on an "AS IS" BASIS, 1167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1168 * See the License for the specific language governing permissions and 1169 * limitations under the License. 1170 */async function Y3(e,t){return fi(e,"POST","/v1/accounts:update",t)}/** 1171 * @license 1172 * Copyright 2020 Google LLC 1173 * 1174 * Licensed under the Apache License, Version 2.0 (the "License"); 1175 * you may not use this file except in compliance with the License. 1176 * You may obtain a copy of the License at 1177 * 1178 * http://www.apache.org/licenses/LICENSE-2.0 1179 * 1180 * Unless required by applicable law or agreed to in writing, software 1181 * distributed under the License is distributed on an "AS IS" BASIS, 1182 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1183 * See the License for the specific language governing permissions and 1184 * limitations under the License. 1185 */async function q3(e,{displayName:t,photoURL:n}){if(t===void 0&&n===void 0)return;const r=di(e),o={idToken:await r.getIdToken(),displayName:t,photoUrl:n,returnSecureToken:!0},c=await vl(r,Y3(r.auth,o));r.displayName=c.displayName||null,r.photoURL=c.photoUrl||null;const d=r.providerData.find(({providerId:f})=>f==="password");d&&(d.displayName=r.displayName,d.photoURL=r.photoURL),await r._updateTokensIfNecessary(c)}function $3(e,t,n,r){return di(e).onIdTokenChanged(t,n,r)}function W3(e,t,n){return di(e).beforeAuthStateChanged(t,n)}function K3(e,t,n,r){return di(e).onAuthStateChanged(t,n,r)}const eh="__sak";/** 1186 * @license 1187 * Copyright 2019 Google LLC 1188 * 1189 * Licensed under the Apache License, Version 2.0 (the "License");
1190 * you may not use this file except in compliance with the License. 1191 * You may obtain a copy of the License at 1192 * 1193 * http://www.apache.org/licenses/LICENSE-2.0 1194 * 1195 * Unless required by applicable law or agreed to in writing, software 1196 * distributed under the License is distributed on an "AS IS" BASIS, 1197 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1198 * See the License for the specific language governing permissions and 1199 * limitations under the License. 1200 */class JD{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(eh,"1"),this.storage.removeItem(eh),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 1201 * @license 1202 * Copyright 2020 Google LLC 1203 * 1204 * Licensed under the Apache License, Version 2.0 (the "License"); 1205 * you may not use this file except in compliance with the License. 1206 * You may obtain a copy of the License at 1207 * 1208 * http://www.apache.org/licenses/LICENSE-2.0 1209 * 1210 * Unless required by applicable law or agreed to in writing, software 1211 * distributed under the License is distributed on an "AS IS" BASIS, 1212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1213 * See the License for the specific language governing permissions and 1214 * limitations under the License. 1215 */const G3=1e3,Q3=10;class e_ extends JD{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=qD(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&t(n,i,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((c,d,f)=>{this.notifyListeners(c,f)});return}const r=t.key;n?this.detachListener():this.stopPolling();const i=()=>{const c=this.storage.getItem(r);!n&&this.localCache[r]===c||this.notifyListeners(r,c)},o=this.storage.getItem(r);f3()&&o!==t.newValue&&t.newValue!==t.oldValue?setTimeout(i,Q3):i()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},G3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}e_.type="LOCAL";const X3=e_;/** 1216 * @license 1217 * Copyright 2020 Google LLC 1218 * 1219 * Licensed under the Apache License, Version 2.0 (the "License"); 1220 * you may not use this file except in compliance with the License. 1221 * You may obtain a copy of the License at 1222 * 1223 * http://www.apache.org/licenses/LICENSE-2.0 1224 * 1225 * Unless required by applicable law or agreed to in writing, software 1226 * distributed under the License is distributed on an "AS IS" BASIS, 1227 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1228 * See the License for the specific language governing permissions and 1229 * limitations under the License. 1230 */class t_ extends JD{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}t_.type="SESSION";const n_=t_;/** 1231 * @license 1232 * Copyright 2019 Google LLC 1233 * 1234 * Licensed under the Apache License, Version 2.0 (the "License");
1235 * you may not use this file except in compliance with the License. 1236 * You may obtain a copy of the License at 1237 * 1238 * http://www.apache.org/licenses/LICENSE-2.0 1239 * 1240 * Unless required by applicable law or agreed to in writing, software 1241 * distributed under the License is distributed on an "AS IS" BASIS, 1242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1243 * See the License for the specific language governing permissions and 1244 * limitations under the License. 1245 */function Z3(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}/** 1246 * @license 1247 * Copyright 2019 Google LLC 1248 * 1249 * Licensed under the Apache License, Version 2.0 (the "License"); 1250 * you may not use this file except in compliance with the License. 1251 * You may obtain a copy of the License at 1252 * 1253 * http://www.apache.org/licenses/LICENSE-2.0 1254 * 1255 * Unless required by applicable law or agreed to in writing, software 1256 * distributed under the License is distributed on an "AS IS" BASIS, 1257 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1258 * See the License for the specific language governing permissions and 1259 * limitations under the License. 1260 */class Bh{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(i=>i.isListeningto(t));if(n)return n;const r=new Bh(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:i,data:o}=n.data,c=this.handlersMap[i];if(!(c!=null&&c.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const d=Array.from(c).map(async h=>h(n.origin,o)),f=await Z3(d);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:f})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Bh.receivers=[];/** 1261 * @license 1262 * Copyright 2020 Google LLC 1263 * 1264 * Licensed under the Apache License, Version 2.0 (the "License"); 1265 * you may not use this file except in compliance with the License. 1266 * You may obtain a copy of the License at 1267 * 1268 * http://www.apache.org/licenses/LICENSE-2.0 1269 * 1270 * Unless required by applicable law or agreed to in writing, software 1271 * distributed under the License is distributed on an "AS IS" BASIS, 1272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1273 * See the License for the specific language governing permissions and 1274 * limitations under the License. 1275 */function Wv(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(Math.random()*10);return e+n}/** 1276 * @license 1277 * Copyright 2019 Google LLC 1278 * 1279 * Licensed under the Apache License, Version 2.0 (the "License"); 1280 * you may not use this file except in compliance with the License. 1281 * You may obtain a copy of the License at 1282 * 1283 * http://www.apache.org/licenses/LICENSE-2.0 1284 * 1285 * Unless required by applicable law or agreed to in writing, software 1286 * distributed under the License is distributed on an "AS IS" BASIS, 1287 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1288 * See the License for the specific language governing permissions and 1289 * limitations under the License. 1290 */class J3{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,n,r=50){const i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let o,c;return new Promise((d,f)=>{const h=Wv("",20);i.port1.start();const m=setTimeout(()=>{f(new Error("unsupported_event"))},r);c={messageChannel:i,onMessage(v){const b=v;if(b.data.eventId===h)switch(b.data.status){case"ack":clearTimeout(m),o=setTimeout(()=>{f(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),d(b.data.response);break;default:clearTimeout(m),clearTimeout(o),f(new Error("invalid_response"));break}}},this.handlers.add(c),i.port1.addEventListener("message",c.onMessage),this.target.postMessage({eventType:t,eventId:h,data:n},[i.port2])}).finally(()=>{c&&this.removeMessageHandler(c)})}}/** 1291 * @license 1292 * Copyright 2020 Google LLC 1293 * 1294 * Licensed under the Apache License, Version 2.0 (the "License");
1295 * you may not use this file except in compliance with the License. 1296 * You may obtain a copy of the License at 1297 * 1298 * http://www.apache.org/licenses/LICENSE-2.0 1299 * 1300 * Unless required by applicable law or agreed to in writing, software 1301 * distributed under the License is distributed on an "AS IS" BASIS, 1302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1303 * See the License for the specific language governing permissions and 1304 * limitations under the License. 1305 */function Da(){return window}function e4(e){Da().location.href=e}/** 1306 * @license 1307 * Copyright 2020 Google LLC. 1308 * 1309 * Licensed under the Apache License, Version 2.0 (the "License"); 1310 * you may not use this file except in compliance with the License. 1311 * You may obtain a copy of the License at 1312 * 1313 * http://www.apache.org/licenses/LICENSE-2.0 1314 * 1315 * Unless required by applicable law or agreed to in writing, software 1316 * distributed under the License is distributed on an "AS IS" BASIS, 1317 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1318 * See the License for the specific language governing permissions and 1319 * limitations under the License. 1320 */function r_(){return typeof Da().WorkerGlobalScope<"u"&&typeof Da().importScripts=="function"}async function t4(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function n4(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function r4(){return r_()?self:null}/** 1321 * @license 1322 * Copyright 2019 Google LLC 1323 * 1324 * Licensed under the Apache License, Version 2.0 (the "License"); 1325 * you may not use this file except in compliance with the License. 1326 * You may obtain a copy of the License at 1327 * 1328 * http://www.apache.org/licenses/LICENSE-2.0 1329 * 1330 * Unless required by applicable law or agreed to in writing, software 1331 * distributed under the License is distributed on an "AS IS" BASIS, 1332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1333 * See the License for the specific language governing permissions and 1334 * limitations under the License. 1335 */const a_="firebaseLocalStorageDb",a4=1,th="firebaseLocalStorage",i_="fbase_key";class ju{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function Uh(e,t){return e.transaction([th],t?"readwrite":"readonly").objectStore(th)}function i4(){const e=indexedDB.deleteDatabase(a_);return new ju(e).toPromise()}function Py(){const e=indexedDB.open(a_,a4);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(th,{keyPath:i_})}catch(i){n(i)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(th)?t(r):(r.close(),await i4(),t(await Py()))})})}async function $E(e,t,n){const r=Uh(e,!0).put({[i_]:t,value:n});return new ju(r).toPromise()}async function s4(e,t){const n=Uh(e,!1).get(t),r=await new ju(n).toPromise();return r===void 0?null:r.value}function WE(e,t){const n=Uh(e,!0).delete(t);return new ju(n).toPromise()}const o4=800,l4=3;class s_{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Py(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>l4)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return r_()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Bh._getInstance(r4()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
1335)),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){var t,n;if(this.activeServiceWorker=await t4(),!this.activeServiceWorker)return;this.sender=new J3(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((t=r[0])===null||t===void 0)&&t.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||n4()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await Py();return await $E(t,eh,"1"),await WE(t,eh),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>$E(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>s4(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>WE(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(i=>{const o=Uh(i,!1).getAll();return new ju(o).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:i,value:o}of t)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(o)&&(this.notifyListeners(i,o),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),o4)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}s_.type="LOCAL";const c4=s_;new Nu(3e4,6e4);/** 1336 * @license 1337 * Copyright 2021 Google LLC 1338 * 1339 * Licensed under the Apache License, Version 2.0 (the "License"); 1340 * you may not use this file except in compliance with the License. 1341 * You may obtain a copy of the License at 1342 * 1343 * http://www.apache.org/licenses/LICENSE-2.0 1344 * 1345 * Unless required by applicable law or agreed to in writing, software 1346 * distributed under the License is distributed on an "AS IS" BASIS, 1347 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1348 * See the License for the specific language governing permissions and 1349 * limitations under the License. 1350 */function o_(e,t){return t?Za(t):(Pe(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/** 1351 * @license 1352 * Copyright 2019 Google LLC 1353 * 1354 * Licensed under the Apache License, Version 2.0 (the "License"); 1355 * you may not use this file except in compliance with the License. 1356 * You may obtain a copy of the License at 1357 * 1358 * http://www.apache.org/licenses/LICENSE-2.0 1359 * 1360 * Unless required by applicable law or agreed to in writing, software 1361 * distributed under the License is distributed on an "AS IS" BASIS, 1362 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1363 * See the License for the specific language governing permissions and 1364 * limitations under the License. 1365 */class Kv extends Yv{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return dl(t,this._buildIdpRequest())}_linkToIdToken(t,n){return dl(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return dl(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}
1365function u4(e){return XD(e.auth,new Kv(e),e.bypassAuthState)}function d4(e){const{auth:t,user:n}=e;return Pe(n,t,"internal-error"),H3(n,new Kv(e),e.bypassAuthState)}async function f4(e){const{auth:t,user:n}=e;return Pe(n,t,"internal-error"),U3(n,new Kv(e),e.bypassAuthState)}/** 1366 * @license 1367 * Copyright 2020 Google LLC 1368 * 1369 * Licensed under the Apache License, Version 2.0 (the "License"); 1370 * you may not use this file except in compliance with the License. 1371 * You may obtain a copy of the License at 1372 * 1373 * http://www.apache.org/licenses/LICENSE-2.0 1374 * 1375 * Unless required by applicable law or agreed to in writing, software 1376 * distributed under the License is distributed on an "AS IS" BASIS, 1377 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1378 * See the License for the specific language governing permissions and 1379 * limitations under the License. 1380 */class l_{constructor(t,n,r,i,o=!1){this.auth=t,this.resolver=r,this.user=i,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:i,tenantId:o,error:c,type:d}=t;if(c){this.reject(c);return}const f={auth:this.auth,requestUri:n,sessionId:r,tenantId:o||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(d)(f))}catch(h){this.reject(h)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return u4;case"linkViaPopup":case"linkViaRedirect":return f4;case"reauthViaPopup":case"reauthViaRedirect":return d4;default:zr(this.auth,"internal-error")}}resolve(t){oi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){oi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 1381 * @license 1382 * Copyright 2020 Google LLC 1383 * 1384 * Licensed under the Apache License, Version 2.0 (the "License"); 1385 * you may not use this file except in compliance with the License. 1386 * You may obtain a copy of the License at 1387 * 1388 * http://www.apache.org/licenses/LICENSE-2.0 1389 * 1390 * Unless required by applicable law or agreed to in writing, software 1391 * distributed under the License is distributed on an "AS IS" BASIS, 1392 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1393 * See the License for the specific language governing permissions and 1394 * limitations under the License. 1395 */const h4=new Nu(2e3,1e4);async function p4(e,t,n){if(Ur(e.app))return Promise.reject(ia(e,"operation-not-supported-in-this-environment"));const r=ds(e);$L(e,t,$v);const i=o_(r,n);return new zs(r,"signInViaPopup",t,i).executeNotNull()}class zs extends l_{constructor(t,n,r,i,o){super(t,n,i,o),this.provider=r,this.authWindow=null,this.pollId=null,zs.currentPopupAction&&zs.currentPopupAction.cancel(),zs.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return Pe(t,this.auth,"internal-error"),t}async onExecution(){oi(this.filter.length===1,"Popup operations only handle one event");const t=Wv();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(ia(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(ia(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,zs.currentPopupAction=null}pollUserCancellation(){const t=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(ia(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,h4.get())};t()}}zs.currentPopupAction=null;/** 1396 * @license 1397 * Copyright 2020 Google LLC 1398 * 1399 * Licensed under the Apache License, Version 2.0 (the "License");
1400 * you may not use this file except in compliance with the License. 1401 * You may obtain a copy of the License at 1402 * 1403 * http://www.apache.org/licenses/LICENSE-2.0 1404 * 1405 * Unless required by applicable law or agreed to in writing, software 1406 * distributed under the License is distributed on an "AS IS" BASIS, 1407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1408 * See the License for the specific language governing permissions and 1409 * limitations under the License. 1410 */const m4="pendingRedirect",Rf=new Map;class g4 extends l_{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=Rf.get(this.auth._key());if(!t){try{const r=await y4(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}Rf.set(this.auth._key(),t)}return this.bypassAuthState||Rf.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function y4(e,t){const n=w4(t),r=b4(e);if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}function v4(e,t){Rf.set(e._key(),t)}function b4(e){return Za(e._redirectPersistence)}function w4(e){return kf(m4,e.config.apiKey,e.name)}async function x4(e,t,n=!1){if(Ur(e.app))return Promise.reject(Ja(e));const r=ds(e),i=o_(r,t),c=await new g4(r,i,n).execute();return c&&!n&&(delete c.user._redirectEventId,await r._persistUserIfCurrent(c.user),await r._setRedirectUser(null,t)),c}/** 1411 * @license 1412 * Copyright 2020 Google LLC 1413 * 1414 * Licensed under the Apache License, Version 2.0 (the "License"); 1415 * you may not use this file except in compliance with the License. 1416 * You may obtain a copy of the License at 1417 * 1418 * http://www.apache.org/licenses/LICENSE-2.0 1419 * 1420 * Unless required by applicable law or agreed to in writing, software 1421 * distributed under the License is distributed on an "AS IS" BASIS, 1422 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1423 * See the License for the specific language governing permissions and 1424 * limitations under the License. 1425 */const E4=10*60*1e3;class S4{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!T4(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){var r;if(t.error&&!c_(t)){const i=((r=t.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(ia(this.auth,i))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=E4&&this.cachedEventUids.clear(),this.cachedEventUids.has(KE(t))}saveEventToCache(t){this.cachedEventUids.add(KE(t)),this.lastProcessedEventTime=Date.now()}}function KE(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function c_({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function T4(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return c_(e);default:return!1}}/** 1426 * @license 1427 * Copyright 2020 Google LLC 1428 * 1429 * Licensed under the Apache License, Version 2.0 (the "License");
1430 * you may not use this file except in compliance with the License. 1431 * You may obtain a copy of the License at 1432 * 1433 * http://www.apache.org/licenses/LICENSE-2.0 1434 * 1435 * Unless required by applicable law or agreed to in writing, software 1436 * distributed under the License is distributed on an "AS IS" BASIS, 1437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1438 * See the License for the specific language governing permissions and 1439 * limitations under the License. 1440 */async function D4(e,t={}){return fi(e,"GET","/v1/projects",t)}/** 1441 * @license 1442 * Copyright 2020 Google LLC 1443 * 1444 * Licensed under the Apache License, Version 2.0 (the "License"); 1445 * you may not use this file except in compliance with the License. 1446 * You may obtain a copy of the License at 1447 * 1448 * http://www.apache.org/licenses/LICENSE-2.0 1449 * 1450 * Unless required by applicable law or agreed to in writing, software 1451 * distributed under the License is distributed on an "AS IS" BASIS, 1452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1453 * See the License for the specific language governing permissions and 1454 * limitations under the License. 1455 */const _4=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,C4=/^https?/;async function A4(e){if(e.config.emulator)return;const{authorizedDomains:t}=await D4(e);for(const n of t)try{if(k4(n))return}catch{}zr(e,"unauthorized-domain")}function k4(e){const t=My(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const c=new URL(e);return c.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&c.hostname===r}if(!C4.test(n))return!1;if(_4.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}/** 1456 * @license 1457 * Copyright 2020 Google LLC. 1458 * 1459 * Licensed under the Apache License, Version 2.0 (the "License"); 1460 * you may not use this file except in compliance with the License. 1461 * You may obtain a copy of the License at 1462 * 1463 * http://www.apache.org/licenses/LICENSE-2.0 1464 * 1465 * Unless required by applicable law or agreed to in writing, software 1466 * distributed under the License is distributed on an "AS IS" BASIS, 1467 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1468 * See the License for the specific language governing permissions and 1469 * limitations under the License. 1470 */const R4=new Nu(3e4,6e4);function GE(){const e=Da().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}}function M4(e){return new Promise((t,n)=>{var r,i,o;function c(){GE(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{GE(),n(ia(e,"network-request-failed"))},timeout:R4.get()})}if(!((i=(r=Da().gapi)===null||r===void 0?void 0:r.iframes)===null||i===void 0)&&i.Iframe)t(gapi.iframes.getContext());else if(!((o=Da().gapi)===null||o===void 0)&&o.load)c();else{const d=x3("iframefcb");return Da()[d]=()=>{gapi.load?c():n(ia(e,"network-request-failed"))},WD(`${w3()}?onload=${d}`).catch(f=>n(f))}}).catch(t=>{throw Mf=null,t})}let Mf=null;function N4(e){return Mf=Mf||M4(e),Mf}/** 1471 * @license 1472 * Copyright 2020 Google LLC. 1473 * 1474 * Licensed under the Apache License, Version 2.0 (the "License"); 1475 * you may not use this file except in compliance with the License. 1476 * You may obtain a copy of the License at 1477 * 1478 * http://www.apache.org/licenses/LICENSE-2.0 1479 * 1480 * Unless required by applicable law or agreed to in writing, software 1481 * distributed under the License is distributed on an "AS IS" BASIS, 1482 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1483 * See the License for the specific language governing permissions and 1484 * limitations under the License. 1485 */const O4=new Nu(5e3,15e3),P4="__/auth/iframe",j4="emulator/auth/iframe",L4={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},I4=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function B4(e){const t=e.config;Pe(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?Vv(t,j4):`https://${e.config.authDomain}/${P4}
1485`,r={apiKey:t.apiKey,appName:e.name,v:Mu},i=I4.get(e.config.apiHost);i&&(r.eid=i);const o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),`${n}?${Ru(r).slice(1)}`}async function U4(e){const t=await N4(e),n=Da().gapi;return Pe(n,e,"internal-error"),t.open({where:document.body,url:B4(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:L4,dontclear:!0},r=>new Promise(async(i,o)=>{await r.restyle({setHideOnLeave:!1});const c=ia(e,"network-request-failed"),d=Da().setTimeout(()=>{o(c)},O4.get());function f(){Da().clearTimeout(d),i(r)}r.ping(f).then(f,()=>{o(c)})}))}/** 1486 * @license 1487 * Copyright 2020 Google LLC. 1488 * 1489 * Licensed under the Apache License, Version 2.0 (the "License"); 1490 * you may not use this file except in compliance with the License. 1491 * You may obtain a copy of the License at 1492 * 1493 * http://www.apache.org/licenses/LICENSE-2.0 1494 * 1495 * Unless required by applicable law or agreed to in writing, software 1496 * distributed under the License is distributed on an "AS IS" BASIS, 1497 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1498 * See the License for the specific language governing permissions and 1499 * limitations under the License. 1500 */const H4={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},V4=500,z4=600,F4="_blank",Y4="http://localhost";class QE{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function q4(e,t,n,r=V4,i=z4){const o=Math.max((window.screen.availHeight-i)/2,0).toString(),c=Math.max((window.screen.availWidth-r)/2,0).toString();let d="";const f=Object.assign(Object.assign({},H4),{width:r.toString(),height:i.toString(),top:o,left:c}),h=Un().toLowerCase();n&&(d=HD(h)?F4:n),BD(h)&&(t=t||Y4,f.scrollbars="yes");const m=Object.entries(f).reduce((b,[w,x])=>`${b}${w}=${x},`,"");if(d3(h)&&d!=="_self")return $4(t||"",d),new QE(null);const v=window.open(t||"",d,m);Pe(v,e,"popup-blocked");try{v.focus()}catch{}return new QE(v)}function $4(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** 1501 * @license 1502 * Copyright 2021 Google LLC 1503 * 1504 * Licensed under the Apache License, Version 2.0 (the "License"); 1505 * you may not use this file except in compliance with the License. 1506 * You may obtain a copy of the License at 1507 * 1508 * http://www.apache.org/licenses/LICENSE-2.0 1509 * 1510 * Unless required by applicable law or agreed to in writing, software 1511 * distributed under the License is distributed on an "AS IS" BASIS, 1512 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1513 * See the License for the specific language governing permissions and 1514 * limitations under the License. 1515 */const W4="__/auth/handler",K4="emulator/auth/handler",G4=encodeURIComponent("fac");async function XE(e,t,n,r,i,o){Pe(e.config.authDomain,e,"auth-domain-config-required"),Pe(e.config.apiKey,e,"invalid-api-key");const c={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Mu,eventId:i};if(t instanceof $v){t.setDefaultLanguage(e.languageCode),c.providerId=t.providerId||"",Mj(t.getCustomParameters())||(c.customParameters=JSON.stringify(t.getCustomParameters()));for(const[m,v]of Object.entries({}))c[m]=v}if(t instanceof Pu){const m=t.getScopes().filter(v=>v!=="");m.length>0&&(c.scopes=m.join(","))}e.tenantId&&(c.tid=e.tenantId);const d=c;for(const m of Object.keys(d))d[m]===void 0&&delete d[m];const f=await e._getAppCheckToken(),h=f?`#${G4}=${encodeURIComponent(f)}`:"";return`${Q4(e)}?${Ru(d).slice(1)}${h}`}function Q4({config:e}){return e.emulator?Vv(e,K4):`https://${e.authDomain}/${W4}`}/** 1516 * @license 1517 * Copyright 2020 Google LLC 1518 * 1519 * Licensed under the Apache License, Version 2.0 (the "License"); 1520 * you may not use this file except in compliance with the License. 1521 * You may obtain a copy of the License at 1522 * 1523 * http://www.apache.org/licenses/LICENSE-2.0 1524 * 1525 * Unless required by applicable law or agreed to in writing, software 1526 * distributed under the License is distributed on an "AS IS" BASIS, 1527 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1528 * See the License for the specific language governing permissions and 1529 * limitations under the License. 1530 */const Hg="webStorageSupport";class X4{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=n_,this._completeRedirectFn=x4,this._overrideRedirectResult=v4}async _openPopup(t,n,r,i){var o;oi((o=this.eventManagers[t._key()])===null||o===void 0?void 0:o.manager,"_initialize() not called before _openPopup()");const c=await XE(t,n,r,My(),i);return q4(t,c,Wv())}async _openRedirect(t,n,r,i){await this._originValidation(t);const o=await XE(t,n,r,My(),i);return e4(o),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:i,promise:o}=this.eventManagers[n];return i?Promise.resolve(i):(oi(o,"If manager is not set, promise should be"),o)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await U4(t),r=new S4(t);return n.register("authEvent",i=>
1530(Pe(i==null?void 0:i.authEvent,t,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(Hg,{type:Hg},i=>{var o;const c=(o=i==null?void 0:i[0])===null||o===void 0?void 0:o[Hg];c!==void 0&&n(!!c),zr(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=A4(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return qD()||UD()||Fv()}}const Z4=X4;var ZE="@firebase/auth",JE="1.10.6";/** 1531 * @license 1532 * Copyright 2020 Google LLC 1533 * 1534 * Licensed under the Apache License, Version 2.0 (the "License"); 1535 * you may not use this file except in compliance with the License. 1536 * You may obtain a copy of the License at 1537 * 1538 * http://www.apache.org/licenses/LICENSE-2.0 1539 * 1540 * Unless required by applicable law or agreed to in writing, software 1541 * distributed under the License is distributed on an "AS IS" BASIS, 1542 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1543 * See the License for the specific language governing permissions and 1544 * limitations under the License. 1545 */class J4{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)===null||t===void 0?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Pe(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 1546 * @license 1547 * Copyright 2020 Google LLC 1548 * 1549 * Licensed under the Apache License, Version 2.0 (the "License"); 1550 * you may not use this file except in compliance with the License. 1551 * You may obtain a copy of the License at 1552 * 1553 * http://www.apache.org/licenses/LICENSE-2.0 1554 * 1555 * Unless required by applicable law or agreed to in writing, software 1556 * distributed under the License is distributed on an "AS IS" BASIS, 1557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1558 * See the License for the specific language governing permissions and 1559 * limitations under the License. 1560 */function eI(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function tI(e){hu(new yl("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),i=t.getProvider("heartbeat"),o=t.getProvider("app-check-internal"),{apiKey:c,authDomain:d}=r.options;Pe(c&&!c.includes(":"),"invalid-api-key",{appName:r.name});const f={apiKey:c,authDomain:d,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:$D(e)},h=new y3(r,i,o,f);return C3(h,n),h},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),hu(new yl("auth-internal",t=>{const n=ds(t.getProvider("auth").getImmediate());return(r=>new J4(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),ll(ZE,JE,eI(e)),ll(ZE,JE,"esm2017")}/** 1561 * @license 1562 * Copyright 2021 Google LLC 1563 * 1564 * Licensed under the Apache License, Version 2.0 (the "License"); 1565 * you may not use this file except in compliance with the License. 1566 * You may obtain a copy of the License at 1567 * 1568 * http://www.apache.org/licenses/LICENSE-2.0 1569 * 1570 * Unless required by applicable law or agreed to in writing, softw
1570are 1571 * distributed under the License is distributed on an "AS IS" BASIS, 1572 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1573 * See the License for the specific language governing permissions and 1574 * limitations under the License. 1575 */const nI=5*60,rI=SD("authIdTokenMaxAge")||nI;let eS=null;const aI=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>rI)return;const i=n==null?void 0:n.token;eS!==i&&(eS=i,await fetch(e,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function iI(e=OL()){const t=CD(e,"auth");if(t.isInitialized())return t.getImmediate();const n=_3(e,{popupRedirectResolver:Z4,persistence:[c4,X3,n_]}),r=SD("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const o=new URL(r,location.origin);if(location.origin===o.origin){const c=aI(o.toString());W3(n,c,()=>c(n.currentUser)),$3(n,d=>c(d))}}const i=mj("auth");return i&&A3(n,`http://${i}`),n}function sI(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}v3({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=i=>{const o=ia("internal-error");o.customData=i,n(o)},r.type="text/javascript",r.charset="UTF-8",sI().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});tI("Browser");const u_=S.createContext(null),hi=()=>{const e=S.use(u_);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};var oI="firebase",lI="11.8.1";/** 1576 * @license 1577 * Copyright 2020 Google LLC 1578 * 1579 * Licensed under the Apache License, Version 2.0 (the "License"); 1580 * you may not use this file except in compliance with the License. 1581 * You may obtain a copy of the License at 1582 * 1583 * http://www.apache.org/licenses/LICENSE-2.0 1584 * 1585 * Unless required by applicable law or agreed to in writing, software 1586 * distributed under the License is distributed on an "AS IS" BASIS, 1587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1588 * See the License for the specific language governing permissions and 1589 * limitations under the License. 1590 */ll(oI,lI,"app");const cI={apiKey:"AIzaSyBD5ZX6ryMUHFyxsmkRgIzMplArNCSpFbQ",authDomain:"uddyog-18cee.firebaseapp.com",projectId:"uddyog-18cee",storageBucket:"uddyog-18cee.firebasestorage.app",messagingSenderId:"201340990341",appId:"1:201340990341:web:961e0807dc9dac0f370aec"},uI=AD(cI),Hi=iI(uI),dI=new Qa;function fI({children:e}){const[t,n]=S.useState(null),[r,i]=S.useState(!0);S.useEffect(()=>{const b=K3(Hi,w=>{n(w),i(!1)});return()=>b()},[]);function o(b,w){return z3(Hi,b,w)}function c(b,w){return F3(Hi,b,w)}function d(){return p4(Hi,dI)}function f(){return Hi.signOut()}function h(b){return Hi.sendPasswordResetEmail(b)}function m(b,w){return q3(Hi.currentUser,{displayName:b,photoURL:w})}const v={user:t,setUser:n,loading:r,auth:Hi,createUser:o,signIn:c,googleSignIn:d,signOut:f,resetPassword:h,updateUserProfile:m};return y.jsx(u_,{value:v,children:e})}function fs(){return y.jsx("div",{className:"h-screen flex items-center justify-center",children:y.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary"})})}var d_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},tS=W.createContext&&W.createContext(d_),hI=["attr","size","title"];function pI(e,t){if(e==null)return{};var n=mI(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mI(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nh.apply(this,arguments)}function nS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 4,179 bytes, line 1590
1590t%2?nS(Object(n),!0).forEach(function(r){gI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gI(e,t,n){return t=yI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yI(e){var t=vI(e,"string");return typeof t=="symbol"?t:t+""}function vI(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f_(e){return e&&e.map((t,n)=>W.createElement(t.tag,rh({key:n},t.attr),f_(t.child)))}function At(e){return t=>W.createElement(bI,nh({attr:rh({},e.attr)},t),f_(e.child))}function bI(e){var t=n=>{var{attr:r,size:i,title:o}=e,c=pI(e,hI),d=i||n.size||"1em",f;return n.className&&(f=n.className),e.className&&(f=(f?f+" ":"")+e.className),W.createElement("svg",nh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,c,{className:f,style:rh(rh({color:e.color||n.color},n.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),o&&W.createElement("title",null,o),e.children)};return tS!==void 0?W.createElement(tS.Consumer,null,n=>t(n)):t(d_)}function wI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"},child:[]},{tag:"polyline",attr:{points:"12 19 5 12 12 5"},child:[]}]})(e)}function xI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"20",x2:"18",y2:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"20",x2:"12",y2:"4"},child:[]},{tag:"line",attr:{x1:"6",y1:"20",x2:"6",y2:"14"},child:[]}]})(e)}function es(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function jy(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 20h9"},child:[]},{tag:"path",attr:{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"},child:[]}]})(e)}function h_(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"8.5",r:"1.5"},child:[]},{tag:"polyline",attr:{points:"21 15 16 10 5 21"},child:[]}]})(e)}function bl(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"10",r:"3"},child:[]}]})(e)}function EI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"3",y1:"12",x2:"21",y2:"12"},child:[]},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"18",x2:"21",y2:"18"},child:[]}]})(e)}function rS(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(e)}function SI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"}
1590,child:[]}]})(e)}function TI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"},child:[]},{tag:"polyline",attr:{points:"17 21 17 13 7 13 7 21"},child:[]},{tag:"polyline",attr:{points:"7 3 7 8 15 8"},child:[]}]})(e)}function DI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}function aS(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(e)}function _I(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"5"},child:[]},{tag:"line",attr:{x1:"12",y1:"1",x2:"12",y2:"3"},child:[]},{tag:"line",attr:{x1:"12",y1:"21",x2:"12",y2:"23"},child:[]},{tag:"line",attr:{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"},child:[]},{tag:"line",attr:{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"},child:[]},{tag:"line",attr:{x1:"1",y1:"12",x2:"3",y2:"12"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"23",y2:"12"},child:[]},{tag:"line",attr:{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"},child:[]},{tag:"line",attr:{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"},child:[]}]})(e)}function Fs(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"},child:[]},{tag:"line",attr:{x1:"7",y1:"7",x2:"7.01",y2:"7"},child:[]}]})(e)}function CI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"3 6 5 6 21 6"},child:[]},{tag:"path",attr:{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",y1:"11",x2:"10",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",y1:"11",x2:"14",y2:"17"},child:[]}]})(e)}function p_(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"4 7 4 4 20 4 20 7"},child:[]},{tag:"line",attr:{x1:"9",y1:"20",x2:"15",y2:"20"},child:[]},{tag:"line",attr:{x1:"12",y1:"4",x2:"12",y2:"20"},child:[]}]})(e)}function AI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"8.5",cy:"7",r:"4"},child:[]},{tag:"line",attr:{x1:"20",y1:"8",x2:"20",y2:"14"},child:[]},{tag:"line",attr:{x1:"23",y1:"11",x2:"17",y2:"11"},child:[]}]})(e)}function kI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"12",cy:"7",r:"4"},child:[]}]})(e)}function Hh(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"9",cy:"7",r:"4"},child:[]},{tag:"path",attr:{d:"M23 21v-2a4 4 0 0 0-3-3.87"},child:[]},{tag:"path",attr:{d:"M16 3.13a4 4 0 0 1 0 7.75"},child:[]}]})(e)}function RI(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}const wl=Math.min,Gs=Math.max,ah=Math.round,ff=Math.floor,_a=e=>({x:e,y:e}
vendor: 5,396 bytes, line 1590
1590),MI={left:"right",right:"left",bottom:"top",top:"bottom"},NI={start:"end",end:"start"};function Ly(e,t,n){return Gs(e,wl(t,n))}function Lu(e,t){return typeof e=="function"?e(t):e}function ao(e){return e.split("-")[0]}function Iu(e){return e.split("-")[1]}function m_(e){return e==="x"?"y":"x"}function Gv(e){return e==="y"?"height":"width"}function Ki(e){return["top","bottom"].includes(ao(e))?"y":"x"}function Qv(e){return m_(Ki(e))}function OI(e,t,n){n===void 0&&(n=!1);const r=Iu(e),i=Qv(e),o=Gv(i);let c=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(c=ih(c)),[c,ih(c)]}function PI(e){const t=ih(e);return[Iy(e),t,Iy(t)]}function Iy(e){return e.replace(/start|end/g,t=>NI[t])}function jI(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:c;default:return[]}}function LI(e,t,n,r){const i=Iu(e);let o=jI(ao(e),n==="start",r);return i&&(o=o.map(c=>c+"-"+i),t&&(o=o.concat(o.map(Iy)))),o}function ih(e){return e.replace(/left|right|bottom|top/g,t=>MI[t])}function II(e){return{top:0,right:0,bottom:0,left:0,...e}}function g_(e){return typeof e!="number"?II(e):{top:e,right:e,bottom:e,left:e}}function sh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function iS(e,t,n){let{reference:r,floating:i}=e;const o=Ki(t),c=Qv(t),d=Gv(c),f=ao(t),h=o==="y",m=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,b=r[d]/2-i[d]/2;let w;switch(f){case"top":w={x:m,y:r.y-i.height};break;case"bottom":w={x:m,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:v};break;case"left":w={x:r.x-i.width,y:v};break;default:w={x:r.x,y:r.y}}switch(Iu(t)){case"start":w[c]-=b*(n&&h?-1:1);break;case"end":w[c]+=b*(n&&h?-1:1);break}return w}const BI=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:c}=n,d=o.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:v}=iS(h,r,f),b=r,w={},x=0;for(let T=0;T<d.length;T++){const{name:D,fn:_}=d[T],{x:k,y:A,data:V,reset:L}=await _({x:m,y:v,initialPlacement:r,placement:b,strategy:i,middlewareData:w,rects:h,platform:c,elements:{reference:e,floating:t}});m=k??m,v=A??v,w={...w,[D]:{...w[D],...V}},L&&x<=50&&(x++,typeof L=="object"&&(L.placement&&(b=L.placement),L.rects&&(h=L.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:i}):L.rects),{x:m,y:v}=iS(h,b,f)),T=-1)}return{x:m,y:v,placement:b,strategy:i,middlewareData:w}};async function y_(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:c,elements:d,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=Lu(t,e),x=g_(w),D=d[b?v==="floating"?"reference":"floating":v],_=sh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(D)))==null||n?D:D.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:h,rootBoundary:m,strategy:f})),k=v==="floating"?{x:r,y:i,width:c.floating.width,height:c.floating.height}:c.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),V=await(o.isElement==null?void 0:o.isElement(A))?await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1}:{x:1,y:1},L=sh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:k,offsetParent:A,strategy:f}):k);return{top:(_.top-L.top+x.top)/V.y,bottom:(L.bottom-_.bottom+x.bottom)/V.y,left:(_.left-L.left+x.left)/V.x,right:(L.right-_.right+x.right)/V.x}}const UI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:c,elements:d,middlewareData:f}=t,{element:h,padding:m=0}=Lu(e,t)||{};if(h==null)return{};const v=g_(m),b={x:n,y:r},w=Qv(i),x=Gv(w),T=await c.getDimensions(h),D=w==="y",_=D?"top":"left",k=D?"bottom":"right",A=D?"clientHeight":"clientWidth",V=o.reference[x]+o.reference[w]-b[w]-o.floating[x],L=b[w]-o.reference[w],R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let G=R?R[A]:0;(!G||!await(c.isElement==null?void 0:c.isElement(R)))&&(G=d.floating[A]||o.floating[x]);const F=V/2-L/2,B=G/2-T[x]/2-1,le=wl(v[_],B),Z=wl(v[k],B),ie=le,ge=G-T[x]-Z,oe=G/2-T[x]/2+F,ce=Ly(ie,oe,ge),O=!f.arrow&&Iu(i)!=null&&oe!==ce&&o.reference[x]/2-(oe<ie?le:Z)-T[x]/2<0,z=O?oe<ie?oe-ie:oe-ge:0;return{[w]:b[w]+z,data:{[w]:ce,centerOffset:oe-ce-z,...O&&{alignmentOffset:z}},reset:O}}}),HI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:c,initialPlacement:d,platform:f,elements:h}=t,{mainAxis:m=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,...D}=Lu(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=ao(i),k=Ki(d),A=ao(d)===d,V=await(f.isRTL==null?void 0:f.isRTL(h.floating)),L=b||(A||!T?[ih(d)]:PI(d)),R=x!=="none";!b&&R&&L.push(...LI(d,T,x,V));const G=[d,...L],F=await y_(t,D),B=[];let le=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&B.push(F[_]),v){const oe=OI(i,c,V);B.push(F[oe[0]],F[oe[1]])}if(le=[...le,{placement:i,overflows:B}],!B.every(oe=>oe<=0)){var Z,ie;const oe=(((Z=o.flip)==null?void 0:Z.index)||0)+1,ce=G[oe];
vendor: 8,308 bytes, line 1590
1590if(ce&&(!(v==="alignment"?k!==Ki(ce):!1)||le.every(ee=>ee.overflows[0]>0&&Ki(ee.placement)===k)))return{data:{index:oe,overflows:le},reset:{placement:ce}};let O=(ie=le.filter(z=>z.overflows[0]<=0).sort((z,ee)=>z.overflows[1]-ee.overflows[1])[0])==null?void 0:ie.placement;if(!O)switch(w){case"bestFit":{var ge;const z=(ge=le.filter(ee=>{if(R){const ye=Ki(ee.placement);return ye===k||ye==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(ye=>ye>0).reduce((ye,M)=>ye+M,0)]).sort((ee,ye)=>ee[1]-ye[1])[0])==null?void 0:ge[0];z&&(O=z);break}case"initialPlacement":O=d;break}if(i!==O)return{reset:{placement:O}}}return{}}}};async function VI(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),c=ao(n),d=Iu(n),f=Ki(n)==="y",h=["left","top"].includes(c)?-1:1,m=o&&f?-1:1,v=Lu(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:x}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof x=="number"&&(w=d==="end"?x*-1:x),f?{x:w*m,y:b*h}:{x:b*h,y:w*m}}const zI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:c,middlewareData:d}=t,f=await VI(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:c}}}}},FI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:c=!1,limiter:d={fn:D=>{let{x:_,y:k}=D;return{x:_,y:k}}},...f}=Lu(e,t),h={x:n,y:r},m=await y_(t,f),v=Ki(ao(i)),b=m_(v);let w=h[b],x=h[v];if(o){const D=b==="y"?"top":"left",_=b==="y"?"bottom":"right",k=w+m[D],A=w-m[_];w=Ly(k,w,A)}if(c){const D=v==="y"?"top":"left",_=v==="y"?"bottom":"right",k=x+m[D],A=x-m[_];x=Ly(k,x,A)}const T=d.fn({...t,[b]:w,[v]:x});return{...T,data:{x:T.x-n,y:T.y-r,enabled:{[b]:o,[v]:c}}}}}};function Vh(){return typeof window<"u"}function Pl(e){return v_(e)?(e.nodeName||"").toLowerCase():"#document"}function pr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Na(e){var t;return(t=(v_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function v_(e){return Vh()?e instanceof Node||e instanceof pr(e).Node:!1}function In(e){return Vh()?e instanceof Element||e instanceof pr(e).Element:!1}function Ra(e){return Vh()?e instanceof HTMLElement||e instanceof pr(e).HTMLElement:!1}function sS(e){return!Vh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pr(e).ShadowRoot}function Bu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Fr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function YI(e){return["table","td","th"].includes(Pl(e))}function zh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xv(e){const t=Zv(),n=In(e)?Fr(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function qI(e){let t=as(e);for(;Ra(t)&&!xl(t);){if(Xv(t))return t;if(zh(t))return null;t=as(t)}return null}function Zv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function xl(e){return["html","body","#document"].includes(Pl(e))}function Fr(e){return pr(e).getComputedStyle(e)}function Fh(e){return In(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function as(e){if(Pl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sS(e)&&e.host||Na(e);return sS(t)?t.host:t}function b_(e){const t=as(e);return xl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ra(t)&&Bu(t)?t:b_(t)}function gu(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=b_(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),c=pr(i);if(o){const d=By(c);return t.concat(c,c.visualViewport||[],Bu(i)?i:[],d&&n?gu(d):[])}return t.concat(i,gu(i,[],n))}function By(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function w_(e){const t=Fr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ra(e),o=i?e.offsetWidth:n,c=i?e.offsetHeight:r,d=ah(n)!==o||ah(r)!==c;return d&&(n=o,r=c),{width:n,height:r,$:d}}function Jv(e){return In(e)?e:e.contextElement}function fl(e){const t=Jv(e);if(!Ra(t))return _a(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=w_(t);let c=(o?ah(n.width):n.width)/r,d=(o?ah(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const $I=_a(0);function x_(e){const t=pr(e);return!Zv()||!t.visualViewport?$I:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function WI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pr(e)?!1:t}function io(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Jv(e);let c=_a(1);t&&(r?In(r)&&(c=fl(r)):c=fl(e));const d=WI(o,n,r)?x_(o):_a(0);let f=(i.left+d.x)/c.x,h=(i.top+d.y)/c.y,m=i.width/c.x,v=i.height/c.y;if(o){const b=pr(o),w=r&&In(r)?pr(r):r;let x=b,T=By(x);for(;T&&r&&w!==x;){const D=fl(T),_=T.getBoundingClientRect(),k=Fr(T),A=_.left+(T.clientLeft+parseFloat(k.paddingLeft))*D.x,V=_.top+(T.clientTop+parseFloat(k.paddingTop))*D.y;f*=D.x,h*=D.y,m*=D.x,v*=D.y,f+=A,h+=V,x=pr(T),T=By(x)}}return sh({width:m,height:v,x:f,y:h})}function eb(e,t){const n=Fh(e).scrollLeft;return t?t.left+n:io(Na(e)).left+n}function E_(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:eb(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function KI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",c=Na(r),d=t?zh(t.floating):!1;if(r===c||d&&o)return n;let f={scrollLeft:0,scrollTop:0},h=_a(1);const m=_a(0),v=Ra(r);if((v||!v&&!o)&&((Pl(r)!=="body"||Bu(c))&&(f=Fh(r)),Ra(r))){const w=io(r);h=fl(r),m.x=w.x+r.clientLeft,m.y=w.y+r.clientTop}const b=c&&!v&&!o?E_(c,f,!0):_a(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+m.x+b.x,y:n.y*h.y-f.scrollTop*h.y+m.y+b.y}}function GI(e){return Array.from(e.getClientRects())}function QI(e){const t=Na(e),n=Fh(e),r=e.ownerDocument.body,i=Gs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Gs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+eb(e);const d=-n.scrollTop;return Fr(r).direction==="rtl"&&(c+=Gs(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:c,y:d}}function XI(e,t){const n=pr(e),r=Na(e),i=n.visualViewport;let o=r.clientWidth,c=r.clientHeight,d=0,f=0;if(i){o=i.width,c=i.height;const h=Zv();(!h||h&&t==="fixed")&&(d=i.offsetLeft,f=i.offsetTop)}return{width:o,height:c,x:d,y:f}}function ZI(e,t){const n=io(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ra(e)?fl(e):_a(1),c=e.clientWidth*o.x,d=e.clientHeight*o.y,f=i*o.x,h=r*o.y;return{width:c,height:d,x:f,y:h}}function oS(e,t,n){let r;if(t==="viewport")r=XI(e,n);else if(t==="document")r=QI(Na(e));else if(In(t))r=ZI(t,n);else{const i=x_(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return sh(r)}function S_(e,t){const n=as(e);return n===t||!In(n)||xl(n)?!1:Fr(n).position==="fixed"||S_(n,t)}function JI(e,t){const n=t.get(e);if(n)return n;let r=gu(e,[],!1).filter(d=>In(d)&&Pl(d)!=="body"),i=null;const o=Fr(e).position==="fixed";let c=o?as(e):e;for(;In(c)&&!xl(c);){const d=Fr(c),f=Xv(c);!f&&d.position==="fixed"&&(i=null),(o?!f&&!i:!f&&d.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Bu(c)&&!f&&S_(e,c))?r=r.filter(m=>m!==c):i=d,c=as(c)}return t.set(e,r),r}function e5(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const c=[...n==="clippingAncestors"?zh(t)?[]:JI(t,this._c):[].concat(n),r],d=c[0],f=c.reduce((h,m)=>{const v=oS(t,m,i);return h.top=Gs(v.top,h.top),h.right=wl(v.right,h.right),h.bottom=wl(v.bottom,h.bottom),h.left=Gs(v.left,h.left),h},oS(t,d,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function t5(e){const{width:t,height:n}=w_(e);return{width:t,height:n}}
1590function n5(e,t,n){const r=Ra(t),i=Na(t),o=n==="fixed",c=io(e,!0,o,t);let d={scrollLeft:0,scrollTop:0};const f=_a(0);function h(){f.x=eb(i)}if(r||!r&&!o)if((Pl(t)!=="body"||Bu(i))&&(d=Fh(t)),r){const w=io(t,!0,o,t);f.x=w.x+t.clientLeft,f.y=w.y+t.clientTop}else i&&h();o&&!r&&i&&h();const m=i&&!r&&!o?E_(i,d):_a(0),v=c.left+d.scrollLeft-f.x-m.x,b=c.top+d.scrollTop-f.y-m.y;return{x:v,y:b,width:c.width,height:c.height}}function Vg(e){return Fr(e).position==="static"}function lS(e,t){if(!Ra(e)||Fr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Na(e)===n&&(n=n.ownerDocument.body),n}function T_(e,t){const n=pr(e);if(zh(e))return n;if(!Ra(e)){let i=as(e);for(;i&&!xl(i);){if(In(i)&&!Vg(i))return i;i=as(i)}return n}let r=lS(e,t);for(;r&&YI(r)&&Vg(r);)r=lS(r,t);return r&&xl(r)&&Vg(r)&&!Xv(r)?n:r||qI(e)||n}const r5=async function(e){const t=this.getOffsetParent||T_,n=this.getDimensions,r=await n(e.floating);return{reference:n5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function a5(e){return Fr(e).direction==="rtl"}const i5={convertOffsetParentRelativeRectToViewportRelativeRect:KI,getDocumentElement:Na,getClippingRect:e5,getOffsetParent:T_,getElementRects:r5,getClientRects:GI,getDimensions:t5,getScale:fl,isElement:In,isRTL:a5};function D_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function s5(e,t){let n=null,r;const i=Na(e);function o(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function c(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),o();const h=e.getBoundingClientRect(),{left:m,top:v,width:b,height:w}=h;if(d||t(),!b||!w)return;const x=ff(v),T=ff(i.clientWidth-(m+b)),D=ff(i.clientHeight-(v+w)),_=ff(m),A={rootMargin:-x+"px "+-T+"px "+-D+"px "+-_+"px",threshold:Gs(0,wl(1,f))||1};let V=!0;function L(R){const G=R[0].intersectionRatio;if(G!==f){if(!V)return c();G?c(!1,G):r=setTimeout(()=>{c(!1,1e-7)},1e3)}G===1&&!D_(h,e.getBoundingClientRect())&&c(),V=!1}try{n=new IntersectionObserver(L,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,A)}n.observe(e)}return c(!0),o}function __(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,h=Jv(e),m=i||o?[...h?gu(h):[],...gu(t)]:[];m.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),o&&_.addEventListener("resize",n)});const v=h&&d?s5(h,n):null;let b=-1,w=null;c&&(w=new ResizeObserver(_=>{let[k]=_;k&&k.target===h&&w&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var A;(A=w)==null||A.observe(t)})),n()}),h&&!f&&w.observe(h),w.observe(t));let x,T=f?io(e):null;f&&D();function D(){const _=io(e);T&&!D_(T,_)&&n(),T=_,x=requestAnimationFrame(D)}return n(),()=>{var _;m.forEach(k=>{i&&k.removeEventListener("scroll",n),o&&k.removeEventListener("resize",n)}),v==null||v(),(_=w)==null||_.disconnect(),w=null,f&&cancelAnimationFrame(x)}}const C_=zI,o5=FI,A_=HI,Uy=UI,Hy=(e,t,n)=>{const r=new Map,i={platform:i5,...n},o={...i.platform,_c:r};return BI(e,t,{...i,platform:o})};var zg={exports:{}};/*! 1591 Copyright (c) 2018 Jed Watson. 1592 Licensed under the MIT License (MIT), see 1593 http://jedwatson.github.io/classnames 1594*/var cS;function l5(){return cS||(cS=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(o=i(o,r(d)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var c="";for(var d in o)t.call(o,d)&&o[d]&&(c=i(c,d));return c}function i(o,c){return c?o?o+" "+c:o+c:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(zg)),zg.exports}var c5=l5();const Vy=Rl(c5);var uS={};const u5="react-tooltip-core-styles",d5="react-tooltip-base-styles",dS={core:!1,base:!1};function fS({css:e,id:t=d5,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||dS[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:uS)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:uS)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=u5),r||(r={});const{insertAt:c}=r;if(document.getElementById(t))return;const d=document.head||document.getElementsByTagName("head")[0],f=document.createElement("style");f.id=t,f.type="text/css",c==="top"&&d.firstChild?d.insertBefore(f,d.firstChild):d.appendChild(f),f.styleSheet?f.styleSheet.cssText=e:f.appendChild(document.createTextNode(e)),dS[n]=!0}const hS=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:c=[C_(Number(i)),A_({fallbackAxisSideDirection:"start"}),o5({padding:5})],border:d})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const f=c;return n?(f.push(Uy({element:n,padding:5})),Hy(e,t,{placement:r,strategy:o,middleware:f}).then(({x:h,y:m,placement:v,middlewareData:b})=>{var w,x;const T={left:`${h}px`,top:`${m}px`,border:d},{x:D,y:_}=(w=b.arrow)!==null&&w!==void 0?w:{x:0,y:0}
1594,k=(x={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]])!==null&&x!==void 0?x:"bottom",A=d&&{borderBottom:d,borderRight:d};let V=0;if(d){const L=`${d}`.match(/(\d+)px/);V=L!=null&&L[1]?Number(L[1]):1}return{tooltipStyles:T,tooltipArrowStyles:{left:D!=null?`${D}px`:"",top:_!=null?`${_}px`:"",right:"",bottom:"",...A,[k]:`-${4+V}px`},place:v}})):Hy(e,t,{placement:"bottom",strategy:o,middleware:f}).then(({x:h,y:m,placement:v})=>({tooltipStyles:{left:`${h}px`,top:`${m}px`},tooltipArrowStyles:{},place:v}))},pS=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),mS=(e,t,n)=>{let r=null;const i=function(...o){const c=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(c,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},gS=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",zy=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>zy(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!gS(e)||!gS(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>zy(e[i],t[i]))},f5=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},yS=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(f5(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},h5=typeof window<"u"?S.useLayoutEffect:S.useEffect,Mr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},p5="DEFAULT_TOOLTIP_ID",m5={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},g5=S.createContext({getTooltipData:()=>m5});function k_(e=p5){return S.useContext(g5).getTooltipData(e)}var Go={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"},Fg={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 y5=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:c,place:d="top",offset:f=10,events:h=["hover"],openOnClick:m=!1,positionStrategy:v="absolute",middlewares:b,wrapper:w,delayShow:x=0,delayHide:T=0,float:D=!1,hidden:_=!1,noArrow:k=!1,clickable:A=!1,closeOnEsc:V=!1,closeOnScroll:L=!1,closeOnResize:R=!1,openEvents:G,closeEvents:F,globalCloseEvents:B,imperativeModeOnly:le,style:Z,position:ie,afterShow:ge,afterHide:oe,disableTooltip:ce,content:O,contentWrapperRef:z,isOpen:ee,defaultIsOpen:ye=!1,setIsOpen:M,activeAnchor:X,setActiveAnchor:de,border:ue,opacity:Ee,arrowColor:Ie,role:Ae="tooltip"})=>{var Ft;const Be=S.useRef(null),mn=S.useRef(null),it=S.useRef(null),en=S.useRef(null),vr=S.useRef(null),[zn,On]=S.useState({tooltipStyles:{},tooltipArrowStyles:{},place:d}),[gn,mi]=S.useState(!1),[Yt,Kr]=S.useState(!1),[gt,ua]=S.useState(null),br=S.useRef(!1),Pn=S.useRef(null),{anchorRefs:Fn,setActiveAnchor:Oa}=k_(t),wr=S.useRef(!1),[Pt,dt]=S.useState([]),an=S.useRef(!1),kt=m||h.includes("click"),ms=kt||(G==null?void 0:G.click)||(G==null?void 0:G.dblclick)||(G==null?void 0:G.mousedown),yn=G?{...G}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!G&&kt&&Object.assign(yn,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const xr=F?{...F}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};
1594!F&&kt&&Object.assign(xr,{mouseleave:!1,blur:!1,mouseout:!1});const sn=B?{...B}:{escape:V||!1,scroll:L||!1,resize:R||!1,clickOutsideAnchor:ms||!1};le&&(Object.assign(yn,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(xr,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(sn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),h5(()=>(an.current=!0,()=>{an.current=!1}),[]);const yt=j=>{an.current&&(j&&Kr(!0),setTimeout(()=>{an.current&&(M==null||M(j),ee===void 0&&mi(j))},10))};S.useEffect(()=>{if(ee===void 0)return()=>null;ee&&Kr(!0);const j=setTimeout(()=>{mi(ee)},10);return()=>{clearTimeout(j)}},[ee]),S.useEffect(()=>{if(gn!==br.current)if(Mr(vr),br.current=gn,gn)ge==null||ge();else{const j=($=>{const te=$.match(/^([\d.]+)(ms|s)$/);if(!te)return 0;const[,fe,we]=te;return Number(fe)*(we==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));vr.current=setTimeout(()=>{Kr(!1),ua(null),oe==null||oe()},j+25)}},[gn]);const Yn=j=>{On($=>zy($,j)?$:j)},tr=(j=x)=>{Mr(it),Yt?yt(!0):it.current=setTimeout(()=>{yt(!0)},j)},vn=(j=T)=>{Mr(en),en.current=setTimeout(()=>{wr.current||yt(!1)},j)},da=j=>{var $;if(!j)return;const te=($=j.currentTarget)!==null&&$!==void 0?$:j.target;if(!(te!=null&&te.isConnected))return de(null),void Oa({current:null});x?tr():yt(!0),de(te),Oa({current:te}),Mr(en)},nr=()=>{A?vn(T||100):T?vn():yt(!1),Mr(it)},Gr=({x:j,y:$})=>{var te;const fe={getBoundingClientRect:()=>({x:j,y:$,width:0,height:0,top:$,left:j,right:j,bottom:$})};hS({place:(te=gt==null?void 0:gt.place)!==null&&te!==void 0?te:d,offset:f,elementReference:fe,tooltipReference:Be.current,tooltipArrowReference:mn.current,strategy:v,middlewares:b,border:ue}).then(we=>{Yn(we)})},rr=j=>{if(!j)return;const $=j,te={x:$.clientX,y:$.clientY};Gr(te),Pn.current=te},ar=j=>{var $;if(!gn)return;const te=j.target;te.isConnected&&(!(($=Be.current)===null||$===void 0)&&$.contains(te)||[document.querySelector(`[id='${o}']`),...Pt].some(fe=>fe==null?void 0:fe.contains(te))||(yt(!1),Mr(it)))},Pa=mS(da,50),Tt=mS(nr,50),tn=j=>{Tt.cancel(),Pa(j)},ke=()=>{Pa.cancel(),Tt()},ze=S.useCallback(()=>{var j,$;const te=(j=gt==null?void 0:gt.position)!==null&&j!==void 0?j:ie;te?Gr(te):D?Pn.current&&Gr(Pn.current):X!=null&&X.isConnected&&hS({place:($=gt==null?void 0:gt.place)!==null&&$!==void 0?$:d,offset:f,elementReference:X,tooltipReference:Be.current,tooltipArrowReference:mn.current,strategy:v,middlewares:b,border:ue}).then(fe=>{an.current&&Yn(fe)})},[gn,X,O,Z,d,gt==null?void 0:gt.place,f,v,ie,gt==null?void 0:gt.position,D]);S.useEffect(()=>{var j,$;const te=new Set(Fn);Pt.forEach(Ue=>{ce!=null&&ce(Ue)||te.add({current:Ue})});const fe=document.querySelector(`[id='${o}']`);fe&&!(ce!=null&&ce(fe))&&te.add({current:fe});const we=()=>{yt(!1)},pe=yS(X),xe=yS(Be.current);sn.scroll&&(window.addEventListener("scroll",we),pe==null||pe.addEventListener("scroll",we),xe==null||xe.addEventListener("scroll",we));let be=null;sn.resize?window.addEventListener("resize",we):X&&Be.current&&(be=__(X,Be.current,ze,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Te=Ue=>{Ue.key==="Escape"&&yt(!1)};sn.escape&&window.addEventListener("keydown",Te),sn.clickOutsideAnchor&&window.addEventListener("click",ar);const he=[],Re=Ue=>!!(Ue!=null&&Ue.target&&(X!=null&&X.contains(Ue.target))),Ze=Ue=>{gn&&Re(Ue)||da(Ue)},xt=Ue=>{gn&&Re(Ue)&&nr()},Dt=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Je=["click","dblclick","mousedown","mouseup"];Object.entries(yn).forEach(([Ue,Rt])=>{Rt&&(Dt.includes(Ue)?he.push({event:Ue,listener:tn}):Je.includes(Ue)&&he.push({event:Ue,listener:Ze}))}),Object.entries(xr).forEach(([Ue,Rt])=>{Rt&&(Dt.includes(Ue)?he.push({event:Ue,listener:ke}):Je.includes(Ue)&&he.push({event:Ue,listener:xt}))}),D&&he.push({event:"pointermove",listener:rr});const qe=()=>{wr.current=!0},Qr=()=>{wr.current=!1,nr()},cn=A&&(xr.mouseout||xr.mouseleave);return cn&&((j=Be.current)===null||j===void 0||j.addEventListener("mouseover",qe),($=Be.current)===null||$===void 0||$.addEventListener("mouseout",Qr)),he.forEach(({event:Ue,listener:Rt})=>{te.forEach(Er=>{var qn;(qn=Er.current)===null||qn===void 0||qn.addEventListener(Ue,Rt)})}),()=>{var Ue,Rt;sn.scroll&&(window.removeEventListener("scroll",we),pe==null||pe.removeEventListener("scroll",we),xe==null||xe.removeEventListener("scroll",we)),sn.resize?window.removeEventListener("resize",we):be==null||be(),sn.clickOutsideAnchor&&window.removeEventListener("click",ar),sn.escape&&window.removeEventListener("keydown",Te),cn&&((Ue=Be.current)===null||Ue===void 0||Ue.removeEventListener("mouseover",qe),(Rt=Be.current)===null||Rt===void 0||Rt.removeEventListener("mouseout",Qr)),he.forEach(({event:Er,listener:qn})=>{te.forEach(gs=>{var Tn;(Tn=gs.current)===null||Tn===void 0||Tn.removeEventListener(Er,qn)})})}},[X,ze,Yt,Fn,Pt,G,F,B,kt,x,T]),S.useEffect(()=>{var j,$;let te=($=(j=gt==null?void 0:gt.anchorSelect)!==null&&j!==void 0?j:c)!==null&&$!==void 0?$:"";!te&&t&&(te=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const fe=new MutationObserver(we=>{const pe=[],xe=[];we.forEach(be=>{if(be.type==="attributes"&&be.attributeName==="data-tooltip-id"&&(be.target.getAttribute("data-tooltip-id")===t?pe.push(be.target):be.oldValue===t&&xe.push(be.target)),be.type==="childList"){if(X){const Te=[...be.removedNodes].filter(he=>he.nodeType===1);if(te)try{xe.push(...Te.filter(he=>he.matches(te))),xe.push(...Te.flatMap(he=>[...he.querySelectorAll(te)]))}catch{}Te.some(he=>{var Re;return!!(!((Re=he==null?void 0:he.contains)===null||Re===void 0)&&Re.call(he,X))&&(Kr(!1),yt(!1),de(null),Mr(it),Mr(en),!0)})}if(te)try{const Te=[...be.addedNodes].filter(he=>he.nodeType===1);pe.push(...Te.filter(he=>he.matches(te))),pe.push(...Te.flatMap(he=>[...he.querySelectorAll(te)]))}catch{}}}),(pe.length||xe.length)&&dt(be=>[...be.filter(Te=>!xe.includes(Te)),...pe])});return fe.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{fe.disconnect()}},[t,c,gt==null?void 0:gt.anchorSelect,X]),S.useEffect(()=>{ze()},[ze]),S.useEffect(()=>{if(!(z!=null&&z.current))return()=>null;const j=new ResizeObserver(()=>{setTimeout(()=>ze())});return j.observe(z.current),()=>{j.disconnect()}},[O,z==null?void 0:z.current]),S.useEffect(()=>{var j;const $=document.querySelector(`[id='${o}']`),te=[...Pt,$];X&&te.includes(X)||de((j=Pt[0])!==null&&j!==void 0?j:$)},[o,Pt,X]),S.useEffect(()=>(ye&&yt(!0),()=>
1594{Mr(it),Mr(en)}),[]),S.useEffect(()=>{var j;let $=(j=gt==null?void 0:gt.anchorSelect)!==null&&j!==void 0?j:c;if(!$&&t&&($=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),$)try{const te=Array.from(document.querySelectorAll($));dt(te)}catch{dt([])}},[t,c,gt==null?void 0:gt.anchorSelect]),S.useEffect(()=>{it.current&&(Mr(it),tr(x))},[x]);const P=(Ft=gt==null?void 0:gt.content)!==null&&Ft!==void 0?Ft:O,H=gn&&Object.keys(zn.tooltipStyles).length>0;return S.useImperativeHandle(e,()=>({open:j=>{if(j!=null&&j.anchorSelect)try{document.querySelector(j.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${j.anchorSelect}" is not a valid CSS selector`)}ua(j??null),j!=null&&j.delay?tr(j.delay):yt(!0)},close:j=>{j!=null&&j.delay?vn(j.delay):yt(!1)},activeAnchor:X,place:zn.place,isOpen:!!(Yt&&!_&&P&&H)})),Yt&&!_&&P?W.createElement(w,{id:t,role:Ae,className:Vy("react-tooltip",Go.tooltip,Fg.tooltip,Fg[i],n,`react-tooltip__place-${zn.place}`,Go[H?"show":"closing"],H?"react-tooltip__show":"react-tooltip__closing",v==="fixed"&&Go.fixed,A&&Go.clickable),onTransitionEnd:j=>{Mr(vr),gn||j.propertyName!=="opacity"||(Kr(!1),ua(null),oe==null||oe())},style:{...Z,...zn.tooltipStyles,opacity:Ee!==void 0&&H?Ee:void 0},ref:Be},P,W.createElement(w,{className:Vy("react-tooltip-arrow",Go.arrow,Fg.arrow,r,k&&Go.noArrow),style:{...zn.tooltipArrowStyles,background:Ie?`linear-gradient(to right bottom, transparent 50%, ${Ie} 50%)`:void 0},ref:mn})):null},v5=({content:e})=>W.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),vS=W.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:c,classNameArrow:d,variant:f="dark",place:h="top",offset:m=10,wrapper:v="div",children:b=null,events:w=["hover"],openOnClick:x=!1,positionStrategy:T="absolute",middlewares:D,delayShow:_=0,delayHide:k=0,float:A=!1,hidden:V=!1,noArrow:L=!1,clickable:R=!1,closeOnEsc:G=!1,closeOnScroll:F=!1,closeOnResize:B=!1,openEvents:le,closeEvents:Z,globalCloseEvents:ie,imperativeModeOnly:ge=!1,style:oe,position:ce,isOpen:O,defaultIsOpen:z=!1,disableStyleInjection:ee=!1,border:ye,opacity:M,arrowColor:X,setIsOpen:de,afterShow:ue,afterHide:Ee,disableTooltip:Ie,role:Ae="tooltip"},Ft)=>{const[Be,mn]=S.useState(r),[it,en]=S.useState(i),[vr,zn]=S.useState(h),[On,gn]=S.useState(f),[mi,Yt]=S.useState(m),[Kr,gt]=S.useState(_),[ua,br]=S.useState(k),[Pn,Fn]=S.useState(A),[Oa,wr]=S.useState(V),[Pt,dt]=S.useState(v),[an,kt]=S.useState(w),[ms,yn]=S.useState(T),[xr,sn]=S.useState(null),[yt,Yn]=S.useState(null),tr=S.useRef(ee),{anchorRefs:vn,activeAnchor:da}=k_(e),nr=Tt=>Tt==null?void 0:Tt.getAttributeNames().reduce((tn,ke)=>{var ze;return ke.startsWith("data-tooltip-")&&(tn[ke.replace(/^data-tooltip-/,"")]=(ze=Tt==null?void 0:Tt.getAttribute(ke))!==null&&ze!==void 0?ze:null),tn},{}),Gr=Tt=>{const tn={place:ke=>{var ze;zn((ze=ke)!==null&&ze!==void 0?ze:h)},content:ke=>{mn(ke??r)},html:ke=>{en(ke??i)},variant:ke=>{var ze;gn((ze=ke)!==null&&ze!==void 0?ze:f)},offset:ke=>{Yt(ke===null?m:Number(ke))},wrapper:ke=>{var ze;dt((ze=ke)!==null&&ze!==void 0?ze:v)},events:ke=>{const ze=ke==null?void 0:ke.split(" ");kt(ze??w)},"position-strategy":ke=>{var ze;yn((ze=ke)!==null&&ze!==void 0?ze:T)},"delay-show":ke=>{gt(ke===null?_:Number(ke))},"delay-hide":ke=>{br(ke===null?k:Number(ke))},float:ke=>{Fn(ke===null?A:ke==="true")},hidden:ke=>{wr(ke===null?V:ke==="true")},"class-name":ke=>{sn(ke)}};Object.values(tn).forEach(ke=>ke(null)),Object.entries(Tt).forEach(([ke,ze])=>{var P;(P=tn[ke])===null||P===void 0||P.call(tn,ze)})};S.useEffect(()=>{mn(r)},[r]),S.useEffect(()=>{en(i)},[i]),S.useEffect(()=>{zn(h)},[h]),S.useEffect(()=>{gn(f)},[f]),S.useEffect(()=>{Yt(m)},[m]),S.useEffect(()=>{gt(_)},[_]),S.useEffect(()=>{br(k)},[k]),S.useEffect(()=>{Fn(A)},[A]),S.useEffect(()=>{wr(V)},[V]),S.useEffect(()=>{yn(T)},[T]),S.useEffect(()=>{tr.current!==ee&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[ee]),S.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:ee==="core",disableBase:ee}}))},[]),S.useEffect(()=>{var Tt;const tn=new Set(vn);let ke=n;if(!ke&&e&&(ke=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),ke)try{document.querySelectorAll(ke).forEach($=>{tn.add({current:$})})}catch{console.warn(`[react-tooltip] "${ke}" is not a valid CSS selector`)}const ze=document.querySelector(`[id='${t}']`);if(ze&&tn.add({current:ze}),!tn.size)return()=>null;const P=(Tt=yt??ze)!==null&&Tt!==void 0?Tt:da.current,H=new MutationObserver($=>{$.forEach(te=>{var fe;if(!P||te.type!=="attributes"||!(!((fe=te.attributeName)===null||fe===void 0)&&fe.startsWith("data-tooltip-")))return;const we=nr(P);Gr(we)})}),j={attributes:!0,childList:!1,subtree:!1};if(P){const $=nr(P);Gr($),H.observe(P,j)}return()=>{H.disconnect()}},[vn,da,yt,t,n]),S.useEffect(()=>{oe!=null&&oe.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),ye&&!pS("border",`${ye}`)&&console.warn(`[react-tooltip] "${ye}" is not a valid \`border\`.`),oe!=null&&oe.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),M&&!pS("opacity",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`opacity\`.`)},[]);let rr=b;const ar=S.useRef(null);if(o){const Tt=o({content:(yt==null?void 0:yt.getAttribute("data-tooltip-content"))||Be||null,activeAnchor:yt});rr=Tt?W.createElement("div",{ref:ar,className:"react-tooltip-content-wrapper"},Tt):null}
1594else Be&&(rr=Be);it&&(rr=W.createElement(v5,{content:it}));const Pa={forwardRef:Ft,id:e,anchorId:t,anchorSelect:n,className:Vy(c,xr),classNameArrow:d,content:rr,contentWrapperRef:ar,place:vr,variant:On,offset:mi,wrapper:Pt,events:an,openOnClick:x,positionStrategy:ms,middlewares:D,delayShow:Kr,delayHide:ua,float:Pn,hidden:Oa,noArrow:L,clickable:R,closeOnEsc:G,closeOnScroll:F,closeOnResize:B,openEvents:le,closeEvents:Z,globalCloseEvents:ie,imperativeModeOnly:ge,style:oe,position:ce,isOpen:O,defaultIsOpen:z,border:ye,opacity:M,arrowColor:X,setIsOpen:de,afterShow:ue,afterHide:Ee,disableTooltip:Ie,activeAnchor:yt,setActiveAnchor:Tt=>Yn(Tt),role:Ae};return W.createElement(y5,{...Pa})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||fS({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}.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||fS({css:` 1595.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"})});/*! 1596* sweetalert2 v11.22.0 1597* Released under the MIT License. 1598*/function R_(e,t,n){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function b5(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bS(e,t){return e.get(R_(e,t))}function w5(e,t,n){b5(e,t),t.set(e,n)}function x5(e,t,n){return e.set(R_(e,t),n),n}const E5=100,Me={},S5=()=>{Me.previousActiveElement instanceof HTMLElement?(Me.previousActiveElement.focus(),Me.previousActiveElement=null):document.body&&document.body.focus()},T5=e=>new Promise(t=>{if(!e)return t();const n=window.scrollX,r=window.scrollY;Me.restoreFocusTimeout=setTimeout(()=>{S5(),t()},E5),window.scrollTo(n,r)}),M_="swal2-",D5=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],ne=D5.reduce((e,t)=>
1598(e[t]=M_+t,e),{}),_5=["success","warning","info","question","error"],oh=_5.reduce((e,t)=>(e[t]=M_+t,e),{}),N_="SweetAlert2:",tb=e=>e.charAt(0).toUpperCase()+e.slice(1),Hn=e=>{console.warn(`${N_} ${typeof e=="object"?e.join(" "):e}`)},fo=e=>{console.error(`${N_} ${e}`)},wS=[],C5=e=>{wS.includes(e)||(wS.push(e),Hn(e))},O_=(e,t=null)=>{C5(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},Yh=e=>typeof e=="function"?e():e,nb=e=>e&&typeof e.toPromise=="function",Uu=e=>nb(e)?e.toPromise():Promise.resolve(e),rb=e=>e&&Promise.resolve(e)===e,Vn=()=>document.body.querySelector(`.${ne.container}`),Hu=e=>{const t=Vn();return t?t.querySelector(e):null},gr=e=>Hu(`.${e}`),at=()=>gr(ne.popup),jl=()=>gr(ne.icon),A5=()=>gr(ne["icon-content"]),P_=()=>gr(ne.title),ab=()=>gr(ne["html-container"]),j_=()=>gr(ne.image),ib=()=>gr(ne["progress-steps"]),qh=()=>gr(ne["validation-message"]),Ma=()=>Hu(`.${ne.actions} .${ne.confirm}`),Ll=()=>Hu(`.${ne.actions} .${ne.cancel}`),ho=()=>Hu(`.${ne.actions} .${ne.deny}`),k5=()=>gr(ne["input-label"]),Il=()=>Hu(`.${ne.loader}`),Vu=()=>gr(ne.actions),L_=()=>gr(ne.footer),$h=()=>gr(ne["timer-progress-bar"]),sb=()=>gr(ne.close),R5=` 1599 a[href], 1600 area[href], 1601 input:not([disabled]), 1602 select:not([disabled]), 1603 textarea:not([disabled]), 1604 button:not([disabled]), 1605 iframe, 1606 object, 1607 embed, 1608 [tabindex="0"], 1609 [contenteditable], 1610 audio[controls], 1611 video[controls], 1612 summary 1613`,ob=()=>{const e=at();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((o,c)=>{const d=parseInt(o.getAttribute("tabindex")||"0"),f=parseInt(c.getAttribute("tabindex")||"0");return d>f?1:d<f?-1:0}),r=e.querySelectorAll(R5),i=Array.from(r).filter(o=>o.getAttribute("tabindex")!=="-1");return[...new Set(n.concat(i))].filter(o=>Zn(o))},lb=()=>ei(document.body,ne.shown)&&!ei(document.body,ne["toast-shown"])&&!ei(document.body,ne["no-backdrop"]),Wh=()=>{const e=at();return e?ei(e,ne.toast):!1},M5=()=>{const e=at();return e?e.hasAttribute("data-loading"):!1},yr=(e,t)=>{if(e.textContent="",t){const r=new DOMParser().parseFromString(t,"text/html"),i=r.querySelector("head");i&&Array.from(i.childNodes).forEach(c=>{e.appendChild(c)});const o=r.querySelector("body");o&&Array.from(o.childNodes).forEach(c=>{c instanceof HTMLVideoElement||c instanceof HTMLAudioElement?e.appendChild(c.cloneNode(!0)):e.appendChild(c)})}},ei=(e,t)=>{if(!t)return!1;const n=t.split(/\s+/);for(let r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},N5=(e,t)=>{Array.from(e.classList).forEach(n=>{!Object.values(ne).includes(n)&&!Object.values(oh).includes(n)&&!Object.values(t.showClass||{}).includes(n)&&e.classList.remove(n)})},mr=(e,t,n)=>{if(N5(e,t),!t.customClass)return;const r=t.customClass[n];if(r){if(typeof r!="string"&&!r.forEach){Hn(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof r}"`);return}ot(e,r)}},Kh=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${ne.popup} > .${ne[t]}`);case"checkbox":return e.querySelector(`.${ne.popup} > .${ne.checkbox} input`);case"radio":return e.querySelector(`.${ne.popup} > .${ne.radio} input:checked`)||e.querySelector(`.${ne.popup} > .${ne.radio} input:first-child`);case"range":return e.querySelector(`.${ne.popup} > .${ne.range} input`);default:return e.querySelector(`.${ne.popup} > .${ne.input}`)}},I_=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},B_=(e,t,n)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(r=>{Array.isArray(e)?e.forEach(i=>{n?i.classList.add(r):i.classList.remove(r)}):n?e.classList.add(r):e.classList.remove(r)}))},ot=(e,t)=>{B_(e,t,!0)},Yr=(e,t)=>{B_(e,t,!1)},Gi=(e,t)=>{const n=Array.from(e.children);for(let r=0;r<n.length;r++){const i=n[r];if(i instanceof HTMLElement&&ei(i,t))return i}},Qs=(e,t,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?e.style.setProperty(t,typeof n=="number"?`${n}px`:n):e.style.removeProperty(t)},hn=(e,t="flex")=>{e&&(e.style.display=t)},Nn=e=>{e&&(e.style.display="none")},cb=(e,t="block")=>{e&&new MutationObserver(()=>{zu(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},xS=(e,t,n,r)=>{const i=e.querySelector(t);i&&i.style.setProperty(n,r)},zu=(e,t,n="flex")=>{t?hn(e,n):Nn(e)},Zn=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),O5=()=>!Zn(Ma())&&!Zn(ho())&&!Zn(Ll()),Fy=e=>e.scrollHeight>e.clientHeight,P5=(e,t)=>{let n=e;for(;n&&n!==t;){if(Fy(n))return!0;n=n.parentElement}return!1},U_=e=>{const t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},ub=(e,t=!1)=>{const n=$h();n&&Zn(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${e/1e3}s linear`,n.style.width="0%"},10))},j5=()=>{const e=$h();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const n=parseInt(window.getComputedStyle(e).width),r=t/n*100;e.style.width=`${r}%`},L5=()=>typeof window>"u"||typeof document>"u",I5=` 1614 <div aria-labelledby="${ne.title}" aria-describedby="${ne["html-container"]}" class="${ne.popup}" tabindex="-1"> 1615 <button type="button" class="${ne.close}"></button> 1616 <ul class="${ne["progress-steps"]}"></ul> 1617 <div class="${ne.icon}"></div> 1618 <img class="${ne.image}" /> 1619 <h2 class="${ne.title}" id="${ne.title}"></h2> 1620 <div class="${ne["html-container"]}" id="${ne["html-container"]}"></div> 1621 <input class="${ne.input}" id="${ne.input}" /> 1622 <input type="file" class="${ne.file}" /> 1623 <div class="${ne.range}"> 1624 <input type="range" /> 1625 <output></output> 1626 </div> 1627 <select class="${ne.select}" id="${ne.select}"></select> 1628 <div class="${ne.radio}"></div> 1629 <label class="${ne.checkbox}"> 1630 <input type="checkbox" id="${ne.checkbox}" /> 1631 <span class="${ne.label}"></span> 1632 </label> 1633 <textarea class="${ne.textarea}" id="${ne.textarea}"></textarea> 1634 <div class="${ne["validation-message"]}" id="${ne["validation-message"]}"></div> 1635 <div class="${ne.actions}"> 1636 <div class="${ne.loader}"></div> 1637 <button type="button" class="${ne.confirm}"></button> 1638 <button type="button" class="${ne.deny}"></button> 1639 <button type="button" class="${ne.cancel}"></button> 1640 </div> 1641 <div class="${ne.footer}"></div> 1642 <div class="${ne["timer-progress-bar-container"]}"> 1643 <div class="${ne["timer-progress-bar"]}"></div> 1644 </div> 1645 </div> 1646`.replace(/(^|\n)\s*/g,""),B5=()=>{const e=Vn();return e?(e.remove(),Yr([document.documentElement,document.body],[ne["no-backdrop"],ne["toast-shown"],ne["has-column"]]),!0):!1},Ps=()=>{Me.currentInstance.resetValidationMessage()},U5=()=>{const e=at(),t=Gi(e,ne.input),n=Gi(e,ne.file),r=e.querySelector(`.${ne.range} input`),i=e.querySelector(`.${ne.range} output`),o=Gi(e,ne.select),c=e.querySelector(`.${ne.checkbox} input`),d=Gi(e,ne.textarea);t.oninput=Ps,n.onchange=Ps,o.onchange=Ps,c.onchange=Ps,d.oninput=Ps,r.oninput=()=>{Ps(),i.value=r.value},r.onchange=()=>{Ps(),i.value=r.value}},H5=e=>typeof e=="string"?document.querySelector(e):e,V5=e=>{const t=at();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},z5=e=>{window.getComputedStyle(e).direction==="rtl"&&ot(Vn(),ne.rtl)},F5=e=>{const t=B5();if(L5()){fo("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=ne.container,t&&ot(n,ne["no-transition"]),yr(n,I5),n.dataset.swal2Theme=e.theme;const r=H5(e.target);r.appendChild(n),e.topLayer&&(n.setAttribute("popover",""),n.showPopover()),V5(e),z5(r),U5()},db=(e,t)=>
1646{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?Y5(e,t):e&&yr(t,e)},Y5=(e,t)=>{e.jquery?q5(t,e):yr(t,e.toString())},q5=(e,t)=>{if(e.textContent="",0 in t)for(let n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},$5=(e,t)=>{const n=Vu(),r=Il();!n||!r||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?Nn(n):hn(n),mr(n,t,"actions"),W5(n,r,t),yr(r,t.loaderHtml||""),mr(r,t,"loader"))};function W5(e,t,n){const r=Ma(),i=ho(),o=Ll();!r||!i||!o||(qg(r,"confirm",n),qg(i,"deny",n),qg(o,"cancel",n),K5(r,i,o,n),n.reverseButtons&&(n.toast?(e.insertBefore(o,r),e.insertBefore(i,r)):(e.insertBefore(o,t),e.insertBefore(i,t),e.insertBefore(r,t))))}function K5(e,t,n,r){if(!r.buttonsStyling){Yr([e,t,n],ne.styled);return}ot([e,t,n],ne.styled),r.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&n.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),Yg(e),Yg(t),Yg(n)}function Yg(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const n=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${n}`))}function qg(e,t,n){const r=tb(t);zu(e,n[`show${r}Button`],"inline-block"),yr(e,n[`${t}ButtonText`]||""),e.setAttribute("aria-label",n[`${t}ButtonAriaLabel`]||""),e.className=ne[t],mr(e,n,`${t}Button`)}const G5=(e,t)=>{const n=sb();n&&(yr(n,t.closeButtonHtml||""),mr(n,t,"closeButton"),zu(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Q5=(e,t)=>{const n=Vn();n&&(X5(n,t.backdrop),Z5(n,t.position),J5(n,t.grow),mr(n,t,"container"))};function X5(e,t){typeof t=="string"?e.style.background=t:t||ot([document.documentElement,document.body],ne["no-backdrop"])}function Z5(e,t){t&&(t in ne?ot(e,ne[t]):(Hn('The "position" parameter is not valid, defaulting to "center"'),ot(e,ne.center)))}function J5(e,t){t&&ot(e,ne[`grow-${t}`])}var Ct={innerParams:new WeakMap,domCache:new WeakMap};const e6=["input","file","range","select","radio","checkbox","textarea"],t6=(e,t)=>{const n=at();if(!n)return;const r=Ct.innerParams.get(e),i=!r||t.input!==r.input;e6.forEach(o=>{const c=Gi(n,ne[o]);c&&(a6(o,t.inputAttributes),c.className=ne[o],i&&Nn(c))}),t.input&&(i&&n6(t),i6(t))},n6=e=>{if(!e.input)return;if(!Kt[e.input]){fo(`Unexpected type of input! Expected ${Object.keys(Kt).join(" | ")}, got "${e.input}"`);return}const t=H_(e.input);if(!t)return;const n=Kt[e.input](t,e);hn(t),e.inputAutoFocus&&setTimeout(()=>{I_(n)})},r6=e=>{for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name;["id","type","value","style"].includes(n)||e.removeAttribute(n)}},a6=(e,t)=>{const n=at();if(!n)return;const r=Kh(n,e);if(r){r6(r);for(const i in t)r.setAttribute(i,t[i])}},i6=e=>{if(!e.input)return;const t=H_(e.input);t&&mr(t,e,"input")},fb=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},Fu=(e,t,n)=>{if(n.inputLabel){const r=document.createElement("label"),i=ne["input-label"];r.setAttribute("for",e.id),r.className=i,typeof n.customClass=="object"&&ot(r,n.customClass.inputLabel),r.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",r)}},H_=e=>{const t=at();if(t)return Gi(t,ne[e]||ne.input)},lh=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:rb(t)||Hn(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Kt={};Kt.text=Kt.email=Kt.password=Kt.number=Kt.tel=Kt.url=Kt.search=Kt.date=Kt["datetime-local"]=Kt.time=Kt.week=Kt.month=(e,t)=>(lh(e,t.inputValue),Fu(e,e,t),fb(e,t),e.type=t.input,e);Kt.file=(e,t)=>(Fu(e,e,t),fb(e,t),e);Kt.range=(e,t)=>{const n=e.querySelector("input"),r=e.querySelector("output");return lh(n,t.inputValue),n.type=t.input,lh(r,t.inputValue),Fu(n,e,t),e};Kt.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const n=document.createElement("option");yr(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.a
1646ppendChild(n)}return Fu(e,e,t),e};Kt.radio=e=>(e.textContent="",e);Kt.checkbox=(e,t)=>{const n=Kh(at(),"checkbox");n.value="1",n.checked=!!t.inputValue;const r=e.querySelector("span");return yr(r,t.inputPlaceholder||t.inputLabel),n};Kt.textarea=(e,t)=>{lh(e,t.inputValue),fb(e,t),Fu(e,e,t);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(at()).width),i=()=>{if(!document.body.contains(e))return;const o=e.offsetWidth+n(e);o>r?at().style.width=`${o}px`:Qs(at(),"width",t.width)};new MutationObserver(i).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const s6=(e,t)=>{const n=ab();n&&(cb(n),mr(n,t,"htmlContainer"),t.html?(db(t.html,n),hn(n,"block")):t.text?(n.textContent=t.text,hn(n,"block")):Nn(n),t6(e,t))},o6=(e,t)=>{const n=L_();n&&(cb(n),zu(n,t.footer,"block"),t.footer&&db(t.footer,n),mr(n,t,"footer"))},l6=(e,t)=>{const n=Ct.innerParams.get(e),r=jl();if(!r)return;if(n&&t.icon===n.icon){SS(r,t),ES(r,t);return}if(!t.icon&&!t.iconHtml){Nn(r);return}if(t.icon&&Object.keys(oh).indexOf(t.icon)===-1){fo(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),Nn(r);return}hn(r),SS(r,t),ES(r,t),ot(r,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",V_)},ES=(e,t)=>{for(const[n,r]of Object.entries(oh))t.icon!==n&&Yr(e,r);ot(e,t.icon&&oh[t.icon]),d6(e,t),V_(),mr(e,t,"icon")},V_=()=>{const e=at();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=t},c6=` 1647 <div class="swal2-success-circular-line-left"></div> 1648 <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span> 1649 <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div> 1650 <div class="swal2-success-circular-line-right"></div> 1651`,u6=` 1652 <span class="swal2-x-mark"> 1653 <span class="swal2-x-mark-line-left"></span> 1654 <span class="swal2-x-mark-line-right"></span> 1655 </span> 1656`,SS=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let n=e.innerHTML,r="";t.iconHtml?r=TS(t.iconHtml):t.icon==="success"?(r=c6,n=n.replace(/ style=".*?"/g,"")):t.icon==="error"?r=u6:t.icon&&(r=TS({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==r.trim()&&yr(e,r)},d6=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])xS(e,n,"background-color",t.iconColor);xS(e,".swal2-success-ring","border-color",t.iconColor)}},TS=e=>`<div class="${ne["icon-content"]}">${e}</div>`,f6=(e,t)=>{const n=j_();if(n){if(!t.imageUrl){Nn(n);return}hn(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),Qs(n,"width",t.imageWidth),Qs(n,"height",t.imageHeight),n.className=ne.image,mr(n,t,"image")}};let hb=!1,z_=0,F_=0,Y_=0,q_=0;const h6=e=>{e.addEventListener("mousedown",ch),document.body.addEventListener("mousemove",uh),e.addEventListener("mouseup",dh),e.addEventListener("touchstart",ch),document.body.addEventListener("touchmove",uh),e.addEventListener("touchend",dh)},p6=e=>{e.removeEventListener("mousedown",ch),document.body.removeEventListener("mousemove",uh),e.removeEventListener("mouseup",dh),e.removeEventListener("touchstart",ch),document.body.removeEventListener("touchmove",uh),e.removeEventListener("touchend",dh)},ch=e=>{const t=at();if(e.target===t||jl().contains(e.target)){hb=!0;const n=$_(e);z_=n.clientX,F_=n.clientY,Y_=parseInt(t.style.insetInlineStart)||0,q_=parseInt(t.style.insetBlockStart)||0,ot(t,"swal2-dragging")}},uh=e=>{const t=at();if(hb){let{clientX:n,clientY:r}=$_(e);t.style.insetInlineStart=`${Y_+(n-z_)}px`,t.style.insetBlockStart=`${q_+(r-F_)}px`}},dh=()=>{const e=at();hb=!1,Yr(e,"swal2-dragging")},$_=e=>{let t=0,n=0;return e.type.startsWith("mouse")?(t=e.clientX,n=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,n=e.touches[0].clientY),{clientX:t,clientY:n}},m6=(e,t)=>{const n=Vn(),r=at();if(!(!n||!r)){if(t.toast){Qs(n,"width",t.width),r.style.width="100%";const i=Il();i&&r.insertBefore(i,jl())}else Qs(r,"width",t.width);Qs(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),Nn(qh()),g6(r,t),t.draggable&&!t.toast?(ot(r,ne.draggable),h6(r)):(Yr(r,ne.draggable),p6(r))}},g6=(e,t)=>{const n=t.showClass||{};e.className=`${ne.popup} ${Zn(e)?n.popup:""}`,t.toast?(ot([document.documentElement,document.body],ne["toast-shown"]),ot(e,ne.toast)):ot(e,ne.modal),mr(e,t,"popup"),typeof t.customClass=="string"&&ot(e,t.customClass),t.icon&&ot(e,ne[`icon-${t.icon}`])},y6=(e,t)=>{const n=ib();if(!n)return;const{progressSteps:r,currentProgressStep:i}=t;if(!r||r.length===0||i===void 0){Nn(n);return}hn(n),n.textContent="",i>=r.length&&Hn("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((o,c)=>{const d=v6(o);if(n.appendChild(d),c===i&&ot(d,ne["active-progress-step"]),c!==r.length-1){const f=b6(t);n.appendChild(f)}})},v6=e=>{const t=document.createElement("li");return ot(t,ne["progress-step"]),yr(t,e),t},b6=e=>{const t=document.createElement("li");return ot(t,ne["progress-step-line"]),e.progressStepsDistance&&Qs(t,"width",e.progressStepsDistance),t},w6=(e,t)=>{const n=P_();n&&(cb(n),zu(n,t.title||t.titleText,"block"),t.title&&db(t.title,n),t.titleText&&(n.innerText=t.titleText),mr(n,t,"title"))},W_=(e,t)=>
1656{m6(e,t),Q5(e,t),y6(e,t),l6(e,t),f6(e,t),w6(e,t),G5(e,t),s6(e,t),$5(e,t),o6(e,t);const n=at();typeof t.didRender=="function"&&n&&t.didRender(n),Me.eventEmitter.emit("didRender",n)},x6=()=>Zn(at()),K_=()=>{var e;return(e=Ma())===null||e===void 0?void 0:e.click()},E6=()=>{var e;return(e=ho())===null||e===void 0?void 0:e.click()},S6=()=>{var e;return(e=Ll())===null||e===void 0?void 0:e.click()},Bl=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),G_=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},T6=(e,t,n)=>{G_(e),t.toast||(e.keydownHandler=r=>_6(t,r,n),e.keydownTarget=t.keydownListenerCapture?window:at(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Yy=(e,t)=>{var n;const r=ob();if(r.length){e=e+t,e===-2&&(e=r.length-1),e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();return}(n=at())===null||n===void 0||n.focus()},Q_=["ArrowRight","ArrowDown"],D6=["ArrowLeft","ArrowUp"],_6=(e,t,n)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?C6(t,e):t.key==="Tab"?A6(t):[...Q_,...D6].includes(t.key)?k6(t.key):t.key==="Escape"&&R6(t,e,n)))},C6=(e,t)=>{if(!Yh(t.allowEnterKey))return;const n=Kh(at(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;K_(),e.preventDefault()}},A6=e=>{const t=e.target,n=ob();let r=-1;for(let i=0;i<n.length;i++)if(t===n[i]){r=i;break}e.shiftKey?Yy(r,-1):Yy(r,1),e.stopPropagation(),e.preventDefault()},k6=e=>{const t=Vu(),n=Ma(),r=ho(),i=Ll();if(!t||!n||!r||!i)return;const o=[n,r,i];if(document.activeElement instanceof HTMLElement&&!o.includes(document.activeElement))return;const c=Q_.includes(e)?"nextElementSibling":"previousElementSibling";let d=document.activeElement;if(d){for(let f=0;f<t.children.length;f++){if(d=d[c],!d)return;if(d instanceof HTMLButtonElement&&Zn(d))break}d instanceof HTMLButtonElement&&d.focus()}},R6=(e,t,n)=>{Yh(t.allowEscapeKey)&&(e.preventDefault(),n(Bl.esc))};var El={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const M6=()=>{const e=Vn();Array.from(document.body.children).forEach(n=>{n.contains(e)||(n.hasAttribute("aria-hidden")&&n.setAttribute("data-previous-aria-hidden",n.getAttribute("aria-hidden")||""),n.setAttribute("aria-hidden","true"))})},X_=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Z_=typeof window<"u"&&!!window.GestureEvent,N6=()=>{if(Z_&&!ei(document.body,ne.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,ot(document.body,ne.iosfix),O6()}},O6=()=>{const e=Vn();if(!e)return;let t;e.ontouchstart=n=>{t=P6(n)},e.ontouchmove=n=>{t&&(n.preventDefault(),n.stopPropagation())}},P6=e=>{const t=e.target,n=Vn(),r=ab();return!n||!r||j6(e)||L6(e)?!1:t===n||!Fy(n)&&t instanceof HTMLElement&&!P5(t,r)&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(Fy(r)&&r.contains(t))},j6=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",L6=e=>e.touches&&e.touches.length>1,I6=()=>{if(ei(document.body,ne.iosfix)){const e=parseInt(document.body.style.top,10);Yr(document.body,ne.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},B6=()=>{const e=document.createElement("div");e.className=ne["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let hl=null;const U6=e=>{hl===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(hl=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${hl+B6()}px`)},H6=()=>{hl!==null&&(document.body.style.paddingRight=`${hl}px`,hl=null)};function J_(e,t,n,r){Wh()?DS(e,r):(T5(n).then(()=>DS(e,r)),G_(Me)),Z_?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),lb()&&(H6(),I6(),X_()),V6()}function V6(){Yr([document.documentElement,document.body],[ne.shown,ne["height-auto"],ne["no-backdrop"],ne["toast-shown"]])}function Qi(e){e=F6(e);const t=El.swalPromiseResolve.get(this),n=z6(this);this.isAwaitingPromise?e.isDismissed||(Yu(this),t(e)):n&&t(e)}const z6=e=>{const t=at();if(!t)return!1;const n=Ct.innerParams.get(e);if(!n||ei(t,n.hideClass.popup))return!1;Yr(t,n.showClass.popup),ot(t,n.hideClass.popup);const r=Vn();return Yr(r,n.showClass.backdrop),ot(r,n.hideClass.backdrop),Y6(e,t,n),!0};function eC(e){const t=El.swalPromiseReject.get(this);Yu(this),t&&t(e)}const Yu=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,Ct.innerParams.get(e)||e._destroy())},F6=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),Y6=(e,t,n)=>{var r;const i=Vn(),o=U_(t);typeof n.willClose=="function"&&n.willClose(t),(r=Me.eventEmitter)===null||r===void 0||r.emit("willClose",t),o?q6(e,t,i,n.returnFocus,n.didClose):J_(e,i,n.returnFocus,n.didClose)},q6=(e,t,n,r,i)=>{Me.swalCloseEventFinishedCallback=J_.bind(null,e,n,r,i);const o=function(c){if(c.target===t){var d;(d=Me.swalCloseEventFinishedCallback)===null||d===void 0||d.call(Me),delete Me.swalCloseEventFinishedCallback,t.removeEventListener("animationend",o),t.removeEventListener("transitionend",o)}};t.addEventListener("animationend",o),t.addEventListener("transitionend",o)},DS=(e,t)=>{setTimeout(()=>{var n;typeof t=="function"&&t.bind(e.params)(),(n=Me.eventEmitter)===null||n===void 0||n.emit("didClose"),e._destroy&&e._destroy()})},Sl=e=>{let t=at();
1656if(t||new Ke,t=at(),!t)return;const n=Il();Wh()?Nn(jl()):$6(t,e),hn(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},$6=(e,t)=>{const n=Vu(),r=Il();!n||!r||(!t&&Zn(Ma())&&(t=Ma()),hn(n),t&&(Nn(t),r.setAttribute("data-button-to-replace",t.className),n.insertBefore(r,t)),ot([e,n],ne.loading))},W6=(e,t)=>{t.input==="select"||t.input==="radio"?Z6(e,t):["text","email","number","tel","textarea"].some(n=>n===t.input)&&(nb(t.inputValue)||rb(t.inputValue))&&(Sl(Ma()),J6(e,t))},K6=(e,t)=>{const n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return G6(n);case"radio":return Q6(n);case"file":return X6(n);default:return t.inputAutoTrim?n.value.trim():n.value}},G6=e=>e.checked?1:0,Q6=e=>e.checked?e.value:null,X6=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,Z6=(e,t)=>{const n=at();if(!n)return;const r=i=>{t.input==="select"?eB(n,fh(i),t):t.input==="radio"&&tB(n,fh(i),t)};nb(t.inputOptions)||rb(t.inputOptions)?(Sl(Ma()),Uu(t.inputOptions).then(i=>
1656{e.hideLoading(),r(i)})):typeof t.inputOptions=="object"?r(t.inputOptions):fo(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},J6=(e,t)=>{const n=e.getInput();n&&(Nn(n),Uu(t.inputValue).then(r=>{n.value=t.input==="number"?`${parseFloat(r)||0}`:`${r}`,hn(n),n.focus(),e.hideLoading()}).catch(r=>{fo(`Error in inputValue promise: ${r}`),n.value="",hn(n),n.focus(),e.hideLoading()}))};function eB(e,t,n){const r=Gi(e,ne.select);if(!r)return;const i=(o,c,d)=>{const f=document.createElement("option");f.value=d,yr(f,c),f.selected=tC(d,n.inputValue),o.appendChild(f)};t.forEach(o=>{const c=o[0],d=o[1];if(Array.isArray(d)){const f=document.createElement("optgroup");f.label=c,f.disabled=!1,r.appendChild(f),d.forEach(h=>i(f,h[1],h[0]))}else i(r,d,c)}),r.focus()}function tB(e,t,n){const r=Gi(e,ne.radio);if(!r)return;t.forEach(o=>{const c=o[0],d=o[1],f=document.createElement("input"),h=document.createElement("label");f.type="radio",f.name=ne.radio,f.value=c,tC(c,n.inputValue)&&(f.checked=!0);const m=document.createElement("span");yr(m,d),m.className=ne.label,h.appendChild(f),h.appendChild(m),r.appendChild(h)});const i=r.querySelectorAll("input");i.length&&i[0].focus()}const fh=e=>{const t=[];return e instanceof Map?e.forEach((n,r)=>{let i=n;typeof i=="object"&&(i=fh(i)),t.push([r,i])}):Object.keys(e).forEach(n=>{let r=e[n];typeof r=="object"&&(r=fh(r)),t.push([n,r])}),t},tC=(e,t)=>!!t&&t.toString()===e.toString(),nB=e=>{const t=Ct.innerParams.get(e);e.disableButtons(),t.input?nC(e,"confirm"):mb(e,!0)},rB=e=>{const t=Ct.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?nC(e,"deny"):pb(e,!1)},aB=(e,t)=>{e.disableButtons(),t(Bl.cancel)},nC=(e,t)=>{const n=Ct.innerParams.get(e);if(!n.input){fo(`The "input" parameter is needed to be set when using returnInputValueOn${tb(t)}`);return}const r=e.getInput(),i=K6(e,n);n.inputValidator?iB(e,i,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||r.validationMessage)):t==="deny"?pb(e,i):mb(e,i)},iB=(e,t,n)=>{const r=Ct.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>Uu(r.inputValidator(t,r.validationMessage))).then(o=>{e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):n==="deny"?pb(e,t):mb(e,t)})},pb=(e,t)=>{const n=Ct.innerParams.get(e||void 0);n.showLoaderOnDeny&&Sl(ho()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>Uu(n.preDeny(t,n.validationMessage))).then(i=>{i===!1?(e.hideLoading(),Yu(e)):e.close({isDenied:!0,value:typeof i>"u"?t:i})}).catch(i=>rC(e||void 0,i))):e.close({isDenied:!0,value:t})},_S=(e,t)=>{e.close({isConfirmed:!0,value:t})},rC=(e,t)=>{e.rejectPromise(t)},mb=(e,t)=>{const n=Ct.innerParams.get(e||void 0);n.showLoaderOnConfirm&&Sl(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>Uu(n.preConfirm(t,n.validationMessage))).then(i=>{Zn(qh())||i===!1?(e.hideLoading(),Yu(e)):_S(e,typeof i>"u"?t:i)}).catch(i=>rC(e||void 0,i))):_S(e,t)};function hh(){const e=Ct.innerParams.get(this);if(!e)return;const t=Ct.domCache.get(this);Nn(t.loader),Wh()?e.icon&&hn(jl()):sB(t),Yr([t.popup,t.actions],ne.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const sB=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?hn(t[0],"inline-block"):O5()&&Nn(e.actions)};function aC(){const e=Ct.innerParams.get(this),t=Ct.domCache.get(this);return t?Kh(t.popup,e.input):null}function iC(e,t,n){const r=Ct.domCache.get(e);t.forEach(i=>{r[i].disabled=n})}function sC(e,t){const n=at();if(!(!n||!e))if(e.type==="radio"){const r=n.querySelectorAll(`[name="${ne.radio}"]`);for(let i=0;i<r.length;i++)r[i].disabled=t}else e.disabled=t}function oC(){iC(this,["confirmButton","denyButton","cancelButton"],!1)}function lC(){iC(this,["confirmButton","denyButton","cancelButton"],!0)}function cC(){sC(this.getInput(),!1)}function uC(){sC(this.getInput(),!0)}function dC(e){const t=Ct.domCache.get(this),n=Ct.innerParams.get(this);yr(t.validationMessage,e),t.validationMessage.className=ne["validation-message"],n.customClass&&n.customClass.validationMessage&&ot(t.validationMessage,n.customClass.validationMessage),hn(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",ne["validation-message"]),I_(r),ot(r,ne.inputerror))}function fC(){const e=Ct.domCache.get(this);e.validationMessage&&Nn(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),Yr(t,ne.inputerror))}const pl={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose
1656:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},oB=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],lB={allowEnterKey:void 0},cB=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],hC=e=>Object.prototype.hasOwnProperty.call(pl,e),pC=e=>oB.indexOf(e)!==-1,mC=e=>lB[e],uB=e=>{hC(e)||Hn(`Unknown parameter "${e}"`)},dB=e=>{cB.includes(e)&&Hn(`The parameter "${e}" is incompatible with toasts`)},fB=e=>{const t=mC(e);t&&O_(e,t)},gC=e=>{e.backdrop===!1&&e.allowOutsideClick&&Hn('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&Hn(`Invalid theme "${e.theme}"`);for(const t in e)uB(t),e.toast&&dB(t),fB(t)};function yC(e){const t=Vn(),n=at(),r=Ct.innerParams.get(this);if(!n||ei(n,r.hideClass.popup)){Hn("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const i=hB(e),o=Object.assign({},r,i);gC(o),t.dataset.swal2Theme=o.theme,W_(this,o),Ct.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const hB=e=>{const t={};return Object.keys(e).forEach(n=>{pC(n)?t[n]=e[n]:Hn(`Invalid parameter to update: ${n}`)}),t};function vC(){const e=Ct.domCache.get(this),t=Ct.innerParams.get(this);if(!t){bC(this);return}e.popup&&Me.swalCloseEventFinishedCallback&&(Me.swalCloseEventFinishedCallback(),delete Me.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),Me.eventEmitter.emit("didDestroy"),pB(this)}const pB=e=>{bC(e),delete e.params,delete Me.keydownHandler,delete Me.keydownTarget,delete Me.currentInstance},bC=e=>{e.isAwaitingPromise?($g(Ct,e),e.isAwaitingPromise=!0):($g(El,e),$g(Ct,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},$g=(e,t)=>{for(const n in e)e[n].delete(t)};var mB=Object.freeze({__proto__:null,_destroy:vC,close:Qi,closeModal:Qi,closePopup:Qi,closeToast:Qi,disableButtons:lC,disableInput:uC,disableLoading:hh,enableButtons:oC,enableInput:cC,getInput:aC,handleAwaitingPromise:Yu,hideLoading:hh,rejectPromise:eC,resetValidationMessage:fC,showValidationMessage:dC,update:yC});const gB=(e,t,n)=>{e.toast?yB(e,t,n):(bB(t),wB(t),xB(e,t,n))},yB=(e,t,n)=>{t.popup.onclick=()=>{e&&(vB(e)||e.timer||e.input)||n(Bl.close)}},vB=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ph=!1;const bB=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ph=!0)}}},wB=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(n){e.popup.onmouseup=()=>{},(n.target===e.popup||n.target instanceof HTMLElement&&e.popup.contains(n.target))&&(ph=!0)}}},xB=(e,t,n)=>{t.container.onclick=r=>{if(ph){ph=!1;return}r.target===t.container&&Yh(e.allowOutsideClick)&&n(Bl.backdrop)}},EB=e=>typeof e=="object"&&e.jquery,CS=e=>e instanceof Element||EB(e),SB=e=>{const t={};return typeof e[0]=="object"&&!CS(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((n,r)=>{const i=e[r];typeof i=="string"||CS(i)?t[n]=i:i!==void 0&&fo(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),t};function TB(...e){return new this(...e)}
1656function DB(e){class t extends this{_main(r,i){return super._main(r,Object.assign({},e,i))}}return t}const _B=()=>Me.timeout&&Me.timeout.getTimerLeft(),wC=()=>{if(Me.timeout)return j5(),Me.timeout.stop()},xC=()=>{if(Me.timeout){const e=Me.timeout.start();return ub(e),e}},CB=()=>{const e=Me.timeout;return e&&(e.running?wC():xC())},AB=e=>{if(Me.timeout){const t=Me.timeout.increase(e);return ub(t,!0),t}},kB=()=>!!(Me.timeout&&Me.timeout.isRunning());let AS=!1;const qy={};function RB(e="data-swal-template"){qy[e]=this,AS||(document.body.addEventListener("click",MB),AS=!0)}const MB=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const n in qy){const r=t.getAttribute(n);if(r){qy[n].fire({template:r});return}}};class NB{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,n){const r=this._getHandlersByEventName(t);r.includes(n)||r.push(n)}once(t,n){const r=(...i)=>{this.removeListener(t,r),n.apply(this,i)};this.on(t,r)}emit(t,...n){this._getHandlersByEventName(t).forEach(r=>{try{r.apply(this,n)}catch(i){console.error(i)}})}removeListener(t,n){const r=this._getHandlersByEventName(t),i=r.indexOf(n);i>-1&&r.splice(i,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}Me.eventEmitter=new NB;const OB=(e,t)=>{Me.eventEmitter.on(e,t)},PB=(e,t)=>{Me.eventEmitter.once(e,t)},jB=(e,t)=>{if(!e){Me.eventEmitter.reset();return}t?Me.eventEmitter.removeListener(e,t):Me.eventEmitter.removeAllListeners(e)};var LB=Object.freeze({__proto__:null,argsToParams:SB,bindClickHandler:RB,clickCancel:S6,clickConfirm:K_,clickDeny:E6,enableLoading:Sl,fire:TB,getActions:Vu,getCancelButton:Ll,getCloseButton:sb,getConfirmButton:Ma,getContainer:Vn,getDenyButton:ho,getFocusableElements:ob,getFooter:L_,getHtmlContainer:ab,getIcon:jl,getIconContent:A5,getImage:j_,getInputLabel:k5,getLoader:Il,getPopup:at,getProgressSteps:ib,getTimerLeft:_B,getTimerProgressBar:$h,getTitle:P_,getValidationMessage:qh,increaseTimer:AB,isDeprecatedParameter:mC,isLoading:M5,isTimerRunning:kB,isUpdatableParameter:pC,isValidParameter:hC,isVisible:x6,mixin:DB,off:jB,on:OB,once:PB,resumeTimer:xC,showLoading:Sl,stopTimer:wC,toggleTimer:CB});class IB{constructor(t,n){this.callback=t,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const n=this.running;return n&&this.stop(),this.remaining+=t,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const EC=["swal-title","swal-html","swal-footer"],BB=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const n=t.content;return $B(n),Object.assign(UB(n),HB(n),VB(n),zB(n),FB(n),YB(n),qB(n,EC))},UB=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(r=>{so(r,["name","value"]);const i=r.getAttribute("name"),o=r.getAttribute("value");!i||!o||(typeof pl[i]=="boolean"?t[i]=o!=="false":typeof pl[i]=="object"?t[i]=JSON.parse(o):t[i]=o)}),t},HB=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(r=>{const i=r.getAttribute("name"),o=r.getAttribute("value");!i||!o||(t[i]=new Function(`return ${o}`)())}),t},VB=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(r=>{so(r,["type","color","aria-label"]);const i=r.getAttribute("type");!i||!["confirm","cancel","deny"].includes(i)||(t[`${i}ButtonText`]=r.innerHTML,t[`show${tb(i)}Button`]=!0,r.hasAttribute("color")&&(t[`${i}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(t[`${i}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),t},zB=e=>{const t={},n=e.querySelector("swal-image");return n&&(so(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},FB=e=>{const t={},n=e.querySelector("swal-icon");return n&&(so(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},YB=e=>{const t={},n=e.querySelector("swal-input");n&&(so(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach(i=>
1656{so(i,["value"]);const o=i.getAttribute("value");if(!o)return;const c=i.innerHTML;t.inputOptions[o]=c})),t},qB=(e,t)=>{const n={};for(const r in t){const i=t[r],o=e.querySelector(i);o&&(so(o,[]),n[i.replace(/^swal-/,"")]=o.innerHTML.trim())}return n},$B=e=>{const t=EC.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(n=>{const r=n.tagName.toLowerCase();t.includes(r)||Hn(`Unrecognized element <${r}>`)})},so=(e,t)=>{Array.from(e.attributes).forEach(n=>{t.indexOf(n.name)===-1&&Hn([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},SC=10,WB=e=>{const t=Vn(),n=at();typeof e.willOpen=="function"&&e.willOpen(n),Me.eventEmitter.emit("willOpen",n);const i=window.getComputedStyle(document.body).overflowY;QB(t,n,e),setTimeout(()=>{KB(t,n)},SC),lb()&&(GB(t,e.scrollbarPadding,i),M6()),!Wh()&&!Me.previousActiveElement&&(Me.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(n)),Me.eventEmitter.emit("didOpen",n),Yr(t,ne["no-transition"])},mh=e=>{const t=at();if(e.target!==t)return;const n=Vn();t.removeEventListener("animationend",mh),t.removeEventListener("transitionend",mh),n.style.overflowY="auto"},KB=(e,t)=>{U_(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",mh),t.addEventListener("transitionend",mh)):e.style.overflowY="auto"},GB=(e,t,n)=>{N6(),t&&n!=="hidden"&&U6(n),setTimeout(()=>{e.scrollTop=0})},QB=(e,t,n)=>{ot(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),hn(t,"grid"),setTimeout(()=>{ot(t,n.showClass.popup),t.style.removeProperty("opacity")},SC)):hn(t,"grid"),ot([document.documentElement,document.body],ne.shown),n.heightAuto&&n.backdrop&&!n.toast&&ot([document.documentElement,document.body],ne["height-auto"])};var kS={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function XB(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=kS.email),e.input==="url"&&(e.inputValidator=kS.url))}function ZB(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(Hn('Target parameter is not valid, defaulting to "body"'),e.target="body")}function JB(e){XB(e),e.showLoaderOnConfirm&&!e.preConfirm&&Hn(`showLoaderOnConfirm is set to true, but preConfirm is not defined. 1657showLoaderOnConfirm should be used together with preConfirm, see usage example: 1658https://sweetalert2.github.io/#ajax-request`),ZB(e),typeof e.title=="string"&&(e.title=e.title.split(` 1659`).join("<br />")),F5(e)}let va;var hf=new WeakMap;class Jt{constructor(...t){if(w5(this,hf,void 0),typeof window>"u")return;va=this;const n=Object.freeze(this.constructor.argsToParams(t));this.params=n,this.isAwaitingPromise=!1,x5(hf,this,this._main(va.params))}_main(t,n={}){if(gC(Object.assign({},n,t)),Me.currentInstance){const o=El.swalPromiseResolve.get(Me.currentInstance),{isAwaitingPromise:c}=Me.currentInstance;Me.currentInstance._destroy(),c||o({isDismissed:!0}),lb()&&X_()}Me.currentInstance=va;const r=tU(t,n);JB(r),Object.freeze(r),Me.timeout&&(Me.timeout.stop(),delete Me.timeout),clearTimeout(Me.restoreFocusTimeout);const i=nU(va);return W_(va,r),Ct.innerParams.set(va,r),eU(va,i,r)}then(t){return bS(hf,this).then(t)}finally(t){return bS(hf,this).finally(t)}}const eU=(e,t,n)=>new Promise((r,i)=>{const o=c=>{e.close({isDismissed:!0,dismiss:c})};El.swalPromiseResolve.set(e,r),El.swalPromiseReject.set(e,i),t.confirmButton.onclick=()=>{nB(e)},t.denyButton.onclick=()=>{rB(e)},t.cancelButton.onclick=()=>{aB(e,o)},t.closeButton.onclick=()=>{o(Bl.close)},gB(n,t,o),T6(Me,n,o),W6(e,n),WB(n),rU(Me,n,o),aU(t,n),setTimeout(()=>{t.container.scrollTop=0})}),tU=(e,t)=>{const n=BB(e),r=Object.assign({},pl,t,n,e);return r.showClass=Object.assign({},pl.showClass,r.showClass),r.hideClass=Object.assign({},pl.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},nU=e=>{const t={popup:at(),container:Vn(),actions:Vu(),confirmButton:Ma(),denyButton:ho(),cancelButton:Ll(),loader:Il(),closeButton:sb(),val
1659idationMessage:qh(),progressSteps:ib()};return Ct.domCache.set(e,t),t},rU=(e,t,n)=>{const r=$h();Nn(r),t.timer&&(e.timeout=new IB(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(hn(r),mr(r,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ub(t.timer)})))},aU=(e,t)=>{if(!t.toast){if(!Yh(t.allowEnterKey)){O_("allowEnterKey"),oU();return}iU(e)||sU(e,t)||Yy(-1,1)}},iU=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const n of t)if(n instanceof HTMLElement&&Zn(n))return n.focus(),!0;return!1},sU=(e,t)=>t.focusDeny&&Zn(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&Zn(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&Zn(e.confirmButton)?(e.confirmButton.focus(),!0):!1,oU=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const n=document.createElement("audio");n.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",n.loop=!0,document.body.appendChild(n),setTimeout(()=>{n.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}Jt.prototype.disableButtons=lC;Jt.prototype.enableButtons=oC;Jt.prototype.getInput=aC;Jt.prototype.disableInput=uC;Jt.prototype.enableInput=cC;Jt.prototype.hideLoading=hh;Jt.prototype.disableLoading=hh;Jt.prototype.showValidationMessage=dC;Jt.prototype.resetValidationMessage=fC;Jt.prototype.close=Qi;Jt.prototype.closePopup=Qi;Jt.prototype.closeModal=Qi;Jt.prototype.closeToast=Qi;Jt.prototype.rejectPromise=eC;Jt.prototype.update=yC;Jt.prototype._destroy=vC;Object.assign(Jt,LB);Object.keys(mB).forEach(e=>{Jt[e]=function(...t){return va&&va[e]?va[e](...t):null}});Jt.DismissReason=Bl;Jt.version="11.22.0";const Ke=Jt;Ke.default=Ke;typeof document<"u"&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch{n.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;
1659--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;
1659align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);
1659box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word
vendor: 12,726 bytes, line 1659
1659-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:
1659scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}
1659100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const ct=({children:e,icon:t,variant:n="primary",loading:r=!1,className:i="",type:o="button",disabled:c=!1,...d})=>{const f="w-full flex items-center justify-center gap-2 px-4 py-2 rounded-md font-medium transition-all duration-200 cursor-pointer",h={primary:"bg-primary text-primary-content hover:bg-primary/90 focus:ring-2 focus:ring-primary/20",outline:"border border-primary/70 bg-base-100 text-base-content hover:border-primary hover:text-primary-content focus:ring-2 focus:ring-primary/20 hover:bg-primary",danger:"bg-error text-error-content hover:bg-error/90 focus:ring-2 focus:ring-error/20"},m=c||r?"opacity-50 cursor-not-allowed":"";return y.jsx("button",{type:o,disabled:c||r,className:`${f} ${h[n]} ${m} ${i}`,...d,children:r?y.jsx("span",{className:"loading loading-spinner loading-md"}):y.jsxs(y.Fragment,{children:[t&&y.jsx(t,{className:"w-5 h-5"}),e]})})},lU=()=>{const[e,t]=S.useState("light");return S.useEffect(()=>{const r=localStorage.getItem("theme")||"light";t(r),document.documentElement.setAttribute("data-theme",r)},[]),{theme:e,toggleTheme:()=>{const r=e==="light"?"dark":"light";localStorage.setItem("theme",r),document.documentElement.setAttribute("data-theme",r),t(r)}}},RS=()=>{const[e,t]=S.useState(!1),n=S.useRef(null);return S.useEffect(()=>{const o=d=>{n.current&&!n.current.contains(d.target)&&t(!1)},c=d=>{d.key==="Escape"&&t(!1)};if(e){const d=setTimeout(()=>{document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),document.addEventListener("keydown",c)},50);return()=>{clearTimeout(d),document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o),document.removeEventListener("keydown",c)}}},[e]),{isOpen:e,toggle:o=>{o==null||o.stopPropagation(),t(!e)},close:()=>t(!1),ref:n}},cU=()=>{const[e,t]=S.useState(!1);return S.useEffect(()=>{const n=()=>t(window.scrollY>10);return window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)},[]),e},MS=({user:e,onClick:t,tooltipId:n})=>y.jsx("div",{role:"button",className:"btn btn-ghost btn-circle avatar hover:ring-2 hover:ring-accent cursor-pointer",onClick:t,"data-tooltip-id":n,"data-tooltip-content":(e==null?void 0:e.displayName)||"User",children:y.jsx("div",{className:"w-10 rounded-full overflow-hidden",children:y.jsx("img",{src:(e==null?void 0:e.photoURL)||"/default-avatar.svg",alt:(e==null?void 0:e.displayName)||"User",className:"w-full h-full object-cover"})})}),TC=({onLinkClick:e,showUpcoming:t=!0})=>y.jsxs(y.Fragment,{children:[t&&y.jsx(Vs,{to:"/upcoming",className:"block px-3 py-2 text-sm text-base-content hover:bg-primary/20 hover:text-primary transition-colors rounded-md cursor-pointer",onClick:n=>{n.stopPropagation(),e()},children:"Upcoming Events"}),y.jsx(Vs,{to:"/create",className:"block px-3 py-2 text-sm text-base-content hover:bg-primary/20 hover:text-primary transition-colors rounded-md cursor-pointer",onClick:n=>{n.stopPropagation(),e()},children:"Create Event"}),y.jsx(Vs,{to:"/manage",className:"block px-3 py-2 text-sm text-base-content hover:bg-primary/20 hover:text-primary transition-colors rounded-md cursor-pointer",onClick:n=>{n.stopPropagation(),e()},children:"Manage Events"}),y.jsx(Vs,{to:"/joined",className:"block px-3 py-2 text-sm text-base-content hover:bg-primary/20 hover:text-primary transition-colors rounded-md cursor-pointer",onClick:n=>{n.stopPropagation(),e()},children:"Joined Events"})]}),uU=({user:e,isOpen:t,onClose:n,onLogout:r})=>t?y.jsxs("div",{className:"absolute right-0 top-full mt-2 w-64 bg-base-100 rounded-lg shadow-xl border border-base-300 z-[9999]",onClick:i=>i.stopPropagation(),onMouseDown:i=>i.stopPropagation(),children:[y.jsx("div",{className:"px-4 py-3 border-b border-base-300",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-12 h-12 rounded-full overflow-hidden",children:y.jsx("img",{src:e.photoURL||"/default-avatar.svg",alt:e.displayName||"User",className:"w-full h-full object-cover"})}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("p",{className:"font-semibold text-base-content truncate",children:e.displayName||"User"}),y.jsx("p",{className:"text-xs text-base-content/70 truncate",children:e.email})]})]})}),y.jsx("div",{className:"py-2 flex flex-col gap-1 mx-2",children:y.jsx(TC,{onLinkClick:n,showUpcoming:!1})}),y.jsx("div",{className:"border-t border-base-300 py-2 p-2",children:y.jsx("button",{onClick:()=>{n(),r()},className:"flex items-center gap-3 px-2 py-2 text-error hover:bg-error/10 transition-colors w-full text-left rounded-sm cursor-pointer",children:y.jsx("span",{children:"Logout"})})})]}):null,dU=({isOpen:e,onClose:t,onLogout:n})=>e?y.jsx("div",{className:"absolute right-0 top-full mt-2 w-52 bg-base-100 rounded-lg shadow-xl border border-base-300 z-[9999]",onClick:r=>r.stopPropagation(),onMouseDown:r=>r.stopPropagation(),children:y.jsxs("div",{className:"py-2 flex flex-col gap-1 mx-2",children:[y.jsx(TC,{onLinkClick:t}),y.jsx("div",{className:"border-t border-base-300 p-1",children:y.jsx("button",{onClick:()=>{t(),n()},className:"block w-full text-left px-2 py-2 mt-1 text-error hover:bg-error/10 transition-colors rounded-sm cursor-pointer",children:"Logout"})})]})}):null,fU=({isOpen:e,onClose:t})=>e?y.jsx("div",{className:"absolute right-0 top-full mt-2 w-52 bg-base-100 rounded-lg shadow-xl border border-base-300 z-[9999]",onClick:n=>n.stopPropagation(),onMouseDown:n=>n.stopPropagation(),children:y.jsxs("div",{className:"py-2 flex flex-col gap-1 mx-2",children:[y.jsx(Vs,{to:"/upcoming",className:"block px-3 py-2 text-sm text-base-content hover:bg-primary/20 hover:text-primary transition-colors rounded-md cursor-pointer",onClick:n=>{n.stopPropagation(),t()},children:"Upcoming Events"}),y.jsx(Au,{to:"/auth/login",className:"block px-3 py-2 text-sm text-base-content hover:bg-primary/20 hover:text-primary transition-colors rounded-md cursor-pointer",onClick:n=>{n.stopPropagation(),t()},children:"Login"})]})}):null,NS=({theme:e,onToggle:t,isAuthLayout:n})=>y.jsx("button",{onClick:t,className:`p-2.5 rounded-full hover:text-accent ${n?"bg-base-100":"bg-primary text-primary-content"}`,children:e==="light"?y.jsx(SI,{}):y.jsx(_I,{})}),hU=({isAuthLayout:e,theme:t})=>{const n=()=>e?t==="light"?"/uddyog-logo.png":"/uddyog-logo-white.png":t==="light"?"/uddyog-logo-white.png":"/uddyog-logo.png";return y.jsx(Au,{to:"/",children:y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("img",{className:`size-10 p-1 rounded-lg ${e?"bg-base-100":"bg-primary"}`,src:n(),alt:"Uddyog Logo"}),y.jsx("h1",{className:`text-2xl font-bold ${e?"text-base-100":"text-primary"}`,children:"Uddyog"})]})})},pU=({isAuthLayout:e,theme:t})=>{const n=()=>{let r="";return e?r+="bg-primary-content text-primary! hover:bg-primary-content/90!":r+="bg-primary!",t==="light"?r+=" bg-base-100!":r+=" bg-base-100 text-primary",r};return y.jsx(Au,{to:"/auth/login",children:y.jsx(ct,{className:n(),children:"Login"})})},DC=()=>{const{user:e,signOut:t}=hi(),n=Wr(),{theme:r,toggleTheme:i}=lU(),o=cU(),c=RS(),d=RS(),f=$r().pathname.startsWith("/auth"),h=async()=>{try{await t(),Ke.fire({title:"Logged Out",text:"You have been logged out successfully",icon:"success"}),n("/auth/login")}catch(m){console.error("Logout error:",m)}};return y.jsxs("div",{className:`fixed top-0 z-[1000] w-full h-16 transition-all duration-300 ${o?"backdrop-blur-lg shadow-sm":"bg-transparent shadow-none"}`,children:[y.jsxs("div",{className:"navbar max-w-7xl mx-auto px-4",children:[y.jsx("div",{className:"flex-1",children:y.jsx(hU,{isAuthLayout:f,theme:r})}),y.jsxs("div",{className:"hidden lg:flex gap-6 items-center",children:[y.jsx(Vs,{to:"/upcoming",className:`font-semibold hover:text-primary hover:shadow-2xl transition-colors ${f?"text-primary-content":"text-primary"}`,children:"Upcoming Events"}),y.jsx(NS,{theme:r,onToggle:i,isAuthLayout:f}),e?y.jsxs("div",{className:"relative",ref:c.ref,children:[y.jsx(MS,{user:e,onClick:c.toggle,tooltipId:"user-tooltip"}),y.jsx(uU,{user:e,isOpen:c.isOpen,onClose:c.close,onLogout:h})]}):y.jsx(pU,{isAuthLayout:f,theme:r})]}),y.jsxs("div",{className:"lg:hidden flex items-center gap-2",children:[y.jsx(NS,{theme:r,onToggle:i,isAuthLayout:f}),e?y.jsxs("div",{className:"relative",ref:c.ref,children:[y.jsx(MS,{user:e,onClick:c.toggle,tooltipId:"user-tooltip-mobile"}),y.jsx(dU,{isOpen:c.isOpen,onClose:c.close,onLogout:h})]}):y.jsxs("div",{className:"relative",ref:d.ref,children:[y.jsx("button",{className:`p-2.5 rounded-full hover:text-accent ${f?"bg-base-100":"bg-primary text-primary-content"}`,onClick:d.toggle,children:y.jsx(EI,{})}),y.jsx(fU,{isOpen:d.isOpen,onClose:d.close})]})]})]}),y.jsx(vS,{id:"user-tooltip",place:"bottom",className:"!bg-base-300 !text-base-content !border !border-base-content/20 !rounded-lg !text-sm !z-[10000]"}),y.jsx(vS,{id:"user-tooltip-mobile",place:"bottom",className:"!bg-base-300 !text-base-content !border !border-base-content/20 !rounded-lg !text-sm !z-[10000]"})]})};function mU(){return y.jsxs(y.Fragment,{children:[y.jsx(DC,{}),y.jsx("main",{className:"flex-1 relative z-10",children:y.jsx(fD,{})})]})}const gU=()=>y.jsxs("footer",{className:"bg-base-100 text-primary",children:[y.jsxs("div",{className:"max-w-7xl mx-auto py-10 px-4 grid grid-cols-1 md:grid-cols-3 gap-8",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"text-lg font-semibold",children:"Uddyog"}),y.jsx("p",{className:"text-sm mt-2 text-primary/80",children:"A community platform to create, join, and manage social events."})]}),y.jsxs("div",{children:[y.jsx("h2",{className:"text-lg font-semibold",children:"Links"}),y.jsxs("ul",{className:"text-sm mt-2 space-y-1",children:[y.jsx("li",{children:y.jsx("a",{href:"/upcoming",className:"hover:underline text-primary/80 hover:text-accent transition-colors",children:"Upcoming Events"})}),y.jsx("li",{children:y.jsx("a",{href:"/create",className:"hover:underline text-primary/80 hover:text-accent transition-colors",children:"Create Event"})}),y.jsx("li",{children:y.jsx("a",{href:"/joined",className:"hover:underline text-primary/80 hover:text-accent transition-colors",children:"Joined Events"})})]})]}),y.jsxs("div",{children:[y.jsx("h2",{className:"text-lg font-semibold",children:"Contact"}),y.jsx("p",{className:"text-sm mt-2 text-primary/80",children:"Email: [email protected]"}),y.jsx("p",{className:"text-sm text-primary/80",children:"Phone: +880-123-456789"})]})]}),y.jsxs("div",{className:"text-center py-4 bg-base-100 text-xs border-t border-primary/20",children:["© ",new Date().getFullYear()," Uddyog. All rights reserved."]})]}),yU=()=>y.jsxs("div",{className:"min-h-screen flex flex-col",children:[y.jsx(DC,{}),y.jsx("main",{className:"flex-1 relative z-10",children:y.jsx(fD,{})}),y.jsx(gU,{})]});function _C(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_C(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_C(e))&&(r&&(r+=" "),r+=t);return r}const CC=6048e5,vU=864e5,Gh=6e4,Qh=36e5,bU=1e3,OS=Symbol.for("constructDateFrom");function mt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&OS in e?e[OS](t):e instanceof Date?new e.constructor(t):new Date(t)}function De(e,t){return mt(t||e,e)}function sa(e,t,n){const r=De(e,n==null?void 0:n.in);return isNaN(t)?mt((n==null?void 0:n.in)||e,NaN):(t&&r.setDate(r.getDate()+t),r)}
vendor: 7,205 bytes, line 1659
1659function oa(e,t,n){const r=De(e,n==null?void 0:n.in);if(isNaN(t))return mt(e,NaN);if(!t)return r;const i=r.getDate(),o=mt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const c=o.getDate();return i>=c?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function AC(e,t,n){return mt(e,+De(e)+t)}function wU(e,t,n){return AC(e,t*Qh)}let xU={};function po(){return xU}function li(e,t){var d,f,h,m;const n=po(),r=(t==null?void 0:t.weekStartsOn)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??0,i=De(e,t==null?void 0:t.in),o=i.getDay(),c=(o<r?7:0)+o-r;return i.setDate(i.getDate()-c),i.setHours(0,0,0,0),i}function Tl(e,t){return li(e,{...t,weekStartsOn:1})}function kC(e,t){const n=De(e,t==null?void 0:t.in),r=n.getFullYear(),i=mt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Tl(i),c=mt(n,0);c.setFullYear(r,0,4),c.setHours(0,0,0,0);const d=Tl(c);return n.getTime()>=o.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function gh(e){const t=De(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function pi(e,...t){const n=mt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function oo(e,t){const n=De(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Dl(e,t,n){const[r,i]=pi(n==null?void 0:n.in,e,t),o=oo(r),c=oo(i),d=+o-gh(o),f=+c-gh(c);return Math.round((d-f)/vU)}function EU(e,t){const n=kC(e,t),r=mt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Tl(r)}function $y(e,t,n){const r=De(e,n==null?void 0:n.in);return r.setTime(r.getTime()+t*Gh),r}function gb(e,t,n){return oa(e,t*3,n)}function SU(e,t,n){return AC(e,t*1e3)}function yh(e,t,n){return sa(e,t*7,n)}function ti(e,t,n){return oa(e,t*12,n)}function PS(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=mt.bind(null,i));const o=De(i,r);(!n||n<o||isNaN(+o))&&(n=o)}),mt(r,n||NaN)}function jS(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=mt.bind(null,i));const o=De(i,r);(!n||n>o||isNaN(+o))&&(n=o)}),mt(r,n||NaN)}function TU(e,t,n){const[r,i]=pi(n==null?void 0:n.in,e,t);return+oo(r)==+oo(i)}function ni(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function vh(e){return!(!ni(e)&&typeof e!="number"||isNaN(+De(e)))}function bh(e,t,n){const[r,i]=pi(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),c=r.getMonth()-i.getMonth();return o*12+c}function Xs(e,t){const n=De(e,t==null?void 0:t.in);return Math.trunc(n.getMonth()/3)+1}function wh(e,t,n){const[r,i]=pi(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),c=Xs(r)-Xs(i);return o*4+c}function xh(e,t,n){const[r,i]=pi(n==null?void 0:n.in,e,t);return r.getFullYear()-i.getFullYear()}function DU(e,t,n){const[r,i]=pi(n==null?void 0:n.in,e,t),o=LS(r,i),c=Math.abs(Dl(r,i));r.setDate(r.getDate()-o*c);const d=+(LS(r,i)===-o),f=o*(c-d);return f===0?0:f}function LS(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function RC(e,t){const n=De(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function MC(e,t){const n=De(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Wy(e,t){const n=De(e,t==null?void 0:t.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}function NC(e,t){const n=De(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function OC(e,t){const n=De(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Xh(e,t){const n=De(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _U(e,t){var d,f;const n=po(),r=n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,i=De(e,t==null?void 0:t.in),o=i.getDay(),c=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+c),i.setHours(23,59,59,999),i}const CU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},AU=(e,t,n)=>{let r;const i=CU[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Wg(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const kU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},RU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},MU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NU={date:Wg({formats:kU,defaultWidth:"full"}),time:Wg({formats:RU,defaultWidth:"full"}),dateTime:Wg({formats:MU,defaultWidth:"full"})},OU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},PU=(e,t,n,r)=>OU[e];function qc(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,d=n!=null&&n.width?String(n.width):c;i=e.formattingValues[d]||e.formattingValues[c]}else{const c=e.defaultWidth,d=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[d]||e.values[c]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const jU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},LU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},IU={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},BU={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1659ay","Saturday"]},UU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},HU={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},VU=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},zU={ordinalNumber:VU,era:qc({values:jU,defaultWidth:"wide"}),quarter:qc({values:LU,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qc({values:IU,defaultWidth:"wide"}),day:qc({values:BU,defaultWidth:"wide"}),dayPeriod:qc({values:UU,defaultWidth:"wide",formattingValues:HU,defaultFormattingWidth:"wide"})};function $c(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const c=o[0],d=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(d)?YU(d,v=>v.test(c)):FU(d,v=>v.test(c));let h;h=e.valueCallback?e.valueCallback(f):f,h=n.valueCallback?n.valueCallback(h):h;const m=t.slice(c.length);return{value:h,rest:m}}}function FU(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function YU(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function qU(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let c=e.valueCallback?e.valueCallback(o[0]):o[0];c=n.valueCallback?n.valueCallback(c):c;const d=t.slice(i.length);return{value:c,rest:d}}}const $U=/^(\d+)(th|st|nd|rd)?/i,WU=/\d+/i,KU={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},GU={any:[/^b/i,/^(a|c)/i]},QU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},XU={any:[/1/i,/2/i,/3/i,/4/i]},ZU={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},JU={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},eH={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},tH={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},nH={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},rH={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},aH={ordinalNumber:qU({matchPattern:$U,parsePattern:WU,valueCallback:e=>parseInt(e,10)}),era:$c({matchPatterns:KU,defaultMatchWidth:"wide",parsePatterns:GU,defaultParseWidth:"any"}),quarter:$c({matchPatterns:QU,defaultMatchWidth:"wide",parsePatterns:XU,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$c({matchPatterns:ZU,defaultMatchWidth:"wide",parsePatterns:JU,defaultParseWidth:"any"}),day:$c({matchPatterns:eH,defaultMatchWidth:"wide",parsePatterns:tH,defaultParseWidth:"any"}),dayPeriod:$c({matchPatterns:nH,defaultMatchWidth:"any",parsePatterns:rH,defaultParseWidth:"any"})},PC={code:"en-US",formatDistance:AU,formatLong:NU,formatRelative:PU,localize:zU,match:aH,options:{weekStartsOn:0,firstWeekContainsDate:1}};function iH(e,t){const n=De(e,t==null?void 0:t.in);return Dl(n,Xh(n))+1}function yb(e,t){const n=De(e,t==null?void 0:t.in),r=+Tl(n)-+EU(n);return Math.round(r/CC)+1}function vb(e,t){var m,v,b,w;const n=De(e,t==null?void 0:t.in),r=n.getFullYear(),i=po(),o=(t==null?void 0:t.firstWeekContainsDate)??((v=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??i.firstWeekContainsDate??((w=(b=i.locale)==null?void 0:b.options)==null?void 0:w.firstWeekContainsDate)??1,c=mt((t==null?void 0:t.in)||e,0);c.setFullYear(r+1,0,o),c.setHours(0,0,0,0);const d=li(c,t),f=mt((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,o),f.setHours(0,0,0,0);const h=li(f,t);return+n>=+d?r+1:+n>=+h?r:r-1}function sH(e,t){var d,f,h,m;const n=po(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(h=n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,i=vb(e,t),o=mt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),li(o,t)}function jC(e,t){const n=De(e,t==null?void 0:t.in),r=+li(n,t)-+sH(n,t);return Math.round(r/CC)+1}function pt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Vi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return pt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):pt(n+1,2)},d(e,t){return pt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return pt(e.getHours()%12||12,t.length)},H(e,t){return pt(e.getHours(),t.length)},m(e,t){return pt(e.getMinutes(),t.length)},s(e,t){return pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return pt(i,t.length)}},Qo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},IS={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Vi.y(e,t)},Y:function(e,t,n,r){const i=vb(e,r),o=i>0?i:1-i;if(t==="YY"){const c=o%100;return pt(c,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):pt(o,t.length)},R:function(e,t){const n=kC(e);return pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return pt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return pt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return pt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Vi.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return pt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=jC(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):pt(i,t.length)},I:function(e,t,n){const r=yb(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):pt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Vi.d(e,t)},D:function(e,t,n){const r=iH(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):pt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return pt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return pt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return pt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Qo.noon:r===0?i=Qo.midnight:i=r/12>
vendor: 4,685 bytes, line 1659
1659=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Qo.evening:r>=12?i=Qo.afternoon:r>=4?i=Qo.morning:i=Qo.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Vi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Vi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):pt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):pt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Vi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Vi.s(e,t)},S:function(e,t){return Vi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return US(r);case"XXXX":case"XX":return Is(r);case"XXXXX":case"XXX":default:return Is(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return US(r);case"xxxx":case"xx":return Is(r);case"xxxxx":case"xxx":default:return Is(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+BS(r,":");case"OOOO":default:return"GMT"+Is(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+BS(r,":");case"zzzz":default:return"GMT"+Is(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return pt(r,t.length)},T:function(e,t,n){return pt(+e,t.length)}};function BS(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+pt(o,2)}function US(e,t){return e%60===0?(e>0?"-":"+")+pt(Math.abs(e)/60,2):Is(e,t)}function Is(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=pt(Math.trunc(r/60),2),o=pt(r%60,2);return n+i+t+o}const HS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},LC=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},oH=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return HS(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",HS(r,t)).replace("{{time}}",LC(i,t))},Ky={p:LC,P:oH},lH=/^D+$/,cH=/^Y+$/,uH=["D","DD","YY","YYYY"];function dH(e){return lH.test(e)}function fH(e){return cH.test(e)}function hH(e,t,n){const r=pH(e,t,n);if(console.warn(r),uH.includes(e))throw new RangeError(r)}function pH(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const mH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yH=/^'([^]*?)'?$/,vH=/''/g,bH=/[a-zA-Z]/;function VS(e,t,n){var m,v,b,w,x,T,D,_;const r=po(),i=(n==null?void 0:n.locale)??r.locale??PC,o=(n==null?void 0:n.firstWeekContainsDate)??((v=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??r.firstWeekContainsDate??((w=(b=r.locale)==null?void 0:b.options)==null?void 0:w.firstWeekContainsDate)??1,c=(n==null?void 0:n.weekStartsOn)??((T=(x=n==null?void 0:n.locale)==null?void 0:x.options)==null?void 0:T.weekStartsOn)??r.weekStartsOn??((_=(D=r.locale)==null?void 0:D.options)==null?void 0:_.weekStartsOn)??0,d=De(e,n==null?void 0:n.in);if(!vh(d))throw new RangeError("Invalid time value");let f=t.match(gH).map(k=>{const A=k[0];if(A==="p"||A==="P"){const V=Ky[A];return V(k,i.formatLong)}return k}).join("").match(mH).map(k=>{if(k==="''")return{isToken:!1,value:"'"};const A=k[0];if(A==="'")return{isToken:!1,value:wH(k)};if(IS[A])return{isToken:!0,value:k};
vendor: 31,129 bytes, line 1659
1659if(A.match(bH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return{isToken:!1,value:k}});i.localize.preprocessor&&(f=i.localize.preprocessor(d,f));const h={firstWeekContainsDate:o,weekStartsOn:c,locale:i};return f.map(k=>{if(!k.isToken)return k.value;const A=k.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&fH(A)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&dH(A))&&hH(A,t,String(e));const V=IS[A[0]];return V(d,A,i.localize,h)}).join("")}function wH(e){const t=e.match(yH);return t?t[1].replace(vH,"'"):e}function zS(e,t){return De(e,t==null?void 0:t.in).getDate()}function xH(e,t){return De(e,t==null?void 0:t.in).getDay()}function EH(e,t){const n=De(e,t==null?void 0:t.in),r=n.getFullYear(),i=n.getMonth(),o=mt(n,0);return o.setFullYear(r,i+1,0),o.setHours(0,0,0,0),o.getDate()}function SH(){return Object.assign({},po())}function ri(e,t){return De(e,t==null?void 0:t.in).getHours()}function TH(e,t){const n=De(e,t==null?void 0:t.in).getDay();return n===0?7:n}function ai(e,t){return De(e,t==null?void 0:t.in).getMinutes()}function kn(e,t){return De(e,t==null?void 0:t.in).getMonth()}function ts(e){return De(e).getSeconds()}function Gy(e){return+De(e)}function Ye(e,t){return De(e,t==null?void 0:t.in).getFullYear()}function is(e,t){return+De(e)>+De(t)}function lo(e,t){return+De(e)<+De(t)}function DH(e,t){return+De(e)==+De(t)}function _H(e,t){const n=CH(t)?new t(0):mt(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function CH(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}const AH=10;class IC{constructor(){me(this,"subPriority",0)}validate(t,n){return!0}}class kH extends IC{constructor(t,n,r,i,o){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=i,o&&(this.subPriority=o)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class RH extends IC{constructor(n,r){super();me(this,"priority",AH);me(this,"subPriority",-1);this.context=n||(i=>mt(r,i))}set(n,r){return r.timestampIsSet?n:mt(n,_H(n,this.context))}}class lt{run(t,n,r,i){const o=this.parse(t,n,r,i);return o?{setter:new kH(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,n,r){return!0}}class MH extends lt{constructor(){super(...arguments);me(this,"priority",140);me(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const Gt={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},xa={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Qt(e,t){return e&&{value:t(e.value),rest:e.rest}}function Lt(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ea(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,c=n[5]?parseInt(n[5],10):0;return{value:r*(i*Qh+o*Gh+c*bU),rest:t.slice(n[0].length)}}function BC(e){return Lt(Gt.anyDigitsSigned,e)}function zt(e,t){switch(e){case 1:return Lt(Gt.singleDigit,t);case 2:return Lt(Gt.twoDigits,t);case 3:return Lt(Gt.threeDigits,t);case 4:return Lt(Gt.fourDigits,t);default:return Lt(new RegExp("^\\d{1,"+e+"}"),t)}}function Eh(e,t){switch(e){case 1:return Lt(Gt.singleDigitSigned,t);case 2:return Lt(Gt.twoDigitsSigned,t);case 3:return Lt(Gt.threeDigitsSigned,t);case 4:return Lt(Gt.fourDigitsSigned,t);default:return Lt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function bb(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function UC(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const o=r+50,c=Math.trunc(o/100)*100,d=e>=o%100;i=e+c-(d?100:0)}return n?i:1-i}function HC(e){return e%400===0||e%4===0&&e%100!==0}class NH extends lt{constructor(){super(...arguments);me(this,"priority",130);me(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,i){const o=c=>({year:c,isTwoDigitYear:r==="yy"});switch(r){case"y":return Qt(zt(4,n),o);case"yo":return Qt(i.ordinalNumber(n,{unit:"year"}),o);default:return Qt(zt(r.length,n),o)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const o=n.getFullYear();if(i.isTwoDigitYear){const d=UC(i.year,o);return n.setFullYear(d,0,1),n.setHours(0,0,0,0),n}const c=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(c,0,1),n.setHours(0,0,0,0),n}}class OH extends lt{constructor(){super(...arguments);me(this,"priority",130);me(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,i){const o=c=>({year:c,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Qt(zt(4,n),o);case"Yo":return Qt(i.ordinalNumber(n,{unit:"year"}),o);default:return Qt(zt(r.length,n),o)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,o){const c=vb(n,o);if(i.isTwoDigitYear){const f=UC(i.year,c);return n.setFullYear(f,0,o.firstWeekContainsDate),n.setHours(0,0,0,0),li(n,o)}const d=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(d,0,o.firstWeekContainsDate),n.setHours(0,0,0,0),li(n,o)}}class PH extends lt{constructor(){super(...arguments);me(this,"priority",130);me(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Eh(r==="R"?4:r.length,n)}set(n,r,i){const o=mt(n,0);return o.setFullYear(i,0,4),o.setHours(0,0,0,0),Tl(o)}}class jH extends lt{constructor(){super(...arguments);me(this,"priority",130);me(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Eh(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class LH extends lt{constructor(){super(...arguments);me(this,"priority",120);me(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"Q":case"QQ":return zt(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class IH extends lt{constructor(){super(...arguments);me(this,"priority",120);me(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"q":case"qq":return zt(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class BH extends lt{constructor(){super(...arguments);me(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);me(this,"priority",110)}parse(n,r,i){const o=c=>c-1;switch(r){case"M":return Qt(Lt(Gt.month,n),o);case"MM":return Qt(zt(2,n),o);case"Mo":return Qt(i.ordinalNumber(n,{unit:"month"}),o);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class UH extends lt{constructor(){super(...arguments);me(this,"priority",110);me(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,i){const o=c=>c-1;switch(r){case"L":return Qt(Lt(Gt.month,n),o);case"LL":return Qt(zt(2,n),o);case"Lo":return Qt(i.ordinalNumber(n,{unit:"month"}),o);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function HH(e,t,n){const r=De(e,n==null?void 0:n.in),i=jC(r,n)-t;return r.setDate(r.getDate()-i*7),De(r,n==null?void 0:n.in)}class VH extends lt{constructor(){super(...arguments);me(this,"priority",100);me(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,i){switch(r){case"w":return Lt(Gt.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return zt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,o){return li(HH(n,i,o),o)}}function zH(e,t,n){const r=De(e,n==null?void 0:n.in),i=yb(r,n)-t;return r.setDate(r.getDate()-i*7),r}class FH extends lt{constructor(){super(...arguments);me(this,"priority",100);me(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,i){switch(r){case"I":return Lt(Gt.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return zt(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return Tl(zH(n,i))}}const YH=[31,28,31,30,31,30,31,31,30,31,30,31],qH=[31,29,31,30,31,30,31,31,30,31,30,31];class $H extends lt{constructor(){super(...arguments);me(this,"priority",90);me(this,"subPriority",1);me(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"d":return Lt(Gt.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return zt(r.length,n)}}validate(n,r){const i=n.getFullYear(),o=HC(i),c=n.getMonth();return o?r>=1&&r<=qH[c]:r>=1&&r<=YH[c]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class WH extends lt{constructor(){super(...arguments);me(this,"priority",90);me(this,"subpriority",1);me(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,i){switch(r){case"D":case"DD":return Lt(Gt.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return zt(r.length,n)}}validate(n,r){const i=n.getFullYear();return HC(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function wb(e,t,n){var v,b,w,x;const r=po(),i=(n==null?void 0:n.weekStartsOn)??((b=(v=n==null?void 0:n.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((x=(w=r.locale)==null?void 0:w.options)==null?void 0:x.weekStartsOn)??0,o=De(e,n==null?void 0:n.in),c=o.getDay(),f=(t%7+7)%7,h=7-i,m=t<0||t>6?t-(c+h)%7:(f+h)%7-(c+h)%7;return sa(o,m,n)}class KH extends lt{constructor(){super(...arguments);me(this,"priority",90);me(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=wb(n,i,o),n.setHours(0,0,0,0),n}}class GH extends lt{constructor(){super(...arguments);me(this,"priority",90);me(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,i,o){const c=d=>{const f=Math.floor((d-1)/7)*7;return(d+o.weekStartsOn+6)%7+f};switch(r){case"e":case"ee":return Qt(zt(r.length,n),c);case"eo":return Qt(i.ordinalNumber(n,{unit:"day"}),c);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=wb(n,i,o),n.setHours(0,0,0,0),n}}class QH extends lt{constructor(){super(...arguments);me(this,"priority",90);me(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,i,o){const c=d=>{const f=Math.floor((d-1)/7)*7;return(d+o.weekStartsOn+6)%7+f};switch(r){case"c":case"cc":return Qt(zt(r.length,n),c);case"co":return Qt(i.ordinalNumber(n,{unit:"day"}),c);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,o){return n=wb(n,i,o),n.setHours(0,0,0,0),n}}function XH(e,t,n){const r=De(e,n==null?void 0:n.in),i=TH(r,n),o=t-i;return sa(r,o,n)}class ZH extends lt{constructor(){super(...arguments);me(this,"priority",90);me(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,i){const o=c=>c===0?7:c;switch(r){case"i":case"ii":return zt(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return Qt(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o);case"iiiii":return Qt(i.day(n,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Qt(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Qt(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),o)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=XH(n,i),n.setHours(0,0,0,0),n}}class JH extends lt{constructor(){super(...arguments);me(this,"priority",80);me(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(bb(i),0,0,0),n}}class e8 extends lt{constructor(){super(...arguments);me(this,"priority",80);me(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(bb(i),0,0,0),n}}class t8 extends lt{constructor(){super(...arguments);me(this,"priority",80);me(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(bb(i),0,0,0),n}}class n8 extends lt{constructor(){super(...arguments);me(this,"priority",70);me(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,i){switch(r){case"h":return Lt(Gt.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return zt(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const o=n.getHours()>=12;return o&&i<12?n.setHours(i+12,0,0,0):!o&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class r8 extends lt{constructor(){super(...arguments);me(this,"priority",70);me(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,i){switch(r){case"H":return Lt(Gt.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return zt(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}}class a8 extends lt{constructor(){super(...arguments);me(this,"priority",70);me(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,i){switch(r){case"K":return Lt(Gt.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return zt(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class i8 extends lt{constructor(){super(...arguments);me(this,"priority",70);me(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,i){switch(r){case"k":return Lt(Gt.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return zt(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const o=i<=24?i%24:i;return n.setHours(o,0,0,0),n}}class s8 extends lt{constructor(){super(...arguments);me(this,"priority",60);me(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"m":return Lt(Gt.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return zt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}}class o8 extends lt{constructor(){super(...arguments);me(this,"priority",50);me(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"s":return Lt(Gt.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return zt(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}}class l8 extends lt{constructor(){super(...arguments);me(this,"priority",30);me(this,"incompatibleTokens",["t","T"])}parse(n,r){const i=o=>Math.trunc(o*Math.pow(10,-r.length+3));return Qt(zt(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}}class c8 extends lt{constructor(){super(...arguments);me(this,"priority",10);me(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Ea(xa.basicOptionalMinutes,n);case"XX":return Ea(xa.basic,n);case"XXXX":return Ea(xa.basicOptionalSeconds,n);case"XXXXX":return Ea(xa.extendedOptionalSeconds,n);case"XXX":default:return Ea(xa.extended,n)}}set(n,r,i){return r.timestampIsSet?n:mt(n,n.getTime()-gh(n)-i)}}class u8 extends lt{constructor(){super(...arguments);me(this,"priority",10);me(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Ea(xa.basicOptionalMinutes,n);case"xx":return Ea(xa.basic,n);case"xxxx":return Ea(xa.basicOptionalSeconds,n);case"xxxxx":return Ea(xa.extendedOptionalSeconds,n);case"xxx":default:return Ea(xa.extended,n)}}set(n,r,i){return r.timestampIsSet?n:mt(n,n.getTime()-gh(n)-i)}}class d8 extends lt{constructor(){super(...arguments);me(this,"priority",40);me(this,"incompatibleTokens","*")}parse(n){return BC(n)}set(n,r,i){return[mt(n,i*1e3),{timestampIsSet:!0}]}}class f8 extends lt{constructor(){super(...arguments);me(this,"priority",20);me(this,"incompatibleTokens","*")}parse(n){return BC(n)}set(n,r,i){return[mt(n,i),{timestampIsSet:!0}]}}const h8={G:new MH,y:new NH,Y:new OH,R:new PH,u:new jH,Q:new LH,q:new IH,M:new BH,L:new UH,w:new VH,I:new FH,d:new $H,D:new WH,E:new KH,e:new GH,c:new QH,i:new ZH,a:new JH,b:new e8,B:new t8,h:new n8,H:new r8,K:new a8,k:new i8,m:new s8,s:new o8,S:new l8,X:new c8,x:new u8,t:new d8,T:new f8},p8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g8=/^'([^]*?)'?$/,y8=/''/g,v8=/\S/,b8=/[a-zA-Z]/;function w8(e,t,n,r){var D,_,k,A,V,L,R,G;const i=()=>mt((r==null?void 0:r.in)||n,NaN),o=SH(),c=(r==null?void 0:r.locale)??o.locale??PC,d=(r==null?void 0:r.firstWeekContainsDate)??((_=(D=r==null?void 0:r.locale)==null?void 0:D.options)==null?void 0:_.firstWeekContainsDate)??o.firstWeekContainsDate??((A=(k=o.locale)==null?void 0:k.options)==null?void 0:A.firstWeekContainsDate)??1,f=(r==null?void 0:r.weekStartsOn)??((L=(V=r==null?void 0:r.locale)==null?void 0:V.options)==null?void 0:L.weekStartsOn)??o.weekStartsOn??((G=(R=o.locale)==null?void 0:R.options)==null?void 0:G.weekStartsOn)??0;if(!t)return e?i():De(n,r==null?void 0:r.in);const h={firstWeekContainsDate:d,weekStartsOn:f,locale:c},m=[new RH(r==null?void 0:r.in,n)],v=t.match(m8).map(F=>{const B=F[0];if(B in Ky){const le=Ky[B];return le(F,c.formatLong)}return F}).join("").match(p8),b=[];for(let F of v){const B=F[0],le=h8[B];if(le){const{incompatibleTokens:Z}=le;if(Array.isArray(Z)){const ge=b.find(oe=>Z.includes(oe.token)||oe.token===B);if(ge)throw new RangeError(`The format string mustn't contain \`${ge.fullToken}\` and \`${F}\` at the same time`)}else if(le.incompatibleTokens==="*"&&b.length>0)throw new RangeError(`The format string mustn't contain \`${F}\` and any other token at the same time`);b.push({token:B,fullToken:F});const ie=le.run(e,F,c.match,h);if(!ie)return i();m.push(ie.setter),e=ie.rest}else{if(B.match(b8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");if(F==="''"?F="'":B==="'"&&(F=x8(F)),e.indexOf(F)===0)e=e.slice(F.length);else return i()}}if(e.length>0&&v8.test(e))return i();const w=m.map(F=>F.priority).sort((F,B)=>B-F).filter((F,B,le)=>le.indexOf(F)===B).map(F=>m.filter(B=>B.priority===F).sort((B,le)=>le.subPriority-B.subPriority)).map(F=>F[0]);let x=De(n,r==null?void 0:r.in);if(isNaN(+x))return i();const T={};for(const F of w){if(!F.validate(x,h))return i();const B=F.set(x,T,h);Array.isArray(B)?(x=B[0],Object.assign(T,B[1])):x=B}return x}function x8(e){return e.match(g8)[1].replace(y8,"'")}function E8(e,t,n){const[r,i]=pi(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function S8(e,t,n){const[r,i]=pi(n==null?void 0:n.in,e,t);return+Wy(r)==+Wy(i)}function T8(e,t,n){const[r,i]=pi(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()}function yu(e,t,n){const r=+De(e,n==null?void 0:n.in),[i,o]=[+De(t.start,n==null?void 0:n.in),+De(t.end,n==null?void 0:n.in)].sort((c,d)=>c-d);return r>=i&&r<=o}function D8(e,t,n){return sa(e,-1,n)}function _8(e,t){const n=()=>mt(t==null?void 0:t.in,NaN),i=R8(e);let o;if(i.date){const h=M8(i.date,2);o=N8(h.restDateString,h.year)}if(!o||isNaN(+o))return n();const c=+o;let d=0,f;if(i.time&&(d=O8(i.time),isNaN(d)))return n();if(i.timezone){if(f=P8(i.timezone),isNaN(f))return n()}else{const h=new Date(c+d),m=De(0,t==null?void 0:t.in);return m.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),m.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),m}return De(c+d+f,t==null?void 0:t.in)}const pf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},C8=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,A8=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,k8=/^([+-])(\d{2})(?::?(\d{2}))?$/;function R8(e){const t={},n=e.split(pf.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],pf.timeZoneDelimiter.test(t.date)&&(t.date=e.split(pf.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=pf.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function M8(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function N8(e,t){if(t===null)return new Date(NaN);const n=e.match(C8);if(!n)return new Date(NaN);const r=!!n[4],i=Wc(n[1]),o=Wc(n[2])-1,c=Wc(n[3]),d=Wc(n[4]),f=Wc(n[5])-1;if(r)return U8(t,d,f)?j8(t,d,f):new Date(NaN);{const h=new Date(0);return!I8(t,o,c)||!B8(t,i)?new Date(NaN):(h.setUTCFullYear(t,o,Math.max(i,c)),h)}}function Wc(e){return e?parseInt(e):1}function O8(e){const t=e.match(A8);if(!t)return NaN;const n=Kg(t[1]),r=Kg(t[2]),i=Kg(t[3]);return H8(n,r,i)?n*Qh+r*Gh+i*1e3:NaN}function Kg(e){return e&&parseFloat(e.replace(",","."))||0}function P8(e){if(e==="Z")return 0;const t=e.match(k8);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return V8(r,i)?n*(r*Qh+i*Gh):NaN}function j8(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const L8=[31,null,31,30,31,30,31,31,30,31,30,31];function VC(e){return e%400===0||e%4===0&&e%100!==0}function I8(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(L8[t]||(VC(e)?29:28))}function B8(e,t){return t>=1&&t<=(VC(e)?366:365)}function U8(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function H8(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function V8(e,t){return t>=0&&t<=59}function Ir(e,t,n){const r=De(e,n==null?void 0:n.in),i=r.getFullYear(),o=r.getDate(),c=mt(e,0);c.setFullYear(i,t,15),c.setHours(0,0,0,0);const d=EH(c);return r.setMonth(t,Math.min(o,d)),r}function Nf(e,t,n){const r=De(e,n==null?void 0:n.in);return r.setHours(t),r}function Of(e,t,n){const r=De(e,n==null?void 0:n.in);return r.setMinutes(t),r}function Zo(e,t,n){const r=De(e,n==null?void 0:n.in),i=Math.trunc(r.getMonth()/3)+1,o=t-i;return Ir(r,r.getMonth()+o*3)}function Pf(e,t,n){const r=De(e,n==null?void 0:n.in);return r.setSeconds(t),r}function ba(e,t,n){const r=De(e,n==null?void 0:n.in);return isNaN(+r)?mt(e,NaN):(r.setFullYear(t),r)}function Zs(e,t,n){return oa(e,-t,n)}function zC(e,t,n){return gb(e,-1,n)}function FS(e,t,n){return yh(e,-1,n)}function _l(e,t,n){return ti(e,-t,n)}var z8=typeof document<"u",F8=function(){},Sh=z8?S.useLayoutEffect:F8;const Y8={...BT},q8=Y8.useInsertionEffect,$8=q8||(e=>e());function W8(e){const t=S.useRef(()=>{});return $8(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var FC=UT();const K8=Rl(FC);var G8=typeof document<"u",Q8=function(){},jf=G8?S.useLayoutEffect:Q8;function Th(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Th(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Th(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function YC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function YS(e,t){const n=YC(e);return Math.round(t*n)/n}function Gg(e){const t=S.useRef(e);return jf(()=>{t.current=e}),t}function X8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:c}={},transform:d=!0,whileElementsMounted:f,open:h}=e,[m,v]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=S.useState(r);Th(b,r)||w(r);const[x,T]=S.useState(null),[D,_]=S.useState(null),k=S.useCallback(ee=>{ee!==R.current&&(R.current=ee,T(ee))},[]),A=S.useCallback(ee=>{ee!==G.current&&(G.current=ee,_(ee))},[]),V=o||x,L=c||D,R=S.useRef(null),G=S.useRef(null),F=S.useRef(m),B=f!=null,le=Gg(f),Z=Gg(i),ie=Gg(h),ge=S.useCallback(()=>{if(!R.current||!G.current)return;const ee={placement:t,strategy:n,middleware:b};Z.current&&(ee.platform=Z.current),Hy(R.current,G.current,ee).then(ye=>{const M={...ye,isPositioned:ie.current!==!1};oe.current&&!Th(F.current,M)&&(F.current=M,FC.flushSync(()=>{v(M)}))})},[b,t,n,Z,ie]);jf(()=>{h===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,v(ee=>({...ee,isPositioned:!1})))},[h]);const oe=S.useRef(!1);jf(()=>(oe.current=!0,()=>{oe.current=!1}),[]),jf(()=>{if(V&&(R.current=V),L&&(G.current=L),V&&L){if(le.current)return le.current(V,L,ge);ge()}},[V,L,ge,le,B]);const ce=S.useMemo(()=>({reference:R,floating:G,setReference:k,setFloating:A}),[k,A]),O=S.useMemo(()=>({reference:V,floating:L}),[V,L]),z=S.useMemo(()=>{const ee={position:n,left:0,top:0};if(!O.floating)return ee;const ye=YS(O.floating,m.x),M=YS(O.floating,m.y);return d?{...ee,transform:"translate("+ye+"px, "+M+"px)",...YC(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ye,top:M}},[n,d,O.floating,m.x,m.y]);return S.useMemo(()=>({...m,update:ge,refs:ce,elements:O,floatingStyles:z}),[m,ge,ce,O,z])}const Z8=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Uy({element:r.current,padding:i}).fn(n):{}:r?Uy({element:r,padding:i}).fn(n):{}}}},J8=(e,t)=>
1659({...C_(e),options:[e,t]}),eV=(e,t)=>({...A_(e),options:[e,t]}),tV=(e,t)=>({...Z8(e),options:[e,t]}),nV={...BT};let qS=!1,rV=0;const $S=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+rV++;function aV(){const[e,t]=S.useState(()=>qS?$S():void 0);return Sh(()=>{e==null&&t($S())},[]),S.useEffect(()=>{qS=!0},[]),e}const iV=nV.useId,qC=iV||aV,sV=S.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:o,shift:c}},width:d=14,height:f=7,tipRadius:h=0,strokeWidth:m=0,staticOffset:v,stroke:b,d:w,style:{transform:x,...T}={},...D}=t,_=qC(),[k,A]=S.useState(!1);if(Sh(()=>{if(!i)return;Fr(i).direction==="rtl"&&A(!0)},[i]),!i)return null;const[V,L]=r.split("-"),R=V==="top"||V==="bottom";let G=v;(R&&c!=null&&c.x||!R&&c!=null&&c.y)&&(G=null);const F=m*2,B=F/2,le=d/2*(h/-8+1),Z=f/2*h/4,ie=!!w,ge=G&&L==="end"?"bottom":"top";let oe=G&&L==="end"?"right":"left";G&&k&&(oe=L==="end"?"left":"right");const ce=(o==null?void 0:o.x)!=null?G||o.x:"",O=(o==null?void 0:o.y)!=null?G||o.y:"",z=w||"M0,0"+(" H"+d)+(" L"+(d-le)+","+(f-Z))+(" Q"+d/2+","+f+" "+le+","+(f-Z))+" Z",ee={top:ie?"rotate(180deg)":"",left:ie?"rotate(90deg)":"rotate(-90deg)",bottom:ie?"":"rotate(180deg)",right:ie?"rotate(-90deg)":"rotate(90deg)"}[V];return y.jsxs("svg",{...D,"aria-hidden":!0,ref:n,width:ie?d:d+F,height:d,viewBox:"0 0 "+d+" "+(f>d?f:d),style:{position:"absolute",pointerEvents:"none",[oe]:ce,[ge]:O,[V]:R||ie?"100%":"calc(100% - "+F/2+"px)",transform:[ee,x].filter(ye=>!!ye).join(" "),...T},children:[F>0&&y.jsx("path",{clipPath:"url(#"+_+")",fill:"none",stroke:b,strokeWidth:F+(w?0:1),d:z}),y.jsx("path",{stroke:F&&!w?D.fill:"none",d:z}),y.jsx("clipPath",{id:_,children:y.jsx("rect",{x:-B,y:B*(ie?-1:1),width:d+F,height:d})})]})});function oV(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const lV=S.createContext(null),cV=S.createContext(null),uV=()=>{var e;return((e=S.useContext(lV))==null?void 0:e.id)||null},dV=()=>S.useContext(cV);function fV(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=qC(),o=S.useRef({}),[c]=S.useState(()=>oV()),d=uV()!=null,[f,h]=S.useState(r.reference),m=W8((w,x,T)=>{o.current.openEvent=w?x:void 0,c.emit("openchange",{open:w,event:x,reason:T,nested:d}),n==null||n(w,x,T)}),v=S.useMemo(()=>({setPositionReference:h}),[]),b=S.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return S.useMemo(()=>({dataRef:o,open:t,onOpenChange:m,elements:b,events:c,floatingId:i,refs:v}),[t,m,b,c,i,v])}function hV(e){e===void 0&&(e={});const{nodeId:t}=e,n=fV({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,c]=S.useState(null),[d,f]=S.useState(null),m=(i==null?void 0:i.domReference)||o,v=S.useRef(null),b=dV();Sh(()=>{m&&(v.current=m)},[m]);const w=X8({...e,elements:{...i,...d&&{reference:d}}}),x=S.useCallback(A=>{const V=In(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;f(V),w.refs.setReference(V)},[w.refs]),T=S.useCallback(A=>{(In(A)||A===null)&&(v.current=A,c(A)),(In(w.refs.reference.current)||w.refs.reference.current===null||A!==null&&!In(A))&&w.refs.setReference(A)},[w.refs]),D=S.useMemo(()=>({...w.refs,setReference:T,setPositionReference:x,domReference:v}),[w.refs,T,x]),_=S.useMemo(()=>({...w.elements,domReference:m}),[w.elements,m]),k=S.useMemo(()=>({...w,...r,refs:D,elements:_,nodeId:t}),[w,D,_,t,r]);return Sh(()=>{r.dataRef.current.floatingContext=k;const A=b==null?void 0:b.nodesRef.current.find(V=>V.id===t);A&&(A.context=k)}),S.useMemo(()=>({...w,context:k,refs:D,elements:_}),[w,D,_,k])}/*! 1660 react-datepicker v8.4.0 1661 https://github.com/Hacker0x01/react-datepicker 1662 Released under the MIT License. 1663*/var Qy=function(t,n){return Qy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},Qy(t,n)};function pn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qy(e,t);function n(){this.constructor=e}
1663e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var nt=function(){return nt=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(n[c]=r[c])}return n},nt.apply(this,arguments)};function Sa(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var pV=function(e){var t=e.showTimeSelectOnly,n=t===void 0?!1:t,r=e.showTime,i=r===void 0?!1:r,o=e.className,c=e.children,d=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return W.createElement("div",{className:o,role:"dialog","aria-label":d,"aria-modal":"true"},c)},mV=function(e,t){var n=S.useRef(null),r=S.useRef(e);r.current=e;var i=S.useCallback(function(o){var c,d=o.composed&&o.composedPath&&o.composedPath().find(function(f){return f instanceof Node})||o.target;n.current&&!n.current.contains(d)&&(t&&d instanceof HTMLElement&&d.classList.contains(t)||(c=r.current)===null||c===void 0||c.call(r,o))},[t]);return S.useEffect(function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}},[i]),n},Zh=function(e){var t=e.children,n=e.onClickOutside,r=e.className,i=e.containerRef,o=e.style,c=e.ignoreClass,d=mV(n,c);return W.createElement("div",{className:r,style:o,ref:function(f){d.current=f,i&&(i.current=f)}},t)},ve;(function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"})(ve||(ve={}));function $C(){var e=typeof window<"u"?window:globalThis;return e}var qu=12;function ut(e){if(e==null)return new Date;var t=typeof e=="string"?_8(e):De(e);return Jh(t)?t:new Date}function Qg(e,t,n,r,i){i===void 0&&(i=ut());for(var o=Cl(n)||Cl(xb()),c=Array.isArray(t)?t:[t],d=0,f=c;d<f.length;d++){var h=f[d],m=w8(e,h,i,{locale:o});if(Jh(m)&&(!r||e===Ot(m,h,n)))return m}return null}function Jh(e,t){return vh(e)&&!lo(e,new Date("1/1/1800"))}function Ot(e,t,n){if(n==="en")return VS(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?Cl(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),r=r||Cl(xb()),VS(e,t,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Lr(e,t){var n=t.dateFormat,r=t.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return e&&Ot(e,i,r)||""}var WC=" - ";function gV(e,t,n){if(!e)return"";var r=Lr(e,n),i=t?Lr(t,n):"";return"".concat(r).concat(WC).concat(i)}function yV(e,t){if(!(e!=null&&e.length))return"";var n=e[0]?Lr(e[0],t):"";if(e.length===1)return n;if(e.length===2&&e[1]){var r=Lr(e[1],t);return"".concat(n,", ").concat(r)}var i=e.length-1;return"".concat(n," (+").concat(i,")")}function Xg(e,t){var n=t.hour,r=n===void 0?0:n,i=t.minute,o=i===void 0?0:i,c=t.second,d=c===void 0?0:c;return Nf(Of(Pf(e,d),o),r)}function vV(e){return yb(e)}function bV(e,t){return Ot(e,"ddd",t)}function Lf(e){return oo(e)}function ns(e,t,n){var r=Cl(t||xb());return li(e,{locale:r,weekStartsOn:n})}function ii(e){return NC(e)}function tu(e){return Xh(e)}function WS(e){return Wy(e)}function KS(){return oo(ut())}function GS(e){return RC(e)}function wV(e){return _U(e)}function xV(e){return MC(e)}function wa(e,t){return e&&t?T8(e,t):!e&&!t}function Ln(e,t){return e&&t?E8(e,t):!e&&!t}function Dh(e,t){return e&&t?S8(e,t):!e&&!t}function tt(e,t){return e&&t?TU(e,t):!e&&!t}function Ys(e,t){return e&&t?DH(e,t):!e&&!t}function nu(e,t,n){var r,i=oo(t),o=RC(n);try{r=yu(e,{start:i,end:o})}catch{r=!1}return r}function xb(){var e=$C();return e.__localeId__}function Cl(e){if(typeof e=="string"){var t=$C();return t.__localeData__?t.__localeData__[e]:void 0}else return e}function EV(e,t,n){return t(Ot(e,"EEEE",n))}function SV(e,t){return Ot(e,"EEEEEE",t)}function TV(e,t){return Ot(e,"EEE",t)}function Eb(e,t){return Ot(Ir(ut(),e),"LLLL",t)}function KC(e,t){return Ot(Ir(ut(),e),"LLL",t)}function DV(e,t){return Ot(Zo(ut(),e),"QQQ",t)}function Br(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,c=n.excludeDateIntervals,d=n.includeDates,f=n.includeDateIntervals,h=n.filterDate;return $u(e,{minDate:r,maxDate:i})||o&&o.some(function(m){return m instanceof Date?tt(e,m):tt(e,m.date)})||c&&c.some(function(m){var v=m.start,b=m.end;return yu(e,{start:v,end:b})})||d&&!d.some(function(m){return tt(e,m)})||f&&!f.some(function(m){var v=m.start,b=m.end;return yu(e,{start:v,end:b})})||h&&!h(ut(e))||!1}function Sb(e,t){var n=t===void 0?{}:t,r=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some(function(o){var c=o.start,d=o.end;return yu(e,{start:c,end:d})}
1663):r&&r.some(function(o){var c;return o instanceof Date?tt(e,o):tt(e,(c=o.date)!==null&&c!==void 0?c:new Date)})||!1}function GC(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,c=n.includeDates,d=n.filterDate;return $u(e,{minDate:r?NC(r):void 0,maxDate:i?MC(i):void 0})||(o==null?void 0:o.some(function(f){return Ln(e,f instanceof Date?f:f.date)}))||c&&!c.some(function(f){return Ln(e,f)})||d&&!d(ut(e))||!1}function mf(e,t,n,r){var i=Ye(e),o=kn(e),c=Ye(t),d=kn(t),f=Ye(r);return i===c&&i===f?o<=n&&n<=d:i<c?f===i&&o<=n||f===c&&d>=n||f<c&&f>i:!1}function _V(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,c=n.includeDates;return $u(e,{minDate:r,maxDate:i})||o&&o.some(function(d){return Ln(d instanceof Date?d:d.date,e)})||c&&!c.some(function(d){return Ln(d,e)})||!1}function gf(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,c=n.includeDates,d=n.filterDate;return $u(e,{minDate:r,maxDate:i})||(o==null?void 0:o.some(function(f){return Dh(e,f instanceof Date?f:f.date)}))||c&&!c.some(function(f){return Dh(e,f)})||d&&!d(ut(e))||!1}function yf(e,t,n){if(!t||!n||!vh(t)||!vh(n))return!1;var r=Ye(t),i=Ye(n);return r<=e&&i>=e}function If(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.maxDate,o=n.excludeDates,c=n.includeDates,d=n.filterDate,f=new Date(e,0,1);return $u(f,{minDate:r?Xh(r):void 0,maxDate:i?OC(i):void 0})||(o==null?void 0:o.some(function(h){return wa(f,h instanceof Date?h:h.date)}))||c&&!c.some(function(h){return wa(f,h)})||d&&!d(ut(f))||!1}function vf(e,t,n,r){var i=Ye(e),o=Xs(e),c=Ye(t),d=Xs(t),f=Ye(r);return i===c&&i===f?o<=n&&n<=d:i<c?f===i&&o<=n||f===c&&d>=n||f<c&&f>i:!1}function $u(e,t){var n,r=t===void 0?{}:t,i=r.minDate,o=r.maxDate;return(n=i&&Dl(e,i)<0||o&&Dl(e,o)>0)!==null&&n!==void 0?n:!1}function QS(e,t){return t.some(function(n){return ri(n)===ri(e)&&ai(n)===ai(e)&&ts(n)===ts(e)})}function XS(e,t){var n=t===void 0?{}:t,r=n.excludeTimes,i=n.includeTimes,o=n.filterTime;return r&&QS(e,r)||i&&!QS(e,i)||o&&!o(e)||!1}function ZS(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i=ut();i=Nf(i,ri(e)),i=Of(i,ai(e)),i=Pf(i,ts(e));var o=ut();o=Nf(o,ri(n)),o=Of(o,ai(n)),o=Pf(o,ts(n));var c=ut();c=Nf(c,ri(r)),c=Of(c,ai(r)),c=Pf(c,ts(r));var d;try{d=!yu(i,{start:o,end:c})}catch{d=!1}return d}function JS(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=Zs(e,1);return r&&bh(r,o)>0||i&&i.every(function(c){return bh(c,o)>0})||!1}function e2(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=oa(e,1);return r&&bh(o,r)>0||i&&i.every(function(c){return bh(o,c)>0})||!1}function CV(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=Xh(e),c=zC(o);return r&&wh(r,c)>0||i&&i.every(function(d){return wh(d,c)>0})||!1}function AV(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=OC(e),c=gb(o,1);return r&&wh(c,r)>0||i&&i.every(function(d){return wh(c,d)>0})||!1}function t2(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.includeDates,o=_l(e,1);return r&&xh(r,o)>0||i&&i.every(function(c){return xh(c,o)>0})||!1}function kV(e,t){var n=t===void 0?{}:t,r=n.minDate,i=n.yearItemNumber,o=i===void 0?qu:i,c=tu(_l(e,o)),d=Xi(c,o).endPeriod,f=r&&Ye(r);return f&&f>d||!1}function n2(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.includeDates,o=ti(e,1);return r&&xh(o,r)>0||i&&i.every(function(c){return xh(o,c)>0})||!1}function RV(e,t){var n=t===void 0?{}:t,r=n.maxDate,i=n.yearItemNumber,o=i===void 0?qu:i,c=ti(e,o),d=Xi(c,o).startPeriod,f=r&&Ye(r);return f&&f<d||!1}function QC(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Dl(i,t)>=0});return jS(r)}else return n?jS(n):t}function XC(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(i){return Dl(i,t)<=0});return PS(r)}else return n?PS(n):t}function r2(e,t){var n;e===void 0&&(e=[]),t===void 0&&(t="react-datepicker__day--highlighted");for(var r=new Map,i=0,o=e.length;i<o;i++){var c=e[i];if(ni(c)){var d=Ot(c,"MM.dd.yyyy"),f=r.get(d)||[];f.includes(t)||(f.push(t),r.set(d,f))}
1663else if(typeof c=="object"){var h=Object.keys(c),m=(n=h[0])!==null&&n!==void 0?n:"",v=c[m];if(typeof m=="string"&&Array.isArray(v))for(var b=0,w=v.length;b<w;b++){var x=v[b];if(x){var d=Ot(x,"MM.dd.yyyy"),f=r.get(d)||[];f.includes(m)||(f.push(m),r.set(d,f))}}}}return r}function MV(e,t){return e.length!==t.length?!1:e.every(function(n,r){return n===t[r]})}function NV(e,t){e===void 0&&(e=[]),t===void 0&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach(function(r){var i=r.date,o=r.holidayName;if(ni(i)){var c=Ot(i,"MM.dd.yyyy"),d=n.get(c)||{className:"",holidayNames:[]};if(!("className"in d&&d.className===t&&MV(d.holidayNames,[o]))){d.className=t;var f=d.holidayNames;d.holidayNames=f?Sa(Sa([],f,!0),[o],!1):[o],n.set(c,d)}}}),n}function OV(e,t,n,r,i){for(var o=i.length,c=[],d=0;d<o;d++){var f=e,h=i[d];h&&(f=wU(f,ri(h)),f=$y(f,ai(h)),f=SU(f,ts(h)));var m=$y(e,(n+1)*r);is(f,t)&&lo(f,m)&&h!=null&&c.push(h)}return c}function a2(e){return e<10?"0".concat(e):"".concat(e)}function Xi(e,t){t===void 0&&(t=qu);var n=Math.ceil(Ye(e)/t)*t,r=n-(t-1);return{startPeriod:r,endPeriod:n}}function PV(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}function i2(e){var t=e.getSeconds(),n=e.getMilliseconds();return De(e.getTime()-t*1e3-n)}function jV(e,t){return i2(e).getTime()===i2(t).getTime()}function s2(e){if(!ni(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function o2(e,t){if(!ni(e)||!ni(t))throw new Error("Invalid date received");var n=s2(e),r=s2(t);return lo(n,r)}function ZC(e){return e.key===ve.Space}var LV=function(e){pn(t,e);function t(n){var r=e.call(this,n)||this;return r.inputRef=W.createRef(),r.onTimeChange=function(i){var o,c;r.setState({time:i});var d=r.props.date,f=d instanceof Date&&!isNaN(+d),h=f?d:new Date;if(i!=null&&i.includes(":")){var m=i.split(":"),v=m[0],b=m[1];h.setHours(Number(v)),h.setMinutes(Number(b))}(c=(o=r.props).onChange)===null||c===void 0||c.call(o,h)},r.renderTimeInput=function(){var i=r.state.time,o=r.props,c=o.date,d=o.timeString,f=o.customTimeInput;return f?S.cloneElement(f,{date:c,value:i,onChange:r.onTimeChange}):W.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var h;(h=r.inputRef.current)===null||h===void 0||h.focus()},required:!0,value:i,onChange:function(h){r.onTimeChange(h.target.value||d)}})},r.state={time:r.props.timeString},r}return t.getDerivedStateFromProps=function(n,r){return n.timeString!==r.time?{time:n.timeString}:null},t.prototype.render=function(){return W.createElement("div",{className:"react-datepicker__input-time-container"},W.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),W.createElement("div",{className:"react-datepicker-time__input-container"},W.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t}(S.Component),IV=function(e){pn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.dayEl=S.createRef(),n.handleClick=function(r){!n.isDisabled()&&n.props.onClick&&n.props.onClick(r)},n.handleMouseEnter=function(r){!n.isDisabled()&&n.props.onMouseEnter&&n.props.onMouseEnter(r)},n.handleOnKeyDown=function(r){var i,o,c=r.key;c===ve.Space&&(r.preventDefault(),r.key=ve.Enter),(o=(i=n.props).handleOnKeyDown)===null||o===void 0||o.call(i,r)},n.isSameDay=function(r){return tt(n.props.day,r)},n.isKeyboardSelected=function(){var r;if(n.props.disabledKeyboardNavigation)return!1;var i=n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(c){return n.isSameDayOrWeek(c)}):n.isSameDayOrWeek(n.props.selected),o=n.props.preSelection&&n.isDisabled(n.props.preSelection);return!i&&n.isSameDayOrWeek(n.props.preSelection)&&!o},n.isDisabled=function(r){return r===void 0&&(r=n.props.day),Br(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(){return Sb(n.props.day,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.isStartOfWeek=function(){return tt(n.props.day,ns(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameWeek=function(r){return n.props.showWeekPicker&&tt(r,ns(n.props.day,n.props.locale,n.props.calendarStartDay))},n.isSameDayOrWeek=function(r){return n.isSameDay(r)||n.isSameWeek(r)},n.getHighLightedClass=function(){var r=n.props,i=r.day,o=r.highlightDates;if(!o)return!1;var c=Ot(i,"MM.dd.yyyy");return o.get(c)},n.getHolidaysClass=function(){var r,i=n.props,o=i.day,c=i.holidays;if(!c)return[void 0];var d=Ot(o,"MM.dd.yyyy");return c.has(d)?[(r=c.get(d))===null||r===void 0?void 0:r.className]:[void 0]},n.isInRange=function(){var r=n.props,i=r.day,o=r.startDate,c=r.endDate;return!o||!c?!1:nu(i,o,c)},n.isInSelectingRange=function(){var r,i=n.props,o=i.day,c=i.selectsStart,d=i.selectsEnd,f=i.selectsRange,h=i.selectsDisabledDaysInRange,m=i.startDate,v=i.endDate,b=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return!(c||d||f)||!b||!h&&n.isDisabled()?!1:c&&v&&(lo(b,v)||Ys(b,v))?nu(o,b,v):d&&m&&(is(b,m)||Ys(b,m))||f&&m&&!v&&(is(b,m)||Ys(b,m))?nu(o,m,b):!1},n.isSelectingRangeStart=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,o=i.day,c=i.startDate,d=i.selectsStart,f=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return d?tt(o,f):tt(o,c)},n.isSelectingRangeEnd=function(){var r;if(!n.isInSelectingRange())return!1;var i=n.props,o=i.day,c=i.endDate,d=i.selectsEnd,f=i.selectsRange,h=(r=n.props.selectingDate)!==null&&r!==void 0?r:n.props.preSelection;return d||f?tt(o,h):tt(o,c)},n.isRangeStart=function(){var r=n.props,i=r.day,o=r.startDate,c=r.endDate;return!o||!c?!1:tt(o,i)},n.isRangeEnd=function(){var r=n.props,i=r.day,o=r.startDate,c=r.endDate;return!o||!c?!1:tt(c,i)},n.isWeekend=function(){var r=xH(n.props.day);return r===0||r===6},n.isAfterMonth=function(){return n.props.month!==void 0&&(n.props.month+1)%12===kn(n.props.day)},n.isBeforeMonth=function(){return n.props.month!==void 0&&(kn(n.props.day)+1)%12===n.props.month},n.isCurrentDay=function(){return n.isSameDay(ut())},n.isSelected=function(){var r;return n.props.selectsMultiple?(r=n.props.selectedDates)===null||r===void 0?void 0:r.some(function(i){return n.isSameDayOrWeek(i)}):n.isSameDayOrWeek(n.props.selected)},n.getClassNames=function(r){var i=n.props.dayClassName?n.props.dayClassName(r):void 0;return Sn("react-datepicker__day",i,"react-datepicker__day--"+bV(n.props.day),{"react-datepicker__day--disabled":n.isDisabled(),"react-datepicker__day--excluded":n.isExcluded(),"react-datepicker__day--selected":n.isSelected(),"react-datepicker__day--keyboard-selected":n.isKeyboardSelected(),"react-datepicker__day--range-start":n.isRangeStart(),"react-datepicker__day--range-end":n.isRangeEnd(),"react-datepicker__day--in-range":n.isInRange(),"react-datepicker__day--in-selecting-range":n.isInSelectingRange(),"react-datepicker__day--selecting-range-start":n.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":n.isSelectingRangeEnd(),"react-datepicker__day--today":n.isCurrentDay(),"react-datepicker__day--weekend":n.isWeekend(),"react-datepicker__day--outside-month":n.isAfterMonth()||n.isBeforeMonth()},n.getHighLightedClass(),n.getHolidaysClass())},n.getAriaLabel=function(){var r=n.props,i=r.day,o=r.ariaLabelPrefixWhenEnabled,c=o===void 0?"Choose":o,d=r.ariaLabelPrefixWhenDisabled,f=d===void 0?"Not available":d,h=n.isDisabled()||n.isExcluded()?f:c;return"".concat(h," ").concat(Ot(i,"PPPP",n.props.locale))},n.getTitle=function(){var r=n.props,i=r.day,o=r.holidays,c=o===void 0?new Map:o,d=r.excludeDates,f=Ot(i,"MM.dd.yyyy"),h=[];return c.has(f)&&h.push.apply(h,c.get(f).holidayNames),n.isExcluded()&&h.push(d==null?void 0:d.filter(function(m){return m instanceof Date?tt(m,i):tt(m==null?void 0:m.date,i)}).map(function(m){if(!(m instanceof Date))return m==null?void 0:m.message})),h.join(", ")},n.getTabIndex=function(){var r=n.props.selected,i=n.props.preSelection,o=!(n.props.showWeekPicker&&(n.props.showWeekNumber||!n.isStartOfWeek()))&&(n.isKeyboardSelected()||n.isSameDay(r)&&tt(i,r))?0:-1;return o},n.handleFocusDay=function(){var r;n.shouldFocusDay()&&((r=n.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},n.renderDayContents=function(){return n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()||n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()?null:n.props.renderDayContents?n.props.renderDayContents(zS(n.props.day),n.props.day):zS(n.props.day)},n.render=function(){return W.createElement("div",{ref:n.dayEl,className:n.getClassNames(n.props.day),onKeyDown:n.handleOnKeyDown,onClick:n.handleClick,onMouseEnter:n.props.usePointerEvent?void 0:n.handleMouseEnter,onPointerEnter:n.props.usePointerEvent?n.handleMouseEnter:void 0,tabIndex:n.getTabIndex(),"aria-label":n.getAriaLabel(),role:"option",title:n.getTitle(),"aria-disabled":n.isDisabled(),"aria-current":n.isCurrentDay()?"date":void 0,"aria-selected":n.isSelected()||n.isInRange()},n.renderDayContents(),n.getTitle()!==""&&W.createElement("span",{className:"overlay"},n.getTitle()))},n}return t.prototype.componentDidMount=function(){this.handleFocusDay()},t.prototype.componentDidUpdate=function(){this.handleFocusDay()},t.prototype.shouldFocusDay=function(){var n=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(n=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(n=!1),this.isDayActiveElement()&&
1663(n=!0),this.isDuplicateDay()&&(n=!1)),n},t.prototype.isDayActiveElement=function(){var n,r,i;return((r=(n=this.props.containerRef)===null||n===void 0?void 0:n.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))},t.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},t}(S.Component),BV=function(e){pn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.weekNumberEl=S.createRef(),n.handleClick=function(r){n.props.onClick&&n.props.onClick(r)},n.handleOnKeyDown=function(r){var i,o,c=r.key;c===ve.Space&&(r.preventDefault(),r.key=ve.Enter),(o=(i=n.props).handleOnKeyDown)===null||o===void 0||o.call(i,r)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!tt(n.props.date,n.props.selected)&&tt(n.props.date,n.props.preSelection)},n.getTabIndex=function(){return n.props.showWeekPicker&&n.props.showWeekNumber&&(n.isKeyboardSelected()||tt(n.props.date,n.props.selected)&&tt(n.props.preSelection,n.props.selected))?0:-1},n.handleFocusWeekNumber=function(r){var i=!1;n.getTabIndex()===0&&!(r!=null&&r.isInputFocused)&&tt(n.props.date,n.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(i=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&n.weekNumberEl.current&&n.weekNumberEl.current.focus({preventScroll:!0})},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},t.prototype.componentDidUpdate=function(n){this.handleFocusWeekNumber(n)},t.prototype.render=function(){var n=this.props,r=n.weekNumber,i=n.isWeekDisabled,o=n.ariaLabelPrefix,c=o===void 0?t.defaultProps.ariaLabelPrefix:o,d=n.onClick,f={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!d&&!i,"react-datepicker__week-number--selected":!!d&&tt(this.props.date,this.props.selected)};return W.createElement("div",{ref:this.weekNumberEl,className:Sn(f),"aria-label":"".concat(c," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},r)},t}(S.Component),UV=function(e){pn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isDisabled=function(r){return Br(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.handleDayClick=function(r,i){n.props.onDayClick&&n.props.onDayClick(r,i)},n.handleDayMouseEnter=function(r){n.props.onDayMouseEnter&&n.props.onDayMouseEnter(r)},n.handleWeekClick=function(r,i,o){for(var c,d,f,h=new Date(r),m=0;m<7;m++){var v=new Date(r);v.setDate(v.getDate()+m);var b=!n.isDisabled(v);if(b){h=v;break}}typeof n.props.onWeekSelect=="function"&&n.props.onWeekSelect(h,i,o),n.props.showWeekPicker&&n.handleDayClick(h,o),((c=n.props.shouldCloseOnSelect)!==null&&c!==void 0?c:t.defaultProps.shouldCloseOnSelect)&&((f=(d=n.props).setOpen)===null||f===void 0||f.call(d,!1))},n.formatWeekNumber=function(r){return n.props.formatWeekNumber?n.props.formatWeekNumber(r):vV(r)},n.isWeekDisabled=function(){for(var r=n.startOfWeek(),i=sa(r,6),o=new Date(r);o<=i;){if(!n.isDisabled(o))return!1;o=sa(o,1)}return!0},n.renderDays=function(){var r=n.startOfWeek(),i=[],o=n.formatWeekNumber(r);
1663if(n.props.showWeekNumber){var c=n.props.onWeekSelect||n.props.showWeekPicker?n.handleWeekClick.bind(n,r,o):void 0;i.push(W.createElement(BV,nt({key:"W"},t.defaultProps,n.props,{weekNumber:o,isWeekDisabled:n.isWeekDisabled(),date:r,onClick:c})))}return i.concat([0,1,2,3,4,5,6].map(function(d){var f=sa(r,d);return W.createElement(IV,nt({},t.defaultProps,n.props,{ariaLabelPrefixWhenEnabled:n.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:n.props.disabledDayAriaLabelPrefix,key:f.valueOf(),day:f,onClick:n.handleDayClick.bind(n,f),onMouseEnter:n.handleDayMouseEnter.bind(n,f)}))}))},n.startOfWeek=function(){return ns(n.props.day,n.props.locale,n.props.calendarStartDay)},n.isKeyboardSelected=function(){return!n.props.disabledKeyboardNavigation&&!tt(n.startOfWeek(),n.props.selected)&&tt(n.startOfWeek(),n.props.preSelection)},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n={"react-datepicker__week":!0,"react-datepicker__week--selected":tt(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return W.createElement("div",{className:Sn(n)},this.renderDays())},t}(S.Component),Kc,HV=6,ml={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},Zg=(Kc={},Kc[ml.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Kc[ml.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Kc[ml.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Kc),bf=1;function l2(e,t){return e?ml.FOUR_COLUMNS:t?ml.TWO_COLUMNS:ml.THREE_COLUMNS}var VV=function(e){pn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.MONTH_REFS=Sa([],Array(12),!0).map(function(){return S.createRef()}),n.QUARTER_REFS=Sa([],Array(4),!0).map(function(){return S.createRef()}),n.isDisabled=function(r){return Br(r,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals,includeDateIntervals:n.props.includeDateIntervals,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(r){return Sb(r,{excludeDates:n.props.excludeDates,excludeDateIntervals:n.props.excludeDateIntervals})},n.handleDayClick=function(r,i){var o,c;
1663(c=(o=n.props).onDayClick)===null||c===void 0||c.call(o,r,i,n.props.orderInDisplay)},n.handleDayMouseEnter=function(r){var i,o;(o=(i=n.props).onDayMouseEnter)===null||o===void 0||o.call(i,r)},n.handleMouseLeave=function(){var r,i;(i=(r=n.props).onMouseLeave)===null||i===void 0||i.call(r)},n.isRangeStartMonth=function(r){var i=n.props,o=i.day,c=i.startDate,d=i.endDate;return!c||!d?!1:Ln(Ir(o,r),c)},n.isRangeStartQuarter=function(r){var i=n.props,o=i.day,c=i.startDate,d=i.endDate;return!c||!d?!1:Dh(Zo(o,r),c)},n.isRangeEndMonth=function(r){var i=n.props,o=i.day,c=i.startDate,d=i.endDate;return!c||!d?!1:Ln(Ir(o,r),d)},n.isRangeEndQuarter=function(r){var i=n.props,o=i.day,c=i.startDate,d=i.endDate;return!c||!d?!1:Dh(Zo(o,r),d)},n.isInSelectingRangeMonth=function(r){var i,o=n.props,c=o.day,d=o.selectsStart,f=o.selectsEnd,h=o.selectsRange,m=o.startDate,v=o.endDate,b=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(d||f||h)||!b?!1:d&&v?mf(b,v,r,c):f&&m||h&&m&&!v?mf(m,b,r,c):!1},n.isSelectingMonthRangeStart=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var o=n.props,c=o.day,d=o.startDate,f=o.selectsStart,h=Ir(c,r),m=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return f?Ln(h,m):Ln(h,d)},n.isSelectingMonthRangeEnd=function(r){var i;if(!n.isInSelectingRangeMonth(r))return!1;var o=n.props,c=o.day,d=o.endDate,f=o.selectsEnd,h=o.selectsRange,m=Ir(c,r),v=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return f||h?Ln(m,v):Ln(m,d)},n.isInSelectingRangeQuarter=function(r){var i,o=n.props,c=o.day,d=o.selectsStart,f=o.selectsEnd,h=o.selectsRange,m=o.startDate,v=o.endDate,b=(i=n.props.selectingDate)!==null&&i!==void 0?i:n.props.preSelection;return!(d||f||h)||!b?!1:d&&v?vf(b,v,r,c):f&&m||h&&m&&!v?vf(m,b,r,c):!1},n.isWeekInMonth=function(r){var i=n.props.day,o=sa(r,6);return Ln(r,i)||Ln(o,i)},n.isCurrentMonth=function(r,i){return Ye(r)===Ye(ut())&&i===kn(ut())},n.isCurrentQuarter=function(r,i){return Ye(r)===Ye(ut())&&i===Xs(ut())},n.isSelectedMonth=function(r,i,o){return kn(o)===i&&Ye(r)===Ye(o)},n.isSelectMonthInList=function(r,i,o){return o.some(function(c){return n.isSelectedMonth(r,i,c)})},n.isSelectedQuarter=function(r,i,o){return Xs(r)===i&&Ye(r)===Ye(o)},n.isMonthSelected=function(){var r=n.props,i=r.day,o=r.selected,c=r.selectedDates,d=r.selectsMultiple,f=kn(i);return d?c==null?void 0:c.some(function(h){return n.isSelectedMonth(i,f,h)}):!!o&&n.isSelectedMonth(i,f,o)},n.renderWeeks=function(){for(var r=[],i=n.props.fixedHeight,o=0,c=!1,d=ns(ii(n.props.day),n.props.locale,n.props.calendarStartDay),f=function(x){return n.props.showWeekPicker?ns(x,n.props.locale,n.props.calendarStartDay):n.props.preSelection},h=function(x){return n.props.showWeekPicker?ns(x,n.props.locale,n.props.calendarStartDay):n.props.selected},m=n.props.selected?h(n.props.selected):void 0,v=n.props.preSelection?f(n.props.preSelection):void 0;r.push(W.createElement(UV,nt({},n.props,{ariaLabelPrefix:n.props.weekAriaLabelPrefix,key:o,day:d,month:kn(n.props.day),onDayClick:n.handleDayClick,onDayMouseEnter:n.handleDayMouseEnter,selected:m,preSelection:v,showWeekNumber:n.props.showWeekNumbers}))),!c;){o++,d=yh(d,1);var b=i&&o>=HV,w=!i&&!n.isWeekInMonth(d);if(b||w)if(n.props.peekNextMonth)c=!0;else break}return r},n.onMonthClick=function(r,i){var o=n.isMonthDisabledForLabelDate(i),c=o.isDisabled,d=o.labelDate;c||n.handleDayClick(ii(d),r)},n.onMonthMouseEnter=function(r){var i=n.isMonthDisabledForLabelDate(r),o=i.isDisabled,c=i.labelDate;o||n.handleDayMouseEnter(ii(c))},n.handleMonthNavigation=function(r,i){var o,c,d,f;(c=(o=n.props).setPreSelection)===null||c===void 0||c.call(o,i),(f=(d=n.MONTH_REFS[r])===null||d===void 0?void 0:d.current)===null||f===void 0||f.focus()},n.handleKeyboardNavigation=function(r,i,o){var c,d=n.props,f=d.selected,h=d.preSelection,m=d.setPreSelection,v=d.minDate,b=d.maxDate,w=d.showFourColumnMonthYearPicker,x=d.showTwoColumnMonthYearPicker;if(h){var T=l2(w,x),D=n.getVerticalOffset(T),_=(c=Zg[T])===null||c===void 0?void 0:c.grid,k=function(G,F,B){var le,Z,ie=F,ge=B;switch(G){case ve.ArrowRight:ie=oa(F,bf),ge=B===11?0:B+bf;break;case ve.ArrowLeft:ie=Zs(F,bf),ge=B===0?11:B-bf;break;case ve.ArrowUp:ie=Zs(F,D),ge=!((le=_==null?void 0:_[0])===null||le===void 0)&&le.includes(B)?B+12-D:B-D;break;case ve.ArrowDown:ie=oa(F,D),ge=!((Z=_==null?void 0:_[_.length-1])===null||Z===void 0)&&Z.includes(B)?B-12+D:B+D;break}return{newCalculatedDate:ie,newCalculatedMonth:ge}},A=function(G,F,B){for(var le=40,Z=G,ie=!1,ge=0,oe=k(Z,F,B),ce=oe.newCalculatedDate,O=oe.newCalculatedMonth;!ie;){if(ge>=le){ce=F,O=B;break}if(v&&ce<v){Z=ve.ArrowRight;var z=k(Z,ce,O);ce=z.newCalculatedDate,O=z.newCalculatedMonth}if(b&&ce>b){Z=ve.ArrowLeft;var z=k(Z,ce,O);ce=z.newCalculatedDate,O=z.newCalculatedMonth}if(_V(ce,n.props)){var z=k(Z,ce,O);ce=z.newCalculatedDate,O=z.newCalculatedMonth}else ie=!0;ge++}return{newCalculatedDate:ce,newCalculatedMonth:O}};
1663if(i===ve.Enter){n.isMonthDisabled(o)||(n.onMonthClick(r,o),m==null||m(f));return}var V=A(i,h,o),L=V.newCalculatedDate,R=V.newCalculatedMonth;switch(i){case ve.ArrowRight:case ve.ArrowLeft:case ve.ArrowUp:case ve.ArrowDown:n.handleMonthNavigation(R,L);break}}},n.getVerticalOffset=function(r){var i,o;return(o=(i=Zg[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&o!==void 0?o:0},n.onMonthKeyDown=function(r,i){var o=n.props,c=o.disabledKeyboardNavigation,d=o.handleOnMonthKeyDown,f=r.key;f!==ve.Tab&&r.preventDefault(),c||n.handleKeyboardNavigation(r,f,i),d&&d(r)},n.onQuarterClick=function(r,i){var o=Zo(n.props.day,i);gf(o,n.props)||n.handleDayClick(WS(o),r)},n.onQuarterMouseEnter=function(r){var i=Zo(n.props.day,r);gf(i,n.props)||n.handleDayMouseEnter(WS(i))},n.handleQuarterNavigation=function(r,i){var o,c,d,f;n.isDisabled(i)||n.isExcluded(i)||((c=(o=n.props).setPreSelection)===null||c===void 0||c.call(o,i),(f=(d=n.QUARTER_REFS[r-1])===null||d===void 0?void 0:d.current)===null||f===void 0||f.focus())},n.onQuarterKeyDown=function(r,i){var o,c,d=r.key;if(!n.props.disabledKeyboardNavigation)switch(d){case ve.Enter:n.onQuarterClick(r,i),(c=(o=n.props).setPreSelection)===null||c===void 0||c.call(o,n.props.selected);break;case ve.ArrowRight:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===4?1:i+1,gb(n.props.preSelection,1));break;case ve.ArrowLeft:if(!n.props.preSelection)break;n.handleQuarterNavigation(i===1?4:i-1,zC(n.props.preSelection));break}},n.isMonthDisabledForLabelDate=function(r){var i,o=n.props,c=o.day,d=o.minDate,f=o.maxDate,h=o.excludeDates,m=o.includeDates,v=Ir(c,r);return{isDisabled:(i=(d||f||h||m)&&GC(v,n.props))!==null&&i!==void 0?i:!1,labelDate:v}},n.isMonthDisabled=function(r){var i=n.isMonthDisabledForLabelDate(r).isDisabled;return i},n.getMonthClassNames=function(r){var i=n.props,o=i.day,c=i.startDate,d=i.endDate,f=i.preSelection,h=i.monthClassName,m=h?h(Ir(o,r)):void 0,v=n.getSelection();return Sn("react-datepicker__month-text","react-datepicker__month-".concat(r),m,{"react-datepicker__month-text--disabled":n.isMonthDisabled(r),"react-datepicker__month-text--selected":v?n.isSelectMonthInList(o,r,v):void 0,"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&f&&n.isSelectedMonth(o,r,f)&&!n.isMonthSelected()&&!n.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":c&&d?mf(c,d,r,o):void 0,"react-datepicker__month-text--range-start":n.isRangeStartMonth(r),"react-datepicker__month-text--range-end":n.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":n.isCurrentMonth(o,r)})},n.getTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=kn(n.props.preSelection),o=n.isMonthDisabledForLabelDate(i).isDisabled,c=r===i&&!(o||n.props.disabledKeyboardNavigation)?"0":"-1";return c},n.getQuarterTabIndex=function(r){if(n.props.preSelection==null)return"-1";var i=Xs(n.props.preSelection),o=gf(n.props.day,n.props),c=r===i&&!(o||n.props.disabledKeyboardNavigation)?"0":"-1";return c},n.getAriaLabel=function(r){var i=n.props,o=i.chooseDayAriaLabelPrefix,c=o===void 0?"Choose":o,d=i.disabledDayAriaLabelPrefix,f=d===void 0?"Not available":d,h=i.day,m=i.locale,v=Ir(h,r),b=n.isDisabled(v)||n.isExcluded(v)?f:c;return"".concat(b," ").concat(Ot(v,"MMMM yyyy",m))},n.getQuarterClassNames=function(r){var i=n.props,o=i.day,c=i.startDate,d=i.endDate,f=i.selected,h=i.minDate,m=i.maxDate,v=i.excludeDates,b=i.includeDates,w=i.filterDate,x=i.preSelection,T=i.disabledKeyboardNavigation,D=(h||m||v||b||w)&&gf(Zo(o,r),n.props);return Sn("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":D,"react-datepicker__quarter-text--selected":f?n.isSelectedQuarter(o,r,f):void 0,"react-datepicker__quarter-text--keyboard-selected":!T&&x&&n.isSelectedQuarter(o,r,x)&&!D,"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":c&&d?vf(c,d,r,o):void 0,"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(r),"react-datepicker__quarter-text--today":n.isCurrentQuarter(o,r)})}
vendor: 10,116 bytes, line 1663
1663,n.getMonthContent=function(r){var i=n.props,o=i.showFullMonthYearPicker,c=i.renderMonthContent,d=i.locale,f=i.day,h=KC(r,d),m=Eb(r,d);return c?c(r,h,m,f):o?m:h},n.getQuarterContent=function(r){var i,o=n.props,c=o.renderQuarterContent,d=o.locale,f=DV(r,d);return(i=c==null?void 0:c(r,f))!==null&&i!==void 0?i:f},n.renderMonths=function(){var r,i=n.props,o=i.showTwoColumnMonthYearPicker,c=i.showFourColumnMonthYearPicker,d=i.day,f=i.selected,h=(r=Zg[l2(c,o)])===null||r===void 0?void 0:r.grid;return h==null?void 0:h.map(function(m,v){return W.createElement("div",{className:"react-datepicker__month-wrapper",key:v},m.map(function(b,w){return W.createElement("div",{ref:n.MONTH_REFS[b],key:w,onClick:function(x){n.onMonthClick(x,b)},onKeyDown:function(x){ZC(x)&&(x.preventDefault(),x.key=ve.Enter),n.onMonthKeyDown(x,b)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onMonthMouseEnter(b)},onPointerEnter:n.props.usePointerEvent?function(){return n.onMonthMouseEnter(b)}:void 0,tabIndex:Number(n.getTabIndex(b)),className:n.getMonthClassNames(b),"aria-disabled":n.isMonthDisabled(b),role:"option","aria-label":n.getAriaLabel(b),"aria-current":n.isCurrentMonth(d,b)?"date":void 0,"aria-selected":f?n.isSelectedMonth(d,b,f):void 0},n.getMonthContent(b))}))})},n.renderQuarters=function(){var r=n.props,i=r.day,o=r.selected,c=[1,2,3,4];return W.createElement("div",{className:"react-datepicker__quarter-wrapper"},c.map(function(d,f){return W.createElement("div",{key:f,ref:n.QUARTER_REFS[f],role:"option",onClick:function(h){n.onQuarterClick(h,d)},onKeyDown:function(h){n.onQuarterKeyDown(h,d)},onMouseEnter:n.props.usePointerEvent?void 0:function(){return n.onQuarterMouseEnter(d)},onPointerEnter:n.props.usePointerEvent?function(){return n.onQuarterMouseEnter(d)}:void 0,className:n.getQuarterClassNames(d),"aria-selected":o?n.isSelectedQuarter(i,d,o):void 0,tabIndex:Number(n.getQuarterTabIndex(d)),"aria-current":n.isCurrentQuarter(i,d)?"date":void 0},n.getQuarterContent(d))}))},n.getClassNames=function(){var r=n.props,i=r.selectingDate,o=r.selectsStart,c=r.selectsEnd,d=r.showMonthYearPicker,f=r.showQuarterYearPicker,h=r.showWeekPicker;return Sn("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(o||c)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":f},{"react-datepicker__weekPicker":h})},n}return t.prototype.getSelection=function(){var n=this.props,r=n.selected,i=n.selectedDates,o=n.selectsMultiple;if(o)return i;if(r)return[r]},t.prototype.render=function(){var n=this.props,r=n.showMonthYearPicker,i=n.showQuarterYearPicker,o=n.day,c=n.ariaLabelPrefix,d=c===void 0?"Month ":c,f=d?d.trim()+" ":"";return W.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(f).concat(Ot(o,"MMMM, yyyy",this.props.locale)),role:"listbox"},r?this.renderMonths():i?this.renderQuarters():this.renderWeeks())},t}(S.Component),zV=function(e){pn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.isSelectedMonth=function(r){return n.props.month===r},n.renderOptions=function(){return n.props.monthNames.map(function(r,i){return W.createElement("div",{className:n.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:n.onChange.bind(n,i),"aria-selected":n.isSelectedMonth(i)?"true":void 0},n.isSelectedMonth(i)?W.createElement("span",{className:"react-datepicker__month-option--selected"},"â"):"",r)})},n.onChange=function(r){return n.props.onChange(r)},n.handleClickOutside=function(){return n.props.onCancel()},n}return t.prototype.render=function(){return W.createElement(Zh,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},t}(S.Component),FV=function(e){pn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(r){return r.map(function(i,o){return W.createElement("option",{key:i,value:o},i)})},n.renderSelectMode=function(r){return W.createElement("select",{value:n.props.month,className:"react-datepicker__month-select",onChange:function(i){return n.onChange(parseInt(i.target.value))}},n.renderSelectOptions(r))},n.renderReadView=function(r,i){return W.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:n.toggleDropdown},W.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),W.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[n.props.month]))},n.renderDropdown=function(r){return W.createElement(zV,nt({key:"dropdown"},n.props,{monthNames:r,onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(r){var i=n.state.dropdownVisible,o=[n.renderReadView(!i,r)];return i&&o.unshift(n.renderDropdown(r)),o},n.onChange=function(r){n.toggleDropdown(),r!==n.props.month&&n.props.onChange(r)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return t.prototype.render=function(){var n=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(o){return KC(o,n.props.locale)}:function(o){return Eb(o,n.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return W.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},t}(S.Component);function YV(e,t){for(var n=[],r=ii(e),i=ii(t);!is(r,i);)n.push(ut(r)),r=oa(r,1);return n}var qV=function(e){pn(t,e);function t(n){var r=e.call(this,n)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var o=Gy(i),c=wa(r.props.date,i)&&Ln(r.props.date,i);return W.createElement("div",{className:c?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:o,onClick:r.onChange.bind(r,o),"aria-selected":c?"true":void 0},c?W.createElement("span",{className:"react-datepicker__month-year-option--selected"},"â"):"",Ot(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:YV(r.props.minDate,r.props.maxDate)},r}return t.prototype.render=function(){var n=Sn({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return W.createElement(Zh,{className:n,onClickOutside:this.handleClickOutside},this.renderOptions())},t}(S.Component),$V=function(e){pn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=ii(n.props.minDate),i=ii(n.props.maxDate),o=[];!is(r,i);){var c=Gy(r);o.push(W.createElement("option",{key:c,value:c},Ot(r,n.props.dateFormat,n.props.locale))),r=oa(r,1)}return o},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return W.createElement("select",{value:Gy(ii(n.props.date)),className:"react-datepicker__month-year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){var i=Ot(n.props.date,n.props.dateFormat,n.props.locale);return W.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:n.toggleDropdown},W.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),W.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},n.renderDropdown=function(){return W.createElement(qV,nt({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown();var i=ut(r);wa(n.props.date,i)&&Ln(n.props.date,i)||n.props.onChange(i)},n.toggleDropdown=function(){return n.setState({dropdownVisible:!n.state.dropdownVisible})},n}return t.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return W.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},n)},t}(S.Component),WV=function(e){pn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,o;n.list&&(n.list.scrollTop=(o=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-((i=(r=n.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):n.list.clientHeight,n.centerLi))!==null&&o!==void 0?o:0)})},n.handleClick=function(r){var i,o;(n.props.minTime||n.props.maxTime)&&ZS(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&XS(r,n.props)||(o=(i=n.props).onChange)===null||o===void 0||o.call(i,r)},n.isSelectedTime=function(r){return n.props.selected&&jV(n.props.selected,r)},n.isDisabledTime=function(r){return(n.props.minTime||n.props.maxTime)&&ZS(r,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&XS(r,n.props)},n.liClasses=function(r){var i,o=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(r):void 0];return n.isSelectedTime(r)&&o.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(r)&&o.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(ri(r)*3600+ai(r)*60+ts(r))%(((i=n.props.intervals)!==null&&i!==void 0?i:t.defaultProps.intervals)*60)!==0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")},n.handleOnKeyDown=function(r,i){var o,c;
1663r.key===ve.Space&&(r.preventDefault(),r.key=ve.Enter),(r.key===ve.ArrowUp||r.key===ve.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===ve.ArrowDown||r.key===ve.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===ve.Enter&&n.handleClick(i),(c=(o=n.props).handleOnKeyDown)===null||c===void 0||c.call(o,r)},n.renderTimes=function(){for(var r,i=[],o=typeof n.props.format=="string"?n.props.format:"p",c=(r=n.props.intervals)!==null&&r!==void 0?r:t.defaultProps.intervals,d=n.props.selected||n.props.openToDate||ut(),f=Lf(d),h=n.props.injectTimes&&n.props.injectTimes.sort(function(D,_){return D.getTime()-_.getTime()}),m=60*PV(d),v=m/c,b=0;b<v;b++){var w=$y(f,b*c);if(i.push(w),h){var x=OV(f,w,b,c,h);i=i.concat(x)}}var T=i.reduce(function(D,_){return _.getTime()<=d.getTime()?_:D},i[0]);return i.map(function(D){return W.createElement("li",{key:D.valueOf(),onClick:n.handleClick.bind(n,D),className:n.liClasses(D),ref:function(_){D===T&&(n.centerLi=_)},onKeyDown:function(_){n.handleOnKeyDown(_,D)},tabIndex:D===T?0:-1,role:"option","aria-selected":n.isSelectedTime(D)?"true":void 0,"aria-disabled":n.isDisabledTime(D)?"true":void 0},Ot(D,o,n.props.locale))})},n.renderTimeCaption=function(){return n.props.showTimeCaption===!1?W.createElement(W.Fragment,null):W.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(n.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(r){n.header=r}},W.createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeight
1663Changes()},t.prototype.componentWillUnmount=function(){var n;(n=this.resizeObserver)===null||n===void 0||n.disconnect()},t.prototype.observeDatePickerHeightChanges=function(){var n=this,r=this.props.monthRef;this.updateContainerHeight(),r&&(this.resizeObserver=new ResizeObserver(function(){n.updateContainerHeight()}),this.resizeObserver.observe(r))},t.prototype.updateContainerHeight=function(){this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var n=this,r,i=this.state.height;return W.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),W.createElement("div",{className:"react-datepicker__time"},W.createElement("div",{className:"react-datepicker__time-box"},W.createElement("ul",{className:"react-datepicker__time-list",ref:function(o){n.list=o},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(n,r){return r.offsetTop-(n/2-r.clientHeight/2)},t}(S.Component),c2=3,KV=function(e){pn(t,e);function t(n){var r=e.call(this,n)||this;return r.YEAR_REFS=Sa([],Array(r.props.yearItemNumber),!0).map(function(){return S.createRef()}),r.isDisabled=function(i){return Br(i,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(i){return Sb(i,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var i;return(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection},r.updateFocusOnPaginate=function(i){var o=function(){var c,d;(d=(c=r.YEAR_REFS[i])===null||c===void 0?void 0:c.current)===null||d===void 0||d.focus()};window.requestAnimationFrame(o)},r.handleYearClick=function(i,o){r.props.onDayClick&&r.props.onDayClick(i,o)},r.handleYearNavigation=function(i,o){var c,d,f,h,m=r.props,v=m.date,b=m.yearItemNumber;if(!(v===void 0||b===void 0)){var w=Xi(v,b).startPeriod;r.isDisabled(o)||r.isExcluded(o)||((d=(c=r.props).setPreSelection)===null||d===void 0||d.call(c,o),i-w<0?r.updateFocusOnPaginate(b-(w-i)):i-w>=b?r.updateFocusOnPaginate(Math.abs(b-(i-w))):(h=(f=r.YEAR_REFS[i-w])===null||f===void 0?void 0:f.current)===null||h===void 0||h.focus())}},r.isSameDay=function(i,o){return tt(i,o)},r.isCurrentYear=function(i){return i===Ye(ut())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&wa(ba(ut(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&wa(ba(ut(),i),r.props.endDate)},r.isInRange=function(i){return yf(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var o=r.props,c=o.selectsStart,d=o.selectsEnd,f=o.selectsRange,h=o.startDate,m=o.endDate;return!(c||d||f)||!r.selectingDate()?!1:c&&m?yf(i,r.selectingDate(),m):d&&h||f&&h&&!m?yf(i,h,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var o;if(!r.isInSelectingRange(i))return!1;var c=r.props,d=c.startDate,f=c.selectsStart,h=ba(ut(),i);return f?wa(h,(o=r.selectingDate())!==null&&o!==void 0?o:null):wa(h,d??null)},r.isSelectingRangeEnd=function(i){var o;if(!r.isInSelectingRange(i))return!1;var c=r.props,d=c.endDate,f=c.selectsEnd,h=c.selectsRange,m=ba(ut(),i);return f||h?wa(m,(o=r.selectingDate())!==null&&o!==void 0?o:null):wa(m,d??null)},r.isKeyboardSelected=function(i){if(!(r.props.date===void 0||r.props.selected==null||r.props.preSelection==null)){var o=r.props,c=o.minDate,d=o.maxDate,f=o.excludeDates,h=o.includeDates,m=o.filterDate,v=tu(ba(r.props.date,i)),b=(c||d||f||h||m)&&If(i,r.props);return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!tt(v,tu(r.props.selected))&&tt(v,tu(r.props.preSelection))&&!b}},r.isSelectedYear=function(i){var o=r.props,c=o.selectsMultiple,d=o.selected,f=o.selectedDates;return c?f==null?void 0:f.some(function(h){return i===Ye(h)}):!!d&&i===Ye(d)},r.onYearClick=function(i,o){var c=r.props.date;c!==void 0&&r.handleYearClick(tu(ba(c,o)),i)},r.onYearKeyDown=function(i,o){var c,d,f=i.key,h=r.props,m=h.date,v=h.yearItemNumber,b=h.handleOnKeyDown;if(f!==ve.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(f){case ve.Enter:if(r.props.selected==null)break;r.onYearClick(i,o),(d=(c=r.props).setPreSelection)===null||d===void 0||d.call(c,r.props.selected);break;case ve.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(o+1,ti(r.props.preSelection,1));break;case ve.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(o-1,_l(r.props.preSelection,1));break;case ve.ArrowUp:{if(m===void 0||v===void 0||r.props.preSelection==null)break;var w=Xi(m,v).startPeriod,x=c2,T=o-x;if(T<w){var D=v%x;o>=w&&o<w+D?x=D:x+=D,T=o-x}r.handleYearNavigation(T,_l(r.props.preSelection,x));break}case ve.ArrowDown:{if(m===void 0||v===void 0||r.props.preSelection==null)break;var _=Xi(m,v).endPeriod,x=c2,T=o+x;if(T>_){var D=v%x;o<=_&&o>_-D?x=D:x+=D,T=o+x}r.handleYearNavigation(T,ti(r.props.preSelection,x));break}}b&&b(i)},r.getYearClassNames=function(i){var o=r.props,c=o.date,d=o.minDate,f=o.maxDate,h=o.excludeDates,m=o.includeDates,v=o.filterDate,b=o.yearClassName;return Sn("react-datepicker__year-text","react-datepicker__year-".concat(i),c?b==null?void 0:b(ba(c,i)):void 0,{"react-datepicker__year-text--selected":r.isSelectedYear(i),"react-datepicker__year-text--disabled":(d||f||h||m||v)&&If(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.
vendor: 5,358 bytes, line 1663
1663isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var o=Ye(r.props.preSelection),c=If(i,r.props);return i===o&&!c?"0":"-1"},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return t.prototype.render=function(){var n=this,r=[],i=this.props,o=i.date,c=i.yearItemNumber,d=i.onYearMouseEnter,f=i.onYearMouseLeave;if(o===void 0)return null;for(var h=Xi(o,c),m=h.startPeriod,v=h.endPeriod,b=function(T){r.push(W.createElement("div",{ref:w.YEAR_REFS[T-m],onClick:function(D){n.onYearClick(D,T)},onKeyDown:function(D){ZC(D)&&(D.preventDefault(),D.key=ve.Enter),n.onYearKeyDown(D,T)},tabIndex:Number(w.getYearTabIndex(T)),className:w.getYearClassNames(T),onMouseEnter:w.props.usePointerEvent?void 0:function(D){return d(D,T)},onPointerEnter:w.props.usePointerEvent?function(D){return d(D,T)}:void 0,onMouseLeave:w.props.usePointerEvent?void 0:function(D){return f(D,T)},onPointerLeave:w.props.usePointerEvent?function(D){return f(D,T)}:void 0,key:T,"aria-current":w.isCurrentYear(T)?"date":void 0},w.getYearContent(T)))},w=this,x=m;x<=v;x++)b(x);return W.createElement("div",{className:"react-datepicker__year"},W.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},t}(S.Component);function GV(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var c=e+t-o,d=!0;n&&(d=Ye(n)<=c),r&&d&&(d=Ye(r)>=c),d&&i.push(c)}return i}var QV=function(e){pn(t,e);function t(n){var r=e.call(this,n)||this;r.renderOptions=function(){var d=r.props.year,f=r.state.yearsList.map(function(v){return W.createElement("div",{className:d===v?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:v,onClick:r.onChange.bind(r,v),"aria-selected":d===v?"true":void 0},d===v?W.createElement("span",{className:"react-datepicker__year-option--selected"},"â"):"",v)}),h=r.props.minDate?Ye(r.props.minDate):null,m=r.props.maxDate?Ye(r.props.maxDate):null;return(!m||!r.state.yearsList.find(function(v){return v===m}))&&f.unshift(W.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},W.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!h||!r.state.yearsList.find(function(v){return v===h}))&&f.push(W.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},W.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),f},r.onChange=function(d){r.props.onChange(d)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(d){var f=r.state.yearsList.map(function(h){return h+d});r.setState({yearsList:f})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,o=n.scrollableYearDropdown,c=i||(o?10:5);return r.state={yearsList:GV(r.props.year,c,r.props.minDate,r.props.maxDate)},r.dropdownRef=S.createRef(),r}return t.prototype.componentDidMount=function(){var n=this.dropdownRef.current;if(n){var r=n.children?Array.from(n.children):null,i=r?r.find(function(o){return o.ariaSelected}):null;n.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}},t.prototype.render=function(){var n=Sn({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return W.createElement(Zh,{className:n,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},t}(S.Component),XV=function(e){pn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dropdownVisible:!1},n.renderSelectOptions=function(){for(var r=n.props.minDate?Ye(n.props.minDate):1900,i=n.props.maxDate?Ye(n.props.maxDate):2100,o=[],c=r;c<=i;c++)o.push(W.createElement("option",{key:c,value:c},c));return o},n.onSelectChange=function(r){n.onChange(parseInt(r.target.value))},n.renderSelectMode=function(){return W.createElement("select",{value:n.props.year,className:"react-datepicker__year-select",onChange:n.onSelectChange},n.renderSelectOptions())},n.renderReadView=function(r){return W.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(i){return n.toggleDropdown(i)}},W.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),W.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},n.props.year))},n.renderDropdown=function(){return W.createElement(QV,nt({key:"dropdown"},n.props,{onChange:n.onChange,onCancel:n.toggleDropdown}))},n.renderScrollMode=function(){var r=n.state.dropdownVisible,i=[n.renderReadView(!r)];return r&&i.unshift(n.renderDropdown()),i},n.onChange=function(r){n.toggleDropdown(),r!==n.props.year&&n.props.onChange(r)},n.toggleDropdown=function(r){n.setState({dropdownVisible:!n.state.dropdownVisible},function(){n.props.adjustDateOnChange&&n.handleYearChange(n.props.date,r)}
1663)},n.handleYearChange=function(r,i){var o;(o=n.onSelect)===null||o===void 0||o.call(n,r,i),n.setOpen()},n.onSelect=function(r,i){var o,c;(c=(o=n.props).onSelect)===null||c===void 0||c.call(o,r,i)},n.setOpen=function(){var r,i;(i=(r=n.props).setOpen)===null||i===void 0||i.call(r,!0)},n}return t.prototype.render=function(){var n;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode();break;case"select":n=this.renderSelectMode();break}return W.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},n)},t}(S.Component),ZV=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],JV=function(e){var t=(e.className||"").split(/\s+/);return ZV.some(function(n){return t.indexOf(n)>=0})},ez=function(e){pn(t,e);function t(n){var r=e.call(this,n)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var o,c;JV(i.target)&&((c=(o=r.props).onDropdownFocus)===null||c===void 0||c.call(o,i))},r.getDateInView=function(){var i=r.props,o=i.preSelection,c=i.selected,d=i.openToDate,f=QC(r.props),h=XC(r.props),m=ut(),v=d||c||o;return v||(f&&lo(m,f)?f:h&&is(m,h)?h:m)},r.increaseMonth=function(){r.setState(function(i){var o=i.date;return{date:oa(o,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var o=i.date;return{date:Zs(o,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,o,c){r.props.onSelect(i,o,c),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,o){r.setState({selectingDate:ba(ut(),o)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,o)},r.handleYearMouseLeave=function(i,o){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,o)},r.handleYearChange=function(i){var o,c,d,f;(c=(o=r.props).onYearChange)===null||c===void 0||c.call(o,i),r.setState({isRenderAriaLiveMessage:!0}),r.props.adjustDateOnChange&&(r.props.onSelect(i),(f=(d=r.props).setOpen)===null||f===void 0||f.call(d,!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.getEnabledPreSelectionDateForMonth=function(i){if(!Br(i,r.props))return i;for(var o=ii(i),c=xV(i),d=DU(c,o),f=null,h=0;h<=d;h++){var m=sa(o,h);if(!Br(m,r.props)){f=m;break}}return f},r.handleMonthChange=function(i){var o,c,d,f=(o=r.getEnabledPreSelectionDateForMonth(i))!==null&&o!==void 0?o:i;r.handleCustomMonthChange(f),r.props.adjustDateOnChange&&(r.props.onSelect(f),(d=(c=r.props).setOpen)===null||d===void 0||d.call(c,!0)),r.props.setPreSelection&&r.props.setPreSelection(f)},r.handleCustomMonthChange=function(i){var o,c;(c=(o=r.props).onMonthChange)===null||c===void 0||c.call(o,i),r.setState({isRenderAriaLiveMessage:!0})},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(o){var c=o.date;return{date:ba(c,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(o){var c=o.date;return{date:Ir(c,Number(i))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(i){r.setState(function(o){var c=o.date;return{date:ba(Ir(c,kn(i)),Ye(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i){i===void 0&&(i=r.state.date);var o=ns(i,r.props.locale,r.props.calendarStartDay),c=[];return r.props.showWeekNumbers&&c.push(W.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),c.concat([0,1,2,3,4,5,6].map(function(d){var f=sa(o,d),h=r.formatWeekday(f,r.props.locale),m=r.props.weekDayClassName?r.props.weekDayClassName(f):void 0;return W.createElement("div",{key:d,"aria-label":Ot(f,"EEEE",r.props.locale),className:Sn("react-datepicker__day-name",m)},h)}))},r.formatWeekday=function(i,o){return r.props.formatWeekDay?EV(i,r.props.formatWeekDay,o):r.props.useWeekdaysShort?TV(i,o):SV(i,o)},r.decreaseYear=function(){r.setState(function(i){var o,c=i.date;return{date:_l(c,r.props.showYearPicker?(o=r.props.yearItemNumber)!==null&&o!==void 0?o:t.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i,o,c;if(!r.props.renderCustomHeader){var d=(i=r.props.monthsShown)!==null&&i!==void 0?i:t.defaultProps.monthsShown,f=r.props.showPreviousMonths?d-1:0,h=(o=r.props.monthSelectedIn)!==null&&o!==void 0?o:f,m=Zs(r.state.date,h),v;switch(!0){case r.props.showMonthYearPicker:v=t2(r.state.date,r.props);break;case r.props.showYearPicker:v=kV(r.state.date,r.props);break;case r.props.showQuarterYearPicker:v=CV(r.state.date,r.props);break;default:v=JS(m,r.props);break}if(!(!((c=r.props.forceShowMonthNavigation)!==null&&c!==void 0?c:t.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&v||r.props.showTimeSelectOnly)){var b=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],w=["react-datepicker__navigation","react-datepicker__navigation--previous"],x=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(x=r.decreaseYear),v&&r.props.showDisabledMonthNavigation&&(w.push("react-datepicker__navigation--previous--disabled"),x=void 0);var T=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,D=r.props,_=D.previousMonthButtonLabel,k=_===void 0?t.defaultProps.previousMonthButtonLabel:_,A=D.previousYearButtonLabel,V=A===void 0?t.defaultProps.previousYearButtonLabel:A,L=r.props,R=L.previousMonthAriaLabel,G=R===void 0?typeof k=="string"?k:"Previous Month":R,F=L.previousYearAriaLabel,B=F===void 0?typeof V=="string"?V:"Previous Year":F;return W.createElement("button",{type:"button",className:w.join(" "),onClick:x,onKeyDown:r.props.handleOnKeyDown,"aria-label":T?B:G},W.createElement("span",{className:b.join(" ")},T?V:k))}}},r.increaseYear=function(){r.setState(function(i){var o,c=i.date;return{date:ti(c,r.props.showYearPicker?(o=r.props.yearItemNumber)!==null&&o!==void 0?o:t.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var o;switch(!0){case r.props.showMonthYearPicker:o=n2(r.state.date,r.props);break;case r.props.showYearPicker:o=RV(r.state.date,r.props);break;case r.props.showQuarterYearPicker:o=AV(r.state.date,r.props);break;default:o=e2(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:t.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&o||r.props.showTimeSelectOnly)){var c=["react-datepicker__navigation","react-datepicker__navigation--next"],d=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&c.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&c.push("react-datepicker__navigation--next--with-today-button");var f=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(f=r.increaseYear),o&&r.props.showDisabledMonthNavigation&&(c.push("react-datepicker__navigation--next--disabled"),f=void 0);var h=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,m=r.props,v=m.nextMonthButtonLabel,b=v===void 0?t.defaultProps.nextMonthButtonLabel:v,w=m.nextYearButtonLabel,x=w===void 0?t.defaultProps.nextYearButtonLabel:w,T=r.props,D=T.nextMonthAriaLabel,_=D===void 0?typeof b=="string"?b:"Next Month":D,k=T.nextYearAriaLabel,A=k===void 0?typeof x=="str
1663ing"?x:"Next Year":k;return W.createElement("button",{type:"button",className:c.join(" "),onClick:f,onKeyDown:r.props.handleOnKeyDown,"aria-label":h?A:_},W.createElement("span",{className:d.join(" ")},h?x:b))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var o=["react-datepicker__current-month"];return r.props.showYearDropdown&&o.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&o.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&o.push("react-datepicker__current-month--hasMonthYearDropdown"),W.createElement("h2",{className:o.join(" ")},Ot(i,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return W.createElement(XV,nt({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:Ye(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return W.createElement(FV,nt({},t.defaultProps,r.props,{month:kn(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return W.createElement($V,nt({},t.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(KS(),i),r.props.setPreSelection&&r.props.setPreSelection(KS())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return W.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDefaultHeader=function(i){var o=i.monthDate,c=i.i;return W.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(o),W.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(c!==0),r.renderMonthYearDropdown(c!==0),r.renderYearDropdown(c!==0)),W.createElement("div",{className:"react-datepicker__day-names"},r.header(o)))},r.renderCustomHeader=function(i){var o,c,d=i.monthDate,f=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var h=JS(r.state.date,r.props),m=e2(r.state.date,r.props),v=t2(r.state.date,r.props),b=n2(r.state.date,r.props),w=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return W.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(c=(o=r.props).renderCustomHeader)===null||c===void 0?void 0:c.call(o,nt(nt({},r.state),{customHeaderCount:f,monthDate:d,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:h,nextMonthButtonDisabled:m,prevYearButtonDisabled:v,nextYearButtonDisabled:b})),w&&W.createElement("div",{className:"react-datepicker__day-names"},r.header(d)))},r.renderYearHeader=function(i){var o=i.monthDate,c=r.props,d=c.showYearPicker,f=c.yearItemNumber,h=f===void 0?t.defaultProps.yearItemNumber:f,m=Xi(o,h),v=m.startPeriod,b=m.endPeriod;return W.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},d?"".concat(v," - ").concat(b):Ye(o))},r.renderHeader=function(i){var o=i.monthDate,c=i.i,d=c===void 0?0:c,f={monthDate:o,i:d};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(f);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(f);default:return r.renderDefaultHeader(f)}},r.renderMonths=function(){var i,o;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var c=[],d=(i=r.props.monthsShown)!==null&&i!==void 0?i:t.defaultProps.monthsShown,f=r.props.showPreviousMonths?d-1:0,h=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?ti(r.state.date,f):Zs(r.state.date,f),m=(o=r.props.monthSelectedIn)!==null&&o!==void 0?o:f,v=0;v<d;++v){var b=v-m+f,w=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?ti(h,b):oa(h,b),x="month-".concat(v),T=v<d-1,D=v>0;c.push(W.createElement("div",{key:x,ref:function(_){r.monthContainer=_??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:w,i:v}),W.createElement(VV,nt({},t.defaultProps,r.props,{containerRef:r.containerRef,ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:w,onDayCl
1663ick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:v,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:T,monthShowsDuplicateDaysStart:D}))))}return c}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return W.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),W.createElement(KV,nt({},t.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return W.createElement(WV,nt({},t.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i=r.props.selected?new Date(r.props.selected):void 0,o=i&&Jh(i)&&!!r.props.selected,c=o?"".concat(a2(i.getHours()),":").concat(a2(i.getMinutes())):"";if(r.props.showTimeInput)return W.createElement(LV,nt({},t.defaultProps,r.props,{date:i,timeString:c,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var i,o=Xi(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:t.defaultProps.yearItemNumber),c=o.startPeriod,d=o.endPeriod,f;return r.props.showYearPicker?f="".concat(c," - ").concat(d):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?f=Ye(r.state.date):f="".concat(Eb(kn(r.state.date),r.props.locale)," ").concat(Ye(r.state.date)),W.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&f)},r.renderChildren=function(){if(r.props.children)return W.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=S.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(t,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:qu}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){n.setState({monthContainer:n.monthContainer})}())},t.prototype.componentDidUpdate=function(n){var r=this;if(this.props.preSelection&&(!tt(this.props.preSelection,n.preSelection)||this.props.monthSelectedIn!==n.monthSelectedIn)){var i=!Ln(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!tt(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate})},t.prototype.render=function(){var n=this.props.container||pV;return W.createElement(Zh,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},W.createElement("div",{style:{display:"contents"},ref:this.containerRef},W.createElement(n,{className:Sn("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},t}(S.Component),tz=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,i=e.onClick,o="react-datepicker__calendar-icon";if(typeof t=="string")return W.createElement("i",{className:"".concat(o," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:i});if(W.isValidElement(t)){var c=t;return W.cloneElement(c,{className:"".concat(c.props.className||""," ").concat(o," ").concat(r),onClick:function(d){typeof c.props.onClick=="function"&&c.props.onClick(d),typeof i=="function"&&i(d)}})}return W.createElement("svg",{className:"".concat(o," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},W.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 9
16636 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},JC=function(e){pn(t,e);function t(n){var r=e.call(this,n)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return K8.createPortal(this.props.children,this.el)},t}(S.Component),nz="[tabindex], a, button, input, select, textarea",rz=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&e.tabIndex!==-1},eA=function(e){pn(t,e);function t(n){var r=e.call(this,n)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(nz),1,-1).filter(rz)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=S.createRef(),r}return t.prototype.render=function(){var n;return((n=this.props.enableTabLoop)!==null&&n!==void 0?n:t.defaultProps.enableTabLoop)?W.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},W.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,W.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t}(S.Component);function az(e){var t=function(n){var r,i=typeof n.hidePopper=="boolean"?n.hidePopper:!0,o=S.useRef(null),c=hV(nt({open:!i,whileElementsMounted:__,placement:n.popperPlacement,middleware:Sa([eV({padding:15}),J8(10),tV({element:o})],(r=n.popperModifiers)!==null&&r!==void 0?r:[],!0)},n.popperProps)),d=nt(nt({},n),{hidePopper:i,popperProps:nt(nt({},c),{arrowRef:o})});return W.createElement(e,nt({},d))};return t}var iz=function(e){pn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this.props,r=n.className,i=n.wrapperClassName,o=n.hidePopper,c=o===void 0?t.defaultProps.hidePopper:o,d=n.popperComponent,f=n.targetComponent,h=n.enableTabLoop,m=n.popperOnKeyDown,v=n.portalId,b=n.portalHost,w=n.popperProps,x=n.showArrow,T=void 0;if(!c){var D=Sn("react-datepicker-popper",r);T=W.createElement(eA,{enableTabLoop:h},W.createElement("div",{ref:w.refs.setFloating,style:w.floatingStyles,className:D,"data-placement":w.placement,onKeyDown:m},d,x&&W.createElement(sV,{ref:w.arrowRef,context:w.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(T=S.createElement(this.props.popperContainer,{},T)),v&&!c&&(T=W.createElement(JC,{portalId:v,portalHost:b},T));var _=Sn("react-datepicker-wrapper",i);return W.createElement(W.Fragment,null,W.createElement("div",{ref:w.refs.setReference,className:_},f),T)},t}(S.Component),sz=az(iz),u2="react-datepicker-ignore-onclickoutside";function oz(e,t){return e&&t?kn(e)!==kn(t)||Ye(e)!==Ye(t):e!==t}var Jg="Date input not valid.",tA=function(e){pn(t,e);function t(n){var r=e.call(this,n)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:ut()},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(o,c){var d=new Date(c.date);return Jh(d)?Sa(Sa([],o,!0),[nt(nt({},c),{date:d})],!1):o},[])},r.calcInitialState=function(){var i,o=r.getPreSelection(),c=QC(r.props),d=XC(r.props),f=c&&lo(o,Lf(c))?c:d&&is(o,GS(d))?d:o;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(i=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&i!==void 0?i:f,highlightDates:r2(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(nt(nt({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(nt(nt({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){var i,o;(o=(i=r.input)===null||i===void 0?void 0:i.focus)===null||o===void 0||o.call(i,{preventScroll:!0})},r.setBlur=function(){var i,o;(o=(i=r.input)===null||i===void 0?void 0:i.blur)===null||o===void 0||o.call(i),r.cancelFocusInput()},r.deferBlur=function(){requestAnimationFrame(function(){r.setBlur()})},r.setOpen=function(i,o){o===void 0&&(o=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:ey},function(){i||r.setState(function(c){return{focused:o?c.focused:!1}},function(){!o&&r.deferBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return ni(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var o,c,d=r.state.wasHidden,f=d?r.state.open:!0;d&&r.resetHiddenStatus(),r.state.preventFocus||((c=(o=r.props).onFocus)===null||c===void 0||c.c
1663all(o,i),f&&!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(i){var o,c;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((c=(o=r.props).onBlur)===null||c===void 0||c.call(o,i)),r.state.open&&r.props.open===!1&&r.setOpen(!1),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var o,c;r.props.inline||r.setOpen(!1),(c=(o=r.props).onClickOutside)===null||c===void 0||c.call(o,i),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i,o,c,d,f,h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var v=h[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,h),!v||typeof v.isDefaultPrevented!="function"||v.isDefaultPrevented()))){r.setState({inputValue:(v==null?void 0:v.target)instanceof HTMLInputElement?v.target.value:null,lastPreSelectChange:lz});var b=r.props,w=b.selectsRange,x=b.startDate,T=b.endDate,D=(i=r.props.dateFormat)!==null&&i!==void 0?i:t.defaultProps.dateFormat,_=(o=r.props.strictParsing)!==null&&o!==void 0?o:t.defaultProps.strictParsing,k=(v==null?void 0:v.target)instanceof HTMLInputElement?v.target.value:"";if(w){var A=k.split(D.includes("-")?WC:"-",2).map(function(Z){return Z.trim()}),V=A[0],L=A[1],R=Qg(V??"",D,r.props.locale,_),G=Qg(L??"",D,r.props.locale,_),F=(x==null?void 0:x.getTime())!==(R==null?void 0:R.getTime()),B=(T==null?void 0:T.getTime())!==(G==null?void 0:G.getTime());if(!F&&!B||R&&Br(R,r.props)||G&&Br(G,r.props))return;(d=(c=r.props).onChange)===null||d===void 0||d.call(c,[R,G],v)}else{var le=Qg(k,D,r.props.locale,_,(f=r.props.selected)!==null&&f!==void 0?f:void 0);(le||!k)&&r.setSelected(le,v,!0)}}},r.handleSelect=function(i,o,c){if(!r.props.readOnly){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(o),r.setSelected(i,o,!1,c),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(i);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var d=r.props,f=d.startDate,h=d.endDate;f&&!h&&(r.props.swapRange||!o2(i,f))&&r.setOpen(!1)}}},r.setSelected=function(i,o,c,d){var f,h,m=i;if(r.props.showYearPicker){if(m!==null&&If(Ye(m),r.props))return}else if(r.props.showMonthYearPicker){if(m!==null&&GC(m,r.props))return}else if(m!==null&&Br(m,r.props))return;var v=r.props,b=v.onChange,w=v.selectsRange,x=v.startDate,T=v.endDate,D=v.selectsMultiple,_=v.selectedDates,k=v.minTime,A=v.swapRange;if(!Ys(r.props.selected,m)||r.props.allowSameDay||w||D)if(m!==null&&(r.props.selected&&(!c||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(m=Xg(m,{hour:ri(r.props.selected),minute:ai(r.props.selected),second:ts(r.props.selected)})),!c&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&k&&(m=Xg(m,{hour:k.getHours(),minute:k.getMinutes(),second:k.getSeconds()})),r.props.inline||r.setState({preSelection:m}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:d})),w){var V=!x&&!T,L=x&&!T,R=x&&T;V?b==null||b([m,null],o):L&&(m===null?b==null||b([null,null],o):o2(m,x)?A?b==null||b([m,x],o):b==null||b([m,null],o):b==null||b([x,m],o)),R&&(b==null||b([m,null],o))}else if(D){if(m!==null)if(!(_!=null&&_.length))b==null||b([m],o);else{var G=_.some(function(B){return tt(B,m)});if(G){var F=_.filter(function(B){return!tt(B,m)});b==null||b(F,o)}else b==null||b(Sa(Sa([],_,!0),[m],!1),o)}}else b==null||b(m,o);c||((h=(f=r.props).onSelect)===null||h===void 0||h.call(f,m,o),r.setState({inputValue:null}))},r.setPreSelection=function(i){if(!r.props.readOnly){var o=ni(r.props.minDate),
1663c=ni(r.props.maxDate),d=!0;if(i){var f=Lf(i);if(o&&c)d=nu(i,r.props.minDate,r.props.maxDate);else if(o){var h=Lf(r.props.minDate);d=is(i,h)||Ys(f,h)}else if(c){var m=GS(r.props.maxDate);d=lo(i,m)||Ys(f,m)}}d&&r.setState({preSelection:i})}},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(i){var o,c;if(!(r.props.selectsRange||r.props.selectsMultiple)){var d=r.props.selected?r.props.selected:r.getPreSelection(),f=r.props.selected?i:Xg(d,{hour:ri(i),minute:ai(i)});r.setState({preSelection:f}),(c=(o=r.props).onChange)===null||c===void 0||c.call(o,f),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var i,o;!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(o=(i=r.props).onInputClick)===null||o===void 0||o.call(i)},r.onInputKeyDown=function(i){var o,c,d,f,h,m;(c=(o=r.props).onKeyDown)===null||c===void 0||c.call(o,i);var v=i.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(v===ve.ArrowDown||v===ve.ArrowUp||v===ve.Enter)&&((d=r.onInputClick)===null||d===void 0||d.call(r));return}if(r.state.open){if(v===ve.ArrowDown||v===ve.ArrowUp){i.preventDefault();var b=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',w=((f=r.calendar)===null||f===void 0?void 0:f.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(b);w instanceof HTMLElement&&w.focus({preventScroll:!0});return}var x=ut(r.state.preSelection);v===ve.Enter?(i.preventDefault(),i.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===ey?(r.handleSelect(x,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(x)):r.setOpen(!1)):v===ve.Escape?(i.preventDefault(),i.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):v===ve.Tab&&r.setOpen(!1),r.inputOk()||(m=(h=r.props).onInputError)===null||m===void 0||m.call(h,{code:1,msg:Jg})}},r.onPortalKeyDown=function(i){var o=i.key;o===ve.Escape&&(i.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(i){var o,c,d,f,h,m,v=r.props,b=v.minDate,w=v.maxDate,x=v.disabledKeyboardNavigation,T=v.showWeekPicker,D=v.shouldCloseOnSelect,_=v.locale,k=v.calendarStartDay,A=v.adjustDateOnChange,V=v.inline;if((c=(o=r.props).onKeyDown)===null||c===void 0||c.call(o,i),!x){var L=i.key,R=i.shiftKey,G=ut(r.state.preSelection),F=function(ce,O){var z=O;switch(ce){case ve.ArrowRight:z=T?yh(O,1):sa(O,1);break;case ve.ArrowLeft:z=T?FS(O):D8(O);break;case ve.ArrowUp:z=FS(O);break;case ve.ArrowDown:z=yh(O,1);break;case ve.PageUp:z=R?_l(O,1):Zs(O,1);break;case ve.PageDown:z=R?ti(O,1):oa(O,1);break;case ve.Home:z=ns(O,_,k);break;case ve.End:z=wV(O);break}return z},B=function(ce,O){for(var z=40,ee=ce,ye=!1,M=0,X=F(ce,O);!ye;){if(M>=z){X=O;break}b&&X<b&&(ee=ve.ArrowRight,X=Br(b,r.props)?F(ee,X):b),w&&X>w&&(ee=ve.ArrowLeft,X=Br(w,r.props)?F(ee,X):w),Br(X,r.props)?((ee===ve.PageUp||ee===ve.Home)&&(ee=ve.ArrowRight),(ee===ve.PageDown||ee===ve.End)&&(ee=ve.ArrowLeft),X=F(ee,X)):ye=!0,M++}return X};if(L===ve.Enter){i.preventDefault(),r.handleSelect(G,i),!D&&r.setPreSelection(G);return}else if(L===ve.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(f=(d=r.props).onInputError)===null||f===void 0||f.call(d,{code:1,msg:Jg});return}var le=null;switch(L){case ve.ArrowLeft:case ve.ArrowRight:case ve.ArrowUp:case ve.ArrowDown:case ve.PageUp:case ve.PageDown:case ve.Home:case ve.End:le=B(L,G);break}if(!le){(m=(h=r.props).onInputError)===null||m===void 0||m.call(h,{code:1,msg:Jg});return}if(i.preventDefault(),r.setState({lastPreSelectChange:ey}),A&&r.setSelected(le),r.setPreSelection(le),V){var Z=kn(G),ie=kn(le),ge=Ye(G),oe=Ye(le);Z!==ie||ge!==oe?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(i){var o=i.key;o===ve.Escape&&(i.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1))},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var o=r.props,c=o.selectsRange,d=o.onChange;c?d==null||d([null,null],i):d==null||d(null,i),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.renderCalendar=function(){var i,o;return!r.props.inline&&!r.isCalendarOpen()?null:W.createElement(ez,nt({showMonthYearDropdown:void 0,ref:function(c){r.calendar=c}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:t.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:NV(r.modifyHolidays()),outsideClickIgnoreClass:u2,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(o=r.props.dropdownMode)!==null&&o!==void 0?o:t.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var i=r.props,o=i.dateFormat,c=o===void 0?t.defaultProps.dateFormat:o,d=i.locale,f=r.props.showTimeInput||r.props.showTimeSelect,h=f?"PPPPp":"PPPP",m;return r.props.selectsRange?m="Selected start date: ".concat(Lr(r.props.startDate,{dateFormat:h,locale:d}),". ").concat(r.props.endDate?"End date: "+Lr(r.props.endDate,{dateFormat:h,locale:d}):""):r.props.showTimeSelectOnly?m="Selected time: ".concat(Lr(r.props.selected,{dateFormat:c,locale:d})):r.props.showYearPicker?m="Selected year: ".concat(Lr(r.props.selected,{dateFormat:"yyyy",locale:d})):r.props.showMonthYearPicker?m="Selected month: ".concat(Lr(r.props.selected,{dateFormat:"MMMM yyyy",locale:d})):r.props.showQuarterYearPicker?m="Selected quarter: ".concat(Lr(r.props.selected,{dateFormat:"yyyy, QQQ",locale:d})):m="Selected date: ".concat(Lr(r.props.selected,{dateFormat:h,locale:d})),W.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-l
1663ive"},m)},r.renderDateInput=function(){var i,o,c,d=Sn(r.props.className,(i={},i[u2]=r.state.open,i)),f=r.props.customInput||W.createElement("input",{type:"text"}),h=r.props.customInputRef||"ref",m=r.props,v=m.dateFormat,b=v===void 0?t.defaultProps.dateFormat:v,w=m.locale,x=typeof r.props.value=="string"?r.props.value:typeof r.state.inputValue=="string"?r.state.inputValue:r.props.selectsRange?gV(r.props.startDate,r.props.endDate,{dateFormat:b,locale:w}):r.props.selectsMultiple?yV((c=r.props.selectedDates)!==null&&c!==void 0?c:[],{dateFormat:b,locale:w}):Lr(r.props.selected,{dateFormat:b,locale:w});return S.cloneElement(f,(o={},o[h]=function(T){r.input=T},o.value=x,o.onBlur=r.handleBlur,o.onChange=r.handleChange,o.onClick=r.onInputClick,o.onFocus=r.handleFocus,o.onKeyDown=r.onInputKeyDown,o.id=r.props.id,o.name=r.props.name,o.form=r.props.form,o.autoFocus=r.props.autoFocus,o.placeholder=r.props.placeholderText,o.disabled=r.props.disabled,o.autoComplete=r.props.autoComplete,o.className=Sn(f.props.className,d),o.title=r.props.title,o.readOnly=r.props.readOnly,o.required=r.props.required,o.tabIndex=r.props.tabIndex,o["aria-describedby"]=r.props.ariaDescribedBy,o["aria-invalid"]=r.props.ariaInvalid,o["aria-labelledby"]=r.props.ariaLabelledBy,o["aria-required"]=r.props.ariaRequired,o))},r.renderClearButton=function(){var i=r.props,o=i.isClearable,c=i.disabled,d=i.selected,f=i.startDate,h=i.endDate,m=i.clearButtonTitle,v=i.clearButtonClassName,b=v===void 0?"":v,w=i.ariaLabelClose,x=w===void 0?"Close":w,T=i.selectedDates,D=i.readOnly;return o&&!D&&(d!=null||f!=null||h!=null||T!=null&&T.length)?W.createElement("button",{type:"button",className:Sn("react-datepicker__close-icon",b,{"react-datepicker__close-icon--disabled":c}),disabled:c,"aria-label":x,onClick:r.onClearClick,title:m,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(t,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:qu,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.componentDidUpdate=function(n,r){var i,o,c,d;n.inline&&oz(n.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:r2(this.props.highlightDates)}),!r.focused&&!Ys(n.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((o=(i=this.props).onCalendarOpen)===null||o===void 0||o.call(i)),r.open===!0&&this.state.open===!1&&((d=(c=this.props).onCalendarClose)===null||d===void 0||d.call(c)))},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.renderInputContainer=function(){var n=this.props,r=n.showIcon,i=n.icon,o=n.calendarIconClassname,c=n.calendarIconClassName,d=n.toggleCalendarOnIconClick,f=this.state.open;return o&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),W.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&W.createElement(tz,nt({icon:i,className:Sn(c,!c&&o,f&&"react-datepicker-ignore-onclickoutside")},d?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}
1663,t.prototype.render=function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var r=this.state.open?W.createElement(eA,{enableTabLoop:this.props.enableTabLoop},W.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(r=W.createElement(JC,nt({portalId:this.props.portalId},this.props),r)),W.createElement("div",null,this.renderInputContainer(),r)}return W.createElement(sz,nt({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:n,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},t}(S.Component),lz="input",ey="navigate";function nA(e,t){return function(){return e.apply(t,arguments)}}const{toString:cz}=Object.prototype,{getPrototypeOf:Tb}=Object,{iterator:ep,toStringTag:rA}=Symbol,tp=(e=>t=>{const n=cz.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ca=e=>(e=e.toLowerCase(),t=>tp(t)===e),np=e=>t=>typeof t===e,{isArray:Ul}=Array,vu=np("undefined");function uz(e){return e!==null&&!vu(e)&&e.constructor!==null&&!vu(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const aA=ca("ArrayBuffer");function dz(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&aA(e.buffer),t}const fz=np("string"),Jn=np("function"),iA=np("number"),rp=e=>e!==null&&typeof e=="object",hz=e=>e===!0||e===!1,Bf=e=>{if(tp(e)!=="object")return!1;const t=Tb(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(rA in e)&&!(ep in e)},pz=ca("Date"),mz=ca("File"),gz=ca("Blob"),yz=ca("FileList"),vz=e=>rp(e)&&Jn(e.pipe),bz=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=tp(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},wz=ca("URLSearchParams"),[xz,Ez,Sz,Tz]=["ReadableStream","Request","Response","Headers"].map(ca),Dz=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ul(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),c=o.length;let d;for(r=0;r<c;r++)d=o[r],t.call(null,e[d],d,e)}}function sA(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const qs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,oA=e=>!vu(e)&&e!==qs;function Xy(){const{caseless:e}=oA(this)&&this||{},t={},n=(r,i)=>{const o=e&&sA(t,i)||i;Bf(t[o])&&Bf(r)?t[o]=Xy(t[o],r):Bf(r)?t[o]=Xy({},r):Ul(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Wu(arguments[r],n);return t}const _z=(e,t,n,{allOwnKeys:r}={})=>(Wu(t,(i,o)=>{n&&Jn(i)?e[o]=nA(i,n):e[o]=i},{allOwnKeys:r}),e),Cz=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Az=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},kz=(e,t,n,r)=>{let i,o,c;const d={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)c=i[o],(!r||r(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&Tb(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rz=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Mz=e=>{if(!e)return null;if(Ul(e))return e;let t=e.length;if(!iA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Nz=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Tb(Uint8Array)),Oz=(e,t)=>{const r=(e&&e[ep]).call(e);let i;for(;
vendor: 10,789 bytes, lines 1663-1664
1663(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},Pz=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jz=ca("HTMLFormElement"),Lz=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),d2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Iz=ca("RegExp"),lA=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wu(n,(i,o)=>{let c;(c=t(i,o,e))!==!1&&(r[o]=c||i)}),Object.defineProperties(e,r)},Bz=e=>{lA(e,(t,n)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Jn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Uz=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ul(e)?r(e):r(String(e).split(t)),n},Hz=()=>{},Vz=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zz(e){return!!(e&&Jn(e.append)&&e[rA]==="FormData"&&e[ep])}const Fz=e=>{const t=new Array(10),n=(r,i)=>{if(rp(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Ul(r)?[]:{};return Wu(r,(c,d)=>{const f=n(c,i+1);!vu(f)&&(o[d]=f)}),t[i]=void 0,o}}return r};return n(e,0)},Yz=ca("AsyncFunction"),qz=e=>e&&(rp(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),cA=((e,t)=>e?setImmediate:t?((n,r)=>(qs.addEventListener("message",({source:i,data:o})=>{i===qs&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),qs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jn(qs.postMessage)),$z=typeof queueMicrotask<"u"?queueMicrotask.bind(qs):typeof process<"u"&&process.nextTick||cA,Wz=e=>e!=null&&Jn(e[ep]),J={isArray:Ul,isArrayBuffer:aA,isBuffer:uz,isFormData:bz,isArrayBufferView:dz,isString:fz,isNumber:iA,isBoolean:hz,isObject:rp,isPlainObject:Bf,isReadableStream:xz,isRequest:Ez,isResponse:Sz,isHeaders:Tz,isUndefined:vu,isDate:pz,isFile:mz,isBlob:gz,isRegExp:Iz,isFunction:Jn,isStream:vz,isURLSearchParams:wz,isTypedArray:Nz,isFileList:yz,forEach:Wu,merge:Xy,extend:_z,trim:Dz,stripBOM:Cz,inherits:Az,toFlatObject:kz,kindOf:tp,kindOfTest:ca,endsWith:Rz,toArray:Mz,forEachEntry:Oz,matchAll:Pz,isHTMLForm:jz,hasOwnProperty:d2,hasOwnProp:d2,reduceDescriptors:lA,freezeMethods:Bz,toObjectSet:Uz,toCamelCase:Lz,noop:Hz,toFiniteNumber:Vz,findKey:sA,global:qs,isContextDefined:oA,isSpecCompliantForm:zz,toJSONObject:Fz,isAsyncFn:Yz,isThenable:qz,setImmediate:cA,asap:$z,isIterable:Wz};function He(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}J.inherits(He,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const uA=He.prototype,dA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{dA[e]={value:e}});Object.defineProperties(He,dA);Object.defineProperty(uA,"isAxiosError",{value:!0});He.from=(e,t,n,r,i,o)=>{const c=Object.create(uA);return J.toFlatObject(e,c,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),He.call(c,e.message,t,n,r,i),c.cause=e,c.name=e.name,o&&Object.assign(c,o),c};const Kz=null;function Zy(e){return J.isPlainObject(e)||J.isArray(e)}function fA(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function f2(e,t,n){return e?e.concat(t).map(function(i,o){return i=fA(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function Gz(e){return J.isArray(e)&&!e.some(Zy)}const Qz=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function ap(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,D){return!J.isUndefined(D[T])});const r=n.metaTokens,i=n.visitor||m,o=n.dots,c=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(i))throw new TypeError("visitor must be a function");function h(x){if(x===null)return"";if(J.isDate(x))return x.toISOString();if(!f&&J.isBlob(x))throw new He("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(x)||J.isTypedArray(x)?f&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function m(x,T,D){let _=x;if(x&&!D&&typeof x=="object"){if(J.endsWith(T,"{}"))T=r?T:T.slice(0,-2),x=JSON.stringify(x);else if(J.isArray(x)&&Gz(x)||(J.isFileList(x)||J.endsWith(T,"[]"))&&(_=J.toArray(x)))return T=fA(T),_.forEach(function(A,V){!(J.isUndefined(A)||A===null)&&t.append(c===!0?f2([T],V,o):c===null?T:T+"[]",h(A))}),!1}return Zy(x)?!0:(t.append(f2(D,T,o),h(x)),!1)}const v=[],b=Object.assign(Qz,{defaultVisitor:m,convertValue:h,isVisitable:Zy});function w(x,T){if(!J.isUndefined(x)){if(v.indexOf(x)!==-1)throw Error("Circular reference detected in "+T.join("."));v.push(x),J.forEach(x,function(_,k){(!(J.isUndefined(_)||_===null)&&i.call(t,_,J.isString(k)?k.trim():k,T,b))===!0&&w(_,T?T.concat(k):[k])}),v.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return w(e),t}function h2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Db(e,t){this._pairs=[],e&&ap(e,this,t)}const hA=Db.prototype;hA.append=function(t,n){this._pairs.push([t,n])};hA.toString=function(t){const n=t?function(r){return t.call(this,r,h2)}:h2;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Xz(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pA(e,t,n){if(!t)return e;const r=n&&n.encode||Xz;J.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=J.isURLSearchParams(t)?t.toString():new Db(t,n).toString(r),o){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class p2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(r){r!==null&&t(r)})}}const mA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zz=typeof URLSearchParams<"u"?URLSearchParams:Db,Jz=typeof FormData<"u"?FormData:null,e7=typeof Blob<"u"?Blob:null,t7={isBrowser:!0,classes:{URLSearchParams:Zz,FormData:Jz,Blob:e7},protocols:["http","https","file","blob","url","data"]},_b=typeof window<"u"&&typeof document<"u",Jy=typeof navigator=="object"&&navigator||void 0,n7=_b&&(!Jy||["ReactNative","NativeScript","NS"].indexOf(Jy.product)<0),r7=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",a7=_b&&window.location.href||"http://localhost",i7=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_b,hasStandardBrowserEnv:n7,hasStandardBrowserWebWorkerEnv:r7,navigator:Jy,origin:a7},Symbol.toStringTag,{value:"Module"})),Rn={...i7,...t7};function s7(e,t){return ap(e,new Rn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Rn.isNode&&J.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function o7(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function l7(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function gA(e){function t(n,r,i,o){let c=n[o++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),f=o>=n.length;return c=!c&&J.isArray(i)?i.length:c,f?(J.hasOwnProp(i,c)?i[c]=[i[c],r]:i[c]=r,!d):((!i[c]||!J.isObject(i[c]))&&(i[c]=[]),t(n,r,i[c],o)&&J.isArray(i[c])&&(i[c]=l7(i[c])),!d)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(r,i)=>{t(o7(r),i,n,0)}),n}return null}function c7(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ku={transitional:mA,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=J.isObject(t);if(o&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return i?JSON.stringify(gA(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return s7(t,this.formSerializer).toString();if((d=J.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ap(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),c7(t)):t}],transformResponse:[function(t){const n=this.transitional||Ku.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(r&&!this.responseType||i)){const c=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?He.from(d,He.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rn.classes.FormData,Blob:Rn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Ku.headers[e]={}});const u7=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),d7=e=>{const t={};let n,r,i;return e&&e.split(` 1664`).forEach(function(c){i=c.indexOf(":"),n=c.substring(0,i).trim().toLowerCase(),r=c.substring(i+1).trim(),!(!n||t[n]&&u7[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},m2=Symbol("internals");function Gc(e){return e&&String(e).trim().toLowerCase()}function Uf(e){return e===!1||e==null?e:J.isArray(e)?e.map(Uf):String(e)}function f7(e){const t=Object.create(null),n=/([^\s,;
1664=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const h7=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ty(e,t,n,r,i){if(J.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!J.isString(t)){if(J.isString(r))return t.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(t)}}function p7(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function m7(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,c){return this[r].call(this,t,i,o,c)},configurable:!0})})}let er=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(d,f,h){const m=Gc(f);if(!m)throw new Error("header name must be a non-empty string");const v=J.findKey(i,m);(!v||i[v]===void 0||h===!0||h===void 0&&i[v]!==!1)&&(i[v||f]=Uf(d))}const c=(d,f)=>J.forEach(d,(h,m)=>o(h,m,f));if(J.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(J.isString(t)&&(t=t.trim())&&!h7(t))c(d7(t),n);else if(J.isObject(t)&&J.isIterable(t)){let d={},f,h;for(const m of t){if(!J.isArray(m))throw TypeError("Object iterator must return a key-value pair");d[h=m[0]]=(f=d[h])?J.isArray(f)?[...f,m[1]]:[f,m[1]]:m[1]}c(d,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Gc(t),t){const r=J.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return f7(i);if(J.isFunction(n))return n.call(this,i,r);if(J.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Gc(t),t){const r=J.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ty(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(c){if(c=Gc(c),c){const d=J.findKey(r,c);d&&(!n||ty(r,r[d],d,n))&&(delete r[d],i=!0)}}return J.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||ty(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return J.forEach(this,(i,o)=>{const c=J.findKey(r,o);if(c){n[c]=Uf(i),delete n[o];return}const d=t?p7(o):String(o).trim();d!==o&&delete n[o],n[d]=Uf(i),r[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&J.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 1665`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[m2]=this[m2]={accessors:{}}).accessors,i=this.prototype;function o(c){const d=Gc(c);r[d]||(m7(i,c),r[d]=!0)}return J.isArray(t)?t.forEach(o):o(t),this}};er.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(er.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});J.freezeMethods(er);function ny(e,t){const n=this||Ku,r=t||n,i=er.from(r.headers);let o=r.data;return J.forEach(e,function(d){o=d.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function yA(e){return!!(e&&e.__CANCEL__)}function Hl(e,t,n){He.call(this,e??"canceled",He.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(Hl,He,{__CANCEL__:!0});function vA(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function g7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function y7(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,c;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),m=r[o];c||(c=h),n[i]=f,r[i]=h;let v=o,b=0;for(;v!==i;)b+=n[v++],v=v%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),h-c<t)return;const w=m&&h-m;return w?Math.round(b*1e3/w):void 0}}function v7(e,t){let n=0,r=1e3/t,i,o;const c=(h,m=Date.now())=>{n=m,i=null,o&&(clearTimeout(o),o=null),e.apply(null,h)};return[(...h)=>
vendor: 6,934 bytes, line 1665
1665{const m=Date.now(),v=m-n;v>=r?c(h,m):(i=h,o||(o=setTimeout(()=>{o=null,c(i)},r-v)))},()=>i&&c(i)]}const _h=(e,t,n=3)=>{let r=0;const i=y7(50,250);return v7(o=>{const c=o.loaded,d=o.lengthComputable?o.total:void 0,f=c-r,h=i(f),m=c<=d;r=c;const v={loaded:c,total:d,progress:d?c/d:void 0,bytes:f,rate:h||void 0,estimated:h&&d&&m?(d-c)/h:void 0,event:o,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(v)},n)},g2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},y2=e=>(...t)=>J.asap(()=>e(...t)),b7=Rn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Rn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Rn.origin),Rn.navigator&&/(msie|trident)/i.test(Rn.navigator.userAgent)):()=>!0,w7=Rn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const c=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),J.isString(r)&&c.push("path="+r),J.isString(i)&&c.push("domain="+i),o===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function x7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function E7(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bA(e,t,n){let r=!x7(t);return e&&(r||n==!1)?E7(e,t):t}const v2=e=>e instanceof er?{...e}:e;function co(e,t){t=t||{};const n={};function r(h,m,v,b){return J.isPlainObject(h)&&J.isPlainObject(m)?J.merge.call({caseless:b},h,m):J.isPlainObject(m)?J.merge({},m):J.isArray(m)?m.slice():m}function i(h,m,v,b){if(J.isUndefined(m)){if(!J.isUndefined(h))return r(void 0,h,v,b)}else return r(h,m,v,b)}function o(h,m){if(!J.isUndefined(m))return r(void 0,m)}function c(h,m){if(J.isUndefined(m)){if(!J.isUndefined(h))return r(void 0,h)}else return r(void 0,m)}function d(h,m,v){if(v in t)return r(h,m);if(v in e)return r(void 0,h)}const f={url:o,method:o,data:o,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(h,m,v)=>i(v2(h),v2(m),v,!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(m){const v=f[m]||i,b=v(e[m],t[m],m);J.isUndefined(b)&&v!==d||(n[m]=b)}),n}const wA=e=>{const t=co({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:c,auth:d}=t;t.headers=c=er.from(c),t.url=pA(bA(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(J.isFormData(n)){if(Rn.hasStandardBrowserEnv||Rn.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((f=c.getContentType())!==!1){const[h,...m]=f?f.split(";").map(v=>v.trim()).filter(Boolean):[];c.setContentType([h||"multipart/form-data",...m].join("; "))}}if(Rn.hasStandardBrowserEnv&&(r&&J.isFunction(r)&&(r=r(t)),r||r!==!1&&b7(t.url))){const h=i&&o&&w7.read(o);h&&c.set(i,h)}return t},S7=typeof XMLHttpRequest<"u",T7=S7&&function(e){return new Promise(function(n,r){const i=wA(e);let o=i.data;const c=er.from(i.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:h}=i,m,v,b,w,x;function T(){w&&w(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let D=new XMLHttpRequest;D.open(i.method.toUpperCase(),i.url,!0),D.timeout=i.timeout;function _(){if(!D)return;const A=er.from("getAllResponseHeaders"in D&&D.getAllResponseHeaders()),L={data:!d||d==="text"||d==="json"?D.responseText:D.response,status:D.status,statusText:D.statusText,headers:A,config:e,request:D};vA(function(G){n(G),T()},function(G){r(G),T()},L),D=null}"onloadend"in D?D.onloadend=_:D.onreadystatechange=function(){!D||D.readyState!==4||D.status===0&&!(D.responseURL&&D.responseURL.indexOf("file:")===0)||setTimeout(_)},D.onabort=function(){D&&(r(new He("Request aborted",He.ECONNABORTED,e,D)),D=null)},D.onerror=function(){r(new He("Network Error",He.ERR_NETWORK,e,D)),D=null},D.ontimeout=function(){let V=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const L=i.transitional||mA;i.timeoutErrorMessage&&(V=i.timeoutErrorMessage),r(new He(V,L.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,e,D)),D=null},o===void 0&&c.setContentType(null),"setRequestHeader"in D&&J.forEach(c.toJSON(),function(V,L){D.setRequestHeader(L,V)}),J.isUndefined(i.withCredentials)||(D.withCredentials=!!i.withCredentials),d&&d!=="json"&&(D.responseType=i.responseType),h&&([b,x]=_h(h,!0),D.addEventListener("progress",b)),f&&D.upload&&([v,w]=_h(f),D.upload.addEventListener("progress",v),D.upload.addEventListener("loadend",w)),(i.cancelToken||i.signal)&&(m=A=>{D&&(r(!A||A.type?new Hl(null,e,D):A),D.abort(),D=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const k=g7(i.url);if(k&&Rn.protocols.indexOf(k)===-1){r(new He("Unsupported protocol "+k+":",He.ERR_BAD_REQUEST,e));return}D.send(o||null)})},D7=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(h){if(!i){i=!0,d();const m=h instanceof Error?h:this.reason;r.abort(m instanceof He?m:new Hl(m instanceof Error?m.message:m))}};let c=t&&setTimeout(()=>{c=null,o(new He(`timeout ${t} of ms exceeded`,He.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>J.asap(d),f}},_7=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},C7=async function*(e,t){for await(const n of A7(e))yield*_7(n,t)},A7=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},b2=(e,t,n,r)=>{const i=C7(e,t);let o=0,c,d=f=>{c||(c=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:h,value:m}=await i.next();if(h){d(),f.close();return}let v=m.byteLength;if(n){let b=o+=v;n(b)}f.enqueue(new Uint8Array(m))}catch(h){throw d(h),h}},cancel(f){return d(f),i.return()}},{highWaterMark:2})},ip=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xA=ip&&typeof ReadableStream=="function",k7=ip&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),EA=(e,...t)=>{try{return!!e(...t)}catch{return!1}},R7=xA&&EA(()=>{let e=!1;
vendor: 4,408 bytes, lines 1665-1667
1665const t=new Request(Rn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),w2=64*1024,ev=xA&&EA(()=>J.isReadableStream(new Response("").body)),Ch={stream:ev&&(e=>e.body)};ip&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ch[t]&&(Ch[t]=J.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new He(`Response type '${t}' is not supported`,He.ERR_NOT_SUPPORT,r)})})})(new Response);const M7=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new Request(Rn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e=e+""),J.isString(e))return(await k7(e)).byteLength},N7=async(e,t)=>{const n=J.toFiniteNumber(e.getContentLength());return n??M7(t)},O7=ip&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:c,onDownloadProgress:d,onUploadProgress:f,responseType:h,headers:m,withCredentials:v="same-origin",fetchOptions:b}=wA(e);h=h?(h+"").toLowerCase():"text";let w=D7([i,o&&o.toAbortSignal()],c),x;const T=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let D;try{if(f&&R7&&n!=="get"&&n!=="head"&&(D=await N7(m,r))!==0){let L=new Request(t,{method:"POST",body:r,duplex:"half"}),R;if(J.isFormData(r)&&(R=L.headers.get("content-type"))&&m.setContentType(R),L.body){const[G,F]=g2(D,_h(y2(f)));r=b2(L.body,w2,G,F)}}J.isString(v)||(v=v?"include":"omit");const _="credentials"in Request.prototype;x=new Request(t,{...b,signal:w,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:r,duplex:"half",credentials:_?v:void 0});let k=await fetch(x);const A=ev&&(h==="stream"||h==="response");if(ev&&(d||A&&T)){const L={};["status","statusText","headers"].forEach(B=>{L[B]=k[B]});const R=J.toFiniteNumber(k.headers.get("content-length")),[G,F]=d&&g2(R,_h(y2(d),!0))||[];k=new Response(b2(k.body,w2,G,()=>{F&&F(),T&&T()}),L)}h=h||"text";let V=await Ch[J.findKey(Ch,h)||"text"](k,e);return!A&&T&&T(),await new Promise((L,R)=>{vA(L,R,{data:V,headers:er.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:x})})}catch(_){throw T&&T(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new He("Network Error",He.ERR_NETWORK,e,x),{cause:_.cause||_}):He.from(_,_&&_.code,e,x)}}),tv={http:Kz,xhr:T7,fetch:O7};J.forEach(tv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const x2=e=>`- ${e}`,P7=e=>J.isFunction(e)||e===null||e===!1,SA={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let c;if(r=n,!P7(n)&&(r=tv[(c=String(n)).toLowerCase()],r===void 0))throw new He(`Unknown adapter '${c}'`);if(r)break;i[c||"#"+o]=r}if(!r){const o=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=t?o.length>1?`since : 1666`+o.map(x2).join(` 1667`):" "+x2(o[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r},adapters:tv};function ry(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hl(null,e)}function E2(e){return ry(e),e.headers=er.from(e.headers),e.data=ny.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),SA.getAdapter(e.adapter||Ku.adapter)(e).then(function(r){return ry(e),r.data=ny.call(e,e.transformResponse,r),r.headers=er.from(r.headers),r},function(r){return yA(r)||(ry(e),r&&r.response&&(r.response.data=ny.call(e,e.transformResponse,r.response),r.response.headers=er.from(r.response.headers))),Promise.reject(r)})}const TA="1.9.0",sp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const S2={};sp.transitional=function(t,n,r){function i(o,c){return"[Axios v"+TA+"] Transitional option '"+o+"'"+c+(r?". "+r:"")}return(o,c,d)=>{if(t===!1)throw new He(i(c," has been removed"+(n?" in "+n:"")),He.ERR_DEPRECATED);return n&&!S2[c]&&(S2[c]=!0,console.warn(i(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,c,d):!0}};sp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};
vendor: 4,146 bytes, lines 1667-1668
1667function j7(e,t,n){if(typeof e!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],c=t[o];if(c){const d=e[o],f=d===void 0||c(d,o,e);if(f!==!0)throw new He("option "+o+" must be "+f,He.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new He("Unknown option "+o,He.ERR_BAD_OPTION)}}const Hf={assertOptions:j7,validators:sp},ya=Hf.validators;let Js=class{constructor(t){this.defaults=t||{},this.interceptors={request:new p2,response:new p2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` 1668`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=co(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Hf.assertOptions(r,{silentJSONParsing:ya.transitional(ya.boolean),forcedJSONParsing:ya.transitional(ya.boolean),clarifyTimeoutError:ya.transitional(ya.boolean)},!1),i!=null&&(J.isFunction(i)?n.paramsSerializer={serialize:i}:Hf.assertOptions(i,{encode:ya.function,serialize:ya.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Hf.assertOptions(n,{baseUrl:ya.spelling("baseURL"),withXsrfToken:ya.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=o&&J.merge(o.common,o[n.method]);o&&J.forEach(["delete","get","head","post","put","patch","common"],x=>{delete o[x]}),n.headers=er.concat(c,o);const d=[];let f=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(f=f&&T.synchronous,d.unshift(T.fulfilled,T.rejected))});const h=[];this.interceptors.response.forEach(function(T){h.push(T.fulfilled,T.rejected)});let m,v=0,b;if(!f){const x=[E2.bind(this),void 0];for(x.unshift.apply(x,d),x.push.apply(x,h),b=x.length,m=Promise.resolve(n);v<b;)m=m.then(x[v++],x[v++]);return m}b=d.length;let w=n;for(v=0;v<b;){const x=d[v++],T=d[v++];try{w=x(w)}catch(D){T.call(this,D);break}}try{m=E2.call(this,w)}catch(x){return Promise.reject(x)}for(v=0,b=h.length;v<b;)m=m.then(h[v++],h[v++]);return m}getUri(t){t=co(this.defaults,t);const n=bA(t.baseURL,t.url,t.allowAbsoluteUrls);return pA(n,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){Js.prototype[t]=function(n,r){return this.request(co(r||{},{method:t,url:n,data:(r||{}).data}))}});J.forEach(["post","put","patch"],function(t){function n(r){return function(o,c,d){return this.request(co(d||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:c}))}}Js.prototype[t]=n(),Js.prototype[t+"Form"]=n(!0)});let L7=class DA{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const c=new Promise(d=>{r.subscribe(d),o=d}).then(i);return c.cancel=function(){r.unsubscribe(o)},c},t(function(o,c,d){r.reason||(r.reason=new Hl(o,c,d),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new DA(function(i){t=i}),cancel:t}}};function I7(e){return function(n){return e.apply(null,n)}}function B7(e){return J.isObject(e)&&e.isAxiosError===!0}const nv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
1668setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nv).forEach(([e,t])=>{nv[t]=e});function _A(e){const t=new Js(e),n=nA(Js.prototype.request,t);return J.extend(n,Js.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return _A(co(e,i))},n}const Zt=_A(Ku);Zt.Axios=Js;Zt.CanceledError=Hl;Zt.CancelToken=L7;Zt.isCancel=yA;Zt.VERSION=TA;Zt.toFormData=ap;Zt.AxiosError=He;Zt.Cancel=Zt.CanceledError;Zt.all=function(t){return Promise.all(t)};Zt.spread=I7;Zt.isAxiosError=B7;Zt.mergeConfig=co;Zt.AxiosHeaders=er;Zt.formToJSON=e=>gA(J.isHTMLForm(e)?new FormData(e):e);Zt.getAdapter=SA.getAdapter;Zt.HttpStatusCode=nv;Zt.default=Zt;const{Axios:sW,AxiosError:oW,CanceledError:lW,isCancel:cW,CancelToken:uW,VERSION:dW,all:fW,Cancel:hW,isAxiosError:pW,spread:mW,toFormData:gW,AxiosHeaders:yW,HttpStatusCode:vW,formToJSON:bW,getAdapter:wW,mergeConfig:xW}=Zt,ay=Zt.create({baseURL:"https://uddyog-server.vercel.app",headers:{"Content-Type":"application/json"}});function U7(){const{user:e}=hi();return ay.interceptors.request.use(t=>(e!=null&&e.accessToken&&(t.headers.authorization=`Bearer ${e.accessToken}`),t)),ay.interceptors.response.use(t=>t,t=>{var n;return((n=t.response)==null?void 0:n.status)===401&&console.error("Unauthorized - maybe redirect to login"),Promise.reject(t)}),ay}function hs(){const e=U7();return{createEvent:async x=>(await e.post("/events",x)).data,getEvents:async()=>(await e.get("/events")).data,getUpcomingEvents:async(x={})=>(await e.get("/events/upcoming",{params:x})).data,joinEvent:async x=>(await e.post(`/events/${x}/join`)).data,getJoinedEvents:async()=>(await e.get("/events/joined")).data,getCreatedEvents:async()=>(await e.get("/events/created")).data,getEventById:async x=>(await e.get(`/events/${x}`)).data,updateEvent:async(x,T)=>(await e.put(`/events/${x}`,T)).data,deleteEvent:async x=>(await e.delete(`/events/${x}`)).data,submitReview:async(x,T)=>(await e.post(`/events/${x}/review`,T)).data,getEventReviews:async x=>(await e.get(`/events/${x}/reviews`)).data,getEventRating:async x=>(await e.get(`/events/${x}/rating`)).data,getUserReview:async x=>(await e.get(`/events/${x}/review/mine`)).data}}const H7=()=>{const{user:e}=hi(),{createEvent:t}=hs(),n=Wr(),[r,i]=S.useState(!1),[o,c]=S.useState({title:"",description:"",type:"",thumbnail:"",location:"",date:null}),d=["Cleanup","Plantation","Donation","Education","Healthcare","Food Drive","Community Building","Environmental","Sports","Cultural","Technology","Volunteer Work","Workshop","Seminar","Other"],f=w=>{const{name:x,value:T}=w.target;c(D=>({...D,[x]:T}))},h=w=>{c(x=>({...x,date:w}))},m=()=>{const{title:w,description:x,type:T,thumbnail:D,location:_,date:k}=o;if(!w.trim())return Ke.fire({icon:"error",title:"Validation Error",text:"Event title is required"}),!1;if(!x.trim())return Ke.fire({icon:"error",title:"Validation Error",text:"Event description is required"}),!1;if(!T)return Ke.fire({icon:"error",title:"Validation Error",text:"Please select an event type"}),!1;if(!D.trim())return Ke.fire({icon:"error",title:"Validation Error",text:"Thumbnail image URL is required"}),!1;try{new URL(D)}catch{return Ke.fire({icon:"error",title:"Validation Error",text:"Please provide a valid thumbnail image URL"}),!1}return _.trim()?k?k<=new Date?(Ke.fire({icon:"error",title:"Invalid Date",text:"Event date must be in the future"}),!1):!0:(Ke.fire({icon:"error",title:"Validation Error",text:"Event date is required"}),!1):(Ke.fire({icon:"error",title:"Validation Error",text:"Event location is required"}),!1)},v=async w=>{var x,T,D;
1668if(w.preventDefault(),!!m()){i(!0);try{const _={title:o.title.trim(),description:o.description.trim(),type:o.type,thumbnail:o.thumbnail.trim(),location:o.location.trim(),date:o.date.toISOString()};await t(_),Ke.fire({icon:"success",title:"Success!",text:"Event created successfully!",timer:1500,showConfirmButton:!1}),c({title:"",description:"",type:"",thumbnail:"",location:"",date:null}),n("/upcoming")}catch(_){console.error("Error creating event:",_);let k="Failed to create event. Please try again.";(T=(x=_.response)==null?void 0:x.data)!=null&&T.message?k=_.response.data.message:(D=_.response)!=null&&D.data?k=_.response.data:_.message&&(k=_.message),Ke.fire({icon:"error",title:"Error",text:k})}finally{i(!1)}}},b=w=>w>new Date;return y.jsxs(y.Fragment,{children:[y.jsxs(Ml,{children:[y.jsx("title",{children:"Create Event | Uddyog"}),y.jsx("meta",{name:"description",content:"Create a new community event"})]}),y.jsx("div",{className:"min-h-screen bg-base-300 pt-24 pb-12",children:y.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[y.jsxs("div",{className:"text-center mb-12",children:[y.jsx("h1",{className:"text-4xl font-bold text-primary mb-4",children:"Create New Event"}),y.jsx("p",{className:"text-base-content/70 text-lg max-w-2xl mx-auto",children:"Organize a community event and make a positive impact. Fill in the details below to get started."})]}),y.jsx("div",{className:"bg-base-100 rounded-2xl shadow-lg border border-primary/10 p-8",children:y.jsxs("form",{onSubmit:v,className:"space-y-6",children:[y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(Fs,{className:"w-5 h-5"}),"Event Title"]}),y.jsx("input",{type:"text",name:"title",value:o.title,onChange:f,placeholder:"Enter a compelling event title",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",required:!0})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(p_,{className:"w-5 h-5"}),"Event Description"]}),y.jsx("textarea",{name:"description",value:o.description,onChange:f,placeholder:"Describe your event in detail. What will participants do? What impact will it have?",rows:"4",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200 resize-vertical",required:!0})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(Fs,{className:"w-5 h-5"}),"Event Type"]}),y.jsxs("select",{name:"type",value:o.type,onChange:f,className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",required:!0,children:[y.jsx("option",{value:"",children:"Select event type"}),d.map(w=>y.jsx("option",{value:w,children:w},w))]})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(h_,{className:"w-5 h-5"}),"Thumbnail Image URL"]}),y.jsx("input",{type:"url",name:"thumbnail",value:o.thumbnail,onChange:f,placeholder:"https://example.com/image.jpg",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",required:!0}),o.thumbnail&&y.jsxs("div",{className:"mt-3",children:[y.jsx("p",{className:"text-sm text-base-content/60 mb-2",children:"Image Preview:"}),y.jsx("img",{src:o.thumbnail,alt:"Event thumbnail preview",className:"w-32 h-24 object-cover rounded-lg border border-primary/10",onError:w=>{w.target.style.display="none"}})]})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(bl,{className:"w-5 h-5"}),"Event Location"]}),y.jsx("input",{type:"text",name:"location",value:o.location,onChange:f,placeholder:"Enter the event location or address",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",required:!0})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(es,{className:"w-5 h-5"}),"Event Date"]}),y.jsx("div",{className:"relative",children:y.jsx(tA,{selected:o.date,onChange:h,filterDate:b,minDate:new Date,timeFormat:"HH",dateFormat:"MMMM d, yyyy",placeholderText:"Select event date",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",wrapperClassName:"w-full",required:!0})}),y.jsx("p",{className:"text-sm text-base-content/60 mt-2",children:"Only future dates are allowed for events"})]}),y.jsxs("div",{className:"bg-primary/5 rounded-lg p-4 border border-primary/10",children:[y.jsx("h3",{className:"text-primary font-semibold mb-2",children:"Event Creator"}),y.jsxs("div",{className:"flex items-center gap-3",children:[(e==null?void 0:e.photoURL)&&y.jsx("img",{src:e.photoURL,alt:e.displayName||e.email,className:"w-10 h-10 rounded-full object-cover"}),y.jsxs("div",{children:[y.jsx("p",{className:"text-base-content font-medium",children:(e==null?void 0:e.displayName)||"Anonymous"}),y.jsx("p",{className:"text-base-content/60 text-sm",children:e==null?void 0:e.email})]})]})]}),y.jsx("div",{className:"pt-6",children:y.jsx(ct,{type:"submit",loading:r,disabled:r,className:"w-full py-4 text-lg font-semibold",children:"Create Event"})})]})})]})})]})},V7="/assets/404-error-DfNtRDAf.svg";function z7(){const e=Wr();return y.jsxs(y.Fragment,{children:[y.jsxs(Ml,{children:[y.jsx("title",{children:"Page Not Found | Uddyog"}),y.jsx("meta",{name:"description",content:"The page you're looking for doesn't exist."})]}),y.jsx("div",{className:"min-h-screen bg-base-300 flex items-center justify-center px-4",children:y.jsxs("div",{className:"max-w-md w-full text-center",children:[y.jsx("div",{className:"mb-8",children:y.jsx("img",{src:V7,alt:"404 Error",className:"w-full max-w-sm mx-auto"})}),y.jsxs("div",{className:"mb-8",children:[y.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-base-content mb-4",children:"Oops!"}),y.jsx("h2",{className:"text-xl md:text-2xl font-semibold text-base-content/80 mb-3",children:"Page Not Found"}),y.jsx("p",{className:"text-base-content/60 text-lg",children:"The page you're looking for doesn't exist or has been moved."})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[y.jsx(ct,{onClick:()=>
1668e("/"),className:"bg-[#0a324d]! text-base-100",children:"Go Home"}),y.jsx(ct,{onClick:()=>e(-1),variant:"outline",className:"hover:bg-[#0a324d]! border-[#0a324d]! text-[#0a324d] hover:text-base-100",children:"Go Back"})]})]})})]})}function F7(e){return At({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(e)}function Y7(e){return At({attr:{viewBox:"0 0 536 512"},child:[{tag:"path",attr:{d:"M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"},child:[]}]})(e)}function T2(e){return At({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(e)}function D2(e){return At({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"},child:[]}]})(e)}function op(e){return At({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"},child:[]}]})(e)}function q7({message:e="Event not found"}){const t=Wr(),n=uD();return y.jsx("div",{className:"min-h-screen bg-base-300 pt-24 pb-12",children:y.jsx("div",{className:"max-w-4xl mx-auto px-4 mt-16",children:y.jsx("div",{className:"bg-base-100 rounded-2xl shadow-lg border border-primary/10 overflow-hidden",children:y.jsxs("div",{className:"p-8 text-center",children:[y.jsx("div",{className:"flex justify-center mb-6",children:y.jsx("div",{className:"bg-error/10 p-4 rounded-full",children:y.jsx(op,{className:"size-16 text-error"})})}),y.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-base-content mb-4",children:"Event Not Found"}),y.jsxs("p",{className:"text-base-content/70 text-lg mb-8 max-w-md mx-auto",children:[e,". The event with ID ",y.jsx("span",{className:"font-semibold",children:n.id})," you're looking for might have been removed or doesn't exist."]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[y.jsx(ct,{onClick:()=>t("/upcoming"),className:"bg-primary text-base-100",children:"Browse Events"}),y.jsx(ct,{onClick:()=>t("/"),variant:"outline",children:"Go Home"})]})]})})})})}function lp({rating:e,onRatingChange:t=null,size:n="text-lg",interactive:r=!1,showText:i=!0}){const c=()=>{const d=[];for(let f=1;f<=5;f++){let h;r?h=f<=e?y.jsx(T2,{className:`${n} text-yellow-400 cursor-pointer hover:text-yellow-500 transition-colors`,onClick:()=>t&&t(f)},f):y.jsx(D2,{className:`${n} text-gray-300 cursor-pointer hover:text-yellow-400 transition-colors`,onClick:()=>t&&t(f)},f):f<=Math.floor(e)?h=y.jsx(T2,{className:`${n} text-yellow-400`},f):f===Math.ceil(e)&&e%1!==0?h=y.jsx(Y7,{className:`${n} text-yellow-400`},f):h=y.jsx(D2,{className:`${n} text-gray-300`},f),d.push(h)}return d};return y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"flex items-center gap-1",children:c()}),i&&y.jsx("span",{className:"text-sm text-base-content/70 font-medium",children:r?e>0?`${e}/5`:"Rate this event":e>0?`${e}/5`:"No ratings yet"})]})}function $7({eventId:e}){const{getEventRating:t}=hs(),[n,r]=S.useState(null),[i,o]=S.useState(!0),[c,d]=S.useState(null),f=async()=>{try{o(!0),d(null);const b=await t(e);r(b)}catch(b){console.error("Error fetching rating data:",b),d("Failed to load rating data")}finally{o(!1)}};if(S.useEffect(()=>{f()},[e]),i)return y.jsx("div",{className:"bg-base-100 rounded-xl border border-primary/10 p-6",children:y.jsx("div",{className:"flex justify-center",children:y.jsx(fs,{})})});if(c)return y.jsx("div",{className:"bg-base-100 rounded-xl border border-primary/10 p-6",children:y.jsx("p",{className:"text-center text-error",children:c})});const{averageRating:h,totalReviews:m,ratingDistribution:v}=n||{};return y.jsxs("div",{className:"bg-base-100 rounded-xl border border-primary/10 p-6",children:[y.jsxs("h3",{className:"text-lg font-bold text-base-content mb-4 flex items-center gap-2",children:[y.jsx(xI,{className:"w-5 h-5 text-primary"}),"Event Rating"]}),m===0?y.jsx("div",{className:"text-center py-4",children:y.jsx("p",{className:"text-base-content/60",children:"No ratings yet"})}):y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"text-4xl font-bold text-primary mb-2",children:h}),y.jsx(lp,{rating:h,size:"text-xl",showText:!1}),y.jsxs("p",{className:"text-sm text-base-content/70 mt-2",children:["Based on ",m," review",m!==1?"s":""]})]}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h4",{className:"text-sm font-semibold text-base-content mb-3",children:"Rating Distribution"}),[5,4,3,2,1].map(b=>{const w=v[b]||0,x=m>0?w/m*100:0;return y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsxs("span",{className:"text-sm text-base-content/70 w-8",children:[b,"â
"]}
1668),y.jsx("div",{className:"flex-1 bg-base-200 rounded-full h-2",children:y.jsx("div",{className:"bg-yellow-400 h-2 rounded-full transition-all duration-300",style:{width:`${x}%`}})}),y.jsx("span",{className:"text-sm text-base-content/70 w-8 text-right",children:w})]},b)})]})]})]})}function W7({eventId:e,existingReview:t=null,onReviewSubmitted:n}){const{submitReview:r}=hs(),[i,o]=S.useState((t==null?void 0:t.rating)||0),[c,d]=S.useState((t==null?void 0:t.comment)||""),[f,h]=S.useState(!1),m=async v=>{var b;if(v.preventDefault(),i===0){Ke.fire({icon:"warning",title:"Rating Required",text:"Please select a rating before submitting your review."});return}h(!0);try{await r(e,{rating:i,comment:c.trim()}),Ke.fire({icon:"success",title:"Success!",text:t?"Your review has been updated!":"Thank you for your review!",timer:2e3,showConfirmButton:!1}),t||(o(0),d("")),n&&n()}catch(w){console.error("Error submitting review:",w);let x="Failed to submit review. Please try again.";(b=w.response)!=null&&b.data&&(x=w.response.data),Ke.fire({icon:"error",title:"Error",text:x})}finally{h(!1)}};return y.jsxs("div",{className:"bg-base-100 rounded-xl border border-primary/10 p-6",children:[y.jsx("h3",{className:"text-lg font-bold text-base-content mb-4 flex items-center gap-2",children:t?y.jsxs(y.Fragment,{children:[y.jsx(jy,{className:"w-5 h-5 text-primary"}),"Update Your Review"]}):y.jsxs(y.Fragment,{children:[y.jsx(aS,{className:"w-5 h-5 text-primary"}),"Write a Review"]})}),y.jsxs("form",{onSubmit:m,className:"space-y-4",children:[y.jsxs("div",{children:[y.jsx("label",{className:"block text-sm font-semibold text-base-content mb-2",children:"Your Rating"}),y.jsx(lp,{rating:i,onRatingChange:o,interactive:!0,size:"text-2xl"})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"comment",className:"block text-sm font-semibold text-base-content mb-2",children:"Your Review (Optional)"}),y.jsx("textarea",{id:"comment",rows:4,className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200 resize-none",placeholder:"Share your experience about this event...",value:c,onChange:v=>d(v.target.value),maxLength:500}),y.jsxs("div",{className:"text-xs text-base-content/60 mt-1",children:[c.length,"/500 characters"]})]}),y.jsx(ct,{type:"submit",loading:f,disabled:i===0,className:"w-full",icon:t?jy:aS,children:t?"Update Review":"Submit Review"})]})]})}function K7({eventId:e}){const{getEventReviews:t}=hs(),[n,r]=S.useState([]),[i,o]=S.useState(!0),[c,d]=S.useState(null),f=async()=>{try{o(!0),d(null);const m=await t(e);r(m||[])}catch(m){console.error("Error fetching reviews:",m),d("Failed to load reviews")}finally{o(!1)}};S.useEffect(()=>{f()},[e]);const h=m=>new Date(m).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return i?y.jsx("div",{className:"bg-base-100 rounded-xl border border-primary/10 p-6",children:y.jsx("div",{className:"flex justify-center",children:y.jsx(fs,{})})}):c?y.jsx("div",{className:"bg-base-100 rounded-xl border border-primary/10 p-6",children:y.jsx("p",{className:"text-center text-error",children:c})}):y.jsxs("div",{className:"bg-base-100 rounded-xl border border-primary/10 p-6",children:[y.jsxs("h3",{className:"text-lg font-bold text-base-content mb-4 flex items-center gap-2",children:[y.jsx(rS,{className:"w-5 h-5 text-primary"}),"Reviews (",n.length,")"]}),n.length===0?y.jsxs("div",{className:"text-center py-8",children:[y.jsx(rS,{className:"w-12 h-12 text-base-content/30 mx-auto mb-3"}),y.jsx("p",{className:"text-base-content/60",children:"No reviews yet. Be the first to share your experience!"})]}):y.jsx("div",{className:"space-y-4",children:n.map(m=>y.jsxs("div",{className:"border border-primary/10 rounded-lg p-4 bg-base-200/50",children:[y.jsxs("div",{className:"flex items-start justify-between mb-3",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-full flex items-center justify-center",children:y.jsx(kI,{className:"w-5 h-5 text-primary"})}),y.jsxs("div",{children:[y.jsx("h4",{className:"font-semibold text-base-content",children:m.userName||"Anonymous"}),y.jsxs("p",{className:"text-sm text-base-content/60",children:[h(m.createdAt),m.updatedAt&&m.updatedAt!==m.createdAt&&y.jsx("span",{className:"ml-1",children:"(edited)"})]})]})]}),y.jsx("div",{className:"flex-shrink-0",children:y.jsx(lp,{rating:m.rating,size:"text-sm",showText:!1})})]}),m.comment&&y.jsx("div",{className:"ml-13",children:y.jsx("p",{className:"text-base-content/80 leading-relaxed",children:m.comment})})]},m._id))})]})}function G7(){var le,Z;const{id:e}=uD(),t=Wr(),{user:n}=hi(),{getEventById:r,joinEvent:i,getUserReview:o}=hs(),[c,d]=S.useState(null),[f,h]=S.useState(!0),[m,v]=S.useState(null),[b,w]=S.useState(!1),[x,T]=S.useState(null),[D,_]=S.useState(0),
1668k=async()=>{var ie;try{h(!0),v(null);const ge=await r(e);d(ge),n&&new Date(ge.date)<new Date&&A()}catch(ge){console.error("Failed to fetch event details:",ge),((ie=ge.response)==null?void 0:ie.status)===404?v("EVENT_NOT_FOUND"):v("Failed to fetch event details. Please try again.")}finally{h(!1)}},A=async()=>{if(n)try{const ie=await o(e);T(ie)}catch(ie){console.error("Failed to fetch user review:",ie)}},V=()=>{_(ie=>ie+1),A()};S.useEffect(()=>{k()},[e]);const L=async()=>{var ie,ge,oe,ce;if(!n){Ke.fire({icon:"warning",title:"Authentication Required",text:"Please log in to join events",showCancelButton:!0,confirmButtonText:"Login",cancelButtonText:"Cancel"}).then(O=>{O.isConfirmed&&t("/auth/login")});return}w(!0);try{await i(e),Ke.fire({icon:"success",title:"Success!",text:`You've successfully joined "${c.title}"!`,timer:2e3,showConfirmButton:!1}),await k()}catch(O){console.error("Error joining event:",O);let z="Failed to join event. Please try again.";((ie=O.response)==null?void 0:ie.status)===400?z="You have already joined this event.":(oe=(ge=O.response)==null?void 0:ge.data)!=null&&oe.message?z=O.response.data.message:(ce=O.response)!=null&&ce.data?z=O.response.data:O.message&&(z=O.message),Ke.fire({icon:"error",title:"Error",text:z})}finally{w(!1)}},R=ie=>new Date(ie)<new Date,G=()=>!n||!(c!=null&&c.joinedUsers)?!1:c.joinedUsers.some(ie=>ie===n.email),F=ie=>new Date(ie).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),B=ie=>new Date(ie).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return m?y.jsx(q7,{}):y.jsxs(y.Fragment,{children:[y.jsxs(Ml,{children:[y.jsx("title",{children:c?`${c.title} | Uddyog`:"Event Details | Uddyog"}),y.jsx("meta",{name:"description",content:(c==null?void 0:c.description)||"View event details"})]}),y.jsx("div",{className:"min-h-screen bg-base-300 pt-24 pb-12",children:y.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[y.jsx(ct,{onClick:()=>t(-1),variant:"outline",className:"!w-auto mb-6",icon:wI,children:"Back to Events"}),f&&y.jsx("div",{className:"flex justify-center items-center py-12",children:y.jsx(fs,{})}),!f&&!m&&c&&y.jsxs("div",{className:"bg-base-100 rounded-2xl shadow-lg border border-primary/10 overflow-hidden",children:[y.jsxs("div",{className:"h-64 md:h-80 bg-base-200",children:[c.thumbnail?y.jsx("img",{src:c.thumbnail,alt:c.title,className:"w-full h-full object-cover",onError:ie=>{ie.target.style.display="none",ie.target.nextSibling.style.display="flex"}}):null,y.jsx("div",{className:`w-full h-full bg-gradient-to-br from-primary/60 to-secondary/60 flex items-center justify-center ${c.thumbnail?"hidden":"flex"}`,children:y.jsx("span",{className:"text-base-100 text-4xl font-bold",children:((le=c.title)==null?void 0:le.charAt(0))||"E"})})]}),y.jsxs("div",{className:"p-8",children:[y.jsx("div",{className:"mb-4",children:y.jsxs("span",{className:"inline-flex items-center gap-1 bg-primary/10 text-primary text-sm px-3 py-1 rounded-full font-semibold",children:[y.jsx(Fs,{className:"w-4 h-4"}),c.type||"Event"]})}),y.jsx("h1",{className:"text-3xl md:text-4xl font-bold text-base-content mb-6",children:c.title}),y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-8",children:[y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("div",{className:"bg-primary/10 p-2 rounded-lg",children:y.jsx(es,{className:"w-full h-full"})}),y.jsxs("div",{children:[y.jsx("h3",{className:"font-semibold text-base-content mb-1",children:"Date & Time"}),y.jsx("p",{className:"text-base-content/70",children:F(c.date)}),y.jsx("p",{className:"text-base-content/70 text-sm",children:B(c.date)})]})]}),y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("div",{className:"bg-primary/10 p-2 rounded-lg",children:y.jsx(bl,{className:"w-5 h-5 text-primary"})}),y.jsxs("div",{children:[y.jsx("h3",{className:"font-semibold text-base-content mb-1",children:"Location"}),y.jsx("p",{className:"text-base-content/70",children:c.location})]})]}),y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("div",{className:"bg-primary/10 p-2 rounded-lg",children:y.jsx(Hh,{className:"w-5 h-5 text-primary"})}),y.jsxs("div",{children:[y.jsx("h3",{className:"font-semibold text-base-content mb-1",children:"Participants"}),y.jsxs("p",{className:"text-base-content/70",children:[((Z=c.joinedUsers)==null?void 0:Z.length)||0," people joined"]})]})]})]}),y.jsxs("div",{className:"mb-8",children:[y.jsx("h2",{className:"text-xl font-bold text-base-content mb-4",children:"About This Event"}),y.jsx("div",{className:"bg-base-200 rounded-lg p-6",children:y.jsx("p",{className:"text-base-content/80 leading-relaxed",children:c.description})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[R(c.date)?y.jsx("div",{className:"flex-1 bg-base-300 text-base-content/60 font-semibold py-3 px-6 rounded-lg text-center",children:"Event has ended"}):y.jsx(ct,{onClick:L,disabled:b,loading:b,className:`flex-1 flex items-center justify-center gap-2 ${G()?"bg-primary/50! text-base-100":"bg-primary text-base-100"}`,icon:G()?null:AI,children:G()?y.jsxs(y.Fragment,{children:[y.jsx(F7,{}),"Already Joined"]}):"Join Event"}),y.jsx(ct,{onClick:()=>t("/upcoming"),variant:"outline",className:"flex-1",children:"Browse More Events"})]})]})]}),!f&&!m&&c&&y.jsx("div",{className:"mt-8 space-y-6",children:n&&G()&&R(c.date)?y.jsxs(y.Fragment,{children:[y.jsx(W7,{eventId:e,existingReview:x,onReviewSubmitted:V}),y.jsx($7,{eventId:e}),y.jsx(K7,{eventId:e},D)]}):y.jsx("div",{className:"bg-base-200 p-6 rounded-lg text-center",children:y.jsx("p",{className:"text-base-content/70",children:"You can only leave a review if you have joined the event and it has passed."})})})]})})]})}const CA=S.createContext({});function Q7(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Cb=typeof window<"u",X7=Cb?S.useLayoutEffect:S.useEffect,Ab=S.createContext(null);function kb(e,t){e.indexOf(t)===-1&&e.push(t)}function Rb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ci=(e,t,n)=>n>t?t:n<e?e:n;let Mb=()=>{};const ui={},AA=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function kA(e){return typeof e=="object"&&e!==null}const RA=e=>/^0[^.\s]+$/u.test(e);function Nb(e){let t;return()=>(t===void 0&&(t=e()),t)}const Hr=e=>e,Z7=(e,t)=>n=>t(e(n)),Gu=(...e)=>
vendor: 22,509 bytes, line 1668
1668e.reduce(Z7),bu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ob{constructor(){this.subscriptions=[]}add(t){return kb(this.subscriptions,t),()=>Rb(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const c=this.subscriptions[o];c&&c(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ca=e=>e*1e3,Aa=e=>e/1e3;function MA(e,t){return t?e*(1e3/t):0}const NA=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,J7=1e-7,eF=12;function tF(e,t,n,r,i){let o,c,d=0;do c=t+(n-t)/2,o=NA(c,r,i)-e,o>0?n=c:t=c;while(Math.abs(o)>J7&&++d<eF);return c}function Qu(e,t,n,r){if(e===t&&n===r)return Hr;const i=o=>tF(o,0,1,e,n);return o=>o===0||o===1?o:NA(i(o),t,r)}const OA=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,PA=e=>t=>1-e(1-t),jA=Qu(.33,1.53,.69,.99),Pb=PA(jA),LA=OA(Pb),IA=e=>(e*=2)<1?.5*Pb(e):.5*(2-Math.pow(2,-10*(e-1))),jb=e=>1-Math.sin(Math.acos(e)),BA=PA(jb),UA=OA(jb),nF=Qu(.42,0,1,1),rF=Qu(0,0,.58,1),HA=Qu(.42,0,.58,1),aF=e=>Array.isArray(e)&&typeof e[0]!="number",VA=e=>Array.isArray(e)&&typeof e[0]=="number",iF={linear:Hr,easeIn:nF,easeInOut:HA,easeOut:rF,circIn:jb,circInOut:UA,circOut:BA,backIn:Pb,backInOut:LA,backOut:jA,anticipate:IA},sF=e=>typeof e=="string",_2=e=>{if(VA(e)){Mb(e.length===4);const[t,n,r,i]=e;return Qu(t,n,r,i)}else if(sF(e))return iF[e];return e},wf=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],C2={value:null};function oF(e,t){let n=new Set,r=new Set,i=!1,o=!1;const c=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1},f=0;function h(v){c.has(v)&&(m.schedule(v),e()),f++,v(d)}const m={schedule:(v,b=!1,w=!1)=>{const T=w&&i?n:r;return b&&c.add(v),T.has(v)||T.add(v),v},cancel:v=>{r.delete(v),c.delete(v)},process:v=>{if(d=v,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(h),t&&C2.value&&C2.value.frameloop[t].push(f),f=0,n.clear(),i=!1,o&&(o=!1,m.process(v))}};return m}const lF=40;function zA(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,c=wf.reduce((A,V)=>(A[V]=oF(o,t?V:void 0),A),{}),{setup:d,read:f,resolveKeyframes:h,preUpdate:m,update:v,preRender:b,render:w,postRender:x}=c,T=()=>{const A=ui.useManualTiming?i.timestamp:performance.now();n=!1,ui.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(A-i.timestamp,lF),1)),i.timestamp=A,i.isProcessing=!0,d.process(i),f.process(i),h.process(i),m.process(i),v.process(i),b.process(i),w.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(T))},D=()=>{n=!0,r=!0,i.isProcessing||e(T)};return{schedule:wf.reduce((A,V)=>{const L=c[V];return A[V]=(R,G=!1,F=!1)=>(n||D(),L.schedule(R,G,F)),A},{}),cancel:A=>{for(let V=0;V<wf.length;V++)c[wf[V]].cancel(A)},state:i,steps:c}}const{schedule:Bt,cancel:ss,state:En,steps:iy}=zA(typeof requestAnimationFrame<"u"?requestAnimationFrame:Hr,!0);let Vf;function cF(){Vf=void 0}const Xn={now:()=>(Vf===void 0&&Xn.set(En.isProcessing||ui.useManualTiming?En.timestamp:performance.now()),Vf),set:e=>{Vf=e,queueMicrotask(cF)}},FA=e=>t=>typeof t=="string"&&t.startsWith(e),Lb=FA("--"),uF=FA("var(--"),Ib=e=>uF(e)?dF.test(e.split("/*")[0].trim()):!1,dF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wu={...Vl,transform:e=>ci(0,1,e)},xf={...Vl,default:1},su=e=>Math.round(e*1e5)/1e5,Bb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fF(e){return e==null}const hF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ub=(e,t)=>n=>!!(typeof n=="string"&&hF.test(n)&&n.startsWith(e)||t&&!fF(n)&&Object.prototype.hasOwnProperty.call(n,t)),YA=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,c,d]=r.match(Bb);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(c),alpha:d!==void 0?parseFloat(d):1}},pF=e=>ci(0,255,e),sy={...Vl,transform:e=>Math.round(pF(e))},$s={test:Ub("rgb","red"),parse:YA("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+sy.transform(e)+", "+sy.transform(t)+", "+sy.transform(n)+", "+su(wu.transform(r))+")"};function mF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const rv={test:Ub("#"),parse:mF,transform:$s.transform},Xu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Fi=Xu("deg"),ka=Xu("%"),Le=Xu("px"),gF=Xu("vh"),yF=Xu("vw"),A2={...ka,parse:e=>ka.parse(e)/100,transform:e=>ka.transform(e*100)},Jo={test:Ub("hsl","hue"),parse:YA("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ka.transform(su(t))+", "+ka.transform(su(n))+", "+su(wu.transform(r))+")"},An={test:e=>$s.test(e)||rv.test(e)||Jo.test(e),parse:e=>$s.test(e)?$s.parse(e):Jo.test(e)?Jo.parse(e):rv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?$s.transform(e):Jo.transform(e)},vF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bF(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Bb))==null?void 0:t.length)||0)+(((n=e.match(vF))==null?void 0:n.length)||0)>0}const qA="number",$A="color",wF="var",xF="var(",k2="${}",EF=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function xu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const d=t.replace(EF,f=>(An.test(f)?(r.color.push(o),i.push($A),n.push(An.parse(f))):f.startsWith(xF)?(r.var.push(o),i.push(wF),n.push(f)):(r.number.push(o),i.push(qA),n.push(parseFloat(f))),++o,k2)).split(k2);return{values:n,split:d,indexes:r,types:i}}function WA(e){return xu(e).values}function KA(e){const{split:t,types:n}=xu(e),r=t.length;return i=>{let o="";for(let c=0;c<r;c++)if(o+=t[c],i[c]!==void 0){const d=n[c];d===qA?o+=su(i[c]):d===$A?o+=An.transform(i[c]):o+=i[c]}return o}}const SF=e=>typeof e=="number"?0:e;function TF(e){const t=WA(e);return KA(e)(t.map(SF))}const os={test:bF,parse:WA,createTransformer:KA,getAnimatableNone:TF};function oy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function DF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,c=0;if(!t)i=o=c=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;i=oy(f,d,e+1/3),o=oy(f,d,e),c=oy(f,d,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(c*255),alpha:r}}function Ah(e,t){return n=>n>0?t:e}const It=(e,t,n)=>e+(t-e)*n,ly=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},_F=[rv,$s,Jo],CF=e=>_F.find(t=>t.test(e));function R2(e){const t=CF(e);if(!t)return!1;let n=t.parse(e);return t===Jo&&(n=DF(n)),n}const M2=(e,t)=>{const n=R2(e),r=R2(t);if(!n||!r)return Ah(e,t);const i={...n};return o=>(i.red=ly(n.red,r.red,o),i.green=ly(n.green,r.green,o),i.blue=ly(n.blue,r.blue,o),i.alpha=It(n.alpha,r.alpha,o),$s.transform(i))},av=new Set(["none","hidden"]);function AF(e,t){return av.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function kF(e,t){return n=>It(e,t,n)}function Hb(e){return typeof e=="number"?kF:typeof e=="string"?Ib(e)?Ah:An.test(e)?M2:NF:Array.isArray(e)?GA:typeof e=="object"?An.test(e)?M2:RF:Ah}function GA(e,t){const n=[...e],r=n.length,i=e.map((o,c)=>Hb(o)(o,t[c]));return o=>{for(let c=0;c<r;c++)n[c]=i[c](o);return n}}function RF(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Hb(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function MF(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],c=e.indexes[o][r[o]],d=e.values[c]??0;n[i]=d,r[o]++}return n}const NF=(e,t)=>{const n=os.createTransformer(t),r=xu(e),i=xu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?av.has(e)&&!i.values.length||av.has(t)&&!r.values.length?AF(e,t):Gu(GA(MF(r,i),i.values),n):Ah(e,t)};function QA(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?It(e,t,n):Hb(e)(e,t)}const OF=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Bt.update(t,n),stop:()=>ss(t),now:()=>En.isProcessing?En.timestamp:Xn.now()}},XA=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(o/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},kh=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<kh;)t+=n,r=e.next(t);return t>=kh?1/0:t}function PF(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Vb(r),kh);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Aa(i)}}const jF=5;function ZA(e,t,n){const r=Math.max(t-jF,0);return MA(n-e(r),t-r)}const Vt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},N2=.001;function LF({duration:e=Vt.duration,bounce:t=Vt.bounce,velocity:n=Vt.velocity,mass:r=Vt.mass}){let i,o,c=1-t;c=ci(Vt.minDamping,Vt.maxDamping,c),e=ci(Vt.minDuration,Vt.maxDuration,Aa(e)),c<1?(i=h=>{const m=h*c,v=m*e,b=m-n,w=iv(h,c),x=Math.exp(-v);return N2-b/w*x},o=h=>{const v=h*c*e,b=v*n+n,w=Math.pow(c,2)*Math.pow(h,2)*e,x=Math.exp(-v),T=iv(Math.pow(h,2),c);return(-i(h)+N2>0?-1:1)*((b-w)*x)/T}):(i=h=>{const m=Math.exp(-h*e),v=(h-n)*e+1;return-.001+m*v},o=h=>{const m=Math.exp(-h*e),v=(n-h)*(e*e);return m*v});const d=5/e,f=BF(i,o,d);if(e=Ca(e),isNaN(f))return{stiffness:Vt.stiffness,damping:Vt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:c*2*Math.sqrt(r*h),duration:e}}}const IF=12;function BF(e,t,n){let r=n;for(let i=1;i<IF;i++)r=r-e(r)/t(r);return r}function iv(e,t){return e*Math.sqrt(1-t*t)}const UF=["duration","bounce"],HF=["stiffness","damping","mass"];function O2(e,t){return t.some(n=>e[n]!==void 0)}function VF(e){let t={velocity:Vt.velocity,stiffness:Vt.stiffness,damping:Vt.damping,mass:Vt.mass,isResolvedFromDuration:!1,...e};if(!O2(e,HF)&&O2(e,UF))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ci(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Vt.mass,stiffness:i,damping:o}}else{const n=LF(e);t={...t,...n,mass:Vt.mass},t.isResolvedFromDuration=!0}return t}function Rh(e=Vt.visualDuration,t=Vt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],d={done:!1,value:o},{stiffness:f,damping:h,mass:m,duration:v,velocity:b,isResolvedFromDuration:w}=VF({...n,velocity:-Aa(n.velocity||0)}),x=b||0,T=h/(2*Math.sqrt(f*m)),D=c-o,_=Aa(Math.sqrt(f/m)),k=Math.abs(D)<5;r||(r=k?Vt.restSpeed.granular:Vt.restSpeed.default),i||(i=k?Vt.restDelta.granular:Vt.restDelta.default);let A;if(T<1){const L=iv(_,T);A=R=>{const G=Math.exp(-T*_*R);return c-G*((x+T*_*D)/L*Math.sin(L*R)+D*Math.cos(L*R))}}else if(T===1)A=L=>c-Math.exp(-_*L)*(D+(x+_*D)*L);else{const L=_*Math.sqrt(T*T-1);A=R=>{const G=Math.exp(-T*_*R),F=Math.min(L*R,300);return c-G*((x+T*_*D)*Math.sinh(F)+L*D*Math.cosh(F))/L}}const V={calculatedDuration:w&&v||null,next:L=>{const R=A(L);if(w)d.done=L>=v;else{let G=L===0?x:0;T<1&&(G=L===0?Ca(x):ZA(A,L,R));const F=Math.abs(G)<=r,B=Math.abs(c-R)<=i;d.done=F&&B}return d.value=d.done?c:R,d},toString:()=>{const L=Math.min(Vb(V),kh),R=XA(G=>V.next(L*G).value,L,30);return L+"ms "+R},toTransition:()=>{}};return V}Rh.applyToOptions=e=>{const t=PF(e,100,Rh);return e.ease=t.ease,e.duration=Ca(t.duration),e.type="keyframes",e};function sv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:c,min:d,max:f,restDelta:h=.5,restSpeed:m}){const v=e[0],b={done:!1,value:v},w=F=>d!==void 0&&F<d||f!==void 0&&F>f,x=F=>d===void 0?f:f===void 0||Math.abs(d-F)<Math.abs(f-F)?d:f;let T=n*t;const D=v+T,_=c===void 0?D:c(D);_!==D&&(T=_-v);const k=F=>-T*Math.exp(-F/r),A=F=>_+k(F),V=F=>{const B=k(F),le=A(F);b.done=Math.abs(B)<=h,b.value=b.done?_:le};let L,R;const G=F=>{w(b.value)&&(L=F,R=Rh({keyframes:[b.value,x(b.value)],velocity:ZA(A,F,b.value),damping:i,stiffness:o,restDelta:h,restSpeed:m}))};return G(0),{calculatedDuration:null,next:F=>{let B=!1;return!R&&L===void 0&&(B=!0,V(F),G(F)),L!==void 0&&F>=L?R.next(F-L):(!B&&V(F),b)}}}function zF(e,t,n){const r=[],i=n||ui.mix||QA,o=e.length-1;for(let c=0;c<o;c++){let d=i(e[c],e[c+1]);if(t){const f=Array.isArray(t)?t[c]||Hr:t;d=Gu(f,d)}r.push(d)}return r}function FF(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Mb(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=zF(t,r,i),f=d.length,h=m=>{if(c&&m<e[0])return t[0];let v=0;if(f>1)for(;v<e.length-2&&!(m<e[v+1]);v++);const b=bu(e[v],e[v+1],m);return d[v](b)};return n?m=>h(ci(e[0],e[o-1],m)):h}function YF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=bu(0,t,r);e.push(It(n,1,i))}}function qF(e){const t=[0];return YF(t,e.length-1),t}function $F(e,t){return e.map(n=>n*t)}function WF(e,t){return e.map(()=>t||HA).splice(0,e.length-1)}function ou({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aF(r)?r.map(_2):_2(r),o={done:!1,value:t[0]},c=$F(n&&n.length===t.length?n:qF(t),e),d=FF(c,t,{ease:Array.isArray(i)?i:WF(t,i)});return{calculatedDuration:e,next:f=>(o.value=d(f),o.done=f>=e,o)}}const KF=e=>e!==null;function zb(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(KF),d=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!d||r===void 0?o[d]:r}const GF={decay:sv,inertia:sv,tween:ou,keyframes:ou,spring:Rh};function JA(e){typeof e.type=="string"&&(e.type=GF[e.type])}class Fb{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const QF=e=>e/100;class Yb extends Fb{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Xn.now()&&this.tick(Xn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;JA(t);const{type:n=ou,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:c=0}=t;let{keyframes:d}=t;const f=n||ou;f!==ou&&typeof d[0]!="number"&&(this.mixKeyframes=Gu(QF,QA(d[0],d[1])),d=[0,100]);const h=f({...t,keyframes:d});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...d].reverse(),velocity:-c})),h.calculatedDuration===null&&(h.calculatedDuration=Vb(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:c,resolvedDuration:d,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:m,repeat:v,repeatType:b,repeatDelay:w,type:x,onUpdate:T,finalKeyframe:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const _=this.currentTime-h*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?_<0:_>i;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,V=r;if(v){const F=Math.min(this.currentTime,i)/d;let B=Math.floor(F),le=F%1;!le&&F>=1&&(le=1),le===1&&B--,B=Math.min(B,v+1),!!(B%2)&&(b==="reverse"?(le=1-le,w&&(le-=w/d)):b==="mirror"&&(V=c)),A=ci(0,1,le)*d}const L=k?{done:!1,value:m[0]}:V.next(A);o&&(L.value=o(L.value));let{done:R}=L;!k&&f!==null&&(R=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const G=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return G&&x!==sv&&(L.value=zb(m,this.options,D,this.speed)),T&&T(L.value),G&&this.finish(),L}then(t,n){return this.finished.then(t,n)}get duration(){return Aa(this.calculatedDuration)}get time(){return Aa(this.currentTime)}set time(t){var n;t=Ca(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Aa(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=OF,startTime:n}=this.options;this.driver||(this.driver=t(c=>this.tick(c))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function XF(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ws=e=>e*180/Math.PI,ov=e=>{const t=Ws(Math.atan2(e[1],e[0]));return lv(t)},ZF={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ov,rotateZ:ov,skewX:e=>Ws(Math.atan(e[1])),skewY:e=>Ws(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},lv=e=>(e=e%360,e<0&&(e+=360),e),P2=ov,j2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),L2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),JF={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:j2,scaleY:L2,scale:e=>(j2(e)+L2(e))/2,rotateX:e=>lv(Ws(Math.atan2(e[6],e[5]))),rotateY:e=>lv(Ws(Math.atan2(-e[2],e[0]))),rotateZ:P2,rotate:P2,skewX:e=>Ws(Math.atan(e[4])),skewY:e=>Ws(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function cv(e){return e.includes("scale")?1:0}function uv(e,t){if(!e||e==="none")return cv(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=JF,i=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ZF,i=d}if(!i)return cv(t);const o=r[t],c=i[1].split(",").map(tY);return typeof o=="function"?o(c):c[o]}const eY=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return uv(n,t)};function tY(e){return parseFloat(e.trim())}const zl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fl=new Set(zl),I2=e=>e===Vl||e===Le,nY=new Set(["x","y","z"]),rY=zl.filter(e=>!nY.has(e));function aY(e){const t=[];return rY.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const eo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>uv(t,"x"),y:(e,{transform:t})=>uv(t,"y")};eo.translateX=eo.x;eo.translateY=eo.y;const to=new Set;let dv=!1,fv=!1,hv=!1;function ek(){if(fv){const e=Array.from(to).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=aY(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,c])=>{var d;(d=r.getValue(o))==null||d.set(c)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}fv=!1,dv=!1,to.forEach(e=>e.complete(hv)),to.clear()}function tk(){to.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(fv=!0)})}function iY(){hv=!0,tk(),ek(),hv=!1}class qb{constructor(t,n,r,i,o,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(to.add(this),dv||(dv=!0,Bt.read(tk),Bt.resolveKeyframes(ek))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),c=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const d=r.readValue(n,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),i&&o===void 0&&i.set(t[0])}XF(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),to.delete(this)}cancel(){this.state==="scheduled"&&(to.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const sY=e=>e.startsWith("--");function oY(e,t,n){sY(t)?e.style.setProperty(t,n):e.style[t]=n}const lY=Nb(()=>window.ScrollTimeline!==void 0),cY={};function uY(e,t){const n=Nb(e);return()=>cY[t]??n()}const nk=uY(()=>{try{document.createElement("div").animate({opacity:0}
1668,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ru=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,B2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ru([0,.65,.55,1]),circOut:ru([.55,0,1,.45]),backIn:ru([.31,.01,.66,-.59]),backOut:ru([.33,1.53,.69,.99])};function rk(e,t){if(e)return typeof e=="function"?nk()?XA(e,t):"ease-out":VA(e)?ru(e):Array.isArray(e)?e.map(n=>rk(n,t)||B2.easeOut):B2[e]}function dY(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:c="loop",ease:d="easeOut",times:f}={},h=void 0){const m={[t]:n};f&&(m.offset=f);const v=rk(d,i);Array.isArray(v)&&(m.easing=v);const b={delay:r,duration:i,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:o+1,direction:c==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),e.animate(m,b)}function ak(e){return typeof e=="function"&&"applyToOptions"in e}function fY({type:e,...t}){return ak(e)&&nk()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class hY extends Fb{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:c=!1,finalKeyframe:d,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=c,this.options=t,Mb(typeof t.type!="string");const h=fY(t);this.animation=dY(n,r,i,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const m=zb(i,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(m):oY(n,r,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Aa(Number(t))}get time(){return Aa(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ca(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&lY()?(this.animation.timeline=t,Hr):n(this)}}const ik={anticipate:IA,backInOut:LA,circInOut:UA};function pY(e){return e in ik}function mY(e){typeof e.ease=="string"&&pY(e.ease)&&(e.ease=ik[e.ease])}const U2=10;class gY extends hY{constructor(t){mY(t),JA(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...c}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new Yb({...c,autoplay:!1}),f=Ca(this.finishedTime??this.time);n.setWithVelocity(d.sample(f-U2).value,d.sample(f).value,U2),d.stop()}}const H2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(os.test(e)||e==="0")&&!e.startsWith("url("));function yY(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function vY(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],c=H2(i,t),d=H2(o,t);return!c||!d?!1:yY(e)||(n==="spring"||ak(n))&&r}function sk(e){return kA(e)&&"offsetHeight"in e}const bY=new Set(["opacity","clipPath","filter","transform"]),wY=Nb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function xY(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:c}=e;if(!sk((h=t==null?void 0:t.owner)==null?void 0:h.current))return!1;const{onUpdate:d,transformTemplate:f}=t.owner.getProps();return wY()&&n&&bY.has(n)&&(n!=="transform"||!f)&&!d&&!r&&i!=="mirror"&&o!==0&&c!=="inertia"}const EY=40;class SY extends Fb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:c="loop",keyframes:d,name:f,motionValue:h,element:m,...v}){var x;super(),this.stop=()=>{var T,D;this._animation&&(this._animation.stop(),(T=this.stopTimeline)==null||T.call(this)),(D=this.keyframeResolver)==null||D.cancel()},this.createdAt=Xn.now();
1668const b={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:c,name:f,motionValue:h,element:m,...v},w=(m==null?void 0:m.KeyframeResolver)||qb;this.keyframeResolver=new w(d,(T,D,_)=>this.onKeyframesResolved(T,D,b,!_),f,h,m),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:c,velocity:d,delay:f,isHandoff:h,onUpdate:m}=r;this.resolvedAt=Xn.now(),vY(t,o,c,d)||((ui.instantAnimations||!f)&&(m==null||m(zb(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const b={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>EY?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=!h&&xY(b)?new gY({...b,element:b.motionValue.owner.current}):new Yb(b);w.finished.then(()=>this.notifyFinished()).catch(Hr),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),iY()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const TY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DY(e){const t=TY.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function ok(e,t,n=1){const[r,i]=DY(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const c=o.trim();return AA(c)?parseFloat(c):c}return Ib(i)?ok(i,t,n+1):i}function $b(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const lk=new Set(["width","height","top","left","right","bottom",...zl]),_Y={test:e=>e==="auto",parse:e=>e},ck=e=>t=>t.test(e),uk=[Vl,Le,ka,Fi,yF,gF,_Y],V2=e=>uk.find(ck(e));function CY(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||RA(e):!0}const AY=new Set(["brightness","contrast","saturate","opacity"]);function kY(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Bb)||[];if(!r)return e;const i=n.replace(r,"");let o=AY.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const RY=/\b([a-z-]*)\(.*?\)/gu,pv={...os,getAnimatableNone:e=>{const t=e.match(RY);return t?t.map(kY).join(" "):e}},z2={...Vl,transform:Math.round},MY={rotate:Fi,rotateX:Fi,rotateY:Fi,rotateZ:Fi,scale:xf,scaleX:xf,scaleY:xf,scaleZ:xf,skew:Fi,skewX:Fi,skewY:Fi,distance:Le,translateX:Le,translateY:Le,translateZ:Le,x:Le,y:Le,z:Le,perspective:Le,transformPerspective:Le,opacity:wu,originX:A2,originY:A2,originZ:Le},Wb={borderWidth:Le,borderTopWidth:Le,borderRightWidth:Le,borderBottomWidth:Le,borderLeftWidth:Le,borderRadius:Le,radius:Le,borderTopLeftRadius:Le,borderTopRightRadius:Le,borderBottomRightRadius:Le,borderBottomLeftRadius:Le,width:Le,maxWidth:Le,height:Le,maxHeight:Le,top:Le,right:Le,bottom:Le,left:Le,padding:Le,paddingTop:Le,paddingRight:Le,paddingBottom:Le,paddingLeft:Le,margin:Le,marginTop:Le,marginRight:Le,marginBottom:Le,marginLeft:Le,backgroundPositionX:Le,backgroundPositionY:Le,...MY,zIndex:z2,fillOpacity:wu,strokeOpacity:wu,numOctaves:z2},NY={...Wb,color:An,backgroundColor:An,outlineColor:An,fill:An,stroke:An,borderColor:An,borderTopColor:An,borderRightColor:An,borderBottomColor:An,borderLeftColor:An,filter:pv,WebkitFilter:pv},dk=e=>NY[e];function fk(e,t){let n=dk(e);return n!==pv&&(n=os),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const OY=new Set(["auto","none","0"]);function PY(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];
vendor: 6,617 bytes, line 1668
1668typeof o=="string"&&!OY.has(o)&&xu(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=fk(n,i)}class jY extends qb{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),Ib(h))){const m=ok(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!lk.has(r)||t.length!==2)return;const[i,o]=t,c=V2(i),d=V2(o);if(c!==d)if(I2(c)&&I2(d))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else eo[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||CY(t[i]))&&r.push(i);r.length&&PY(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eo[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var d;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,c=r[o];r[o]=eo[n](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(d=this.removedTransforms)!=null&&d.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function hk(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const pk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,F2=30,LY=e=>!isNaN(parseFloat(e));class IY{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var c,d;const o=Xn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty();i&&((d=this.events.renderRequest)==null||d.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=LY(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ob);const r=this.events[t].add(n);return t==="change"?()=>{r(),Bt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>F2)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,F2);return MA(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Al(e,t){return new IY(e,t)}const{schedule:Kb}=zA(queueMicrotask,!1),na={x:!1,y:!1};function mk(){return na.x||na.y}function BY(e){return e==="x"||e==="y"?na[e]?null:(na[e]=!0,()=>{na[e]=!1}):na.x||na.y?null:(na.x=na.y=!0,()=>{na.x=na.y=!1})}function gk(e,t){const n=hk(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Y2(e){return!(e.pointerType==="touch"||mk())}function UY(e,t,n={}){const[r,i,o]=gk(e,n),c=d=>{if(!Y2(d))return;const{target:f}=d,h=t(f,d);if(typeof h!="function"||!f)return;const m=v=>{Y2(v)&&(h(v),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,i)};return r.forEach(d=>{d.addEventListener("pointerenter",c,i)}),o}const yk=(e,t)=>t?e===t?!0:yk(e,t.parentElement):!1,Gb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,HY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function VY(e){return HY.has(e.tagName)||e.tabIndex!==-1}const zf=new WeakSet;function q2(e){return t=>{t.key==="Enter"&&e(t)}}function cy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zY=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=q2(()=>{if(zf.has(n))return;cy(n,"down");const i=q2(()=>{cy(n,"up")}),o=()=>cy(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function $2(e){return Gb(e)&&!mk()}function FY(e,t,n={}){const[r,i,o]=gk(e,n),c=d=>{const f=d.currentTarget;if(!$2(d))return;zf.add(f);const h=t(f,d),m=(w,x)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),zf.has(f)&&zf.delete(f),$2(w)&&typeof h=="function"&&h(w,{success:x})},v=w=>{m(w,f===window||f===document||n.useGlobalTarget||yk(f,w.target))},b=w=>{m(w,!1)};window.addEventListener("pointerup",v,i),window.addEventListener("pointercancel",b,i)};return r.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",c,i),sk(d)&&(d.addEventListener("focus",h=>zY(h,i)),!VY(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),o}function vk(e){return kA(e)&&"ownerSVGElement"in e}
vendor: 4,627 bytes, line 1668
1668function YY(e){return vk(e)&&e.tagName==="svg"}const Mn=e=>!!(e&&e.getVelocity),qY=[...uk,An,os],$Y=e=>qY.find(ck(e)),bk=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function WY(e=!0){const t=S.useContext(Ab);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=S.useId();S.useEffect(()=>{if(e)return i(o)},[e]);const c=S.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,c]:[!0]}const wk=S.createContext({strict:!1}),W2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},kl={};for(const e in W2)kl[e]={isEnabled:t=>W2[e].some(n=>!!t[n])};function KY(e){for(const t in e)kl[t]={...kl[t],...e[t]}}const GY=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Mh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||GY.has(e)}let xk=e=>!Mh(e);function QY(e){e&&(xk=t=>t.startsWith("on")?!Mh(t):e(t))}try{QY(require("@emotion/is-prop-valid").default)}catch{}function XY(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(xk(i)||n===!0&&Mh(i)||!t&&!Mh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function ZY(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const cp=S.createContext({});function up(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Eu(e){return typeof e=="string"||Array.isArray(e)}const Qb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xb=["initial",...Qb];function dp(e){return up(e.animate)||Xb.some(t=>Eu(e[t]))}function Ek(e){return!!(dp(e)||e.variants)}function JY(e,t){if(dp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Eu(n)?n:void 0,animate:Eu(r)?r:void 0}}return e.inherit!==!1?t:{}}function e9(e){const{initial:t,animate:n}=JY(e,S.useContext(cp));return S.useMemo(()=>({initial:t,animate:n}),[K2(t),K2(n)])}function K2(e){return Array.isArray(e)?e.join(" "):e}const t9=Symbol.for("motionComponentSymbol");function el(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function n9(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):el(n)&&(n.current=r))},[t])}const Zb=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),r9="framerAppearId",Sk="data-"+Zb(r9),Tk=S.createContext({});function a9(e,t,n,r,i){var T,D;const{visualElement:o}=S.useContext(cp),c=S.useContext(wk),d=S.useContext(Ab),f=S.useContext(bk).reducedMotion,h=S.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,v=S.useContext(Tk);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&i9(h.current,n,i,v);const b=S.useRef(!1);S.useInsertionEffect(()=>{m&&b.current&&m.update(n,d)});const w=n[Sk],x=S.useRef(!!w&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,w))&&((D=window.MotionHasOptimisedAnimation)==null?void 0:D.call(window,w)));return X7(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Kb.render(m.render),x.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,w)}),x.current=!1))}),m}function i9(e,t,n,r){const{layoutId:i,layout:o,drag:c,dragConstraints:d,layoutScroll:f,layoutRoot:h,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dk(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!c||d&&el(d),visualElement:e,animationType:typeof o=="str
1668ing"?o:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:f,layoutRoot:h})}function Dk(e){if(e)return e.options.allowProjection!==!1?e.projection:Dk(e.parent)}function s9({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&KY(e);function o(d,f){let h;const m={...S.useContext(bk),...d,layoutId:o9(d)},{isStatic:v}=m,b=e9(d),w=r(d,v);if(!v&&Cb){l9();const x=c9(m);h=x.MeasureLayout,b.visualElement=a9(i,w,m,t,x.ProjectionNode)}return y.jsxs(cp.Provider,{value:b,children:[h&&b.visualElement?y.jsx(h,{visualElement:b.visualElement,...m}):null,n(i,d,n9(w,b.visualElement,f),w,v,b.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const c=S.forwardRef(o);return c[t9]=i,c}function o9({layoutId:e}){const t=S.useContext(CA).id;return t&&e!==void 0?t+"-"+e:e}function l9(e,t){S.useContext(wk).strict}function c9(e){const{drag:t,layout:n}=kl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Su={};function u9(e){for(const t in e)Su[t]=e[t],Lb(t)&&(Su[t].isCSSVariable=!0)}function _k(e,{layout:t,layoutId:n}){return Fl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Su[e]||e==="opacity")}const d9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},f9=zl.length;function h9(e,t,n){let r="",i=!0;for(let o=0;o<f9;o++){const c=zl[o],d=e[c];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(c.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const h=pk(d,Wb[c]);if(!f){i=!1;const m=d9[c]||c;r+=`${m}(${h}) `}n&&(t[c]=h)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Jb(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let c=!1,d=!1;for(const f in t){const h=t[f];if(Fl.has(f)){c=!0;continue}else if(Lb(f)){i[f]=h;continue}else{const m=pk(h,Wb[f]);f.startsWith("origin")?(d=!0,o[f]=m):r[f]=m}}if(t.transform||(c||n?r.transform=h9(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}const e0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ck(e,t,n){for(const r in t)!Mn(t[r])&&!_k(r,n)&&(e[r]=t[r])}function p9({transformTemplate:e},t){return S.useMemo(()=>{const n=e0();return Jb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function m9(e,t){const n=e.style||{},r={};return Ck(r,n,e),Object.assign(r,p9(e,t)),r}function g9(e,t){const n={},r=m9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const y9={offset:"stroke-dashoffset",array:"stroke-dasharray"},v9={offset:"strokeDashoffset",array:"strokeDasharray"};function b9(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?y9:v9;e[o.offset]=Le.transform(-r);const c=Le.transform(t),d=Le.transform(n);e[o.array]=`${c} ${d}`}function Ak(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:c=0,...d},f,h,m){if(Jb(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:b}=e;v.transform&&(b.transform=v.transform,delete v.transform),(b.transform||v.transformOrigin)&&(b.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),b.transform&&(b.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete v.transformBox),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),i!==void 0&&b9(v,i,o,c,!1)}const kk=()=>({...e0(),attrs:{}}),Rk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function w9(e,t,n,r){const i=S.useMemo(()=>{const o=kk();return Ak(o,t,Rk(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Ck(o,e.style,e),i.style={...o,...i.style}}return i}const x9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t0(e){return typeof e!="string"||e.includes("-")?!1:!!(x9.indexOf(e)>-1||/[A-Z]/u.test(e))}function E9(e=!1){return(n,r,i,{latestValues:o},c)=>{const f=(t0(n)?w9:g9)(r,o,c,n),h=XY(r,typeof n=="string",e),m=n!==S.Fragment?{...h,...f,ref:i}:{},{children:v}=r,b=S.useMemo(()=>Mn(v)?v.get():v,[v]);return S.createElement(n,{...m,children:b})}}function G2(e){const t=[{},{}];
vendor: 63,495 bytes, line 1668
1668return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function n0(e,t,n,r){if(typeof t=="function"){const[i,o]=G2(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=G2(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Ff(e){return Mn(e)?e.get():e}function S9({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:T9(n,r,i,e),renderState:t()}}const Mk=e=>(t,n)=>{const r=S.useContext(cp),i=S.useContext(Ab),o=()=>S9(e,t,r,i);return n?o():Q7(o)};function T9(e,t,n,r){const i={},o=r(e,{});for(const b in o)i[b]=Ff(o[b]);let{initial:c,animate:d}=e;const f=dp(e),h=Ek(e);t&&h&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||c===!1;const v=m?d:c;if(v&&typeof v!="boolean"&&!up(v)){const b=Array.isArray(v)?v:[v];for(let w=0;w<b.length;w++){const x=n0(e,b[w]);if(x){const{transitionEnd:T,transition:D,..._}=x;for(const k in _){let A=_[k];if(Array.isArray(A)){const V=m?A.length-1:0;A=A[V]}A!==null&&(i[k]=A)}for(const k in T)i[k]=T[k]}}}return i}function r0(e,t,n){var o;const{style:r}=e,i={};for(const c in r)(Mn(r[c])||t.style&&Mn(t.style[c])||_k(c,e)||((o=n==null?void 0:n.getValue(c))==null?void 0:o.liveStyle)!==void 0)&&(i[c]=r[c]);return i}const D9={useVisualState:Mk({scrapeMotionValuesFromProps:r0,createRenderState:e0})};function Nk(e,t,n){const r=r0(e,t,n);for(const i in e)if(Mn(e[i])||Mn(t[i])){const o=zl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const _9={useVisualState:Mk({scrapeMotionValuesFromProps:Nk,createRenderState:kk})};function C9(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const c={...t0(r)?_9:D9,preloadedFeatures:e,useRender:E9(i),createVisualElement:t,Component:r};return s9(c)}}function Tu(e,t,n){const r=e.getProps();return n0(r,t,n!==void 0?n:r.custom,e)}const mv=e=>Array.isArray(e);function A9(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Al(n))}function k9(e){return mv(e)?e[e.length-1]||0:e}function R9(e,t){const n=Tu(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const c in o){const d=k9(o[c]);A9(e,c,d)}}function M9(e){return!!(Mn(e)&&e.add)}function gv(e,t){const n=e.getValue("willChange");if(M9(n))return n.add(t);if(!n&&ui.WillChange){const r=new ui.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ok(e){return e.props[Sk]}const N9=e=>e!==null;function O9(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(N9),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const P9={type:"spring",stiffness:500,damping:25,restSpeed:10},j9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),L9={type:"keyframes",duration:.8},I9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B9=(e,{keyframes:t})=>t.length>2?L9:Fl.has(e)?e.startsWith("scale")?j9(t[1]):P9:I9;function U9({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:c,repeatDelay:d,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const a0=(e,t,n,r={},i,o)=>c=>{const d=$b(r,e)||{},f=d.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Ca(f);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:b=>{t.set(b),d.onUpdate&&d.onUpdate(b)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:o?void 0:i};U9(d)||Object.assign(m,B9(e,m)),m.duration&&(m.duration=Ca(m.duration)),m.repeatDelay&&(m.repeatDelay=Ca(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let v=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(v=!0)),(ui.instantAnimations||ui.skipAnimations)&&(v=!0,m.duration=0,m.delay=0),m.allowFlatten=!d.type&&!d.ease,v&&!o&&t.get()!==void 0){const b=O9(m.keyframes,d);if(b!==void 0){Bt.update(()=>{m.onUpdate(b),m.onComplete()});return}}return d.isSync?new Yb(m):new SY(m)};function H9({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Pk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:c,...d}=t;r&&(o=r);const f=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in d){const v=e.getValue(m,e.latestValues[m]??null),b=d[m];if(b===void 0||h&&H9(h,m))continue;const w={delay:n,...$b(o||{},m)},x=v.get();if(x!==void 0&&!v.isAnimating&&!Array.isArray(b)&&b===x&&!w.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const _=Ok(e);if(_){const k=window.MotionHandoffAnimation(_,m,Bt);k!==null&&(w.startTime=k,T=!0)}}gv(e,m),v.start(a0(m,v,b,e.shouldReduceMotion&&lk.has(m)?{type:!1}:w,e,T));const D=v.animation;D&&f.push(D)}return c&&Promise.all(f).then(()=>{Bt.update(()=>{c&&R9(e,c)})}),f}function yv(e,t,n={}){var f;const r=Tu(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Pk(e,r,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:b}=i;return V9(e,t,m+h,v,b,n)}:()=>Promise.resolve(),{when:d}=i;if(d){const[h,m]=d==="beforeChildren"?[o,c]:[c,o];return h().then(()=>m())}else return Promise.all([o(),c(n.delay)])}function V9(e,t,n=0,r=0,i=1,o){const c=[],d=(e.variantChildren.size-1)*r,f=i===1?(h=0)=>h*r:(h=0)=>d-h*r;return Array.from(e.variantChildren).sort(z9).forEach((h,m)=>{h.notify("AnimationStart",t),c.push(yv(h,t,{...o,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(c)}function z9(e,t){return e.sortNodePosition(t)}function F9(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>yv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=yv(e,t,n);else{const i=typeof t=="function"?Tu(e,t,n.custom):t;r=Promise.all(Pk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function jk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Y9=Xb.length;function Lk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Lk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Y9;n++){const r=Xb[n],i=e.props[r];(Eu(i)||i===!1)&&(t[r]=i)}return t}const q9=[...Qb].reverse(),$9=Qb.length;function W9(e){return t=>Promise.all(t.map(({animation:n,options:r})=>F9(e,n,r)))}function K9(e){let t=W9(e),n=Q2(),r=!0;const i=f=>(h,m)=>{var b;const v=Tu(e,m,f==="exit"?(b=e.presenceContext)==null?void 0:b.custom:void 0);if(v){const{transition:w,transitionEnd:x,...T}=v;h={...h,...T,...x}}return h};function o(f){t=f(e)}function c(f){const{props:h}=e,m=Lk(e.parent)||{},v=[],b=new Set;let w={},x=1/0;for(let D=0;D<$9;D++){const _=q9[D],k=n[_],A=h[_]!==void 0?h[_]:m[_],V=Eu(A),L=_===f?k.isActive:null;L===!1&&(x=D);let R=A===m[_]&&A!==h[_]&&V;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),k.protectedKeys={...w},!k.isActive&&L===null||!A&&!k.prevProp||up(A)||typeof A=="boolean")continue;const G=G9(k.prevProp,A);let F=G||_===f&&k.isActive&&!R&&V||D>x&&V,B=!1;const le=Array.isArray(A)?A:[A];let Z=le.reduce(i(_),{});L===!1&&(Z={});const{prevResolvedValues:ie={}}=k,ge={...ie,...Z},oe=z=>{F=!0,b.has(z)&&(B=!0,b.delete(z)),k.needsAnimating[z]=!0;const ee=e.getValue(z);ee&&(ee.liveStyle=!1)};for(const z in ge){const ee=Z[z],ye=ie[z];if(w.hasOwnProperty(z))continue;let M=!1;mv(ee)&&mv(ye)?M=!jk(ee,ye):M=ee!==ye,M?ee!=null?oe(z):b.add(z):ee!==void 0&&b.has(z)?oe(z):k.protectedKeys[z]=!0}k.prevProp=A,k.prevResolvedValues=Z,k.isActive&&(w={...w,...Z}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&G)||B)&&v.push(...le.map(z=>({animation:z,options:{type:_}})))}if(b.size){const D={};if(typeof h.initial!="boolean"){const _=Tu(e,Array.isArray(h.initial)?h.initial[0]:h.initial);_&&_.transition&&(D.transition=_.transition)}b.forEach(_=>{const k=e.getBaseTarget(_),A=e.getValue(_);A&&(A.liveStyle=!0),D[_]=k??null}),v.push({animation:D})}let T=!!v.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(v):Promise.resolve()}function d(f,h){var v;if(n[f].isActive===h)return Promise.resolve();(v=e.variantChildren)==null||v.forEach(b=>{var w;return(w=b.animationState)==null?void 0:w.setActive(f,h)}),n[f].isActive=h;const m=c(f);for(const b in n)n[b].protectedKeys={};return m}return{animateChanges:c,setActive:d,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Q2(),r=!0}}}function G9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jk(t,e):!1}function js(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Q2(){return{animate:js(!0),whileInView:js(),whileHover:js(),whileTap:js(),whileDrag:js(),whileFocus:js(),exit:js()}}class ps{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Q9 extends ps{constructor(t){super(t),t.animationState||(t.animationState=K9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();up(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let X9=0;class Z9 extends ps{constructor(){super(...arguments),this.id=X9++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const J9={animation:{Feature:Q9},exit:{Feature:Z9}};function Du(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Zu(e){return{point:{x:e.pageX,y:e.pageY}}}const eq=e=>t=>Gb(t)&&e(t,Zu(t));function lu(e,t,n,r){return Du(e,t,eq(n),r)}function Ik({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tq({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nq(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Bk=1e-4,rq=1-Bk,aq=1+Bk,Uk=.01,iq=0-Uk,sq=0+Uk;function Bn(e){return e.max-e.min}function oq(e,t,n){return Math.abs(e-t)<=n}function X2(e,t,n,r=.5){e.origin=r,e.originPoint=It(t.min,t.max,e.origin),e.scale=Bn(n)/Bn(t),e.translate=It(n.min,n.max,e.origin)-e.originPoint,(e.scale>=rq&&e.scale<=aq||isNaN(e.scale))&&(e.scale=1),(e.translate>=iq&&e.translate<=sq||isNaN(e.translate))&&(e.translate=0)}function cu(e,t,n,r){X2(e.x,t.x,n.x,r?r.originX:void 0),X2(e.y,t.y,n.y,r?r.originY:void 0)}function Z2(e,t,n){e.min=n.min+t.min,e.max=e.min+Bn(t)}function lq(e,t,n){Z2(e.x,t.x,n.x),Z2(e.y,t.y,n.y)}function J2(e,t,n){e.min=t.min-n.min,e.max=e.min+Bn(t)}function uu(e,t,n){J2(e.x,t.x,n.x),J2(e.y,t.y,n.y)}const eT=()=>({translate:0,scale:1,origin:0,originPoint:0}),tl=()=>({x:eT(),y:eT()}),tT=()=>({min:0,max:0}),Wt=()=>({x:tT(),y:tT()});function Or(e){return[e("x"),e("y")]}function uy(e){return e===void 0||e===1}function vv({scale:e,scaleX:t,scaleY:n}){return!uy(e)||!uy(t)||!uy(n)}function Bs(e){return vv(e)||Hk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Hk(e){return nT(e.x)||nT(e.y)}function nT(e){return e&&e!=="0%"}function Nh(e,t,n){const r=e-n,i=t*r;return n+i}function rT(e,t,n,r,i){return i!==void 0&&(e=Nh(e,i,r)),Nh(e,n,r)+t}function bv(e,t=0,n=1,r,i){e.min=rT(e.min,t,n,r,i),e.max=rT(e.max,t,n,r,i)}function Vk(e,{x:t,y:n}){bv(e.x,t.translate,t.scale,t.originPoint),bv(e.y,n.translate,n.scale,n.originPoint)}const aT=.999999999999,iT=1.0000000000001;function cq(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,c;for(let d=0;d<i;d++){o=n[d],c=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&rl(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,Vk(e,c)),r&&Bs(o.latestValues)&&rl(e,o.latestValues))}t.x<iT&&t.x>aT&&(t.x=1),t.y<iT&&t.y>aT&&(t.y=1)}function nl(e,t){e.min=e.min+t,e.max=e.max+t}function sT(e,t,n,r,i=.5){const o=It(e.min,e.max,i);bv(e,t,n,o,r)}function rl(e,t){sT(e.x,t.x,t.scaleX,t.scale,t.originX),sT(e.y,t.y,t.scaleY,t.scale,t.originY)}function zk(e,t){return Ik(nq(e.getBoundingClientRect(),t))}function uq(e,t,n){const r=zk(e,n),{scroll:i}=t;return i&&(nl(r.x,i.offset.x),nl(r.y,i.offset.y)),r}const Fk=({current:e})=>e?e.ownerDocument.defaultView:null,oT=(e,t)=>Math.abs(e-t);function dq(e,t){const n=oT(e.x,t.x),r=oT(e.y,t.y);return Math.sqrt(n**2+r**2)}class Yk{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=fy(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=dq(v.offset,{x:0,y:0})>=3;if(!b&&!w)return;const{point:x}=v,{timestamp:T}=En;this.history.push({...x,timestamp:T});const{onStart:D,onMove:_}=this.handlers;b||(D&&D(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,v)},this.handlePointerMove=(v,b)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=dy(b,this.transformPagePoint),Bt.update(this.updatePoint,!0)},this.handlePointerUp=(v,b)=>{this.end();const{onEnd:w,onSessionEnd:x,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=fy(v.type==="pointercancel"?this.lastMoveEventInfo:dy(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(v,D),x&&x(v,D)},!Gb(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const c=Zu(t),d=dy(c,this.transformPagePoint),{point:f}=d,{timestamp:h}=En;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,fy(d,this.history)),this.removeListeners=Gu(lu(this.contextWindow,"pointermove",this.handlePointerMove),lu(this.contextWindow,"pointerup",this.handlePointerUp),lu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ss(this.updatePoint)}}function dy(e,t){return t?{point:t(e.point)}:e}function lT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fy({point:e},t){return{point:e,delta:lT(e,qk(t)),offset:lT(e,fq(t)),velocity:hq(t,.1)}}function fq(e){return e[0]}function qk(e){return e[e.length-1]}function hq(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=qk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ca(t)));)n--;if(!r)return{x:0,y:0};const o=Aa(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const c={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function pq(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?It(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?It(n,e,r.max):Math.min(e,n)),e}function cT(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function mq(e,{top:t,left:n,bottom:r,right:i}){return{x:cT(e.x,n,i),y:cT(e.y,t,r)}}function uT(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function gq(e,t){return{x:uT(e.x,t.x),y:uT(e.y,t.y)}}function yq(e,t){let n=.5;const r=Bn(e),i=Bn(t);return i>r?n=bu(t.min,t.max-r,e.min):r>i&&(n=bu(e.min,e.max-i,t.min)),ci(0,1,n)}function vq(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wv=.35;function bq(e=wv){return e===!1?e=0:e===!0&&(e=wv),{x:dT(e,"left","right"),y:dT(e,"top","bottom")}}function dT(e,t,n){return{min:fT(e,t),max:fT(e,n)}}function fT(e,t){return typeof e=="number"?e:e[t]||0}const wq=new WeakMap;class xq{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zu(m).point)},o=(m,v)=>{const{drag:b,dragPropagation:w,onDragStart:x}=this.getProps();if(b&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=BY(b),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Or(D=>{let _=this.getAxisMotionValue(D).get()||0;if(ka.test(_)){const{projection:k}=this.visualElement;if(k&&k.layout){const A=k.layout.layoutBox[D];A&&(_=Bn(A)*(parseFloat(_)/100))}}this.originPoint[D]=_}),x&&Bt.postRender(()=>x(m,v)),gv(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},c=(m,v)=>{const{dragPropagation:b,dragDirectionLock:w,onDirectionLock:x,onDrag:T}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:D}=v;if(w&&this.currentDirection===null){this.currentDirection=Eq(D),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",v.point,D),this.updateAxis("y",v.point,D),this.visualElement.render(),T&&T(m,v)},d=(m,v)=>this.stop(m,v),f=()=>Or(m=>{var v;return this.getAnimationState(m)==="paused"&&((v=this.getAxisMotionValue(m).animation)==null?void 0:v.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new Yk(t,{onSessionStart:i,onStart:o,onMove:c,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:Fk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Bt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ef(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let c=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(c=pq(c,this.constraints[t],this.elastic[t])),o.set(c)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&el(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=mq(r.layoutBox,t):this.constraints=!1,this.elastic=bq(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Or(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=vq(r.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!el(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=uq(r,i.root,this.visualElement.getTransformPagePoint());let c=gq(i.layout.layoutBox,o);if(n){const d=n(tq(c));this.hasMutatedConstraints=!!d,d&&(c=Ik(d))}return c}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:c,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},h=Or(m=>{if(!Ef(m,n,this.currentDirection))return;let v=f&&f[m]||{};c&&(v={min:0,max:0});const b=i?200:1e6,w=i?40:1e7,x={type:"inertia",velocity:r?t[m]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...o,...v};return this.startAxisValueAnimation(m,x)});return Promise.all(h).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return gv(this.visualElement,t),r.start(a0(t,r,0,n,this.visualElement,!1))}stopAnimation(){Or(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Or(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Or(n=>{const{drag:r}=this.getProps();if(!Ef(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:c,max:d}=i.layout.layoutBox[n];o.set(t[n]-It(c,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!el(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Or(c=>{const d=this.getAxisMotionValue(c);if(d&&this.constraints!==!1){const f=d.get();i[c]=yq({min:f,max:f},this.constraints[c])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Or(c=>{if(!Ef(c,t,null))return;const d=this.getAxisMotionValue(c),{min:f,max:h}=this.constraints[c];d.set(It(f,h,i[c]))})}addListeners(){if(!this.visualElement.current)return;wq.set(this.visualElement,this);const t=this.visualElement.current,n=lu(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();el(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Bt.read(r);const c=Du(window,"resize",()=>this.scalePositionWithinConstraints()),d=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Or(m=>{const v=this.getAxisMotionValue(m);v&&(this.originPoint[m]+=f[m].translate,v.set(v.get()+f[m].translate))}),this.visualElement.render())});return()=>{c(),n(),o(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:c=wv,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:c,dragMomentum:d}}}function Ef(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Eq(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Sq extends ps{constructor(t){super(t),this.removeGroupControls=Hr,this.removeListeners=Hr,this.controls=new xq(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Hr}unmount(){this.removeGroupControls(),this.removeListeners()}}const hT=e=>(t,n)=>{e&&Bt.postRender(()=>e(t,n))};class Tq extends ps{constructor(){super(...arguments),this.removePointerDownListener=Hr}onPointerDown(t){this.session=new Yk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:hT(t),onStart:hT(n),onMove:r,onEnd:(o,c)=>{delete this.session,i&&Bt.postRender(()=>i(o,c))}}}mount(){this.removePointerDownListener=lu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Yf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Le.test(e))e=parseFloat(e);else return e;const n=pT(e,t.target.x),r=pT(e,t.target.y);return`${n}% ${r}%`}},Dq={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=os.parse(e);if(i.length>5)return r;const o=os.createTransformer(e),c=typeof i[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;i[0+c]/=d,i[1+c]/=f;const h=It(d,f,.5);return typeof i[2+c]=="number"&&(i[2+c]/=h),typeof i[3+c]=="number"&&(i[3+c]/=h),o(i)}};class _q extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;u9(Cq),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Yf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:c}=r;return c&&(c.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?c.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?c.promote():c.relegate()||Bt.postRender(()=>{const d=c.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Kb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $k(e){const[t,n]=WY(),r=S.useContext(CA);return y.jsx(_q,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(Tk),isPresent:t,safeToRemove:n})}const Cq={borderRadius:{...Qc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qc,borderTopRightRadius:Qc,borderBottomLeftRadius:Qc,borderBottomRightRadius:Qc,boxShadow:Dq};function Aq(e,t,n){const r=Mn(e)?e:Al(e);return r.start(a0("",r,t,n)),r.animation}const kq=(e,t)=>e.depth-t.depth;class Rq{constructor(){this.children=[],this.isDirty=!1}add(t){kb(this.children,t),this.isDirty=!0}remove(t){Rb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kq),this.isDirty=!1,this.children.forEach(t)}}function Mq(e,t){const n=Xn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(ss(r),e(o-t))};return Bt.setup(r,!0),()=>ss(r)}const Wk=["TopLeft","TopRight","BottomLeft","BottomRight"],Nq=Wk.length,mT=e=>typeof e=="string"?parseFloat(e):e,gT=e=>typeof e=="number"||Le.test(e);function Oq(e,t,n,r,i,o){i?(e.opacity=It(0,n.opacity??1,Pq(r)),e.opacityExit=It(t.opacity??1,0,jq(r))):o&&(e.opacity=It(t.opacity??1,n.opacity??1,r));for(let c=0;c<Nq;c++){const d=`border${Wk[c]}Radius`;let f=yT(t,d),h=yT(n,d);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||gT(f)===gT(h)?(e[d]=Math.max(It(mT(f),mT(h),r),0),(ka.test(h)||ka.test(f))&&(e[d]+="%")):e[d]=h}(t.rotate||n.rotate)&&(e.rotate=It(t.rotate||0,n.rotate||0,r))}function yT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Pq=Kk(0,.5,BA),jq=Kk(.5,.95,Hr);function Kk(e,t,n){return r=>r<e?0:r>t?1:n(bu(e,t,r))}function vT(e,t){e.min=t.min,e.max=t.max}function Nr(e,t){vT(e.x,t.x),vT(e.y,t.y)}function bT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function wT(e,t,n,r,i){return e-=t,e=Nh(e,1/n,r),i!==void 0&&(e=Nh(e,1/i,r)),e}function Lq(e,t=0,n=1,r=.5,i,o=e,c=e){if(ka.test(t)&&(t=parseFloat(t),t=It(c.min,c.max,t/100)-c.min),typeof t!="number")return;let d=It(o.min,o.max,r);e===o&&(d-=t),e.min=wT(e.min,t,n,d,i),e.max=wT(e.max,t,n,d,i)}function xT(e,t,[n,r,i],o,c){Lq(e,t[n],t[r],t[i],t.scale,o,c)}const Iq=["x","scaleX","originX"],Bq=["y","scaleY","originY"];function ET(e,t,n,r){xT(e.x,t,Iq,n?n.x:void 0,r?r.x:void 0),xT(e.y,t,Bq,n?n.y:void 0,r?r.y:void 0)}function ST(e){return e.translate===0&&e.scale===1}function Gk(e){return ST(e.x)&&ST(e.y)}function TT(e,t){return e.min===t.min&&e.max===t.max}function Uq(e,t){return TT(e.x,t.x)&&TT(e.y,t.y)}function DT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Qk(e,t){return DT(e.x,t.x)&&DT(e.y,t.y)}function _T(e){return Bn(e.x)/Bn(e.y)}function CT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Hq{constructor(){this.members=[]}add(t){kb(this.members,t),t.scheduleRender()}remove(t){if(Rb(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Vq(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,c=(n==null?void 0:n.z)||0;if((i||o||c)&&(r=`translate3d(${i}px, ${o}px, ${c}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:v,rotateY:b,skewX:w,skewY:x}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),v&&(r+=`rotateX(${v}deg) `),b&&(r+=`rotateY(${b}deg) `),w&&(r+=`skewX(${w}deg) `),x&&(r+=`skewY(${x}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(r+=`scale(${d}, ${f})`),r||"none"}const hy=["","X","Y","Z"],zq={visibility:"hidden"},Fq=1e3;let Yq=0;function py(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Xk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ok(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Bt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Xk(r)}function Zk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(c={},d=t==null?void 0:t()){this.id=Yq++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Wq),this.nodes.forEach(Zq),this.nodes.forEach(Jq),this.nodes.forEach(Kq)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Rq)}addEventListener(c,d){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Ob),this.eventHandlers.get(c).add(d)}notifyListeners(c,...d){const f=this.eventHandlers.get(c);f&&f.notify(...d)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=vk(c)&&!YY(c),this.instance=c;const{layoutId:d,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||d)&&(this.isLayoutDirty=!0),e){let m;const v=()=>this.root.updateBlockedByResize=!1;e(c,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=Mq(v,250),Yf.hasAnimatedSinceResize&&(Yf.hasAnimatedSinceResize=!1,this.nodes.forEach(kT))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||a$,{onLayoutAnimationStart:T,onLayoutAnimationComplete:D}=h.getProps(),_=!this.targetLayout||!Qk(this.targetLayout,w),k=!v&&b;if(this.options.layoutRoot||this.resumeFrom||k||v&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...$b(x,"layout"),onPlay:T,onComplete:D};(h.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(m,k)}else v||kT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ss(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(e$),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Xk(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const v=this.path[m];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(AT);return}this.isUpdating||this.nodes.forEach(Qq),this.isUpdating=!1,this.nodes.forEach(Xq),this.nodes.forEach(qq),this.nodes.forEach($q),this.clearAllSnapshots();const d=Xn.now();En.delta=ci(0,1e3/60,d-En.timestamp),En.timestamp=d,En.isProcessing=!0,iy.update.process(En),iy.preRender.process(En),iy.render.process(En),En.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gq),this.sharedNodes.forEach(t$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Bt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Bn(this.snapshot.measuredBox.x)&&!Bn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(d=!1),d&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!Gk(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;c&&this.instance&&(d||Bs(this.latestValues)||m)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return c&&(f=this.removeTransform(f)),i$(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:c}=this.options;if(!c)return Wt();const d=c.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(s$))){const{scroll:m}=this.root;m&&(nl(d.x,m.offset.x),nl(d.y,m.offset.y))}return d}removeElementScroll(c){var f;const d=Wt();if(Nr(d,c),(f=this.scroll)!=null&&f.wasRoot)return d;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:v,options:b}=m;m!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Nr(d,c),nl(d.x,v.offset.x),nl(d.y,v.offset.y))}return d}applyTransform(c,d=!1){const f=Wt();Nr(f,c);for(let h=0;h<this.path.length;h++){const m=this.path[h];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&rl(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Bs(m.latestValues)&&rl(f,m.latestValues)}return Bs(this.latestValues)&&rl(f,this.latestValues),f}removeTransform(c){const d=Wt();Nr(d,c);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Bs(h.latestValues))continue;vv(h.latestValues)&&h.updateSnapshot();const m=Wt(),v=h.measurePageBox();Nr(m,v),ET(d,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Bs(this.latestValues)&&ET(d,this.latestValues),d}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==En.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var b;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==d;if(!(c||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:v}=this.options;if(!(!this.layout||!(m||v))){if(this.resolvedRelativeTargetAt=En.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),uu(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wt(),this.targetWithTransforms=Wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),lq(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Nr(this.target,this.layout.layoutBox),Vk(this.target,this.targetDelta)):Nr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wt(),this.relativeTargetOrigin=Wt(),uu(this.relativeTargetOrigin,this.target,w.target),Nr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vv(this.parent.latestValues)||Hk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var x;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let f=!0;if((this.isProjectionDirty||(x=this.parent)!=null&&x.isProjectionDirty)&&(f=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===En.timestamp&&(f=!1),f)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Nr(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;cq(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Wt());const{target:w}=c;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(bT(this.prevProjectionDelta.x,this.projectionDelta.x),bT(this.prevProjectionDelta.y,this.projectionDelta.y)),cu(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!CT(this.projectionDelta.x,this.prevProjectionDelta.x)||!CT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var d;if((d=this.options.visualElement)==null||d.scheduleRender(),c){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tl(),this.projectionDelta=tl(),this.projectionDeltaWithTransform=tl()}setAnimationOrigin(c,d=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},v=tl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const b=Wt(),w=f?f.source:void 0,x=this.layout?this.layout.source:void 0,T=w!==x,D=this.getStack(),_=!D||D.members.length<=1,k=!!(T&&!_&&this.options.crossfade===!0&&!this.path.some(r$));this.animationProgress=0;let A;this.mixTargetDelta=V=>{const L=V/1e3;RT(v.x,c.x,L),RT(v.y,c.y,L),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(uu(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n$(this.relativeTarget,this.relativeTargetOrigin,b,L),A&&Uq(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=Wt()),Nr(A,this.relativeTarget)),T&&(this.animationValues=m,Oq(m,h,this.latestValues,L,k,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){var d,f,h;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(),this.pendingAnimation&&(ss(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Bt.update(()=>{Yf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Al(0)),this.currentAnimation=Aq(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),c.onUpdate&&c.onUpdate(m)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fq),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:d,target:f,layout:h,latestValues:m}=c;if(!(!d||!f||!h)){if(this!==c&&this.layout&&h&&Jk(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Wt();const v=Bn(this.layout.layoutBox.x);f.x.min=c.target.x.min,f.x.max=f.x.min+v;const b=Bn(this.layout.layoutBox.y);f.y.min=c.target.y.min,f.y.max=f.y.min+b}Nr(d,f),rl(d,m),cu(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(c,d){this.sharedNodes.has(c)||this.sharedNodes.set(c,new Hq),this.sharedNodes.get(c).add(d);const h=d.options.initialPromotionConfig;d.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(d):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var d;const{layoutId:c}=this.options;return c?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:c}=this.options;return c?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:d,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),c&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let d=!1;const{latestValues:f}=c;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const h={};f.z&&py("z",c,h,this.animationValues);for(let m=0;m<hy.length;m++)py(`rotate${hy[m]}`,c,h,this.animationValues),py(`skew${hy[m]}`,c,h,this.animationValues);c.render();for(const m in h)c.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);c.scheduleRender()}getProjectionStyles(c){if(!this.instance||this.isSVG)return;if(!this.isVisible)return zq;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ff(c==null?void 0:c.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=Ff(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Bs(this.latestValues)&&(w.transform=f?f({},""):"none",this.hasProjected=!1),w}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=Vq(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:v,y:b}=this.projectionDelta;d.transformOrigin=`${v.origin*100}% ${b.origin*100}% 0`,h.animationValues?d.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const w in Su){if(m[w]===void 0)continue;const{correct:x,applyTo:T,isCSSVariable:D}=Su[w],_=d.transform==="none"?m[w]:x(m[w],h);if(T){const k=T.length;for(let A=0;A<k;A++)d[T[A]]=_}else D?this.options.visualElement.renderState.vars[w]=_:d[w]=_}return this.options.layoutId&&(d.pointerEvents=h===this?Ff(c==null?void 0:c.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var d;return(d=c.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(AT),this.root.sharedNodes.clear()}}}function qq(e){e.updateLayout()}function $q(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,c=t.source!==e.layout.source;o==="size"?Or(v=>{const b=c?t.measuredBox[v]:t.layoutBox[v],w=Bn(b);b.min=r[v].min,b.max=b.min+w}):Jk(o,t.layoutBox,r)&&Or(v=>{const b=c?t.measuredBox[v]:t.layoutBox[v],w=Bn(r[v]);b.max=b.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+w)});const d=tl();cu(d,r,t.layoutBox);const f=tl();c?cu(f,e.applyTransform(i,!0),t.measuredBox):cu(f,r,t.layoutBox);const h=!Gk(d);let m=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:w}=v;if(b&&w){const x=Wt();uu(x,t.layoutBox,b.layoutBox);const T=Wt();uu(T,r,w.layoutBox),Qk(x,T)||(m=!0),v.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=x,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Wq(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Kq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Gq(e){e.clearSnapshot()}function AT(e){e.clearMeasurements()}function Qq(e){e.isLayoutDirty=!1}function Xq(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Zq(e){e.resolveTargetDelta()}function Jq(e){e.calcProjection()}function e$(e){e.resetSkewAndRotation()}function t$(e){e.removeLeadSnapshot()}function RT(e,t,n){e.translate=It(t.translate,0,n),e.scale=It(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function MT(e,t,n,r){e.min=It(t.min,n.min,r),e.max=It(t.max,n.max,r)}function n$(e,t,n,r){MT(e.x,t.x,n.x,r),MT(e.y,t.y,n.y,r)}function r$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const a$={duration:.45,ease:[.4,0,.1,1]},NT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),OT=NT("applewebkit/")&&!NT("chrome/")?Math.round:Hr;function PT(e){e.min=OT(e.min),e.max=OT(e.max)}function i$(e){PT(e.x),PT(e.y)}function Jk(e,t,n){return e==="position"||e==="preserve-aspect"&&!oq(_T(t),_T(n),.2)}function s$(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const o$=Zk({attachResizeListener:(e,t)=>Du(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),my={current:void 0},eR=Zk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!my.current){const e=new o$({});e.mount(window),e.setOptions({layoutScroll:!0}),my.current=e}return my.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),l$={pan:{Feature:Tq},drag:{Feature:Sq,ProjectionNode:eR,MeasureLayout:$k}};function jT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Bt.postRender(()=>o(t,Zu(t)))}class c$ extends ps{mount(){const{current:t}=this.node;t&&(this.unmount=UY(t,(n,r)=>(jT(this.node,r,"Start"),i=>jT(this.node,i,"End"))))}unmount(){}}class u$ extends ps{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gu(Du(this.node.current,"focus",()=>this.onFocus()),Du(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function LT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Bt.postRender(()=>o(t,Zu(t)))}class d$ extends ps{mount(){const{current:t}=this.node;t&&(this.unmount=FY(t,(n,r)=>(LT(this.node,r,"Start"),(i,{success:o})=>LT(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xv=new WeakMap,gy=new WeakMap,f$=e=>{const t=xv.get(e.target);t&&t(e)},h$=e=>{e.forEach(f$)};function p$({root:e,...t}){const n=e||document;gy.has(n)||gy.set(n,{});const r=gy.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(h$,{root:e,...t})),r[i]}function m$(e,t,n){const r=p$(t);return xv.set(e,n),r.observe(e),()=>{xv.delete(e),r.unobserve(e)}}const g$={some:0,all:1};class y$ extends ps{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,c={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:g$[i]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:v}=this.node.getProps(),b=h?m:v;b&&b(f)};return m$(this.node.current,c,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(v$(t,n))&&this.startObserver()}unmount(){}}function v$({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const b$={inView:{Feature:y$},tap:{Feature:d$},focus:{Feature:u$},hover:{Feature:c$}},w$={layout:{ProjectionNode:eR,MeasureLayout:$k}},Ev={current:null},tR={current:!1};function x$(){if(tR.current=!0,!!Cb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ev.current=e.matches;e.addListener(t),t()}else Ev.current=!1}const E$=new WeakMap;function S$(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Mn(i))e.addValue(r,i);else if(Mn(o))e.addValue(r,Al(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const c=e.getValue(r);c.liveStyle===!0?c.jump(i):c.hasAnimated||c.set(i)}else{const c=e.getStaticValue(r);e.addValue(r,Al(c!==void 0?c:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const IT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class T${scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Xn.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Bt.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=d,this.blockInitialAnimation=!!o,this.isControllingVariants=dp(n),this.isVariantNode=Ek(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in v){const w=v[b];f[b]!==void 0&&Mn(w)&&w.set(f[b],!1)}}mount(t){this.current=t,E$.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),tR.current||x$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ev.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ss(this.notifyUpdate),ss(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Fl.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&Bt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),c&&c(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in kl){const n=kl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<IT.length;r++){const i=IT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,c=t[o];c&&(this.propEventSubscriptions[i]=this.on(i,c))}this.prevMotionValues=S$(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Al(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(AA(r)||RA(r))?r=parseFloat(r):!$Y(r)&&os.test(n)&&(r=fk(t,n)),this.setBaseTarget(t,Mn(r)?r.get():r)),Mn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const c=n0(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);c&&(r=c[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Mn(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ob),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class nR extends T${constructor(){super(...arguments),this.KeyframeResolver=jY}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Mn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function rR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}function D$(e){return window.getComputedStyle(e)}class _$ extends nR{constructor(){super(...arguments),this.type="html",this.renderInstance=rR}readValueFromInstance(t,n){var r;if(Fl.has(n))return(r=this.projection)!=null&&r.isProjecting?cv(n):eY(t,n);{const i=D$(t),o=(Lb(n)?i.getPropertyValue(n):i[n])||0;
1668return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return zk(t,n)}build(t,n,r){Jb(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return r0(t,n,r)}}const aR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function C$(e,t,n,r){rR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(aR.has(i)?i:Zb(i),t.attrs[i])}class A$ extends nR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Fl.has(n)){const r=dk(n);return r&&r.default||0}return n=aR.has(n)?n:Zb(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Nk(t,n,r)}build(t,n,r){Ak(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){C$(t,n,r,i)}mount(t){this.isSVGTag=Rk(t.tagName),super.mount(t)}}const k$=(e,t)=>t0(e)?new A$(t):new _$(t,{allowProjection:e!==S.Fragment}),R$=C9({...J9,...b$,...l$,...w$},k$),Ce=ZY(R$),M$={some:0,all:1};function N$(e,t,{root:n,margin:r,amount:i="some"}={}){const o=hk(e),c=new WeakMap,d=h=>{h.forEach(m=>{const v=c.get(m.target);if(m.isIntersecting!==!!v)if(m.isIntersecting){const b=t(m.target,m);typeof b=="function"?c.set(m.target,b):f.unobserve(m.target)}else typeof v=="function"&&(v(m),c.delete(m.target))})},f=new IntersectionObserver(d,{root:n,rootMargin:r,threshold:typeof i=="number"?i:M$[i]});return o.forEach(h=>f.observe(h)),()=>f.disconnect()}function i0(e,{root:t,margin:n,amount:r,once:i=!1,initial:o=!1}={}){const[c,d]=S.useState(o);return S.useEffect(()=>{if(!e.current||i&&c)return;const f=()=>(d(!0),i?void 0:()=>d(!1)),h={root:t&&t.current||void 0,margin:n,amount:r};return N$(e.current,f,h)},[t,e,n,i,r]),c}const fp="/assets/social-work1-DrOj9d0J.webp",hp="/assets/social-work2-CfsU6QfZ.webp",O$=()=>y.jsxs("section",{className:"relative min-h-screen bg-gradient-to-br from-accent via-secondary to-primary overflow-hidden pt-16",children:[y.jsxs("div",{className:"absolute inset-0",children:[y.jsx(Ce.div,{className:"absolute top-20 left-10 w-72 h-72 bg-primary/30 rounded-full mix-blend-multiply filter blur-xl opacity-20",animate:{scale:[1,1.2,1],rotate:[0,180,360]},transition:{duration:20,repeat:1/0,ease:"linear"}}),y.jsx(Ce.div,{className:"absolute top-40 right-10 w-96 h-96 bg-secondary/30 rounded-full mix-blend-multiply filter blur-xl opacity-20",animate:{scale:[1.2,1,1.2],rotate:[360,180,0]},transition:{duration:25,repeat:1/0,ease:"linear"}})]}),y.jsxs("div",{className:"relative container mx-auto px-6 py-20 flex flex-col lg:flex-row items-center min-h-screen mb-6",children:[y.jsxs(Ce.div,{className:"lg:w-1/2 text-primary-content mb-12 lg:mb-0",initial:{opacity:0,x:-100},animate:{opacity:1,x:0},transition:{duration:.8,delay:.2},children:[y.jsxs(Ce.h1,{className:"text-5xl lg:text-7xl font-bold mb-6 leading-tight",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.8,delay:.4},children:["Empowering",y.jsx(Ce.span,{className:"block text-transparent bg-clip-text bg-gradient-to-r from-primary to-secondary/20",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.6},children:"Communities"})]}),y.jsx(Ce.p,{className:"text-xl lg:text-2xl mb-8 text-primary-content/80 leading-relaxed",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.8},children:"Join meaningful volunteer opportunities and make a lasting impact in your community. Together, we create positive change one event at a time."}),y.jsxs(Ce.div,{className:"flex flex-col sm:flex-row gap-4",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:1},children:[y.jsx(Ce.button,{className:"bg-gradient-to-r from-primary/50 to-accent text-primary-content px-8 py-4 rounded-full text-lg font-semibold hover:shadow-lg transition-all duration-300",whileHover:{scale:1.05,boxShadow:"0 10px 30px rgba(0, 0, 0, 0.2)"},whileTap:{scale:.95},children:"Start Volunteering"}),y.jsx(Ce.button,{className:"border-2 border-primary-content text-primary-content px-8 py-4 rounded-full text-lg font-semibold hover:bg-primary-content hover:text-primary transition-all duration-300",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Learn More"})]})]}),y.jsx(Ce.div,{className:"lg:w-1/2 relative",initial:{opacity:0,x:100}
1668,animate:{opacity:1,x:0},transition:{duration:.8,delay:.4},children:y.jsxs("div",{className:"relative",children:[y.jsx(Ce.div,{className:"relative z-10",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.6},children:y.jsx("img",{src:fp,alt:"Community volunteers",className:"rounded-2xl shadow-2xl w-full max-w-lg mx-auto"})}),y.jsx(Ce.div,{className:"absolute -top-8 -right-8 z-20",initial:{opacity:0,scale:.8,rotate:-10},animate:{opacity:1,scale:1,rotate:0},transition:{duration:.8,delay:.8},children:y.jsx("img",{src:hp,alt:"Community impact",className:"rounded-xl shadow-xl w-48 h-48 object-cover border-4 border-base-100"})}),y.jsx(Ce.div,{className:"absolute -bottom-4 -left-4 bg-base-100 rounded-full p-4 px-10 shadow-lg z-10",initial:{opacity:0,y:20},animate:{opacity:1,y:[0,-10,0]},children:y.jsxs("div",{className:"text-center",children:[y.jsx("div",{className:"text-2xl font-bold text-base-content",children:"500+"}),y.jsx("div",{className:"text-sm text-base-content/70",children:"Volunteers"})]})})]})})]}),y.jsx(Ce.div,{className:"absolute bottom-8 left-1/2 transform -translate-x-1/2",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:1.2},children:y.jsx(Ce.div,{className:"w-6 h-10 border-2 border-primary-content rounded-full flex justify-center",animate:{y:[0,10,0]},transition:{duration:2,repeat:1/0},children:y.jsx(Ce.div,{className:"w-1 h-3 bg-primary-content rounded-full mt-2",animate:{opacity:[0,1,0]},transition:{duration:2,repeat:1/0}})})})]}),P$=()=>{const e=S.useRef(null),t=i0(e,{once:!0}),n=[{icon:"ð¤",title:"Easy Event Creation",description:"Create and manage volunteer events with our intuitive interface. Set dates, locations, and requirements effortlessly.",color:"from-primary to-accent"},{icon:"ð",title:"Community Impact",description:"Track your community contributions and see the real-world impact of your volunteer efforts.",color:"from-secondary to-accent"},{icon:"ð¥",title:"Team Collaboration",description:"Connect with like-minded volunteers and organize group activities for maximum community benefit.",color:"from-accent to-secondary"},{icon:"ð",title:"Progress Tracking",description:"Monitor your volunteer hours, achievements, and contributions with detailed analytics and reports.",color:"from-primary to-secondary"},{icon:"ð¯",title:"Skill Matching",description:"Get matched with volunteer opportunities that align with your skills and interests.",color:"from-secondary to-primary"},{icon:"ð",title:"Recognition System",description:"Earn badges and recognition for your volunteer contributions and inspire others to join.",color:"from-accent to-primary"}],r={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2,delayChildren:.1}}},i={hidden:{opacity:0,y:50,scale:.9},visible:{opacity:1,y:0,scale:1,transition:{duration:.6,ease:"easeOut"}}};return y.jsx("section",{ref:e,className:"py-20 bg-base-200",children:y.jsxs("div",{className:"container mx-auto px-6",children:[y.jsxs(Ce.div,{className:"text-center mb-16",initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{opacity:0,y:30},transition:{duration:.8},children:[y.jsx(Ce.span,{className:"inline-block text-sm font-semibold text-primary bg-primary/10 px-4 py-2 rounded-full mb-4",initial:{opacity:0,scale:.8},animate:t?{opacity:1,scale:1}:{opacity:0,scale:.8},transition:{duration:.6,delay:.2},children:"Why Choose Us"}),y.jsxs(Ce.h2,{className:"text-4xl lg:text-5xl font-bold text-base-content mb-6",initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{opacity:0,y:20},transition:{duration:.8,delay:.3},children:["Powerful Features for",y.jsx("span",{className:"block text-transparent bg-clip-text bg-gradient-to-r from-primary to-secondary",children:"Community Building"})]}),y.jsx(Ce.p,{className:"text-xl text-base-content/70 max-w-3xl mx-auto",initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{opacity:0,y:20},transition:{duration:.8,delay:.5},children:"Discover the tools and features that make volunteering simple, impactful, and rewarding for everyone involved."})]}),y.jsx(Ce.div,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",variants:r,initial:"hidden",animate:t?"visible":"hidden",children:n.map((o,c)=>y.jsx(Ce.div,{className:"relative group",variants:i,whileHover:{y:-10},transition:{duration:.3},children:y.jsxs("div",{className:"bg-base-100 rounded-2xl p-8 shadow-lg hover:shadow-2xl transition-all duration-300 border border-base-300 h-full",children:[y.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${o.color} opacity-0 group-hover:opacity-5 rounded-2xl transition-opacity duration-300`}),y.jsx(Ce.div,{className:"text-6xl mb-6",whileHover:{scale:1.2,rotate:5},transition:{duration:.3},children:o.icon}),y.jsxs("div",{className:"relative z-10",children:[y.jsx("h3",{className:"text-2xl font-bold text-base-content mb-4 group-hover:text-primary transition-colors duration-300",children:o.title}),y.jsx("p",{className:"text-base-content/70 leading-relaxed group-hover:text-base-content transition-colors duration-300",children:o.description})]}),y.jsx("div",{className:"absolute top-4 right-4 opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:y.jsx("div",{className:`w-3 h-3 bg-gradient-to-r ${o.color} rounded-full animate-pulse`})})]})},c))}),y.jsx(Ce.div,{className:"text-center mt-16",initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{opacity:0,y:30},transition:{duration:.8,delay:.8},children:y.jsx(Ce.button,{className:"bg-gradient-to-r from-primary to-secondary text-primary-content px-8 py-4 rounded-full text-lg font-semibold hover:shadow-lg transition-all duration-300",whileHover:{scale:1.05,boxShadow:"0 15px 35px rgba(0, 0, 0, 0.2)"},whileTap:{scale:.95},children:"Explore All Features"})})]})})};function al(){return al=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},al.apply(this,arguments)}function j$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sv(e,t)}function Sv(e,t){return Sv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Sv(e,t)}var s0=function(e){j$(t,e);function t(){var r;return r=e.call(this)||this,r.state={columns:[],childRefs:[],hasDistributed:!1},r}var n=t.prototype;return n.componentDidUpdate=function(){!this.state.hasDistributed&&!this.props.sequential&&this.distributeChildren()},t.getDerivedStateFromProps=function(i,o){var c=i.children,d=i.columnsCount,f=d!==o.columns.length;return o&&c===o.children&&!f?null:al({},t.getEqualCountColumns(c,d),{children:c,hasDistributed:!1})},n.shouldComponentUpdate=function(i){return i.children!==this.state.children||i.columnsCount!==this.props.columnsCount},n.distributeChildren=function(){var i=this,o=this.props,c=o.children,d=o.columnsCount,f=Array(d).fill(0),h=this.state.childRefs.every(function(b){return b.current.getBoundingClientRect().height});if(h){var m=Array.from({length:d},function(){return[]}),v=0;
1668W.Children.forEach(c,function(b){if(b&&W.isValidElement(b)){var w=i.state.childRefs[v].current.getBoundingClientRect().height,x=f.indexOf(Math.min.apply(Math,f));f[x]+=w,m[x].push(b),v++}}),this.setState(function(b){return al({},b,{columns:m,hasDistributed:!0})})}},t.getEqualCountColumns=function(i,o){var c=Array.from({length:o},function(){return[]}),d=0,f=[];return W.Children.forEach(i,function(h){if(h&&W.isValidElement(h)){var m=W.createRef();f.push(m),c[d%o].push(W.createElement("div",{style:{display:"flex",justifyContent:"stretch"},key:d,ref:m},h)),d++}}),{columns:c,childRefs:f}},n.renderColumns=function(){var i=this.props,o=i.gutter,c=i.itemTag,d=i.itemStyle;return this.state.columns.map(function(f,h){return W.createElement(c,{key:h,style:al({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:o},d)},f.map(function(m){return m}))})},n.render=function(){var i=this.props,o=i.gutter,c=i.className,d=i.style,f=i.containerTag;return W.createElement(f,{style:al({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:o},d),className:c},this.renderColumns())},t}(W.Component);s0.propTypes={};s0.defaultProps={columnsCount:3,gutter:"0",className:null,style:{},containerTag:"div",itemTag:"div",itemStyle:{},sequential:!1};var L$=1,I$="10px",iR=typeof window<"u"?S.useLayoutEffect:S.useEffect,B$=function(){var t=S.useState(!1),n=t[0],r=t[1];return iR(function(){r(!0)},[]),n},U$=function(){var t=B$(),n=S.useState(typeof window<"u"?window.innerWidth:0),r=n[0],i=n[1],o=S.useCallback(function(){t&&i(window.innerWidth)},[t]);return iR(function(){if(t)return window.addEventListener("resize",o),o(),function(){return window.removeEventListener("resize",o)}},[t,o]),r},sR=function(t){var n=t.columnsCountBreakPoints,r=n===void 0?{350:1,750:2,900:3}:n,i=t.gutterBreakPoints,o=i===void 0?{}:i,c=t.children,d=t.className,f=d===void 0?null:d,h=t.style,m=h===void 0?null:h,v=U$(),b=S.useCallback(function(T,D){var _=Object.keys(T).sort(function(A,V){return A-V}),k=_.length>0?T[_[0]]:D;return _.forEach(function(A){A<v&&(k=T[A])}),k},[v]),w=S.useMemo(function(){return b(r,L$)},[b,r]),x=S.useMemo(function(){return b(o,I$)},[b,o]);return W.createElement("div",{className:f,style:m},W.Children.map(c,function(T,D){return W.cloneElement(T,{key:D,columnsCount:w,gutter:x})}))};sR.propTypes={};const oR="/assets/social-work3-BzmbdQOp.webp",lR="/assets/social-work4-D45DG5SU.webp",cR="/assets/social-work5-DSFPYhdO.webp",uR="/assets/social-work9-BicgGtie.webp",H$=()=>{const e=S.useRef(null),t=i0(e,{once:!0}),[n,r]=S.useState(null),i=[{src:lR,title:"Healthcare Support",description:"Medical volunteers providing health services",category:"Healthcare"},{src:fp,title:"Community Food Drive",description:"Volunteers helping distribute food to families in need",category:"Food Security"},{src:hp,title:"Environmental Cleanup",description:"Community members working together to clean local parks",category:"Environment"},{src:oR,title:"Educational Outreach",description:"Teaching children in underserved communities",category:"Education"},{src:cR,title:"Disaster Relief",description:"Volunteers assisting in disaster-stricken areas",category:"Disaster Relief"},{src:uR,title:"Community Food Drive",description:"Volunteers helping distribute food to families in need",category:"Food Security"}],o={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},c={hidden:{opacity:0,y:60,scale:.8},visible:{opacity:1,y:0,scale:1,transition:{duration:.6,ease:"easeOut"}}};return y.jsxs("section",{ref:e,className:"py-20 bg-base-100",children:[y.jsxs("div",{className:"container mx-auto px-6",children:[y.jsxs(Ce.div,{className:"text-center mb-16",initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{opacity:0,y:30},transition:{duration:.8},children:[y.jsx(Ce.span,{className:"inline-block text-sm font-semibold text-secondary bg-secondary/10 px-4 py-2 rounded-full mb-4",initial:{opacity:0,scale:.8},animate:t?{opacity:1,scale:1}:{opacity:0,scale:.8},transition:{duration:.6,delay:.2},children:"Our Impact"}),y.jsxs(Ce.h2,{className:"text-4xl lg:text-5xl font-bold text-base-content mb-6",initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{opacity:0,y:20},transition:{duration:.8,delay:.3},children:["Community in",y.jsx("span",{className:"block text-transparent bg-clip-text bg-gradient-to-r from-secondary to-accent",children:"Action Gallery"})]}),y.jsx(Ce.p,{className:"text-xl text-base-content/70 max-w-3xl mx-auto",initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{opacity:0,y:20},transition:{duration:.8,delay:.5},children:"Explore moments that showcase the power of community collaboration and the positive impact we create together."})]}),y.jsx(Ce.div,{className:"w-full px-4 md:px-6 lg:px-8",variants:o,initial:"hidden",animate:t?"visible":"hidden",children:y.jsx(sR,{columnsCountBreakPoints:{0:1,640:2,1024:3},children:y.jsx(s0,{gutter:"1.5rem",children:i.map((d,f)=>y.jsxs(Ce.div,{className:"w-full relative group cursor-pointer overflow-hidden rounded-2xl bg-base-200",variants:c,whileHover:{scale:1.02},transition:{duration:.3},onClick:()=>r(d),children:[y.jsx(Ce.img,{src:d.src,alt:d.title,className:"w-full h-auto object-cover transition-transform duration-500 group-hover:scale-110",initial:{scale:1.1},animate:{scale:1},transition:{duration:.8}}),y.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-base-content/70 via-base-content/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),y.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-6 text-base-100 transform translate-y-full group-hover:translate-y-0 transition-transform duration-300",children:[y.jsx("span",{className:"inline-block text-xs font-semibold bg-base-100/20 backdrop-blur-sm px-2 py-1 rounded-full mb-2",children:d.category}),y.jsx("h3",{className:"text-lg font-bold mb-2",children:d.title}),y.jsx("p",{className:"text-sm text-base-100/80",children:d.description})]})]},f))})})}),y.jsx(Ce.div,{className:"mt-20 grid grid-cols-2 md:grid-cols-4 gap-8",initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{opacity:0,y:30},transition:{duration:.8,delay:.8},children:[{number:"2,500+",label:"Volunteers"},{number:"150+",label:"Events Organized"},{number:"50K+",label:"Lives Impacted"},{number:"25+",label:"Communities Served"}].map((d,f)=>y.jsxs(Ce.div,{className:"text-center",initial:{opacity:0,scale:.8},animate:t?{opacity:1,scale:1}:{opacity:0,scale:.8},transition:{duration:.6,delay:1+f*.1},children:[y.jsx(Ce.div,{className:"text-3xl lg:text-4xl font-bold text-base-content mb-2",animate:{scale:[1,1.05,1]},transition:{duration:2,repeat:1/0,delay:f*.2},children:d.number}),y.jsx("div",{className:"text-base-content/70 font-medium",children:d.label})]},f))})]}),n&&y.jsx(Ce.div,{className:"fixed inset-0 bg-base-content/80 backdrop-blur-sm z-50 flex items-center justify-center p-4",initial:{opacity:0}
1668,animate:{opacity:1},exit:{opacity:0},onClick:()=>r(null),children:y.jsxs(Ce.div,{className:"relative max-w-4xl max-h-[90vh] bg-base-100 rounded-2xl overflow-hidden",initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.3},onClick:d=>d.stopPropagation(),children:[y.jsx("img",{src:n.src,alt:n.title,className:"w-full h-auto max-h-[60vh] object-cover"}),y.jsxs("div",{className:"p-6",children:[y.jsx("span",{className:"inline-block text-sm font-semibold text-secondary bg-secondary/10 px-3 py-1 rounded-full mb-3",children:n.category}),y.jsx("h3",{className:"text-2xl font-bold text-base-content mb-3",children:n.title}),y.jsx("p",{className:"text-base-content/70",children:n.description})]}),y.jsx("button",{className:"absolute top-4 right-4 w-8 h-8 bg-base-content/20 backdrop-blur-sm rounded-full flex items-center justify-center text-base-100 hover:bg-base-content/30 transition-colors",onClick:()=>r(null),children:"â"})]})})]})},V$=()=>{const e=S.useRef(null),t=i0(e,{once:!0}),[n,r]=S.useState(""),[i,o]=S.useState(!1),c=f=>{f.preventDefault(),n&&(o(!0),setTimeout(()=>{o(!1),r("")},3e3))},d=[{icon:"ð§",title:"Weekly Updates",description:"Get the latest volunteer opportunities delivered to your inbox"},{icon:"ð¯",title:"Curated Events",description:"Receive personally matched events based on your interests"},{icon:"ð",title:"Impact Stories",description:"Read inspiring stories from fellow volunteers and communities"},{icon:"ð",title:"Exclusive Access",description:"Be the first to know about special events and recognition programs"}];return y.jsxs("section",{ref:e,className:"py-20 bg-gradient-to-br from-primary via-secondary to-accent relative overflow-hidden",children:[y.jsxs("div",{className:"absolute inset-0",children:[y.jsx(Ce.div,{className:"absolute top-20 left-20 w-64 h-64 bg-accent/30 rounded-full mix-blend-multiply filter blur-xl opacity-20",animate:{scale:[1,1.3,1],x:[0,50,0],y:[0,-30,0]},transition:{duration:15,repeat:1/0,ease:"easeInOut"}}),y.jsx(Ce.div,{className:"absolute bottom-20 right-20 w-80 h-80 bg-secondary/30 rounded-full mix-blend-multiply filter blur-xl opacity-20",animate:{scale:[1.2,1,1.2],x:[0,-40,0],y:[0,20,0]},transition:{duration:18,repeat:1/0,ease:"easeInOut"}}),y.jsx(Ce.div,{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-96 h-96 bg-primary/30 rounded-full mix-blend-multiply filter blur-xl opacity-10",animate:{scale:[1,1.1,1],rotate:[0,180,360]},transition:{duration:25,repeat:1/0,ease:"linear"}})]}),y.jsx("div",{className:"container mx-auto px-6 relative z-10",children:y.jsx("div",{className:"max-w-6xl mx-auto",children:y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[y.jsxs(Ce.div,{className:"text-primary-content",initial:{opacity:0,x:-50},animate:t?{opacity:1,x:0}:{opacity:0,x:-50},transition:{duration:.8},children:[y.jsx(Ce.span,{className:"inline-block text-sm font-semibold text-accent bg-accent/20 backdrop-blur-sm px-4 py-2 rounded-full mb-6",initial:{opacity:0,scale:.8},animate:t?{opacity:1,scale:1}:{opacity:0,scale:.8},transition:{duration:.6,delay:.2},children:"Stay Connected"}),y.jsxs(Ce.h2,{className:"text-4xl lg:text-5xl font-bold mb-6 leading-tight",initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{opacity:0,y:30},transition:{duration:.8,delay:.3},children:["Never Miss a",y.jsx("span",{className:"block text-transparent bg-clip-text bg-gradient-to-r from-accent to-secondary",children:"Chance to Help"})]}),y.jsx(Ce.p,{className:"text-xl text-primary-content/80 mb-8 leading-relaxed",initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{opacity:0,y:20},transition:{duration:.8,delay:.5},children:"Join our newsletter to stay updated on the latest volunteer opportunities, community events, and inspiring stories of impact from around the world."}),y.jsx(Ce.div,{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-8",initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{opacity:0,y:30},transition:{duration:.8,delay:.6},children:d.map((f,h)=>y.jsxs(Ce.div,{className:"flex items-start space-x-3 bg-primary-content/10 backdrop-blur-sm rounded-xl p-4",initial:{opacity:0,x:-20},animate:t?{opacity:1,x:0}:{opacity:0,x:-20},transition:{duration:.6,delay:.7+h*.1},whileHover:{scale:1.05,backgroundColor:"rgba(255,255,255,0.15)"},children:[y.jsx("span",{className:"text-2xl",children:f.icon}),y.jsxs("div",{children:[y.jsx("h4",{className:"font-semibold text-primary-content mb-1",children:f.title}),y.jsx("p",{className:"text-sm text-primary-content/70",children:f.description})]})]},h))})]}),y.jsxs(Ce.div,{className:"relative",initial:{opacity:0,x:50},animate:t?{opacity:1,x:0}:{opacity:0,x:50},transition:{duration:.8,delay:.4},children:[y.jsxs(Ce.div,{className:"bg-primary-content/10 backdrop-blur-lg rounded-3xl p-8 border border-primary-content/20",whileHover:{scale:1.02},transition:{duration:.3},children:[y.jsxs(Ce.div,{className:"text-center mb-8",initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{opacity:0,y:20},transition:{duration:.6,delay:.8},children:[y.jsx("h3",{className:"text-2xl font-bold text-primary-content mb-4",children:"Subscribe to Our Newsletter"}),y.jsx("p",{className:"text-primary-content/70",children:"Join 10,000+ volunteers making a difference"})]}),i?y.jsxs(Ce.div,{className:"text-center py-8",initial:{opacity:0,scale:.8}
1668,animate:{opacity:1,scale:1},transition:{duration:.5},children:[y.jsx(Ce.div,{className:"text-6xl mb-4",animate:{rotate:[0,10,-10,0]},transition:{duration:.5},children:"ð"}),y.jsx("h3",{className:"text-2xl font-bold text-primary-content mb-2",children:"Welcome to the Community!"}),y.jsx("p",{className:"text-primary-content/70",children:"Check your email for a confirmation message."})]}):y.jsxs(Ce.form,{onSubmit:c,className:"space-y-6",initial:{opacity:0,y:20},animate:t?{opacity:1,y:0}:{opacity:0,y:20},transition:{duration:.6,delay:1},children:[y.jsxs("div",{className:"relative",children:[y.jsx(Ce.input,{type:"email",value:n,onChange:f=>r(f.target.value),placeholder:"Enter your email address",className:"w-full px-6 py-4 bg-primary-content/20 backdrop-blur-sm border border-primary-content/30 rounded-2xl text-primary-content placeholder-primary-content/50 focus:outline-none focus:ring-2 focus:ring-accent focus:border-transparent transition-all duration-300",required:!0,whileFocus:{scale:1.02}}),y.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-accent/20 to-secondary/20 rounded-2xl opacity-0 hover:opacity-100 transition-opacity duration-300 pointer-events-none"})]}),y.jsx(Ce.button,{type:"submit",className:"w-full bg-gradient-to-r from-accent to-secondary text-accent-content font-bold py-4 px-8 rounded-2xl hover:shadow-2xl transition-all duration-300",whileHover:{scale:1.05,boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3)"},whileTap:{scale:.95},children:"Subscribe Now"})]}),y.jsx(Ce.div,{className:"mt-6 text-center",initial:{opacity:0}
1668,animate:t?{opacity:1}:{opacity:0},transition:{duration:.6,delay:1.2},children:y.jsx("p",{className:"text-sm text-primary-content/50",children:"We respect your privacy. Unsubscribe at any time."})})]}),y.jsx(Ce.div,{className:"absolute -top-6 -right-6 w-12 h-12 bg-accent rounded-full opacity-20",animate:{y:[0,-20,0],scale:[1,1.1,1]},transition:{duration:3,repeat:1/0,ease:"easeInOut"}}),y.jsx(Ce.div,{className:"absolute -bottom-4 -left-4 w-8 h-8 bg-secondary rounded-full opacity-30",animate:{y:[0,15,0],scale:[1,.9,1]},transition:{duration:4,repeat:1/0,ease:"easeInOut",delay:1}})]})]})})})]})};function z$(){return y.jsxs("div",{className:"min-h-screen",children:[y.jsx(O$,{}),y.jsx(P$,{}),y.jsx(H$,{}),y.jsx(V$,{})]})}const F$="/assets/social-work6-StK-jnYX.webp",Y$="/assets/social-work7-B8o3Borg.webp",q$="/assets/social-work8-CyjTRhk3.webp";function $$(){return y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 p-4 mt-16",children:[y.jsx("img",{src:fp,alt:"Social Work 1",className:"w-full h-auto object-cover rounded-lg shadow-md"}),y.jsx("img",{src:oR,alt:"Social Work 3",className:"w-full h-auto object-cover rounded-lg shadow-md"}),y.jsx("img",{src:uR,alt:"Social Work 9",className:"w-full h-auto object-cover rounded-lg shadow-md"}),y.jsx("img",{src:hp,alt:"Social Work 2",className:"w-full h-auto object-cover rounded-lg shadow-md"}),y.jsx("img",{src:lR,alt:"Social Work 4",className:"w-full h-auto object-cover rounded-lg shadow-md"}),y.jsx("img",{src:cR,alt:"Social Work 5",className:"w-full h-auto object-cover rounded-lg shadow-md"}),y.jsx("img",{src:F$,alt:"Social Work 6",className:"w-full h-auto object-cover rounded-lg shadow-md"}),y.jsx("img",{src:Y$,alt:"Social Work 7",className:"w-full h-auto object-cover rounded-lg shadow-md"}),y.jsx("img",{src:q$,alt:"Social Work 8",className:"w-full h-auto object-cover rounded-lg shadow-md"})]})}function dR(e){return At({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M8 2v4"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"rect",attr:{width:"18",height:"18",x:"3",y:"4",rx:"2"},child:[]},{tag:"path",attr:{d:"M3 10h18"},child:[]},{tag:"path",attr:{d:"M10 16h4"},child:[]}]})(e)}function W$(){const{user:e}=hi(),{getJoinedEvents:t}=hs(),[n,r]=S.useState([]),[i,o]=S.useState(!0),[c,d]=S.useState(null),f=Wr(),h=async()=>{try{o(!0),d(null);const T=(await t()||[]).sort((D,_)=>new Date(D.date)-new Date(_.date));r(T)}catch(x){d("Failed to fetch your joined events. Please try again."),console.error("Error fetching joined events:",x)}finally{o(!1)}};S.useEffect(()=>{h()},[]);const m=x=>{f(`/events/${x}`)},v=x=>new Date(x).toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),b=x=>new Date(x).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),w=x=>new Date(x)<new Date;return y.jsxs(y.Fragment,{children:[y.jsxs(Ml,{children:[y.jsx("title",{children:"My Joined Events | Uddyog"}),y.jsx("meta",{name:"description",content:"View all the events you have joined and manage your event participations."})]}),y.jsx("div",{className:"min-h-screen bg-base-300 pt-24 pb-12",children:y.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[y.jsxs("div",{className:"text-center mb-12",children:[y.jsx("h1",{className:"text-4xl font-bold text-primary mb-4",children:"Your Joined Events"}),y.jsx("p",{className:"text-lg text-base-content/70 max-w-2xl mx-auto",children:"Keep track of all the events you've joined. Get ready to make a positive impact in your community."})]}),i&&y.jsx("div",{className:"flex justify-center items-center py-12",children:y.jsx(fs,{})}),c&&y.jsx("div",{className:"bg-error/10 border border-error/20 rounded-lg p-6 mb-8",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"text-error",children:y.jsx(op,{className:"size-6"})}),y.jsxs("div",{children:[y.jsx("h3",{className:"text-error font-medium",children:"Error"}),y.jsx("p",{className:"text-base-content/70 mt-1",children:c}),y.jsx(ct,{onClick:h,variant:"danger",className:"max-w-fit mt-3 text-white",children:"Try Again"})]})]})}),n.length>0&&y.jsxs("div",{className:"text-center mb-8 p-6 bg-base-100 rounded-lg border border-primary/10",children:[y.jsx("h3",{className:"text-lg font-semibold text-base-content mb-2",children:"Your Event Journey"}),y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-center",children:[y.jsxs("div",{className:"bg-primary/5 rounded-lg p-4",children:[y.jsx("div",{className:"text-2xl font-bold text-primary",children:n.length}),y.jsx("div",{className:"text-sm text-base-content/70",children:"Total Events Joined"})]}),y.jsxs("div",{className:"bg-success/5 rounded-lg p-4",children:[y.jsx("div",{className:"text-2xl font-bold text-success",children:n.filter(x=>!w(x.date)).length}),y.jsx("div",{className:"text-sm text-base-content/70",children:"Upcoming Events"})]}),y.jsxs("div",{className:"bg-base-300 rounded-lg p-4",children:[y.jsx("div",{className:"text-2xl font-bold text-base-content",children:n.filter(x=>w(x.date)).length}),y.jsx("div",{className:"text-sm text-base-content/70",children:"Completed Events"})]})]})]}),!i&&!c&&y.jsx(y.Fragment,{children:n.length===0?y.jsxs("div",{className:"text-center py-12",children:[y.jsx("div",{className:"mx-auto h-24 w-24 mb-4",children:y.jsx(dR,{className:"size-24 opacity-30"})}),y.jsx("h3",{className:"text-lg font-medium text-base-content mb-2",children:"No events joined yet"}),y.jsx("p",{className:"text-base-content/70 mb-6",children:"Start exploring upcoming events and join the ones that interest you."}),y.jsx(ct,{onClick:()=>f("/upcoming"),className:"max-w-fit mx-auto",children:"Browse Upcoming Events"})]}):y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map(x=>{var T,D;return y.jsxs("div",{className:`bg-base-100 rounded-2xl shadow-lg border overflow-hidden hover:shadow-xl transition-all duration-300 ${w(x.date)?"border-base-300 opacity-75":"border-primary/10 hover:scale-105"}`,children:[w(x.date)&&y.jsx("div",{className:"relative",children:y.jsx("div",{className:"absolute top-2 right-2 z-10 bg-base-content/80 text-base-100 text-xs px-2 py-1 rounded-full font-semibold",children:"Completed"})}),y.jsxs("div",{className:"h-48 bg-base-200 relative",children:[x.thumbnail?y.jsx("img",{src:x.thumbnail,alt:x.title,className:`w-full h-full object-cover ${w(x.date)?"grayscale":""}`,onError:_=>{_.target.style.display="none",_.target.nextSibling.style.display="flex"}}):null,y.jsx("div",{className:`w-full h-full bg-gradient-to-br from-primary/60 to-secondary/60 flex items-center justify-center ${x.thumbnail?"hidden":"flex"} ${w(x.date)?"grayscale":""}`,children:y.jsx("span",{className:"text-base-100 text-xl font-semibold",children:((T=x.title)==null?void 0:T.charAt(0))||"E"})})]}),y.jsxs("div",{className:"p-4",children:[y.jsx("div",{className:"mb-3",children:y.jsx("span",{className:`inline-block text-xs px-2 py-1 rounded-full font-semibold uppercase tracking-wide ${w(x.date)?"bg-base-300 text-base-content/60":"bg-primary/10 text-primary"}`,children:x.type||"Event"})}),y.jsx("h3",{className:"text-lg font-semibold text-base-content mb-3 line-clamp-2",children:x.title}),y.jsxs("div",{className:"flex items-center text-base-content/70 mb-2",children:[y.jsx(bl,{className:"w-4 h-4 mr-2 text-primary"}),y.jsx("span",{className:"text-sm truncate",children:x.location})]}),y.jsxs("div",{className:"flex items-center text-base-content/70 mb-3",children:[y.jsx(es,{className:"w-4 h-4 mr-2 text-primary"}),y.jsxs("div",{className:"text-sm",children:[y.jsx("div",{className:w(x.date)?"text-base-content/50":"",children:v(x.date)}),y.jsx("div",{className:"text-xs text-base-content/50",children:b(x.date)})]})]}),y.jsxs("div",{className:"flex items-center text-base-content/70 mb-4",children:[y.jsx(Hh,{className:"w-4 h-4 mr-2 text-primary"}),y.jsxs("span",{className:"text-sm",children:[((D=x.joinedUsers)==null?void 0:D.length)||0," joined"]})]}),y.jsx(ct,{onClick:()=>m(x._id),variant:w(x.date)?"outline":"primary",children:w(x.date)?"View Details":"View Event"})]})]},x._id)})})})]})})]})}const K$=()=>{var m,v;const{signIn:e,googleSignIn:t}=hi(),n=Wr(),r=$r(),[i,o]=S.useState(!1),c=((v=(m=r.state)==null?void 0:m.from)==null?void 0:v.pathname)||"/",d=async b=>{b.preventDefault(),o(!0);const w=b.target,x=w.email.value,T=w.password.value;try{await e(x,T),Ke.fire({icon:"success",title:"Success!",text:"Login successful!",timer:1500,showConfirmButton:!1}),n(c,{replace:!0})}catch(D){Ke.fire({icon:"error",title:"Error!",text:D.message})}finally{o(!1)}},f=async()=>{try{await t(),Ke.fire({icon:"success",title:"Success!",text:"Login successful!",timer:1500,showConfirmButton:!1}),n(c,{replace:!0})}catch(b){Ke.fire({icon:"error",title:"Error!",text:b.message})}finally{o(!1)}},h=()=>{Ke.fire({title:"Forgot Password",text:"Please contact support to reset your password.",icon:"info",confirmButtonText:"OK"})};return y.jsxs("div",{className:"min-h-screen flex bg-primary",children:[y.jsxs("div",{className:"hidden lg:flex w-1/2 bg-gradient-to-br from-secondary to-primary items-center justify-center relative",children:[y.jsx("div",{className:"absolute inset-0 bg-cover bg-center opacity-50",style:{backgroundImage:`url(${hp})`}}),y.jsxs("div",{className:"text-left px-10 max-w-md z-10",children:[y.jsx("h1",{className:"text-primary-content text-5xl font-bold mb-4",children:"Explore your creativity"}),y.jsx("p",{className:"text-primary-content text-lg",children:"Whether it's a workshop, meetup, or networking event, Uddyog is your platform to connect and collaborate."})]})]}),y.jsx("div",{className:"w-full lg:w-1/2 bg-primary flex items-center justify-center px-6",children:y.jsxs("div",{className:"max-w-md w-full",children:[y.jsx("h2",{className:"text-3xl font-bold text-primary-content mb-2",children:"Log In"}),y.jsxs("p",{className:"text-sm text-primary-content/70 mb-6",children:["Don't have an account?"," ",y.jsx("a",{href:"/auth/register",className:"text-primary-content font-medium hover:underline",children:"Sign Up"})]}),y.jsxs("form",{className:"space-y-5",onSubmit:d,children:[y.jsxs("div",{children:[y.jsx("label",{htmlFor:"email",className:"block mb-1 text-primary-content",children:"Email"}),y.jsx("input",{id:"email",name:"email",type:"email",placeholder:"Your email",required:!0,className:"w-full border border-base-100/70 bg-primary text-primary-content px-4 py-2 rounded-md focus:ring focus:ring-primary/20 focus:border-primary"})]}),y.jsxs("div",{children:[y.jsx("label",{htmlFor:"password",className:"block mb-1 text-primary-content",children:"Password"}),y.jsx("input",{id:"password",name:"password",type:"password",placeholder:"Enter your password",required:!0,className:"w-full border border-base-100/70 bg-primary text-primary-content px-4 py-2 rounded-md focus:ring focus:ring-primary/20 focus:border-primary"})]}),y.jsx("div",{className:"text-sm text-gray-600 text-right mb-4",children:y.jsx("p",{onClick:h,className:"hover:underline text-primary-content/70 font-medium cursor-pointer",children:"Forgot Password?"})}),y.jsx(ct,{className:"bg-base-100! text-primary! hover:bg-base-200! hover:text-primary/90!",type:"submit",loading:i,disabled:i,children:"LOG IN"}),y.jsxs("div",{className:"flex items-center gap-2 my-4",children:[y.jsx("div",{className:"flex-grow h-px bg-base-300"}),y.jsx("span",{className:"text-primary-content/60 text-sm",children:"or"}),y.jsx("div",{className:"flex-grow h-px bg-base-300"})]}),y.jsxs(ct,{type:"button",className:"w-full bg-primary text-primary-content hover:bg-primary/90 border border-base-100/70! hover:border-primary-content",onClick:f,disabled:i,variant:"outline",children:[y.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/3/3c/Google_Favicon_2025.svg",alt:"Google",className:"w-5 h-5"}),"Continue with Google"]})]})]})})]})},G$=["Cleanup","Plantation","Donation","Education","Healthcare","Food Drive","Community Building","Environmental","Sports","Cultural","Technology","Volunteer Work","Workshop","Seminar","Other"];function Q$(){const{user:e}=hi(),{getCreatedEvents:t,updateEvent:n,deleteEvent:r}=hs(),i=Wr(),[o,c]=S.useState([]),[d,f]=S.useState(!0),[h,m]=S.useState(null),[v,b]=S.useState(null),[w,x]=S.useState(!1),[T,D]=S.useState({title:"",description:"",type:"",thumbnail:"",location:"",date:null}),_=async()=>{try{f(!0),m(null);const Z=await t();c(Z||[])}catch(Z){m("Failed to fetch your events. Please try again."),console.error("Error fetching created events:",Z)}finally{f(!1)}};S.useEffect(()=>{_()},[]);const k=Z=>new Date(Z).toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),A=Z=>new Date(Z).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),V=Z=>
1668{b(Z),D({title:Z.title,description:Z.description,type:Z.type,thumbnail:Z.thumbnail,location:Z.location,date:new Date(Z.date)})},L=Z=>{const{name:ie,value:ge}=Z.target;D(oe=>({...oe,[ie]:ge}))},R=Z=>{D(ie=>({...ie,date:Z}))},G=()=>{const{title:Z,description:ie,type:ge,thumbnail:oe,location:ce,date:O}=T;if(!Z.trim()||!ie.trim()||!ge||!oe.trim()||!ce.trim()||!O)return Ke.fire({icon:"error",title:"Validation Error",text:"All fields are required"}),!1;try{new URL(oe)}catch{return Ke.fire({icon:"error",title:"Validation Error",text:"Please provide a valid thumbnail image URL"}),!1}return O<=new Date?(Ke.fire({icon:"error",title:"Invalid Date",text:"Event date must be in the future"}),!1):!0},F=async()=>{var Z,ie,ge;if(G()){x(!0);try{const oe={title:T.title.trim(),description:T.description.trim(),type:T.type,thumbnail:T.thumbnail.trim(),location:T.location.trim(),date:T.date.toISOString()};await n(v._id,oe),Ke.fire({icon:"success",title:"Success!",text:"Event updated successfully!",timer:1500,showConfirmButton:!1}),c(ce=>ce.map(O=>O._id===v._id?{...O,...oe,date:T.date.toISOString()}:O)),b(null)}catch(oe){console.error("Error updating event:",oe);let ce="Failed to update event. Please try again.";(ie=(Z=oe.response)==null?void 0:Z.data)!=null&&ie.message?ce=oe.response.data.message:(ge=oe.response)!=null&&ge.data?ce=oe.response.data:oe.message&&(ce=oe.message),Ke.fire({icon:"error",title:"Error",text:ce})}finally{x(!1)}}},B=async(Z,ie)=>{var oe,ce,O;if((await Ke.fire({title:"Are you sure?",text:`You are about to delete "${ie}". This action cannot be undone!`,icon:"warning",showCancelButton:!0,confirmButtonColor:"#ef4444",cancelButtonColor:"#6b7280",confirmButtonText:"Yes, delete it!",cancelButtonText:"Cancel"})).isConfirmed)try{await r(Z),Ke.fire({icon:"success",title:"Deleted!",text:"Event deleted successfully!",timer:1500,showConfirmButton:!1}),c(z=>z.filter(ee=>ee._id!==Z))}catch(z){console.error("Error deleting event:",z);let ee="Failed to delete event. Please try again.";(ce=(oe=z.response)==null?void 0:oe.data)!=null&&ce.message?ee=z.response.data.message:(O=z.response)!=null&&O.data?ee=z.response.data:z.message&&(ee=z.message),Ke.fire({icon:"error",title:"Error",text:ee})}},le=()=>{b(null)};return y.jsxs(y.Fragment,{children:[y.jsxs(Ml,{children:[y.jsx("title",{children:"Manage Events | Uddyog"}),y.jsx("meta",{name:"description",content:"Manage your created events - edit, update, or delete your events"})]}),y.jsx("div",{className:"min-h-screen bg-base-300 pt-24 pb-12",children:y.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[y.jsxs("div",{className:"text-center mb-12",children:[y.jsx("h1",{className:"text-4xl font-bold text-primary mb-4",children:"Manage Your Events"}),y.jsx("p",{className:"text-lg text-base-content/70 max-w-2xl mx-auto",children:"View, edit, and manage all the events you've created. Keep your events up to date and organized."})]}),y.jsx("div",{className:"mb-8 text-center w-full flex justify-end items-center gap-4",children:y.jsxs(ct,{onClick:()=>i("/create"),className:"inline-flex items-center gap-2 max-w-fit",children:[y.jsx(Fs,{className:"w-5 h-5"}),"Create New Event"]})}),d&&y.jsx("div",{className:"flex justify-center items-center py-12",children:y.jsx(fs,{})}),h&&y.jsx("div",{className:"bg-error/10 border border-error/20 rounded-lg p-6 mb-8",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"text-error",children:y.jsx(op,{className:"size-6"})}),y.jsxs("div",{children:[y.jsx("h3",{className:"text-error font-medium",children:"Error"}),y.jsx("p",{className:"text-base-content/70 mt-1",children:h}),y.jsx(ct,{onClick:_,variant:"danger",className:"max-w-fit mt-3 text-white",children:"Try Again"})]})]})}),!d&&!h&&y.jsx(y.Fragment,{children:o.length===0?y.jsxs("div",{className:"text-center py-12",children:[y.jsx("div",{className:"mx-auto h-24 w-24 text-base-content mb-4",children:y.jsx(dR,{className:"size-24 opacity-30"})}),y.jsx("h3",{className:"text-lg font-medium text-base-content mb-2",children:"No events created yet"}),y.jsx("p",{className:"text-base-content/70 mb-6",children:"Start by creating your first event to make a positive impact in y
1668our community."}),y.jsxs(ct,{onClick:()=>i("/create"),className:"inline-flex items-center gap-2 max-w-fit",children:[y.jsx(Fs,{className:"w-5 h-5"}),"Create Your First Event"]})]}):y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map(Z=>{var ie,ge;return y.jsxs("div",{className:"bg-base-100 rounded-2xl shadow-lg border border-primary/10 overflow-hidden hover:shadow-xl transition-all duration-300",children:[y.jsxs("div",{className:"h-48 bg-base-200",children:[Z.thumbnail?y.jsx("img",{src:Z.thumbnail,alt:Z.title,className:"w-full h-full object-cover",onError:oe=>{oe.target.style.display="none",oe.target.nextSibling.style.display="flex"}}):null,y.jsx("div",{className:`w-full h-full bg-gradient-to-br from-primary/60 to-secondary/60 flex items-center justify-center ${Z.thumbnail?"hidden":"flex"}`,children:y.jsx("span",{className:"text-base-100 text-xl font-semibold",children:((ie=Z.title)==null?void 0:ie.charAt(0))||"E"})})]}),y.jsxs("div",{className:"p-4",children:[y.jsx("div",{className:"mb-3",children:y.jsx("span",{className:"inline-block bg-primary/10 text-primary text-xs px-2 py-1 rounded-full font-semibold uppercase tracking-wide",children:Z.type||"Event"})}),y.jsx("h3",{className:"text-lg font-semibold text-base-content mb-3 line-clamp-2",children:Z.title}),y.jsxs("div",{className:"flex items-center text-base-content/70 mb-2",children:[y.jsx(bl,{className:"w-4 h-4 mr-2 text-primary"}),y.jsx("span",{className:"text-sm truncate",children:Z.location})]}),y.jsxs("div",{className:"flex items-center text-base-content/70 mb-3",children:[y.jsx(es,{className:"w-4 h-4 mr-2 text-primary"}),y.jsxs("div",{className:"text-sm",children:[y.jsx("div",{children:k(Z.date)}),y.jsx("div",{className:"text-xs text-base-content/50",children:A(Z.date)})]})]}),y.jsxs("div",{className:"flex items-center text-base-content/70 mb-4",children:[y.jsx(Hh,{className:"w-4 h-4 mr-2 text-primary"}),y.jsxs("span",{className:"text-sm",children:[((ge=Z.joinedUsers)==null?void 0:ge.length)||0," joined"]})]}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(ct,{onClick:()=>V(Z),variant:"primary",className:"flex-1",icon:jy,children:"Edit"}),y.jsx(ct,{onClick:()=>B(Z._id,Z.title),variant:"danger",className:"flex-1 text-white",icon:CI,children:"Delete"})]})]})]},Z._id)})})})]})}),v&&y.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center p-4 z-50",children:y.jsxs("div",{className:"bg-base-100 rounded-2xl shadow-2xl border border-primary/10 w-full max-w-2xl max-h-[85vh] overflow-y-auto mt-10",children:[y.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-primary/10",children:[y.jsx("h2",{className:"text-2xl font-bold text-primary",children:"Edit Event"}),y.jsx(ct,{onClick:le,variant:"outline",className:"!w-auto !px-2 !py-2",icon:RI})]}),y.jsxs("div",{className:"p-6 space-y-6",children:[y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(Fs,{className:"w-5 h-5"}),"Event Title"]}),y.jsx("input",{type:"text",name:"title",value:T.title,onChange:L,placeholder:"Enter a compelling event title",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",required:!0})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(p_,{className:"w-5 h-5"}),"Event Description"]}),y.jsx("textarea",{name:"description",value:T.description,onChange:L,placeholder:"Describe your event in detail",rows:"4",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200 resize-vertical",required:!0})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(Fs,{className:"w-5 h-5"}),"Event Type"]}),y.jsxs("select",{name:"type",value:T.type,onChange:L,className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",required:!0,children:[y.jsx("option",{value:"",children:"Select event type"}),G$.map(Z=>y.jsx("option",{value:Z,children:Z},Z))]})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(h_,{className:"w-5 h-5"}),"Thumbnail Image URL"]}),y.jsx("input",{type:"url",name:"thumbnail",value:T.thumbnail,onChange:L,placeholder:"https://example.com/image.jpg",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",required:!0}),T.thumbnail&&y.jsxs("div",{className:"mt-3",children:[y.jsx("p",{className:"text-sm text-base-content/60 mb-2",children:"Image Preview:"}),y.jsx("img",{src:T.thumbnail,alt:"Event thumbnail preview",className:"w-32 h-24 object-cover rounded-lg border border-primary/10",onError:Z=>{Z.target.style.display="none"}})]})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(bl,{className:"w-5 h-5"}),"Event Location"]}),y.jsx("input",{type:"text",name:"location",value:T.location,onChange:L,placeholder:"Enter the event location or address",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",required:!0})]}),y.jsxs("div",{children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(es,{className:"w-5 h-5"}),"Event Date"]}),y.jsx("div",{className:"relative",children:y.jsx(tA,{selected:T.date,onChange:R,filterDate:Z=>Z>new Date,minDate:new Date,dateFormat:"MMMM d, yyyy",placeholderText:"Select event date",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",wrapperClassName:"w-full",required:!0})})]})]}),y.jsxs("div",{className:"flex gap-3 p-6 border-t border-primary/10",children:[y.jsx(ct,{onClick:le,variant:"outline",className:"flex-1",children:"Cancel"}),y.jsx(ct,{onClick:F,loading:w,disabled:w,className:"flex-1",icon:TI,children:"Update Event"})]})]})})]})}
1668function X$(e){return/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d@$!%*?&]{6,}$/.test(e)}const Z$=()=>{var D,_;const[e,t]=S.useState({name:"",email:"",photoURL:"",password:""}),[n,r]=S.useState(!1),[i,o]=S.useState(""),{createUser:c,googleSignIn:d,updateUserProfile:f,setUser:h}=hi(),m=Wr(),b=((_=(D=$r().state)==null?void 0:D.from)==null?void 0:_.pathname)||"/",w=k=>{const{name:A,value:V}=k.target;t(L=>({...L,[A]:V}))},x=async k=>{k.preventDefault();const{name:A,email:V,photoURL:L,password:R}=e;if(!A||!V||!R||!L){Ke.fire({icon:"error",title:"Error!",text:"All fields are required"});return}if(!X$(R)){o("Password must be at least 6 characters long and include at least one uppercase letter and one lowercase letter.");return}r(!0);try{const F=(await c(V,R)).user;await f(A,L),h(F),o(""),Ke.fire({icon:"success",title:"Success!",text:"Registration successful!",timer:1500,showConfirmButton:!1}),m(b,{replace:!0})}catch(G){console.error("Error registering:",G),Ke.fire({icon:"error",title:"Error!",text:G.message})}finally{r(!1)}},T=async()=>{try{const A=(await d()).user;h(A),Ke.fire({icon:"success",title:"Success!",text:"Registration successful!",timer:1500,showConfirmButton:!1}),m(b,{replace:!0})}catch(k){console.error("Error signing in with Google:",k),Ke.fire({icon:"error",title:"Error!",text:k.message})}};return y.jsxs("div",{className:"min-h-screen flex bg-primary",children:[y.jsxs("div",{className:"hidden lg:flex w-1/2 bg-gradient-to-br from-secondary to-primary items-center justify-center relative",children:[y.jsx("div",{className:"absolute inset-0 bg-cover bg-center opacity-50",style:{backgroundImage:`url(${fp})`}}),y.jsxs("div",{className:"text-left px-10 max-w-md z-10",children:[" ",y.jsx("h1",{className:"text-primary-content text-5xl font-bold mb-4",children:"Explore your creativity"}),y.jsx("p",{className:"text-primary-content text-lg",children:"Over 1000 courses taught by real creatives. Join our community to learn, share, and grow together."})]})]}),y.jsx("div",{className:"w-full lg:w-1/2 bg-primary flex items-center justify-center px-6 my-20",children:y.jsxs("div",{className:"max-w-md w-full",children:[y.jsx("h2",{className:"text-3xl font-bold text-base-100 mb-2",children:"Sign Up"}),y.jsxs("p",{className:"text-sm text-primary-content/70 mb-6",children:["Already have an account?"," ",y.jsx("a",{href:"/auth/login",className:"text-primary-content font-medium hover:underline",children:"Log In"})]}),y.jsxs("form",{className:"space-y-5",onSubmit:x,children:[y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1 text-primary-content",children:"Full Name"}),y.jsx("input",{type:"text",name:"name",value:e.name,onChange:w,placeholder:"Your name",className:"w-full border border-base-100/70 bg-primary text-primary-content px-4 py-2 rounded-md focus:ring focus:ring-primary/20 focus:border-primary"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1 text-primary-content",children:"Email"}),y.jsx("input",{type:"email",name:"email",value:e.email,onChange:w,placeholder:"Email",className:"w-full border border-base-100/70 bg-primary text-primary-content px-4 py-2 rounded-md focus:ring focus:ring-primary/20 focus:border-primary"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1 text-primary-content",children:"Photo URL"}),y.jsx("input",{type:"text",name:"photoURL",value:e.photoURL,onChange:w,placeholder:"Profile image URL",className:"w-full border border-base-100/70 bg-primary text-primary-content px-4 py-2 rounded-md focus:ring focus:ring-primary/20 focus:border-primary"})]}),y.jsxs("div",{children:[y.jsx("label",{className:"block mb-1 text-primary-content",children:"Password"}),y.jsx("input",{type:"password",name:"password",value:e.password,onChange:w,placeholder:"Must be at least 6 characters",className:"w-full border border-base-100/70 bg-primary text-primary-content px-4 py-2 rounded-md focus:ring focus:ring-primary/20 focus:border-primary mb-3"})]}),i&&y.jsx("div",{className:"alert alert-error rounded-[var(--radius-box)] bg-error/20 text-error border-error/20",children:y.jsx("span",{children:i})}),y.jsx(ct,{type:"submit",className:"bg-base-100! text-primary! hover:bg-base-200! hover:text-primary/90!",loading:n,disabled:n,children:"SIGN UP"}),y.jsxs("div",{className:"flex items-center gap-2 my-4",children:[y.jsx("div",{className:"flex-grow h-px bg-base-300"}),y.jsx("span",{className:"text-primary-content/60 text-sm",children:"or"}),y.jsx("div",{className:"flex-grow h-px bg-base-300"})]}),y.jsxs(ct,{type:"button",variant:"outline",className:"w-full bg-primary text-primary-content hover:bg-primary/90 border border-base-100/70! hover:border-primary-content",onClick:T,disabled:n,children:[y.jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/3/3c/Google_Favicon_2025.svg",alt:"Google",className:"w-5 h-5"}),"Continue with Google"]})]})]})})]})},J$=["Cleanup","Plantation","Donation","Education","Healthcare","Food Drive","Community Building","Environmental","Sports","Cultural","Technology","Volunteer Work","Workshop","Seminar","Other"];function eW(){const{getUpcomingEvents:e,getEventRating:t}=hs(),[n,r]=S.useState([]),[i,o]=S.useState(!0),[c,d]=S.useState(null),[f,h]=S.useState(1),[m,v]=S.useState(0),[b,w]=S.useState({type:"",search:""}),[x,T]=S.useState({}),D=Wr(),_=6,k=Math.ceil(m/_),A=async(B=1,le=b)=>{try{o(!0),d(null);const Z=await e({...le,page:B,limit:_}),ie=Z.data||[];r(ie),v(Z.total||0);const ge=ie.map(async O=>{try{const z=await t(O._id);return{eventId:O._id,rating:z}}catch(z){return console.error(`Failed to fetch rating for event ${O._id}:`,z),{eventId:O._id,rating:{averageRating:0,totalReviews:0}}}}),oe=await Promise.all(ge),ce={};oe.forEach(({eventId:O,rating:z})=>{ce[O]=z}),T(ce)}catch(Z){d("Failed to fetch events. Please try again."),console.error("Error fetching events:",Z)}finally{o(!1)}};S.useEffect(()=>{A(f,b)},[f]);const V=B=>{w(B),h(1),A(1,B)},L=B=>{h(B),window.scrollTo({top:0,behavior:"smooth"})},R=B=>{D(`/events/${B}`)},G=B=>new Date(B).toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),F=B=>new Date(B).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"});return y.jsxs(y.Fragment,{children:[y.jsxs(Ml,{children:[y.jsx("title",{children:"Upcoming Events | Uddyog"}),y.jsx("meta",{name:"description",content:"Discover and join exciting events happening near you. Connect with like-minded people and create memorable experiences."})]}),y.jsx("div",{className:"min-h-screen bg-base-300 pt-24 pb-12",children:y.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[y.jsxs("div",{className:"text-center mb-12",children:[y.jsx("h1",{className:"text-4xl font-bold text-primary mb-4",children:"Upcoming Events"}),y.jsx("p",{className:"text-lg text-base-content/70 max-w-2xl mx-auto",children:"Discover and join exciting events happening near you. Connect with like-minded people and create memorable experiences."})]}),y.jsx("div",{className:"bg-base-100 rounded-2xl shadow-lg border border-primary/10 p-6 mb-8",children:y.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[y.jsxs("div",{className:"flex-1",children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(DI,{className:"w-5 h-5"}),"Search Events"]}),y.jsx("input",{type:"text",placeholder:"Search by event title...",className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",value:b.search,onChange:B=>V({...b,search:B.target.value})})]}),y.jsxs("div",{className:"md:w-48",children:[y.jsxs("label",{className:"flex items-center gap-2 text-primary font-semibold mb-3",children:[y.jsx(es,{className:"h-5 w-5"}),"Event Type"]}),y.jsxs("select",{className:"w-full border border-primary/20 bg-base-100 text-base-content px-4 py-3 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-200",value:b.type,onCh
1668ange:B=>V({...b,type:B.target.value}),children:[y.jsx("option",{value:"",children:"All Types"}),J$.map(B=>y.jsx("option",{value:B,children:B},B))]})]})]})}),i&&y.jsx("div",{className:"flex justify-center items-center py-12",children:y.jsx(fs,{})}),c&&y.jsx("div",{className:"bg-error/10 border border-error/20 rounded-lg p-6 mb-8",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"text-error",children:y.jsx(op,{className:"size-6"})}),y.jsxs("div",{children:[y.jsx("h3",{className:"text-error font-medium",children:"Error"}),y.jsx("p",{className:"text-base-content/70 mt-1",children:c}),y.jsx(ct,{onClick:()=>A(f),variant:"danger",className:"max-w-fit mt-3 text-white",children:"Try Again"})]})]})}),!i&&!c&&y.jsx(y.Fragment,{children:n.length===0?y.jsxs("div",{className:"text-center py-12",children:[y.jsx("div",{className:"mx-auto h-24 w-24 mb-4",children:y.jsx(es,{className:"w-full h-full opacity-20"})}),y.jsx("h3",{className:"text-lg font-medium text-base-content mb-2",children:"No upcoming events found"}),y.jsx("p",{className:"text-base-content/70",children:b.search||b.type?"Try adjusting your search filters":"Check back later for new events"})]}):y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-8",children:n.map(B=>{var le,Z;return y.jsxs("div",{className:"bg-base-100 rounded-2xl shadow-lg border border-primary/10 overflow-hidden hover:shadow-xl hover:scale-105 transition-all duration-300",children:[y.jsxs("div",{className:"h-48 bg-base-200",children:[B.thumbnail?y.jsx("img",{src:B.thumbnail,alt:B.title,className:"w-full h-full object-cover",onError:ie=>{ie.target.style.display="none",ie.target.nextSibling.style.display="flex"}}):null,y.jsx("div",{className:`w-full h-full bg-gradient-to-br from-primary/60 to-secondary/60 flex items-center justify-center ${B.thumbnail?"hidden":"flex"}`,children:y.jsx("span",{className:"text-base-100 text-xl font-semibold",children:((le=B.title)==null?void 0:le.charAt(0))||"E"})})]}),y.jsxs("div",{className:"p-4",children:[y.jsx("div",{className:"mb-3",children:y.jsx("span",{className:"inline-block bg-primary/10 text-primary text-xs px-2 py-1 rounded-full font-semibold uppercase tracking-wide",children:B.type||"Event"})}),y.jsx("h3",{className:"text-lg font-semibold text-base-content mb-3 line-clamp-2",children:B.title}),y.jsxs("div",{className:"flex items-center text-base-content/70 mb-2",children:[y.jsx(bl,{className:"w-4 h-4 mr-2 text-primary"}),y.jsx("span",{className:"text-sm truncate",children:B.location})]}),y.jsxs("div",{className:"flex items-center text-base-content/70 mb-3",children:[y.jsx(es,{className:"w-4 h-4 mr-2 text-primary"}),y.jsxs("div",{className:"text-sm",children:[y.jsx("div",{children:G(B.date)}),y.jsx("div",{className:"text-xs text-base-content/50",children:F(B.date)})]})]}),y.jsxs("div",{className:"flex items-center text-base-content/70 mb-3",children:[y.jsx(Hh,{className:"w-4 h-4 mr-2 text-primary"}),y.jsxs("span",{className:"text-sm",children:[((Z=B.joinedUsers)==null?void 0:Z.length)||0," joined"]})]}),x[B._id]&&x[B._id].totalReviews>0&&y.jsx("div",{className:"mb-4",children:y.jsx(lp,{rating:x[B._id].averageRating,size:"text-sm",showText:!0})}),y.jsx(ct,{onClick:()=>R(B._id),children:"View Event"})]})]},B._id)})}),k>1&&y.jsxs("div",{className:"flex justify-center items-center space-x-2",children:[y.jsx(ct,{onClick:()=>L(f-1),disabled:f===1,variant:"outline",className:"!w-auto",children:"Previous"}),[...Array(k)].map((B,le)=>{const Z=le+1,ie=Z===f;return Z===1||Z===k||Math.abs(Z-f)<=2?y.jsx(ct,{onClick:()=>L(Z),variant:ie?"primary":"outline",className:"!w-auto",children:Z},Z):Z===f-3||Z===f+3?y.jsx("span",{className:"px-2 text-base-content/50",children:"..."},Z):null}),y.jsx(ct,{onClick:()=>L(f+1),disabled:f===k,variant:"outline",className:"!w-auto",children:"Next"})]}),y.jsxs("div",{className:"text-center mt-6 text-base-content/70",children:["Showing ",n.length," of ",m," events"]})]})})]})})]})}function Sf({children:e}){const{user:t,loading:n}=hi(),r=$r();return n?y.jsx(fs,{}):t?y.jsx(_v,{children:e}):y.jsx(DP,{to:"/auth/login",state:{from:r},replace:!0})}const tW=QP([{path:"/",element:y.jsx(yU,{}),children:[{index:!0,element:y.jsx(z$,{})},{path:"images",element:y.jsx($$,{})},{path:"upcoming",element:y.jsx(eW,{})},{path:"create",element:y.jsx(Sf,{children:y.jsx(H7,{})}),hydrateFallbackElement:y.jsx(fs,{})},{path:"manage",element:y.jsx(Sf,{children:y.jsx(Q$,{})})},{path:"joined",element:y.jsx(Sf,{children:y.jsx(W$,{})})},{path:"events/:id",element:y.jsx(Sf,{children:y.jsx(G7,{})})}]},{path:"/auth",element:y.jsx(mU,{}),children:[{path:"login",element:y.jsx(K$,{})},{path:"register",element:y.jsx(Z$,{})}]},{path:"*",element:y.jsx(z7,{})}]);AN.createRoot(document.getElementById("root")).render(y.jsx(S.StrictMode,{children:y.jsx(_v,{children:y.jsx(fI,{children:y.jsx(EP,{router:tW})})})}));
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.