Files
myskin-fe/assets/index-DZfOfg4Q.js
T
2026-07-16 10:01:11 +07:00

431 lines
660 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var $y=e=>{throw TypeError(e)};var ph=(e,n,a)=>n.has(e)||$y("Cannot "+a);var M=(e,n,a)=>(ph(e,n,"read from private field"),a?a.call(e):n.get(e)),Ae=(e,n,a)=>n.has(e)?$y("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),he=(e,n,a,r)=>(ph(e,n,"write to private field"),r?r.call(e,a):n.set(e,a),a),Ue=(e,n,a)=>(ph(e,n,"access private method"),a);var Ku=(e,n,a,r)=>({set _(o){he(e,n,o,a)},get _(){return M(e,n,r)}});(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();function zc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yh={exports:{}},to={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Yy;function FS(){if(Yy)return to;Yy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(r,o,u){var f=null;if(u!==void 0&&(f=""+u),o.key!==void 0&&(f=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:e,type:r,key:f,ref:o!==void 0?o:null,props:u}}return to.Fragment=n,to.jsx=a,to.jsxs=a,to}var Xy;function PS(){return Xy||(Xy=1,yh.exports=FS()),yh.exports}var d=PS(),vh={exports:{}},Le={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ky;function VS(){if(Ky)return Le;Ky=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function b(N){return N===null||typeof N!="object"?null:(N=v&&N[v]||N["@@iterator"],typeof N=="function"?N:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function C(N,X,oe){this.props=N,this.context=X,this.refs=E,this.updater=oe||x}C.prototype.isReactComponent={},C.prototype.setState=function(N,X){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,X,"setState")},C.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function k(){}k.prototype=C.prototype;function z(N,X,oe){this.props=N,this.context=X,this.refs=E,this.updater=oe||x}var _=z.prototype=new k;_.constructor=z,S(_,C.prototype),_.isPureReactComponent=!0;var Z=Array.isArray,R={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ce(N,X,oe,ue,se,Se){return oe=Se.ref,{$$typeof:e,type:N,key:X,ref:oe!==void 0?oe:null,props:Se}}function re(N,X){return ce(N.type,X,void 0,void 0,void 0,N.props)}function Q(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function ne(N){var X={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(oe){return X[oe]})}var fe=/\/+/g;function Ge(N,X){return typeof N=="object"&&N!==null&&N.key!=null?ne(""+N.key):X.toString(36)}function Xe(){}function te(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(Xe,Xe):(N.status="pending",N.then(function(X){N.status==="pending"&&(N.status="fulfilled",N.value=X)},function(X){N.status==="pending"&&(N.status="rejected",N.reason=X)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function P(N,X,oe,ue,se){var Se=typeof N;(Se==="undefined"||Se==="boolean")&&(N=null);var ke=!1;if(N===null)ke=!0;else switch(Se){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(N.$$typeof){case e:case n:ke=!0;break;case y:return ke=N._init,P(ke(N._payload),X,oe,ue,se)}}if(ke)return se=se(N),ke=ue===""?"."+Ge(N,0):ue,Z(se)?(oe="",ke!=null&&(oe=ke.replace(fe,"$&/")+"/"),P(se,X,oe,"",function(Oe){return Oe})):se!=null&&(Q(se)&&(se=re(se,oe+(se.key==null||N&&N.key===se.key?"":(""+se.key).replace(fe,"$&/")+"/")+ke)),X.push(se)),1;ke=0;var ht=ue===""?".":ue+":";if(Z(N))for(var Fe=0;Fe<N.length;Fe++)ue=N[Fe],Se=ht+Ge(ue,Fe),ke+=P(ue,X,oe,Se,se);else if(Fe=b(N),typeof Fe=="function")for(N=Fe.call(N),Fe=0;!(ue=N.next()).done;)ue=ue.value,Se=ht+Ge(ue,Fe++),ke+=P(ue,X,oe,Se,se);else if(Se==="object"){if(typeof N.then=="function")return P(te(N),X,oe,ue,se);throw X=String(N),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ke}function L(N,X,oe){if(N==null)return N;var ue=[],se=0;return P(N,ue,"","",function(Se){return X.call(oe,Se,se++)}),ue}function F(N){if(N._status===-1){var X=N._result;X=X(),X.then(function(oe){(N._status===0||N._status===-1)&&(N._status=1,N._result=oe)},function(oe){(N._status===0||N._status===-1)&&(N._status=2,N._result=oe)}),N._status===-1&&(N._status=0,N._result=X)}if(N._status===1)return N._result.default;throw N._result}var G=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function le(){}return Le.Children={map:L,forEach:function(N,X,oe){L(N,function(){X.apply(this,arguments)},oe)},count:function(N){var X=0;return L(N,function(){X++}),X},toArray:function(N){return L(N,function(X){return X})||[]},only:function(N){if(!Q(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Le.Component=C,Le.Fragment=a,Le.Profiler=o,Le.PureComponent=z,Le.StrictMode=r,Le.Suspense=p,Le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Le.act=function(){throw Error("act(...) is not supported in production builds of React.")},Le.cache=function(N){return function(){return N.apply(null,arguments)}},Le.cloneElement=function(N,X,oe){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ue=S({},N.props),se=N.key,Se=void 0;if(X!=null)for(ke in X.ref!==void 0&&(Se=void 0),X.key!==void 0&&(se=""+X.key),X)!W.call(X,ke)||ke==="key"||ke==="__self"||ke==="__source"||ke==="ref"&&X.ref===void 0||(ue[ke]=X[ke]);var ke=arguments.length-2;if(ke===1)ue.children=oe;else if(1<ke){for(var ht=Array(ke),Fe=0;Fe<ke;Fe++)ht[Fe]=arguments[Fe+2];ue.children=ht}return ce(N.type,se,void 0,void 0,Se,ue)},Le.createContext=function(N){return N={$$typeof:f,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},Le.createElement=function(N,X,oe){var ue,se={},Se=null;if(X!=null)for(ue in X.key!==void 0&&(Se=""+X.key),X)W.call(X,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(se[ue]=X[ue]);var ke=arguments.length-2;if(ke===1)se.children=oe;else if(1<ke){for(var ht=Array(ke),Fe=0;Fe<ke;Fe++)ht[Fe]=arguments[Fe+2];se.children=ht}if(N&&N.defaultProps)for(ue in ke=N.defaultProps,ke)se[ue]===void 0&&(se[ue]=ke[ue]);return ce(N,Se,void 0,void 0,null,se)},Le.createRef=function(){return{current:null}},Le.forwardRef=function(N){return{$$typeof:m,render:N}},Le.isValidElement=Q,Le.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:F}},Le.memo=function(N,X){return{$$typeof:g,type:N,compare:X===void 0?null:X}},Le.startTransition=function(N){var X=R.T,oe={};R.T=oe;try{var ue=N(),se=R.S;se!==null&&se(oe,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(le,G)}catch(Se){G(Se)}finally{R.T=X}},Le.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Le.use=function(N){return R.H.use(N)},Le.useActionState=function(N,X,oe){return R.H.useActionState(N,X,oe)},Le.useCallback=function(N,X){return R.H.useCallback(N,X)},Le.useContext=function(N){return R.H.useContext(N)},Le.useDebugValue=function(){},Le.useDeferredValue=function(N,X){return R.H.useDeferredValue(N,X)},Le.useEffect=function(N,X){return R.H.useEffect(N,X)},Le.useId=function(){return R.H.useId()},Le.useImperativeHandle=function(N,X,oe){return R.H.useImperativeHandle(N,X,oe)},Le.useInsertionEffect=function(N,X){return R.H.useInsertionEffect(N,X)},Le.useLayoutEffect=function(N,X){return R.H.useLayoutEffect(N,X)},Le.useMemo=function(N,X){return R.H.useMemo(N,X)},Le.useOptimistic=function(N,X){return R.H.useOptimistic(N,X)},Le.useReducer=function(N,X,oe){return R.H.useReducer(N,X,oe)},Le.useRef=function(N){return R.H.useRef(N)},Le.useState=function(N){return R.H.useState(N)},Le.useSyncExternalStore=function(N,X,oe){return R.H.useSyncExternalStore(N,X,oe)},Le.useTransition=function(){return R.H.useTransition()},Le.version="19.0.0",Le}var Zy;function Lm(){return Zy||(Zy=1,vh.exports=VS()),vh.exports}var j=Lm();const Yi=zc(j);var wh={exports:{}},no={},bh={exports:{}},xh={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Jy;function IS(){return Jy||(Jy=1,function(e){function n(L,F){var G=L.length;L.push(F);e:for(;0<G;){var le=G-1>>>1,N=L[le];if(0<o(N,F))L[le]=F,L[G]=N,G=le;else break e}}function a(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var F=L[0],G=L.pop();if(G!==F){L[0]=G;e:for(var le=0,N=L.length,X=N>>>1;le<X;){var oe=2*(le+1)-1,ue=L[oe],se=oe+1,Se=L[se];if(0>o(ue,G))se<N&&0>o(Se,ue)?(L[le]=Se,L[se]=G,le=se):(L[le]=ue,L[oe]=G,le=oe);else if(se<N&&0>o(Se,G))L[le]=Se,L[se]=G,le=se;else break e}}return F}function o(L,F){var G=L.sortIndex-F.sortIndex;return G!==0?G:L.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,m=f.now();e.unstable_now=function(){return f.now()-m}}var p=[],g=[],y=1,v=null,b=3,x=!1,S=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function _(L){for(var F=a(g);F!==null;){if(F.callback===null)r(g);else if(F.startTime<=L)r(g),F.sortIndex=F.expirationTime,n(p,F);else break;F=a(g)}}function Z(L){if(E=!1,_(L),!S)if(a(p)!==null)S=!0,te();else{var F=a(g);F!==null&&P(Z,F.startTime-L)}}var R=!1,W=-1,ce=5,re=-1;function Q(){return!(e.unstable_now()-re<ce)}function ne(){if(R){var L=e.unstable_now();re=L;var F=!0;try{e:{S=!1,E&&(E=!1,k(W),W=-1),x=!0;var G=b;try{t:{for(_(L),v=a(p);v!==null&&!(v.expirationTime>L&&Q());){var le=v.callback;if(typeof le=="function"){v.callback=null,b=v.priorityLevel;var N=le(v.expirationTime<=L);if(L=e.unstable_now(),typeof N=="function"){v.callback=N,_(L),F=!0;break t}v===a(p)&&r(p),_(L)}else r(p);v=a(p)}if(v!==null)F=!0;else{var X=a(g);X!==null&&P(Z,X.startTime-L),F=!1}}break e}finally{v=null,b=G,x=!1}F=void 0}}finally{F?fe():R=!1}}}var fe;if(typeof z=="function")fe=function(){z(ne)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,Xe=Ge.port2;Ge.port1.onmessage=ne,fe=function(){Xe.postMessage(null)}}else fe=function(){C(ne,0)};function te(){R||(R=!0,fe())}function P(L,F){W=C(function(){L(e.unstable_now())},F)}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(L){L.callback=null},e.unstable_continueExecution=function(){S||x||(S=!0,te())},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return a(p)},e.unstable_next=function(L){switch(b){case 1:case 2:case 3:var F=3;break;default:F=b}var G=b;b=F;try{return L()}finally{b=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,F){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var G=b;b=L;try{return F()}finally{b=G}},e.unstable_scheduleCallback=function(L,F,G){var le=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?le+G:le):G=le,L){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=G+N,L={id:y++,callback:F,priorityLevel:L,startTime:G,expirationTime:N,sortIndex:-1},G>le?(L.sortIndex=G,n(g,L),a(p)===null&&L===a(g)&&(E?(k(W),W=-1):E=!0,P(Z,G-le))):(L.sortIndex=N,n(p,L),S||x||(S=!0,te())),L},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(L){var F=b;return function(){var G=b;b=F;try{return L.apply(this,arguments)}finally{b=G}}}}(xh)),xh}var Wy;function qS(){return Wy||(Wy=1,bh.exports=IS()),bh.exports}var Sh={exports:{}},Wt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ev;function QS(){if(ev)return Wt;ev=1;var e=Lm();function n(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(p,g,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:p,containerInfo:g,implementation:y}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Wt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return u(p,g,null,y)},Wt.flushSync=function(p){var g=f.T,y=r.p;try{if(f.T=null,r.p=2,p)return p()}finally{f.T=g,r.p=y,r.d.f()}},Wt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(p,g))},Wt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Wt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,v=m(y,g.crossOrigin),b=typeof g.integrity=="string"?g.integrity:void 0,x=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?r.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:x}):y==="script"&&r.d.X(p,{crossOrigin:v,integrity:b,fetchPriority:x,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Wt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);r.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(p)},Wt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,v=m(y,g.crossOrigin);r.d.L(p,y,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Wt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);r.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(p)},Wt.requestFormReset=function(p){r.d.r(p)},Wt.unstable_batchedUpdates=function(p,g){return p(g)},Wt.useFormState=function(p,g,y){return f.H.useFormState(p,g,y)},Wt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Wt.version="19.0.0",Wt}var tv;function Fw(){if(tv)return Sh.exports;tv=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(n){console.error(n)}}return e(),Sh.exports=QS(),Sh.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var nv;function GS(){if(nv)return no;nv=1;var e=qS(),n=Lm(),a=Fw();function r(t){var i="https://react.dev/errors/"+t;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var u=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),Z=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function W(t){return t===null||typeof t!="object"?null:(t=R&&t[R]||t["@@iterator"],typeof t=="function"?t:null)}var ce=Symbol.for("react.client.reference");function re(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ce?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case p:return"Fragment";case m:return"Portal";case y:return"Profiler";case g:return"StrictMode";case E:return"Suspense";case C:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case x:return(t.displayName||"Context")+".Provider";case b:return(t._context.displayName||"Context")+".Consumer";case S:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return i=t.displayName||null,i!==null?i:re(t.type)||"Memo";case z:i=t._payload,t=t._init;try{return re(t(i))}catch{}}return null}var Q=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=Object.assign,fe,Ge;function Xe(t){if(fe===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);fe=i&&i[1]||"",Ge=-1<s.stack.indexOf(`
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+fe+t+Ge}var te=!1;function P(t,i){if(!t||te)return"";te=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(K){var I=K}Reflect.construct(t,[],ae)}else{try{ae.call()}catch(K){I=K}t.call(ae.prototype)}}else{try{throw Error()}catch(K){I=K}(ae=t())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(K){if(K&&I&&typeof K.stack=="string")return[K.stack,I.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),w=h[0],A=h[1];if(w&&A){var T=w.split(`
`),B=A.split(`
`);for(c=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;c<B.length&&!B[c].includes("DetermineComponentFrameRoot");)c++;if(l===T.length||c===B.length)for(l=T.length-1,c=B.length-1;1<=l&&0<=c&&T[l]!==B[c];)c--;for(;1<=l&&0<=c;l--,c--)if(T[l]!==B[c]){if(l!==1||c!==1)do if(l--,c--,0>c||T[l]!==B[c]){var J=`
`+T[l].replace(" at new "," at ");return t.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",t.displayName)),J}while(1<=l&&0<=c);break}}}finally{te=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?Xe(s):""}function L(t){switch(t.tag){case 26:case 27:case 5:return Xe(t.type);case 16:return Xe("Lazy");case 13:return Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return t=P(t.type,!1),t;case 11:return t=P(t.type.render,!1),t;case 1:return t=P(t.type,!0),t;default:return""}}function F(t){try{var i="";do i+=L(t),t=t.return;while(t);return i}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}function G(t){var i=t,s=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(s=i.return),t=i.return;while(t)}return i.tag===3?s:null}function le(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function N(t){if(G(t)!==t)throw Error(r(188))}function X(t){var i=t.alternate;if(!i){if(i=G(t),i===null)throw Error(r(188));return i!==t?null:t}for(var s=t,l=i;;){var c=s.return;if(c===null)break;var h=c.alternate;if(h===null){if(l=c.return,l!==null){s=l;continue}break}if(c.child===h.child){for(h=c.child;h;){if(h===s)return N(c),t;if(h===l)return N(c),i;h=h.sibling}throw Error(r(188))}if(s.return!==l.return)s=c,l=h;else{for(var w=!1,A=c.child;A;){if(A===s){w=!0,s=c,l=h;break}if(A===l){w=!0,l=c,s=h;break}A=A.sibling}if(!w){for(A=h.child;A;){if(A===s){w=!0,s=h,l=c;break}if(A===l){w=!0,l=h,s=c;break}A=A.sibling}if(!w)throw Error(r(189))}}if(s.alternate!==l)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:i}function oe(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=oe(t),i!==null)return i;t=t.sibling}return null}var ue=Array.isArray,se=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Se={pending:!1,data:null,method:null,action:null},ke=[],ht=-1;function Fe(t){return{current:t}}function Oe(t){0>ht||(t.current=ke[ht],ke[ht]=null,ht--)}function De(t,i){ht++,ke[ht]=t.current,t.current=i}var wt=Fe(null),xn=Fe(null),Rt=Fe(null),$r=Fe(null);function Yr(t,i){switch(De(Rt,i),De(xn,t),De(wt,null),t=i.nodeType,t){case 9:case 11:i=(i=i.documentElement)&&(i=i.namespaceURI)?Sy(i):0;break;default:if(t=t===8?i.parentNode:i,i=t.tagName,t=t.namespaceURI)t=Sy(t),i=Ay(t,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}Oe(wt),De(wt,i)}function Oa(){Oe(wt),Oe(xn),Oe(Rt)}function rl(t){t.memoizedState!==null&&De($r,t);var i=wt.current,s=Ay(i,t.type);i!==s&&(De(xn,t),De(wt,s))}function Xr(t){xn.current===t&&(Oe(wt),Oe(xn)),$r.current===t&&(Oe($r),Kl._currentValue=Se)}var sl=Object.prototype.hasOwnProperty,ll=e.unstable_scheduleCallback,ia=e.unstable_cancelCallback,tr=e.unstable_shouldYield,Uo=e.unstable_requestPaint,hn=e.unstable_now,ya=e.unstable_getCurrentPriorityLevel,Bn=e.unstable_ImmediatePriority,ol=e.unstable_UserBlockingPriority,oi=e.unstable_NormalPriority,cd=e.unstable_LowPriority,ra=e.unstable_IdlePriority,Ho=e.log,Fo=e.unstable_setDisableYieldValue,ui=null,rn=null;function Po(t){if(rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(ui,t,void 0,(t.current.flags&128)===128)}catch{}}function Sn(t){if(typeof Ho=="function"&&Fo(t),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(ui,t)}catch{}}var Zt=Math.clz32?Math.clz32:Vo,ul=Math.log,dd=Math.LN2;function Vo(t){return t>>>=0,t===0?32:31-(ul(t)/dd|0)|0}var Kr=128,nr=4194304;function zn(t){var i=t&42;if(i!==0)return i;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function _a(t,i){var s=t.pendingLanes;if(s===0)return 0;var l=0,c=t.suspendedLanes,h=t.pingedLanes,w=t.warmLanes;t=t.finishedLanes!==0;var A=s&134217727;return A!==0?(s=A&~c,s!==0?l=zn(s):(h&=A,h!==0?l=zn(h):t||(w=A&~w,w!==0&&(l=zn(w))))):(A=s&~c,A!==0?l=zn(A):h!==0?l=zn(h):t||(w=s&~w,w!==0&&(l=zn(w)))),l===0?0:i!==0&&i!==l&&(i&c)===0&&(c=l&-l,w=i&-i,c>=w||c===32&&(w&4194176)!==0)?i:l}function ar(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function fd(t,i){switch(t){case 1:case 2:case 4:case 8:return i+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+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 D(){var t=Kr;return Kr<<=1,(Kr&4194176)===0&&(Kr=128),t}function H(){var t=nr;return nr<<=1,(nr&62914560)===0&&(nr=4194304),t}function q(t){for(var i=[],s=0;31>s;s++)i.push(t);return i}function ie(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function de(t,i,s,l,c,h){var w=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var A=t.entanglements,T=t.expirationTimes,B=t.hiddenUpdates;for(s=w&~s;0<s;){var J=31-Zt(s),ae=1<<J;A[J]=0,T[J]=-1;var I=B[J];if(I!==null)for(B[J]=null,J=0;J<I.length;J++){var K=I[J];K!==null&&(K.lane&=-536870913)}s&=~ae}l!==0&&je(t,l,0),h!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=h&~(w&~i))}function je(t,i,s){t.pendingLanes|=i,t.suspendedLanes&=~i;var l=31-Zt(i);t.entangledLanes|=i,t.entanglements[l]=t.entanglements[l]|1073741824|s&4194218}function Ce(t,i){var s=t.entangledLanes|=i;for(t=t.entanglements;s;){var l=31-Zt(s),c=1<<l;c&i|t[l]&i&&(t[l]|=i),s&=~c}}function ve(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function be(){var t=se.p;return t!==0?t:(t=window.event,t===void 0?32:Py(t.type))}function me(t,i){var s=se.p;try{return se.p=t,i()}finally{se.p=s}}var ge=Math.random().toString(36).slice(2),pe="__reactFiber$"+ge,Me="__reactProps$"+ge,tt="__reactContainer$"+ge,Dt="__reactEvents$"+ge,bt="__reactListeners$"+ge,mt="__reactHandles$"+ge,xt="__reactResources$"+ge,Ln="__reactMarker$"+ge;function Ba(t){delete t[pe],delete t[Me],delete t[Dt],delete t[bt],delete t[mt]}function Qt(t){var i=t[pe];if(i)return i;for(var s=t.parentNode;s;){if(i=s[tt]||s[pe]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(t=jy(t);t!==null;){if(s=t[pe])return s;t=jy(t)}return i}t=s,s=t.parentNode}return null}function Gt(t){if(t=t[pe]||t[tt]){var i=t.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return t}return null}function za(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t.stateNode;throw Error(r(33))}function Un(t){var i=t[xt];return i||(i=t[xt]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function lt(t){t[Ln]=!0}var ir=new Set,rr={};function $e(t,i){gt(t,i),gt(t+"Capture",i)}function gt(t,i){for(rr[t]=i,t=0;t<i.length;t++)ir.add(i[t])}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sr=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]*$"),pt={},La={};function Io(t){return sl.call(La,t)?!0:sl.call(pt,t)?!1:sr.test(t)?La[t]=!0:(pt[t]=!0,!1)}function Zr(t,i,s){if(Io(i))if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+s)}}function qo(t,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+s)}}function Ua(t,i,s,l){if(l===null)t.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(i,s,""+l)}}function Hn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Eg(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function B2(t){var i=Eg(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,i),l=""+t[i];if(!t.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,h=s.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return c.call(this)},set:function(w){l=""+w,h.call(this,w)}}),Object.defineProperty(t,i,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Qo(t){t._valueTracker||(t._valueTracker=B2(t))}function jg(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Eg(t)?t.checked?"true":"false":t.value),t=l,t!==s?(i.setValue(t),!0):!1}function Go(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var z2=/[\n"\\]/g;function Fn(t){return t.replace(z2,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function hd(t,i,s,l,c,h,w,A){t.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.type=w:t.removeAttribute("type"),i!=null?w==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+Hn(i)):t.value!==""+Hn(i)&&(t.value=""+Hn(i)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),i!=null?md(t,w,Hn(i)):s!=null?md(t,w,Hn(s)):l!=null&&t.removeAttribute("value"),c==null&&h!=null&&(t.defaultChecked=!!h),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.name=""+Hn(A):t.removeAttribute("name")}function Rg(t,i,s,l,c,h,w,A){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.type=h),i!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||i!=null))return;s=s!=null?""+Hn(s):"",i=i!=null?""+Hn(i):s,A||i===t.value||(t.value=i),t.defaultValue=i}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=A?t.checked:!!l,t.defaultChecked=!!l,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(t.name=w)}function md(t,i,s){i==="number"&&Go(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function Jr(t,i,s,l){if(t=t.options,i){i={};for(var c=0;c<s.length;c++)i["$"+s[c]]=!0;for(s=0;s<t.length;s++)c=i.hasOwnProperty("$"+t[s].value),t[s].selected!==c&&(t[s].selected=c),c&&l&&(t[s].defaultSelected=!0)}else{for(s=""+Hn(s),i=null,c=0;c<t.length;c++){if(t[c].value===s){t[c].selected=!0,l&&(t[c].defaultSelected=!0);return}i!==null||t[c].disabled||(i=t[c])}i!==null&&(i.selected=!0)}}function Ng(t,i,s){if(i!=null&&(i=""+Hn(i),i!==t.value&&(t.value=i),s==null)){t.defaultValue!==i&&(t.defaultValue=i);return}t.defaultValue=s!=null?""+Hn(s):""}function Tg(t,i,s,l){if(i==null){if(l!=null){if(s!=null)throw Error(r(92));if(ue(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),i=s}s=Hn(i),t.defaultValue=s,l=t.textContent,l===s&&l!==""&&l!==null&&(t.value=l)}function Wr(t,i){if(i){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=i;return}}t.textContent=i}var L2=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 kg(t,i,s){var l=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="":l?t.setProperty(i,s):typeof s!="number"||s===0||L2.has(i)?i==="float"?t.cssFloat=s:t[i]=(""+s).trim():t[i]=s+"px"}function Mg(t,i,s){if(i!=null&&typeof i!="object")throw Error(r(62));if(t=t.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var c in i)l=i[c],i.hasOwnProperty(c)&&s[c]!==l&&kg(t,c,l)}else for(var h in i)i.hasOwnProperty(h)&&kg(t,h,i[h])}function gd(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var U2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),H2=/^[\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 $o(t){return H2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var pd=null;function yd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var es=null,ts=null;function Dg(t){var i=Gt(t);if(i&&(t=i.stateNode)){var s=t[Me]||null;e:switch(t=i.stateNode,i.type){case"input":if(hd(t,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Fn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var l=s[i];if(l!==t&&l.form===t.form){var c=l[Me]||null;if(!c)throw Error(r(90));hd(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(i=0;i<s.length;i++)l=s[i],l.form===t.form&&jg(l)}break e;case"textarea":Ng(t,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&Jr(t,!!s.multiple,i,!1)}}}var vd=!1;function Og(t,i,s){if(vd)return t(i,s);vd=!0;try{var l=t(i);return l}finally{if(vd=!1,(es!==null||ts!==null)&&(ku(),es&&(i=es,t=ts,ts=es=null,Dg(i),t)))for(i=0;i<t.length;i++)Dg(t[i])}}function cl(t,i){var s=t.stateNode;if(s===null)return null;var l=s[Me]||null;if(l===null)return null;s=l[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var wd=!1;if(mn)try{var dl={};Object.defineProperty(dl,"passive",{get:function(){wd=!0}}),window.addEventListener("test",dl,dl),window.removeEventListener("test",dl,dl)}catch{wd=!1}var ci=null,bd=null,Yo=null;function _g(){if(Yo)return Yo;var t,i=bd,s=i.length,l,c="value"in ci?ci.value:ci.textContent,h=c.length;for(t=0;t<s&&i[t]===c[t];t++);var w=s-t;for(l=1;l<=w&&i[s-l]===c[h-l];l++);return Yo=c.slice(t,1<l?1-l:void 0)}function Xo(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function Ko(){return!0}function Bg(){return!1}function gn(t){function i(s,l,c,h,w){this._reactName=s,this._targetInst=c,this.type=l,this.nativeEvent=h,this.target=w,this.currentTarget=null;for(var A in t)t.hasOwnProperty(A)&&(s=t[A],this[A]=s?s(h):h[A]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Ko:Bg,this.isPropagationStopped=Bg,this}return ne(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ko)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ko)},persist:function(){},isPersistent:Ko}),i}var lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zo=gn(lr),fl=ne({},lr,{view:0,detail:0}),F2=gn(fl),xd,Sd,hl,Jo=ne({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cd,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==hl&&(hl&&t.type==="mousemove"?(xd=t.screenX-hl.screenX,Sd=t.screenY-hl.screenY):Sd=xd=0,hl=t),xd)},movementY:function(t){return"movementY"in t?t.movementY:Sd}}),zg=gn(Jo),P2=ne({},Jo,{dataTransfer:0}),V2=gn(P2),I2=ne({},fl,{relatedTarget:0}),Ad=gn(I2),q2=ne({},lr,{animationName:0,elapsedTime:0,pseudoElement:0}),Q2=gn(q2),G2=ne({},lr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$2=gn(G2),Y2=ne({},lr,{data:0}),Lg=gn(Y2),X2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K2={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"},Z2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J2(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=Z2[t])?!!i[t]:!1}function Cd(){return J2}var W2=ne({},fl,{key:function(t){if(t.key){var i=X2[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=Xo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?K2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cd,charCode:function(t){return t.type==="keypress"?Xo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Xo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),e1=gn(W2),t1=ne({},Jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ug=gn(t1),n1=ne({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cd}),a1=gn(n1),i1=ne({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),r1=gn(i1),s1=ne({},Jo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),l1=gn(s1),o1=ne({},lr,{newState:0,oldState:0}),u1=gn(o1),c1=[9,13,27,32],Ed=mn&&"CompositionEvent"in window,ml=null;mn&&"documentMode"in document&&(ml=document.documentMode);var d1=mn&&"TextEvent"in window&&!ml,Hg=mn&&(!Ed||ml&&8<ml&&11>=ml),Fg=" ",Pg=!1;function Vg(t,i){switch(t){case"keyup":return c1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ig(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ns=!1;function f1(t,i){switch(t){case"compositionend":return Ig(i);case"keypress":return i.which!==32?null:(Pg=!0,Fg);case"textInput":return t=i.data,t===Fg&&Pg?null:t;default:return null}}function h1(t,i){if(ns)return t==="compositionend"||!Ed&&Vg(t,i)?(t=_g(),Yo=bd=ci=null,ns=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Hg&&i.locale!=="ko"?null:i.data;default:return null}}var m1={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 qg(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!m1[t.type]:i==="textarea"}function Qg(t,i,s,l){es?ts?ts.push(l):ts=[l]:es=l,i=Bu(i,"onChange"),0<i.length&&(s=new Zo("onChange","change",null,s,l),t.push({event:s,listeners:i}))}var gl=null,pl=null;function g1(t){yy(t,0)}function Wo(t){var i=za(t);if(jg(i))return t}function Gg(t,i){if(t==="change")return i}var $g=!1;if(mn){var jd;if(mn){var Rd="oninput"in document;if(!Rd){var Yg=document.createElement("div");Yg.setAttribute("oninput","return;"),Rd=typeof Yg.oninput=="function"}jd=Rd}else jd=!1;$g=jd&&(!document.documentMode||9<document.documentMode)}function Xg(){gl&&(gl.detachEvent("onpropertychange",Kg),pl=gl=null)}function Kg(t){if(t.propertyName==="value"&&Wo(pl)){var i=[];Qg(i,pl,t,yd(t)),Og(g1,i)}}function p1(t,i,s){t==="focusin"?(Xg(),gl=i,pl=s,gl.attachEvent("onpropertychange",Kg)):t==="focusout"&&Xg()}function y1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wo(pl)}function v1(t,i){if(t==="click")return Wo(i)}function w1(t,i){if(t==="input"||t==="change")return Wo(i)}function b1(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var An=typeof Object.is=="function"?Object.is:b1;function yl(t,i){if(An(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var s=Object.keys(t),l=Object.keys(i);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var c=s[l];if(!sl.call(i,c)||!An(t[c],i[c]))return!1}return!0}function Zg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Jg(t,i){var s=Zg(t);t=0;for(var l;s;){if(s.nodeType===3){if(l=t+s.textContent.length,t<=i&&l>=i)return{node:s,offset:i-t};t=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Zg(s)}}function Wg(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Wg(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function ep(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=Go(t.document);i instanceof t.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)t=i.contentWindow;else break;i=Go(t.document)}return i}function Nd(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function x1(t,i){var s=ep(i);i=t.focusedElem;var l=t.selectionRange;if(s!==i&&i&&i.ownerDocument&&Wg(i.ownerDocument.documentElement,i)){if(l!==null&&Nd(i)){if(t=l.start,s=l.end,s===void 0&&(s=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(s,i.value.length);else if(s=(t=i.ownerDocument||document)&&t.defaultView||window,s.getSelection){s=s.getSelection();var c=i.textContent.length,h=Math.min(l.start,c);l=l.end===void 0?h:Math.min(l.end,c),!s.extend&&h>l&&(c=l,l=h,h=c),c=Jg(i,h);var w=Jg(i,l);c&&w&&(s.rangeCount!==1||s.anchorNode!==c.node||s.anchorOffset!==c.offset||s.focusNode!==w.node||s.focusOffset!==w.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),s.removeAllRanges(),h>l?(s.addRange(t),s.extend(w.node,w.offset)):(t.setEnd(w.node,w.offset),s.addRange(t)))}}for(t=[],s=i;s=s.parentNode;)s.nodeType===1&&t.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<t.length;i++)s=t[i],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var S1=mn&&"documentMode"in document&&11>=document.documentMode,as=null,Td=null,vl=null,kd=!1;function tp(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;kd||as==null||as!==Go(l)||(l=as,"selectionStart"in l&&Nd(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),vl&&yl(vl,l)||(vl=l,l=Bu(Td,"onSelect"),0<l.length&&(i=new Zo("onSelect","select",null,i,s),t.push({event:i,listeners:l}),i.target=as)))}function or(t,i){var s={};return s[t.toLowerCase()]=i.toLowerCase(),s["Webkit"+t]="webkit"+i,s["Moz"+t]="moz"+i,s}var is={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},Md={},np={};mn&&(np=document.createElement("div").style,"AnimationEvent"in window||(delete is.animationend.animation,delete is.animationiteration.animation,delete is.animationstart.animation),"TransitionEvent"in window||delete is.transitionend.transition);function ur(t){if(Md[t])return Md[t];if(!is[t])return t;var i=is[t],s;for(s in i)if(i.hasOwnProperty(s)&&s in np)return Md[t]=i[s];return t}var ap=ur("animationend"),ip=ur("animationiteration"),rp=ur("animationstart"),A1=ur("transitionrun"),C1=ur("transitionstart"),E1=ur("transitioncancel"),sp=ur("transitionend"),lp=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 scrollEnd toggle touchMove waiting wheel".split(" ");function sa(t,i){lp.set(t,i),$e(i,[t])}var Pn=[],rs=0,Dd=0;function eu(){for(var t=rs,i=Dd=rs=0;i<t;){var s=Pn[i];Pn[i++]=null;var l=Pn[i];Pn[i++]=null;var c=Pn[i];Pn[i++]=null;var h=Pn[i];if(Pn[i++]=null,l!==null&&c!==null){var w=l.pending;w===null?c.next=c:(c.next=w.next,w.next=c),l.pending=c}h!==0&&up(s,c,h)}}function tu(t,i,s,l){Pn[rs++]=t,Pn[rs++]=i,Pn[rs++]=s,Pn[rs++]=l,Dd|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Od(t,i,s,l){return tu(t,i,s,l),nu(t)}function di(t,i){return tu(t,null,null,i),nu(t)}function up(t,i,s){t.lanes|=s;var l=t.alternate;l!==null&&(l.lanes|=s);for(var c=!1,h=t.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(t=h.stateNode,t===null||t._visibility&1||(c=!0)),t=h,h=h.return;c&&i!==null&&t.tag===3&&(h=t.stateNode,c=31-Zt(s),h=h.hiddenUpdates,t=h[c],t===null?h[c]=[i]:t.push(i),i.lane=s|536870912)}function nu(t){if(50<Il)throw Il=0,Ff=null,Error(r(185));for(var i=t.return;i!==null;)t=i,i=t.return;return t.tag===3?t.stateNode:null}var ss={},cp=new WeakMap;function Vn(t,i){if(typeof t=="object"&&t!==null){var s=cp.get(t);return s!==void 0?s:(i={value:t,source:i,stack:F(i)},cp.set(t,i),i)}return{value:t,source:i,stack:F(i)}}var ls=[],os=0,au=null,iu=0,In=[],qn=0,cr=null,Ha=1,Fa="";function dr(t,i){ls[os++]=iu,ls[os++]=au,au=t,iu=i}function dp(t,i,s){In[qn++]=Ha,In[qn++]=Fa,In[qn++]=cr,cr=t;var l=Ha;t=Fa;var c=32-Zt(l)-1;l&=~(1<<c),s+=1;var h=32-Zt(i)+c;if(30<h){var w=c-c%5;h=(l&(1<<w)-1).toString(32),l>>=w,c-=w,Ha=1<<32-Zt(i)+c|s<<c|l,Fa=h+t}else Ha=1<<h|s<<c|l,Fa=t}function _d(t){t.return!==null&&(dr(t,1),dp(t,1,0))}function Bd(t){for(;t===au;)au=ls[--os],ls[os]=null,iu=ls[--os],ls[os]=null;for(;t===cr;)cr=In[--qn],In[qn]=null,Fa=In[--qn],In[qn]=null,Ha=In[--qn],In[qn]=null}var sn=null,$t=null,Ke=!1,la=null,va=!1,zd=Error(r(519));function fr(t){var i=Error(r(418,""));throw xl(Vn(i,t)),zd}function fp(t){var i=t.stateNode,s=t.type,l=t.memoizedProps;switch(i[pe]=t,i[Me]=l,s){case"dialog":qe("cancel",i),qe("close",i);break;case"iframe":case"object":case"embed":qe("load",i);break;case"video":case"audio":for(s=0;s<Ql.length;s++)qe(Ql[s],i);break;case"source":qe("error",i);break;case"img":case"image":case"link":qe("error",i),qe("load",i);break;case"details":qe("toggle",i);break;case"input":qe("invalid",i),Rg(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Qo(i);break;case"select":qe("invalid",i);break;case"textarea":qe("invalid",i),Tg(i,l.value,l.defaultValue,l.children),Qo(i)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||l.suppressHydrationWarning===!0||xy(i.textContent,s)?(l.popover!=null&&(qe("beforetoggle",i),qe("toggle",i)),l.onScroll!=null&&qe("scroll",i),l.onScrollEnd!=null&&qe("scrollend",i),l.onClick!=null&&(i.onclick=zu),i=!0):i=!1,i||fr(t)}function hp(t){for(sn=t.return;sn;)switch(sn.tag){case 3:case 27:va=!0;return;case 5:case 13:va=!1;return;default:sn=sn.return}}function wl(t){if(t!==sn)return!1;if(!Ke)return hp(t),Ke=!0,!1;var i=!1,s;if((s=t.tag!==3&&t.tag!==27)&&((s=t.tag===5)&&(s=t.type,s=!(s!=="form"&&s!=="button")||ah(t.type,t.memoizedProps)),s=!s),s&&(i=!0),i&&$t&&fr(t),hp(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));e:{for(t=t.nextSibling,i=0;t;){if(t.nodeType===8)if(s=t.data,s==="/$"){if(i===0){$t=ua(t.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++;t=t.nextSibling}$t=null}}else $t=sn?ua(t.stateNode.nextSibling):null;return!0}function bl(){$t=sn=null,Ke=!1}function xl(t){la===null?la=[t]:la.push(t)}var Sl=Error(r(460)),mp=Error(r(474)),Ld={then:function(){}};function gp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ru(){}function pp(t,i,s){switch(s=t[s],s===void 0?t.push(i):s!==i&&(i.then(ru,ru),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,t===Sl?Error(r(483)):t;default:if(typeof i.status=="string")i.then(ru,ru);else{if(t=ot,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=i,t.status="pending",t.then(function(l){if(i.status==="pending"){var c=i;c.status="fulfilled",c.value=l}},function(l){if(i.status==="pending"){var c=i;c.status="rejected",c.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,t===Sl?Error(r(483)):t}throw Al=i,Sl}}var Al=null;function yp(){if(Al===null)throw Error(r(459));var t=Al;return Al=null,t}var us=null,Cl=0;function su(t){var i=Cl;return Cl+=1,us===null&&(us=[]),pp(us,t,i)}function El(t,i){i=i.props.ref,t.ref=i!==void 0?i:null}function lu(t,i){throw i.$$typeof===u?Error(r(525)):(t=Object.prototype.toString.call(i),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t)))}function vp(t){var i=t._init;return i(t._payload)}function wp(t){function i(U,O){if(t){var V=U.deletions;V===null?(U.deletions=[O],U.flags|=16):V.push(O)}}function s(U,O){if(!t)return null;for(;O!==null;)i(U,O),O=O.sibling;return null}function l(U){for(var O=new Map;U!==null;)U.key!==null?O.set(U.key,U):O.set(U.index,U),U=U.sibling;return O}function c(U,O){return U=Ai(U,O),U.index=0,U.sibling=null,U}function h(U,O,V){return U.index=V,t?(V=U.alternate,V!==null?(V=V.index,V<O?(U.flags|=33554434,O):V):(U.flags|=33554434,O)):(U.flags|=1048576,O)}function w(U){return t&&U.alternate===null&&(U.flags|=33554434),U}function A(U,O,V,ee){return O===null||O.tag!==6?(O=Df(V,U.mode,ee),O.return=U,O):(O=c(O,V),O.return=U,O)}function T(U,O,V,ee){var ye=V.type;return ye===p?J(U,O,V.props.children,ee,V.key):O!==null&&(O.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===z&&vp(ye)===O.type)?(O=c(O,V.props),El(O,V),O.return=U,O):(O=Eu(V.type,V.key,V.props,null,U.mode,ee),El(O,V),O.return=U,O)}function B(U,O,V,ee){return O===null||O.tag!==4||O.stateNode.containerInfo!==V.containerInfo||O.stateNode.implementation!==V.implementation?(O=Of(V,U.mode,ee),O.return=U,O):(O=c(O,V.children||[]),O.return=U,O)}function J(U,O,V,ee,ye){return O===null||O.tag!==7?(O=Sr(V,U.mode,ee,ye),O.return=U,O):(O=c(O,V),O.return=U,O)}function ae(U,O,V){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Df(""+O,U.mode,V),O.return=U,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case f:return V=Eu(O.type,O.key,O.props,null,U.mode,V),El(V,O),V.return=U,V;case m:return O=Of(O,U.mode,V),O.return=U,O;case z:var ee=O._init;return O=ee(O._payload),ae(U,O,V)}if(ue(O)||W(O))return O=Sr(O,U.mode,V,null),O.return=U,O;if(typeof O.then=="function")return ae(U,su(O),V);if(O.$$typeof===x)return ae(U,Su(U,O),V);lu(U,O)}return null}function I(U,O,V,ee){var ye=O!==null?O.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return ye!==null?null:A(U,O,""+V,ee);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case f:return V.key===ye?T(U,O,V,ee):null;case m:return V.key===ye?B(U,O,V,ee):null;case z:return ye=V._init,V=ye(V._payload),I(U,O,V,ee)}if(ue(V)||W(V))return ye!==null?null:J(U,O,V,ee,null);if(typeof V.then=="function")return I(U,O,su(V),ee);if(V.$$typeof===x)return I(U,O,Su(U,V),ee);lu(U,V)}return null}function K(U,O,V,ee,ye){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return U=U.get(V)||null,A(O,U,""+ee,ye);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case f:return U=U.get(ee.key===null?V:ee.key)||null,T(O,U,ee,ye);case m:return U=U.get(ee.key===null?V:ee.key)||null,B(O,U,ee,ye);case z:var Pe=ee._init;return ee=Pe(ee._payload),K(U,O,V,ee,ye)}if(ue(ee)||W(ee))return U=U.get(V)||null,J(O,U,ee,ye,null);if(typeof ee.then=="function")return K(U,O,V,su(ee),ye);if(ee.$$typeof===x)return K(U,O,V,Su(O,ee),ye);lu(O,ee)}return null}function we(U,O,V,ee){for(var ye=null,Pe=null,xe=O,Re=O=0,Pt=null;xe!==null&&Re<V.length;Re++){xe.index>Re?(Pt=xe,xe=null):Pt=xe.sibling;var Ze=I(U,xe,V[Re],ee);if(Ze===null){xe===null&&(xe=Pt);break}t&&xe&&Ze.alternate===null&&i(U,xe),O=h(Ze,O,Re),Pe===null?ye=Ze:Pe.sibling=Ze,Pe=Ze,xe=Pt}if(Re===V.length)return s(U,xe),Ke&&dr(U,Re),ye;if(xe===null){for(;Re<V.length;Re++)xe=ae(U,V[Re],ee),xe!==null&&(O=h(xe,O,Re),Pe===null?ye=xe:Pe.sibling=xe,Pe=xe);return Ke&&dr(U,Re),ye}for(xe=l(xe);Re<V.length;Re++)Pt=K(xe,U,Re,V[Re],ee),Pt!==null&&(t&&Pt.alternate!==null&&xe.delete(Pt.key===null?Re:Pt.key),O=h(Pt,O,Re),Pe===null?ye=Pt:Pe.sibling=Pt,Pe=Pt);return t&&xe.forEach(function(ki){return i(U,ki)}),Ke&&dr(U,Re),ye}function _e(U,O,V,ee){if(V==null)throw Error(r(151));for(var ye=null,Pe=null,xe=O,Re=O=0,Pt=null,Ze=V.next();xe!==null&&!Ze.done;Re++,Ze=V.next()){xe.index>Re?(Pt=xe,xe=null):Pt=xe.sibling;var ki=I(U,xe,Ze.value,ee);if(ki===null){xe===null&&(xe=Pt);break}t&&xe&&ki.alternate===null&&i(U,xe),O=h(ki,O,Re),Pe===null?ye=ki:Pe.sibling=ki,Pe=ki,xe=Pt}if(Ze.done)return s(U,xe),Ke&&dr(U,Re),ye;if(xe===null){for(;!Ze.done;Re++,Ze=V.next())Ze=ae(U,Ze.value,ee),Ze!==null&&(O=h(Ze,O,Re),Pe===null?ye=Ze:Pe.sibling=Ze,Pe=Ze);return Ke&&dr(U,Re),ye}for(xe=l(xe);!Ze.done;Re++,Ze=V.next())Ze=K(xe,U,Re,Ze.value,ee),Ze!==null&&(t&&Ze.alternate!==null&&xe.delete(Ze.key===null?Re:Ze.key),O=h(Ze,O,Re),Pe===null?ye=Ze:Pe.sibling=Ze,Pe=Ze);return t&&xe.forEach(function(HS){return i(U,HS)}),Ke&&dr(U,Re),ye}function Ct(U,O,V,ee){if(typeof V=="object"&&V!==null&&V.type===p&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case f:e:{for(var ye=V.key;O!==null;){if(O.key===ye){if(ye=V.type,ye===p){if(O.tag===7){s(U,O.sibling),ee=c(O,V.props.children),ee.return=U,U=ee;break e}}else if(O.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===z&&vp(ye)===O.type){s(U,O.sibling),ee=c(O,V.props),El(ee,V),ee.return=U,U=ee;break e}s(U,O);break}else i(U,O);O=O.sibling}V.type===p?(ee=Sr(V.props.children,U.mode,ee,V.key),ee.return=U,U=ee):(ee=Eu(V.type,V.key,V.props,null,U.mode,ee),El(ee,V),ee.return=U,U=ee)}return w(U);case m:e:{for(ye=V.key;O!==null;){if(O.key===ye)if(O.tag===4&&O.stateNode.containerInfo===V.containerInfo&&O.stateNode.implementation===V.implementation){s(U,O.sibling),ee=c(O,V.children||[]),ee.return=U,U=ee;break e}else{s(U,O);break}else i(U,O);O=O.sibling}ee=Of(V,U.mode,ee),ee.return=U,U=ee}return w(U);case z:return ye=V._init,V=ye(V._payload),Ct(U,O,V,ee)}if(ue(V))return we(U,O,V,ee);if(W(V)){if(ye=W(V),typeof ye!="function")throw Error(r(150));return V=ye.call(V),_e(U,O,V,ee)}if(typeof V.then=="function")return Ct(U,O,su(V),ee);if(V.$$typeof===x)return Ct(U,O,Su(U,V),ee);lu(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,O!==null&&O.tag===6?(s(U,O.sibling),ee=c(O,V),ee.return=U,U=ee):(s(U,O),ee=Df(V,U.mode,ee),ee.return=U,U=ee),w(U)):s(U,O)}return function(U,O,V,ee){try{Cl=0;var ye=Ct(U,O,V,ee);return us=null,ye}catch(xe){if(xe===Sl)throw xe;var Pe=Yn(29,xe,null,U.mode);return Pe.lanes=ee,Pe.return=U,Pe}finally{}}}var hr=wp(!0),bp=wp(!1),cs=Fe(null),ou=Fe(0);function xp(t,i){t=Za,De(ou,t),De(cs,i),Za=t|i.baseLanes}function Ud(){De(ou,Za),De(cs,cs.current)}function Hd(){Za=ou.current,Oe(cs),Oe(ou)}var Qn=Fe(null),wa=null;function fi(t){var i=t.alternate;De(zt,zt.current&1),De(Qn,t),wa===null&&(i===null||cs.current!==null||i.memoizedState!==null)&&(wa=t)}function Sp(t){if(t.tag===22){if(De(zt,zt.current),De(Qn,t),wa===null){var i=t.alternate;i!==null&&i.memoizedState!==null&&(wa=t)}}else hi()}function hi(){De(zt,zt.current),De(Qn,Qn.current)}function Pa(t){Oe(Qn),wa===t&&(wa=null),Oe(zt)}var zt=Fe(0);function uu(t){for(var i=t;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var j1=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(s,l){t.push(l)}};this.abort=function(){i.aborted=!0,t.forEach(function(s){return s()})}},R1=e.unstable_scheduleCallback,N1=e.unstable_NormalPriority,Lt={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fd(){return{controller:new j1,data:new Map,refCount:0}}function jl(t){t.refCount--,t.refCount===0&&R1(N1,function(){t.controller.abort()})}var Rl=null,Pd=0,ds=0,fs=null;function T1(t,i){if(Rl===null){var s=Rl=[];Pd=0,ds=Yf(),fs={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Pd++,i.then(Ap,Ap),i}function Ap(){if(--Pd===0&&Rl!==null){fs!==null&&(fs.status="fulfilled");var t=Rl;Rl=null,ds=0,fs=null;for(var i=0;i<t.length;i++)(0,t[i])()}}function k1(t,i){var s=[],l={status:"pending",value:null,reason:null,then:function(c){s.push(c)}};return t.then(function(){l.status="fulfilled",l.value=i;for(var c=0;c<s.length;c++)(0,s[c])(i)},function(c){for(l.status="rejected",l.reason=c,c=0;c<s.length;c++)(0,s[c])(void 0)}),l}var Cp=Q.S;Q.S=function(t,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&T1(t,i),Cp!==null&&Cp(t,i)};var mr=Fe(null);function Vd(){var t=mr.current;return t!==null?t:ot.pooledCache}function cu(t,i){i===null?De(mr,mr.current):De(mr,i.pool)}function Ep(){var t=Vd();return t===null?null:{parent:Lt._currentValue,pool:t}}var mi=0,He=null,nt=null,Ot=null,du=!1,hs=!1,gr=!1,fu=0,Nl=0,ms=null,M1=0;function Nt(){throw Error(r(321))}function Id(t,i){if(i===null)return!1;for(var s=0;s<i.length&&s<t.length;s++)if(!An(t[s],i[s]))return!1;return!0}function qd(t,i,s,l,c,h){return mi=h,He=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Q.H=t===null||t.memoizedState===null?pr:gi,gr=!1,h=s(l,c),gr=!1,hs&&(h=Rp(i,s,l,c)),jp(t),h}function jp(t){Q.H=ba;var i=nt!==null&&nt.next!==null;if(mi=0,Ot=nt=He=null,du=!1,Nl=0,ms=null,i)throw Error(r(300));t===null||Ht||(t=t.dependencies,t!==null&&xu(t)&&(Ht=!0))}function Rp(t,i,s,l){He=t;var c=0;do{if(hs&&(ms=null),Nl=0,hs=!1,25<=c)throw Error(r(301));if(c+=1,Ot=nt=null,t.updateQueue!=null){var h=t.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}Q.H=yr,h=i(s,l)}while(hs);return h}function D1(){var t=Q.H,i=t.useState()[0];return i=typeof i.then=="function"?Tl(i):i,t=t.useState()[0],(nt!==null?nt.memoizedState:null)!==t&&(He.flags|=1024),i}function Qd(){var t=fu!==0;return fu=0,t}function Gd(t,i,s){i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~s}function $d(t){if(du){for(t=t.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}du=!1}mi=0,Ot=nt=He=null,hs=!1,Nl=fu=0,ms=null}function pn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?He.memoizedState=Ot=t:Ot=Ot.next=t,Ot}function _t(){if(nt===null){var t=He.alternate;t=t!==null?t.memoizedState:null}else t=nt.next;var i=Ot===null?He.memoizedState:Ot.next;if(i!==null)Ot=i,nt=t;else{if(t===null)throw He.alternate===null?Error(r(467)):Error(r(310));nt=t,t={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Ot===null?He.memoizedState=Ot=t:Ot=Ot.next=t}return Ot}var hu;hu=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Tl(t){var i=Nl;return Nl+=1,ms===null&&(ms=[]),t=pp(ms,t,i),i=He,(Ot===null?i.memoizedState:Ot.next)===null&&(i=i.alternate,Q.H=i===null||i.memoizedState===null?pr:gi),t}function mu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Tl(t);if(t.$$typeof===x)return Jt(t)}throw Error(r(438,String(t)))}function Yd(t){var i=null,s=He.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var l=He.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(c){return c.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=hu(),He.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(t),l=0;l<t;l++)s[l]=Z;return i.index++,s}function Va(t,i){return typeof i=="function"?i(t):i}function gu(t){var i=_t();return Xd(i,nt,t)}function Xd(t,i,s){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var c=t.baseQueue,h=l.pending;if(h!==null){if(c!==null){var w=c.next;c.next=h.next,h.next=w}i.baseQueue=c=h,l.pending=null}if(h=t.baseState,c===null)t.memoizedState=h;else{i=c.next;var A=w=null,T=null,B=i,J=!1;do{var ae=B.lane&-536870913;if(ae!==B.lane?(Ye&ae)===ae:(mi&ae)===ae){var I=B.revertLane;if(I===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),ae===ds&&(J=!0);else if((mi&I)===I){B=B.next,I===ds&&(J=!0);continue}else ae={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(A=T=ae,w=h):T=T.next=ae,He.lanes|=I,Ci|=I;ae=B.action,gr&&s(h,ae),h=B.hasEagerState?B.eagerState:s(h,ae)}else I={lane:ae,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(A=T=I,w=h):T=T.next=I,He.lanes|=ae,Ci|=ae;B=B.next}while(B!==null&&B!==i);if(T===null?w=h:T.next=A,!An(h,t.memoizedState)&&(Ht=!0,J&&(s=fs,s!==null)))throw s;t.memoizedState=h,t.baseState=w,t.baseQueue=T,l.lastRenderedState=h}return c===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Kd(t){var i=_t(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var l=s.dispatch,c=s.pending,h=i.memoizedState;if(c!==null){s.pending=null;var w=c=c.next;do h=t(h,w.action),w=w.next;while(w!==c);An(h,i.memoizedState)||(Ht=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),s.lastRenderedState=h}return[h,l]}function Np(t,i,s){var l=He,c=_t(),h=Ke;if(h){if(s===void 0)throw Error(r(407));s=s()}else s=i();var w=!An((nt||c).memoizedState,s);if(w&&(c.memoizedState=s,Ht=!0),c=c.queue,Wd(Mp.bind(null,l,c,t),[t]),c.getSnapshot!==i||w||Ot!==null&&Ot.memoizedState.tag&1){if(l.flags|=2048,gs(9,kp.bind(null,l,c,s,i),{destroy:void 0},null),ot===null)throw Error(r(349));h||(mi&60)!==0||Tp(l,i,s)}return s}function Tp(t,i,s){t.flags|=16384,t={getSnapshot:i,value:s},i=He.updateQueue,i===null?(i=hu(),He.updateQueue=i,i.stores=[t]):(s=i.stores,s===null?i.stores=[t]:s.push(t))}function kp(t,i,s,l){i.value=s,i.getSnapshot=l,Dp(i)&&Op(t)}function Mp(t,i,s){return s(function(){Dp(i)&&Op(t)})}function Dp(t){var i=t.getSnapshot;t=t.value;try{var s=i();return!An(t,s)}catch{return!0}}function Op(t){var i=di(t,2);i!==null&&ln(i,t,2)}function Zd(t){var i=pn();if(typeof t=="function"){var s=t;if(t=s(),gr){Sn(!0);try{s()}finally{Sn(!1)}}}return i.memoizedState=i.baseState=t,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:t},i}function _p(t,i,s,l){return t.baseState=s,Xd(t,nt,typeof l=="function"?l:Va)}function O1(t,i,s,l,c){if(vu(t))throw Error(r(485));if(t=i.action,t!==null){var h={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){h.listeners.push(w)}};Q.T!==null?s(!0):h.isTransition=!1,l(h),s=i.pending,s===null?(h.next=i.pending=h,Bp(i,h)):(h.next=s.next,i.pending=s.next=h)}}function Bp(t,i){var s=i.action,l=i.payload,c=t.state;if(i.isTransition){var h=Q.T,w={};Q.T=w;try{var A=s(c,l),T=Q.S;T!==null&&T(w,A),zp(t,i,A)}catch(B){Jd(t,i,B)}finally{Q.T=h}}else try{h=s(c,l),zp(t,i,h)}catch(B){Jd(t,i,B)}}function zp(t,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Lp(t,i,l)},function(l){return Jd(t,i,l)}):Lp(t,i,s)}function Lp(t,i,s){i.status="fulfilled",i.value=s,Up(i),t.state=s,i=t.pending,i!==null&&(s=i.next,s===i?t.pending=null:(s=s.next,i.next=s,Bp(t,s)))}function Jd(t,i,s){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=s,Up(i),i=i.next;while(i!==l)}t.action=null}function Up(t){t=t.listeners;for(var i=0;i<t.length;i++)(0,t[i])()}function Hp(t,i){return i}function Fp(t,i){if(Ke){var s=ot.formState;if(s!==null){e:{var l=He;if(Ke){if($t){t:{for(var c=$t,h=va;c.nodeType!==8;){if(!h){c=null;break t}if(c=ua(c.nextSibling),c===null){c=null;break t}}h=c.data,c=h==="F!"||h==="F"?c:null}if(c){$t=ua(c.nextSibling),l=c.data==="F!";break e}}fr(l)}l=!1}l&&(i=s[0])}}return s=pn(),s.memoizedState=s.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hp,lastRenderedState:i},s.queue=l,s=i0.bind(null,He,l),l.dispatch=s,l=Zd(!1),h=rf.bind(null,He,!1,l.queue),l=pn(),c={state:i,dispatch:null,action:t,pending:null},l.queue=c,s=O1.bind(null,He,c,h,s),c.dispatch=s,l.memoizedState=t,[i,s,!1]}function Pp(t){var i=_t();return Vp(i,nt,t)}function Vp(t,i,s){i=Xd(t,i,Hp)[0],t=gu(Va)[0],i=typeof i=="object"&&i!==null&&typeof i.then=="function"?Tl(i):i;var l=_t(),c=l.queue,h=c.dispatch;return s!==l.memoizedState&&(He.flags|=2048,gs(9,_1.bind(null,c,s),{destroy:void 0},null)),[i,h,t]}function _1(t,i){t.action=i}function Ip(t){var i=_t(),s=nt;if(s!==null)return Vp(i,s,t);_t(),i=i.memoizedState,s=_t();var l=s.queue.dispatch;return s.memoizedState=t,[i,l,!1]}function gs(t,i,s,l){return t={tag:t,create:i,inst:s,deps:l,next:null},i=He.updateQueue,i===null&&(i=hu(),He.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=t.next=t:(l=s.next,s.next=t,t.next=l,i.lastEffect=t),t}function qp(){return _t().memoizedState}function pu(t,i,s,l){var c=pn();He.flags|=t,c.memoizedState=gs(1|i,s,{destroy:void 0},l===void 0?null:l)}function yu(t,i,s,l){var c=_t();l=l===void 0?null:l;var h=c.memoizedState.inst;nt!==null&&l!==null&&Id(l,nt.memoizedState.deps)?c.memoizedState=gs(i,s,h,l):(He.flags|=t,c.memoizedState=gs(1|i,s,h,l))}function Qp(t,i){pu(8390656,8,t,i)}function Wd(t,i){yu(2048,8,t,i)}function Gp(t,i){return yu(4,2,t,i)}function $p(t,i){return yu(4,4,t,i)}function Yp(t,i){if(typeof i=="function"){t=t();var s=i(t);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function Xp(t,i,s){s=s!=null?s.concat([t]):null,yu(4,4,Yp.bind(null,i,t),s)}function ef(){}function Kp(t,i){var s=_t();i=i===void 0?null:i;var l=s.memoizedState;return i!==null&&Id(i,l[1])?l[0]:(s.memoizedState=[t,i],t)}function Zp(t,i){var s=_t();i=i===void 0?null:i;var l=s.memoizedState;if(i!==null&&Id(i,l[1]))return l[0];if(l=t(),gr){Sn(!0);try{t()}finally{Sn(!1)}}return s.memoizedState=[l,i],l}function tf(t,i,s){return s===void 0||(mi&1073741824)!==0?t.memoizedState=i:(t.memoizedState=s,t=W0(),He.lanes|=t,Ci|=t,s)}function Jp(t,i,s,l){return An(s,i)?s:cs.current!==null?(t=tf(t,s,l),An(t,i)||(Ht=!0),t):(mi&42)===0?(Ht=!0,t.memoizedState=s):(t=W0(),He.lanes|=t,Ci|=t,i)}function Wp(t,i,s,l,c){var h=se.p;se.p=h!==0&&8>h?h:8;var w=Q.T,A={};Q.T=A,rf(t,!1,i,s);try{var T=c(),B=Q.S;if(B!==null&&B(A,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var J=k1(T,l);kl(t,i,J,Rn(t))}else kl(t,i,l,Rn(t))}catch(ae){kl(t,i,{then:function(){},status:"rejected",reason:ae},Rn())}finally{se.p=h,Q.T=w}}function B1(){}function nf(t,i,s,l){if(t.tag!==5)throw Error(r(476));var c=e0(t).queue;Wp(t,c,i,Se,s===null?B1:function(){return t0(t),s(l)})}function e0(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:Se,baseState:Se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:Se},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:s},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function t0(t){var i=e0(t).next.queue;kl(t,i,{},Rn())}function af(){return Jt(Kl)}function n0(){return _t().memoizedState}function a0(){return _t().memoizedState}function z1(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var s=Rn();t=vi(s);var l=wi(i,t,s);l!==null&&(ln(l,i,s),Ol(l,i,s)),i={cache:Fd()},t.payload=i;return}i=i.return}}function L1(t,i,s){var l=Rn();s={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},vu(t)?r0(i,s):(s=Od(t,i,s,l),s!==null&&(ln(s,t,l),s0(s,i,l)))}function i0(t,i,s){var l=Rn();kl(t,i,s,l)}function kl(t,i,s,l){var c={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(vu(t))r0(i,c);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var w=i.lastRenderedState,A=h(w,s);if(c.hasEagerState=!0,c.eagerState=A,An(A,w))return tu(t,i,c,0),ot===null&&eu(),!1}catch{}finally{}if(s=Od(t,i,c,l),s!==null)return ln(s,t,l),s0(s,i,l),!0}return!1}function rf(t,i,s,l){if(l={lane:2,revertLane:Yf(),action:l,hasEagerState:!1,eagerState:null,next:null},vu(t)){if(i)throw Error(r(479))}else i=Od(t,s,l,2),i!==null&&ln(i,t,2)}function vu(t){var i=t.alternate;return t===He||i!==null&&i===He}function r0(t,i){hs=du=!0;var s=t.pending;s===null?i.next=i:(i.next=s.next,s.next=i),t.pending=i}function s0(t,i,s){if((s&4194176)!==0){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,Ce(t,s)}}var ba={readContext:Jt,use:mu,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt};ba.useCacheRefresh=Nt,ba.useMemoCache=Nt,ba.useHostTransitionStatus=Nt,ba.useFormState=Nt,ba.useActionState=Nt,ba.useOptimistic=Nt;var pr={readContext:Jt,use:mu,useCallback:function(t,i){return pn().memoizedState=[t,i===void 0?null:i],t},useContext:Jt,useEffect:Qp,useImperativeHandle:function(t,i,s){s=s!=null?s.concat([t]):null,pu(4194308,4,Yp.bind(null,i,t),s)},useLayoutEffect:function(t,i){return pu(4194308,4,t,i)},useInsertionEffect:function(t,i){pu(4,2,t,i)},useMemo:function(t,i){var s=pn();i=i===void 0?null:i;var l=t();if(gr){Sn(!0);try{t()}finally{Sn(!1)}}return s.memoizedState=[l,i],l},useReducer:function(t,i,s){var l=pn();if(s!==void 0){var c=s(i);if(gr){Sn(!0);try{s(i)}finally{Sn(!1)}}}else c=i;return l.memoizedState=l.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},l.queue=t,t=t.dispatch=L1.bind(null,He,t),[l.memoizedState,t]},useRef:function(t){var i=pn();return t={current:t},i.memoizedState=t},useState:function(t){t=Zd(t);var i=t.queue,s=i0.bind(null,He,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:ef,useDeferredValue:function(t,i){var s=pn();return tf(s,t,i)},useTransition:function(){var t=Zd(!1);return t=Wp.bind(null,He,t.queue,!0,!1),pn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,s){var l=He,c=pn();if(Ke){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),ot===null)throw Error(r(349));(Ye&60)!==0||Tp(l,i,s)}c.memoizedState=s;var h={value:s,getSnapshot:i};return c.queue=h,Qp(Mp.bind(null,l,h,t),[t]),l.flags|=2048,gs(9,kp.bind(null,l,h,s,i),{destroy:void 0},null),s},useId:function(){var t=pn(),i=ot.identifierPrefix;if(Ke){var s=Fa,l=Ha;s=(l&~(1<<32-Zt(l)-1)).toString(32)+s,i=":"+i+"R"+s,s=fu++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=M1++,i=":"+i+"r"+s.toString(32)+":";return t.memoizedState=i},useCacheRefresh:function(){return pn().memoizedState=z1.bind(null,He)}};pr.useMemoCache=Yd,pr.useHostTransitionStatus=af,pr.useFormState=Fp,pr.useActionState=Fp,pr.useOptimistic=function(t){var i=pn();i.memoizedState=i.baseState=t;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=rf.bind(null,He,!0,s),s.dispatch=i,[t,i]};var gi={readContext:Jt,use:mu,useCallback:Kp,useContext:Jt,useEffect:Wd,useImperativeHandle:Xp,useInsertionEffect:Gp,useLayoutEffect:$p,useMemo:Zp,useReducer:gu,useRef:qp,useState:function(){return gu(Va)},useDebugValue:ef,useDeferredValue:function(t,i){var s=_t();return Jp(s,nt.memoizedState,t,i)},useTransition:function(){var t=gu(Va)[0],i=_t().memoizedState;return[typeof t=="boolean"?t:Tl(t),i]},useSyncExternalStore:Np,useId:n0};gi.useCacheRefresh=a0,gi.useMemoCache=Yd,gi.useHostTransitionStatus=af,gi.useFormState=Pp,gi.useActionState=Pp,gi.useOptimistic=function(t,i){var s=_t();return _p(s,nt,t,i)};var yr={readContext:Jt,use:mu,useCallback:Kp,useContext:Jt,useEffect:Wd,useImperativeHandle:Xp,useInsertionEffect:Gp,useLayoutEffect:$p,useMemo:Zp,useReducer:Kd,useRef:qp,useState:function(){return Kd(Va)},useDebugValue:ef,useDeferredValue:function(t,i){var s=_t();return nt===null?tf(s,t,i):Jp(s,nt.memoizedState,t,i)},useTransition:function(){var t=Kd(Va)[0],i=_t().memoizedState;return[typeof t=="boolean"?t:Tl(t),i]},useSyncExternalStore:Np,useId:n0};yr.useCacheRefresh=a0,yr.useMemoCache=Yd,yr.useHostTransitionStatus=af,yr.useFormState=Ip,yr.useActionState=Ip,yr.useOptimistic=function(t,i){var s=_t();return nt!==null?_p(s,nt,t,i):(s.baseState=t,[t,s.queue.dispatch])};function sf(t,i,s,l){i=t.memoizedState,s=s(l,i),s=s==null?i:ne({},i,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var lf={isMounted:function(t){return(t=t._reactInternals)?G(t)===t:!1},enqueueSetState:function(t,i,s){t=t._reactInternals;var l=Rn(),c=vi(l);c.payload=i,s!=null&&(c.callback=s),i=wi(t,c,l),i!==null&&(ln(i,t,l),Ol(i,t,l))},enqueueReplaceState:function(t,i,s){t=t._reactInternals;var l=Rn(),c=vi(l);c.tag=1,c.payload=i,s!=null&&(c.callback=s),i=wi(t,c,l),i!==null&&(ln(i,t,l),Ol(i,t,l))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var s=Rn(),l=vi(s);l.tag=2,i!=null&&(l.callback=i),i=wi(t,l,s),i!==null&&(ln(i,t,s),Ol(i,t,s))}};function l0(t,i,s,l,c,h,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,h,w):i.prototype&&i.prototype.isPureReactComponent?!yl(s,l)||!yl(c,h):!0}function o0(t,i,s,l){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,l),i.state!==t&&lf.enqueueReplaceState(i,i.state,null)}function vr(t,i){var s=i;if("ref"in i){s={};for(var l in i)l!=="ref"&&(s[l]=i[l])}if(t=t.defaultProps){s===i&&(s=ne({},s));for(var c in t)s[c]===void 0&&(s[c]=t[c])}return s}var wu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function u0(t){wu(t)}function c0(t){console.error(t)}function d0(t){wu(t)}function bu(t,i){try{var s=t.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function f0(t,i,s){try{var l=t.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function of(t,i,s){return s=vi(s),s.tag=3,s.payload={element:null},s.callback=function(){bu(t,i)},s}function h0(t){return t=vi(t),t.tag=3,t}function m0(t,i,s,l){var c=s.type.getDerivedStateFromError;if(typeof c=="function"){var h=l.value;t.payload=function(){return c(h)},t.callback=function(){f0(i,s,l)}}var w=s.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(t.callback=function(){f0(i,s,l),typeof c!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var A=l.stack;this.componentDidCatch(l.value,{componentStack:A!==null?A:""})})}function U1(t,i,s,l,c){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=s.alternate,i!==null&&Dl(i,s,c,!0),s=Qn.current,s!==null){switch(s.tag){case 13:return wa===null?If():s.alternate===null&&At===0&&(At=3),s.flags&=-257,s.flags|=65536,s.lanes=c,l===Ld?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([l]):i.add(l),Qf(t,l,c)),!1;case 22:return s.flags|=65536,l===Ld?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([l]):s.add(l)),Qf(t,l,c)),!1}throw Error(r(435,s.tag))}return Qf(t,l,c),If(),!1}if(Ke)return i=Qn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=c,l!==zd&&(t=Error(r(422),{cause:l}),xl(Vn(t,s)))):(l!==zd&&(i=Error(r(423),{cause:l}),xl(Vn(i,s))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,l=Vn(l,s),c=of(t.stateNode,l,c),Af(t,c),At!==4&&(At=2)),!1;var h=Error(r(520),{cause:l});if(h=Vn(h,s),Pl===null?Pl=[h]:Pl.push(h),At!==4&&(At=2),i===null)return!0;l=Vn(l,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,t=c&-c,s.lanes|=t,t=of(s.stateNode,l,t),Af(s,t),!1;case 1:if(i=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Ei===null||!Ei.has(h))))return s.flags|=65536,c&=-c,s.lanes|=c,c=h0(c),m0(c,t,s,l),Af(s,c),!1}s=s.return}while(s!==null);return!1}var g0=Error(r(461)),Ht=!1;function Yt(t,i,s,l){i.child=t===null?bp(i,null,s,l):hr(i,t.child,s,l)}function p0(t,i,s,l,c){s=s.render;var h=i.ref;if("ref"in l){var w={};for(var A in l)A!=="ref"&&(w[A]=l[A])}else w=l;return br(i),l=qd(t,i,s,w,h,c),A=Qd(),t!==null&&!Ht?(Gd(t,i,c),Ia(t,i,c)):(Ke&&A&&_d(i),i.flags|=1,Yt(t,i,l,c),i.child)}function y0(t,i,s,l,c){if(t===null){var h=s.type;return typeof h=="function"&&!Mf(h)&&h.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=h,v0(t,i,h,l,c)):(t=Eu(s.type,null,l,i,i.mode,c),t.ref=i.ref,t.return=i,i.child=t)}if(h=t.child,!yf(t,c)){var w=h.memoizedProps;if(s=s.compare,s=s!==null?s:yl,s(w,l)&&t.ref===i.ref)return Ia(t,i,c)}return i.flags|=1,t=Ai(h,l),t.ref=i.ref,t.return=i,i.child=t}function v0(t,i,s,l,c){if(t!==null){var h=t.memoizedProps;if(yl(h,l)&&t.ref===i.ref)if(Ht=!1,i.pendingProps=l=h,yf(t,c))(t.flags&131072)!==0&&(Ht=!0);else return i.lanes=t.lanes,Ia(t,i,c)}return uf(t,i,s,l,c)}function w0(t,i,s){var l=i.pendingProps,c=l.children,h=(i.stateNode._pendingVisibility&2)!==0,w=t!==null?t.memoizedState:null;if(Ml(t,i),l.mode==="hidden"||h){if((i.flags&128)!==0){if(l=w!==null?w.baseLanes|s:s,t!==null){for(c=i.child=t.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;i.childLanes=h&~l}else i.childLanes=0,i.child=null;return b0(t,i,l,s)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},t!==null&&cu(i,w!==null?w.cachePool:null),w!==null?xp(i,w):Ud(),Sp(i);else return i.lanes=i.childLanes=536870912,b0(t,i,w!==null?w.baseLanes|s:s,s)}else w!==null?(cu(i,w.cachePool),xp(i,w),hi(),i.memoizedState=null):(t!==null&&cu(i,null),Ud(),hi());return Yt(t,i,c,s),i.child}function b0(t,i,s,l){var c=Vd();return c=c===null?null:{parent:Lt._currentValue,pool:c},i.memoizedState={baseLanes:s,cachePool:c},t!==null&&cu(i,null),Ud(),Sp(i),t!==null&&Dl(t,i,l,!0),null}function Ml(t,i){var s=i.ref;if(s===null)t!==null&&t.ref!==null&&(i.flags|=2097664);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(t===null||t.ref!==s)&&(i.flags|=2097664)}}function uf(t,i,s,l,c){return br(i),s=qd(t,i,s,l,void 0,c),l=Qd(),t!==null&&!Ht?(Gd(t,i,c),Ia(t,i,c)):(Ke&&l&&_d(i),i.flags|=1,Yt(t,i,s,c),i.child)}function x0(t,i,s,l,c,h){return br(i),i.updateQueue=null,s=Rp(i,l,s,c),jp(t),l=Qd(),t!==null&&!Ht?(Gd(t,i,h),Ia(t,i,h)):(Ke&&l&&_d(i),i.flags|=1,Yt(t,i,s,h),i.child)}function S0(t,i,s,l,c){if(br(i),i.stateNode===null){var h=ss,w=s.contextType;typeof w=="object"&&w!==null&&(h=Jt(w)),h=new s(l,h),i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=lf,i.stateNode=h,h._reactInternals=i,h=i.stateNode,h.props=l,h.state=i.memoizedState,h.refs={},xf(i),w=s.contextType,h.context=typeof w=="object"&&w!==null?Jt(w):ss,h.state=i.memoizedState,w=s.getDerivedStateFromProps,typeof w=="function"&&(sf(i,s,w,l),h.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(w=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),w!==h.state&&lf.enqueueReplaceState(h,h.state,null),Bl(i,l,h,c),_l(),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(t===null){h=i.stateNode;var A=i.memoizedProps,T=vr(s,A);h.props=T;var B=h.context,J=s.contextType;w=ss,typeof J=="object"&&J!==null&&(w=Jt(J));var ae=s.getDerivedStateFromProps;J=typeof ae=="function"||typeof h.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,J||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(A||B!==w)&&o0(i,h,l,w),yi=!1;var I=i.memoizedState;h.state=I,Bl(i,l,h,c),_l(),B=i.memoizedState,A||I!==B||yi?(typeof ae=="function"&&(sf(i,s,ae,l),B=i.memoizedState),(T=yi||l0(i,s,T,l,I,B,w))?(J||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(i.flags|=4194308)):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=B),h.props=l,h.state=B,h.context=w,l=T):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{h=i.stateNode,Sf(t,i),w=i.memoizedProps,J=vr(s,w),h.props=J,ae=i.pendingProps,I=h.context,B=s.contextType,T=ss,typeof B=="object"&&B!==null&&(T=Jt(B)),A=s.getDerivedStateFromProps,(B=typeof A=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w!==ae||I!==T)&&o0(i,h,l,T),yi=!1,I=i.memoizedState,h.state=I,Bl(i,l,h,c),_l();var K=i.memoizedState;w!==ae||I!==K||yi||t!==null&&t.dependencies!==null&&xu(t.dependencies)?(typeof A=="function"&&(sf(i,s,A,l),K=i.memoizedState),(J=yi||l0(i,s,J,l,I,K,T)||t!==null&&t.dependencies!==null&&xu(t.dependencies))?(B||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,K,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,K,T)),typeof h.componentDidUpdate=="function"&&(i.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof h.componentDidUpdate!="function"||w===t.memoizedProps&&I===t.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&I===t.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=K),h.props=l,h.state=K,h.context=T,l=J):(typeof h.componentDidUpdate!="function"||w===t.memoizedProps&&I===t.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&I===t.memoizedState||(i.flags|=1024),l=!1)}return h=l,Ml(t,i),l=(i.flags&128)!==0,h||l?(h=i.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),i.flags|=1,t!==null&&l?(i.child=hr(i,t.child,null,c),i.child=hr(i,null,s,c)):Yt(t,i,s,c),i.memoizedState=h.state,t=i.child):t=Ia(t,i,c),t}function A0(t,i,s,l){return bl(),i.flags|=256,Yt(t,i,s,l),i.child}var cf={dehydrated:null,treeContext:null,retryLane:0};function df(t){return{baseLanes:t,cachePool:Ep()}}function ff(t,i,s){return t=t!==null?t.childLanes&~s:0,i&&(t|=Xn),t}function C0(t,i,s){var l=i.pendingProps,c=!1,h=(i.flags&128)!==0,w;if((w=h)||(w=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),w&&(c=!0,i.flags&=-129),w=(i.flags&32)!==0,i.flags&=-33,t===null){if(Ke){if(c?fi(i):hi(),Ke){var A=$t,T;if(T=A){e:{for(T=A,A=va;T.nodeType!==8;){if(!A){A=null;break e}if(T=ua(T.nextSibling),T===null){A=null;break e}}A=T}A!==null?(i.memoizedState={dehydrated:A,treeContext:cr!==null?{id:Ha,overflow:Fa}:null,retryLane:536870912},T=Yn(18,null,null,0),T.stateNode=A,T.return=i,i.child=T,sn=i,$t=null,T=!0):T=!1}T||fr(i)}if(A=i.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return A.data==="$!"?i.lanes=16:i.lanes=536870912,null;Pa(i)}return A=l.children,l=l.fallback,c?(hi(),c=i.mode,A=mf({mode:"hidden",children:A},c),l=Sr(l,c,s,null),A.return=i,l.return=i,A.sibling=l,i.child=A,c=i.child,c.memoizedState=df(s),c.childLanes=ff(t,w,s),i.memoizedState=cf,l):(fi(i),hf(i,A))}if(T=t.memoizedState,T!==null&&(A=T.dehydrated,A!==null)){if(h)i.flags&256?(fi(i),i.flags&=-257,i=gf(t,i,s)):i.memoizedState!==null?(hi(),i.child=t.child,i.flags|=128,i=null):(hi(),c=l.fallback,A=i.mode,l=mf({mode:"visible",children:l.children},A),c=Sr(c,A,s,null),c.flags|=2,l.return=i,c.return=i,l.sibling=c,i.child=l,hr(i,t.child,null,s),l=i.child,l.memoizedState=df(s),l.childLanes=ff(t,w,s),i.memoizedState=cf,i=c);else if(fi(i),A.data==="$!"){if(w=A.nextSibling&&A.nextSibling.dataset,w)var B=w.dgst;w=B,l=Error(r(419)),l.stack="",l.digest=w,xl({value:l,source:null,stack:null}),i=gf(t,i,s)}else if(Ht||Dl(t,i,s,!1),w=(s&t.childLanes)!==0,Ht||w){if(w=ot,w!==null){if(l=s&-s,(l&42)!==0)l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(l=(l&(w.suspendedLanes|s))!==0?0:l,l!==0&&l!==T.retryLane)throw T.retryLane=l,di(t,l),ln(w,t,l),g0}A.data==="$?"||If(),i=gf(t,i,s)}else A.data==="$?"?(i.flags|=128,i.child=t.child,i=W1.bind(null,t),A._reactRetry=i,i=null):(t=T.treeContext,$t=ua(A.nextSibling),sn=i,Ke=!0,la=null,va=!1,t!==null&&(In[qn++]=Ha,In[qn++]=Fa,In[qn++]=cr,Ha=t.id,Fa=t.overflow,cr=i),i=hf(i,l.children),i.flags|=4096);return i}return c?(hi(),c=l.fallback,A=i.mode,T=t.child,B=T.sibling,l=Ai(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&31457280,B!==null?c=Ai(B,c):(c=Sr(c,A,s,null),c.flags|=2),c.return=i,l.return=i,l.sibling=c,i.child=l,l=c,c=i.child,A=t.child.memoizedState,A===null?A=df(s):(T=A.cachePool,T!==null?(B=Lt._currentValue,T=T.parent!==B?{parent:B,pool:B}:T):T=Ep(),A={baseLanes:A.baseLanes|s,cachePool:T}),c.memoizedState=A,c.childLanes=ff(t,w,s),i.memoizedState=cf,l):(fi(i),s=t.child,t=s.sibling,s=Ai(s,{mode:"visible",children:l.children}),s.return=i,s.sibling=null,t!==null&&(w=i.deletions,w===null?(i.deletions=[t],i.flags|=16):w.push(t)),i.child=s,i.memoizedState=null,s)}function hf(t,i){return i=mf({mode:"visible",children:i},t.mode),i.return=t,t.child=i}function mf(t,i){return K0(t,i,0,null)}function gf(t,i,s){return hr(i,t.child,null,s),t=hf(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function E0(t,i,s){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i),wf(t.return,i,s)}function pf(t,i,s,l,c){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:c}:(h.isBackwards=i,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=s,h.tailMode=c)}function j0(t,i,s){var l=i.pendingProps,c=l.revealOrder,h=l.tail;if(Yt(t,i,l.children,s),l=zt.current,(l&2)!==0)l=l&1|2,i.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&E0(t,s,i);else if(t.tag===19)E0(t,s,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(De(zt,l),c){case"forwards":for(s=i.child,c=null;s!==null;)t=s.alternate,t!==null&&uu(t)===null&&(c=s),s=s.sibling;s=c,s===null?(c=i.child,i.child=null):(c=s.sibling,s.sibling=null),pf(i,!1,c,s,h);break;case"backwards":for(s=null,c=i.child,i.child=null;c!==null;){if(t=c.alternate,t!==null&&uu(t)===null){i.child=c;break}t=c.sibling,c.sibling=s,s=c,c=t}pf(i,!0,s,null,h);break;case"together":pf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Ia(t,i,s){if(t!==null&&(i.dependencies=t.dependencies),Ci|=i.lanes,(s&i.childLanes)===0)if(t!==null){if(Dl(t,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(t!==null&&i.child!==t.child)throw Error(r(153));if(i.child!==null){for(t=i.child,s=Ai(t,t.pendingProps),i.child=s,s.return=i;t.sibling!==null;)t=t.sibling,s=s.sibling=Ai(t,t.pendingProps),s.return=i;s.sibling=null}return i.child}function yf(t,i){return(t.lanes&i)!==0?!0:(t=t.dependencies,!!(t!==null&&xu(t)))}function H1(t,i,s){switch(i.tag){case 3:Yr(i,i.stateNode.containerInfo),pi(i,Lt,t.memoizedState.cache),bl();break;case 27:case 5:rl(i);break;case 4:Yr(i,i.stateNode.containerInfo);break;case 10:pi(i,i.type,i.memoizedProps.value);break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(fi(i),i.flags|=128,null):(s&i.child.childLanes)!==0?C0(t,i,s):(fi(i),t=Ia(t,i,s),t!==null?t.sibling:null);fi(i);break;case 19:var c=(t.flags&128)!==0;if(l=(s&i.childLanes)!==0,l||(Dl(t,i,s,!1),l=(s&i.childLanes)!==0),c){if(l)return j0(t,i,s);i.flags|=128}if(c=i.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),De(zt,zt.current),l)break;return null;case 22:case 23:return i.lanes=0,w0(t,i,s);case 24:pi(i,Lt,t.memoizedState.cache)}return Ia(t,i,s)}function R0(t,i,s){if(t!==null)if(t.memoizedProps!==i.pendingProps)Ht=!0;else{if(!yf(t,s)&&(i.flags&128)===0)return Ht=!1,H1(t,i,s);Ht=(t.flags&131072)!==0}else Ht=!1,Ke&&(i.flags&1048576)!==0&&dp(i,iu,i.index);switch(i.lanes=0,i.tag){case 16:e:{t=i.pendingProps;var l=i.elementType,c=l._init;if(l=c(l._payload),i.type=l,typeof l=="function")Mf(l)?(t=vr(l,t),i.tag=1,i=S0(null,i,l,t,s)):(i.tag=0,i=uf(null,i,l,t,s));else{if(l!=null){if(c=l.$$typeof,c===S){i.tag=11,i=p0(null,i,l,t,s);break e}else if(c===k){i.tag=14,i=y0(null,i,l,t,s);break e}}throw i=re(l)||l,Error(r(306,i,""))}}return i;case 0:return uf(t,i,i.type,i.pendingProps,s);case 1:return l=i.type,c=vr(l,i.pendingProps),S0(t,i,l,c,s);case 3:e:{if(Yr(i,i.stateNode.containerInfo),t===null)throw Error(r(387));var h=i.pendingProps;c=i.memoizedState,l=c.element,Sf(t,i),Bl(i,h,null,s);var w=i.memoizedState;if(h=w.cache,pi(i,Lt,h),h!==c.cache&&bf(i,[Lt],s,!0),_l(),h=w.element,c.isDehydrated)if(c={element:h,isDehydrated:!1,cache:w.cache},i.updateQueue.baseState=c,i.memoizedState=c,i.flags&256){i=A0(t,i,h,s);break e}else if(h!==l){l=Vn(Error(r(424)),i),xl(l),i=A0(t,i,h,s);break e}else for($t=ua(i.stateNode.containerInfo.firstChild),sn=i,Ke=!0,la=null,va=!0,s=bp(i,null,h,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(bl(),h===l){i=Ia(t,i,s);break e}Yt(t,i,h,s)}i=i.child}return i;case 26:return Ml(t,i),t===null?(s=ky(i.type,null,i.pendingProps,null))?i.memoizedState=s:Ke||(s=i.type,t=i.pendingProps,l=Lu(Rt.current).createElement(s),l[pe]=i,l[Me]=t,Xt(l,s,t),lt(l),i.stateNode=l):i.memoizedState=ky(i.type,t.memoizedProps,i.pendingProps,t.memoizedState),null;case 27:return rl(i),t===null&&Ke&&(l=i.stateNode=Ry(i.type,i.pendingProps,Rt.current),sn=i,va=!0,$t=ua(l.firstChild)),l=i.pendingProps.children,t!==null||Ke?Yt(t,i,l,s):i.child=hr(i,null,l,s),Ml(t,i),i.child;case 5:return t===null&&Ke&&((c=l=$t)&&(l=gS(l,i.type,i.pendingProps,va),l!==null?(i.stateNode=l,sn=i,$t=ua(l.firstChild),va=!1,c=!0):c=!1),c||fr(i)),rl(i),c=i.type,h=i.pendingProps,w=t!==null?t.memoizedProps:null,l=h.children,ah(c,h)?l=null:w!==null&&ah(c,w)&&(i.flags|=32),i.memoizedState!==null&&(c=qd(t,i,D1,null,null,s),Kl._currentValue=c),Ml(t,i),Yt(t,i,l,s),i.child;case 6:return t===null&&Ke&&((t=s=$t)&&(s=pS(s,i.pendingProps,va),s!==null?(i.stateNode=s,sn=i,$t=null,t=!0):t=!1),t||fr(i)),null;case 13:return C0(t,i,s);case 4:return Yr(i,i.stateNode.containerInfo),l=i.pendingProps,t===null?i.child=hr(i,null,l,s):Yt(t,i,l,s),i.child;case 11:return p0(t,i,i.type,i.pendingProps,s);case 7:return Yt(t,i,i.pendingProps,s),i.child;case 8:return Yt(t,i,i.pendingProps.children,s),i.child;case 12:return Yt(t,i,i.pendingProps.children,s),i.child;case 10:return l=i.pendingProps,pi(i,i.type,l.value),Yt(t,i,l.children,s),i.child;case 9:return c=i.type._context,l=i.pendingProps.children,br(i),c=Jt(c),l=l(c),i.flags|=1,Yt(t,i,l,s),i.child;case 14:return y0(t,i,i.type,i.pendingProps,s);case 15:return v0(t,i,i.type,i.pendingProps,s);case 19:return j0(t,i,s);case 22:return w0(t,i,s);case 24:return br(i),l=Jt(Lt),t===null?(c=Vd(),c===null&&(c=ot,h=Fd(),c.pooledCache=h,h.refCount++,h!==null&&(c.pooledCacheLanes|=s),c=h),i.memoizedState={parent:l,cache:c},xf(i),pi(i,Lt,c)):((t.lanes&s)!==0&&(Sf(t,i),Bl(i,null,null,s),_l()),c=t.memoizedState,h=i.memoizedState,c.parent!==l?(c={parent:l,cache:l},i.memoizedState=c,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=c),pi(i,Lt,l)):(l=h.cache,pi(i,Lt,l),l!==c.cache&&bf(i,[Lt],s,!0))),Yt(t,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}var vf=Fe(null),wr=null,qa=null;function pi(t,i,s){De(vf,i._currentValue),i._currentValue=s}function Qa(t){t._currentValue=vf.current,Oe(vf)}function wf(t,i,s){for(;t!==null;){var l=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),t===s)break;t=t.return}}function bf(t,i,s,l){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var h=c.dependencies;if(h!==null){var w=c.child;h=h.firstContext;e:for(;h!==null;){var A=h;h=c;for(var T=0;T<i.length;T++)if(A.context===i[T]){h.lanes|=s,A=h.alternate,A!==null&&(A.lanes|=s),wf(h.return,s,t),l||(w=null);break e}h=A.next}}else if(c.tag===18){if(w=c.return,w===null)throw Error(r(341));w.lanes|=s,h=w.alternate,h!==null&&(h.lanes|=s),wf(w,s,t),w=null}else w=c.child;if(w!==null)w.return=c;else for(w=c;w!==null;){if(w===t){w=null;break}if(c=w.sibling,c!==null){c.return=w.return,w=c;break}w=w.return}c=w}}function Dl(t,i,s,l){t=null;for(var c=i,h=!1;c!==null;){if(!h){if((c.flags&524288)!==0)h=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var w=c.alternate;if(w===null)throw Error(r(387));if(w=w.memoizedProps,w!==null){var A=c.type;An(c.pendingProps.value,w.value)||(t!==null?t.push(A):t=[A])}}else if(c===$r.current){if(w=c.alternate,w===null)throw Error(r(387));w.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(Kl):t=[Kl])}c=c.return}t!==null&&bf(i,t,s,l),i.flags|=262144}function xu(t){for(t=t.firstContext;t!==null;){if(!An(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function br(t){wr=t,qa=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return N0(wr,t)}function Su(t,i){return wr===null&&br(t),N0(t,i)}function N0(t,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},qa===null){if(t===null)throw Error(r(308));qa=i,t.dependencies={lanes:0,firstContext:i},t.flags|=524288}else qa=qa.next=i;return s}var yi=!1;function xf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Sf(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function vi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function wi(t,i,s){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(vt&2)!==0){var c=l.pending;return c===null?i.next=i:(i.next=c.next,c.next=i),l.pending=i,i=nu(t),up(t,null,s),i}return tu(t,l,i,s),nu(t)}function Ol(t,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194176)!==0)){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,Ce(t,s)}}function Af(t,i){var s=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var c=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var w={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?c=h=w:h=h.next=w,s=s.next}while(s!==null);h===null?c=h=i:h=h.next=i}else c=h=i;s={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=i:t.next=i,s.lastBaseUpdate=i}var Cf=!1;function _l(){if(Cf){var t=fs;if(t!==null)throw t}}function Bl(t,i,s,l){Cf=!1;var c=t.updateQueue;yi=!1;var h=c.firstBaseUpdate,w=c.lastBaseUpdate,A=c.shared.pending;if(A!==null){c.shared.pending=null;var T=A,B=T.next;T.next=null,w===null?h=B:w.next=B,w=T;var J=t.alternate;J!==null&&(J=J.updateQueue,A=J.lastBaseUpdate,A!==w&&(A===null?J.firstBaseUpdate=B:A.next=B,J.lastBaseUpdate=T))}if(h!==null){var ae=c.baseState;w=0,J=B=T=null,A=h;do{var I=A.lane&-536870913,K=I!==A.lane;if(K?(Ye&I)===I:(l&I)===I){I!==0&&I===ds&&(Cf=!0),J!==null&&(J=J.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var we=t,_e=A;I=i;var Ct=s;switch(_e.tag){case 1:if(we=_e.payload,typeof we=="function"){ae=we.call(Ct,ae,I);break e}ae=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=_e.payload,I=typeof we=="function"?we.call(Ct,ae,I):we,I==null)break e;ae=ne({},ae,I);break e;case 2:yi=!0}}I=A.callback,I!==null&&(t.flags|=64,K&&(t.flags|=8192),K=c.callbacks,K===null?c.callbacks=[I]:K.push(I))}else K={lane:I,tag:A.tag,payload:A.payload,callback:A.callback,next:null},J===null?(B=J=K,T=ae):J=J.next=K,w|=I;if(A=A.next,A===null){if(A=c.shared.pending,A===null)break;K=A,A=K.next,K.next=null,c.lastBaseUpdate=K,c.shared.pending=null}}while(!0);J===null&&(T=ae),c.baseState=T,c.firstBaseUpdate=B,c.lastBaseUpdate=J,h===null&&(c.shared.lanes=0),Ci|=w,t.lanes=w,t.memoizedState=ae}}function T0(t,i){if(typeof t!="function")throw Error(r(191,t));t.call(i)}function k0(t,i){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;t<s.length;t++)T0(s[t],i)}function zl(t,i){try{var s=i.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var c=l.next;s=c;do{if((s.tag&t)===t){l=void 0;var h=s.create,w=s.inst;l=h(),w.destroy=l}s=s.next}while(s!==c)}}catch(A){it(i,i.return,A)}}function bi(t,i,s){try{var l=i.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var h=c.next;l=h;do{if((l.tag&t)===t){var w=l.inst,A=w.destroy;if(A!==void 0){w.destroy=void 0,c=i;var T=s;try{A()}catch(B){it(c,T,B)}}}l=l.next}while(l!==h)}}catch(B){it(i,i.return,B)}}function M0(t){var i=t.updateQueue;if(i!==null){var s=t.stateNode;try{k0(i,s)}catch(l){it(t,t.return,l)}}}function D0(t,i,s){s.props=vr(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(l){it(t,i,l)}}function xr(t,i){try{var s=t.ref;if(s!==null){var l=t.stateNode;switch(t.tag){case 26:case 27:case 5:var c=l;break;default:c=l}typeof s=="function"?t.refCleanup=s(c):s.current=c}}catch(h){it(t,i,h)}}function Cn(t,i){var s=t.ref,l=t.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(c){it(t,i,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){it(t,i,c)}else s.current=null}function O0(t){var i=t.type,s=t.memoizedProps,l=t.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(c){it(t,t.return,c)}}function _0(t,i,s){try{var l=t.stateNode;cS(l,t.type,s,i),l[Me]=i}catch(c){it(t,t.return,c)}}function B0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function Ef(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||B0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==27&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jf(t,i,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(t,i):s.insertBefore(t,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(t,s)):(i=s,i.appendChild(t)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=zu));else if(l!==4&&l!==27&&(t=t.child,t!==null))for(jf(t,i,s),t=t.sibling;t!==null;)jf(t,i,s),t=t.sibling}function Au(t,i,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,i?s.insertBefore(t,i):s.appendChild(t);else if(l!==4&&l!==27&&(t=t.child,t!==null))for(Au(t,i,s),t=t.sibling;t!==null;)Au(t,i,s),t=t.sibling}var Ga=!1,St=!1,Rf=!1,z0=typeof WeakSet=="function"?WeakSet:Set,Ft=null,L0=!1;function F1(t,i){if(t=t.containerInfo,th=Iu,t=ep(t),Nd(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var c=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break e}var w=0,A=-1,T=-1,B=0,J=0,ae=t,I=null;t:for(;;){for(var K;ae!==s||c!==0&&ae.nodeType!==3||(A=w+c),ae!==h||l!==0&&ae.nodeType!==3||(T=w+l),ae.nodeType===3&&(w+=ae.nodeValue.length),(K=ae.firstChild)!==null;)I=ae,ae=K;for(;;){if(ae===t)break t;if(I===s&&++B===c&&(A=w),I===h&&++J===l&&(T=w),(K=ae.nextSibling)!==null)break;ae=I,I=ae.parentNode}ae=K}s=A===-1||T===-1?null:{start:A,end:T}}else s=null}s=s||{start:0,end:0}}else s=null;for(nh={focusedElem:t,selectionRange:s},Iu=!1,Ft=i;Ft!==null;)if(i=Ft,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,Ft=t;else for(;Ft!==null;){switch(i=Ft,h=i.alternate,t=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&h!==null){t=void 0,s=i,c=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var we=vr(s.type,c,s.elementType===s.type);t=l.getSnapshotBeforeUpdate(we,h),l.__reactInternalSnapshotBeforeUpdate=t}catch(_e){it(s,s.return,_e)}}break;case 3:if((t&1024)!==0){if(t=i.stateNode.containerInfo,s=t.nodeType,s===9)sh(t);else if(s===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":sh(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=i.sibling,t!==null){t.return=i.return,Ft=t;break}Ft=i.return}return we=L0,L0=!1,we}function U0(t,i,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:Ya(t,s),l&4&&zl(5,s);break;case 1:if(Ya(t,s),l&4)if(t=s.stateNode,i===null)try{t.componentDidMount()}catch(A){it(s,s.return,A)}else{var c=vr(s.type,i.memoizedProps);i=i.memoizedState;try{t.componentDidUpdate(c,i,t.__reactInternalSnapshotBeforeUpdate)}catch(A){it(s,s.return,A)}}l&64&&M0(s),l&512&&xr(s,s.return);break;case 3:if(Ya(t,s),l&64&&(l=s.updateQueue,l!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{k0(l,t)}catch(A){it(s,s.return,A)}}break;case 26:Ya(t,s),l&512&&xr(s,s.return);break;case 27:case 5:Ya(t,s),i===null&&l&4&&O0(s),l&512&&xr(s,s.return);break;case 12:Ya(t,s);break;case 13:Ya(t,s),l&4&&P0(t,s);break;case 22:if(c=s.memoizedState!==null||Ga,!c){i=i!==null&&i.memoizedState!==null||St;var h=Ga,w=St;Ga=c,(St=i)&&!w?xi(t,s,(s.subtreeFlags&8772)!==0):Ya(t,s),Ga=h,St=w}l&512&&(s.memoizedProps.mode==="manual"?xr(s,s.return):Cn(s,s.return));break;default:Ya(t,s)}}function H0(t){var i=t.alternate;i!==null&&(t.alternate=null,H0(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&Ba(i)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Bt=null,En=!1;function $a(t,i,s){for(s=s.child;s!==null;)F0(t,i,s),s=s.sibling}function F0(t,i,s){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(ui,s)}catch{}switch(s.tag){case 26:St||Cn(s,i),$a(t,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:St||Cn(s,i);var l=Bt,c=En;for(Bt=s.stateNode,$a(t,i,s),s=s.stateNode,i=s.attributes;i.length;)s.removeAttributeNode(i[0]);Ba(s),Bt=l,En=c;break;case 5:St||Cn(s,i);case 6:c=Bt;var h=En;if(Bt=null,$a(t,i,s),Bt=c,En=h,Bt!==null)if(En)try{t=Bt,l=s.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)}catch(w){it(s,i,w)}else try{Bt.removeChild(s.stateNode)}catch(w){it(s,i,w)}break;case 18:Bt!==null&&(En?(i=Bt,s=s.stateNode,i.nodeType===8?rh(i.parentNode,s):i.nodeType===1&&rh(i,s),eo(i)):rh(Bt,s.stateNode));break;case 4:l=Bt,c=En,Bt=s.stateNode.containerInfo,En=!0,$a(t,i,s),Bt=l,En=c;break;case 0:case 11:case 14:case 15:St||bi(2,s,i),St||bi(4,s,i),$a(t,i,s);break;case 1:St||(Cn(s,i),l=s.stateNode,typeof l.componentWillUnmount=="function"&&D0(s,i,l)),$a(t,i,s);break;case 21:$a(t,i,s);break;case 22:St||Cn(s,i),St=(l=St)||s.memoizedState!==null,$a(t,i,s),St=l;break;default:$a(t,i,s)}}function P0(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{eo(t)}catch(s){it(i,i.return,s)}}function P1(t){switch(t.tag){case 13:case 19:var i=t.stateNode;return i===null&&(i=t.stateNode=new z0),i;case 22:return t=t.stateNode,i=t._retryCache,i===null&&(i=t._retryCache=new z0),i;default:throw Error(r(435,t.tag))}}function Nf(t,i){var s=P1(t);i.forEach(function(l){var c=eS.bind(null,t,l);s.has(l)||(s.add(l),l.then(c,c))})}function Gn(t,i){var s=i.deletions;if(s!==null)for(var l=0;l<s.length;l++){var c=s[l],h=t,w=i,A=w;e:for(;A!==null;){switch(A.tag){case 27:case 5:Bt=A.stateNode,En=!1;break e;case 3:Bt=A.stateNode.containerInfo,En=!0;break e;case 4:Bt=A.stateNode.containerInfo,En=!0;break e}A=A.return}if(Bt===null)throw Error(r(160));F0(h,w,c),Bt=null,En=!1,h=c.alternate,h!==null&&(h.return=null),c.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)V0(i,t),i=i.sibling}var oa=null;function V0(t,i){var s=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Gn(i,t),$n(t),l&4&&(bi(3,t,t.return),zl(3,t),bi(5,t,t.return));break;case 1:Gn(i,t),$n(t),l&512&&(St||s===null||Cn(s,s.return)),l&64&&Ga&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(s=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var c=oa;if(Gn(i,t),$n(t),l&512&&(St||s===null||Cn(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=t.memoizedState,s===null)if(l===null)if(t.stateNode===null){e:{l=t.type,s=t.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":h=c.getElementsByTagName("title")[0],(!h||h[Ln]||h[pe]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=c.createElement(l),c.head.insertBefore(h,c.querySelector("head > title"))),Xt(h,l,s),h[pe]=t,lt(h),l=h;break e;case"link":var w=Oy("link","href",c).get(l+(s.href||""));if(w){for(var A=0;A<w.length;A++)if(h=w[A],h.getAttribute("href")===(s.href==null?null:s.href)&&h.getAttribute("rel")===(s.rel==null?null:s.rel)&&h.getAttribute("title")===(s.title==null?null:s.title)&&h.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){w.splice(A,1);break t}}h=c.createElement(l),Xt(h,l,s),c.head.appendChild(h);break;case"meta":if(w=Oy("meta","content",c).get(l+(s.content||""))){for(A=0;A<w.length;A++)if(h=w[A],h.getAttribute("content")===(s.content==null?null:""+s.content)&&h.getAttribute("name")===(s.name==null?null:s.name)&&h.getAttribute("property")===(s.property==null?null:s.property)&&h.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&h.getAttribute("charset")===(s.charSet==null?null:s.charSet)){w.splice(A,1);break t}}h=c.createElement(l),Xt(h,l,s),c.head.appendChild(h);break;default:throw Error(r(468,l))}h[pe]=t,lt(h),l=h}t.stateNode=l}else _y(c,t.type,t.stateNode);else t.stateNode=Dy(c,l,t.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?_y(c,t.type,t.stateNode):Dy(c,l,t.memoizedProps)):l===null&&t.stateNode!==null&&_0(t,t.memoizedProps,s.memoizedProps)}break;case 27:if(l&4&&t.alternate===null){c=t.stateNode,h=t.memoizedProps;try{for(var T=c.firstChild;T;){var B=T.nextSibling,J=T.nodeName;T[Ln]||J==="HEAD"||J==="BODY"||J==="SCRIPT"||J==="STYLE"||J==="LINK"&&T.rel.toLowerCase()==="stylesheet"||c.removeChild(T),T=B}for(var ae=t.type,I=c.attributes;I.length;)c.removeAttributeNode(I[0]);Xt(c,ae,h),c[pe]=t,c[Me]=h}catch(we){it(t,t.return,we)}}case 5:if(Gn(i,t),$n(t),l&512&&(St||s===null||Cn(s,s.return)),t.flags&32){c=t.stateNode;try{Wr(c,"")}catch(we){it(t,t.return,we)}}l&4&&t.stateNode!=null&&(c=t.memoizedProps,_0(t,c,s!==null?s.memoizedProps:c)),l&1024&&(Rf=!0);break;case 6:if(Gn(i,t),$n(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,s=t.stateNode;try{s.nodeValue=l}catch(we){it(t,t.return,we)}}break;case 3:if(Fu=null,c=oa,oa=Uu(i.containerInfo),Gn(i,t),oa=c,$n(t),l&4&&s!==null&&s.memoizedState.isDehydrated)try{eo(i.containerInfo)}catch(we){it(t,t.return,we)}Rf&&(Rf=!1,I0(t));break;case 4:l=oa,oa=Uu(t.stateNode.containerInfo),Gn(i,t),$n(t),oa=l;break;case 12:Gn(i,t),$n(t);break;case 13:Gn(i,t),$n(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Lf=hn()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Nf(t,l)));break;case 22:if(l&512&&(St||s===null||Cn(s,s.return)),T=t.memoizedState!==null,B=s!==null&&s.memoizedState!==null,J=Ga,ae=St,Ga=J||T,St=ae||B,Gn(i,t),St=ae,Ga=J,$n(t),i=t.stateNode,i._current=t,i._visibility&=-3,i._visibility|=i._pendingVisibility&2,l&8192&&(i._visibility=T?i._visibility&-2:i._visibility|1,T&&(i=Ga||St,s===null||B||i||ps(t)),t.memoizedProps===null||t.memoizedProps.mode!=="manual"))e:for(s=null,i=t;;){if(i.tag===5||i.tag===26||i.tag===27){if(s===null){B=s=i;try{if(c=B.stateNode,T)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{w=B.stateNode,A=B.memoizedProps.style;var K=A!=null&&A.hasOwnProperty("display")?A.display:null;w.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(we){it(B,B.return,we)}}}else if(i.tag===6){if(s===null){B=i;try{B.stateNode.nodeValue=T?"":B.memoizedProps}catch(we){it(B,B.return,we)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===t)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=t.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Nf(t,s))));break;case 19:Gn(i,t),$n(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Nf(t,l)));break;case 21:break;default:Gn(i,t),$n(t)}}function $n(t){var i=t.flags;if(i&2){try{if(t.tag!==27){e:{for(var s=t.return;s!==null;){if(B0(s)){var l=s;break e}s=s.return}throw Error(r(160))}switch(l.tag){case 27:var c=l.stateNode,h=Ef(t);Au(t,h,c);break;case 5:var w=l.stateNode;l.flags&32&&(Wr(w,""),l.flags&=-33);var A=Ef(t);Au(t,A,w);break;case 3:case 4:var T=l.stateNode.containerInfo,B=Ef(t);jf(t,B,T);break;default:throw Error(r(161))}}}catch(J){it(t,t.return,J)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function I0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var i=t;I0(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),t=t.sibling}}function Ya(t,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)U0(t,i.alternate,i),i=i.sibling}function ps(t){for(t=t.child;t!==null;){var i=t;switch(i.tag){case 0:case 11:case 14:case 15:bi(4,i,i.return),ps(i);break;case 1:Cn(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&D0(i,i.return,s),ps(i);break;case 26:case 27:case 5:Cn(i,i.return),ps(i);break;case 22:Cn(i,i.return),i.memoizedState===null&&ps(i);break;default:ps(i)}t=t.sibling}}function xi(t,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,c=t,h=i,w=h.flags;switch(h.tag){case 0:case 11:case 15:xi(c,h,s),zl(4,h);break;case 1:if(xi(c,h,s),l=h,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(B){it(l,l.return,B)}if(l=h,c=l.updateQueue,c!==null){var A=l.stateNode;try{var T=c.shared.hiddenCallbacks;if(T!==null)for(c.shared.hiddenCallbacks=null,c=0;c<T.length;c++)T0(T[c],A)}catch(B){it(l,l.return,B)}}s&&w&64&&M0(h),xr(h,h.return);break;case 26:case 27:case 5:xi(c,h,s),s&&l===null&&w&4&&O0(h),xr(h,h.return);break;case 12:xi(c,h,s);break;case 13:xi(c,h,s),s&&w&4&&P0(c,h);break;case 22:h.memoizedState===null&&xi(c,h,s),xr(h,h.return);break;default:xi(c,h,s)}i=i.sibling}}function Tf(t,i){var s=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),t=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(t=i.memoizedState.cachePool.pool),t!==s&&(t!=null&&t.refCount++,s!=null&&jl(s))}function kf(t,i){t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&jl(t))}function Si(t,i,s,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)q0(t,i,s,l),i=i.sibling}function q0(t,i,s,l){var c=i.flags;switch(i.tag){case 0:case 11:case 15:Si(t,i,s,l),c&2048&&zl(9,i);break;case 3:Si(t,i,s,l),c&2048&&(t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&jl(t)));break;case 12:if(c&2048){Si(t,i,s,l),t=i.stateNode;try{var h=i.memoizedProps,w=h.id,A=h.onPostCommit;typeof A=="function"&&A(w,i.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){it(i,i.return,T)}}else Si(t,i,s,l);break;case 23:break;case 22:h=i.stateNode,i.memoizedState!==null?h._visibility&4?Si(t,i,s,l):Ll(t,i):h._visibility&4?Si(t,i,s,l):(h._visibility|=4,ys(t,i,s,l,(i.subtreeFlags&10256)!==0)),c&2048&&Tf(i.alternate,i);break;case 24:Si(t,i,s,l),c&2048&&kf(i.alternate,i);break;default:Si(t,i,s,l)}}function ys(t,i,s,l,c){for(c=c&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var h=t,w=i,A=s,T=l,B=w.flags;switch(w.tag){case 0:case 11:case 15:ys(h,w,A,T,c),zl(8,w);break;case 23:break;case 22:var J=w.stateNode;w.memoizedState!==null?J._visibility&4?ys(h,w,A,T,c):Ll(h,w):(J._visibility|=4,ys(h,w,A,T,c)),c&&B&2048&&Tf(w.alternate,w);break;case 24:ys(h,w,A,T,c),c&&B&2048&&kf(w.alternate,w);break;default:ys(h,w,A,T,c)}i=i.sibling}}function Ll(t,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=t,l=i,c=l.flags;switch(l.tag){case 22:Ll(s,l),c&2048&&Tf(l.alternate,l);break;case 24:Ll(s,l),c&2048&&kf(l.alternate,l);break;default:Ll(s,l)}i=i.sibling}}var Ul=8192;function vs(t){if(t.subtreeFlags&Ul)for(t=t.child;t!==null;)Q0(t),t=t.sibling}function Q0(t){switch(t.tag){case 26:vs(t),t.flags&Ul&&t.memoizedState!==null&&TS(oa,t.memoizedState,t.memoizedProps);break;case 5:vs(t);break;case 3:case 4:var i=oa;oa=Uu(t.stateNode.containerInfo),vs(t),oa=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=Ul,Ul=16777216,vs(t),Ul=i):vs(t));break;default:vs(t)}}function G0(t){var i=t.alternate;if(i!==null&&(t=i.child,t!==null)){i.child=null;do i=t.sibling,t.sibling=null,t=i;while(t!==null)}}function Hl(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Ft=l,Y0(l,t)}G0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$0(t),t=t.sibling}function $0(t){switch(t.tag){case 0:case 11:case 15:Hl(t),t.flags&2048&&bi(9,t,t.return);break;case 3:Hl(t);break;case 12:Hl(t);break;case 22:var i=t.stateNode;t.memoizedState!==null&&i._visibility&4&&(t.return===null||t.return.tag!==13)?(i._visibility&=-5,Cu(t)):Hl(t);break;default:Hl(t)}}function Cu(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Ft=l,Y0(l,t)}G0(t)}for(t=t.child;t!==null;){switch(i=t,i.tag){case 0:case 11:case 15:bi(8,i,i.return),Cu(i);break;case 22:s=i.stateNode,s._visibility&4&&(s._visibility&=-5,Cu(i));break;default:Cu(i)}t=t.sibling}}function Y0(t,i){for(;Ft!==null;){var s=Ft;switch(s.tag){case 0:case 11:case 15:bi(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:jl(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Ft=l;else e:for(s=t;Ft!==null;){l=Ft;var c=l.sibling,h=l.return;if(H0(l),l===s){Ft=null;break e}if(c!==null){c.return=h,Ft=c;break e}Ft=h}}}function V1(t,i,s,l){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(t,i,s,l){return new V1(t,i,s,l)}function Mf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ai(t,i){var s=t.alternate;return s===null?(s=Yn(t.tag,i,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=i,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&31457280,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,i=t.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s.refCleanup=t.refCleanup,s}function X0(t,i){t.flags&=31457282;var s=t.alternate;return s===null?(t.childLanes=0,t.lanes=i,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,t.type=s.type,i=s.dependencies,t.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),t}function Eu(t,i,s,l,c,h){var w=0;if(l=t,typeof t=="function")Mf(t)&&(w=1);else if(typeof t=="string")w=RS(t,s,wt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case p:return Sr(s.children,c,h,i);case g:w=8,c|=24;break;case y:return t=Yn(12,s,i,c|2),t.elementType=y,t.lanes=h,t;case E:return t=Yn(13,s,i,c),t.elementType=E,t.lanes=h,t;case C:return t=Yn(19,s,i,c),t.elementType=C,t.lanes=h,t;case _:return K0(s,c,h,i);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case v:case x:w=10;break e;case b:w=9;break e;case S:w=11;break e;case k:w=14;break e;case z:w=16,l=null;break e}w=29,s=Error(r(130,t===null?"null":typeof t,"")),l=null}return i=Yn(w,s,i,c),i.elementType=t,i.type=l,i.lanes=h,i}function Sr(t,i,s,l){return t=Yn(7,t,l,i),t.lanes=s,t}function K0(t,i,s,l){t=Yn(22,t,l,i),t.elementType=_,t.lanes=s;var c={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var h=c._current;if(h===null)throw Error(r(456));if((c._pendingVisibility&2)===0){var w=di(h,2);w!==null&&(c._pendingVisibility|=2,ln(w,h,2))}},attach:function(){var h=c._current;if(h===null)throw Error(r(456));if((c._pendingVisibility&2)!==0){var w=di(h,2);w!==null&&(c._pendingVisibility&=-3,ln(w,h,2))}}};return t.stateNode=c,t}function Df(t,i,s){return t=Yn(6,t,null,i),t.lanes=s,t}function Of(t,i,s){return i=Yn(4,t.children!==null?t.children:[],t.key,i),i.lanes=s,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}function Xa(t){t.flags|=4}function Z0(t,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!By(i)){if(i=Qn.current,i!==null&&((Ye&4194176)===Ye?wa!==null:(Ye&62914560)!==Ye&&(Ye&536870912)===0||i!==wa))throw Al=Ld,mp;t.flags|=8192}}function ju(t,i){i!==null&&(t.flags|=4),t.flags&16384&&(i=t.tag!==22?H():536870912,t.lanes|=i,bs|=i)}function Fl(t,i){if(!Ke)switch(t.tailMode){case"hidden":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function yt(t){var i=t.alternate!==null&&t.alternate.child===t.child,s=0,l=0;if(i)for(var c=t.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags&31457280,l|=c.flags&31457280,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)s|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=l,t.childLanes=s,i}function I1(t,i,s){var l=i.pendingProps;switch(Bd(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(i),null;case 1:return yt(i),null;case 3:return s=i.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Qa(Lt),Oa(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(wl(i)?Xa(i):t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,la!==null&&(Pf(la),la=null))),yt(i),null;case 26:return s=i.memoizedState,t===null?(Xa(i),s!==null?(yt(i),Z0(i,s)):(yt(i),i.flags&=-16777217)):s?s!==t.memoizedState?(Xa(i),yt(i),Z0(i,s)):(yt(i),i.flags&=-16777217):(t.memoizedProps!==l&&Xa(i),yt(i),i.flags&=-16777217),null;case 27:Xr(i),s=Rt.current;var c=i.type;if(t!==null&&i.stateNode!=null)t.memoizedProps!==l&&Xa(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return yt(i),null}t=wt.current,wl(i)?fp(i):(t=Ry(c,l,s),i.stateNode=t,Xa(i))}return yt(i),null;case 5:if(Xr(i),s=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==l&&Xa(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return yt(i),null}if(t=wt.current,wl(i))fp(i);else{switch(c=Lu(Rt.current),t){case 1:t=c.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:t=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":t=c.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":t=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":t=c.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?c.createElement(s,{is:l.is}):c.createElement(s)}}t[pe]=i,t[Me]=l;e:for(c=i.child;c!==null;){if(c.tag===5||c.tag===6)t.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===i)break e;for(;c.sibling===null;){if(c.return===null||c.return===i)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}i.stateNode=t;e:switch(Xt(t,s,l),s){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Xa(i)}}return yt(i),i.flags&=-16777217,null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==l&&Xa(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(r(166));if(t=Rt.current,wl(i)){if(t=i.stateNode,s=i.memoizedProps,l=null,c=sn,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}t[pe]=i,t=!!(t.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||xy(t.nodeValue,s)),t||fr(i)}else t=Lu(t).createTextNode(l),t[pe]=i,i.stateNode=t}return yt(i),null;case 13:if(l=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=wl(i),l!==null&&l.dehydrated!==null){if(t===null){if(!c)throw Error(r(318));if(c=i.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[pe]=i}else bl(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;yt(i),c=!1}else la!==null&&(Pf(la),la=null),c=!0;if(!c)return i.flags&256?(Pa(i),i):(Pa(i),null)}if(Pa(i),(i.flags&128)!==0)return i.lanes=s,i;if(s=l!==null,t=t!==null&&t.memoizedState!==null,s){l=i.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool);var h=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==c&&(l.flags|=2048)}return s!==t&&s&&(i.child.flags|=8192),ju(i,i.updateQueue),yt(i),null;case 4:return Oa(),t===null&&Jf(i.stateNode.containerInfo),yt(i),null;case 10:return Qa(i.type),yt(i),null;case 19:if(Oe(zt),c=i.memoizedState,c===null)return yt(i),null;if(l=(i.flags&128)!==0,h=c.rendering,h===null)if(l)Fl(c,!1);else{if(At!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(h=uu(t),h!==null){for(i.flags|=128,Fl(c,!1),t=h.updateQueue,i.updateQueue=t,ju(i,t),i.subtreeFlags=0,t=s,s=i.child;s!==null;)X0(s,t),s=s.sibling;return De(zt,zt.current&1|2),i.child}t=t.sibling}c.tail!==null&&hn()>Ru&&(i.flags|=128,l=!0,Fl(c,!1),i.lanes=4194304)}else{if(!l)if(t=uu(h),t!==null){if(i.flags|=128,l=!0,t=t.updateQueue,i.updateQueue=t,ju(i,t),Fl(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Ke)return yt(i),null}else 2*hn()-c.renderingStartTime>Ru&&s!==536870912&&(i.flags|=128,l=!0,Fl(c,!1),i.lanes=4194304);c.isBackwards?(h.sibling=i.child,i.child=h):(t=c.last,t!==null?t.sibling=h:i.child=h,c.last=h)}return c.tail!==null?(i=c.tail,c.rendering=i,c.tail=i.sibling,c.renderingStartTime=hn(),i.sibling=null,t=zt.current,De(zt,l?t&1|2:t&1),i):(yt(i),null);case 22:case 23:return Pa(i),Hd(),l=i.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(s&536870912)!==0&&(i.flags&128)===0&&(yt(i),i.subtreeFlags&6&&(i.flags|=8192)):yt(i),s=i.updateQueue,s!==null&&ju(i,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==s&&(i.flags|=2048),t!==null&&Oe(mr),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Qa(Lt),yt(i),null;case 25:return null}throw Error(r(156,i.tag))}function q1(t,i){switch(Bd(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return Qa(Lt),Oa(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return Xr(i),null;case 13:if(Pa(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));bl()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return Oe(zt),null;case 4:return Oa(),null;case 10:return Qa(i.type),null;case 22:case 23:return Pa(i),Hd(),t!==null&&Oe(mr),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return Qa(Lt),null;case 25:return null;default:return null}}function J0(t,i){switch(Bd(i),i.tag){case 3:Qa(Lt),Oa();break;case 26:case 27:case 5:Xr(i);break;case 4:Oa();break;case 13:Pa(i);break;case 19:Oe(zt);break;case 10:Qa(i.type);break;case 22:case 23:Pa(i),Hd(),t!==null&&Oe(mr);break;case 24:Qa(Lt)}}var Q1={getCacheForType:function(t){var i=Jt(Lt),s=i.data.get(t);return s===void 0&&(s=t(),i.data.set(t,s)),s}},G1=typeof WeakMap=="function"?WeakMap:Map,vt=0,ot=null,Ve=null,Ye=0,ut=0,jn=null,Ka=!1,ws=!1,_f=!1,Za=0,At=0,Ci=0,Ar=0,Bf=0,Xn=0,bs=0,Pl=null,xa=null,zf=!1,Lf=0,Ru=1/0,Nu=null,Ei=null,Tu=!1,Cr=null,Vl=0,Uf=0,Hf=null,Il=0,Ff=null;function Rn(){if((vt&2)!==0&&Ye!==0)return Ye&-Ye;if(Q.T!==null){var t=ds;return t!==0?t:Yf()}return be()}function W0(){Xn===0&&(Xn=(Ye&536870912)===0||Ke?D():536870912);var t=Qn.current;return t!==null&&(t.flags|=32),Xn}function ln(t,i,s){(t===ot&&ut===2||t.cancelPendingCommit!==null)&&(xs(t,0),Ja(t,Ye,Xn,!1)),ie(t,s),((vt&2)===0||t!==ot)&&(t===ot&&((vt&2)===0&&(Ar|=s),At===4&&Ja(t,Ye,Xn,!1)),Sa(t))}function ey(t,i,s){if((vt&6)!==0)throw Error(r(327));var l=!s&&(i&60)===0&&(i&t.expiredLanes)===0||ar(t,i),c=l?X1(t,i):qf(t,i,!0),h=l;do{if(c===0){ws&&!l&&Ja(t,i,0,!1);break}else if(c===6)Ja(t,i,0,!Ka);else{if(s=t.current.alternate,h&&!$1(s)){c=qf(t,i,!1),h=!1;continue}if(c===2){if(h=i,t.errorRecoveryDisabledLanes&h)var w=0;else w=t.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){i=w;e:{var A=t;c=Pl;var T=A.current.memoizedState.isDehydrated;if(T&&(xs(A,w).flags|=256),w=qf(A,w,!1),w!==2){if(_f&&!T){A.errorRecoveryDisabledLanes|=h,Ar|=h,c=4;break e}h=xa,xa=c,h!==null&&Pf(h)}c=w}if(h=!1,c!==2)continue}}if(c===1){xs(t,0),Ja(t,i,0,!0);break}e:{switch(l=t,c){case 0:case 1:throw Error(r(345));case 4:if((i&4194176)===i){Ja(l,i,Xn,!Ka);break e}break;case 2:xa=null;break;case 3:case 5:break;default:throw Error(r(329))}if(l.finishedWork=s,l.finishedLanes=i,(i&62914560)===i&&(h=Lf+300-hn(),10<h)){if(Ja(l,i,Xn,!Ka),_a(l,0)!==0)break e;l.timeoutHandle=Cy(ty.bind(null,l,s,xa,Nu,zf,i,Xn,Ar,bs,Ka,2,-0,0),h);break e}ty(l,s,xa,Nu,zf,i,Xn,Ar,bs,Ka,0,-0,0)}}break}while(!0);Sa(t)}function Pf(t){xa===null?xa=t:xa.push.apply(xa,t)}function ty(t,i,s,l,c,h,w,A,T,B,J,ae,I){var K=i.subtreeFlags;if((K&8192||(K&16785408)===16785408)&&(Xl={stylesheets:null,count:0,unsuspend:NS},Q0(i),i=kS(),i!==null)){t.cancelPendingCommit=i(oy.bind(null,t,s,l,c,w,A,T,1,ae,I)),Ja(t,h,w,!B);return}oy(t,s,l,c,w,A,T,J,ae,I)}function $1(t){for(var i=t;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var c=s[l],h=c.getSnapshot;c=c.value;try{if(!An(h(),c))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ja(t,i,s,l){i&=~Bf,i&=~Ar,t.suspendedLanes|=i,t.pingedLanes&=~i,l&&(t.warmLanes|=i),l=t.expirationTimes;for(var c=i;0<c;){var h=31-Zt(c),w=1<<h;l[h]=-1,c&=~w}s!==0&&je(t,s,i)}function ku(){return(vt&6)===0?(ql(0),!1):!0}function Vf(){if(Ve!==null){if(ut===0)var t=Ve.return;else t=Ve,qa=wr=null,$d(t),us=null,Cl=0,t=Ve;for(;t!==null;)J0(t.alternate,t),t=t.return;Ve=null}}function xs(t,i){t.finishedWork=null,t.finishedLanes=0;var s=t.timeoutHandle;s!==-1&&(t.timeoutHandle=-1,fS(s)),s=t.cancelPendingCommit,s!==null&&(t.cancelPendingCommit=null,s()),Vf(),ot=t,Ve=s=Ai(t.current,null),Ye=i,ut=0,jn=null,Ka=!1,ws=ar(t,i),_f=!1,bs=Xn=Bf=Ar=Ci=At=0,xa=Pl=null,zf=!1,(i&8)!==0&&(i|=i&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=i;0<l;){var c=31-Zt(l),h=1<<c;i|=t[c],l&=~h}return Za=i,eu(),s}function ny(t,i){He=null,Q.H=ba,i===Sl?(i=yp(),ut=3):i===mp?(i=yp(),ut=4):ut=i===g0?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,jn=i,Ve===null&&(At=1,bu(t,Vn(i,t.current)))}function ay(){var t=Q.H;return Q.H=ba,t===null?ba:t}function iy(){var t=Q.A;return Q.A=Q1,t}function If(){At=4,Ka||(Ye&4194176)!==Ye&&Qn.current!==null||(ws=!0),(Ci&134217727)===0&&(Ar&134217727)===0||ot===null||Ja(ot,Ye,Xn,!1)}function qf(t,i,s){var l=vt;vt|=2;var c=ay(),h=iy();(ot!==t||Ye!==i)&&(Nu=null,xs(t,i)),i=!1;var w=At;e:do try{if(ut!==0&&Ve!==null){var A=Ve,T=jn;switch(ut){case 8:Vf(),w=6;break e;case 3:case 2:case 6:Qn.current===null&&(i=!0);var B=ut;if(ut=0,jn=null,Ss(t,A,T,B),s&&ws){w=0;break e}break;default:B=ut,ut=0,jn=null,Ss(t,A,T,B)}}Y1(),w=At;break}catch(J){ny(t,J)}while(!0);return i&&t.shellSuspendCounter++,qa=wr=null,vt=l,Q.H=c,Q.A=h,Ve===null&&(ot=null,Ye=0,eu()),w}function Y1(){for(;Ve!==null;)ry(Ve)}function X1(t,i){var s=vt;vt|=2;var l=ay(),c=iy();ot!==t||Ye!==i?(Nu=null,Ru=hn()+500,xs(t,i)):ws=ar(t,i);e:do try{if(ut!==0&&Ve!==null){i=Ve;var h=jn;t:switch(ut){case 1:ut=0,jn=null,Ss(t,i,h,1);break;case 2:if(gp(h)){ut=0,jn=null,sy(i);break}i=function(){ut===2&&ot===t&&(ut=7),Sa(t)},h.then(i,i);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:gp(h)?(ut=0,jn=null,sy(i)):(ut=0,jn=null,Ss(t,i,h,7));break;case 5:var w=null;switch(Ve.tag){case 26:w=Ve.memoizedState;case 5:case 27:var A=Ve;if(!w||By(w)){ut=0,jn=null;var T=A.sibling;if(T!==null)Ve=T;else{var B=A.return;B!==null?(Ve=B,Mu(B)):Ve=null}break t}}ut=0,jn=null,Ss(t,i,h,5);break;case 6:ut=0,jn=null,Ss(t,i,h,6);break;case 8:Vf(),At=6;break e;default:throw Error(r(462))}}K1();break}catch(J){ny(t,J)}while(!0);return qa=wr=null,Q.H=l,Q.A=c,vt=s,Ve!==null?0:(ot=null,Ye=0,eu(),At)}function K1(){for(;Ve!==null&&!tr();)ry(Ve)}function ry(t){var i=R0(t.alternate,t,Za);t.memoizedProps=t.pendingProps,i===null?Mu(t):Ve=i}function sy(t){var i=t,s=i.alternate;switch(i.tag){case 15:case 0:i=x0(s,i,i.pendingProps,i.type,void 0,Ye);break;case 11:i=x0(s,i,i.pendingProps,i.type.render,i.ref,Ye);break;case 5:$d(i);default:J0(s,i),i=Ve=X0(i,Za),i=R0(s,i,Za)}t.memoizedProps=t.pendingProps,i===null?Mu(t):Ve=i}function Ss(t,i,s,l){qa=wr=null,$d(i),us=null,Cl=0;var c=i.return;try{if(U1(t,c,i,s,Ye)){At=1,bu(t,Vn(s,t.current)),Ve=null;return}}catch(h){if(c!==null)throw Ve=c,h;At=1,bu(t,Vn(s,t.current)),Ve=null;return}i.flags&32768?(Ke||l===1?t=!0:ws||(Ye&536870912)!==0?t=!1:(Ka=t=!0,(l===2||l===3||l===6)&&(l=Qn.current,l!==null&&l.tag===13&&(l.flags|=16384))),ly(i,t)):Mu(i)}function Mu(t){var i=t;do{if((i.flags&32768)!==0){ly(i,Ka);return}t=i.return;var s=I1(i.alternate,i,Za);if(s!==null){Ve=s;return}if(i=i.sibling,i!==null){Ve=i;return}Ve=i=t}while(i!==null);At===0&&(At=5)}function ly(t,i){do{var s=q1(t.alternate,t);if(s!==null){s.flags&=32767,Ve=s;return}if(s=t.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(t=t.sibling,t!==null)){Ve=t;return}Ve=t=s}while(t!==null);At=6,Ve=null}function oy(t,i,s,l,c,h,w,A,T,B){var J=Q.T,ae=se.p;try{se.p=2,Q.T=null,Z1(t,i,s,l,ae,c,h,w,A,T,B)}finally{Q.T=J,se.p=ae}}function Z1(t,i,s,l,c,h,w,A){do As();while(Cr!==null);if((vt&6)!==0)throw Error(r(327));var T=t.finishedWork;if(l=t.finishedLanes,T===null)return null;if(t.finishedWork=null,t.finishedLanes=0,T===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var B=T.lanes|T.childLanes;if(B|=Dd,de(t,l,B,h,w,A),t===ot&&(Ve=ot=null,Ye=0),(T.subtreeFlags&10256)===0&&(T.flags&10256)===0||Tu||(Tu=!0,Uf=B,Hf=s,tS(oi,function(){return As(),null})),s=(T.flags&15990)!==0,(T.subtreeFlags&15990)!==0||s?(s=Q.T,Q.T=null,h=se.p,se.p=2,w=vt,vt|=4,F1(t,T),V0(T,t),x1(nh,t.containerInfo),Iu=!!th,nh=th=null,t.current=T,U0(t,T.alternate,T),Uo(),vt=w,se.p=h,Q.T=s):t.current=T,Tu?(Tu=!1,Cr=t,Vl=l):uy(t,B),B=t.pendingLanes,B===0&&(Ei=null),Po(T.stateNode),Sa(t),i!==null)for(c=t.onRecoverableError,T=0;T<i.length;T++)B=i[T],c(B.value,{componentStack:B.stack});return(Vl&3)!==0&&As(),B=t.pendingLanes,(l&4194218)!==0&&(B&42)!==0?t===Ff?Il++:(Il=0,Ff=t):Il=0,ql(0),null}function uy(t,i){(t.pooledCacheLanes&=i)===0&&(i=t.pooledCache,i!=null&&(t.pooledCache=null,jl(i)))}function As(){if(Cr!==null){var t=Cr,i=Uf;Uf=0;var s=ve(Vl),l=Q.T,c=se.p;try{if(se.p=32>s?32:s,Q.T=null,Cr===null)var h=!1;else{s=Hf,Hf=null;var w=Cr,A=Vl;if(Cr=null,Vl=0,(vt&6)!==0)throw Error(r(331));var T=vt;if(vt|=4,$0(w.current),q0(w,w.current,A,s),vt=T,ql(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(ui,w)}catch{}h=!0}return h}finally{se.p=c,Q.T=l,uy(t,i)}}return!1}function cy(t,i,s){i=Vn(s,i),i=of(t.stateNode,i,2),t=wi(t,i,2),t!==null&&(ie(t,2),Sa(t))}function it(t,i,s){if(t.tag===3)cy(t,t,s);else for(;i!==null;){if(i.tag===3){cy(i,t,s);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ei===null||!Ei.has(l))){t=Vn(s,t),s=h0(2),l=wi(i,s,2),l!==null&&(m0(s,l,i,t),ie(l,2),Sa(l));break}}i=i.return}}function Qf(t,i,s){var l=t.pingCache;if(l===null){l=t.pingCache=new G1;var c=new Set;l.set(i,c)}else c=l.get(i),c===void 0&&(c=new Set,l.set(i,c));c.has(s)||(_f=!0,c.add(s),t=J1.bind(null,t,i,s),i.then(t,t))}function J1(t,i,s){var l=t.pingCache;l!==null&&l.delete(i),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,ot===t&&(Ye&s)===s&&(At===4||At===3&&(Ye&62914560)===Ye&&300>hn()-Lf?(vt&2)===0&&xs(t,0):Bf|=s,bs===Ye&&(bs=0)),Sa(t)}function dy(t,i){i===0&&(i=H()),t=di(t,i),t!==null&&(ie(t,i),Sa(t))}function W1(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),dy(t,s)}function eS(t,i){var s=0;switch(t.tag){case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(s=c.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(i),dy(t,s)}function tS(t,i){return ll(t,i)}var Du=null,Cs=null,Gf=!1,Ou=!1,$f=!1,Er=0;function Sa(t){t!==Cs&&t.next===null&&(Cs===null?Du=Cs=t:Cs=Cs.next=t),Ou=!0,Gf||(Gf=!0,aS(nS))}function ql(t,i){if(!$f&&Ou){$f=!0;do for(var s=!1,l=Du;l!==null;){if(t!==0){var c=l.pendingLanes;if(c===0)var h=0;else{var w=l.suspendedLanes,A=l.pingedLanes;h=(1<<31-Zt(42|t)+1)-1,h&=c&~(w&~A),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(s=!0,my(l,h))}else h=Ye,h=_a(l,l===ot?h:0),(h&3)===0||ar(l,h)||(s=!0,my(l,h));l=l.next}while(s);$f=!1}}function nS(){Ou=Gf=!1;var t=0;Er!==0&&(dS()&&(t=Er),Er=0);for(var i=hn(),s=null,l=Du;l!==null;){var c=l.next,h=fy(l,i);h===0?(l.next=null,s===null?Du=c:s.next=c,c===null&&(Cs=s)):(s=l,(t!==0||(h&3)!==0)&&(Ou=!0)),l=c}ql(t)}function fy(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,h=t.pendingLanes&-62914561;0<h;){var w=31-Zt(h),A=1<<w,T=c[w];T===-1?((A&s)===0||(A&l)!==0)&&(c[w]=fd(A,i)):T<=i&&(t.expiredLanes|=A),h&=~A}if(i=ot,s=Ye,s=_a(t,t===i?s:0),l=t.callbackNode,s===0||t===i&&ut===2||t.cancelPendingCommit!==null)return l!==null&&l!==null&&ia(l),t.callbackNode=null,t.callbackPriority=0;if((s&3)===0||ar(t,s)){if(i=s&-s,i===t.callbackPriority)return i;switch(l!==null&&ia(l),ve(s)){case 2:case 8:s=ol;break;case 32:s=oi;break;case 268435456:s=ra;break;default:s=oi}return l=hy.bind(null,t),s=ll(s,l),t.callbackPriority=i,t.callbackNode=s,i}return l!==null&&l!==null&&ia(l),t.callbackPriority=2,t.callbackNode=null,2}function hy(t,i){var s=t.callbackNode;if(As()&&t.callbackNode!==s)return null;var l=Ye;return l=_a(t,t===ot?l:0),l===0?null:(ey(t,l,i),fy(t,hn()),t.callbackNode!=null&&t.callbackNode===s?hy.bind(null,t):null)}function my(t,i){if(As())return null;ey(t,i,!0)}function aS(t){hS(function(){(vt&6)!==0?ll(Bn,t):t()})}function Yf(){return Er===0&&(Er=D()),Er}function gy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:$o(""+t)}function py(t,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,t.id&&s.setAttribute("form",t.id),i.parentNode.insertBefore(s,i),t=new FormData(t),s.parentNode.removeChild(s),t}function iS(t,i,s,l,c){if(i==="submit"&&s&&s.stateNode===c){var h=gy((c[Me]||null).action),w=l.submitter;w&&(i=(i=w[Me]||null)?gy(i.formAction):w.getAttribute("formAction"),i!==null&&(h=i,w=null));var A=new Zo("action","action",null,l,c);t.push({event:A,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Er!==0){var T=w?py(c,w):new FormData(c);nf(s,{pending:!0,data:T,method:c.method,action:h},null,T)}}else typeof h=="function"&&(A.preventDefault(),T=w?py(c,w):new FormData(c),nf(s,{pending:!0,data:T,method:c.method,action:h},h,T))},currentTarget:c}]})}}for(var Xf=0;Xf<op.length;Xf++){var Kf=op[Xf],rS=Kf.toLowerCase(),sS=Kf[0].toUpperCase()+Kf.slice(1);sa(rS,"on"+sS)}sa(ap,"onAnimationEnd"),sa(ip,"onAnimationIteration"),sa(rp,"onAnimationStart"),sa("dblclick","onDoubleClick"),sa("focusin","onFocus"),sa("focusout","onBlur"),sa(A1,"onTransitionRun"),sa(C1,"onTransitionStart"),sa(E1,"onTransitionCancel"),sa(sp,"onTransitionEnd"),gt("onMouseEnter",["mouseout","mouseover"]),gt("onMouseLeave",["mouseout","mouseover"]),gt("onPointerEnter",["pointerout","pointerover"]),gt("onPointerLeave",["pointerout","pointerover"]),$e("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$e("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$e("onBeforeInput",["compositionend","keypress","textInput","paste"]),$e("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ql="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(" "),lS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ql));function yy(t,i){i=(i&4)!==0;for(var s=0;s<t.length;s++){var l=t[s],c=l.event;l=l.listeners;e:{var h=void 0;if(i)for(var w=l.length-1;0<=w;w--){var A=l[w],T=A.instance,B=A.currentTarget;if(A=A.listener,T!==h&&c.isPropagationStopped())break e;h=A,c.currentTarget=B;try{h(c)}catch(J){wu(J)}c.currentTarget=null,h=T}else for(w=0;w<l.length;w++){if(A=l[w],T=A.instance,B=A.currentTarget,A=A.listener,T!==h&&c.isPropagationStopped())break e;h=A,c.currentTarget=B;try{h(c)}catch(J){wu(J)}c.currentTarget=null,h=T}}}}function qe(t,i){var s=i[Dt];s===void 0&&(s=i[Dt]=new Set);var l=t+"__bubble";s.has(l)||(vy(i,t,2,!1),s.add(l))}function Zf(t,i,s){var l=0;i&&(l|=4),vy(s,t,l,i)}var _u="_reactListening"+Math.random().toString(36).slice(2);function Jf(t){if(!t[_u]){t[_u]=!0,ir.forEach(function(s){s!=="selectionchange"&&(lS.has(s)||Zf(s,!1,t),Zf(s,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[_u]||(i[_u]=!0,Zf("selectionchange",!1,i))}}function vy(t,i,s,l){switch(Py(i)){case 2:var c=OS;break;case 8:c=_S;break;default:c=dh}s=c.bind(null,i,s,t),c=void 0,!wd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(c=!0),l?c!==void 0?t.addEventListener(i,s,{capture:!0,passive:c}):t.addEventListener(i,s,!0):c!==void 0?t.addEventListener(i,s,{passive:c}):t.addEventListener(i,s,!1)}function Wf(t,i,s,l,c){var h=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var w=l.tag;if(w===3||w===4){var A=l.stateNode.containerInfo;if(A===c||A.nodeType===8&&A.parentNode===c)break;if(w===4)for(w=l.return;w!==null;){var T=w.tag;if((T===3||T===4)&&(T=w.stateNode.containerInfo,T===c||T.nodeType===8&&T.parentNode===c))return;w=w.return}for(;A!==null;){if(w=Qt(A),w===null)return;if(T=w.tag,T===5||T===6||T===26||T===27){l=h=w;continue e}A=A.parentNode}}l=l.return}Og(function(){var B=h,J=yd(s),ae=[];e:{var I=lp.get(t);if(I!==void 0){var K=Zo,we=t;switch(t){case"keypress":if(Xo(s)===0)break e;case"keydown":case"keyup":K=e1;break;case"focusin":we="focus",K=Ad;break;case"focusout":we="blur",K=Ad;break;case"beforeblur":case"afterblur":K=Ad;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=zg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=V2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=a1;break;case ap:case ip:case rp:K=Q2;break;case sp:K=r1;break;case"scroll":case"scrollend":K=F2;break;case"wheel":K=l1;break;case"copy":case"cut":case"paste":K=$2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Ug;break;case"toggle":case"beforetoggle":K=u1}var _e=(i&4)!==0,Ct=!_e&&(t==="scroll"||t==="scrollend"),U=_e?I!==null?I+"Capture":null:I;_e=[];for(var O=B,V;O!==null;){var ee=O;if(V=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||V===null||U===null||(ee=cl(O,U),ee!=null&&_e.push(Gl(O,ee,V))),Ct)break;O=O.return}0<_e.length&&(I=new K(I,we,null,s,J),ae.push({event:I,listeners:_e}))}}if((i&7)===0){e:{if(I=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",I&&s!==pd&&(we=s.relatedTarget||s.fromElement)&&(Qt(we)||we[tt]))break e;if((K||I)&&(I=J.window===J?J:(I=J.ownerDocument)?I.defaultView||I.parentWindow:window,K?(we=s.relatedTarget||s.toElement,K=B,we=we?Qt(we):null,we!==null&&(Ct=G(we),_e=we.tag,we!==Ct||_e!==5&&_e!==27&&_e!==6)&&(we=null)):(K=null,we=B),K!==we)){if(_e=zg,ee="onMouseLeave",U="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(_e=Ug,ee="onPointerLeave",U="onPointerEnter",O="pointer"),Ct=K==null?I:za(K),V=we==null?I:za(we),I=new _e(ee,O+"leave",K,s,J),I.target=Ct,I.relatedTarget=V,ee=null,Qt(J)===B&&(_e=new _e(U,O+"enter",we,s,J),_e.target=V,_e.relatedTarget=Ct,ee=_e),Ct=ee,K&&we)t:{for(_e=K,U=we,O=0,V=_e;V;V=Es(V))O++;for(V=0,ee=U;ee;ee=Es(ee))V++;for(;0<O-V;)_e=Es(_e),O--;for(;0<V-O;)U=Es(U),V--;for(;O--;){if(_e===U||U!==null&&_e===U.alternate)break t;_e=Es(_e),U=Es(U)}_e=null}else _e=null;K!==null&&wy(ae,I,K,_e,!1),we!==null&&Ct!==null&&wy(ae,Ct,we,_e,!0)}}e:{if(I=B?za(B):window,K=I.nodeName&&I.nodeName.toLowerCase(),K==="select"||K==="input"&&I.type==="file")var ye=Gg;else if(qg(I))if($g)ye=w1;else{ye=y1;var Pe=p1}else K=I.nodeName,!K||K.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?B&&gd(B.elementType)&&(ye=Gg):ye=v1;if(ye&&(ye=ye(t,B))){Qg(ae,ye,s,J);break e}Pe&&Pe(t,I,B),t==="focusout"&&B&&I.type==="number"&&B.memoizedProps.value!=null&&md(I,"number",I.value)}switch(Pe=B?za(B):window,t){case"focusin":(qg(Pe)||Pe.contentEditable==="true")&&(as=Pe,Td=B,vl=null);break;case"focusout":vl=Td=as=null;break;case"mousedown":kd=!0;break;case"contextmenu":case"mouseup":case"dragend":kd=!1,tp(ae,s,J);break;case"selectionchange":if(S1)break;case"keydown":case"keyup":tp(ae,s,J)}var xe;if(Ed)e:{switch(t){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else ns?Vg(t,s)&&(Re="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Re="onCompositionStart");Re&&(Hg&&s.locale!=="ko"&&(ns||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&ns&&(xe=_g()):(ci=J,bd="value"in ci?ci.value:ci.textContent,ns=!0)),Pe=Bu(B,Re),0<Pe.length&&(Re=new Lg(Re,t,null,s,J),ae.push({event:Re,listeners:Pe}),xe?Re.data=xe:(xe=Ig(s),xe!==null&&(Re.data=xe)))),(xe=d1?f1(t,s):h1(t,s))&&(Re=Bu(B,"onBeforeInput"),0<Re.length&&(Pe=new Lg("onBeforeInput","beforeinput",null,s,J),ae.push({event:Pe,listeners:Re}),Pe.data=xe)),iS(ae,t,B,s,J)}yy(ae,i)})}function Gl(t,i,s){return{instance:t,listener:i,currentTarget:s}}function Bu(t,i){for(var s=i+"Capture",l=[];t!==null;){var c=t,h=c.stateNode;c=c.tag,c!==5&&c!==26&&c!==27||h===null||(c=cl(t,s),c!=null&&l.unshift(Gl(t,c,h)),c=cl(t,i),c!=null&&l.push(Gl(t,c,h))),t=t.return}return l}function Es(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function wy(t,i,s,l,c){for(var h=i._reactName,w=[];s!==null&&s!==l;){var A=s,T=A.alternate,B=A.stateNode;if(A=A.tag,T!==null&&T===l)break;A!==5&&A!==26&&A!==27||B===null||(T=B,c?(B=cl(s,h),B!=null&&w.unshift(Gl(s,B,T))):c||(B=cl(s,h),B!=null&&w.push(Gl(s,B,T)))),s=s.return}w.length!==0&&t.push({event:i,listeners:w})}var oS=/\r\n?/g,uS=/\u0000|\uFFFD/g;function by(t){return(typeof t=="string"?t:""+t).replace(oS,`
`).replace(uS,"")}function xy(t,i){return i=by(i),by(t)===i}function zu(){}function at(t,i,s,l,c,h){switch(s){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||Wr(t,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&Wr(t,""+l);break;case"className":qo(t,"class",l);break;case"tabIndex":qo(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qo(t,s,l);break;case"style":Mg(t,l,h);break;case"data":if(i!=="object"){qo(t,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||s!=="href")){t.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=$o(""+l),t.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(s,"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 h=="function"&&(s==="formAction"?(i!=="input"&&at(t,i,"name",c.name,c,null),at(t,i,"formEncType",c.formEncType,c,null),at(t,i,"formMethod",c.formMethod,c,null),at(t,i,"formTarget",c.formTarget,c,null)):(at(t,i,"encType",c.encType,c,null),at(t,i,"method",c.method,c,null),at(t,i,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=$o(""+l),t.setAttribute(s,l);break;case"onClick":l!=null&&(t.onclick=zu);break;case"onScroll":l!=null&&qe("scroll",t);break;case"onScrollEnd":l!=null&&qe("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(c.children!=null)throw Error(r(60));t.innerHTML=s}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}s=$o(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,""+l):t.removeAttribute(s);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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,""):t.removeAttribute(s);break;case"capture":case"download":l===!0?t.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,l):t.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(s,l):t.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(s):t.setAttribute(s,l);break;case"popover":qe("beforetoggle",t),qe("toggle",t),Zr(t,"popover",l);break;case"xlinkActuate":Ua(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ua(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ua(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ua(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ua(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ua(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ua(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ua(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ua(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Zr(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=U2.get(s)||s,Zr(t,s,l))}}function eh(t,i,s,l,c,h){switch(s){case"style":Mg(t,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(c.children!=null)throw Error(r(60));t.innerHTML=s}}break;case"children":typeof l=="string"?Wr(t,l):(typeof l=="number"||typeof l=="bigint")&&Wr(t,""+l);break;case"onScroll":l!=null&&qe("scroll",t);break;case"onScrollEnd":l!=null&&qe("scrollend",t);break;case"onClick":l!=null&&(t.onclick=zu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rr.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(c=s.endsWith("Capture"),i=s.slice(2,c?s.length-7:void 0),h=t[Me]||null,h=h!=null?h[s]:null,typeof h=="function"&&t.removeEventListener(i,h,c),typeof l=="function")){typeof h!="function"&&h!==null&&(s in t?t[s]=null:t.hasAttribute(s)&&t.removeAttribute(s)),t.addEventListener(i,l,c);break e}s in t?t[s]=l:l===!0?t.setAttribute(s,""):Zr(t,s,l)}}}function Xt(t,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qe("error",t),qe("load",t);var l=!1,c=!1,h;for(h in s)if(s.hasOwnProperty(h)){var w=s[h];if(w!=null)switch(h){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:at(t,i,h,w,s,null)}}c&&at(t,i,"srcSet",s.srcSet,s,null),l&&at(t,i,"src",s.src,s,null);return;case"input":qe("invalid",t);var A=h=w=c=null,T=null,B=null;for(l in s)if(s.hasOwnProperty(l)){var J=s[l];if(J!=null)switch(l){case"name":c=J;break;case"type":w=J;break;case"checked":T=J;break;case"defaultChecked":B=J;break;case"value":h=J;break;case"defaultValue":A=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,i));break;default:at(t,i,l,J,s,null)}}Rg(t,h,A,T,B,w,c,!1),Qo(t);return;case"select":qe("invalid",t),l=w=h=null;for(c in s)if(s.hasOwnProperty(c)&&(A=s[c],A!=null))switch(c){case"value":h=A;break;case"defaultValue":w=A;break;case"multiple":l=A;default:at(t,i,c,A,s,null)}i=h,s=w,t.multiple=!!l,i!=null?Jr(t,!!l,i,!1):s!=null&&Jr(t,!!l,s,!0);return;case"textarea":qe("invalid",t),h=c=l=null;for(w in s)if(s.hasOwnProperty(w)&&(A=s[w],A!=null))switch(w){case"value":l=A;break;case"defaultValue":c=A;break;case"children":h=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:at(t,i,w,A,s,null)}Tg(t,l,c,h),Qo(t);return;case"option":for(T in s)if(s.hasOwnProperty(T)&&(l=s[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:at(t,i,T,l,s,null)}return;case"dialog":qe("cancel",t),qe("close",t);break;case"iframe":case"object":qe("load",t);break;case"video":case"audio":for(l=0;l<Ql.length;l++)qe(Ql[l],t);break;case"image":qe("error",t),qe("load",t);break;case"details":qe("toggle",t);break;case"embed":case"source":case"link":qe("error",t),qe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in s)if(s.hasOwnProperty(B)&&(l=s[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:at(t,i,B,l,s,null)}return;default:if(gd(i)){for(J in s)s.hasOwnProperty(J)&&(l=s[J],l!==void 0&&eh(t,i,J,l,s,void 0));return}}for(A in s)s.hasOwnProperty(A)&&(l=s[A],l!=null&&at(t,i,A,l,s,null))}function cS(t,i,s,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,h=null,w=null,A=null,T=null,B=null,J=null;for(K in s){var ae=s[K];if(s.hasOwnProperty(K)&&ae!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":T=ae;default:l.hasOwnProperty(K)||at(t,i,K,null,l,ae)}}for(var I in l){var K=l[I];if(ae=s[I],l.hasOwnProperty(I)&&(K!=null||ae!=null))switch(I){case"type":h=K;break;case"name":c=K;break;case"checked":B=K;break;case"defaultChecked":J=K;break;case"value":w=K;break;case"defaultValue":A=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,i));break;default:K!==ae&&at(t,i,I,K,l,ae)}}hd(t,w,A,T,B,J,h,c);return;case"select":K=w=A=I=null;for(h in s)if(T=s[h],s.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":K=T;default:l.hasOwnProperty(h)||at(t,i,h,null,l,T)}for(c in l)if(h=l[c],T=s[c],l.hasOwnProperty(c)&&(h!=null||T!=null))switch(c){case"value":I=h;break;case"defaultValue":A=h;break;case"multiple":w=h;default:h!==T&&at(t,i,c,h,l,T)}i=A,s=w,l=K,I!=null?Jr(t,!!s,I,!1):!!l!=!!s&&(i!=null?Jr(t,!!s,i,!0):Jr(t,!!s,s?[]:"",!1));return;case"textarea":K=I=null;for(A in s)if(c=s[A],s.hasOwnProperty(A)&&c!=null&&!l.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:at(t,i,A,null,l,c)}for(w in l)if(c=l[w],h=s[w],l.hasOwnProperty(w)&&(c!=null||h!=null))switch(w){case"value":I=c;break;case"defaultValue":K=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==h&&at(t,i,w,c,l,h)}Ng(t,I,K);return;case"option":for(var we in s)if(I=s[we],s.hasOwnProperty(we)&&I!=null&&!l.hasOwnProperty(we))switch(we){case"selected":t.selected=!1;break;default:at(t,i,we,null,l,I)}for(T in l)if(I=l[T],K=s[T],l.hasOwnProperty(T)&&I!==K&&(I!=null||K!=null))switch(T){case"selected":t.selected=I&&typeof I!="function"&&typeof I!="symbol";break;default:at(t,i,T,I,l,K)}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 _e in s)I=s[_e],s.hasOwnProperty(_e)&&I!=null&&!l.hasOwnProperty(_e)&&at(t,i,_e,null,l,I);for(B in l)if(I=l[B],K=s[B],l.hasOwnProperty(B)&&I!==K&&(I!=null||K!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(r(137,i));break;default:at(t,i,B,I,l,K)}return;default:if(gd(i)){for(var Ct in s)I=s[Ct],s.hasOwnProperty(Ct)&&I!==void 0&&!l.hasOwnProperty(Ct)&&eh(t,i,Ct,void 0,l,I);for(J in l)I=l[J],K=s[J],!l.hasOwnProperty(J)||I===K||I===void 0&&K===void 0||eh(t,i,J,I,l,K);return}}for(var U in s)I=s[U],s.hasOwnProperty(U)&&I!=null&&!l.hasOwnProperty(U)&&at(t,i,U,null,l,I);for(ae in l)I=l[ae],K=s[ae],!l.hasOwnProperty(ae)||I===K||I==null&&K==null||at(t,i,ae,I,l,K)}var th=null,nh=null;function Lu(t){return t.nodeType===9?t:t.ownerDocument}function Sy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ay(t,i){if(t===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&i==="foreignObject"?0:t}function ah(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var ih=null;function dS(){var t=window.event;return t&&t.type==="popstate"?t===ih?!1:(ih=t,!0):(ih=null,!1)}var Cy=typeof setTimeout=="function"?setTimeout:void 0,fS=typeof clearTimeout=="function"?clearTimeout:void 0,Ey=typeof Promise=="function"?Promise:void 0,hS=typeof queueMicrotask=="function"?queueMicrotask:typeof Ey<"u"?function(t){return Ey.resolve(null).then(t).catch(mS)}:Cy;function mS(t){setTimeout(function(){throw t})}function rh(t,i){var s=i,l=0;do{var c=s.nextSibling;if(t.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(l===0){t.removeChild(c),eo(i);return}l--}else s!=="$"&&s!=="$?"&&s!=="$!"||l++;s=c}while(s);eo(i)}function sh(t){var i=t.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":sh(s),Ba(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}t.removeChild(s)}}function gS(t,i,s,l){for(;t.nodeType===1;){var c=s;if(t.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ln])switch(i){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(h=t.getAttribute("rel"),h==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(h!==c.rel||t.getAttribute("href")!==(c.href==null?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(h=t.getAttribute("src"),(h!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&h&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(i==="input"&&t.type==="hidden"){var h=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===h)return t}else return t;if(t=ua(t.nextSibling),t===null)break}return null}function pS(t,i,s){if(i==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=ua(t.nextSibling),t===null))return null;return t}function ua(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return t}function jy(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return t;i--}else s==="/$"&&i++}t=t.previousSibling}return null}function Ry(t,i,s){switch(i=Lu(s),t){case"html":if(t=i.documentElement,!t)throw Error(r(452));return t;case"head":if(t=i.head,!t)throw Error(r(453));return t;case"body":if(t=i.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}var Kn=new Map,Ny=new Set;function Uu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var Wa=se.d;se.d={f:yS,r:vS,D:wS,C:bS,L:xS,m:SS,X:CS,S:AS,M:ES};function yS(){var t=Wa.f(),i=ku();return t||i}function vS(t){var i=Gt(t);i!==null&&i.tag===5&&i.type==="form"?t0(i):Wa.r(t)}var js=typeof document>"u"?null:document;function Ty(t,i,s){var l=js;if(l&&typeof i=="string"&&i){var c=Fn(i);c='link[rel="'+t+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),Ny.has(c)||(Ny.add(c),t={rel:t,crossOrigin:s,href:i},l.querySelector(c)===null&&(i=l.createElement("link"),Xt(i,"link",t),lt(i),l.head.appendChild(i)))}}function wS(t){Wa.D(t),Ty("dns-prefetch",t,null)}function bS(t,i){Wa.C(t,i),Ty("preconnect",t,i)}function xS(t,i,s){Wa.L(t,i,s);var l=js;if(l&&t&&i){var c='link[rel="preload"][as="'+Fn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+Fn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+Fn(s.imageSizes)+'"]')):c+='[href="'+Fn(t)+'"]';var h=c;switch(i){case"style":h=Rs(t);break;case"script":h=Ns(t)}Kn.has(h)||(t=ne({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:t,as:i},s),Kn.set(h,t),l.querySelector(c)!==null||i==="style"&&l.querySelector($l(h))||i==="script"&&l.querySelector(Yl(h))||(i=l.createElement("link"),Xt(i,"link",t),lt(i),l.head.appendChild(i)))}}function SS(t,i){Wa.m(t,i);var s=js;if(s&&t){var l=i&&typeof i.as=="string"?i.as:"script",c='link[rel="modulepreload"][as="'+Fn(l)+'"][href="'+Fn(t)+'"]',h=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ns(t)}if(!Kn.has(h)&&(t=ne({rel:"modulepreload",href:t},i),Kn.set(h,t),s.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Yl(h)))return}l=s.createElement("link"),Xt(l,"link",t),lt(l),s.head.appendChild(l)}}}function AS(t,i,s){Wa.S(t,i,s);var l=js;if(l&&t){var c=Un(l).hoistableStyles,h=Rs(t);i=i||"default";var w=c.get(h);if(!w){var A={loading:0,preload:null};if(w=l.querySelector($l(h)))A.loading=5;else{t=ne({rel:"stylesheet",href:t,"data-precedence":i},s),(s=Kn.get(h))&&lh(t,s);var T=w=l.createElement("link");lt(T),Xt(T,"link",t),T._p=new Promise(function(B,J){T.onload=B,T.onerror=J}),T.addEventListener("load",function(){A.loading|=1}),T.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Hu(w,i,l)}w={type:"stylesheet",instance:w,count:1,state:A},c.set(h,w)}}}function CS(t,i){Wa.X(t,i);var s=js;if(s&&t){var l=Un(s).hoistableScripts,c=Ns(t),h=l.get(c);h||(h=s.querySelector(Yl(c)),h||(t=ne({src:t,async:!0},i),(i=Kn.get(c))&&oh(t,i),h=s.createElement("script"),lt(h),Xt(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(c,h))}}function ES(t,i){Wa.M(t,i);var s=js;if(s&&t){var l=Un(s).hoistableScripts,c=Ns(t),h=l.get(c);h||(h=s.querySelector(Yl(c)),h||(t=ne({src:t,async:!0,type:"module"},i),(i=Kn.get(c))&&oh(t,i),h=s.createElement("script"),lt(h),Xt(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(c,h))}}function ky(t,i,s,l){var c=(c=Rt.current)?Uu(c):null;if(!c)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Rs(s.href),s=Un(c).hoistableStyles,l=s.get(i),l||(l={type:"style",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){t=Rs(s.href);var h=Un(c).hoistableStyles,w=h.get(t);if(w||(c=c.ownerDocument||c,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,w),(h=c.querySelector($l(t)))&&!h._p&&(w.instance=h,w.state.loading=5),Kn.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Kn.set(t,s),h||jS(c,t,s,w.state))),i&&l===null)throw Error(r(528,""));return w}if(i&&l!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ns(s),s=Un(c).hoistableScripts,l=s.get(i),l||(l={type:"script",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Rs(t){return'href="'+Fn(t)+'"'}function $l(t){return'link[rel="stylesheet"]['+t+"]"}function My(t){return ne({},t,{"data-precedence":t.precedence,precedence:null})}function jS(t,i,s,l){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=t.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Xt(i,"link",s),lt(i),t.head.appendChild(i))}function Ns(t){return'[src="'+Fn(t)+'"]'}function Yl(t){return"script[async]"+t}function Dy(t,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var l=t.querySelector('style[data-href~="'+Fn(s.href)+'"]');if(l)return i.instance=l,lt(l),l;var c=ne({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),lt(l),Xt(l,"style",c),Hu(l,s.precedence,t),i.instance=l;case"stylesheet":c=Rs(s.href);var h=t.querySelector($l(c));if(h)return i.state.loading|=4,i.instance=h,lt(h),h;l=My(s),(c=Kn.get(c))&&lh(l,c),h=(t.ownerDocument||t).createElement("link"),lt(h);var w=h;return w._p=new Promise(function(A,T){w.onload=A,w.onerror=T}),Xt(h,"link",l),i.state.loading|=4,Hu(h,s.precedence,t),i.instance=h;case"script":return h=Ns(s.src),(c=t.querySelector(Yl(h)))?(i.instance=c,lt(c),c):(l=s,(c=Kn.get(h))&&(l=ne({},s),oh(l,c)),t=t.ownerDocument||t,c=t.createElement("script"),lt(c),Xt(c,"link",l),t.head.appendChild(c),i.instance=c);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(l=i.instance,i.state.loading|=4,Hu(l,s.precedence,t));return i.instance}function Hu(t,i,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,h=c,w=0;w<l.length;w++){var A=l[w];if(A.dataset.precedence===i)h=A;else if(h!==c)break}h?h.parentNode.insertBefore(t,h.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(t,i.firstChild))}function lh(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.title==null&&(t.title=i.title)}function oh(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.integrity==null&&(t.integrity=i.integrity)}var Fu=null;function Oy(t,i,s){if(Fu===null){var l=new Map,c=Fu=new Map;c.set(s,l)}else c=Fu,l=c.get(s),l||(l=new Map,c.set(s,l));if(l.has(t))return l;for(l.set(t,null),s=s.getElementsByTagName(t),c=0;c<s.length;c++){var h=s[c];if(!(h[Ln]||h[pe]||t==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var w=h.getAttribute(i)||"";w=t+w;var A=l.get(w);A?A.push(h):l.set(w,[h])}}return l}function _y(t,i,s){t=t.ownerDocument||t,t.head.insertBefore(s,i==="title"?t.querySelector("head > title"):null)}function RS(t,i,s){if(s===1||i.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return t=i.disabled,typeof i.precedence=="string"&&t==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function By(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Xl=null;function NS(){}function TS(t,i,s){if(Xl===null)throw Error(r(475));var l=Xl;if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var c=Rs(s.href),h=t.querySelector($l(c));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Pu.bind(l),t.then(l,l)),i.state.loading|=4,i.instance=h,lt(h);return}h=t.ownerDocument||t,s=My(s),(c=Kn.get(c))&&lh(s,c),h=h.createElement("link"),lt(h);var w=h;w._p=new Promise(function(A,T){w.onload=A,w.onerror=T}),Xt(h,"link",s),i.instance=h}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(l.count++,i=Pu.bind(l),t.addEventListener("load",i),t.addEventListener("error",i))}}function kS(){if(Xl===null)throw Error(r(475));var t=Xl;return t.stylesheets&&t.count===0&&uh(t,t.stylesheets),0<t.count?function(i){var s=setTimeout(function(){if(t.stylesheets&&uh(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(s)}}:null}function Pu(){if(this.count--,this.count===0){if(this.stylesheets)uh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Vu=null;function uh(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Vu=new Map,i.forEach(MS,t),Vu=null,Pu.call(t))}function MS(t,i){if(!(i.state.loading&4)){var s=Vu.get(t);if(s)var l=s.get(null);else{s=new Map,Vu.set(t,s);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<c.length;h++){var w=c[h];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(s.set(w.dataset.precedence,w),l=w)}l&&s.set(null,l)}c=i.instance,w=c.getAttribute("data-precedence"),h=s.get(w)||l,h===l&&s.set(null,c),s.set(w,c),this.count++,l=Pu.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),h?h.parentNode.insertBefore(c,h.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),i.state.loading|=4}}var Kl={$$typeof:x,Provider:null,Consumer:null,_currentValue:Se,_currentValue2:Se,_threadCount:0};function DS(t,i,s,l,c,h,w,A){this.tag=1,this.containerInfo=t,this.finishedWork=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=q(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=q(0),this.hiddenUpdates=q(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=h,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function zy(t,i,s,l,c,h,w,A,T,B,J,ae){return t=new DS(t,i,s,w,A,T,B,ae),i=1,h===!0&&(i|=24),h=Yn(3,null,null,i),t.current=h,h.stateNode=t,i=Fd(),i.refCount++,t.pooledCache=i,i.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:i},xf(h),t}function Ly(t){return t?(t=ss,t):ss}function Uy(t,i,s,l,c,h){c=Ly(c),l.context===null?l.context=c:l.pendingContext=c,l=vi(i),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=wi(t,l,i),s!==null&&(ln(s,t,i),Ol(s,t,i))}function Hy(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<i?s:i}}function ch(t,i){Hy(t,i),(t=t.alternate)&&Hy(t,i)}function Fy(t){if(t.tag===13){var i=di(t,67108864);i!==null&&ln(i,t,67108864),ch(t,67108864)}}var Iu=!0;function OS(t,i,s,l){var c=Q.T;Q.T=null;var h=se.p;try{se.p=2,dh(t,i,s,l)}finally{se.p=h,Q.T=c}}function _S(t,i,s,l){var c=Q.T;Q.T=null;var h=se.p;try{se.p=8,dh(t,i,s,l)}finally{se.p=h,Q.T=c}}function dh(t,i,s,l){if(Iu){var c=fh(l);if(c===null)Wf(t,i,l,qu,s),Vy(t,l);else if(zS(c,t,i,s,l))l.stopPropagation();else if(Vy(t,l),i&4&&-1<BS.indexOf(t)){for(;c!==null;){var h=Gt(c);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var w=zn(h.pendingLanes);if(w!==0){var A=h;for(A.pendingLanes|=2,A.entangledLanes|=2;w;){var T=1<<31-Zt(w);A.entanglements[1]|=T,w&=~T}Sa(h),(vt&6)===0&&(Ru=hn()+500,ql(0))}}break;case 13:A=di(h,2),A!==null&&ln(A,h,2),ku(),ch(h,2)}if(h=fh(l),h===null&&Wf(t,i,l,qu,s),h===c)break;c=h}c!==null&&l.stopPropagation()}else Wf(t,i,l,null,s)}}function fh(t){return t=yd(t),hh(t)}var qu=null;function hh(t){if(qu=null,t=Qt(t),t!==null){var i=G(t);if(i===null)t=null;else{var s=i.tag;if(s===13){if(t=le(i),t!==null)return t;t=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null)}}return qu=t,null}function Py(t){switch(t){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(ya()){case Bn:return 2;case ol:return 8;case oi:case cd:return 32;case ra:return 268435456;default:return 32}default:return 32}}var mh=!1,ji=null,Ri=null,Ni=null,Zl=new Map,Jl=new Map,Ti=[],BS="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 Vy(t,i){switch(t){case"focusin":case"focusout":ji=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":Ni=null;break;case"pointerover":case"pointerout":Zl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jl.delete(i.pointerId)}}function Wl(t,i,s,l,c,h){return t===null||t.nativeEvent!==h?(t={blockedOn:i,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[c]},i!==null&&(i=Gt(i),i!==null&&Fy(i)),t):(t.eventSystemFlags|=l,i=t.targetContainers,c!==null&&i.indexOf(c)===-1&&i.push(c),t)}function zS(t,i,s,l,c){switch(i){case"focusin":return ji=Wl(ji,t,i,s,l,c),!0;case"dragenter":return Ri=Wl(Ri,t,i,s,l,c),!0;case"mouseover":return Ni=Wl(Ni,t,i,s,l,c),!0;case"pointerover":var h=c.pointerId;return Zl.set(h,Wl(Zl.get(h)||null,t,i,s,l,c)),!0;case"gotpointercapture":return h=c.pointerId,Jl.set(h,Wl(Jl.get(h)||null,t,i,s,l,c)),!0}return!1}function Iy(t){var i=Qt(t.target);if(i!==null){var s=G(i);if(s!==null){if(i=s.tag,i===13){if(i=le(s),i!==null){t.blockedOn=i,me(t.priority,function(){if(s.tag===13){var l=Rn(),c=di(s,l);c!==null&&ln(c,s,l),ch(s,l)}});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Qu(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var s=fh(t.nativeEvent);if(s===null){s=t.nativeEvent;var l=new s.constructor(s.type,s);pd=l,s.target.dispatchEvent(l),pd=null}else return i=Gt(s),i!==null&&Fy(i),t.blockedOn=s,!1;i.shift()}return!0}function qy(t,i,s){Qu(t)&&s.delete(i)}function LS(){mh=!1,ji!==null&&Qu(ji)&&(ji=null),Ri!==null&&Qu(Ri)&&(Ri=null),Ni!==null&&Qu(Ni)&&(Ni=null),Zl.forEach(qy),Jl.forEach(qy)}function Gu(t,i){t.blockedOn===i&&(t.blockedOn=null,mh||(mh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,LS)))}var $u=null;function Qy(t){$u!==t&&($u=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$u===t&&($u=null);for(var i=0;i<t.length;i+=3){var s=t[i],l=t[i+1],c=t[i+2];if(typeof l!="function"){if(hh(l||s)===null)continue;break}var h=Gt(s);h!==null&&(t.splice(i,3),i-=3,nf(h,{pending:!0,data:c,method:s.method,action:l},l,c))}}))}function eo(t){function i(T){return Gu(T,t)}ji!==null&&Gu(ji,t),Ri!==null&&Gu(Ri,t),Ni!==null&&Gu(Ni,t),Zl.forEach(i),Jl.forEach(i);for(var s=0;s<Ti.length;s++){var l=Ti[s];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Ti.length&&(s=Ti[0],s.blockedOn===null);)Iy(s),s.blockedOn===null&&Ti.shift();if(s=(t.ownerDocument||t).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var c=s[l],h=s[l+1],w=c[Me]||null;if(typeof h=="function")w||Qy(s);else if(w){var A=null;if(h&&h.hasAttribute("formAction")){if(c=h,w=h[Me]||null)A=w.formAction;else if(hh(c)!==null)continue}else A=w.action;typeof A=="function"?s[l+1]=A:(s.splice(l,3),l-=3),Qy(s)}}}function gh(t){this._internalRoot=t}Yu.prototype.render=gh.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,l=Rn();Uy(s,l,t,i,null,null)},Yu.prototype.unmount=gh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;t.tag===0&&As(),Uy(t.current,2,null,t,null,null),ku(),i[tt]=null}};function Yu(t){this._internalRoot=t}Yu.prototype.unstable_scheduleHydration=function(t){if(t){var i=be();t={blockedOn:null,target:t,priority:i};for(var s=0;s<Ti.length&&i!==0&&i<Ti[s].priority;s++);Ti.splice(s,0,t),s===0&&Iy(t)}};var Gy=n.version;if(Gy!=="19.0.0")throw Error(r(527,Gy,"19.0.0"));se.findDOMNode=function(t){var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=X(i),t=t!==null?oe(t):null,t=t===null?null:t.stateNode,t};var US={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,findFiberByHostInstance:Qt,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xu.isDisabled&&Xu.supportsFiber)try{ui=Xu.inject(US),rn=Xu}catch{}}return no.createRoot=function(t,i){if(!o(t))throw Error(r(299));var s=!1,l="",c=u0,h=c0,w=d0,A=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(h=i.onCaughtError),i.onRecoverableError!==void 0&&(w=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(A=i.unstable_transitionCallbacks)),i=zy(t,1,!1,null,null,s,l,c,h,w,A,null),t[tt]=i.current,Jf(t.nodeType===8?t.parentNode:t),new gh(i)},no.hydrateRoot=function(t,i,s){if(!o(t))throw Error(r(299));var l=!1,c="",h=u0,w=c0,A=d0,T=null,B=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(w=s.onCaughtError),s.onRecoverableError!==void 0&&(A=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(T=s.unstable_transitionCallbacks),s.formState!==void 0&&(B=s.formState)),i=zy(t,1,!0,i,s??null,l,c,h,w,A,T,B),i.context=Ly(null),s=i.current,l=Rn(),c=vi(l),c.callback=null,wi(s,c,l),i.current.lanes=l,ie(i,l),Sa(i),t[tt]=i.current,Jf(t),new Yu(i)},no.version="19.0.0",no}var av;function $S(){if(av)return wh.exports;av=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(n){console.error(n)}}return e(),wh.exports=GS(),wh.exports}var YS=$S(),ao={},iv;function XS(){if(iv)return ao;iv=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.parse=f,ao.serialize=g;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[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]*$/,o=Object.prototype.toString,u=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function f(b,x){const S=new u,E=b.length;if(E<2)return S;const C=(x==null?void 0:x.decode)||y;let k=0;do{const z=b.indexOf("=",k);if(z===-1)break;const _=b.indexOf(";",k),Z=_===-1?E:_;if(z>Z){k=b.lastIndexOf(";",z-1)+1;continue}const R=m(b,k,z),W=p(b,z,R),ce=b.slice(R,W);if(S[ce]===void 0){let re=m(b,z+1,Z),Q=p(b,Z,re);const ne=C(b.slice(re,Q));S[ce]=ne}k=Z+1}while(k<E);return S}function m(b,x,S){do{const E=b.charCodeAt(x);if(E!==32&&E!==9)return x}while(++x<S);return S}function p(b,x,S){for(;x>S;){const E=b.charCodeAt(--x);if(E!==32&&E!==9)return x+1}return S}function g(b,x,S){const E=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(b))throw new TypeError(`argument name is invalid: ${b}`);const C=E(x);if(!n.test(C))throw new TypeError(`argument val is invalid: ${x}`);let k=b+"="+C;if(!S)return k;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);k+="; Max-Age="+S.maxAge}if(S.domain){if(!a.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);k+="; Domain="+S.domain}if(S.path){if(!r.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);k+="; Path="+S.path}if(S.expires){if(!v(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);k+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(k+="; HttpOnly"),S.secure&&(k+="; Secure"),S.partitioned&&(k+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.priority.toLowerCase():void 0){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.sameSite){case!0:case"strict":k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"none":k+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${S.sameSite}`)}return k}function y(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function v(b){return o.call(b)==="[object Date]"}return ao}XS();/**
* react-router v7.3.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var Pw=e=>{throw TypeError(e)},KS=(e,n,a)=>n.has(e)||Pw("Cannot "+a),Ah=(e,n,a)=>(KS(e,n,"read from private field"),a?a.call(e):n.get(e)),ZS=(e,n,a)=>n.has(e)?Pw("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),rv="popstate";function JS(e={}){function n(r,o){let{pathname:u,search:f,hash:m}=r.location;return go("",{pathname:u,search:f,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(r,o){return typeof o=="string"?o:Xi(o)}return eA(n,a,null,e)}function Ie(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function It(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function WS(){return Math.random().toString(36).substring(2,10)}function sv(e,n){return{usr:e.state,key:e.key,idx:n}}function go(e,n,a=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ji(n):n,state:a,key:n&&n.key||r||WS()}}function Xi({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function Ji(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let r=e.indexOf("?");r>=0&&(n.search=e.substring(r),e=e.substring(0,r)),e&&(n.pathname=e)}return n}function eA(e,n,a,r={}){let{window:o=document.defaultView,v5Compat:u=!1}=r,f=o.history,m="POP",p=null,g=y();g==null&&(g=0,f.replaceState({...f.state,idx:g},""));function y(){return(f.state||{idx:null}).idx}function v(){m="POP";let C=y(),k=C==null?null:C-g;g=C,p&&p({action:m,location:E.location,delta:k})}function b(C,k){m="PUSH";let z=go(E.location,C,k);g=y()+1;let _=sv(z,g),Z=E.createHref(z);try{f.pushState(_,"",Z)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(Z)}u&&p&&p({action:m,location:E.location,delta:1})}function x(C,k){m="REPLACE";let z=go(E.location,C,k);g=y();let _=sv(z,g),Z=E.createHref(z);f.replaceState(_,"",Z),u&&p&&p({action:m,location:E.location,delta:0})}function S(C){let k=o.location.origin!=="null"?o.location.origin:o.location.href,z=typeof C=="string"?C:Xi(C);return z=z.replace(/ $/,"%20"),Ie(k,`No window.location.(origin|href) available to create URL for href: ${z}`),new URL(z,k)}let E={get action(){return m},get location(){return e(o,f)},listen(C){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(rv,v),p=C,()=>{o.removeEventListener(rv,v),p=null}},createHref(C){return n(o,C)},createURL:S,encodeLocation(C){let k=S(C);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:b,replace:x,go(C){return f.go(C)}};return E}var co,lv=class{constructor(e){if(ZS(this,co,new Map),e)for(let[n,a]of e)this.set(n,a)}get(e){if(Ah(this,co).has(e))return Ah(this,co).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){Ah(this,co).set(e,n)}};co=new WeakMap;var tA=new Set(["lazy","caseSensitive","path","id","index","children"]);function nA(e){return e.index===!0}function gc(e,n,a=[],r={}){return e.map((o,u)=>{let f=[...a,String(u)],m=typeof o.id=="string"?o.id:f.join("-");if(Ie(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ie(!r[m],`Found a route id collision on id "${m}". Route id's must be globally unique within Data Router usages`),nA(o)){let p={...o,...n(o),id:m};return r[m]=p,p}else{let p={...o,...n(o),id:m,children:void 0};return r[m]=p,o.children&&(p.children=gc(o.children,n,f,r)),p}})}function Oi(e,n,a="/"){return rc(e,n,a,!1)}function rc(e,n,a,r){let o=typeof n=="string"?Ji(n):n,u=ta(o.pathname||"/",a);if(u==null)return null;let f=Vw(e);iA(f);let m=null;for(let p=0;m==null&&p<f.length;++p){let g=gA(u);m=hA(f[p],g,r)}return m}function aA(e,n){let{route:a,pathname:r,params:o}=e;return{id:a.id,pathname:r,params:o,data:n[a.id],handle:a.handle}}function Vw(e,n=[],a=[],r=""){let o=(u,f,m)=>{let p={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};p.relativePath.startsWith("/")&&(Ie(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length));let g=Ta([r,p.relativePath]),y=a.concat(p);u.children&&u.children.length>0&&(Ie(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Vw(u.children,n,y,g)),!(u.path==null&&!u.index)&&n.push({path:g,score:dA(g,u.index),routesMeta:y})};return e.forEach((u,f)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))o(u,f);else for(let p of Iw(u.path))o(u,f,p)}),n}function Iw(e){let n=e.split("/");if(n.length===0)return[];let[a,...r]=n,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(r.length===0)return o?[u,""]:[u];let f=Iw(r.join("/")),m=[];return m.push(...f.map(p=>p===""?u:[u,p].join("/"))),o&&m.push(...f),m.map(p=>e.startsWith("/")&&p===""?"/":p)}function iA(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:fA(n.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var rA=/^:[\w-]+$/,sA=3,lA=2,oA=1,uA=10,cA=-2,ov=e=>e==="*";function dA(e,n){let a=e.split("/"),r=a.length;return a.some(ov)&&(r+=cA),n&&(r+=lA),a.filter(o=>!ov(o)).reduce((o,u)=>o+(rA.test(u)?sA:u===""?oA:uA),r)}function fA(e,n){return e.length===n.length&&e.slice(0,-1).every((r,o)=>r===n[o])?e[e.length-1]-n[n.length-1]:0}function hA(e,n,a=!1){let{routesMeta:r}=e,o={},u="/",f=[];for(let m=0;m<r.length;++m){let p=r[m],g=m===r.length-1,y=u==="/"?n:n.slice(u.length)||"/",v=pc({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),b=p.route;if(!v&&g&&a&&!r[r.length-1].route.index&&(v=pc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),f.push({params:o,pathname:Ta([u,v.pathname]),pathnameBase:vA(Ta([u,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(u=Ta([u,v.pathnameBase]))}return f}function pc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,r]=mA(e.path,e.caseSensitive,e.end),o=n.match(a);if(!o)return null;let u=o[0],f=u.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:r.reduce((g,{paramName:y,isOptional:v},b)=>{if(y==="*"){let S=m[b]||"";f=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const x=m[b];return v&&!x?g[y]=void 0:g[y]=(x||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:f,pattern:e}}function mA(e,n=!1,a=!0){It(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,m,p)=>(r.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),r]}function gA(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return It(!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 (${n}).`),e}}function ta(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,r=e.charAt(a);return r&&r!=="/"?null:e.slice(a)||"/"}function pA(e,n="/"){let{pathname:a,search:r="",hash:o=""}=typeof e=="string"?Ji(e):e;return{pathname:a?a.startsWith("/")?a:yA(a,n):n,search:wA(r),hash:bA(o)}}function yA(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Ch(e,n,a,r){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qw(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function Lc(e){let n=qw(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function Uc(e,n,a,r=!1){let o;typeof e=="string"?o=Ji(e):(o={...e},Ie(!o.pathname||!o.pathname.includes("?"),Ch("?","pathname","search",o)),Ie(!o.pathname||!o.pathname.includes("#"),Ch("#","pathname","hash",o)),Ie(!o.search||!o.search.includes("#"),Ch("#","search","hash",o)));let u=e===""||o.pathname==="",f=u?"/":o.pathname,m;if(f==null)m=a;else{let v=n.length-1;if(!r&&f.startsWith("..")){let b=f.split("/");for(;b[0]==="..";)b.shift(),v-=1;o.pathname=b.join("/")}m=v>=0?n[v]:"/"}let p=pA(o,m),g=f&&f!=="/"&&f.endsWith("/"),y=(u||f===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Ta=e=>e.join("/").replace(/\/\/+/g,"/"),vA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,yc=class{constructor(e,n,a,r=!1){this.status=e,this.statusText=n||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function po(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Qw=["POST","PUT","PATCH","DELETE"],xA=new Set(Qw),SA=["GET",...Qw],AA=new Set(SA),CA=new Set([301,302,303,307,308]),EA=new Set([307,308]),Eh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},jA={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},io={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Um=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Gw="remix-router-transitions",$w=Symbol("ResetLoaderData");function NA(e){const n=e.window?e.window:typeof window<"u"?window:void 0,a=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";Ie(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.mapRouteProperties||RA,o={},u=gc(e.routes,r,void 0,o),f,m=e.basename||"/",p=e.dataStrategy||OA,g={unstable_middleware:!1,...e.future},y=null,v=new Set,b=null,x=null,S=null,E=e.hydrationData!=null,C=Oi(u,e.history.location,m),k=!1,z=null;if(C==null&&!e.patchRoutesOnNavigation){let D=Jn(404,{pathname:e.history.location.pathname}),{matches:H,route:q}=bv(u);C=H,z={[q.id]:D}}C&&!e.hydrationData&&zn(C,u,e.history.location.pathname).active&&(C=null);let _;if(C)if(C.some(D=>D.route.lazy))_=!1;else if(!C.some(D=>D.route.loader))_=!0;else{let D=e.hydrationData?e.hydrationData.loaderData:null,H=e.hydrationData?e.hydrationData.errors:null;if(H){let q=C.findIndex(ie=>H[ie.route.id]!==void 0);_=C.slice(0,q+1).every(ie=>!em(ie.route,D,H))}else _=C.every(q=>!em(q.route,D,H))}else{_=!1,C=[];let D=zn(null,u,e.history.location.pathname);D.active&&D.matches&&(k=!0,C=D.matches)}let Z,R={historyAction:e.history.action,location:e.history.location,matches:C,initialized:_,navigation:Eh,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||z,fetchers:new Map,blockers:new Map},W="POP",ce=!1,re,Q=!1,ne=new Map,fe=null,Ge=!1,Xe=!1,te=new Set,P=new Map,L=0,F=-1,G=new Map,le=new Set,N=new Map,X=new Map,oe=new Set,ue=new Map,se,Se=null;function ke(){if(y=e.history.listen(({action:D,location:H,delta:q})=>{if(se){se(),se=void 0;return}It(ue.size===0||q!=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 ie=Zt({currentLocation:R.location,nextLocation:H,historyAction:D});if(ie&&q!=null){let de=new Promise(je=>{se=je});e.history.go(q*-1),Sn(ie,{state:"blocked",location:H,proceed(){Sn(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:H}),de.then(()=>e.history.go(q))},reset(){let je=new Map(R.blockers);je.set(ie,io),Oe({blockers:je})}});return}return Rt(D,H)}),a){QA(n,ne);let D=()=>GA(n,ne);n.addEventListener("pagehide",D),fe=()=>n.removeEventListener("pagehide",D)}return R.initialized||Rt("POP",R.location,{initialHydration:!0}),Z}function ht(){y&&y(),fe&&fe(),v.clear(),re&&re.abort(),R.fetchers.forEach((D,H)=>oi(H)),R.blockers.forEach((D,H)=>Po(H))}function Fe(D){return v.add(D),()=>v.delete(D)}function Oe(D,H={}){R={...R,...D};let q=[],ie=[];R.fetchers.forEach((de,je)=>{de.state==="idle"&&(oe.has(je)?q.push(je):ie.push(je))}),oe.forEach(de=>{!R.fetchers.has(de)&&!P.has(de)&&q.push(de)}),[...v].forEach(de=>de(R,{deletedFetchers:q,viewTransitionOpts:H.viewTransitionOpts,flushSync:H.flushSync===!0})),q.forEach(de=>oi(de)),ie.forEach(de=>R.fetchers.delete(de))}function De(D,H,{flushSync:q}={}){var me,ge;let ie=R.actionData!=null&&R.navigation.formMethod!=null&&fa(R.navigation.formMethod)&&R.navigation.state==="loading"&&((me=D.state)==null?void 0:me._isRedirect)!==!0,de;H.actionData?Object.keys(H.actionData).length>0?de=H.actionData:de=null:ie?de=R.actionData:de=null;let je=H.loaderData?vv(R.loaderData,H.loaderData,H.matches||[],H.errors):R.loaderData,Ce=R.blockers;Ce.size>0&&(Ce=new Map(Ce),Ce.forEach((pe,Me)=>Ce.set(Me,io)));let ve=ce===!0||R.navigation.formMethod!=null&&fa(R.navigation.formMethod)&&((ge=D.state)==null?void 0:ge._isRedirect)!==!0;f&&(u=f,f=void 0),Ge||W==="POP"||(W==="PUSH"?e.history.push(D,D.state):W==="REPLACE"&&e.history.replace(D,D.state));let be;if(W==="POP"){let pe=ne.get(R.location.pathname);pe&&pe.has(D.pathname)?be={currentLocation:R.location,nextLocation:D}:ne.has(D.pathname)&&(be={currentLocation:D,nextLocation:R.location})}else if(Q){let pe=ne.get(R.location.pathname);pe?pe.add(D.pathname):(pe=new Set([D.pathname]),ne.set(R.location.pathname,pe)),be={currentLocation:R.location,nextLocation:D}}Oe({...H,actionData:de,loaderData:je,historyAction:W,location:D,initialized:!0,navigation:Eh,revalidation:"idle",restoreScrollPosition:nr(D,H.matches||R.matches),preventScrollReset:ve,blockers:Ce},{viewTransitionOpts:be,flushSync:q===!0}),W="POP",ce=!1,Q=!1,Ge=!1,Xe=!1,Se==null||Se.resolve(),Se=null}async function wt(D,H){if(typeof D=="number"){e.history.go(D);return}let q=Wh(R.location,R.matches,m,D,H==null?void 0:H.fromRouteId,H==null?void 0:H.relative),{path:ie,submission:de,error:je}=uv(!1,q,H),Ce=R.location,ve=go(R.location,ie,H&&H.state);ve={...ve,...e.history.encodeLocation(ve)};let be=H&&H.replace!=null?H.replace:void 0,me="PUSH";be===!0?me="REPLACE":be===!1||de!=null&&fa(de.formMethod)&&de.formAction===R.location.pathname+R.location.search&&(me="REPLACE");let ge=H&&"preventScrollReset"in H?H.preventScrollReset===!0:void 0,pe=(H&&H.flushSync)===!0,Me=Zt({currentLocation:Ce,nextLocation:ve,historyAction:me});if(Me){Sn(Me,{state:"blocked",location:ve,proceed(){Sn(Me,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),wt(D,H)},reset(){let tt=new Map(R.blockers);tt.set(Me,io),Oe({blockers:tt})}});return}await Rt(me,ve,{submission:de,pendingError:je,preventScrollReset:ge,replace:H&&H.replace,enableViewTransition:H&&H.viewTransition,flushSync:pe})}function xn(){Se||(Se=$A()),hn(),Oe({revalidation:"loading"});let D=Se.promise;return R.navigation.state==="submitting"?D:R.navigation.state==="idle"?(Rt(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),D):(Rt(W||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:Q===!0}),D)}async function Rt(D,H,q){re&&re.abort(),re=null,W=D,Ge=(q&&q.startUninterruptedRevalidation)===!0,Kr(R.location,R.matches),ce=(q&&q.preventScrollReset)===!0,Q=(q&&q.enableViewTransition)===!0;let ie=f||u,de=q&&q.overrideNavigation,je=q!=null&&q.initialHydration&&R.matches&&R.matches.length>0&&!k?R.matches:Oi(ie,H,m),Ce=(q&&q.flushSync)===!0;if(je&&R.initialized&&!Xe&&FA(R.location,H)&&!(q&&q.submission&&fa(q.submission.formMethod))){De(H,{matches:je},{flushSync:Ce});return}let ve=zn(je,ie,H.pathname);if(ve.active&&ve.matches&&(je=ve.matches),!je){let{error:bt,notFoundMatches:mt,route:xt}=ul(H.pathname);De(H,{matches:mt,loaderData:{},errors:{[xt.id]:bt}},{flushSync:Ce});return}re=new AbortController;let be=Ts(e.history,H,re.signal,q&&q.submission),me=new lv(e.unstable_getContext?await e.unstable_getContext():void 0),ge;if(q&&q.pendingError)ge=[Rr(je).route.id,{type:"error",error:q.pendingError}];else if(q&&q.submission&&fa(q.submission.formMethod)){let bt=await $r(be,H,q.submission,je,me,ve.active,{replace:q.replace,flushSync:Ce});if(bt.shortCircuited)return;if(bt.pendingActionResult){let[mt,xt]=bt.pendingActionResult;if(Nn(xt)&&po(xt.error)&&xt.error.status===404){re=null,De(H,{matches:bt.matches,loaderData:{},errors:{[mt]:xt.error}});return}}je=bt.matches||je,ge=bt.pendingActionResult,de=jh(H,q.submission),Ce=!1,ve.active=!1,be=Ts(e.history,be.url,be.signal)}let{shortCircuited:pe,matches:Me,loaderData:tt,errors:Dt}=await Yr(be,H,je,me,ve.active,de,q&&q.submission,q&&q.fetcherSubmission,q&&q.replace,q&&q.initialHydration===!0,Ce,ge);pe||(re=null,De(H,{matches:Me||je,...wv(ge),loaderData:tt,errors:Dt}))}async function $r(D,H,q,ie,de,je,Ce={}){hn();let ve=IA(H,q);if(Oe({navigation:ve},{flushSync:Ce.flushSync===!0}),je){let ge=await _a(ie,H.pathname,D.signal);if(ge.type==="aborted")return{shortCircuited:!0};if(ge.type==="error"){let pe=Rr(ge.partialMatches).route.id;return{matches:ge.partialMatches,pendingActionResult:[pe,{type:"error",error:ge.error}]}}else if(ge.matches)ie=ge.matches;else{let{notFoundMatches:pe,error:Me,route:tt}=ul(H.pathname);return{matches:pe,pendingActionResult:[tt.id,{type:"error",error:Me}]}}}let be,me=fo(ie,H);if(!me.route.action&&!me.route.lazy)be={type:"error",error:Jn(405,{method:D.method,pathname:H.pathname,routeId:me.route.id})};else{let ge=await tr("action",D,[me],ie,de,null);if(be=ge[me.route.id],!be){for(let pe of ie)if(ge[pe.route.id]){be=ge[pe.route.id];break}}if(D.signal.aborted)return{shortCircuited:!0}}if(Nr(be)){let ge;return Ce&&Ce.replace!=null?ge=Ce.replace:ge=gv(be.response.headers.get("Location"),new URL(D.url),m)===R.location.pathname+R.location.search,await ia(D,be,!0,{submission:q,replace:ge}),{shortCircuited:!0}}if(Nn(be)){let ge=Rr(ie,me.route.id);return(Ce&&Ce.replace)!==!0&&(W="PUSH"),{matches:ie,pendingActionResult:[ge.route.id,be]}}return{matches:ie,pendingActionResult:[me.route.id,be]}}async function Yr(D,H,q,ie,de,je,Ce,ve,be,me,ge,pe){let Me=je||jh(H,Ce),tt=Ce||ve||Sv(Me),Dt=!Ge&&!me;if(de){if(Dt){let gt=Oa(pe);Oe({navigation:Me,...gt!==void 0?{actionData:gt}:{}},{flushSync:ge})}let $e=await _a(q,H.pathname,D.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let gt=Rr($e.partialMatches).route.id;return{matches:$e.partialMatches,loaderData:{},errors:{[gt]:$e.error}}}else if($e.matches)q=$e.matches;else{let{error:gt,notFoundMatches:mn,route:sr}=ul(H.pathname);return{matches:mn,loaderData:{},errors:{[sr.id]:gt}}}}let bt=f||u,[mt,xt]=dv(e.history,R,q,tt,H,me===!0,Xe,te,oe,N,le,bt,m,pe);if(F=++L,mt.length===0&&xt.length===0){let $e=Fo();return De(H,{matches:q,loaderData:{},errors:pe&&Nn(pe[1])?{[pe[0]]:pe[1].error}:null,...wv(pe),...$e?{fetchers:new Map(R.fetchers)}:{}},{flushSync:ge}),{shortCircuited:!0}}if(Dt){let $e={};if(!de){$e.navigation=Me;let gt=Oa(pe);gt!==void 0&&($e.actionData=gt)}xt.length>0&&($e.fetchers=rl(xt)),Oe($e,{flushSync:ge})}xt.forEach($e=>{ra($e.key),$e.controller&&P.set($e.key,$e.controller)});let Ln=()=>xt.forEach($e=>ra($e.key));re&&re.signal.addEventListener("abort",Ln);let{loaderResults:Ba,fetcherResults:Qt}=await Uo(q,mt,xt,D,ie);if(D.signal.aborted)return{shortCircuited:!0};re&&re.signal.removeEventListener("abort",Ln),xt.forEach($e=>P.delete($e.key));let Gt=Zu(Ba);if(Gt)return await ia(D,Gt.result,!0,{replace:be}),{shortCircuited:!0};if(Gt=Zu(Qt),Gt)return le.add(Gt.key),await ia(D,Gt.result,!0,{replace:be}),{shortCircuited:!0};let{loaderData:za,errors:Un}=yv(R,q,Ba,pe,xt,Qt);me&&R.errors&&(Un={...R.errors,...Un});let lt=Fo(),ir=ui(F),rr=lt||ir||xt.length>0;return{matches:q,loaderData:za,errors:Un,...rr?{fetchers:new Map(R.fetchers)}:{}}}function Oa(D){if(D&&!Nn(D[1]))return{[D[0]]:D[1].data};if(R.actionData)return Object.keys(R.actionData).length===0?null:R.actionData}function rl(D){return D.forEach(H=>{let q=R.fetchers.get(H.key),ie=ro(void 0,q?q.data:void 0);R.fetchers.set(H.key,ie)}),new Map(R.fetchers)}async function Xr(D,H,q,ie){ra(D);let de=(ie&&ie.flushSync)===!0,je=f||u,Ce=Wh(R.location,R.matches,m,q,H,ie==null?void 0:ie.relative),ve=Oi(je,Ce,m),be=zn(ve,je,Ce);if(be.active&&be.matches&&(ve=be.matches),!ve){Bn(D,H,Jn(404,{pathname:Ce}),{flushSync:de});return}let{path:me,submission:ge,error:pe}=uv(!0,Ce,ie);if(pe){Bn(D,H,pe,{flushSync:de});return}let Me=fo(ve,me),tt=new lv(e.unstable_getContext?await e.unstable_getContext():void 0),Dt=(ie&&ie.preventScrollReset)===!0;if(ge&&fa(ge.formMethod)){await sl(D,H,me,Me,ve,tt,be.active,de,Dt,ge);return}N.set(D,{routeId:H,path:me}),await ll(D,H,me,Me,ve,tt,be.active,de,Dt,ge)}async function sl(D,H,q,ie,de,je,Ce,ve,be,me){hn(),N.delete(D);function ge(pt){if(!pt.route.action&&!pt.route.lazy){let La=Jn(405,{method:me.formMethod,pathname:q,routeId:H});return Bn(D,H,La,{flushSync:ve}),!0}return!1}if(!Ce&&ge(ie))return;let pe=R.fetchers.get(D);ya(D,qA(me,pe),{flushSync:ve});let Me=new AbortController,tt=Ts(e.history,q,Me.signal,me);if(Ce){let pt=await _a(de,q,tt.signal,D);if(pt.type==="aborted")return;if(pt.type==="error"){Bn(D,H,pt.error,{flushSync:ve});return}else if(pt.matches){if(de=pt.matches,ie=fo(de,q),ge(ie))return}else{Bn(D,H,Jn(404,{pathname:q}),{flushSync:ve});return}}P.set(D,Me);let Dt=L,mt=(await tr("action",tt,[ie],de,je,D))[ie.route.id];if(tt.signal.aborted){P.get(D)===Me&&P.delete(D);return}if(oe.has(D)){if(Nr(mt)||Nn(mt)){ya(D,Mi(void 0));return}}else{if(Nr(mt))if(P.delete(D),F>Dt){ya(D,Mi(void 0));return}else return le.add(D),ya(D,ro(me)),ia(tt,mt,!1,{fetcherSubmission:me,preventScrollReset:be});if(Nn(mt)){Bn(D,H,mt.error);return}}let xt=R.navigation.location||R.location,Ln=Ts(e.history,xt,Me.signal),Ba=f||u,Qt=R.navigation.state!=="idle"?Oi(Ba,R.navigation.location,m):R.matches;Ie(Qt,"Didn't find any matches after fetcher action");let Gt=++L;G.set(D,Gt);let za=ro(me,mt.data);R.fetchers.set(D,za);let[Un,lt]=dv(e.history,R,Qt,me,xt,!1,Xe,te,oe,N,le,Ba,m,[ie.route.id,mt]);lt.filter(pt=>pt.key!==D).forEach(pt=>{let La=pt.key,Io=R.fetchers.get(La),Zr=ro(void 0,Io?Io.data:void 0);R.fetchers.set(La,Zr),ra(La),pt.controller&&P.set(La,pt.controller)}),Oe({fetchers:new Map(R.fetchers)});let ir=()=>lt.forEach(pt=>ra(pt.key));Me.signal.addEventListener("abort",ir);let{loaderResults:rr,fetcherResults:$e}=await Uo(Qt,Un,lt,Ln,je);if(Me.signal.aborted)return;Me.signal.removeEventListener("abort",ir),G.delete(D),P.delete(D),lt.forEach(pt=>P.delete(pt.key));let gt=Zu(rr);if(gt)return ia(Ln,gt.result,!1,{preventScrollReset:be});if(gt=Zu($e),gt)return le.add(gt.key),ia(Ln,gt.result,!1,{preventScrollReset:be});let{loaderData:mn,errors:sr}=yv(R,Qt,rr,void 0,lt,$e);if(R.fetchers.has(D)){let pt=Mi(mt.data);R.fetchers.set(D,pt)}ui(Gt),R.navigation.state==="loading"&&Gt>F?(Ie(W,"Expected pending action"),re&&re.abort(),De(R.navigation.location,{matches:Qt,loaderData:mn,errors:sr,fetchers:new Map(R.fetchers)})):(Oe({errors:sr,loaderData:vv(R.loaderData,mn,Qt,sr),fetchers:new Map(R.fetchers)}),Xe=!1)}async function ll(D,H,q,ie,de,je,Ce,ve,be,me){let ge=R.fetchers.get(D);ya(D,ro(me,ge?ge.data:void 0),{flushSync:ve});let pe=new AbortController,Me=Ts(e.history,q,pe.signal);if(Ce){let mt=await _a(de,q,Me.signal,D);if(mt.type==="aborted")return;if(mt.type==="error"){Bn(D,H,mt.error,{flushSync:ve});return}else if(mt.matches)de=mt.matches,ie=fo(de,q);else{Bn(D,H,Jn(404,{pathname:q}),{flushSync:ve});return}}P.set(D,pe);let tt=L,bt=(await tr("loader",Me,[ie],de,je,D))[ie.route.id];if(P.get(D)===pe&&P.delete(D),!Me.signal.aborted){if(oe.has(D)){ya(D,Mi(void 0));return}if(Nr(bt))if(F>tt){ya(D,Mi(void 0));return}else{le.add(D),await ia(Me,bt,!1,{preventScrollReset:be});return}if(Nn(bt)){Bn(D,H,bt.error);return}ya(D,Mi(bt.data))}}async function ia(D,H,q,{submission:ie,fetcherSubmission:de,preventScrollReset:je,replace:Ce}={}){H.response.headers.has("X-Remix-Revalidate")&&(Xe=!0);let ve=H.response.headers.get("Location");Ie(ve,"Expected a Location header on the redirect Response"),ve=gv(ve,new URL(D.url),m);let be=go(R.location,ve,{_isRedirect:!0});if(a){let Dt=!1;if(H.response.headers.has("X-Remix-Reload-Document"))Dt=!0;else if(Um.test(ve)){const bt=e.history.createURL(ve);Dt=bt.origin!==n.location.origin||ta(bt.pathname,m)==null}if(Dt){Ce?n.location.replace(ve):n.location.assign(ve);return}}re=null;let me=Ce===!0||H.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ge,formAction:pe,formEncType:Me}=R.navigation;!ie&&!de&&ge&&pe&&Me&&(ie=Sv(R.navigation));let tt=ie||de;if(EA.has(H.response.status)&&tt&&fa(tt.formMethod))await Rt(me,be,{submission:{...tt,formAction:ve},preventScrollReset:je||ce,enableViewTransition:q?Q:void 0});else{let Dt=jh(be,ie);await Rt(me,be,{overrideNavigation:Dt,fetcherSubmission:de,preventScrollReset:je||ce,enableViewTransition:q?Q:void 0})}}async function tr(D,H,q,ie,de,je){let Ce,ve={};try{Ce=await BA(p,D,H,q,ie,je,o,r,de,g.unstable_middleware)}catch(be){return q.forEach(me=>{ve[me.route.id]={type:"error",error:be}}),ve}for(let[be,me]of Object.entries(Ce))if(PA(me)){let ge=me.result;ve[be]={type:"redirect",response:UA(ge,H,be,ie,m)}}else ve[be]=await LA(me);return ve}async function Uo(D,H,q,ie,de){let je=tr("loader",ie,H,D,de,null),Ce=Promise.all(q.map(async me=>{if(me.matches&&me.match&&me.controller){let pe=(await tr("loader",Ts(e.history,me.path,me.controller.signal),[me.match],me.matches,de,me.key))[me.match.route.id];return{[me.key]:pe}}else return Promise.resolve({[me.key]:{type:"error",error:Jn(404,{pathname:me.path})}})})),ve=await je,be=(await Ce).reduce((me,ge)=>Object.assign(me,ge),{});return{loaderResults:ve,fetcherResults:be}}function hn(){Xe=!0,N.forEach((D,H)=>{P.has(H)&&te.add(H),ra(H)})}function ya(D,H,q={}){R.fetchers.set(D,H),Oe({fetchers:new Map(R.fetchers)},{flushSync:(q&&q.flushSync)===!0})}function Bn(D,H,q,ie={}){let de=Rr(R.matches,H);oi(D),Oe({errors:{[de.route.id]:q},fetchers:new Map(R.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ol(D){return X.set(D,(X.get(D)||0)+1),oe.has(D)&&oe.delete(D),R.fetchers.get(D)||jA}function oi(D){let H=R.fetchers.get(D);P.has(D)&&!(H&&H.state==="loading"&&G.has(D))&&ra(D),N.delete(D),G.delete(D),le.delete(D),oe.delete(D),te.delete(D),R.fetchers.delete(D)}function cd(D){let H=(X.get(D)||0)-1;H<=0?(X.delete(D),oe.add(D)):X.set(D,H),Oe({fetchers:new Map(R.fetchers)})}function ra(D){let H=P.get(D);H&&(H.abort(),P.delete(D))}function Ho(D){for(let H of D){let q=ol(H),ie=Mi(q.data);R.fetchers.set(H,ie)}}function Fo(){let D=[],H=!1;for(let q of le){let ie=R.fetchers.get(q);Ie(ie,`Expected fetcher: ${q}`),ie.state==="loading"&&(le.delete(q),D.push(q),H=!0)}return Ho(D),H}function ui(D){let H=[];for(let[q,ie]of G)if(ie<D){let de=R.fetchers.get(q);Ie(de,`Expected fetcher: ${q}`),de.state==="loading"&&(ra(q),G.delete(q),H.push(q))}return Ho(H),H.length>0}function rn(D,H){let q=R.blockers.get(D)||io;return ue.get(D)!==H&&ue.set(D,H),q}function Po(D){R.blockers.delete(D),ue.delete(D)}function Sn(D,H){let q=R.blockers.get(D)||io;Ie(q.state==="unblocked"&&H.state==="blocked"||q.state==="blocked"&&H.state==="blocked"||q.state==="blocked"&&H.state==="proceeding"||q.state==="blocked"&&H.state==="unblocked"||q.state==="proceeding"&&H.state==="unblocked",`Invalid blocker state transition: ${q.state} -> ${H.state}`);let ie=new Map(R.blockers);ie.set(D,H),Oe({blockers:ie})}function Zt({currentLocation:D,nextLocation:H,historyAction:q}){if(ue.size===0)return;ue.size>1&&It(!1,"A router only supports one blocker at a time");let ie=Array.from(ue.entries()),[de,je]=ie[ie.length-1],Ce=R.blockers.get(de);if(!(Ce&&Ce.state==="proceeding")&&je({currentLocation:D,nextLocation:H,historyAction:q}))return de}function ul(D){let H=Jn(404,{pathname:D}),q=f||u,{matches:ie,route:de}=bv(q);return{notFoundMatches:ie,route:de,error:H}}function dd(D,H,q){if(b=D,S=H,x=q||null,!E&&R.navigation===Eh){E=!0;let ie=nr(R.location,R.matches);ie!=null&&Oe({restoreScrollPosition:ie})}return()=>{b=null,S=null,x=null}}function Vo(D,H){return x&&x(D,H.map(ie=>aA(ie,R.loaderData)))||D.key}function Kr(D,H){if(b&&S){let q=Vo(D,H);b[q]=S()}}function nr(D,H){if(b){let q=Vo(D,H),ie=b[q];if(typeof ie=="number")return ie}return null}function zn(D,H,q){if(e.patchRoutesOnNavigation)if(D){if(Object.keys(D[0].params).length>0)return{active:!0,matches:rc(H,q,m,!0)}}else return{active:!0,matches:rc(H,q,m,!0)||[]};return{active:!1,matches:null}}async function _a(D,H,q,ie){if(!e.patchRoutesOnNavigation)return{type:"success",matches:D};let de=D;for(;;){let je=f==null,Ce=f||u,ve=o;try{await e.patchRoutesOnNavigation({signal:q,path:H,matches:de,fetcherKey:ie,patch:(ge,pe)=>{q.aborted||hv(ge,pe,Ce,ve,r)}})}catch(ge){return{type:"error",error:ge,partialMatches:de}}finally{je&&!q.aborted&&(u=[...u])}if(q.aborted)return{type:"aborted"};let be=Oi(Ce,H,m);if(be)return{type:"success",matches:be};let me=rc(Ce,H,m,!0);if(!me||de.length===me.length&&de.every((ge,pe)=>ge.route.id===me[pe].route.id))return{type:"success",matches:null};de=me}}function ar(D){o={},f=gc(D,r,void 0,o)}function fd(D,H){let q=f==null;hv(D,H,f||u,o,r),q&&(u=[...u],Oe({}))}return Z={get basename(){return m},get future(){return g},get state(){return R},get routes(){return u},get window(){return n},initialize:ke,subscribe:Fe,enableScrollRestoration:dd,navigate:wt,fetch:Xr,revalidate:xn,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:ol,deleteFetcher:cd,dispose:ht,getBlocker:rn,deleteBlocker:Po,patchRoutes:fd,_internalFetchControllers:P,_internalSetRoutes:ar},Z}function TA(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Wh(e,n,a,r,o,u){let f,m;if(o){f=[];for(let g of n)if(f.push(g),g.route.id===o){m=g;break}}else f=n,m=n[n.length-1];let p=Uc(r||".",Lc(f),ta(e.pathname,a)||e.pathname,u==="path");if(r==null&&(p.search=e.search,p.hash=e.hash),(r==null||r===""||r===".")&&m){let g=Hm(p.search);if(m.route.index&&!g)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&g){let y=new URLSearchParams(p.search),v=y.getAll("index");y.delete("index"),v.filter(x=>x).forEach(x=>y.append("index",x));let b=y.toString();p.search=b?`?${b}`:""}}return a!=="/"&&(p.pathname=p.pathname==="/"?a:Ta([a,p.pathname])),Xi(p)}function uv(e,n,a){if(!a||!TA(a))return{path:n};if(a.formMethod&&!VA(a.formMethod))return{path:n,error:Jn(405,{method:a.formMethod})};let r=()=>({path:n,error:Jn(400,{type:"invalid-body"})}),u=(a.formMethod||"get").toUpperCase(),f=Kw(n);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!fa(u))return r();let v=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((b,[x,S])=>`${b}${x}=${S}
`,""):String(a.body);return{path:n,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:void 0,text:v}}}else if(a.formEncType==="application/json"){if(!fa(u))return r();try{let v=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:n,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:v,text:void 0}}}catch{return r()}}}Ie(typeof FormData=="function","FormData is not available in this environment");let m,p;if(a.formData)m=nm(a.formData),p=a.formData;else if(a.body instanceof FormData)m=nm(a.body),p=a.body;else if(a.body instanceof URLSearchParams)m=a.body,p=pv(m);else if(a.body==null)m=new URLSearchParams,p=new FormData;else try{m=new URLSearchParams(a.body),p=pv(m)}catch{return r()}let g={formMethod:u,formAction:f,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(fa(g.formMethod))return{path:n,submission:g};let y=Ji(n);return e&&y.search&&Hm(y.search)&&m.append("index",""),y.search=`?${m}`,{path:Xi(y),submission:g}}function cv(e,n,a=!1){let r=e.findIndex(o=>o.route.id===n);return r>=0?e.slice(0,a?r+1:r):e}function dv(e,n,a,r,o,u,f,m,p,g,y,v,b,x){let S=x?Nn(x[1])?x[1].error:x[1].data:void 0,E=e.createURL(n.location),C=e.createURL(o),k=a;u&&n.errors?k=cv(a,Object.keys(n.errors)[0],!0):x&&Nn(x[1])&&(k=cv(a,x[0]));let z=x?x[1].statusCode:void 0,_=z&&z>=400,Z=k.filter((W,ce)=>{let{route:re}=W;if(re.lazy)return!0;if(re.loader==null)return!1;if(u)return em(re,n.loaderData,n.errors);if(kA(n.loaderData,n.matches[ce],W))return!0;let Q=n.matches[ce],ne=W;return fv(W,{currentUrl:E,currentParams:Q.params,nextUrl:C,nextParams:ne.params,...r,actionResult:S,actionStatus:z,defaultShouldRevalidate:_?!1:f||E.pathname+E.search===C.pathname+C.search||E.search!==C.search||MA(Q,ne)})}),R=[];return g.forEach((W,ce)=>{if(u||!a.some(Ge=>Ge.route.id===W.routeId)||p.has(ce))return;let re=Oi(v,W.path,b);if(!re){R.push({key:ce,routeId:W.routeId,path:W.path,matches:null,match:null,controller:null});return}let Q=n.fetchers.get(ce),ne=fo(re,W.path),fe=!1;y.has(ce)?fe=!1:m.has(ce)?(m.delete(ce),fe=!0):Q&&Q.state!=="idle"&&Q.data===void 0?fe=f:fe=fv(ne,{currentUrl:E,currentParams:n.matches[n.matches.length-1].params,nextUrl:C,nextParams:a[a.length-1].params,...r,actionResult:S,actionStatus:z,defaultShouldRevalidate:_?!1:f}),fe&&R.push({key:ce,routeId:W.routeId,path:W.path,matches:re,match:ne,controller:new AbortController})}),[Z,R]}function em(e,n,a){if(e.lazy)return!0;if(!e.loader)return!1;let r=n!=null&&n[e.id]!==void 0,o=a!=null&&a[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function kA(e,n,a){let r=!n||a.route.id!==n.route.id,o=!e.hasOwnProperty(a.route.id);return r||o}function MA(e,n){let a=e.route.path;return e.pathname!==n.pathname||a!=null&&a.endsWith("*")&&e.params["*"]!==n.params["*"]}function fv(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function hv(e,n,a,r,o){let u;if(e){let p=r[e];Ie(p,`No route found to patch children into: routeId = ${e}`),p.children||(p.children=[]),u=p.children}else u=a;let f=n.filter(p=>!u.some(g=>Yw(p,g))),m=gc(f,o,[e||"_","patch",String((u==null?void 0:u.length)||"0")],r);u.push(...m)}function Yw(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((a,r)=>{var o;return(o=n.children)==null?void 0:o.some(u=>Yw(a,u))}):!1}async function DA(e,n,a){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=a[e.id];Ie(o,"No route found in manifest");let u={};for(let f in r){let p=o[f]!==void 0&&f!=="hasErrorBoundary";It(!p,`Route "${o.id}" has a static property "${f}" defined but its lazy function is also returning a value for this property. The lazy route property "${f}" will be ignored.`),!p&&!tA.has(f)&&(u[f]=r[f])}Object.assign(o,u),Object.assign(o,{...n(o),lazy:void 0})}async function mv(e){let n=e.matches.filter(o=>o.shouldLoad),a={};return(await Promise.all(n.map(o=>o.resolve()))).forEach((o,u)=>{a[n[u].route.id]=o}),a}async function OA(e){return e.matches.some(n=>n.route.unstable_middleware)?_A(e,!1,()=>mv(e),n=>({[n.routeId]:{type:"error",result:n.error}})):mv(e)}async function _A(e,n,a,r){let{matches:o,request:u,params:f,context:m}=e,p={handlerResult:void 0,propagateResult:n};try{let g=o.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(b=>[v.route.id,b]):[]),y=await Xw({request:u,params:f,context:m},g,p,a);return p.propagateResult?y:p.handlerResult}catch(g){if(!(g instanceof tm))throw g;let y=await r(g);return p.handlerResult?Object.assign(p.handlerResult,y):y}}var tm=class{constructor(e,n){this.routeId=e,this.error=n}};async function Xw(e,n,a,r,o=0){let{request:u}=e;if(u.signal.aborted)throw u.signal.reason?u.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${u.method} ${u.url}`);let f=n[o];if(!f)return a.handlerResult=await r(),a.handlerResult;let[m,p]=f,g=!1,y,v=async()=>{if(g)throw new Error("You may only call `next()` once per middleware");g=!0;let b=await Xw(e,n,a,r,o+1);if(a.propagateResult)return y=b,y};try{let b=await p({request:e.request,params:e.params,context:e.context},v);return g?b===void 0?y:b:v()}catch(b){throw b instanceof tm?b:new tm(m,b)}}async function BA(e,n,a,r,o,u,f,m,p,g){let y=o.map(x=>x.route.lazy?DA(x.route,m,f):void 0);g&&await Promise.all(y);let v=o.map((x,S)=>{let E=y[S],C=r.some(z=>z.route.id===x.route.id);return{...x,shouldLoad:C,resolve:async z=>(z&&a.method==="GET"&&(x.route.lazy||x.route.loader)&&(C=!0),C?zA(n,a,x,E,z,p):Promise.resolve({type:"data",result:void 0}))}}),b=await e({matches:v,request:a,params:o[0].params,fetcherKey:u,context:p});try{await Promise.all(y)}catch{}return b}async function zA(e,n,a,r,o,u){let f,m,p=g=>{let y,v=new Promise((S,E)=>y=E);m=()=>y(),n.signal.addEventListener("abort",m);let b=S=>typeof g!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${a.route.id}]`)):g({request:n,params:a.params,context:u},...S!==void 0?[S]:[]),x=(async()=>{try{return{type:"data",result:await(o?o(E=>b(E)):b())}}catch(S){return{type:"error",result:S}}})();return Promise.race([x,v])};try{let g=a.route[e];if(r)if(g){let y,[v]=await Promise.all([p(g).catch(b=>{y=b}),r]);if(y!==void 0)throw y;f=v}else if(await r,g=a.route[e],g)f=await p(g);else if(e==="action"){let y=new URL(n.url),v=y.pathname+y.search;throw Jn(405,{method:n.method,pathname:v,routeId:a.route.id})}else return{type:"data",result:void 0};else if(g)f=await p(g);else{let y=new URL(n.url),v=y.pathname+y.search;throw Jn(404,{pathname:v})}}catch(g){return{type:"error",result:g}}finally{m&&n.signal.removeEventListener("abort",m)}return f}async function LA(e){var r,o,u,f,m,p;let{result:n,type:a}=e;if(Zw(n)){let g;try{let y=n.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?n.body==null?g=null:g=await n.json():g=await n.text()}catch(y){return{type:"error",error:y}}return a==="error"?{type:"error",error:new yc(n.status,n.statusText,g),statusCode:n.status,headers:n.headers}:{type:"data",data:g,statusCode:n.status,headers:n.headers}}return a==="error"?xv(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(r=n.init)==null?void 0:r.status,headers:(o=n.init)!=null&&o.headers?new Headers(n.init.headers):void 0}:{type:"error",error:new yc(((u=n.init)==null?void 0:u.status)||500,void 0,n.data),statusCode:po(n)?n.status:void 0,headers:(f=n.init)!=null&&f.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:po(n)?n.status:void 0}:xv(n)?{type:"data",data:n.data,statusCode:(m=n.init)==null?void 0:m.status,headers:(p=n.init)!=null&&p.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function UA(e,n,a,r,o){let u=e.headers.get("Location");if(Ie(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!Um.test(u)){let f=r.slice(0,r.findIndex(m=>m.route.id===a)+1);u=Wh(new URL(n.url),f,o,u),e.headers.set("Location",u)}return e}function gv(e,n,a){if(Um.test(e)){let r=e,o=r.startsWith("//")?new URL(n.protocol+r):new URL(r),u=ta(o.pathname,a)!=null;if(o.origin===n.origin&&u)return o.pathname+o.search+o.hash}return e}function Ts(e,n,a,r){let o=e.createURL(Kw(n)).toString(),u={signal:a};if(r&&fa(r.formMethod)){let{formMethod:f,formEncType:m}=r;u.method=f.toUpperCase(),m==="application/json"?(u.headers=new Headers({"Content-Type":m}),u.body=JSON.stringify(r.json)):m==="text/plain"?u.body=r.text:m==="application/x-www-form-urlencoded"&&r.formData?u.body=nm(r.formData):u.body=r.formData}return new Request(o,u)}function nm(e){let n=new URLSearchParams;for(let[a,r]of e.entries())n.append(a,typeof r=="string"?r:r.name);return n}function pv(e){let n=new FormData;for(let[a,r]of e.entries())n.append(a,r);return n}function HA(e,n,a,r=!1,o=!1){let u={},f=null,m,p=!1,g={},y=a&&Nn(a[1])?a[1].error:void 0;return e.forEach(v=>{if(!(v.route.id in n))return;let b=v.route.id,x=n[b];if(Ie(!Nr(x),"Cannot handle redirect results in processLoaderData"),Nn(x)){let S=x.error;if(y!==void 0&&(S=y,y=void 0),f=f||{},o)f[b]=S;else{let E=Rr(e,b);f[E.route.id]==null&&(f[E.route.id]=S)}r||(u[b]=$w),p||(p=!0,m=po(x.error)?x.error.status:500),x.headers&&(g[b]=x.headers)}else u[b]=x.data,x.statusCode&&x.statusCode!==200&&!p&&(m=x.statusCode),x.headers&&(g[b]=x.headers)}),y!==void 0&&a&&(f={[a[0]]:y},u[a[0]]=void 0),{loaderData:u,errors:f,statusCode:m||200,loaderHeaders:g}}function yv(e,n,a,r,o,u){let{loaderData:f,errors:m}=HA(n,a,r);return o.forEach(p=>{let{key:g,match:y,controller:v}=p,b=u[g];if(Ie(b,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Nn(b)){let x=Rr(e.matches,y==null?void 0:y.route.id);m&&m[x.route.id]||(m={...m,[x.route.id]:b.error}),e.fetchers.delete(g)}else if(Nr(b))Ie(!1,"Unhandled fetcher revalidation redirect");else{let x=Mi(b.data);e.fetchers.set(g,x)}}),{loaderData:f,errors:m}}function vv(e,n,a,r){let o=Object.entries(n).filter(([,u])=>u!==$w).reduce((u,[f,m])=>(u[f]=m,u),{});for(let u of a){let f=u.route.id;if(!n.hasOwnProperty(f)&&e.hasOwnProperty(f)&&u.route.loader&&(o[f]=e[f]),r&&r.hasOwnProperty(f))break}return o}function wv(e){return e?Nn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Rr(e,n){return(n?e.slice(0,e.findIndex(r=>r.route.id===n)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function bv(e){let n=e.length===1?e[0]:e.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function Jn(e,{pathname:n,routeId:a,method:r,type:o,message:u}={}){let f="Unknown Server Error",m="Unknown @remix-run/router error";return e===400?(f="Bad Request",r&&n&&a?m=`You made a ${r} request to "${n}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:o==="invalid-body"&&(m="Unable to encode submission body")):e===403?(f="Forbidden",m=`Route "${a}" does not match URL "${n}"`):e===404?(f="Not Found",m=`No route matches URL "${n}"`):e===405&&(f="Method Not Allowed",r&&n&&a?m=`You made a ${r.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:r&&(m=`Invalid request method "${r.toUpperCase()}"`)),new yc(e||500,f,new Error(m),!0)}function Zu(e){let n=Object.entries(e);for(let a=n.length-1;a>=0;a--){let[r,o]=n[a];if(Nr(o))return{key:r,result:o}}}function Kw(e){let n=typeof e=="string"?Ji(e):e;return Xi({...n,hash:""})}function FA(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function PA(e){return Zw(e.result)&&CA.has(e.result.status)}function Nn(e){return e.type==="error"}function Nr(e){return(e&&e.type)==="redirect"}function xv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Zw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function VA(e){return AA.has(e.toUpperCase())}function fa(e){return xA.has(e.toUpperCase())}function Hm(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function fo(e,n){let a=typeof n=="string"?Ji(n).search:n.search;if(e[e.length-1].route.index&&Hm(a||""))return e[e.length-1];let r=qw(e);return r[r.length-1]}function Sv(e){let{formMethod:n,formAction:a,formEncType:r,text:o,formData:u,json:f}=e;if(!(!n||!a||!r)){if(o!=null)return{formMethod:n,formAction:a,formEncType:r,formData:void 0,json:void 0,text:o};if(u!=null)return{formMethod:n,formAction:a,formEncType:r,formData:u,json:void 0,text:void 0};if(f!==void 0)return{formMethod:n,formAction:a,formEncType:r,formData:void 0,json:f,text:void 0}}}function jh(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function IA(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function ro(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function qA(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function Mi(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 QA(e,n){try{let a=e.sessionStorage.getItem(Gw);if(a){let r=JSON.parse(a);for(let[o,u]of Object.entries(r||{}))u&&Array.isArray(u)&&n.set(o,new Set(u||[]))}}catch{}}function GA(e,n){if(n.size>0){let a={};for(let[r,o]of n)a[r]=[...o];try{e.sessionStorage.setItem(Gw,JSON.stringify(a))}catch(r){It(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function $A(){let e,n,a=new Promise((r,o)=>{e=async u=>{r(u);try{await a}catch{}},n=async u=>{o(u);try{await a}catch{}}});return{promise:a,resolve:e,reject:n}}var qr=j.createContext(null);qr.displayName="DataRouter";var Co=j.createContext(null);Co.displayName="DataRouterState";var Fm=j.createContext({isTransitioning:!1});Fm.displayName="ViewTransition";var Jw=j.createContext(new Map);Jw.displayName="Fetchers";var YA=j.createContext(null);YA.displayName="Await";var ga=j.createContext(null);ga.displayName="Navigation";var Hc=j.createContext(null);Hc.displayName="Location";var aa=j.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Pm=j.createContext(null);Pm.displayName="RouteError";function XA(e,{relative:n}={}){Ie(Ks(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=j.useContext(ga),{hash:o,pathname:u,search:f}=Eo(e,{relative:n}),m=u;return a!=="/"&&(m=u==="/"?a:Ta([a,u])),r.createHref({pathname:m,search:f,hash:o})}function Ks(){return j.useContext(Hc)!=null}function Da(){return Ie(Ks(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Hc).location}var Ww="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eb(e){j.useContext(ga).static||j.useLayoutEffect(e)}function dn(){let{isDataRoute:e}=j.useContext(aa);return e?uC():KA()}function KA(){Ie(Ks(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(qr),{basename:n,navigator:a}=j.useContext(ga),{matches:r}=j.useContext(aa),{pathname:o}=Da(),u=JSON.stringify(Lc(r)),f=j.useRef(!1);return eb(()=>{f.current=!0}),j.useCallback((p,g={})=>{if(It(f.current,Ww),!f.current)return;if(typeof p=="number"){a.go(p);return}let y=Uc(p,JSON.parse(u),o,g.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Ta([n,y.pathname])),(g.replace?a.replace:a.push)(y,g.state,g)},[n,a,u,o,e])}var ZA=j.createContext(null);function JA(e){let n=j.useContext(aa).outlet;return n&&j.createElement(ZA.Provider,{value:e},n)}function Fc(){let{matches:e}=j.useContext(aa),n=e[e.length-1];return n?n.params:{}}function Eo(e,{relative:n}={}){let{matches:a}=j.useContext(aa),{pathname:r}=Da(),o=JSON.stringify(Lc(a));return j.useMemo(()=>Uc(e,JSON.parse(o),r,n==="path"),[e,o,r,n])}function WA(e,n,a,r){Ie(Ks(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:u}=j.useContext(ga),{matches:f}=j.useContext(aa),m=f[f.length-1],p=m?m.params:{},g=m?m.pathname:"/",y=m?m.pathnameBase:"/",v=m&&m.route;{let z=v&&v.path||"";nb(g,!v||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${z}">) 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.
Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let b=Da(),x;x=b;let S=x.pathname||"/",E=S;if(y!=="/"){let z=y.replace(/^\//,"").split("/");E="/"+S.replace(/^\//,"").split("/").slice(z.length).join("/")}let C=!u&&a&&a.matches&&a.matches.length>0?a.matches:Oi(e,{pathname:E});return It(v||C!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),It(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),iC(C&&C.map(z=>Object.assign({},z,{params:Object.assign({},p,z.params),pathname:Ta([y,o.encodeLocation?o.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?y:Ta([y,o.encodeLocation?o.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),f,a,r)}function eC(){let e=tb(),n=po(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},u={padding:"2px 4px",backgroundColor:r},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:u},"ErrorBoundary")," or"," ",j.createElement("code",{style:u},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},n),a?j.createElement("pre",{style:o},a):null,f)}var tC=j.createElement(eC,null),nC=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?j.createElement(aa.Provider,{value:this.props.routeContext},j.createElement(Pm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function aC({routeContext:e,match:n,children:a}){let r=j.useContext(qr);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(aa.Provider,{value:e},a)}function iC(e,n=[],a=null,r=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let o=e,u=a==null?void 0:a.errors;if(u!=null){let p=o.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);Ie(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let f=!1,m=-1;if(a)for(let p=0;p<o.length;p++){let g=o[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:y,errors:v}=a,b=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!v||v[g.route.id]===void 0);if(g.route.lazy||b){f=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((p,g,y)=>{let v,b=!1,x=null,S=null;a&&(v=u&&g.route.id?u[g.route.id]:void 0,x=g.route.errorElement||tC,f&&(m<0&&y===0?(nb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,S=null):m===y&&(b=!0,S=g.route.hydrateFallbackElement||null)));let E=n.concat(o.slice(0,y+1)),C=()=>{let k;return v?k=x:b?k=S:g.route.Component?k=j.createElement(g.route.Component,null):g.route.element?k=g.route.element:k=p,j.createElement(aC,{match:g,routeContext:{outlet:p,matches:E,isDataRoute:a!=null},children:k})};return a&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?j.createElement(nC,{location:a.location,revalidation:a.revalidation,component:x,error:v,children:C(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):C()},null)}function Vm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rC(e){let n=j.useContext(qr);return Ie(n,Vm(e)),n}function sC(e){let n=j.useContext(Co);return Ie(n,Vm(e)),n}function lC(e){let n=j.useContext(aa);return Ie(n,Vm(e)),n}function Im(e){let n=lC(e),a=n.matches[n.matches.length-1];return Ie(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function oC(){return Im("useRouteId")}function tb(){var r;let e=j.useContext(Pm),n=sC("useRouteError"),a=Im("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[a]}function uC(){let{router:e}=rC("useNavigate"),n=Im("useNavigate"),a=j.useRef(!1);return eb(()=>{a.current=!0}),j.useCallback(async(o,u={})=>{It(a.current,Ww),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...u}))},[e,n])}var Av={};function nb(e,n,a){!n&&!Av[e]&&(Av[e]=!0,It(!1,a))}var Cv={};function Ev(e,n){!e&&!Cv[n]&&(Cv[n]=!0,console.warn(n))}function cC(e){let n={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&It(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:j.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&It(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:j.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&It(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:j.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),n}var dC=class{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",e(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",n(a))}})}};function fC({router:e,flushSync:n}){let[a,r]=j.useState(e.state),[o,u]=j.useState(),[f,m]=j.useState({isTransitioning:!1}),[p,g]=j.useState(),[y,v]=j.useState(),[b,x]=j.useState(),S=j.useRef(new Map),E=j.useCallback((_,{deletedFetchers:Z,flushSync:R,viewTransitionOpts:W})=>{_.fetchers.forEach((re,Q)=>{re.data!==void 0&&S.current.set(Q,re.data)}),Z.forEach(re=>S.current.delete(re)),Ev(R===!1||n!=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 ce=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Ev(W==null||ce,"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."),!W||!ce){n&&R?n(()=>r(_)):j.startTransition(()=>r(_));return}if(n&&R){n(()=>{y&&(p&&p.resolve(),y.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let re=e.window.document.startViewTransition(()=>{n(()=>r(_))});re.finished.finally(()=>{n(()=>{g(void 0),v(void 0),u(void 0),m({isTransitioning:!1})})}),n(()=>v(re));return}y?(p&&p.resolve(),y.skipTransition(),x({state:_,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(u(_),m({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[e.window,n,y,p]);j.useLayoutEffect(()=>e.subscribe(E),[e,E]),j.useEffect(()=>{f.isTransitioning&&!f.flushSync&&g(new dC)},[f]),j.useEffect(()=>{if(p&&o&&e.window){let _=o,Z=p.promise,R=e.window.document.startViewTransition(async()=>{j.startTransition(()=>r(_)),await Z});R.finished.finally(()=>{g(void 0),v(void 0),u(void 0),m({isTransitioning:!1})}),v(R)}},[o,p,e.window]),j.useEffect(()=>{p&&o&&a.location.key===o.location.key&&p.resolve()},[p,y,a.location,o]),j.useEffect(()=>{!f.isTransitioning&&b&&(u(b.state),m({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),x(void 0))},[f.isTransitioning,b]);let C=j.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:_=>e.navigate(_),push:(_,Z,R)=>e.navigate(_,{state:Z,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(_,Z,R)=>e.navigate(_,{replace:!0,state:Z,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[e]),k=e.basename||"/",z=j.useMemo(()=>({router:e,navigator:C,static:!1,basename:k}),[e,C,k]);return j.createElement(j.Fragment,null,j.createElement(qr.Provider,{value:z},j.createElement(Co.Provider,{value:a},j.createElement(Jw.Provider,{value:S.current},j.createElement(Fm.Provider,{value:f},j.createElement(gC,{basename:k,location:a.location,navigationType:a.historyAction,navigator:C},j.createElement(hC,{routes:e.routes,future:e.future,state:a})))))),null)}var hC=j.memo(mC);function mC({routes:e,future:n,state:a}){return WA(e,void 0,a,n)}function Rh({to:e,replace:n,state:a,relative:r}){Ie(Ks(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=j.useContext(ga);It(!o,"<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:u}=j.useContext(aa),{pathname:f}=Da(),m=dn(),p=Uc(e,Lc(u),f,r==="path"),g=JSON.stringify(p);return j.useEffect(()=>{m(JSON.parse(g),{replace:n,state:a,relative:r})},[m,g,r,n,a]),null}function ab(e){return JA(e.context)}function gC({basename:e="/",children:n=null,location:a,navigationType:r="POP",navigator:o,static:u=!1}){Ie(!Ks(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),m=j.useMemo(()=>({basename:f,navigator:o,static:u,future:{}}),[f,o,u]);typeof a=="string"&&(a=Ji(a));let{pathname:p="/",search:g="",hash:y="",state:v=null,key:b="default"}=a,x=j.useMemo(()=>{let S=ta(p,f);return S==null?null:{location:{pathname:S,search:g,hash:y,state:v,key:b},navigationType:r}},[f,p,g,y,v,b,r]);return It(x!=null,`<Router basename="${f}"> is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:j.createElement(ga.Provider,{value:m},j.createElement(Hc.Provider,{children:n,value:x}))}var sc="get",lc="application/x-www-form-urlencoded";function Pc(e){return e!=null&&typeof e.tagName=="string"}function pC(e){return Pc(e)&&e.tagName.toLowerCase()==="button"}function yC(e){return Pc(e)&&e.tagName.toLowerCase()==="form"}function vC(e){return Pc(e)&&e.tagName.toLowerCase()==="input"}function wC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bC(e,n){return e.button===0&&(!n||n==="_self")&&!wC(e)}var Ju=null;function xC(){if(Ju===null)try{new FormData(document.createElement("form"),0),Ju=!1}catch{Ju=!0}return Ju}var SC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Nh(e){return e!=null&&!SC.has(e)?(It(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${lc}"`),null):e}function AC(e,n){let a,r,o,u,f;if(yC(e)){let m=e.getAttribute("action");r=m?ta(m,n):null,a=e.getAttribute("method")||sc,o=Nh(e.getAttribute("enctype"))||lc,u=new FormData(e)}else if(pC(e)||vC(e)&&(e.type==="submit"||e.type==="image")){let m=e.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||m.getAttribute("action");if(r=p?ta(p,n):null,a=e.getAttribute("formmethod")||m.getAttribute("method")||sc,o=Nh(e.getAttribute("formenctype"))||Nh(m.getAttribute("enctype"))||lc,u=new FormData(m,e),!xC()){let{name:g,type:y,value:v}=e;if(y==="image"){let b=g?`${g}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else g&&u.append(g,v)}}else{if(Pc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=sc,r=null,o=lc,f=e}return u&&o==="text/plain"&&(f=u,u=void 0),{action:r,method:a.toLowerCase(),encType:o,formData:u,body:f}}function qm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function CC(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function EC(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 jC(e,n,a){let r=await Promise.all(e.map(async o=>{let u=n.routes[o.route.id];if(u){let f=await CC(u,a);return f.links?f.links():[]}return[]}));return kC(r.flat(1).filter(EC).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function jv(e,n,a,r,o,u){let f=(p,g)=>a[g]?p.route.id!==a[g].route.id:!0,m=(p,g)=>{var y;return a[g].pathname!==p.pathname||((y=a[g].route.path)==null?void 0:y.endsWith("*"))&&a[g].params["*"]!==p.params["*"]};return u==="assets"?n.filter((p,g)=>f(p,g)||m(p,g)):u==="data"?n.filter((p,g)=>{var v;let y=r.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(f(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=a[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function RC(e,n,{includeHydrateFallback:a}={}){return NC(e.map(r=>{let o=n.routes[r.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function NC(e){return[...new Set(e)]}function TC(e){let n={},a=Object.keys(e).sort();for(let r of a)n[r]=e[r];return n}function kC(e,n){let a=new Set;return new Set(n),e.reduce((r,o)=>{let u=JSON.stringify(TC(o));return a.has(u)||(a.add(u),r.push({key:u,link:o})),r},[])}function MC(e,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a.pathname==="/"?a.pathname="_root.data":n&&ta(a.pathname,n)==="/"?a.pathname=`${n.replace(/\/$/,"")}/_root.data`:a.pathname=`${a.pathname.replace(/\/$/,"")}.data`,a}function ib(){let e=j.useContext(qr);return qm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function DC(){let e=j.useContext(Co);return qm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Qm=j.createContext(void 0);Qm.displayName="FrameworkContext";function rb(){let e=j.useContext(Qm);return qm(e,"You must render this element inside a <HydratedRouter> element"),e}function OC(e,n){let a=j.useContext(Qm),[r,o]=j.useState(!1),[u,f]=j.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:v}=n,b=j.useRef(null);j.useEffect(()=>{if(e==="render"&&f(!0),e==="viewport"){let E=k=>{k.forEach(z=>{f(z.isIntersecting)})},C=new IntersectionObserver(E,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[e]),j.useEffect(()=>{if(r){let E=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(E)}}},[r]);let x=()=>{o(!0)},S=()=>{o(!1),f(!1)};return a?e!=="intent"?[u,b,{}]:[u,b,{onFocus:so(m,x),onBlur:so(p,S),onMouseEnter:so(g,x),onMouseLeave:so(y,S),onTouchStart:so(v,x)}]:[!1,b,{}]}function so(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function _C({page:e,...n}){let{router:a}=ib(),r=j.useMemo(()=>Oi(a.routes,e,a.basename),[a.routes,e,a.basename]);return r?j.createElement(zC,{page:e,matches:r,...n}):null}function BC(e){let{manifest:n,routeModules:a}=rb(),[r,o]=j.useState([]);return j.useEffect(()=>{let u=!1;return jC(e,n,a).then(f=>{u||o(f)}),()=>{u=!0}},[e,n,a]),r}function zC({page:e,matches:n,...a}){let r=Da(),{manifest:o,routeModules:u}=rb(),{basename:f}=ib(),{loaderData:m,matches:p}=DC(),g=j.useMemo(()=>jv(e,n,p,o,r,"data"),[e,n,p,o,r]),y=j.useMemo(()=>jv(e,n,p,o,r,"assets"),[e,n,p,o,r]),v=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,E=!1;if(n.forEach(k=>{var _;let z=o.routes[k.route.id];!z||!z.hasLoader||(!g.some(Z=>Z.route.id===k.route.id)&&k.route.id in m&&((_=u[k.route.id])!=null&&_.shouldRevalidate)||z.hasClientLoader?E=!0:S.add(k.route.id))}),S.size===0)return[];let C=MC(e,f);return E&&S.size>0&&C.searchParams.set("_routes",n.filter(k=>S.has(k.route.id)).map(k=>k.route.id).join(",")),[C.pathname+C.search]},[f,m,r,o,g,n,e,u]),b=j.useMemo(()=>RC(y,o),[y,o]),x=BC(y);return j.createElement(j.Fragment,null,v.map(S=>j.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...a})),b.map(S=>j.createElement("link",{key:S,rel:"modulepreload",href:S,...a})),x.map(({key:S,link:E})=>j.createElement("link",{key:S,...E})))}function LC(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var sb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{sb&&(window.__reactRouterVersion="7.3.0")}catch{}function UC(e,n){return NA({basename:n==null?void 0:n.basename,unstable_getContext:n==null?void 0:n.unstable_getContext,future:n==null?void 0:n.future,history:JS({window:n==null?void 0:n.window}),hydrationData:HC(),routes:e,mapRouteProperties:cC,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function HC(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:FC(e.errors)}),e}function FC(e){if(!e)return null;let n=Object.entries(e),a={};for(let[r,o]of n)if(o&&o.__type==="RouteErrorResponse")a[r]=new yc(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let u=window[o.__subType];if(typeof u=="function")try{let f=new u(o.message);f.stack="",a[r]=f}catch{}}if(a[r]==null){let u=new Error(o.message);u.stack="",a[r]=u}}else a[r]=o;return a}var lb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vc=j.forwardRef(function({onClick:n,discover:a="render",prefetch:r="none",relative:o,reloadDocument:u,replace:f,state:m,target:p,to:g,preventScrollReset:y,viewTransition:v,...b},x){let{basename:S}=j.useContext(ga),E=typeof g=="string"&&lb.test(g),C,k=!1;if(typeof g=="string"&&E&&(C=g,sb))try{let Q=new URL(window.location.href),ne=g.startsWith("//")?new URL(Q.protocol+g):new URL(g),fe=ta(ne.pathname,S);ne.origin===Q.origin&&fe!=null?g=fe+ne.search+ne.hash:k=!0}catch{It(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let z=XA(g,{relative:o}),[_,Z,R]=OC(r,b),W=qC(g,{replace:f,state:m,target:p,preventScrollReset:y,relative:o,viewTransition:v});function ce(Q){n&&n(Q),Q.defaultPrevented||W(Q)}let re=j.createElement("a",{...b,...R,href:C||z,onClick:k||u?n:ce,ref:LC(x,Z),target:p,"data-discover":!E&&a==="render"?"true":void 0});return _&&!E?j.createElement(j.Fragment,null,re,j.createElement(_C,{page:z})):re});Vc.displayName="Link";var PC=j.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:r="",end:o=!1,style:u,to:f,viewTransition:m,children:p,...g},y){let v=Eo(f,{relative:g.relative}),b=Da(),x=j.useContext(Co),{navigator:S,basename:E}=j.useContext(ga),C=x!=null&&XC(v)&&m===!0,k=S.encodeLocation?S.encodeLocation(v).pathname:v.pathname,z=b.pathname,_=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;a||(z=z.toLowerCase(),_=_?_.toLowerCase():null,k=k.toLowerCase()),_&&E&&(_=ta(_,E)||_);const Z=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let R=z===k||!o&&z.startsWith(k)&&z.charAt(Z)==="/",W=_!=null&&(_===k||!o&&_.startsWith(k)&&_.charAt(k.length)==="/"),ce={isActive:R,isPending:W,isTransitioning:C},re=R?n:void 0,Q;typeof r=="function"?Q=r(ce):Q=[r,R?"active":null,W?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ne=typeof u=="function"?u(ce):u;return j.createElement(Vc,{...g,"aria-current":re,className:Q,ref:y,style:ne,to:f,viewTransition:m},typeof p=="function"?p(ce):p)});PC.displayName="NavLink";var VC=j.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:r,replace:o,state:u,method:f=sc,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:v,...b},x)=>{let S=$C(),E=YC(m,{relative:g}),C=f.toLowerCase()==="get"?"get":"post",k=typeof m=="string"&&lb.test(m),z=_=>{if(p&&p(_),_.defaultPrevented)return;_.preventDefault();let Z=_.nativeEvent.submitter,R=(Z==null?void 0:Z.getAttribute("formmethod"))||f;S(Z||_.currentTarget,{fetcherKey:n,method:R,navigate:a,replace:o,state:u,relative:g,preventScrollReset:y,viewTransition:v})};return j.createElement("form",{ref:x,method:C,action:E,onSubmit:r?p:z,...b,"data-discover":!k&&e==="render"?"true":void 0})});VC.displayName="Form";function IC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ob(e){let n=j.useContext(qr);return Ie(n,IC(e)),n}function qC(e,{target:n,replace:a,state:r,preventScrollReset:o,relative:u,viewTransition:f}={}){let m=dn(),p=Da(),g=Eo(e,{relative:u});return j.useCallback(y=>{if(bC(y,n)){y.preventDefault();let v=a!==void 0?a:Xi(p)===Xi(g);m(e,{replace:v,state:r,preventScrollReset:o,relative:u,viewTransition:f})}},[p,m,g,a,r,n,e,o,u,f])}var QC=0,GC=()=>`__${String(++QC)}__`;function $C(){let{router:e}=ob("useSubmit"),{basename:n}=j.useContext(ga),a=oC();return j.useCallback(async(r,o={})=>{let{action:u,method:f,encType:m,formData:p,body:g}=AC(r,n);if(o.navigate===!1){let y=o.fetcherKey||GC();await e.fetch(y,a,o.action||u,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||f,formEncType:o.encType||m,flushSync:o.flushSync})}else await e.navigate(o.action||u,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||f,formEncType:o.encType||m,replace:o.replace,state:o.state,fromRouteId:a,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,a])}function YC(e,{relative:n}={}){let{basename:a}=j.useContext(ga),r=j.useContext(aa);Ie(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),u={...Eo(e||".",{relative:n})},f=Da();if(e==null){u.search=f.search;let m=new URLSearchParams(u.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(v=>v).forEach(v=>m.append("index",v));let y=m.toString();u.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(u.pathname=u.pathname==="/"?a:Ta([a,u.pathname])),Xi(u)}function XC(e,n={}){let a=j.useContext(Fm);Ie(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ob("useViewTransitionState"),o=Eo(e,{relative:n.relative});if(!a.isTransitioning)return!1;let u=ta(a.currentLocation.pathname,r)||a.currentLocation.pathname,f=ta(a.nextLocation.pathname,r)||a.nextLocation.pathname;return pc(o.pathname,f)!=null||pc(o.pathname,u)!=null}new TextEncoder;var KC=Fw();/**
* react-router v7.3.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ZC(e){return j.createElement(fC,{flushSync:KC.flushSync,...e})}function JC(){return d.jsx("div",{className:"relative min-h-screen flex flex-col",children:d.jsx(ab,{})})}var ub={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Rv=Yi.createContext&&Yi.createContext(ub),WC=["attr","size","title"];function eE(e,n){if(e==null)return{};var a=tE(e,n),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function tE(e,n){if(e==null)return{};var a={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;a[r]=e[r]}return a}function vc(){return vc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},vc.apply(this,arguments)}function Nv(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function wc(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Nv(Object(a),!0).forEach(function(r){nE(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Nv(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function nE(e,n,a){return n=aE(n),n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function aE(e){var n=iE(e,"string");return typeof n=="symbol"?n:n+""}function iE(e,n){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,n);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function cb(e){return e&&e.map((n,a)=>Yi.createElement(n.tag,wc({key:a},n.attr),cb(n.child)))}function jt(e){return n=>Yi.createElement(rE,vc({attr:wc({},e.attr)},n),cb(e.child))}function rE(e){var n=a=>{var{attr:r,size:o,title:u}=e,f=eE(e,WC),m=o||a.size||"1em",p;return a.className&&(p=a.className),e.className&&(p=(p?p+" ":"")+e.className),Yi.createElement("svg",vc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,f,{className:p,style:wc(wc({color:e.color||a.color},a.style),e.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),u&&Yi.createElement("title",null,u),e.children)};return Rv!==void 0?Yi.createElement(Rv.Consumer,null,a=>n(a)):n(ub)}function sE(e){return jt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function Ic(e){return jt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function lE(e){return jt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function db(e){return jt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},child:[]}]})(e)}function fb(e){return jt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(e)}function oE(e){return jt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function uE(e){return jt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function cE(e){return jt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function am(e){return jt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},child:[]}]})(e)}function dE(e){return jt({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"},child:[]}]})(e)}function fE(e){return jt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function hE(e){return jt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(e)}function qc(e){return jt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function mE(e){return jt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function gE(e){return jt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(e)}const pE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASIAAAEXCAYAAAAJCUmoAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACxMAAAsTAQCanBgAAAR/SURBVHhe7dc9blRnGIZhHxwlGixEmiBBBSmQZgUoHbsYZQNe1KwA17AASipKLEwkKBLyQ5NIYCfEzqT59nDjb66rmefU7+jWOcvbPy8fHuyB+7cPz8ac2ofz/+6OObXvbt74dcyp7cs9lyevzo/HntpmvdqOObWT0wv3nMi+3PPG+AXICBGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABueW3j5f3xp7au7+uHo45tTtHh+/HnNofn6724n+7L/dcdrvdmHM7Ob04HnNqm/VqO+bU3HMuPs2AnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkFuevrn48dO/u1vjeVqb9Wo75tSe/fS3e3LteCMCckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQG55+fvnHz5f7r4Zz9P6/tuvXo85tZ8/Xt3fh3s+uvf18zGZwLLb7cac28npxfGYU9usV9sx4drwaQbkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiA3PLil38ejz21O0eH78ec2oPbh2djwrWxPHl1fjz21Dbr1XZM4Avj0wzICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABsYOD/wHX81nTHsbWPwAAAABJRU5ErkJggg==",yE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASIAAAEXCAYAAAAJCUmoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQ4SURBVHgB7dfBTVRRGIbhc2dGOzBRlkSwDRqwDQIVSaYNG3BnCSaycaUkLF0hwyhdvHLP87TwJW/+fxnAf+vs5u5yTGAzAGJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBuGfACne7vz8cENk+HkzGB3YAXaHt8uhgTuL1+tx8T8JoBOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiILcMVuX9p18XY+1ebx5eHTY/xgQej4cPY+2e99wNVmVZlvOxdo9/f3+7evN1TODs5u7jWLvnPb1mQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgtYxJnN3eXYwK3V2/3YwL2XBcXEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyy+n+/nxMYPN0OBkTOG53P8cEZtnz4fDn+5jAbnt8uhgTuL1+tx8TOLu5uxwTsOe6eM2AnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkNvtlu3nwWrYc122m+2XMYF/FI8/craJi10AAAAASUVORK5CYII=",vE=()=>d.jsxs("div",{className:"relative w-full bg-sky-700 text-white py-12 px-6 md:px-32",children:[d.jsx("img",{className:"absolute top-0 left-0 h-64",src:pE,alt:"ornamen"}),d.jsxs("div",{className:"grid grid-cols-1 gap-y-4 md:flex justify-between items-start relative",children:[d.jsxs("div",{className:"w-full md:w-1/2",children:[d.jsx("h2",{className:"text-lg font-semibold",children:"Kontak:"}),d.jsxs("div",{className:"mt-4 space-y-3",children:[d.jsxs("a",{className:"flex items-center gap-3",href:"mailto:humic@telkomuniversity.ac.id",children:[d.jsx(uE,{className:"text-4xl text-white bg-sky-300 p-2 rounded-full"}),d.jsx("span",{children:"humic@telkomuniversity.ac.id"})]}),d.jsxs("a",{className:"flex items-center gap-3",href:"https://humic.telkomuniversity.ac.id/",children:[d.jsx(dE,{className:"text-4xl text-white bg-sky-300 p-2 rounded-full"}),d.jsx("span",{children:"https://humic.telkomuniversity.ac.id"})]}),d.jsxs("a",{className:"flex items-center gap-3",href:"https://www.instagram.com/humicengineering/",children:[d.jsx(sE,{className:"text-4xl text-white bg-sky-300 p-2 rounded-full"}),d.jsx("span",{children:"@humicengineering"})]})]})]}),d.jsxs("div",{className:"w-full md:w-1/2",children:[d.jsx("h2",{className:"text-lg font-semibold",children:"HUMiC Engineering Tel-U"}),d.jsx("p",{className:"mt-2 text-sm",children:"Pusat riset Telkom University di bidang teknologi untuk kesehatan & kesejahteraan manusia."}),d.jsx("div",{className:"mt-4 space-y-3",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(hE,{className:"text-4xl text-white bg-sky-300 p-2 rounded-full"}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-sm font-normal",children:"Gedung Bangkit Telkom University Jl. Telekomunikasi No. 1, Terusan Buah Batu"}),d.jsx("p",{className:"font-bold",children:"Bandung 40257, Jawa Barat, Indonesia."})]})]})})]})]}),d.jsx("img",{className:"absolute bottom-0 right-0 h-64",src:yE,alt:"ornamen2"})]}),wE="modulepreload",bE=function(e){return"/"+e},Tv={},xE=function(n,a,r){let o=Promise.resolve();if(a&&a.length>0){document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),m=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));o=Promise.allSettled(a.map(p=>{if(p=bE(p),p in Tv)return;Tv[p]=!0;const g=p.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const v=document.createElement("link");if(v.rel=g?"stylesheet":wE,g||(v.as="script"),v.crossOrigin="",v.href=p,m&&v.setAttribute("nonce",m),document.head.appendChild(v),g)return new Promise((b,x)=>{v.addEventListener("load",b),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(f){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=f,window.dispatchEvent(m),!m.defaultPrevented)throw f}return o.then(f=>{for(const m of f||[])m.status==="rejected"&&u(m.reason);return n().catch(u)})},ct="https://myskin-api.humicprototyping.net/api/v1",dt={auth:{registerDoctor:`${ct}/auth/register/doctor`,registerPatient:`${ct}/auth/register/patient`,login:`${ct}/auth/login`,refreshToken:`${ct}/auth/refresh-token`,logout:`${ct}/v1/auth/logout`},detectionsPatient:{history:`${ct}/patient/detections`,createPublic:`${ct}/detect`,create:`${ct}/patient/detections`,update:`${ct}/patient/submission`,detail:`${ct}/patient/detection`},submissionsPatient:{history:`${ct}/patient/submissions`,detail:`${ct}/patient/submission`,delete:`${ct}/patient/submission`},accounts:{list:`${ct}/accounts`,detail:`${ct}/accounts`,create:`${ct}/accounts`,update:`${ct}/accounts`,delete:`${ct}/accounts`},doctor:{doctorList:`${ct}/patient/doctors`},doctor_services:{stats:`${ct}/doctor/dashboard/stats`,pending:`${ct}/doctor/dashboard/pending`,patients:`${ct}/doctor/patients`,submission:`${ct}/doctor/submissions/pending`,history:`${ct}/doctor/submissions/history`,detail:`${ct}/doctor/submissions/{id}/detail`,verify:`${ct}/doctor/submissions/{id}`}};function hb(e,n){return function(){return e.apply(n,arguments)}}const{toString:SE}=Object.prototype,{getPrototypeOf:Gm}=Object,Qc=(e=>n=>{const a=SE.call(n);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),pa=e=>(e=e.toLowerCase(),n=>Qc(n)===e),Gc=e=>n=>typeof n===e,{isArray:Zs}=Array,yo=Gc("undefined");function AE(e){return e!==null&&!yo(e)&&e.constructor!==null&&!yo(e.constructor)&&kn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mb=pa("ArrayBuffer");function CE(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&mb(e.buffer),n}const EE=Gc("string"),kn=Gc("function"),gb=Gc("number"),$c=e=>e!==null&&typeof e=="object",jE=e=>e===!0||e===!1,oc=e=>{if(Qc(e)!=="object")return!1;const n=Gm(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},RE=pa("Date"),NE=pa("File"),TE=pa("Blob"),kE=pa("FileList"),ME=e=>$c(e)&&kn(e.pipe),DE=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||kn(e.append)&&((n=Qc(e))==="formdata"||n==="object"&&kn(e.toString)&&e.toString()==="[object FormData]"))},OE=pa("URLSearchParams"),[_E,BE,zE,LE]=["ReadableStream","Request","Response","Headers"].map(pa),UE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jo(e,n,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Zs(e))for(r=0,o=e.length;r<o;r++)n.call(null,e[r],r,e);else{const u=a?Object.getOwnPropertyNames(e):Object.keys(e),f=u.length;let m;for(r=0;r<f;r++)m=u[r],n.call(null,e[m],m,e)}}function pb(e,n){n=n.toLowerCase();const a=Object.keys(e);let r=a.length,o;for(;r-- >0;)if(o=a[r],n===o.toLowerCase())return o;return null}const Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yb=e=>!yo(e)&&e!==Tr;function im(){const{caseless:e}=yb(this)&&this||{},n={},a=(r,o)=>{const u=e&&pb(n,o)||o;oc(n[u])&&oc(r)?n[u]=im(n[u],r):oc(r)?n[u]=im({},r):Zs(r)?n[u]=r.slice():n[u]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&jo(arguments[r],a);return n}const HE=(e,n,a,{allOwnKeys:r}={})=>(jo(n,(o,u)=>{a&&kn(o)?e[u]=hb(o,a):e[u]=o},{allOwnKeys:r}),e),FE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),PE=(e,n,a,r)=>{e.prototype=Object.create(n.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),a&&Object.assign(e.prototype,a)},VE=(e,n,a,r)=>{let o,u,f;const m={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),u=o.length;u-- >0;)f=o[u],(!r||r(f,e,n))&&!m[f]&&(n[f]=e[f],m[f]=!0);e=a!==!1&&Gm(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},IE=(e,n,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=n.length;const r=e.indexOf(n,a);return r!==-1&&r===a},qE=e=>{if(!e)return null;if(Zs(e))return e;let n=e.length;if(!gb(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=e[n];return a},QE=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&Gm(Uint8Array)),GE=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const u=o.value;n.call(e,u[0],u[1])}},$E=(e,n)=>{let a;const r=[];for(;(a=e.exec(n))!==null;)r.push(a);return r},YE=pa("HTMLFormElement"),XE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,o){return r.toUpperCase()+o}),kv=(({hasOwnProperty:e})=>(n,a)=>e.call(n,a))(Object.prototype),KE=pa("RegExp"),vb=(e,n)=>{const a=Object.getOwnPropertyDescriptors(e),r={};jo(a,(o,u)=>{let f;(f=n(o,u,e))!==!1&&(r[u]=f||o)}),Object.defineProperties(e,r)},ZE=e=>{vb(e,(n,a)=>{if(kn(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=e[a];if(kn(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},JE=(e,n)=>{const a={},r=o=>{o.forEach(u=>{a[u]=!0})};return Zs(e)?r(e):r(String(e).split(n)),a},WE=()=>{},ej=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function tj(e){return!!(e&&kn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nj=e=>{const n=new Array(10),a=(r,o)=>{if($c(r)){if(n.indexOf(r)>=0)return;if(!("toJSON"in r)){n[o]=r;const u=Zs(r)?[]:{};return jo(r,(f,m)=>{const p=a(f,o+1);!yo(p)&&(u[m]=p)}),n[o]=void 0,u}}return r};return a(e,0)},aj=pa("AsyncFunction"),ij=e=>e&&($c(e)||kn(e))&&kn(e.then)&&kn(e.catch),wb=((e,n)=>e?setImmediate:n?((a,r)=>(Tr.addEventListener("message",({source:o,data:u})=>{o===Tr&&u===a&&r.length&&r.shift()()},!1),o=>{r.push(o),Tr.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",kn(Tr.postMessage)),rj=typeof queueMicrotask<"u"?queueMicrotask.bind(Tr):typeof process<"u"&&process.nextTick||wb,$={isArray:Zs,isArrayBuffer:mb,isBuffer:AE,isFormData:DE,isArrayBufferView:CE,isString:EE,isNumber:gb,isBoolean:jE,isObject:$c,isPlainObject:oc,isReadableStream:_E,isRequest:BE,isResponse:zE,isHeaders:LE,isUndefined:yo,isDate:RE,isFile:NE,isBlob:TE,isRegExp:KE,isFunction:kn,isStream:ME,isURLSearchParams:OE,isTypedArray:QE,isFileList:kE,forEach:jo,merge:im,extend:HE,trim:UE,stripBOM:FE,inherits:PE,toFlatObject:VE,kindOf:Qc,kindOfTest:pa,endsWith:IE,toArray:qE,forEachEntry:GE,matchAll:$E,isHTMLForm:YE,hasOwnProperty:kv,hasOwnProp:kv,reduceDescriptors:vb,freezeMethods:ZE,toObjectSet:JE,toCamelCase:XE,noop:WE,toFiniteNumber:ej,findKey:pb,global:Tr,isContextDefined:yb,isSpecCompliantForm:tj,toJSONObject:nj,isAsyncFn:aj,isThenable:ij,setImmediate:wb,asap:rj};function ze(e,n,a,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}$.inherits(ze,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:$.toJSONObject(this.config),code:this.code,status:this.status}}});const bb=ze.prototype,xb={};["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=>{xb[e]={value:e}});Object.defineProperties(ze,xb);Object.defineProperty(bb,"isAxiosError",{value:!0});ze.from=(e,n,a,r,o,u)=>{const f=Object.create(bb);return $.toFlatObject(e,f,function(p){return p!==Error.prototype},m=>m!=="isAxiosError"),ze.call(f,e.message,n,a,r,o),f.cause=e,f.name=e.name,u&&Object.assign(f,u),f};const sj=null;function rm(e){return $.isPlainObject(e)||$.isArray(e)}function Sb(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Mv(e,n,a){return e?e.concat(n).map(function(o,u){return o=Sb(o),!a&&u?"["+o+"]":o}).join(a?".":""):n}function lj(e){return $.isArray(e)&&!e.some(rm)}const oj=$.toFlatObject($,{},null,function(n){return/^is[A-Z]/.test(n)});function Yc(e,n,a){if(!$.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,a=$.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,C){return!$.isUndefined(C[E])});const r=a.metaTokens,o=a.visitor||y,u=a.dots,f=a.indexes,p=(a.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(n);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function g(S){if(S===null)return"";if($.isDate(S))return S.toISOString();if(!p&&$.isBlob(S))throw new ze("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(S)||$.isTypedArray(S)?p&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function y(S,E,C){let k=S;if(S&&!C&&typeof S=="object"){if($.endsWith(E,"{}"))E=r?E:E.slice(0,-2),S=JSON.stringify(S);else if($.isArray(S)&&lj(S)||($.isFileList(S)||$.endsWith(E,"[]"))&&(k=$.toArray(S)))return E=Sb(E),k.forEach(function(_,Z){!($.isUndefined(_)||_===null)&&n.append(f===!0?Mv([E],Z,u):f===null?E:E+"[]",g(_))}),!1}return rm(S)?!0:(n.append(Mv(C,E,u),g(S)),!1)}const v=[],b=Object.assign(oj,{defaultVisitor:y,convertValue:g,isVisitable:rm});function x(S,E){if(!$.isUndefined(S)){if(v.indexOf(S)!==-1)throw Error("Circular reference detected in "+E.join("."));v.push(S),$.forEach(S,function(k,z){(!($.isUndefined(k)||k===null)&&o.call(n,k,$.isString(z)?z.trim():z,E,b))===!0&&x(k,E?E.concat(z):[z])}),v.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return x(e),n}function Dv(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function $m(e,n){this._pairs=[],e&&Yc(e,this,n)}const Ab=$m.prototype;Ab.append=function(n,a){this._pairs.push([n,a])};Ab.toString=function(n){const a=n?function(r){return n.call(this,r,Dv)}:Dv;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function uj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Cb(e,n,a){if(!n)return e;const r=a&&a.encode||uj;$.isFunction(a)&&(a={serialize:a});const o=a&&a.serialize;let u;if(o?u=o(n,a):u=$.isURLSearchParams(n)?n.toString():new $m(n,a).toString(r),u){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class Ov{constructor(){this.handlers=[]}use(n,a,r){return this.handlers.push({fulfilled:n,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){$.forEach(this.handlers,function(r){r!==null&&n(r)})}}const Eb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cj=typeof URLSearchParams<"u"?URLSearchParams:$m,dj=typeof FormData<"u"?FormData:null,fj=typeof Blob<"u"?Blob:null,hj={isBrowser:!0,classes:{URLSearchParams:cj,FormData:dj,Blob:fj},protocols:["http","https","file","blob","url","data"]},Ym=typeof window<"u"&&typeof document<"u",sm=typeof navigator=="object"&&navigator||void 0,mj=Ym&&(!sm||["ReactNative","NativeScript","NS"].indexOf(sm.product)<0),gj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pj=Ym&&window.location.href||"http://localhost",yj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ym,hasStandardBrowserEnv:mj,hasStandardBrowserWebWorkerEnv:gj,navigator:sm,origin:pj},Symbol.toStringTag,{value:"Module"})),nn={...yj,...hj};function vj(e,n){return Yc(e,new nn.classes.URLSearchParams,Object.assign({visitor:function(a,r,o,u){return nn.isNode&&$.isBuffer(a)?(this.append(r,a.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},n))}function wj(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function bj(e){const n={},a=Object.keys(e);let r;const o=a.length;let u;for(r=0;r<o;r++)u=a[r],n[u]=e[u];return n}function jb(e){function n(a,r,o,u){let f=a[u++];if(f==="__proto__")return!0;const m=Number.isFinite(+f),p=u>=a.length;return f=!f&&$.isArray(o)?o.length:f,p?($.hasOwnProp(o,f)?o[f]=[o[f],r]:o[f]=r,!m):((!o[f]||!$.isObject(o[f]))&&(o[f]=[]),n(a,r,o[f],u)&&$.isArray(o[f])&&(o[f]=bj(o[f])),!m)}if($.isFormData(e)&&$.isFunction(e.entries)){const a={};return $.forEachEntry(e,(r,o)=>{n(wj(r),o,a,0)}),a}return null}function xj(e,n,a){if($.isString(e))try{return(n||JSON.parse)(e),$.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(e)}const Ro={transitional:Eb,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const r=a.getContentType()||"",o=r.indexOf("application/json")>-1,u=$.isObject(n);if(u&&$.isHTMLForm(n)&&(n=new FormData(n)),$.isFormData(n))return o?JSON.stringify(jb(n)):n;if($.isArrayBuffer(n)||$.isBuffer(n)||$.isStream(n)||$.isFile(n)||$.isBlob(n)||$.isReadableStream(n))return n;if($.isArrayBufferView(n))return n.buffer;if($.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let m;if(u){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vj(n,this.formSerializer).toString();if((m=$.isFileList(n))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Yc(m?{"files[]":n}:n,p&&new p,this.formSerializer)}}return u||o?(a.setContentType("application/json",!1),xj(n)):n}],transformResponse:[function(n){const a=this.transitional||Ro.transitional,r=a&&a.forcedJSONParsing,o=this.responseType==="json";if($.isResponse(n)||$.isReadableStream(n))return n;if(n&&$.isString(n)&&(r&&!this.responseType||o)){const f=!(a&&a.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(m){if(f)throw m.name==="SyntaxError"?ze.from(m,ze.ERR_BAD_RESPONSE,this,null,this.response):m}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nn.classes.FormData,Blob:nn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{Ro.headers[e]={}});const Sj=$.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"]),Aj=e=>{const n={};let a,r,o;return e&&e.split(`
`).forEach(function(f){o=f.indexOf(":"),a=f.substring(0,o).trim().toLowerCase(),r=f.substring(o+1).trim(),!(!a||n[a]&&Sj[a])&&(a==="set-cookie"?n[a]?n[a].push(r):n[a]=[r]:n[a]=n[a]?n[a]+", "+r:r)}),n},_v=Symbol("internals");function lo(e){return e&&String(e).trim().toLowerCase()}function uc(e){return e===!1||e==null?e:$.isArray(e)?e.map(uc):String(e)}function Cj(e){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(e);)n[r[1]]=r[2];return n}const Ej=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Th(e,n,a,r,o){if($.isFunction(r))return r.call(this,n,a);if(o&&(n=a),!!$.isString(n)){if($.isString(r))return n.indexOf(r)!==-1;if($.isRegExp(r))return r.test(n)}}function jj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,r)=>a.toUpperCase()+r)}function Rj(e,n){const a=$.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+a,{value:function(o,u,f){return this[r].call(this,n,o,u,f)},configurable:!0})})}let wn=class{constructor(n){n&&this.set(n)}set(n,a,r){const o=this;function u(m,p,g){const y=lo(p);if(!y)throw new Error("header name must be a non-empty string");const v=$.findKey(o,y);(!v||o[v]===void 0||g===!0||g===void 0&&o[v]!==!1)&&(o[v||p]=uc(m))}const f=(m,p)=>$.forEach(m,(g,y)=>u(g,y,p));if($.isPlainObject(n)||n instanceof this.constructor)f(n,a);else if($.isString(n)&&(n=n.trim())&&!Ej(n))f(Aj(n),a);else if($.isHeaders(n))for(const[m,p]of n.entries())u(p,m,r);else n!=null&&u(a,n,r);return this}get(n,a){if(n=lo(n),n){const r=$.findKey(this,n);if(r){const o=this[r];if(!a)return o;if(a===!0)return Cj(o);if($.isFunction(a))return a.call(this,o,r);if($.isRegExp(a))return a.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=lo(n),n){const r=$.findKey(this,n);return!!(r&&this[r]!==void 0&&(!a||Th(this,this[r],r,a)))}return!1}delete(n,a){const r=this;let o=!1;function u(f){if(f=lo(f),f){const m=$.findKey(r,f);m&&(!a||Th(r,r[m],m,a))&&(delete r[m],o=!0)}}return $.isArray(n)?n.forEach(u):u(n),o}clear(n){const a=Object.keys(this);let r=a.length,o=!1;for(;r--;){const u=a[r];(!n||Th(this,this[u],u,n,!0))&&(delete this[u],o=!0)}return o}normalize(n){const a=this,r={};return $.forEach(this,(o,u)=>{const f=$.findKey(r,u);if(f){a[f]=uc(o),delete a[u];return}const m=n?jj(u):String(u).trim();m!==u&&delete a[u],a[m]=uc(o),r[m]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return $.forEach(this,(r,o)=>{r!=null&&r!==!1&&(a[o]=n&&$.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const r=new this(n);return a.forEach(o=>r.set(o)),r}static accessor(n){const r=(this[_v]=this[_v]={accessors:{}}).accessors,o=this.prototype;function u(f){const m=lo(f);r[m]||(Rj(o,f),r[m]=!0)}return $.isArray(n)?n.forEach(u):u(n),this}};wn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(wn.prototype,({value:e},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(r){this[a]=r}}});$.freezeMethods(wn);function kh(e,n){const a=this||Ro,r=n||a,o=wn.from(r.headers);let u=r.data;return $.forEach(e,function(m){u=m.call(a,u,o.normalize(),n?n.status:void 0)}),o.normalize(),u}function Rb(e){return!!(e&&e.__CANCEL__)}function Js(e,n,a){ze.call(this,e??"canceled",ze.ERR_CANCELED,n,a),this.name="CanceledError"}$.inherits(Js,ze,{__CANCEL__:!0});function Nb(e,n,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):n(new ze("Request failed with status code "+a.status,[ze.ERR_BAD_REQUEST,ze.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Nj(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Tj(e,n){e=e||10;const a=new Array(e),r=new Array(e);let o=0,u=0,f;return n=n!==void 0?n:1e3,function(p){const g=Date.now(),y=r[u];f||(f=g),a[o]=p,r[o]=g;let v=u,b=0;for(;v!==o;)b+=a[v++],v=v%e;if(o=(o+1)%e,o===u&&(u=(u+1)%e),g-f<n)return;const x=y&&g-y;return x?Math.round(b*1e3/x):void 0}}function kj(e,n){let a=0,r=1e3/n,o,u;const f=(g,y=Date.now())=>{a=y,o=null,u&&(clearTimeout(u),u=null),e.apply(null,g)};return[(...g)=>{const y=Date.now(),v=y-a;v>=r?f(g,y):(o=g,u||(u=setTimeout(()=>{u=null,f(o)},r-v)))},()=>o&&f(o)]}const bc=(e,n,a=3)=>{let r=0;const o=Tj(50,250);return kj(u=>{const f=u.loaded,m=u.lengthComputable?u.total:void 0,p=f-r,g=o(p),y=f<=m;r=f;const v={loaded:f,total:m,progress:m?f/m:void 0,bytes:p,rate:g||void 0,estimated:g&&m&&y?(m-f)/g:void 0,event:u,lengthComputable:m!=null,[n?"download":"upload"]:!0};e(v)},a)},Bv=(e,n)=>{const a=e!=null;return[r=>n[0]({lengthComputable:a,total:e,loaded:r}),n[1]]},zv=e=>(...n)=>$.asap(()=>e(...n)),Mj=nn.hasStandardBrowserEnv?((e,n)=>a=>(a=new URL(a,nn.origin),e.protocol===a.protocol&&e.host===a.host&&(n||e.port===a.port)))(new URL(nn.origin),nn.navigator&&/(msie|trident)/i.test(nn.navigator.userAgent)):()=>!0,Dj=nn.hasStandardBrowserEnv?{write(e,n,a,r,o,u){const f=[e+"="+encodeURIComponent(n)];$.isNumber(a)&&f.push("expires="+new Date(a).toGMTString()),$.isString(r)&&f.push("path="+r),$.isString(o)&&f.push("domain="+o),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Oj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _j(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Tb(e,n,a){let r=!Oj(n);return e&&(r||a==!1)?_j(e,n):n}const Lv=e=>e instanceof wn?{...e}:e;function Fr(e,n){n=n||{};const a={};function r(g,y,v,b){return $.isPlainObject(g)&&$.isPlainObject(y)?$.merge.call({caseless:b},g,y):$.isPlainObject(y)?$.merge({},y):$.isArray(y)?y.slice():y}function o(g,y,v,b){if($.isUndefined(y)){if(!$.isUndefined(g))return r(void 0,g,v,b)}else return r(g,y,v,b)}function u(g,y){if(!$.isUndefined(y))return r(void 0,y)}function f(g,y){if($.isUndefined(y)){if(!$.isUndefined(g))return r(void 0,g)}else return r(void 0,y)}function m(g,y,v){if(v in n)return r(g,y);if(v in e)return r(void 0,g)}const p={url:u,method:u,data:u,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:m,headers:(g,y,v)=>o(Lv(g),Lv(y),v,!0)};return $.forEach(Object.keys(Object.assign({},e,n)),function(y){const v=p[y]||o,b=v(e[y],n[y],y);$.isUndefined(b)&&v!==m||(a[y]=b)}),a}const kb=e=>{const n=Fr({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:u,headers:f,auth:m}=n;n.headers=f=wn.from(f),n.url=Cb(Tb(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),m&&f.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):"")));let p;if($.isFormData(a)){if(nn.hasStandardBrowserEnv||nn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((p=f.getContentType())!==!1){const[g,...y]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];f.setContentType([g||"multipart/form-data",...y].join("; "))}}if(nn.hasStandardBrowserEnv&&(r&&$.isFunction(r)&&(r=r(n)),r||r!==!1&&Mj(n.url))){const g=o&&u&&Dj.read(u);g&&f.set(o,g)}return n},Bj=typeof XMLHttpRequest<"u",zj=Bj&&function(e){return new Promise(function(a,r){const o=kb(e);let u=o.data;const f=wn.from(o.headers).normalize();let{responseType:m,onUploadProgress:p,onDownloadProgress:g}=o,y,v,b,x,S;function E(){x&&x(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function k(){if(!C)return;const _=wn.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),R={data:!m||m==="text"||m==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:_,config:e,request:C};Nb(function(ce){a(ce),E()},function(ce){r(ce),E()},R),C=null}"onloadend"in C?C.onloadend=k:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(k)},C.onabort=function(){C&&(r(new ze("Request aborted",ze.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new ze("Network Error",ze.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let Z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||Eb;o.timeoutErrorMessage&&(Z=o.timeoutErrorMessage),r(new ze(Z,R.clarifyTimeoutError?ze.ETIMEDOUT:ze.ECONNABORTED,e,C)),C=null},u===void 0&&f.setContentType(null),"setRequestHeader"in C&&$.forEach(f.toJSON(),function(Z,R){C.setRequestHeader(R,Z)}),$.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),m&&m!=="json"&&(C.responseType=o.responseType),g&&([b,S]=bc(g,!0),C.addEventListener("progress",b)),p&&C.upload&&([v,x]=bc(p),C.upload.addEventListener("progress",v),C.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(y=_=>{C&&(r(!_||_.type?new Js(null,e,C):_),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const z=Nj(o.url);if(z&&nn.protocols.indexOf(z)===-1){r(new ze("Unsupported protocol "+z+":",ze.ERR_BAD_REQUEST,e));return}C.send(u||null)})},Lj=(e,n)=>{const{length:a}=e=e?e.filter(Boolean):[];if(n||a){let r=new AbortController,o;const u=function(g){if(!o){o=!0,m();const y=g instanceof Error?g:this.reason;r.abort(y instanceof ze?y:new Js(y instanceof Error?y.message:y))}};let f=n&&setTimeout(()=>{f=null,u(new ze(`timeout ${n} of ms exceeded`,ze.ETIMEDOUT))},n);const m=()=>{e&&(f&&clearTimeout(f),f=null,e.forEach(g=>{g.unsubscribe?g.unsubscribe(u):g.removeEventListener("abort",u)}),e=null)};e.forEach(g=>g.addEventListener("abort",u));const{signal:p}=r;return p.unsubscribe=()=>$.asap(m),p}},Uj=function*(e,n){let a=e.byteLength;if(a<n){yield e;return}let r=0,o;for(;r<a;)o=r+n,yield e.slice(r,o),r=o},Hj=async function*(e,n){for await(const a of Fj(e))yield*Uj(a,n)},Fj=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:a,value:r}=await n.read();if(a)break;yield r}}finally{await n.cancel()}},Uv=(e,n,a,r)=>{const o=Hj(e,n);let u=0,f,m=p=>{f||(f=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:g,value:y}=await o.next();if(g){m(),p.close();return}let v=y.byteLength;if(a){let b=u+=v;a(b)}p.enqueue(new Uint8Array(y))}catch(g){throw m(g),g}},cancel(p){return m(p),o.return()}},{highWaterMark:2})},Xc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Mb=Xc&&typeof ReadableStream=="function",Pj=Xc&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Db=(e,...n)=>{try{return!!e(...n)}catch{return!1}},Vj=Mb&&Db(()=>{let e=!1;const n=new Request(nn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),Hv=64*1024,lm=Mb&&Db(()=>$.isReadableStream(new Response("").body)),xc={stream:lm&&(e=>e.body)};Xc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!xc[n]&&(xc[n]=$.isFunction(e[n])?a=>a[n]():(a,r)=>{throw new ze(`Response type '${n}' is not supported`,ze.ERR_NOT_SUPPORT,r)})})})(new Response);const Ij=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(nn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await Pj(e)).byteLength},qj=async(e,n)=>{const a=$.toFiniteNumber(e.getContentLength());return a??Ij(n)},Qj=Xc&&(async e=>{let{url:n,method:a,data:r,signal:o,cancelToken:u,timeout:f,onDownloadProgress:m,onUploadProgress:p,responseType:g,headers:y,withCredentials:v="same-origin",fetchOptions:b}=kb(e);g=g?(g+"").toLowerCase():"text";let x=Lj([o,u&&u.toAbortSignal()],f),S;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let C;try{if(p&&Vj&&a!=="get"&&a!=="head"&&(C=await qj(y,r))!==0){let R=new Request(n,{method:"POST",body:r,duplex:"half"}),W;if($.isFormData(r)&&(W=R.headers.get("content-type"))&&y.setContentType(W),R.body){const[ce,re]=Bv(C,bc(zv(p)));r=Uv(R.body,Hv,ce,re)}}$.isString(v)||(v=v?"include":"omit");const k="credentials"in Request.prototype;S=new Request(n,{...b,signal:x,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:r,duplex:"half",credentials:k?v:void 0});let z=await fetch(S);const _=lm&&(g==="stream"||g==="response");if(lm&&(m||_&&E)){const R={};["status","statusText","headers"].forEach(Q=>{R[Q]=z[Q]});const W=$.toFiniteNumber(z.headers.get("content-length")),[ce,re]=m&&Bv(W,bc(zv(m),!0))||[];z=new Response(Uv(z.body,Hv,ce,()=>{re&&re(),E&&E()}),R)}g=g||"text";let Z=await xc[$.findKey(xc,g)||"text"](z,e);return!_&&E&&E(),await new Promise((R,W)=>{Nb(R,W,{data:Z,headers:wn.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:S})})}catch(k){throw E&&E(),k&&k.name==="TypeError"&&/fetch/i.test(k.message)?Object.assign(new ze("Network Error",ze.ERR_NETWORK,e,S),{cause:k.cause||k}):ze.from(k,k&&k.code,e,S)}}),om={http:sj,xhr:zj,fetch:Qj};$.forEach(om,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Fv=e=>`- ${e}`,Gj=e=>$.isFunction(e)||e===null||e===!1,Ob={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:n}=e;let a,r;const o={};for(let u=0;u<n;u++){a=e[u];let f;if(r=a,!Gj(a)&&(r=om[(f=String(a)).toLowerCase()],r===void 0))throw new ze(`Unknown adapter '${f}'`);if(r)break;o[f||"#"+u]=r}if(!r){const u=Object.entries(o).map(([m,p])=>`adapter ${m} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=n?u.length>1?`since :
`+u.map(Fv).join(`
`):" "+Fv(u[0]):"as no adapter specified";throw new ze("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:om};function Mh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Js(null,e)}function Pv(e){return Mh(e),e.headers=wn.from(e.headers),e.data=kh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ob.getAdapter(e.adapter||Ro.adapter)(e).then(function(r){return Mh(e),r.data=kh.call(e,e.transformResponse,r),r.headers=wn.from(r.headers),r},function(r){return Rb(r)||(Mh(e),r&&r.response&&(r.response.data=kh.call(e,e.transformResponse,r.response),r.response.headers=wn.from(r.response.headers))),Promise.reject(r)})}const _b="1.8.4",Kc={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{Kc[e]=function(r){return typeof r===e||"a"+(n<1?"n ":" ")+e}});const Vv={};Kc.transitional=function(n,a,r){function o(u,f){return"[Axios v"+_b+"] Transitional option '"+u+"'"+f+(r?". "+r:"")}return(u,f,m)=>{if(n===!1)throw new ze(o(f," has been removed"+(a?" in "+a:"")),ze.ERR_DEPRECATED);return a&&!Vv[f]&&(Vv[f]=!0,console.warn(o(f," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(u,f,m):!0}};Kc.spelling=function(n){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${n}`),!0)};function $j(e,n,a){if(typeof e!="object")throw new ze("options must be an object",ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const u=r[o],f=n[u];if(f){const m=e[u],p=m===void 0||f(m,u,e);if(p!==!0)throw new ze("option "+u+" must be "+p,ze.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new ze("Unknown option "+u,ze.ERR_BAD_OPTION)}}const cc={assertOptions:$j,validators:Kc},Aa=cc.validators;let Ur=class{constructor(n){this.defaults=n,this.interceptors={request:new Ov,response:new Ov}}async request(n,a){try{return await this._request(n,a)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const u=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?u&&!String(r.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+u):r.stack=u}catch{}}throw r}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=Fr(this.defaults,a);const{transitional:r,paramsSerializer:o,headers:u}=a;r!==void 0&&cc.assertOptions(r,{silentJSONParsing:Aa.transitional(Aa.boolean),forcedJSONParsing:Aa.transitional(Aa.boolean),clarifyTimeoutError:Aa.transitional(Aa.boolean)},!1),o!=null&&($.isFunction(o)?a.paramsSerializer={serialize:o}:cc.assertOptions(o,{encode:Aa.function,serialize:Aa.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),cc.assertOptions(a,{baseUrl:Aa.spelling("baseURL"),withXsrfToken:Aa.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let f=u&&$.merge(u.common,u[a.method]);u&&$.forEach(["delete","get","head","post","put","patch","common"],S=>{delete u[S]}),a.headers=wn.concat(f,u);const m=[];let p=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(a)===!1||(p=p&&E.synchronous,m.unshift(E.fulfilled,E.rejected))});const g=[];this.interceptors.response.forEach(function(E){g.push(E.fulfilled,E.rejected)});let y,v=0,b;if(!p){const S=[Pv.bind(this),void 0];for(S.unshift.apply(S,m),S.push.apply(S,g),b=S.length,y=Promise.resolve(a);v<b;)y=y.then(S[v++],S[v++]);return y}b=m.length;let x=a;for(v=0;v<b;){const S=m[v++],E=m[v++];try{x=S(x)}catch(C){E.call(this,C);break}}try{y=Pv.call(this,x)}catch(S){return Promise.reject(S)}for(v=0,b=g.length;v<b;)y=y.then(g[v++],g[v++]);return y}getUri(n){n=Fr(this.defaults,n);const a=Tb(n.baseURL,n.url,n.allowAbsoluteUrls);return Cb(a,n.params,n.paramsSerializer)}};$.forEach(["delete","get","head","options"],function(n){Ur.prototype[n]=function(a,r){return this.request(Fr(r||{},{method:n,url:a,data:(r||{}).data}))}});$.forEach(["post","put","patch"],function(n){function a(r){return function(u,f,m){return this.request(Fr(m||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:f}))}}Ur.prototype[n]=a(),Ur.prototype[n+"Form"]=a(!0)});let Yj=class Bb{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(u){a=u});const r=this;this.promise.then(o=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](o);r._listeners=null}),this.promise.then=o=>{let u;const f=new Promise(m=>{r.subscribe(m),u=m}).then(o);return f.cancel=function(){r.unsubscribe(u)},f},n(function(u,f,m){r.reason||(r.reason=new Js(u,f,m),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=r=>{n.abort(r)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new Bb(function(o){n=o}),cancel:n}}};function Xj(e){return function(a){return e.apply(null,a)}}function Kj(e){return $.isObject(e)&&e.isAxiosError===!0}const um={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent: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(um).forEach(([e,n])=>{um[n]=e});function zb(e){const n=new Ur(e),a=hb(Ur.prototype.request,n);return $.extend(a,Ur.prototype,n,{allOwnKeys:!0}),$.extend(a,n,null,{allOwnKeys:!0}),a.create=function(o){return zb(Fr(e,o))},a}const kt=zb(Ro);kt.Axios=Ur;kt.CanceledError=Js;kt.CancelToken=Yj;kt.isCancel=Rb;kt.VERSION=_b;kt.toFormData=Yc;kt.AxiosError=ze;kt.Cancel=kt.CanceledError;kt.all=function(n){return Promise.all(n)};kt.spread=Xj;kt.isAxiosError=Kj;kt.mergeConfig=Fr;kt.AxiosHeaders=wn;kt.formToJSON=e=>jb($.isHTMLForm(e)?new FormData(e):e);kt.getAdapter=Ob.getAdapter;kt.HttpStatusCode=um;kt.default=kt;const{Axios:y6,AxiosError:v6,CanceledError:w6,isCancel:b6,CancelToken:x6,VERSION:S6,all:A6,Cancel:C6,isAxiosError:E6,spread:j6,toFormData:R6,AxiosHeaders:N6,HttpStatusCode:T6,formToJSON:k6,getAdapter:M6,mergeConfig:D6}=kt,rt=kt.create({headers:{"Content-type":"application/json"}});rt.interceptors.request.use(e=>{const n=localStorage.getItem("token");return n&&(e.headers.Authorization=`Bearer ${n}`),e});const Zj={getAccounts(e){return rt.get(dt.accounts.list,{params:e})},getAccountById(e){return rt.get(`${dt.accounts.detail}/${e}`)},createAccount(e){return rt.post(dt.accounts.create,e)},updateAccount(e,n){return rt.put(`${dt.accounts.update}/${e}`,n)},deleteAccount(e){return rt.delete(`${dt.accounts.delete}/${e}`)}},Xm={registerDoctor(e){return rt.post(dt.auth.registerDoctor,e,{headers:{"Content-Type":"multipart/form-data"}})},registerPatient(e){return rt.post(dt.auth.registerPatient,e)},login(e){return rt.post(dt.auth.login,e)},logout(){return rt.post(dt.auth.logout)},refreshToken(){return rt.post(dt.auth.refreshToken)}};var Dh={exports:{}},Oh,Iv;function Jj(){if(Iv)return Oh;Iv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Oh=e,Oh}var _h,qv;function Wj(){if(qv)return _h;qv=1;var e=Jj();function n(){}function a(){}return a.resetWarningCache=n,_h=function(){function r(f,m,p,g,y,v){if(v!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var u={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:n};return u.PropTypes=u,u},_h}var Qv;function e4(){return Qv||(Qv=1,Dh.exports=Wj()()),Dh.exports}var t4=e4();const Be=zc(t4),Lb=j.createContext(),Ub=({children:e})=>{const[n,a]=j.useState(null);j.useEffect(()=>{const u=localStorage.getItem("user");u&&a(JSON.parse(u))},[]);const r=u=>{a(u),localStorage.setItem("user",JSON.stringify(u))},o=()=>{a(null),localStorage.removeItem("user"),localStorage.removeItem("token")};return d.jsx(Lb.Provider,{value:{user:n,login:r,logout:o},children:e})};Ub.propTypes={children:Be.node};const Wi=()=>j.useContext(Lb),Hb=({onClose:e})=>{const[n,a]=j.useState(""),[r,o]=j.useState(""),[u,f]=j.useState(!1),m=dn(),{login:p}=Wi(),g=async y=>{var v,b;y.preventDefault(),f(!0);try{const x=await Xm.login({email:n,password:r}),{token:S,data:E}=x.data;localStorage.setItem("token",S);const k=(await Zj.getAccountById(E.id)).data;localStorage.setItem("user",JSON.stringify(k)),p(k),xE(()=>Promise.resolve().then(()=>G5),[]).then(z=>{z.default.fire({icon:"success",title:"Login berhasil!",text:"Membuka halaman utama...",showConfirmButton:!1,timer:2e3}).then(()=>{k.data.role==="doctor"?m("/dokter"):k.data.role==="patient"&&m("/")})}),e&&e(),k.data.role==="doctor"?m("/dokter"):k.data.role==="patient"&&m("/"),a(""),o("")}catch(x){alert("Login gagal: "+(((b=(v=x.response)==null?void 0:v.data)==null?void 0:b.message)||x.message))}finally{f(!1)}};return d.jsxs("form",{className:"space-y-4",onSubmit:g,children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx("label",{className:"text-[14px] font-bold",children:"Email"}),d.jsx("input",{type:"email",placeholder:"Masukkan email kamu",value:n,onChange:y=>a(y.target.value),required:!0,className:"w-full p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),d.jsxs("div",{className:"space-y-2",children:[d.jsx("label",{className:"text-[14px] font-bold",children:"Kata Sandi"}),d.jsx("input",{type:"password",placeholder:"Masukkan kata sandi kamu",value:r,onChange:y=>o(y.target.value),required:!0,className:"w-full p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),d.jsx("button",{type:"submit",disabled:u,className:"w-full bg-[#12476B] text-white font-bold py-3 rounded-full cursor-pointer",children:u?"Memproses...":"Masuk"})]})};Hb.propTypes={onClose:Be.func.isRequired};const Fb=({onOpenDoctorForm:e})=>{const[n,a]=j.useState({firstName:"",lastName:"",email:"",phone:"",birthDate:"",password:"",role:"",confirmPassword:"",agree:!1}),[r,o]=j.useState(!1),u=dn(),f=p=>{const{name:g,value:y,type:v,checked:b}=p.target,x=v==="checkbox"?b:y;a(S=>({...S,[g]:x}))},m=async p=>{if(p.preventDefault(),n.password!==n.confirmPassword){alert("Kata sandi tidak cocok!");return}if(!n.agree){alert("Harap setujui persyaratan penggunaan.");return}const y={name:`${n.firstName} ${n.lastName}`.trim(),email:n.email,phone:n.phone,dob:n.birthDate,password:n.password,role:"patient",password_confirmation:n.confirmPassword};try{o(!0),await Xm.registerPatient(y),alert("Pendaftaran berhasil!"),a({firstName:"",lastName:"",email:"",phone:"",birthDate:"",role:"",password:"",confirmPassword:"",agree:!1}),u("/")}catch(v){alert("Pendaftaran gagal. keterangan: "+v.message)}finally{o(!1)}};return d.jsxs("form",{onSubmit:m,className:"space-y-4",children:[d.jsxs("div",{className:"flex gap-4",children:[d.jsx("input",{type:"text",name:"firstName",placeholder:"Nama depan kamu",value:n.firstName,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"}),d.jsx("input",{type:"text",name:"lastName",placeholder:"Nama belakang kamu",value:n.lastName,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx("input",{type:"email",name:"email",placeholder:"Masukkan email kamu",value:n.email,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"}),d.jsx("input",{type:"tel",name:"phone",placeholder:"Masukkan nomor telepon kamu",value:n.phone,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),d.jsx("input",{type:"date",name:"birthDate",value:n.birthDate,onChange:f,className:"w-full p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx("input",{type:"password",name:"password",placeholder:"Masukkan kata sandi",value:n.password,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"}),d.jsx("input",{type:"password",name:"confirmPassword",placeholder:"Masukkan kembali kata sandi",value:n.confirmPassword,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),d.jsxs("div",{className:"flex items-center mb-4 text-[#646464]",children:[d.jsx("input",{type:"checkbox",name:"agree",checked:n.agree,onChange:f,className:"mr-2"}),d.jsx("label",{children:"Saya setuju dengan persyaratan penggunaan"})]}),d.jsx("button",{type:"submit",disabled:r,className:"w-full bg-[#12476B] text-white font-bold py-3 rounded-full cursor-pointer",children:r?"Memproses...":"Daftar"}),d.jsx("p",{className:"text-center text-gray-400",children:"Atau"}),d.jsx("button",{type:"button",onClick:e,className:"w-full border border-[#12476B] text-[#12476B] font-bold py-3 rounded-full cursor-pointer",children:"Daftar sebagai Dokter"})]})};Fb.propTypes={onClose:Be.func.isRequired,onOpenDoctorForm:Be.func.isRequired};const n4="/assets/doctor-B0xZjIfR.jpeg",Km=({onClose:e,showLogin:n,onOpenDoctorForm:a})=>{const[r,o]=j.useState(n||"login");return d.jsxs("div",{className:"relative bg-white rounded-lg shadow-lg w-[1200px] flex flex-col lg:flex-row overflow-hidden p-5 max-h-[90%] mx-4 lg:mx-0",children:[d.jsx("div",{className:"w-full lg:w-1/2",children:d.jsx("img",{src:n4,alt:"Doctor",className:"w-full h-full object-cover rounded-lg"})}),d.jsxs("div",{className:"w-full lg:w-1/2 p-8 lg:relative overflow-auto",children:[d.jsx("button",{onClick:e,className:"absolute top-2 right-2 lg:top-0 lg:right-0 bg-[#12476B] text-white px-3 py-1 rounded-full cursor-pointer",children:"x"}),d.jsxs("h2",{className:"text-[26px] font-bold text-center",children:[" ",r==="login"?"Masuk":"Daftar"]}),d.jsx("p",{className:"text-[#646464] text-center mb-6",children:r==="login"?"Masuk untuk tetap terhubung":"Buat akun Anda"}),r==="login"?d.jsx(Hb,{onClose:e}):d.jsx(Fb,{onOpenDoctorForm:a}),r==="login"?d.jsxs("p",{className:"text-[12px] text-center text-[#646464] mt-2",children:["Belum memiliki akun?"," ",d.jsx("button",{href:"#",className:"text-[#2699E8] inline cursor-pointer",onClick:()=>o("register"),children:"Klik disini untuk daftar"})]}):d.jsxs("p",{className:"text-[12px] text-center text-[#646464] mt-2",children:["Sudah memiliki akun?"," ",d.jsx("button",{href:"#",className:"text-[#2699E8] inline cursor-pointer",onClick:()=>o("login"),children:"Masuk"})]})]})]})};Km.propTypes={onClose:Be.func.isRequired,showLogin:Be.string,onOpenDoctorForm:Be.func};const a4="/assets/doctorImage-DY3J_gjP.jpg",Pb=({onNext:e,onDotClick:n})=>{const[a,r]=j.useState({name:"",email:"",phone:"",password:"",confirmPassword:"",practiceAddress:"",agree:!1}),o=f=>{const{name:m,value:p,type:g,checked:y}=f.target,v=g==="checkbox"?y:p;r(b=>({...b,[m]:v}))},u=f=>{if(f.preventDefault(),a.password.length<8){alert("Kata sandi harus terdiri dari minimal 8 karakter!");return}if(a.password!==a.confirmPassword){alert("Kata sandi tidak cocok!");return}e({name:a.name,email:a.email,phone:a.phone,dob:null,password:a.password,role:"doctor",password_confirmation:a.confirmPassword,practice_address:a.practiceAddress})};return d.jsx("div",{className:"max-w-md mx-auto px-2 py-4",children:d.jsxs("form",{className:"space-y-4",onSubmit:u,children:[d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Nama Lengkap"}),d.jsx("input",{type:"text",name:"name",value:a.name,onChange:o,placeholder:"Nama lengkap kamu",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Email"}),d.jsx("input",{type:"email",name:"email",value:a.email,onChange:o,placeholder:"Masukkan email kamu",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"No. Telepon"}),d.jsx("input",{type:"tel",name:"phone",value:a.phone,onChange:o,placeholder:"Masukkan nomor telepon kamu",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Kata Sandi"}),d.jsx("input",{type:"password",name:"password",value:a.password,onChange:o,placeholder:"Masukkan kata sandi",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Konfirmasi Kata Sandi"}),d.jsx("input",{type:"password",name:"confirmPassword",value:a.confirmPassword,onChange:o,placeholder:"Masukkan kembali kata sandi",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Alamat Praktik"}),d.jsx("input",{type:"text",name:"practiceAddress",value:a.practiceAddress,onChange:o,placeholder:"Masukkan alamat praktik",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),d.jsx("button",{type:"submit",className:"w-full bg-[#1E3A5F] text-white font-semibold py-2 rounded-full hover:bg-[#1A2F4A] transition",children:"Next"}),d.jsxs("div",{className:"flex justify-center mt-4 space-x-2",children:[d.jsx("span",{className:"w-3 h-3 rounded-full bg-[#1E3A5F]"}),d.jsx("span",{className:"w-3 h-3 rounded-full bg-gray-300 cursor-pointer",onClick:n})]})]})})};Pb.propTypes={onNext:Be.func.isRequired,onDotClick:Be.func.isRequired};const Vb=({onDotClick:e,formDataPage1:n})=>{const[a,r]=j.useState({specialization:"",license_number:"",current_institution:"",work_history:"",publications:"",agree:!1}),[o,u]=j.useState({license_file:null,diploma_file:null,certification_file:null}),f=p=>{const{name:g,value:y,type:v,checked:b,files:x}=p.target;if(v==="checkbox")r(S=>({...S,[g]:b}));else if(v==="file"){const S=x[0];S&&["application/pdf","image/jpeg","image/png"].includes(S.type)?u(C=>({...C,[g]:S})):alert("File harus berupa PDF, JPG, atau PNG.")}else r(S=>({...S,[g]:y}))},m=async p=>{if(p.preventDefault(),!a.agree){alert("Harap menyetujui persyaratan penggunaan.");return}const g=new FormData;g.append("name",n.name),g.append("email",n.email),g.append("phone",n.phone),g.append("password",n.password),g.append("password_confirmation",n.password_confirmation),g.append("practice_address",n.practice_address),g.append("specialization",a.specialization),g.append("license_number",a.license_number),g.append("current_institution",a.current_institution),g.append("work_history",a.work_history),g.append("publications",a.publications||""),o.license_file&&g.append("license_file",o.license_file),o.diploma_file&&g.append("diploma_file",o.diploma_file),o.certification_file&&g.append("certification_file",o.certification_file);try{await Xm.registerDoctor(g),alert("Pendaftaran berhasil!"),r({specialization:"",license_number:"",current_institution:"",work_history:"",publications:"",agree:!1}),u({license_file:null,diploma_file:null,certification_file:null})}catch(y){console.error("Gagal mendaftar:",y),alert("Terjadi kesalahan saat mendaftar. Silakan coba lagi.")}};return d.jsx("div",{className:"max-w-md mx-auto px-2 py-4",children:d.jsxs("form",{className:"space-y-4",onSubmit:m,children:[d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Spesialisasi"}),d.jsxs("select",{name:"specialization",value:a.specialization,onChange:f,className:"w-full rounded-full border border-gray-300 px-4 py-2 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0,children:[d.jsx("option",{value:"",children:"Pilih spesialisasi kamu"}),d.jsx("option",{value:"kulit",children:"Dokter Spesialis Kulit"})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Nomor Registrasi Dokter"}),d.jsx("input",{type:"text",name:"license_number",value:a.license_number,onChange:f,placeholder:"Masukkan nomor registrasi dokter",className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Surat Tanda Registrasi"}),d.jsx("div",{className:"flex items-center rounded-full border border-gray-300 overflow-hidden",children:d.jsx("input",{type:"file",name:"license_file",onChange:f,className:"flex-1 px-4 py-2 text-sm",required:!0})}),o.license_file&&d.jsxs("p",{className:"text-green-600 text-sm mt-1",children:["✅ ",o.license_file.name," berhasil diunggah"]})]}),d.jsxs("div",{className:"w-full flex items-center space-x-2",children:[d.jsxs("div",{className:"w-1/2",children:[d.jsx("label",{className:"font-semibold mb-1",children:"Ijazah Kedokteran"}),d.jsx("div",{className:"flex items-center rounded-full border border-gray-300 overflow-hidden",children:d.jsx("input",{type:"file",name:"diploma_file",onChange:f,className:"w-2/3 flex-1 px-4 py-2 text-sm",required:!0})}),o.diploma_file&&d.jsxs("p",{className:"text-green-600 text-sm mt-1",children:["✅ ",o.diploma_file.name," berhasil diunggah"]})]}),d.jsxs("div",{className:"w-1/2",children:[d.jsx("label",{className:"font-semibold mb-1",children:"Sertifikat Keahlian (opsional)"}),d.jsx("div",{className:"flex items-center rounded-full border border-gray-300 overflow-hidden",children:d.jsx("input",{type:"file",name:"certification_file",onChange:f,className:"w-2/3 flex-1 px-4 py-2 text-sm"})}),o.certification_file&&d.jsxs("p",{className:"text-green-600 text-sm mt-1",children:["✅ ",o.certification_file.name," berhasil diunggah"]})]})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Institusi Kerja"}),d.jsx("input",{type:"text",name:"current_institution",value:a.current_institution,onChange:f,placeholder:"Masukkan institusi",className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Pengalaman Kerja"}),d.jsx("input",{type:"text",name:"work_history",value:a.work_history,onChange:f,placeholder:"Masukkan pengalaman kerja",className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0})]})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block font-semibold mb-1",children:"Publikasi Ilmiah (opsional)"}),d.jsx("input",{type:"text",name:"publications",value:a.publications,onChange:f,placeholder:"Masukkan publikasi ilmiah",className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),d.jsxs("div",{className:"flex items-center space-x-2",children:[d.jsx("input",{type:"checkbox",id:"terms",name:"agree",checked:a.agree,onChange:f,className:"accent-[#1E3A5F]",required:!0}),d.jsx("label",{htmlFor:"terms",className:"text-sm",children:"Saya setuju dengan persyaratan penggunaan"})]}),d.jsx("button",{type:"submit",onClick:m,className:"w-full bg-[#1E3A5F] text-white font-semibold py-2 rounded-full hover:bg-[#1A2F4A] transition",children:"Daftar"}),d.jsxs("div",{className:"flex justify-center mt-4 space-x-2",children:[d.jsx("span",{className:"w-3 h-3 rounded-full bg-gray-300 cursor-pointer",onClick:e}),d.jsx("span",{className:"w-3 h-3 rounded-full bg-[#1E3A5F]"})]})]})})};Vb.propTypes={onSubmit:Be.func.isRequired,onDotClick:Be.func.isRequired,formDataPage1:Be.object.isRequired};const Ib=({onClose:e,onBackToLogin:n})=>{const[a,r]=j.useState(1),[o,u]=j.useState({}),f=m=>{u(m),r(2)};return d.jsxs("div",{className:"relative bg-white rounded-lg shadow-lg w-[1200px] flex flex-col lg:flex-row overflow-hidden p-5 max-h-[90%] mx-4 lg:mx-0",children:[d.jsx("div",{className:"w-full lg:w-1/2",children:d.jsx("img",{src:a4,alt:"Doctor",className:"w-full h-full object-cover rounded-lg"})}),d.jsxs("div",{className:"w-full lg:w-1/2 p-8 lg:relative overflow-auto",children:[d.jsx("button",{onClick:e,className:"absolute top-2 right-2 lg:top-0 lg:right-0 bg-[#12476B] text-white px-3 py-1 rounded-full cursor-pointer",children:"x"}),d.jsx("h2",{className:"text-[26px] font-bold text-center",children:a===1?"Daftar Dokter":"Profil Dokter Spesialis"}),d.jsx("p",{className:"text-[#646464] text-center mb-6",children:a===1?"Buat akun Dokter Anda":"Detail Profesional dan Dokumen Pendukung"}),d.jsxs("div",{children:[a===1&&d.jsx(Pb,{onNext:f,onDotClick:()=>r(2)}),a===2&&d.jsx(Vb,{formDataPage1:o,onBack:()=>r(1),onDotClick:()=>r(1)})]}),d.jsxs("p",{className:"text-[12px] text-center text-[#646464] mt-2",children:["Sudah memiliki akun?"," ",d.jsx("button",{href:"#",className:"text-[#2699E8] inline cursor-pointer",onClick:n,children:"Masuk"})]})]})]})};Ib.propTypes={onClose:Be.func.isRequired,onBackToLogin:Be.func.isRequired};const qb=({onClose:e,type:n})=>{const[a,r]=j.useState(!1),[o,u]=j.useState(n),f=()=>{r(!0)},m=()=>{r(!1),e&&e()},p=()=>{r(!1),u("login")};return a?d.jsx(Ib,{onBackToLogin:p,onClose:m}):d.jsx(Km,{onClose:m,showLogin:o,onOpenDoctorForm:f})};qb.propTypes={onClose:Be.func,type:Be.string};function Qb(e){return jt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M183.6 469.6C177.5 476.2 169 480 160 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L128 365.7 128 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 320c0-17.7 14.3-32 32-32l128 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9L429.3 416l50.7 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9L402.7 352 352 352c-17.7 0-32-14.3-32-32zM416 32c12.1 0 23.2 6.8 28.6 17.7l64 128 16 32c7.9 15.8 1.5 35-14.3 42.9s-35 1.5-42.9-14.3L460.2 224l-88.4 0-7.2 14.3c-7.9 15.8-27.1 22.2-42.9 14.3s-22.2-27.1-14.3-42.9l16-32 64-128C392.8 38.8 403.9 32 416 32zM395.8 176l40.4 0L416 135.6 395.8 176z"},child:[]}]})(e)}function Sc(e){return jt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"},child:[]}]})(e)}function Gb(e){return jt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M183.6 42.4C177.5 35.8 169 32 160 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L128 146.3 128 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 320c0 17.7 14.3 32 32 32l50.7 0-73.4 73.4c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l128 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-50.7 0 73.4-73.4c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8l-128 0c-17.7 0-32 14.3-32 32zM416 32c-12.1 0-23.2 6.8-28.6 17.7l-64 128-16 32c-7.9 15.8-1.5 35 14.3 42.9s35 1.5 42.9-14.3l7.2-14.3 88.4 0 7.2 14.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9l-16-32-64-128C439.2 38.8 428.1 32 416 32zM395.8 176L416 135.6 436.2 176l-40.4 0z"},child:[]}]})(e)}function $b(e){return jt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"},child:[]}]})(e)}function Yb(e){return jt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"},child:[]}]})(e)}function Xb(e){return jt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"},child:[]}]})(e)}function i4(e){return jt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M72 88a56 56 0 1 1 112 0A56 56 0 1 1 72 88zM64 245.7C54 256.9 48 271.8 48 288s6 31.1 16 42.3l0-84.7zm144.4-49.3C178.7 222.7 160 261.2 160 304c0 34.3 12 65.8 32 90.5l0 21.5c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-26.8C26.2 371.2 0 332.7 0 288c0-61.9 50.1-112 112-112l32 0c24 0 46.2 7.5 64.4 20.3zM448 416l0-21.5c20-24.7 32-56.2 32-90.5c0-42.8-18.7-81.3-48.4-107.7C449.8 183.5 472 176 496 176l32 0c61.9 0 112 50.1 112 112c0 44.7-26.2 83.2-64 101.2l0 26.8c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32zm8-328a56 56 0 1 1 112 0A56 56 0 1 1 456 88zM576 245.7l0 84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM320 32a64 64 0 1 1 0 128 64 64 0 1 1 0-128zM240 304c0 16.2 6 31 16 42.3l0-84.7c-10 11.3-16 26.1-16 42.3zm144-42.3l0 84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM448 304c0 44.7-26.2 83.2-64 101.2l0 42.8c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-42.8c-37.8-18-64-56.5-64-101.2c0-61.9 50.1-112 112-112l32 0c61.9 0 112 50.1 112 112z"},child:[]}]})(e)}const Ca=({to:e,children:n})=>d.jsx(Vc,{to:e,className:"font-semibold md:font-normal text-md text-black hover:text-gray-700 focus:font-bold cursor-pointer",children:n});Ca.propTypes={to:Be.string,children:Be.node};const Zm=()=>{const[e,n]=j.useState(!1),[a,r]=j.useState("login"),o=()=>n(!1),u=(m="login")=>{r(m),n(!0)},f=({children:m})=>e?d.jsx("div",{className:"fixed inset-0 z-10 flex items-center justify-center bg-black/40",children:m}):null;return f.propTypes={children:Be.node.isRequired},{Modal:f,onOpen:u,onClose:o,type:a}},r4=()=>{var y,v,b,x;const{Modal:e,onOpen:n,onClose:a,type:r}=Zm(),{user:o,logout:u}=Wi(),[f,m]=j.useState(!1),p=()=>{u()},g=()=>{var S,E;((S=o==null?void 0:o.data)==null?void 0:S.role)==="doctor"?window.location.href="/dokter":((E=o==null?void 0:o.data)==null?void 0:E.role)==="patient"&&(window.location.href="/")};return d.jsxs("div",{className:"fixed w-full flex justify-center lg:pt-5 absolute z-50",children:[d.jsxs("div",{className:"relative w-full lg:w-6xl flex md:justify-between items-center px-12 py-5 lg:rounded-xl shadow-md bg-white/60 backdrop-blur-sm",children:[d.jsx("div",{onClick:()=>m(!f),className:"md:hidden flex",children:d.jsx($b,{})}),d.jsx("h1",{className:"flex md:hidden font-bold mx-auto text-lg text-blue-950",children:"MySkin"}),f&&d.jsxs("div",{className:"md:hidden absolute top-17 left-0 w-full bg-white/90 flex flex-col items-center p-5 gap-y-5 shadow-lg",children:[d.jsx(Ca,{to:"/",children:"Beranda"}),o&&((y=o==null?void 0:o.data)==null?void 0:y.role)==="patient"&&d.jsxs(d.Fragment,{children:[d.jsx(Ca,{to:"deteksi",children:"Riwayat Deteksi"}),d.jsx(Ca,{to:"pengajuan",children:"Riwayat Pengajuan"})]}),d.jsx(Ca,{to:"/faq",children:"FAQ"}),o?d.jsxs("div",{className:"flex space-x-4",children:[d.jsx("button",{onClick:()=>g(),className:"cursor-pointer",children:((v=o==null?void 0:o.data)==null?void 0:v.role)==="doctor"&&"Dashboard"}),d.jsx("button",{onClick:p,className:"font-extralight text-md cursor-pointer text-red-500",children:"Keluar"})]}):d.jsxs("div",{className:"w-full flex flex-col gap-y-5",children:[d.jsx("button",{onClick:()=>n("register"),className:"font-semibold text-sky-900 text-md cursor-pointer",children:"Daftar"}),d.jsx("button",{onClick:()=>n("login"),className:"bg-sky-800 px-4 py-2 rounded-lg font-extralight text-white text-md cursor-pointer",children:"Masuk"})]})]}),d.jsx("h1",{className:"hidden md:flex font-bold text-md text-blue-950",children:"MySkin"}),d.jsxs("div",{className:"flex gap-x-4 hidden md:flex",children:[d.jsx(Ca,{to:"/",children:"Beranda"}),o&&((b=o==null?void 0:o.data)==null?void 0:b.role)==="patient"&&d.jsxs(d.Fragment,{children:[d.jsx(Ca,{to:"deteksi",children:"Riwayat Deteksi"}),d.jsx(Ca,{to:"pengajuan",children:"Riwayat Pengajuan"})]}),d.jsx(Ca,{to:"/faq",children:"FAQ"})]}),o?d.jsxs("div",{className:"flex space-x-4",children:[d.jsx("button",{onClick:()=>g(),className:"cursor-pointer",children:((x=o==null?void 0:o.data)==null?void 0:x.role)==="doctor"&&"Dashboard"}),d.jsx("button",{onClick:p,className:"font-extralight text-md cursor-pointer text-red-500",children:"Keluar"})]}):d.jsxs("div",{className:"hidden md:flex gap-x-4",children:[d.jsx("button",{onClick:()=>n("register"),className:" font-extralight text-sky-900 text-md cursor-pointer",children:"Daftar"}),d.jsx("button",{onClick:()=>n("login"),className:"bg-sky-800 px-4 py-2 rounded-lg font-extralight text-white text-md cursor-pointer",children:"Masuk"})]})]}),d.jsx(e,{children:d.jsx(qb,{onClose:a,type:r})})]})},s4=()=>{const{Modal:e,onClose:n}=Zm(),a=Da(),[r,o]=j.useState(null),[u,f]=j.useState(!1);j.useEffect(()=>{const g=a.pathname.split("/")[2]||"dashboard";o(g),f(!1)},[a]);const m=()=>{localStorage.removeItem("user"),window.location.href="/"},p=[{to:"/dokter",label:"Dashboard",icon:d.jsx(fE,{size:20}),key:"dashboard"},{to:"/dokter/daftar-pasien",label:"Daftar Pasien",icon:d.jsx(i4,{size:20}),key:"daftar-pasien"},{to:"/dokter/daftar-pengajuan",label:"Daftar Pengajuan",icon:d.jsx(am,{size:20}),key:"daftar-pengajuan"},{to:"/dokter/riwayat-verifikasi",label:"Riwayat Verifikasi",icon:d.jsx(am,{size:20}),key:"riwayat-verifikasi"}];return d.jsxs("div",{className:"w-full flex justify-center mb-[60px] lg:mb-0",children:[d.jsxs("div",{className:"fixed w-full z-[20] bg-white",children:[d.jsxs("div",{className:"flex lg:hidden w-full justify-between items-center px-6 py-5 border-b-[1px] border-[#E3E3E3]",children:[d.jsx("div",{onClick:()=>f(!u),children:d.jsx($b,{})}),d.jsx("h1",{className:"flex md:hidden font-bold mx-auto pr-[18px] text-lg text-blue-950",children:"MySkin"})]}),u&&d.jsxs("div",{className:"absolute top-17 left-0 w-full flex flex-col items-center p-5 gap-y-5 shadow-lg bg-white",children:[p.map(g=>d.jsx(Ca,{to:g.to,children:g.label},g.key)),d.jsx("div",{className:"d-flex space-x-4",children:d.jsx("button",{onClick:m,className:"font-extralight text-md cursor-pointer text-red-500",children:"Keluar"})})]})]}),d.jsxs("div",{className:"hidden lg:flex w-full justify-between items-center px-12 py-5 border-b-[1px] border-[#E3E3E3] bg-white/60 backdrop-blur-sm",children:[d.jsx("h1",{className:"font-semibold text-md text-blue-950",children:"MySkin"}),d.jsx("div",{className:"flex gap-x-12 items-center",children:p.map(g=>d.jsxs(Vc,{to:g.to,className:"flex items-center gap-2",children:[d.jsx("span",{className:`px-3 py-3 rounded-lg shadow transition-all duration-300 ${r===g.key?"bg-[#12476B] text-white":"bg-white text-black"}`,children:g.icon}),d.jsx("span",{className:`${r===g.key?"font-bold text-[#12476B]":"text-black"}`,children:g.label})]},g.key))}),d.jsx("div",{className:"d-flex space-x-4",children:d.jsx("button",{onClick:m,className:"font-extralight text-md cursor-pointer text-red-500",children:"Keluar"})})]}),d.jsx(e,{children:d.jsx(Km,{onClose:n})})]})},dc=({type:e})=>d.jsxs(d.Fragment,{children:[e==="default"&&d.jsx(r4,{}),e==="doctor"&&d.jsx(s4,{}),d.jsx("div",{className:"flex-1",children:d.jsx(ab,{})}),d.jsx(vE,{})]});dc.propTypes={type:Be.string.isRequired};const Ki={getStats(e){return rt.get(dt.doctor_services.stats,{params:e})},getPendingSubmissions(e){return rt.get(dt.doctor_services.pending,{params:e})},getPatients(e){return rt.get(dt.doctor_services.patients,{params:e})},getPendingSubmissionsList(e){return rt.get(dt.doctor_services.submission,{params:e})},getSubmissionsHistory(e){return rt.get(dt.doctor_services.history,{params:e})},getSubmissionDetail(e,n){const a=dt.doctor_services.detail.replace("{id}",e);return rt.get(a,{params:n})},verifySubmission(e,n){const a=dt.doctor_services.verify.replace("{id}",e);return rt.patch(a,n)}};/**
* table-core
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Qi(e,n){return typeof e=="function"?e(n):e}function Mn(e,n){return a=>{n.setState(r=>({...r,[e]:Qi(a,r[e])}))}}function Zc(e){return e instanceof Function}function l4(e){return Array.isArray(e)&&e.every(n=>typeof n=="number")}function o4(e,n){const a=[],r=o=>{o.forEach(u=>{a.push(u);const f=n(u);f!=null&&f.length&&r(f)})};return r(e),a}function Ne(e,n,a){let r=[],o;return u=>{let f;a.key&&a.debug&&(f=Date.now());const m=e(u);if(!(m.length!==r.length||m.some((y,v)=>r[v]!==y)))return o;r=m;let g;if(a.key&&a.debug&&(g=Date.now()),o=n(...m),a==null||a.onChange==null||a.onChange(o),a.key&&a.debug&&a!=null&&a.debug()){const y=Math.round((Date.now()-f)*100)/100,v=Math.round((Date.now()-g)*100)/100,b=v/16,x=(S,E)=>{for(S=String(S);S.length<E;)S=" "+S;return S};console.info(`%c ${x(v,5)} /${x(y,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,a==null?void 0:a.key)}return o}}function Te(e,n,a,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[n]},key:!1,onChange:r}}function u4(e,n,a,r){const o=()=>{var f;return(f=u.getValue())!=null?f:e.options.renderFallbackValue},u={id:`${n.id}_${a.id}`,row:n,column:a,getValue:()=>n.getValue(r),renderValue:o,getContext:Ne(()=>[e,a,n,u],(f,m,p,g)=>({table:f,column:m,row:p,cell:g,getValue:g.getValue,renderValue:g.renderValue}),Te(e.options,"debugCells"))};return e._features.forEach(f=>{f.createCell==null||f.createCell(u,a,n,e)},{}),u}function c4(e,n,a,r){var o,u;const m={...e._getDefaultColumnDef(),...n},p=m.accessorKey;let g=(o=(u=m.id)!=null?u:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?o:typeof m.header=="string"?m.header:void 0,y;if(m.accessorFn?y=m.accessorFn:p&&(p.includes(".")?y=b=>{let x=b;for(const E of p.split(".")){var S;x=(S=x)==null?void 0:S[E]}return x}:y=b=>b[m.accessorKey]),!g)throw new Error;let v={id:`${String(g)}`,accessorFn:y,parent:r,depth:a,columnDef:m,columns:[],getFlatColumns:Ne(()=>[!0],()=>{var b;return[v,...(b=v.columns)==null?void 0:b.flatMap(x=>x.getFlatColumns())]},Te(e.options,"debugColumns")),getLeafColumns:Ne(()=>[e._getOrderColumnsFn()],b=>{var x;if((x=v.columns)!=null&&x.length){let S=v.columns.flatMap(E=>E.getLeafColumns());return b(S)}return[v]},Te(e.options,"debugColumns"))};for(const b of e._features)b.createColumn==null||b.createColumn(v,e);return v}const en="debugHeaders";function Gv(e,n,a){var r;let u={id:(r=a.id)!=null?r:n.id,column:n,index:a.index,isPlaceholder:!!a.isPlaceholder,placeholderId:a.placeholderId,depth:a.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const f=[],m=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(m),f.push(p)};return m(u),f},getContext:()=>({table:e,header:u,column:n})};return e._features.forEach(f=>{f.createHeader==null||f.createHeader(u,e)}),u}const d4={createTable:e=>{e.getHeaderGroups=Ne(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,a,r,o)=>{var u,f;const m=(u=r==null?void 0:r.map(v=>a.find(b=>b.id===v)).filter(Boolean))!=null?u:[],p=(f=o==null?void 0:o.map(v=>a.find(b=>b.id===v)).filter(Boolean))!=null?f:[],g=a.filter(v=>!(r!=null&&r.includes(v.id))&&!(o!=null&&o.includes(v.id)));return Wu(n,[...m,...g,...p],e)},Te(e.options,en)),e.getCenterHeaderGroups=Ne(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,a,r,o)=>(a=a.filter(u=>!(r!=null&&r.includes(u.id))&&!(o!=null&&o.includes(u.id))),Wu(n,a,e,"center")),Te(e.options,en)),e.getLeftHeaderGroups=Ne(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(n,a,r)=>{var o;const u=(o=r==null?void 0:r.map(f=>a.find(m=>m.id===f)).filter(Boolean))!=null?o:[];return Wu(n,u,e,"left")},Te(e.options,en)),e.getRightHeaderGroups=Ne(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(n,a,r)=>{var o;const u=(o=r==null?void 0:r.map(f=>a.find(m=>m.id===f)).filter(Boolean))!=null?o:[];return Wu(n,u,e,"right")},Te(e.options,en)),e.getFooterGroups=Ne(()=>[e.getHeaderGroups()],n=>[...n].reverse(),Te(e.options,en)),e.getLeftFooterGroups=Ne(()=>[e.getLeftHeaderGroups()],n=>[...n].reverse(),Te(e.options,en)),e.getCenterFooterGroups=Ne(()=>[e.getCenterHeaderGroups()],n=>[...n].reverse(),Te(e.options,en)),e.getRightFooterGroups=Ne(()=>[e.getRightHeaderGroups()],n=>[...n].reverse(),Te(e.options,en)),e.getFlatHeaders=Ne(()=>[e.getHeaderGroups()],n=>n.map(a=>a.headers).flat(),Te(e.options,en)),e.getLeftFlatHeaders=Ne(()=>[e.getLeftHeaderGroups()],n=>n.map(a=>a.headers).flat(),Te(e.options,en)),e.getCenterFlatHeaders=Ne(()=>[e.getCenterHeaderGroups()],n=>n.map(a=>a.headers).flat(),Te(e.options,en)),e.getRightFlatHeaders=Ne(()=>[e.getRightHeaderGroups()],n=>n.map(a=>a.headers).flat(),Te(e.options,en)),e.getCenterLeafHeaders=Ne(()=>[e.getCenterFlatHeaders()],n=>n.filter(a=>{var r;return!((r=a.subHeaders)!=null&&r.length)}),Te(e.options,en)),e.getLeftLeafHeaders=Ne(()=>[e.getLeftFlatHeaders()],n=>n.filter(a=>{var r;return!((r=a.subHeaders)!=null&&r.length)}),Te(e.options,en)),e.getRightLeafHeaders=Ne(()=>[e.getRightFlatHeaders()],n=>n.filter(a=>{var r;return!((r=a.subHeaders)!=null&&r.length)}),Te(e.options,en)),e.getLeafHeaders=Ne(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(n,a,r)=>{var o,u,f,m,p,g;return[...(o=(u=n[0])==null?void 0:u.headers)!=null?o:[],...(f=(m=a[0])==null?void 0:m.headers)!=null?f:[],...(p=(g=r[0])==null?void 0:g.headers)!=null?p:[]].map(y=>y.getLeafHeaders()).flat()},Te(e.options,en))}};function Wu(e,n,a,r){var o,u;let f=0;const m=function(b,x){x===void 0&&(x=1),f=Math.max(f,x),b.filter(S=>S.getIsVisible()).forEach(S=>{var E;(E=S.columns)!=null&&E.length&&m(S.columns,x+1)},0)};m(e);let p=[];const g=(b,x)=>{const S={depth:x,id:[r,`${x}`].filter(Boolean).join("_"),headers:[]},E=[];b.forEach(C=>{const k=[...E].reverse()[0],z=C.column.depth===S.depth;let _,Z=!1;if(z&&C.column.parent?_=C.column.parent:(_=C.column,Z=!0),k&&(k==null?void 0:k.column)===_)k.subHeaders.push(C);else{const R=Gv(a,_,{id:[r,x,_.id,C==null?void 0:C.id].filter(Boolean).join("_"),isPlaceholder:Z,placeholderId:Z?`${E.filter(W=>W.column===_).length}`:void 0,depth:x,index:E.length});R.subHeaders.push(C),E.push(R)}S.headers.push(C),C.headerGroup=S}),p.push(S),x>0&&g(E,x-1)},y=n.map((b,x)=>Gv(a,b,{depth:f,index:x}));g(y,f-1),p.reverse();const v=b=>b.filter(S=>S.column.getIsVisible()).map(S=>{let E=0,C=0,k=[0];S.subHeaders&&S.subHeaders.length?(k=[],v(S.subHeaders).forEach(_=>{let{colSpan:Z,rowSpan:R}=_;E+=Z,k.push(R)})):E=1;const z=Math.min(...k);return C=C+z,S.colSpan=E,S.rowSpan=C,{colSpan:E,rowSpan:C}});return v((o=(u=p[0])==null?void 0:u.headers)!=null?o:[]),p}const Jm=(e,n,a,r,o,u,f)=>{let m={id:n,index:r,original:a,depth:o,parentId:f,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(m._valuesCache.hasOwnProperty(p))return m._valuesCache[p];const g=e.getColumn(p);if(g!=null&&g.accessorFn)return m._valuesCache[p]=g.accessorFn(m.original,r),m._valuesCache[p]},getUniqueValues:p=>{if(m._uniqueValuesCache.hasOwnProperty(p))return m._uniqueValuesCache[p];const g=e.getColumn(p);if(g!=null&&g.accessorFn)return g.columnDef.getUniqueValues?(m._uniqueValuesCache[p]=g.columnDef.getUniqueValues(m.original,r),m._uniqueValuesCache[p]):(m._uniqueValuesCache[p]=[m.getValue(p)],m._uniqueValuesCache[p])},renderValue:p=>{var g;return(g=m.getValue(p))!=null?g:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>o4(m.subRows,p=>p.subRows),getParentRow:()=>m.parentId?e.getRow(m.parentId,!0):void 0,getParentRows:()=>{let p=[],g=m;for(;;){const y=g.getParentRow();if(!y)break;p.push(y),g=y}return p.reverse()},getAllCells:Ne(()=>[e.getAllLeafColumns()],p=>p.map(g=>u4(e,m,g,g.id)),Te(e.options,"debugRows")),_getAllCellsByColumnId:Ne(()=>[m.getAllCells()],p=>p.reduce((g,y)=>(g[y.column.id]=y,g),{}),Te(e.options,"debugRows"))};for(let p=0;p<e._features.length;p++){const g=e._features[p];g==null||g.createRow==null||g.createRow(m,e)}return m},f4={createColumn:(e,n)=>{e._getFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),e._getFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Kb=(e,n,a)=>{var r,o;const u=a==null||(r=a.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(n))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(u))};Kb.autoRemove=e=>ma(e);const Zb=(e,n,a)=>{var r;return!!(!((r=e.getValue(n))==null||(r=r.toString())==null)&&r.includes(a))};Zb.autoRemove=e=>ma(e);const Jb=(e,n,a)=>{var r;return((r=e.getValue(n))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(a==null?void 0:a.toLowerCase())};Jb.autoRemove=e=>ma(e);const Wb=(e,n,a)=>{var r;return(r=e.getValue(n))==null?void 0:r.includes(a)};Wb.autoRemove=e=>ma(e);const ex=(e,n,a)=>!a.some(r=>{var o;return!((o=e.getValue(n))!=null&&o.includes(r))});ex.autoRemove=e=>ma(e)||!(e!=null&&e.length);const tx=(e,n,a)=>a.some(r=>{var o;return(o=e.getValue(n))==null?void 0:o.includes(r)});tx.autoRemove=e=>ma(e)||!(e!=null&&e.length);const nx=(e,n,a)=>e.getValue(n)===a;nx.autoRemove=e=>ma(e);const ax=(e,n,a)=>e.getValue(n)==a;ax.autoRemove=e=>ma(e);const Wm=(e,n,a)=>{let[r,o]=a;const u=e.getValue(n);return u>=r&&u<=o};Wm.resolveFilterValue=e=>{let[n,a]=e,r=typeof n!="number"?parseFloat(n):n,o=typeof a!="number"?parseFloat(a):a,u=n===null||Number.isNaN(r)?-1/0:r,f=a===null||Number.isNaN(o)?1/0:o;if(u>f){const m=u;u=f,f=m}return[u,f]};Wm.autoRemove=e=>ma(e)||ma(e[0])&&ma(e[1]);const ni={includesString:Kb,includesStringSensitive:Zb,equalsString:Jb,arrIncludes:Wb,arrIncludesAll:ex,arrIncludesSome:tx,equals:nx,weakEquals:ax,inNumberRange:Wm};function ma(e){return e==null||e===""}const h4={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Mn("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,n)=>{e.getAutoFilterFn=()=>{const a=n.getCoreRowModel().flatRows[0],r=a==null?void 0:a.getValue(e.id);return typeof r=="string"?ni.includesString:typeof r=="number"?ni.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?ni.equals:Array.isArray(r)?ni.arrIncludes:ni.weakEquals},e.getFilterFn=()=>{var a,r;return Zc(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(a=(r=n.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?a:ni[e.columnDef.filterFn]},e.getCanFilter=()=>{var a,r,o;return((a=e.columnDef.enableColumnFilter)!=null?a:!0)&&((r=n.options.enableColumnFilters)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var a;return(a=n.getState().columnFilters)==null||(a=a.find(r=>r.id===e.id))==null?void 0:a.value},e.getFilterIndex=()=>{var a,r;return(a=(r=n.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?a:-1},e.setFilterValue=a=>{n.setColumnFilters(r=>{const o=e.getFilterFn(),u=r==null?void 0:r.find(y=>y.id===e.id),f=Qi(a,u?u.value:void 0);if($v(o,f,e)){var m;return(m=r==null?void 0:r.filter(y=>y.id!==e.id))!=null?m:[]}const p={id:e.id,value:f};if(u){var g;return(g=r==null?void 0:r.map(y=>y.id===e.id?p:y))!=null?g:[]}return r!=null&&r.length?[...r,p]:[p]})}},createRow:(e,n)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=n=>{const a=e.getAllLeafColumns(),r=o=>{var u;return(u=Qi(n,o))==null?void 0:u.filter(f=>{const m=a.find(p=>p.id===f.id);if(m){const p=m.getFilterFn();if($v(p,f.value,m))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=n=>{var a,r;e.setColumnFilters(n?[]:(a=(r=e.initialState)==null?void 0:r.columnFilters)!=null?a:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function $v(e,n,a){return(e&&e.autoRemove?e.autoRemove(n,a):!1)||typeof n>"u"||typeof n=="string"&&!n}const m4=(e,n,a)=>a.reduce((r,o)=>{const u=o.getValue(e);return r+(typeof u=="number"?u:0)},0),g4=(e,n,a)=>{let r;return a.forEach(o=>{const u=o.getValue(e);u!=null&&(r>u||r===void 0&&u>=u)&&(r=u)}),r},p4=(e,n,a)=>{let r;return a.forEach(o=>{const u=o.getValue(e);u!=null&&(r<u||r===void 0&&u>=u)&&(r=u)}),r},y4=(e,n,a)=>{let r,o;return a.forEach(u=>{const f=u.getValue(e);f!=null&&(r===void 0?f>=f&&(r=o=f):(r>f&&(r=f),o<f&&(o=f)))}),[r,o]},v4=(e,n)=>{let a=0,r=0;if(n.forEach(o=>{let u=o.getValue(e);u!=null&&(u=+u)>=u&&(++a,r+=u)}),a)return r/a},w4=(e,n)=>{if(!n.length)return;const a=n.map(u=>u.getValue(e));if(!l4(a))return;if(a.length===1)return a[0];const r=Math.floor(a.length/2),o=a.sort((u,f)=>u-f);return a.length%2!==0?o[r]:(o[r-1]+o[r])/2},b4=(e,n)=>Array.from(new Set(n.map(a=>a.getValue(e))).values()),x4=(e,n)=>new Set(n.map(a=>a.getValue(e))).size,S4=(e,n)=>n.length,Bh={sum:m4,min:g4,max:p4,extent:y4,mean:v4,median:w4,unique:b4,uniqueCount:x4,count:S4},A4={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,a;return(n=(a=e.getValue())==null||a.toString==null?void 0:a.toString())!=null?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Mn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>{e.toggleGrouping=()=>{n.setGrouping(a=>a!=null&&a.includes(e.id)?a.filter(r=>r!==e.id):[...a??[],e.id])},e.getCanGroup=()=>{var a,r;return((a=e.columnDef.enableGrouping)!=null?a:!0)&&((r=n.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var a;return(a=n.getState().grouping)==null?void 0:a.includes(e.id)},e.getGroupedIndex=()=>{var a;return(a=n.getState().grouping)==null?void 0:a.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const a=e.getCanGroup();return()=>{a&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const a=n.getCoreRowModel().flatRows[0],r=a==null?void 0:a.getValue(e.id);if(typeof r=="number")return Bh.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Bh.extent},e.getAggregationFn=()=>{var a,r;if(!e)throw new Error;return Zc(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(a=(r=n.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?a:Bh[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=n=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(n),e.resetGrouping=n=>{var a,r;e.setGrouping(n?[]:(a=(r=e.initialState)==null?void 0:r.grouping)!=null?a:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,n)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=a=>{if(e._groupingValuesCache.hasOwnProperty(a))return e._groupingValuesCache[a];const r=n.getColumn(a);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[a]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[a]):e.getValue(a)},e._groupingValuesCache={}},createCell:(e,n,a,r)=>{e.getIsGrouped=()=>n.getIsGrouped()&&n.id===a.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&n.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=a.subRows)!=null&&o.length)}}};function C4(e,n,a){if(!(n!=null&&n.length)||!a)return e;const r=e.filter(u=>!n.includes(u.id));return a==="remove"?r:[...n.map(u=>e.find(f=>f.id===u)).filter(Boolean),...r]}const E4={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Mn("columnOrder",e)}),createColumn:(e,n)=>{e.getIndex=Ne(a=>[mo(n,a)],a=>a.findIndex(r=>r.id===e.id),Te(n.options,"debugColumns")),e.getIsFirstColumn=a=>{var r;return((r=mo(n,a)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=a=>{var r;const o=mo(n,a);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=n=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(n),e.resetColumnOrder=n=>{var a;e.setColumnOrder(n?[]:(a=e.initialState.columnOrder)!=null?a:[])},e._getOrderColumnsFn=Ne(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(n,a,r)=>o=>{let u=[];if(!(n!=null&&n.length))u=o;else{const f=[...n],m=[...o];for(;m.length&&f.length;){const p=f.shift(),g=m.findIndex(y=>y.id===p);g>-1&&u.push(m.splice(g,1)[0])}u=[...u,...m]}return C4(u,a,r)},Te(e.options,"debugTable"))}},zh=()=>({left:[],right:[]}),j4={getInitialState:e=>({columnPinning:zh(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Mn("columnPinning",e)}),createColumn:(e,n)=>{e.pin=a=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);n.setColumnPinning(o=>{var u,f;if(a==="right"){var m,p;return{left:((m=o==null?void 0:o.left)!=null?m:[]).filter(v=>!(r!=null&&r.includes(v))),right:[...((p=o==null?void 0:o.right)!=null?p:[]).filter(v=>!(r!=null&&r.includes(v))),...r]}}if(a==="left"){var g,y;return{left:[...((g=o==null?void 0:o.left)!=null?g:[]).filter(v=>!(r!=null&&r.includes(v))),...r],right:((y=o==null?void 0:o.right)!=null?y:[]).filter(v=>!(r!=null&&r.includes(v)))}}return{left:((u=o==null?void 0:o.left)!=null?u:[]).filter(v=>!(r!=null&&r.includes(v))),right:((f=o==null?void 0:o.right)!=null?f:[]).filter(v=>!(r!=null&&r.includes(v)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,u,f;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((u=(f=n.options.enableColumnPinning)!=null?f:n.options.enablePinning)!=null?u:!0)}),e.getIsPinned=()=>{const a=e.getLeafColumns().map(m=>m.id),{left:r,right:o}=n.getState().columnPinning,u=a.some(m=>r==null?void 0:r.includes(m)),f=a.some(m=>o==null?void 0:o.includes(m));return u?"left":f?"right":!1},e.getPinnedIndex=()=>{var a,r;const o=e.getIsPinned();return o?(a=(r=n.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?a:-1:0}},createRow:(e,n)=>{e.getCenterVisibleCells=Ne(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right],(a,r,o)=>{const u=[...r??[],...o??[]];return a.filter(f=>!u.includes(f.column.id))},Te(n.options,"debugRows")),e.getLeftVisibleCells=Ne(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left],(a,r)=>(r??[]).map(u=>a.find(f=>f.column.id===u)).filter(Boolean).map(u=>({...u,position:"left"})),Te(n.options,"debugRows")),e.getRightVisibleCells=Ne(()=>[e._getAllVisibleCells(),n.getState().columnPinning.right],(a,r)=>(r??[]).map(u=>a.find(f=>f.column.id===u)).filter(Boolean).map(u=>({...u,position:"right"})),Te(n.options,"debugRows"))},createTable:e=>{e.setColumnPinning=n=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(n),e.resetColumnPinning=n=>{var a,r;return e.setColumnPinning(n?zh():(a=(r=e.initialState)==null?void 0:r.columnPinning)!=null?a:zh())},e.getIsSomeColumnsPinned=n=>{var a;const r=e.getState().columnPinning;if(!n){var o,u;return!!((o=r.left)!=null&&o.length||(u=r.right)!=null&&u.length)}return!!((a=r[n])!=null&&a.length)},e.getLeftLeafColumns=Ne(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(n,a)=>(a??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),Te(e.options,"debugColumns")),e.getRightLeafColumns=Ne(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(n,a)=>(a??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),Te(e.options,"debugColumns")),e.getCenterLeafColumns=Ne(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,a,r)=>{const o=[...a??[],...r??[]];return n.filter(u=>!o.includes(u.id))},Te(e.options,"debugColumns"))}},ec={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Lh=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),R4={getDefaultColumnDef:()=>ec,getInitialState:e=>({columnSizing:{},columnSizingInfo:Lh(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Mn("columnSizing",e),onColumnSizingInfoChange:Mn("columnSizingInfo",e)}),createColumn:(e,n)=>{e.getSize=()=>{var a,r,o;const u=n.getState().columnSizing[e.id];return Math.min(Math.max((a=e.columnDef.minSize)!=null?a:ec.minSize,(r=u??e.columnDef.size)!=null?r:ec.size),(o=e.columnDef.maxSize)!=null?o:ec.maxSize)},e.getStart=Ne(a=>[a,mo(n,a),n.getState().columnSizing],(a,r)=>r.slice(0,e.getIndex(a)).reduce((o,u)=>o+u.getSize(),0),Te(n.options,"debugColumns")),e.getAfter=Ne(a=>[a,mo(n,a),n.getState().columnSizing],(a,r)=>r.slice(e.getIndex(a)+1).reduce((o,u)=>o+u.getSize(),0),Te(n.options,"debugColumns")),e.resetSize=()=>{n.setColumnSizing(a=>{let{[e.id]:r,...o}=a;return o})},e.getCanResize=()=>{var a,r;return((a=e.columnDef.enableResizing)!=null?a:!0)&&((r=n.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>n.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,n)=>{e.getSize=()=>{let a=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var u;a+=(u=o.column.getSize())!=null?u:0}};return r(e),a},e.getStart=()=>{if(e.index>0){const a=e.headerGroup.headers[e.index-1];return a.getStart()+a.getSize()}return 0},e.getResizeHandler=a=>{const r=n.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return u=>{if(!r||!o||(u.persist==null||u.persist(),Uh(u)&&u.touches&&u.touches.length>1))return;const f=e.getSize(),m=e?e.getLeafHeaders().map(k=>[k.column.id,k.column.getSize()]):[[r.id,r.getSize()]],p=Uh(u)?Math.round(u.touches[0].clientX):u.clientX,g={},y=(k,z)=>{typeof z=="number"&&(n.setColumnSizingInfo(_=>{var Z,R;const W=n.options.columnResizeDirection==="rtl"?-1:1,ce=(z-((Z=_==null?void 0:_.startOffset)!=null?Z:0))*W,re=Math.max(ce/((R=_==null?void 0:_.startSize)!=null?R:0),-.999999);return _.columnSizingStart.forEach(Q=>{let[ne,fe]=Q;g[ne]=Math.round(Math.max(fe+fe*re,0)*100)/100}),{..._,deltaOffset:ce,deltaPercentage:re}}),(n.options.columnResizeMode==="onChange"||k==="end")&&n.setColumnSizing(_=>({..._,...g})))},v=k=>y("move",k),b=k=>{y("end",k),n.setColumnSizingInfo(z=>({...z,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},x=a||typeof document<"u"?document:null,S={moveHandler:k=>v(k.clientX),upHandler:k=>{x==null||x.removeEventListener("mousemove",S.moveHandler),x==null||x.removeEventListener("mouseup",S.upHandler),b(k.clientX)}},E={moveHandler:k=>(k.cancelable&&(k.preventDefault(),k.stopPropagation()),v(k.touches[0].clientX),!1),upHandler:k=>{var z;x==null||x.removeEventListener("touchmove",E.moveHandler),x==null||x.removeEventListener("touchend",E.upHandler),k.cancelable&&(k.preventDefault(),k.stopPropagation()),b((z=k.touches[0])==null?void 0:z.clientX)}},C=N4()?{passive:!1}:!1;Uh(u)?(x==null||x.addEventListener("touchmove",E.moveHandler,C),x==null||x.addEventListener("touchend",E.upHandler,C)):(x==null||x.addEventListener("mousemove",S.moveHandler,C),x==null||x.addEventListener("mouseup",S.upHandler,C)),n.setColumnSizingInfo(k=>({...k,startOffset:p,startSize:f,deltaOffset:0,deltaPercentage:0,columnSizingStart:m,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=n=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(n),e.setColumnSizingInfo=n=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(n),e.resetColumnSizing=n=>{var a;e.setColumnSizing(n?{}:(a=e.initialState.columnSizing)!=null?a:{})},e.resetHeaderSizeInfo=n=>{var a;e.setColumnSizingInfo(n?Lh():(a=e.initialState.columnSizingInfo)!=null?a:Lh())},e.getTotalSize=()=>{var n,a;return(n=(a=e.getHeaderGroups()[0])==null?void 0:a.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getLeftTotalSize=()=>{var n,a;return(n=(a=e.getLeftHeaderGroups()[0])==null?void 0:a.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getCenterTotalSize=()=>{var n,a;return(n=(a=e.getCenterHeaderGroups()[0])==null?void 0:a.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getRightTotalSize=()=>{var n,a;return(n=(a=e.getRightHeaderGroups()[0])==null?void 0:a.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0}}};let tc=null;function N4(){if(typeof tc=="boolean")return tc;let e=!1;try{const n={get passive(){return e=!0,!1}},a=()=>{};window.addEventListener("test",a,n),window.removeEventListener("test",a)}catch{e=!1}return tc=e,tc}function Uh(e){return e.type==="touchstart"}const T4={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Mn("columnVisibility",e)}),createColumn:(e,n)=>{e.toggleVisibility=a=>{e.getCanHide()&&n.setColumnVisibility(r=>({...r,[e.id]:a??!e.getIsVisible()}))},e.getIsVisible=()=>{var a,r;const o=e.columns;return(a=o.length?o.some(u=>u.getIsVisible()):(r=n.getState().columnVisibility)==null?void 0:r[e.id])!=null?a:!0},e.getCanHide=()=>{var a,r;return((a=e.columnDef.enableHiding)!=null?a:!0)&&((r=n.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>a=>{e.toggleVisibility==null||e.toggleVisibility(a.target.checked)}},createRow:(e,n)=>{e._getAllVisibleCells=Ne(()=>[e.getAllCells(),n.getState().columnVisibility],a=>a.filter(r=>r.column.getIsVisible()),Te(n.options,"debugRows")),e.getVisibleCells=Ne(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(a,r,o)=>[...a,...r,...o],Te(n.options,"debugRows"))},createTable:e=>{const n=(a,r)=>Ne(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(u=>u.getIsVisible==null?void 0:u.getIsVisible()),Te(e.options,"debugColumns"));e.getVisibleFlatColumns=n("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=n("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=n("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=n("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=n("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=a=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(a),e.resetColumnVisibility=a=>{var r;e.setColumnVisibility(a?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=a=>{var r;a=(r=a)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,u)=>({...o,[u.id]:a||!(u.getCanHide!=null&&u.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(a=>!(a.getIsVisible!=null&&a.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(a=>a.getIsVisible==null?void 0:a.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>a=>{var r;e.toggleAllColumnsVisible((r=a.target)==null?void 0:r.checked)}}};function mo(e,n){return n?n==="center"?e.getCenterVisibleLeafColumns():n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const k4={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},M4={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Mn("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var a;const r=(a=e.getCoreRowModel().flatRows[0])==null||(a=a._getAllCellsByColumnId()[n.id])==null?void 0:a.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,n)=>{e.getCanGlobalFilter=()=>{var a,r,o,u;return((a=e.columnDef.enableGlobalFilter)!=null?a:!0)&&((r=n.options.enableGlobalFilter)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&((u=n.options.getColumnCanGlobalFilter==null?void 0:n.options.getColumnCanGlobalFilter(e))!=null?u:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ni.includesString,e.getGlobalFilterFn=()=>{var n,a;const{globalFilterFn:r}=e.options;return Zc(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(n=(a=e.options.filterFns)==null?void 0:a[r])!=null?n:ni[r]},e.setGlobalFilter=n=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(n)},e.resetGlobalFilter=n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)}}},D4={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Mn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,a=!1;e._autoResetExpanded=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(a)return;a=!0,e._queue(()=>{e.resetExpanded(),a=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,u;e.setExpanded(r?{}:(o=(u=e.initialState)==null?void 0:u.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(u=>{const f=u.split(".");r=Math.max(r,f.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,n)=>{e.toggleExpanded=a=>{n.setExpanded(r=>{var o;const u=r===!0?!0:!!(r!=null&&r[e.id]);let f={};if(r===!0?Object.keys(n.getRowModel().rowsById).forEach(m=>{f[m]=!0}):f=r,a=(o=a)!=null?o:!u,!u&&a)return{...f,[e.id]:!0};if(u&&!a){const{[e.id]:m,...p}=f;return p}return r})},e.getIsExpanded=()=>{var a;const r=n.getState().expanded;return!!((a=n.options.getIsRowExpanded==null?void 0:n.options.getIsRowExpanded(e))!=null?a:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var a,r,o;return(a=n.options.getRowCanExpand==null?void 0:n.options.getRowCanExpand(e))!=null?a:((r=n.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let a=!0,r=e;for(;a&&r.parentId;)r=n.getRow(r.parentId,!0),a=r.getIsExpanded();return a},e.getToggleExpandedHandler=()=>{const a=e.getCanExpand();return()=>{a&&e.toggleExpanded()}}}},cm=0,dm=10,Hh=()=>({pageIndex:cm,pageSize:dm}),O4={getInitialState:e=>({...e,pagination:{...Hh(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Mn("pagination",e)}),createTable:e=>{let n=!1,a=!1;e._autoResetPageIndex=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(a)return;a=!0,e._queue(()=>{e.resetPageIndex(),a=!1})}},e.setPagination=r=>{const o=u=>Qi(r,u);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Hh():(o=e.initialState.pagination)!=null?o:Hh())},e.setPageIndex=r=>{e.setPagination(o=>{let u=Qi(r,o.pageIndex);const f=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return u=Math.max(0,Math.min(u,f)),{...o,pageIndex:u}})},e.resetPageIndex=r=>{var o,u;e.setPageIndex(r?cm:(o=(u=e.initialState)==null||(u=u.pagination)==null?void 0:u.pageIndex)!=null?o:cm)},e.resetPageSize=r=>{var o,u;e.setPageSize(r?dm:(o=(u=e.initialState)==null||(u=u.pagination)==null?void 0:u.pageSize)!=null?o:dm)},e.setPageSize=r=>{e.setPagination(o=>{const u=Math.max(1,Qi(r,o.pageSize)),f=o.pageSize*o.pageIndex,m=Math.floor(f/u);return{...o,pageIndex:m,pageSize:u}})},e.setPageCount=r=>e.setPagination(o=>{var u;let f=Qi(r,(u=e.options.pageCount)!=null?u:-1);return typeof f=="number"&&(f=Math.max(-1,f)),{...o,pageCount:f}}),e.getPageOptions=Ne(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((u,f)=>f)),o},Te(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Fh=()=>({top:[],bottom:[]}),_4={getInitialState:e=>({rowPinning:Fh(),...e}),getDefaultOptions:e=>({onRowPinningChange:Mn("rowPinning",e)}),createRow:(e,n)=>{e.pin=(a,r,o)=>{const u=r?e.getLeafRows().map(p=>{let{id:g}=p;return g}):[],f=o?e.getParentRows().map(p=>{let{id:g}=p;return g}):[],m=new Set([...f,e.id,...u]);n.setRowPinning(p=>{var g,y;if(a==="bottom"){var v,b;return{top:((v=p==null?void 0:p.top)!=null?v:[]).filter(E=>!(m!=null&&m.has(E))),bottom:[...((b=p==null?void 0:p.bottom)!=null?b:[]).filter(E=>!(m!=null&&m.has(E))),...Array.from(m)]}}if(a==="top"){var x,S;return{top:[...((x=p==null?void 0:p.top)!=null?x:[]).filter(E=>!(m!=null&&m.has(E))),...Array.from(m)],bottom:((S=p==null?void 0:p.bottom)!=null?S:[]).filter(E=>!(m!=null&&m.has(E)))}}return{top:((g=p==null?void 0:p.top)!=null?g:[]).filter(E=>!(m!=null&&m.has(E))),bottom:((y=p==null?void 0:p.bottom)!=null?y:[]).filter(E=>!(m!=null&&m.has(E)))}})},e.getCanPin=()=>{var a;const{enableRowPinning:r,enablePinning:o}=n.options;return typeof r=="function"?r(e):(a=r??o)!=null?a:!0},e.getIsPinned=()=>{const a=[e.id],{top:r,bottom:o}=n.getState().rowPinning,u=a.some(m=>r==null?void 0:r.includes(m)),f=a.some(m=>o==null?void 0:o.includes(m));return u?"top":f?"bottom":!1},e.getPinnedIndex=()=>{var a,r;const o=e.getIsPinned();if(!o)return-1;const u=(a=o==="top"?n.getTopRows():n.getBottomRows())==null?void 0:a.map(f=>{let{id:m}=f;return m});return(r=u==null?void 0:u.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=n=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(n),e.resetRowPinning=n=>{var a,r;return e.setRowPinning(n?Fh():(a=(r=e.initialState)==null?void 0:r.rowPinning)!=null?a:Fh())},e.getIsSomeRowsPinned=n=>{var a;const r=e.getState().rowPinning;if(!n){var o,u;return!!((o=r.top)!=null&&o.length||(u=r.bottom)!=null&&u.length)}return!!((a=r[n])!=null&&a.length)},e._getPinnedRows=(n,a,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(a??[]).map(f=>{const m=e.getRow(f,!0);return m.getIsAllParentsExpanded()?m:null}):(a??[]).map(f=>n.find(m=>m.id===f))).filter(Boolean).map(f=>({...f,position:r}))},e.getTopRows=Ne(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(n,a)=>e._getPinnedRows(n,a,"top"),Te(e.options,"debugRows")),e.getBottomRows=Ne(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(n,a)=>e._getPinnedRows(n,a,"bottom"),Te(e.options,"debugRows")),e.getCenterRows=Ne(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(n,a,r)=>{const o=new Set([...a??[],...r??[]]);return n.filter(u=>!o.has(u.id))},Te(e.options,"debugRows"))}},B4={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Mn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=n=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(n),e.resetRowSelection=n=>{var a;return e.setRowSelection(n?{}:(a=e.initialState.rowSelection)!=null?a:{})},e.toggleAllRowsSelected=n=>{e.setRowSelection(a=>{n=typeof n<"u"?n:!e.getIsAllRowsSelected();const r={...a},o=e.getPreGroupedRowModel().flatRows;return n?o.forEach(u=>{u.getCanSelect()&&(r[u.id]=!0)}):o.forEach(u=>{delete r[u.id]}),r})},e.toggleAllPageRowsSelected=n=>e.setRowSelection(a=>{const r=typeof n<"u"?n:!e.getIsAllPageRowsSelected(),o={...a};return e.getRowModel().rows.forEach(u=>{fm(o,u.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Ne(()=>[e.getState().rowSelection,e.getCoreRowModel()],(n,a)=>Object.keys(n).length?Ph(e,a):{rows:[],flatRows:[],rowsById:{}},Te(e.options,"debugTable")),e.getFilteredSelectedRowModel=Ne(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(n,a)=>Object.keys(n).length?Ph(e,a):{rows:[],flatRows:[],rowsById:{}},Te(e.options,"debugTable")),e.getGroupedSelectedRowModel=Ne(()=>[e.getState().rowSelection,e.getSortedRowModel()],(n,a)=>Object.keys(n).length?Ph(e,a):{rows:[],flatRows:[],rowsById:{}},Te(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:a}=e.getState();let r=!!(n.length&&Object.keys(a).length);return r&&n.some(o=>o.getCanSelect()&&!a[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:a}=e.getState();let r=!!n.length;return r&&n.some(o=>!a[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var n;const a=Object.keys((n=e.getState().rowSelection)!=null?n:{}).length;return a>0&&a<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:n.filter(a=>a.getCanSelect()).some(a=>a.getIsSelected()||a.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>n=>{e.toggleAllRowsSelected(n.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}},createRow:(e,n)=>{e.toggleSelected=(a,r)=>{const o=e.getIsSelected();n.setRowSelection(u=>{var f;if(a=typeof a<"u"?a:!o,e.getCanSelect()&&o===a)return u;const m={...u};return fm(m,e.id,a,(f=r==null?void 0:r.selectChildren)!=null?f:!0,n),m})},e.getIsSelected=()=>{const{rowSelection:a}=n.getState();return eg(e,a)},e.getIsSomeSelected=()=>{const{rowSelection:a}=n.getState();return hm(e,a)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:a}=n.getState();return hm(e,a)==="all"},e.getCanSelect=()=>{var a;return typeof n.options.enableRowSelection=="function"?n.options.enableRowSelection(e):(a=n.options.enableRowSelection)!=null?a:!0},e.getCanSelectSubRows=()=>{var a;return typeof n.options.enableSubRowSelection=="function"?n.options.enableSubRowSelection(e):(a=n.options.enableSubRowSelection)!=null?a:!0},e.getCanMultiSelect=()=>{var a;return typeof n.options.enableMultiRowSelection=="function"?n.options.enableMultiRowSelection(e):(a=n.options.enableMultiRowSelection)!=null?a:!0},e.getToggleSelectedHandler=()=>{const a=e.getCanSelect();return r=>{var o;a&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},fm=(e,n,a,r,o)=>{var u;const f=o.getRow(n,!0);a?(f.getCanMultiSelect()||Object.keys(e).forEach(m=>delete e[m]),f.getCanSelect()&&(e[n]=!0)):delete e[n],r&&(u=f.subRows)!=null&&u.length&&f.getCanSelectSubRows()&&f.subRows.forEach(m=>fm(e,m.id,a,r,o))};function Ph(e,n){const a=e.getState().rowSelection,r=[],o={},u=function(f,m){return f.map(p=>{var g;const y=eg(p,a);if(y&&(r.push(p),o[p.id]=p),(g=p.subRows)!=null&&g.length&&(p={...p,subRows:u(p.subRows)}),y)return p}).filter(Boolean)};return{rows:u(n.rows),flatRows:r,rowsById:o}}function eg(e,n){var a;return(a=n[e.id])!=null?a:!1}function hm(e,n,a){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,u=!1;return e.subRows.forEach(f=>{if(!(u&&!o)&&(f.getCanSelect()&&(eg(f,n)?u=!0:o=!1),f.subRows&&f.subRows.length)){const m=hm(f,n);m==="all"?u=!0:(m==="some"&&(u=!0),o=!1)}}),o?"all":u?"some":!1}const mm=/([0-9]+)/gm,z4=(e,n,a)=>ix(Zi(e.getValue(a)).toLowerCase(),Zi(n.getValue(a)).toLowerCase()),L4=(e,n,a)=>ix(Zi(e.getValue(a)),Zi(n.getValue(a))),U4=(e,n,a)=>tg(Zi(e.getValue(a)).toLowerCase(),Zi(n.getValue(a)).toLowerCase()),H4=(e,n,a)=>tg(Zi(e.getValue(a)),Zi(n.getValue(a))),F4=(e,n,a)=>{const r=e.getValue(a),o=n.getValue(a);return r>o?1:r<o?-1:0},P4=(e,n,a)=>tg(e.getValue(a),n.getValue(a));function tg(e,n){return e===n?0:e>n?1:-1}function Zi(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function ix(e,n){const a=e.split(mm).filter(Boolean),r=n.split(mm).filter(Boolean);for(;a.length&&r.length;){const o=a.shift(),u=r.shift(),f=parseInt(o,10),m=parseInt(u,10),p=[f,m].sort();if(isNaN(p[0])){if(o>u)return 1;if(u>o)return-1;continue}if(isNaN(p[1]))return isNaN(f)?-1:1;if(f>m)return 1;if(m>f)return-1}return a.length-r.length}const oo={alphanumeric:z4,alphanumericCaseSensitive:L4,text:U4,textCaseSensitive:H4,datetime:F4,basic:P4},V4={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Mn("sorting",e),isMultiSortEvent:n=>n.shiftKey}),createColumn:(e,n)=>{e.getAutoSortingFn=()=>{const a=n.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of a){const u=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(u)==="[object Date]")return oo.datetime;if(typeof u=="string"&&(r=!0,u.split(mm).length>1))return oo.alphanumeric}return r?oo.text:oo.basic},e.getAutoSortDir=()=>{const a=n.getFilteredRowModel().flatRows[0];return typeof(a==null?void 0:a.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var a,r;if(!e)throw new Error;return Zc(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(a=(r=n.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?a:oo[e.columnDef.sortingFn]},e.toggleSorting=(a,r)=>{const o=e.getNextSortingOrder(),u=typeof a<"u"&&a!==null;n.setSorting(f=>{const m=f==null?void 0:f.find(x=>x.id===e.id),p=f==null?void 0:f.findIndex(x=>x.id===e.id);let g=[],y,v=u?a:o==="desc";if(f!=null&&f.length&&e.getCanMultiSort()&&r?m?y="toggle":y="add":f!=null&&f.length&&p!==f.length-1?y="replace":m?y="toggle":y="replace",y==="toggle"&&(u||o||(y="remove")),y==="add"){var b;g=[...f,{id:e.id,desc:v}],g.splice(0,g.length-((b=n.options.maxMultiSortColCount)!=null?b:Number.MAX_SAFE_INTEGER))}else y==="toggle"?g=f.map(x=>x.id===e.id?{...x,desc:v}:x):y==="remove"?g=f.filter(x=>x.id!==e.id):g=[{id:e.id,desc:v}];return g})},e.getFirstSortDir=()=>{var a,r;return((a=(r=e.columnDef.sortDescFirst)!=null?r:n.options.sortDescFirst)!=null?a:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=a=>{var r,o;const u=e.getFirstSortDir(),f=e.getIsSorted();return f?f!==u&&((r=n.options.enableSortingRemoval)==null||r)&&(!(a&&(o=n.options.enableMultiRemove)!=null)||o)?!1:f==="desc"?"asc":"desc":u},e.getCanSort=()=>{var a,r;return((a=e.columnDef.enableSorting)!=null?a:!0)&&((r=n.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var a,r;return(a=(r=e.columnDef.enableMultiSort)!=null?r:n.options.enableMultiSort)!=null?a:!!e.accessorFn},e.getIsSorted=()=>{var a;const r=(a=n.getState().sorting)==null?void 0:a.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var a,r;return(a=(r=n.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?a:-1},e.clearSorting=()=>{n.setSorting(a=>a!=null&&a.length?a.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const a=e.getCanSort();return r=>{a&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?n.options.isMultiSortEvent==null?void 0:n.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=n=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(n),e.resetSorting=n=>{var a,r;e.setSorting(n?[]:(a=(r=e.initialState)==null?void 0:r.sorting)!=null?a:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},I4=[d4,T4,E4,j4,f4,h4,k4,M4,V4,A4,D4,O4,_4,B4,R4];function q4(e){var n,a;const r=[...I4,...(n=e._features)!=null?n:[]];let o={_features:r};const u=o._features.reduce((b,x)=>Object.assign(b,x.getDefaultOptions==null?void 0:x.getDefaultOptions(o)),{}),f=b=>o.options.mergeOptions?o.options.mergeOptions(u,b):{...u,...b};let p={...{},...(a=e.initialState)!=null?a:{}};o._features.forEach(b=>{var x;p=(x=b.getInitialState==null?void 0:b.getInitialState(p))!=null?x:p});const g=[];let y=!1;const v={_features:r,options:{...u,...e},initialState:p,_queue:b=>{g.push(b),y||(y=!0,Promise.resolve().then(()=>{for(;g.length;)g.shift()();y=!1}).catch(x=>setTimeout(()=>{throw x})))},reset:()=>{o.setState(o.initialState)},setOptions:b=>{const x=Qi(b,o.options);o.options=f(x)},getState:()=>o.options.state,setState:b=>{o.options.onStateChange==null||o.options.onStateChange(b)},_getRowId:(b,x,S)=>{var E;return(E=o.options.getRowId==null?void 0:o.options.getRowId(b,x,S))!=null?E:`${S?[S.id,x].join("."):x}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(b,x)=>{let S=(x?o.getPrePaginationRowModel():o.getRowModel()).rowsById[b];if(!S&&(S=o.getCoreRowModel().rowsById[b],!S))throw new Error;return S},_getDefaultColumnDef:Ne(()=>[o.options.defaultColumn],b=>{var x;return b=(x=b)!=null?x:{},{header:S=>{const E=S.header.column.columnDef;return E.accessorKey?E.accessorKey:E.accessorFn?E.id:null},cell:S=>{var E,C;return(E=(C=S.renderValue())==null||C.toString==null?void 0:C.toString())!=null?E:null},...o._features.reduce((S,E)=>Object.assign(S,E.getDefaultColumnDef==null?void 0:E.getDefaultColumnDef()),{}),...b}},Te(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Ne(()=>[o._getColumnDefs()],b=>{const x=function(S,E,C){return C===void 0&&(C=0),S.map(k=>{const z=c4(o,k,C,E),_=k;return z.columns=_.columns?x(_.columns,z,C+1):[],z})};return x(b)},Te(e,"debugColumns")),getAllFlatColumns:Ne(()=>[o.getAllColumns()],b=>b.flatMap(x=>x.getFlatColumns()),Te(e,"debugColumns")),_getAllFlatColumnsById:Ne(()=>[o.getAllFlatColumns()],b=>b.reduce((x,S)=>(x[S.id]=S,x),{}),Te(e,"debugColumns")),getAllLeafColumns:Ne(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(b,x)=>{let S=b.flatMap(E=>E.getLeafColumns());return x(S)},Te(e,"debugColumns")),getColumn:b=>o._getAllFlatColumnsById()[b]};Object.assign(o,v);for(let b=0;b<o._features.length;b++){const x=o._features[b];x==null||x.createTable==null||x.createTable(o)}return o}function rx(){return e=>Ne(()=>[e.options.data],n=>{const a={rows:[],flatRows:[],rowsById:{}},r=function(o,u,f){u===void 0&&(u=0);const m=[];for(let g=0;g<o.length;g++){const y=Jm(e,e._getRowId(o[g],g,f),o[g],g,u,void 0,f==null?void 0:f.id);if(a.flatRows.push(y),a.rowsById[y.id]=y,m.push(y),e.options.getSubRows){var p;y.originalSubRows=e.options.getSubRows(o[g],g),(p=y.originalSubRows)!=null&&p.length&&(y.subRows=r(y.originalSubRows,u+1,y))}}return m};return a.rows=r(n),a},Te(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Q4(e){const n=[],a=r=>{var o;n.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(a)};return e.rows.forEach(a),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}function G4(e,n,a){return a.options.filterFromLeafRows?$4(e,n,a):Y4(e,n,a)}function $4(e,n,a){var r;const o=[],u={},f=(r=a.options.maxLeafRowFilterDepth)!=null?r:100,m=function(p,g){g===void 0&&(g=0);const y=[];for(let b=0;b<p.length;b++){var v;let x=p[b];const S=Jm(a,x.id,x.original,x.index,x.depth,void 0,x.parentId);if(S.columnFilters=x.columnFilters,(v=x.subRows)!=null&&v.length&&g<f){if(S.subRows=m(x.subRows,g+1),x=S,n(x)&&!S.subRows.length){y.push(x),u[x.id]=x,o.push(x);continue}if(n(x)||S.subRows.length){y.push(x),u[x.id]=x,o.push(x);continue}}else x=S,n(x)&&(y.push(x),u[x.id]=x,o.push(x))}return y};return{rows:m(e),flatRows:o,rowsById:u}}function Y4(e,n,a){var r;const o=[],u={},f=(r=a.options.maxLeafRowFilterDepth)!=null?r:100,m=function(p,g){g===void 0&&(g=0);const y=[];for(let b=0;b<p.length;b++){let x=p[b];if(n(x)){var v;if((v=x.subRows)!=null&&v.length&&g<f){const E=Jm(a,x.id,x.original,x.index,x.depth,void 0,x.parentId);E.subRows=m(x.subRows,g+1),x=E}y.push(x),o.push(x),u[x.id]=x}}return y};return{rows:m(e),flatRows:o,rowsById:u}}function sx(){return e=>Ne(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(n,a,r)=>{if(!n.rows.length||!(a!=null&&a.length)&&!r){for(let b=0;b<n.flatRows.length;b++)n.flatRows[b].columnFilters={},n.flatRows[b].columnFiltersMeta={};return n}const o=[],u=[];(a??[]).forEach(b=>{var x;const S=e.getColumn(b.id);if(!S)return;const E=S.getFilterFn();E&&o.push({id:b.id,filterFn:E,resolvedValue:(x=E.resolveFilterValue==null?void 0:E.resolveFilterValue(b.value))!=null?x:b.value})});const f=(a??[]).map(b=>b.id),m=e.getGlobalFilterFn(),p=e.getAllLeafColumns().filter(b=>b.getCanGlobalFilter());r&&m&&p.length&&(f.push("__global__"),p.forEach(b=>{var x;u.push({id:b.id,filterFn:m,resolvedValue:(x=m.resolveFilterValue==null?void 0:m.resolveFilterValue(r))!=null?x:r})}));let g,y;for(let b=0;b<n.flatRows.length;b++){const x=n.flatRows[b];if(x.columnFilters={},o.length)for(let S=0;S<o.length;S++){g=o[S];const E=g.id;x.columnFilters[E]=g.filterFn(x,E,g.resolvedValue,C=>{x.columnFiltersMeta[E]=C})}if(u.length){for(let S=0;S<u.length;S++){y=u[S];const E=y.id;if(y.filterFn(x,E,y.resolvedValue,C=>{x.columnFiltersMeta[E]=C})){x.columnFilters.__global__=!0;break}}x.columnFilters.__global__!==!0&&(x.columnFilters.__global__=!1)}}const v=b=>{for(let x=0;x<f.length;x++)if(b.columnFilters[f[x]]===!1)return!1;return!0};return G4(n.rows,v,e)},Te(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function lx(e){return n=>Ne(()=>[n.getState().pagination,n.getPrePaginationRowModel(),n.options.paginateExpandedRows?void 0:n.getState().expanded],(a,r)=>{if(!r.rows.length)return r;const{pageSize:o,pageIndex:u}=a;let{rows:f,flatRows:m,rowsById:p}=r;const g=o*u,y=g+o;f=f.slice(g,y);let v;n.options.paginateExpandedRows?v={rows:f,flatRows:m,rowsById:p}:v=Q4({rows:f,flatRows:m,rowsById:p}),v.flatRows=[];const b=x=>{v.flatRows.push(x),x.subRows.length&&x.subRows.forEach(b)};return v.rows.forEach(b),v},Te(n.options,"debugTable"))}function ox(){return e=>Ne(()=>[e.getState().sorting,e.getPreSortedRowModel()],(n,a)=>{if(!a.rows.length||!(n!=null&&n.length))return a;const r=e.getState().sorting,o=[],u=r.filter(p=>{var g;return(g=e.getColumn(p.id))==null?void 0:g.getCanSort()}),f={};u.forEach(p=>{const g=e.getColumn(p.id);g&&(f[p.id]={sortUndefined:g.columnDef.sortUndefined,invertSorting:g.columnDef.invertSorting,sortingFn:g.getSortingFn()})});const m=p=>{const g=p.map(y=>({...y}));return g.sort((y,v)=>{for(let x=0;x<u.length;x+=1){var b;const S=u[x],E=f[S.id],C=E.sortUndefined,k=(b=S==null?void 0:S.desc)!=null?b:!1;let z=0;if(C){const _=y.getValue(S.id),Z=v.getValue(S.id),R=_===void 0,W=Z===void 0;if(R||W){if(C==="first")return R?-1:1;if(C==="last")return R?1:-1;z=R&&W?0:R?C:-C}}if(z===0&&(z=E.sortingFn(y,v,S.id)),z!==0)return k&&(z*=-1),E.invertSorting&&(z*=-1),z}return y.index-v.index}),g.forEach(y=>{var v;o.push(y),(v=y.subRows)!=null&&v.length&&(y.subRows=m(y.subRows))}),g};return{rows:m(a.rows),flatRows:o,rowsById:a.rowsById}},Te(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
* react-table
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Ac(e,n){return e?X4(e)?j.createElement(e,n):e:null}function X4(e){return K4(e)||typeof e=="function"||Z4(e)}function K4(e){return typeof e=="function"&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}function Z4(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function ux(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[a]=j.useState(()=>({current:q4(n)})),[r,o]=j.useState(()=>a.current.initialState);return a.current.setOptions(u=>({...u,...e,state:{...r,...e.state},onStateChange:f=>{o(f),e.onStateChange==null||e.onStateChange(f)}})),a.current}const cx=({data:e})=>{const n=dn(),[a,r]=j.useState(""),[o,u]=j.useState([]),[f,m]=j.useState(10),p=j.useMemo(()=>[{header:"Nama Pasien",accessorKey:"name"},{header:"Nomor HP",accessorKey:"phone"},{header:"Jumlah Ajuan",accessorKey:"submissionCount",cell:({getValue:v})=>d.jsxs("span",{className:"text-blue-600 font-semibold",children:[v()," kali"]})}],[n]),g=ux({data:e,columns:p,state:{globalFilter:a,sorting:o},onGlobalFilterChange:r,onSortingChange:u,getCoreRowModel:rx(),getFilteredRowModel:sx(),getSortedRowModel:ox(),getPaginationRowModel:lx(),initialState:{pagination:{pageSize:f}}}),y=v=>{const b=Number(v.target.value);m(b),g.setPageSize(b)};return d.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[d.jsxs("div",{className:"mb-4 flex flex-col md:flex-row justify-between items-center gap-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("label",{htmlFor:"pageSize",className:"text-sm text-gray-700 whitespace-nowrap",children:"Tampilkan"}),d.jsx("select",{id:"pageSize",value:f,onChange:y,className:"px-3 py-2 border border-gray-200 rounded-lg shadow-sm text-sm",children:[10,25,50,100].map(v=>d.jsxs("option",{value:v,children:[v," data"]},v))})]}),d.jsxs("div",{className:"relative w-full max-w-sm",children:[d.jsx(qc,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),d.jsx("input",{type:"text",value:a??"",onChange:v=>r(v.target.value),placeholder:"Cari data...",className:"pl-10 pr-4 py-2 border border-gray-200 rounded-lg w-full shadow-sm"})]})]}),d.jsxs("table",{className:"w-full text-left",children:[d.jsx("thead",{className:"border-b border-gray-200 text-black font-semibold",children:g.getHeaderGroups().map(v=>d.jsx("tr",{children:v.headers.map(b=>d.jsx("th",{className:"py-4 px-6 text-center cursor-pointer select-none",onClick:b.column.getToggleSortingHandler(),children:d.jsxs("div",{className:"flex items-center justify-center gap-1",children:[Ac(b.column.columnDef.header,b.getContext()),{asc:d.jsx(Gb,{size:14}),desc:d.jsx(Qb,{size:14})}[b.column.getIsSorted()]??null]})},b.id))},v.id))}),d.jsx("tbody",{className:"text-gray-800",children:g.getRowModel().rows.map((v,b)=>d.jsx("tr",{className:b%2===0?"bg-white":"bg-gray-50",children:v.getVisibleCells().map(x=>d.jsx("td",{className:"py-4 px-6 text-center",children:Ac(x.column.columnDef.cell,x.getContext())},x.id))},v.id))})]}),d.jsxs("div",{className:"mt-6 flex flex-col md:flex-row items-center justify-between gap-4",children:[d.jsxs("div",{className:"text-sm text-gray-600",children:["Halaman ",g.getState().pagination.pageIndex+1," dari"," ",g.getPageCount(),"   |   Total:"," ",g.getFilteredRowModel().rows.length," data"]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("button",{onClick:()=>g.previousPage(),disabled:!g.getCanPreviousPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:[d.jsx(Yb,{}),"Sebelumnya"]}),d.jsxs("button",{onClick:()=>g.nextPage(),disabled:!g.getCanNextPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:["Selanjutnya",d.jsx(Xb,{})]})]})]})]})};cx.propTypes={data:Be.array.isRequired};const J4=()=>d.jsxs("div",{className:"py-10 w-full",children:[d.jsx("h1",{className:"text-3xl font-bold text-black text-center mb-6",children:"Daftar Pasien"}),d.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[d.jsxs("div",{className:"flex justify-between items-center mb-6",children:[d.jsx("div",{className:"w-36 h-10 bg-gray-200 rounded animate-pulse"}),d.jsx("div",{className:"w-72 h-10 bg-gray-200 rounded animate-pulse"})]}),d.jsxs("div",{className:"grid grid-cols-3 font-semibold text-black py-3 border-b border-gray-300",children:[d.jsx("div",{className:"h-6 w-32"}),d.jsx("div",{className:"h-6 w-40"}),d.jsx("div",{className:"h-6 w-28"})]}),[...Array(5)].map((e,n)=>d.jsxs("div",{className:"grid grid-cols-3 gap-4 py-4 border-b border-gray-100 animate-pulse",children:[d.jsx("div",{className:"h-6 bg-gray-200 rounded w-32"}),d.jsx("div",{className:"h-6 bg-gray-200 rounded w-40"}),d.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]},n)),d.jsxs("div",{className:"flex justify-between items-center mt-6",children:[d.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded animate-pulse"}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"}),d.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"})]})]})]})]}),W4=()=>{const[e,n]=j.useState([]),[a,r]=j.useState(!0),[o,u]=j.useState(null);return j.useEffect(()=>{(async()=>{try{r(!0);const m=await Ki.getPatients();n(m.data.data||[]),r(!1)}catch(m){console.error("Error fetching patients:",m),u("Failed to fetch patients data"),r(!1)}})()},[]),a?d.jsx("div",{className:"flex px-6 justify-center",children:d.jsx(J4,{})}):o?d.jsxs("div",{className:"py-10 px-6",children:[d.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Daftar Pasien"}),d.jsx("div",{className:"py-10 flex justify-center",children:d.jsx("p",{className:"text-lg text-red-500",children:o})})]}):d.jsxs("div",{className:"py-10 px-6",children:[d.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Daftar Pasien"}),d.jsx("div",{className:"flex justify-center",children:e.length===0?d.jsxs("div",{className:"w-full flex flex-col items-center py-10",children:[d.jsx("img",{src:"/empty-state.svg",alt:"Empty",className:"w-40 h-40 mb-4 opacity-70",style:{objectFit:"contain"},onError:f=>f.target.style.display="none"}),d.jsx("p",{className:"text-lg text-gray-500",children:"Belum ada pasien yang terdaftar."})]}):d.jsx(cx,{data:e})})]})},e3=()=>d.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-4 animate-pulse",children:[d.jsx("div",{className:"w-full h-40 bg-gray-300 rounded-lg"}),d.jsx("div",{className:"h-4 bg-gray-300 rounded mt-4 w-3/4"}),d.jsx("div",{className:"h-3 bg-gray-200 rounded mt-2 w-1/2"}),d.jsx("div",{className:"h-3 bg-red-200 rounded mt-2 w-2/3"}),d.jsx("div",{className:"h-10 bg-gray-300 rounded-full mt-4"})]}),t3=()=>{const[e,n]=j.useState(1),[a,r]=j.useState([]),[o,u]=j.useState(!0),[f,m]=j.useState(null),[p,g]=j.useState(""),y=8,v=dn();j.useEffect(()=>{(async()=>{try{u(!0);const W=await Ki.getPendingSubmissionsList();r(W.data.data||[]),u(!1)}catch(W){console.error("Error fetching submissions:",W),m("Failed to fetch submissions"),u(!1)}})()},[]);const b=j.useMemo(()=>p.trim()?a.filter(R=>{const W=p.toLowerCase();return R.patientName&&R.patientName.toLowerCase().includes(W)||typeof R.diagnosisAi=="string"&&R.diagnosisAi.toLowerCase().includes(W)||R.submittedAt&&R.submittedAt.toLowerCase().includes(W)}):a,[a,p]),x=e*y,S=x-y,E=b.slice(S,x),C=Math.ceil(b.length/y),k=R=>{n(R)},z=R=>{R.preventDefault(),n(1)},_=R=>{g(R.target.value),n(1)},Z=()=>{const R=[];if(C<=5)for(let ce=1;ce<=C;ce++)R.push(d.jsx("button",{onClick:()=>k(ce),className:`px-4 py-2 rounded-lg cursor-pointer ${e===ce?"bg-[#12476B] text-white":"bg-gray-200 text-black"}`,children:ce},ce));else{R.push(d.jsx("button",{onClick:()=>k(1),className:`px-4 py-2 rounded-lg cursor-pointer ${e===1?"bg-[#12476B] text-white":"bg-gray-200 text-black"}`,children:"1"},1)),e>3&&R.push(d.jsx("span",{className:"px-2",children:"..."},"start-ellipsis"));const ce=Math.max(2,e-1),re=Math.min(C-1,e+1);for(let Q=ce;Q<=re;Q++)R.push(d.jsx("button",{onClick:()=>k(Q),className:`px-4 py-2 rounded-lg cursor-pointer ${e===Q?"bg-[#12476B] text-white":"bg-gray-200 text-black"}`,children:Q},Q));e<C-2&&R.push(d.jsx("span",{className:"px-2",children:"..."},"end-ellipsis")),R.push(d.jsx("button",{onClick:()=>k(C),className:`px-4 py-2 rounded-lg cursor-pointer ${e===C?"bg-[#12476B] text-white":"bg-gray-200 text-black"}`,children:C},C))}return R};return d.jsxs("div",{className:"container mx-auto min-h-screen py-10 px-4",children:[d.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Daftar Pengajuan Umum"}),d.jsx("div",{className:"max-w-xl mx-auto mt-6 mb-8",children:d.jsxs("form",{onSubmit:z,className:"relative",children:[d.jsx("input",{type:"text",placeholder:"Cari di sini...",value:p,onChange:_,className:"w-full py-3 px-4 pr-10 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#12476B] focus:border-transparent"}),d.jsx("button",{type:"submit",className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-[#12476B]",children:d.jsx(qc,{})})]})}),o?d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 my-8",children:[...Array(8)].map((R,W)=>d.jsx(e3,{},W))}):f?d.jsx("div",{className:"flex justify-center items-center h-64",children:d.jsx("p",{className:"text-lg text-red-500",children:f})}):d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 my-8",children:E.length>0?E.map(R=>d.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-4",children:[d.jsx("img",{src:R.imageUrl,alt:"Skin Condition",className:"w-full h-40 object-cover rounded-lg"}),d.jsx("h2",{className:"font-semibold mt-3",children:R.patientName}),d.jsx("p",{className:"text-sm text-gray-600",children:R.submittedAt}),d.jsx("p",{className:"text-sm font-semibold text-red-600 mt-2",children:R.diagnosisAi}),d.jsx("button",{className:"w-full bg-[#12476B] text-white py-2 mt-3 rounded-full cursor-pointer",onClick:()=>v(`/dokter/riwayat-verifikasi/informasi-penyakit/${R.id}`),children:"Detail Pengajuan"})]},R.id)):d.jsx("div",{className:"col-span-4 text-center py-10",children:d.jsx("p",{children:"No submissions found"})})}),!o&&!f&&C>0&&d.jsxs("div",{className:"flex justify-center mt-4 space-x-2",children:[d.jsxs("button",{onClick:()=>k(e-1),disabled:e===1,className:`px-4 py-2 rounded-lg cursor-pointer flex items-center ${e===1?"bg-gray-300 text-gray-500":"bg-gray-200 text-black"}`,children:[d.jsx(db,{className:"mr-2"}),"Sebelumnya"]}),Z(),d.jsxs("button",{onClick:()=>k(e+1),disabled:e===C,className:`px-4 py-2 rounded-lg cursor-pointer flex items-center ${e===C?"bg-gray-300 text-gray-500":"bg-gray-200 text-black"}`,children:["Selanjutnya",d.jsx(fb,{className:"ml-2"})]})]})]})},n3=()=>{var y;const{user:e}=Wi(),[n,a]=j.useState({totalPatients:0,pending:0,verified:0}),[r,o]=j.useState(!0),[u,f]=j.useState(null);j.useEffect(()=>{(async()=>{try{o(!0);const b=await Ki.getStats();a(b.data.data),f(null)}catch(b){console.error("Failed to fetch stats:",b),f("Failed to load statistics. Please try again later.")}finally{o(!1)}})()},[]);const m=new Date,p={weekday:"long",year:"numeric",month:"long",day:"numeric"},g=m.toLocaleDateString("id-ID",p);return d.jsxs("div",{className:"p-6",children:[d.jsxs("h2",{className:"text-[28px]",children:["Hi, ",(y=e==null?void 0:e.data)==null?void 0:y.name]}),d.jsx("h3",{className:"text-[16px] text-[#646464]",children:g}),r?d.jsx("div",{className:"grid grid-cols-3 gap-4 mt-4",children:[1,2,3].map(v=>d.jsxs("div",{className:"space-y-2 p-5 rounded-lg shadow-xl bg-white border border-[#f7f7f7] animate-pulse",children:[d.jsx("div",{className:"h-4 bg-gray-200 rounded w-24"}),d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx("div",{className:"w-12 h-12 rounded-full bg-gray-200"}),d.jsx("div",{className:"h-6 bg-gray-200 rounded w-12"})]})]},v))}):u?d.jsx("div",{className:"mt-4 p-3 bg-red-100 text-red-700 rounded-md",children:u}):d.jsxs("div",{className:"space-y-3 md:grid grid-cols-3 gap-4 mt-4",children:[d.jsx(fc,{title:"Pasien",count:n.totalPatients||"-",icon:d.jsx(gE,{})}),d.jsx(fc,{title:"Menunggu Verifikasi",count:n.pending||"-",icon:d.jsx(oE,{})}),d.jsx(fc,{title:"Terverifikasi",count:n.verified||"-",icon:d.jsx(lE,{})})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4 mt-6",children:[d.jsx("div",{className:"lg:col-span-7",children:d.jsx(a3,{})}),d.jsx("div",{className:"lg:col-span-5",children:d.jsx(i3,{})})]})]})},fc=({title:e,count:n,icon:a})=>d.jsxs("div",{className:"space-y-2 p-5 rounded-lg shadow-xl bg-white border border-[#f7f7f7]",children:[d.jsx("p",{className:"text-[16px] text-gray-500",children:e}),d.jsxs("div",{className:"flex items-center gap-4 ",children:[d.jsx("div",{className:"text-2xl border border-[#E3E3E3] rounded-full p-3",children:a}),d.jsx("p",{className:"text-xl font-bold text-[20px]",children:n})]})]});fc.propTypes={title:Be.string.isRequired,count:Be.number.isRequired,icon:Be.element.isRequired};const a3=()=>{const[e,n]=j.useState([]),[a,r]=j.useState(!0),[o,u]=j.useState(null);j.useEffect(()=>{(async()=>{try{r(!0);const p=await Ki.getPendingSubmissions({limit:5});n(p.data.data||[]),u(null)}catch(p){console.error("Failed to fetch pending summaries:",p),u("Failed to load verification requests. Please try again later.")}finally{r(!1)}})()},[]);const f=m=>{const p=new Date(m);return new Intl.DateTimeFormat("id-ID",{day:"2-digit",month:"2-digit",year:"numeric"}).format(p)};return d.jsxs("div",{children:[d.jsxs("div",{className:"lg:hidden flex items-center justify-between mb-3",children:[d.jsx("h2",{className:"font-bold text-[24px]",children:"Ajuan Verifikasi"}),d.jsxs("a",{href:"/dokter/daftar-pengajuan",className:"text-[#12476B] flex items-center gap-2 text-[16px] font-bold",children:["Lihat semua ",d.jsx(Sc,{})]})]}),d.jsxs("div",{className:"p-5 rounded-lg shadow-xl bg-white border border-[#f7f7f7]",children:[d.jsxs("div",{className:"hidden lg:flex items-center justify-between mb-3",children:[d.jsx("h2",{className:"font-bold text-[30px]",children:"Ajuan Verifikasi"}),d.jsxs("a",{href:"/dokter/daftar-pengajuan",className:"text-[#12476B] flex items-center gap-2 text-[16px] font-bold",children:["Lihat semua ",d.jsx(Sc,{})]})]}),d.jsx("hr",{className:"hidden lg:block border border-[#E3E3E3] mb-3"}),a?d.jsx("div",{className:"animate-pulse space-y-4 ",children:[...Array(3)].map((m,p)=>d.jsx("div",{className:"h-12 bg-gray-200 rounded w-full"},p))}):o?d.jsx("div",{className:" p-3 bg-red-100 text-red-700 rounded-md",children:o}):e.length===0?d.jsx("div",{className:" text-center py-8 text-gray-500",children:"Tidak ada ajuan verifikasi saat ini"}):d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full min-w-[600px]",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{className:"text-[16px] py-4",children:"Tanggal"}),d.jsx("th",{className:"text-[16px] py-4",children:"Pasien"}),d.jsx("th",{className:"text-[16px] py-4",children:"Diagnosis AI"}),d.jsx("th",{className:"text-[16px] py-4",children:"Verifikasi"})]})}),d.jsx("tbody",{children:e.map(m=>d.jsxs("tr",{children:[d.jsx("td",{className:"text-[16px] py-2 text-center px-5",children:m.submittedAt?f(m.submittedAt):"-"}),d.jsx("td",{className:"text-[16px] py-2 text-center px-5",children:m.patientName||"-"}),d.jsx("td",{className:"text-[16px] py-2 text-center px-5 text-[#C11616]",children:m.diagnosisAi||"-"}),d.jsx("td",{className:"text-[16px] py-2 text-center px-5",children:d.jsxs("button",{className:"w-full bg-[#12476B] text-white px-4 py-2 rounded-xl flex items-center justify-center gap-2",onClick:()=>window.location.href=`/dokter/riwayat-verifikasi/informasi-penyakit/${m.id}`,children:[d.jsx(am,{})," Verifikasi"]})})]},m.id))})]})})]})]})},i3=()=>{const[e,n]=j.useState([]),[a,r]=j.useState(!0),[o,u]=j.useState(null);return j.useEffect(()=>{(async()=>{try{r(!0);const m=await Ki.getPatients({limit:5});n(m.data.data||[]),u(null)}catch(m){console.error("Failed to fetch patient data:",m),u("Failed to load patient data. Please try again later.")}finally{r(!1)}})()},[]),d.jsxs("div",{children:[d.jsxs("div",{className:"lg:hidden flex items-center justify-between mb-3",children:[d.jsx("h2",{className:"font-bold text-[24px]",children:"Pasien"}),d.jsxs("a",{href:"/dokter/daftar-pasien",className:"text-[#12476B] flex items-center gap-2 text-[16px] font-bold",children:["Lihat semua ",d.jsx(Sc,{})]})]}),d.jsxs("div",{className:"p-5 rounded-lg shadow-xl bg-white border border-[#f7f7f7]",children:[d.jsxs("div",{className:"hidden lg:flex items-center justify-between mb-3",children:[d.jsx("h2",{className:"font-bold text-[30px]",children:"Pasien"}),d.jsxs("a",{href:"/dokter/daftar-pasien",className:"text-[#12476B] flex items-center gap-2 text-[16px] font-bold",children:["Lihat semua ",d.jsx(Sc,{})]})]}),d.jsx("hr",{className:"hidden lg:block border border-[#E3E3E3] mb-3"}),a?d.jsx("div",{className:"animate-pulse space-y-4 ",children:[...Array(3)].map((f,m)=>d.jsx("div",{className:"h-12 bg-gray-200 rounded w-full"},m))}):o?d.jsx("div",{className:" p-3 bg-red-100 text-red-700 rounded-md",children:o}):e.length===0?d.jsx("div",{className:" text-center py-8 text-gray-500",children:"Tidak ada data pasien saat ini"}):d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full min-w-[600px]",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{className:"text-[16px] py-4",children:"Nama"}),d.jsx("th",{className:"text-[16px] py-4",children:"Nomor Telepon"}),d.jsx("th",{className:"text-[16px] py-4",children:"Jumlah Ajuan"})]})}),d.jsx("tbody",{className:"scroll-auto",children:e.map((f,m)=>d.jsxs("tr",{className:`text-[16px] py-2 px-3 text-center ${m%2===0?"bg-[#F6F4F4]":""}`,children:[d.jsx("td",{className:"py-2 px-3",children:f.name||"-"}),d.jsx("td",{className:"py-2 px-3",children:f.phone||"-"}),d.jsx("td",{className:"py-2 px-3",children:f.submissionCount||0})]},f.id||m))})]})})]})]})},Gs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAoCAYAAABjPNNTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOySURBVHgBzZk7TxtBFIXPbKKgEBI5bVLE6cCKFKdIT4Kow6NGOC1IPDo6TAGiC/wCQNQo0IIA0yEoAgUYqmwDNQIJ0eDJPbte22t28YxtmXzSyDM7a/v4zOPeHSvUiU4mE+joSOP+vg9KfZBLaXlNQOuEd4NSV1J3pebCcXIoFPbU6ekR6kDBEv3pU7cnzHGGS4LMceU9C1I21NmZa/omY5G6szOJZ8+W5Au60RyyuL1dVK57VetGI5Hi3riIy9bhXC1cmQY/xdXcYzc9KtKbd69e/W6ie3FkZb7OxHXGivSG13F2pZpEK1BqQZ2cTEZ2RV1sucCSmmihTuTNXCCtFki0ntBdXRPVlx+I1KnUdAvmYDxK/ZKR7A5dqmwUh/kvbHn3DpibA96/f9i3vQ3Mz8MSV7anL8H29DzUpdQS6mF0FPj6NbpvaAjI54GNDViQRHs7hz3LRmm4PYuV6kY9BA6OjQG9veWyvh7ut2Pc2wIrRYrADBrl+hq4vCyXiws0QAIvX2ZY8eak1Vzs7ARevwbevAG+f/ddCq6dnQE3N+V7OVfZT7EUzX7O0aBdC6VysiV980WmUhl5qT0f+/qA2Vk0hcFBX3Qtbm/f+guHW44yCOP8UBY6R2yHk+7TcbpY6fhjtLf3+SKV+mz0BgqkA/v7/pdxoZi4EcCVPjUFHByY/0Ct08HCScMGCiRcKNXX4tokcI+OmqJU0tHpdOPpFxfI1hawvIySwLU1YHMz+v6ODljw4Tnu7hKystEQXMEURrGETtW3N0aRaFBda/j/RSrlOjYPRE9F4KSLVmISbQIKhWNfpNZ7sMF0I64maluqhVK7TrGSgw3B/tjVFW4HGzTb/CHVjgWr3+ZHlpx88WIdNjBJIIzl5PwcyGT8CBSIYGQaGEBIYE+PXz88hBFMMGTNlAK2PFvsGueTjN3crAlzxp0d372oUBdkSQyJrNNd5pomFAoZEblSFsmk139CNKOejIgC6bhJ3JZzJJXPf2Q1/Ixj4yahMyMj5bwxjiB7Wl01n49aT4rIhYciUykmGn/w1FS4SEIRp3g0N4OnRqn+yuaDsChCeTCVw9MxU32OGR2729r6iwegrUXrRc+kKh4/sJLdnkknWgEF5vMTUV2xWZCXeLS1fZGq3UZfHzNxAj0tMEBWfVZeptFsOKW0buwQNfR5/vBnpQyjcXjGsyiPqwtNO46upELsD/CUwQ5XyoqpuABrkZUUz4+YZXz2/h4JP3VeFUtOhvRIynGtYY3jH7CVaxwUH/hYAAAAAElFTkSuQmCC",ng=({onClose:e,onDelete:n})=>d.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-black/30 z-50",children:d.jsxs("div",{className:"bg-white w-96 p-6 rounded-xl shadow-lg relative",children:[d.jsxs("div",{className:"flex justify-between items-center gap-2 border-b border-gray-200 pb-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("img",{src:Gs,alt:""}),d.jsx("h2",{className:"text-lg font-semibold text-gray-700",children:"Hapus Hasil Deteksi"})]}),d.jsx("button",{onClick:e,className:"text-gray-600 hover:text-red-500 cursor-pointer",children:"✖"})]}),d.jsx("div",{className:"my-2",children:d.jsx("p",{className:"text-sm font-normal",children:"Apakah kamu yakin ingin menghapus hasil deteksi?"})}),d.jsxs("div",{onClick:e,className:"w-full flex gap-x-1 mt-4",children:[d.jsx("button",{className:"w-1/2 px-4 py-2 border border-gray-400 rounded-lg text-gray-600 hover:bg-gray-100",children:"Kembali"}),d.jsx("button",{onClick:n,className:"w-1/2 px-3 py-1 bg-red-500 text-white rounded-lg hover:bg-red-600 cursor-pointer",children:d.jsxs("span",{className:"flex justify-center items-center gap-2",children:[d.jsx("img",{src:Gs,alt:""}),"Hapus"]})})]})]})});ng.propTypes={onClose:Be.func.isRequired,onDelete:Be.func};const Jc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAoCAYAAABjPNNTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAPGSURBVHgBvZk9TBNhGMf/7yEIIqYuDmDCsSgSEoqJuJJg4gjEREBjgNlEYdLEgTLoKgzOiMagDgqjAwKJEw5CooAs3iAMLjQaClHb1+e59vBoe72n16O/5Gh797zH/56P9+sUAmJO6cjJakSTGj2qAo3QiCogoung6/Q9rjUsGLAMhcUUsLR2Xa0gAApF0jqjO1mYYWDQEVQEljYwoZOY2xhQlrSRWGTzjDYrFKZIWCfCQCGWSGDSGlZxf1MBra/1XZ1CLIDn/LBSGsPk1cVCRgVFct7V1uBtaN7zVhFb61Pj3pc94PBSwi/QVxNlgIRMfOlXox7Xcim3QJeYvEKNfMZcICizQIbSauTCSz2SfT5HZMsrPXbkOVgA8uZjimRn1rn/ZML8DQGoq0wfbrYTCIqV2EO70z0dc19R6TCLRfU0AV0N9HCncwU6bOykxc5/B2YtSDFPVIPDHrN1OWfZxZli8aXHBO5f9BbmxdYuMET/YXtXZB4nbzaxNw9yktQOSVreOgc8vFy8QKahFnhzFaivFZlHamrSmmyRnIsU6kG/Vnzz260oCX64Rx0yWxLXnfm0/3RKGrEXg3gwm0tn0ocf3MvwqGc4PyCgQ3DjOx+AZ5v+dl31EEEF1GNXN+Vjm58xe7BZML1Yp2quq/K34x5BAs1Jo+nCUYj6GQuTXYz0fsqAaUQp5hLjUyHkopsG6UMrNBr71aHPEcNFI3IMIXPlLHA+5McOXeS9doQKFbVlSBdE0snCrz8yuy3Z0GjjDIuWn+HP3xAx9B54sOxvJxWZSmHVDjf1RUs0LJqFjNlDfGO/quRwSyr36w5EqEos2J6kuC9KGswKZpo8KklEzm9DROovVm2RVfuYlTR4vinPuULwVO3jD387dh7XjC1yheZsWuBNFvjkM0qC7zEkmrUCSYWn/Hkwn6S8HJc0ZG9yYWwXUZ0OPEu/9k5WNOQ0a6NPTfP3Q2scWqktKOGMiPOOp1vdJrUrsHxgQcsU2jlLFmKXyNH1fjWRI7LlhY6iAp8QAHshljX7CeLtjECLBDY5vw8taddu0tacMOzZcK6xKPcRFJVEr/t3zrp7bUDFtLBLOhLISbazXOTdwTi+h14tGIXChnbuJtlJ2ecLbljRKMSFZKIMsMD1G2ok3zXDqxF3ouTRdnK/qKMvCQqxl0BGtInaMqNjZDmGkOGU0qVuorqxw0/bHpL1uYA4KZxM7GMitO1oNy6xvHAvemOfxE1LxTkULdIN7x8pehNBmd1Gn5GsVWc8cyzSG4cVeuOw6hdWL/4B4RFA8y8V2YsAAAAASUVORK5CYII=",dx="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxISEhUSEhMSFRISFRUSEhUVFRAVEhcVFRUWFhUVFRUYHSggGBolGxUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDQ0OFQ8QFSsZFRkrLSsrKystKzcrLSs3NzcrLS0rLTcrKystLTcrNysrKysrLSsrKysrKysrKysrKystK//AABEIALcBEwMBIgACEQEDEQH/xAAaAAADAQEBAQAAAAAAAAAAAAACAwQBAAUG/8QAMBAAAgEDAwIFAwUAAgMAAAAAAAECAxEhEjFBUWETcYGRoQTB8CKx0eHxBTIUQlL/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQIDBP/EABsRAQEBAQEBAQEAAAAAAAAAAAABEQIhEjFB/9oADAMBAAIRAxEAPwD24RvkZFBuFsddzVH/AA8z2B0+x0Ycmp5t6jdPTcYFW9wt8haRkVcAFSW4SgglAOMSAWjNAegJU/YBKhc2UOg2MbGxXIAOKsZpQbjc6MAFRha/QLT52GuKfWwKXGbALULvodpGyg0dYBbh8AuDGWC0gJUGC49ShRFyp5ATudo/YbpClTx+zIqVU/Y5wsURic6YRPoM8PNimVMDQBOqB1rFSiBo7FTE7igJQKVAx0iLiaUbbg+a3KXAF0f5KYm8E4q0HAw0JI3RwHYoU424yMUTVkKMeuwRyido6DUjHEDIINnQXc26ClxXU2LCjHdnWsgBv0C0LfJyVw4rBAK+DrcBXsCmAE1k3Sw5I5yYXGeHydtwcpccBPYBUkmYkMt7mtk9MLS6mNPZjUjYooVoOcWUNGSguoE2izuwkFOOAoJWIEuHbJmkosY4lRNUexjfA+UAdAUrsc0EjUQwlRzY2UFca4dQbexUI8P8ucPUDgBtnYNMBrIUe5UFGWQhcRiQVsjae3kCHEDE+Q4IFyDU8BXSjYzV2M1djZYeAGceYmyRqqIjf12bfBNanNqxM1yEurddhNWTawyL8qJVE2DCZLRUlu7gqbu8/wBEa+V6YfqQ+K+99ux0a0n5FPhZ9hkXcmpVr7WHQqIM2GqNtjovqcpLgxNX4YZxqvg3QYnnYdGa5RUJtgFR8hzS/gFRuAtHNB6TZvoAm4NnYbNoFLoQIsco5G6MgSWewVkkwco14fUK6YQBw1QOAl5NUjLP3NXQ0hkWv6DbROkxsXZZAJvJuszVgG7AOLDTwBDqdYAkzNYMhaZK1C/qKit0Z49ONpq7z6no/wDIO9vRv0J407PDd7XJHfjyKqk8flxVKoLrN2V7vOfIZBX/AOqf51C+GSqfHAnX7PYZCN+3ToF4CWeoNjaWd5W6DqFLN7/vmzyI+npppuT2la3XyKISssXttfJUtNqRW6Vlu3i6IacnJ/ofNv1bPjA2p9SorbL3tySeNaTt18hVkejSqtXUuB8aq7Hlxbvtdc5VzalZJpq68/MmM3h6ylb1GENOpdFVNlc7DTm7GqRl+pGG3vn2EzlwFE2UShTQUXwZORiyRR2MBh8msIXJ2NTQTSF24RFMUzAVI0piKMw4MSpG6jTKi5kX1FRl3/g2LuAyLCuKbVjXPHcAoyGRYiXmZCdiKpEVKlkZOpY82vVdn2DfHLVXvJp33+BkWru+z2XYm+nnZat4vq7u/cbGunL9S3VlstsXuXHbFOj85Cp758jWoRVv1Kd+dmsbGa+UrkYMjDoxsFve2RUZtZ555Cp8bp89CIaofyvuFFWw29r2NjHrd+QMol1NSVkm8cPFwVDLyts7b82KnG12ueoiTyr2eOFd+qZY6TpHVjab7L9NsNg3/wDpPOB9SzXKerF9v6EuEpPUr43DerqMJc4b2RXTrfvk86Fd9Wl2yw4u6v6r9tyVzs16EayClUPKU2ne/XHTBf8AT1E8mWeucVQNkxWp+hyb98FczU+AdPIKOlJhHP5Ml2NjHlnKxAt4M+wU5eouMwpunscApeRpR5iNuIUunyGpenY0wbfFw4P2Jr/A2MvgBsX5mJ2/YFz3YLnjcLDVLINwYvOQXLf4IsLq1SCcrdXnNngf9bTusb2I6crLa/cjvx+G0pabLa4WnU8ryt++RU7Yz3GQnbi+ML7o01arfGdl5r17lNF4zv5qxDHa/Xf0Hwbtb/WGKtjLm3yOiv8AeCClUsrW8iiNW39kSrI7dBVebWWv7BU1+cGykv7YSFxbau+QalO6vdqzx09zHUzb1QtVrPrbe1/kY07w1z62MqVLXUW9LxsFXrO2edsCKtXNpRsmlplxc1FnpU6sk9MbW9mHTqbLj8uSKrb9TafblBqa3WG7kdMO+qSfNkk8c9kV/wDHSwSyeqCem1rXd+Xyyz6ayS+xK59XzFqm9up0ZfncQp5GRqZuRxsOb6i08mN3ZmsIapW/0xTfzkRGTGarIhWvodOmLuaqgGtHGa+xwPXhxqYCjJ3vcT16hRa3NsKJPIUX7ErlkbrAezvIVrOU0wp0prjjc6E1Z9RMlytgVIKY/Ii+oillLzKnLjqS/UxbViOnF9KpfUq2l7xyuluvmFU+rWpLOntm3l2IHG8s77Y6FypK2b49w7XD6VZcPFr32ZRGd/8AF1I6VCPTYo1Yx7cjWLi2CbV1lc3t9jsP7Hmuyd0/l/YppzkVmq6c7b3SClv1XDYpTTwzs23JqNrS9LEdXGzf6t7XtcpSVhHhWvd2ztnJpuU2FJyg7vMbWz+xA1Jrd44e3oPjC2zFt2dnd/2GpUro2d1nb3HKFnn4NhKG7UlLN29veL+wVGfN15PnuiLbVDqSUc2s/e3Yq+neF2PPnVvutslVCpfJmsdfi1TCi8CIt74GRk2RzpkTNVjtQLasGRp9znLyFX/o5sBqmCwQdYU5VH0OFqf5cwI8NvkJNErmE3c6OSiU7/YJS5J97BOp1CqHPPY6FQRKeDIVSKs1g6hUJGa7ZAY52yI+prN4NlO7Mkw3LiZK/wD246B+NZYNqLOCJp3eM9WR1l16VOrfz/OgS3zj33JKH1V1dc88hzrt3dr9Sn9U61f/ANvNrDHwa8rHm0at+Mrkd475/oFXyiuuPM1Ssr/ckp/Uvn4On9UrpWb62GRKfe2d7vq9+wqf1Ek859dgqk09sdCeEZSvZXs744KsUU5Plbee3mD9ROVrrHF917nnSqSV7XSvnp8FEJYCilOTWp5l3tn2wJpVLXbVvsFKpjnPYkdXOXfpgjc9USr3la97dNj0Ppqh5FBXex6NCVuhms9vUVS4akrklGoOlPOSONPlPnqDTxuAmD4hUO1HSqiJTuC5NeRA9z9Tks7iFMKM2A5HC/E7HFHzcanyM14I4z7jPEOjkqVVrASqepIpJ/fobF+5FUznyZewpS4BlICtVRrnfkijIKMnYiqpNMxdt+RGto2MmA2ULIC2DXK/5cCUuAsqWUrcex0az4fngX9TF8bg05pLEf1Xve+BHbfFs5JbWu8YwzqdZu+VhEVWeq+93ngWotrDx8l8P4vlXW2W7fqzjsHGa9OCGlBb5Gats2YXxdGovQl+ovqum0uwn/yZReVddU/5G06qeO/UeH4bRhf8sNeOO5ni2WPgCo35A1k5PyJm2tslEp9goxusmT6x1Jf2VUp8YFRiNpyXTIZvWqExniCI1UZKZGFPimeJ2JXUOjNgUTqGqXRiFUSOdR9gH6zdXcljUGOZAUpvr8mC7o0D5xP84DjMm12N146nZxUqoH4nuRqXdDNV1ciq/EYWvJJGfATqcK5BSpm6yRVkb4gFmo1VWkTKe1w/E4CqYT6P2MlU8vuTqb2/awWv5APDA2wtjdasDGRGtE12OUbfiNjI5JBdbFIJUrpgq3qNvjO4NIdN9jaa7ZCOjJbBfoU43y9zY3xd3tsC2dcLp6SeToyJY7jVImJp7ZikKVQ6UnyA6LOvkVrfUxVOpcQ3Nw4zEagVUZMD3MOMlYlcjXOwFMn7mamTqp7nKoMFOvyOJjhhr58CU2L8Q250cTXP8yMhURFqYamFUueQ3UJdZmrINXQa9Tdf4ySM/wDRkanBDVcJ2NlUt+YJFN9fIaqndNBVMZ8hKpf+yVz6BSqAOYeonU/M1yIqjVbbnsbrJ1LzO1cgP8TubGp3J7mJefoQUSkbGQiDf5YyYVZrsDKfUQpnOSBqnxrI7WmTqodq8gunKfQzXyJcgNYNVupc6M/Yn1ehjYNUOqcqhNGoc6oFKkC6hOqjMlVAe5hRqIjlKwPiA16Gs4h1eZwHi9zddzjjo5NUzVI44DZyM15MOIDU1YKE8mnAFCs79hkZ9Tjgo1fg7XY04lUaqYDcsZOOIC1cIW5M44DVM1TaOOA1yOcjjgrtRrwccCMVTkOMjjgN1dwG/I44AdQXiHHEBQqASkccUC5oGWTjgoZSF6zTiIYot5+5xxwH/9k=",fx=({item:e,handleInfo:n,handleDelete:a,handleSubmission:r})=>{const o=parseFloat(e.persentase);let u="text-green-600";o>=50&&(u="text-red-600");const f=e.status==="rejected"?"text-red-600":e.status==="pending"?"text-yellow-600":"text-green-600";return d.jsx("div",{className:"block lg:hidden w-full mx-auto bg-white rounded-3xl shadow-lg p-6 mb-5",children:d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{className:"font-bold",children:"Tanggal Pengajuan"}),d.jsx("span",{children:e.date})]}),d.jsxs("div",{className:"flex gap-x-2 justify-between",children:[d.jsx("span",{className:"font-bold",children:"Diagnosis AI"}),d.jsx("div",{className:`${u} text-right`,children:d.jsx("span",{className:"font-semibold",children:e.persentase})})]}),d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("span",{className:"font-bold",children:"Gambar"}),d.jsx("img",{src:e.imageUrl||dx,alt:"Deteksi",className:"w-24 h-24 rounded-lg shadow-md"})]}),d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{className:"font-bold",children:"Keluhan"}),d.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.keluhan})]}),d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{className:"font-bold",children:"Pengajuan"}),d.jsx("span",{className:`font-semibold ${e.pengajuan==="Sudah"?"text-green-600":"text-red-600"}`,children:e.pengajuan})]}),d.jsxs("div",{className:"flex justify-between",children:[d.jsx("span",{className:"font-bold",children:"Status"}),d.jsx("span",{className:`font-semibold ${f}`,children:e.status})]}),d.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[d.jsx("button",{className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Jc,alt:"Info",onClick:n})}),d.jsx("button",{className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Gs,alt:"Hapus",onClick:a})})]}),e.pengajuan==="Tidak"&&d.jsx("div",{className:"w-full flex justify-center",children:d.jsx("button",{onClick:r,className:"w-3/4 text-sm font-semibold border border-black py-2 mt-2 rounded-lg cursor-pointer",children:"Ajukan Verifikasi"})})]})})};fx.propTypes={item:Be.object.isRequired,handleInfo:Be.func.isRequired,handleDelete:Be.func.isRequired,handleSubmission:Be.func.isRequired};const hx=()=>d.jsx("div",{children:d.jsxs("div",{className:"w-full flex flex-row justify-center items-center gap-2",children:[d.jsx("div",{className:"w-4 h-4 rounded-full bg-sky-700 animate-bounce [animation-delay:.7s]"}),d.jsx("div",{className:"w-4 h-4 rounded-full bg-sky-700 animate-bounce [animation-delay:.3s]"}),d.jsx("div",{className:"w-4 h-4 rounded-full bg-sky-700 animate-bounce [animation-delay:.7s]"})]})});var Ws=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Pr=typeof window>"u"||"Deno"in globalThis;function Wn(){}function r3(e,n){return typeof e=="function"?e(n):e}function gm(e){return typeof e=="number"&&e>=0&&e!==1/0}function mx(e,n){return Math.max(e+(n||0)-Date.now(),0)}function ks(e,n){return typeof e=="function"?e(n):e}function ha(e,n){return typeof e=="function"?e(n):e}function Yv(e,n){const{type:a="all",exact:r,fetchStatus:o,predicate:u,queryKey:f,stale:m}=e;if(f){if(r){if(n.queryHash!==ag(f,n.options))return!1}else if(!vo(n.queryKey,f))return!1}if(a!=="all"){const p=n.isActive();if(a==="active"&&!p||a==="inactive"&&p)return!1}return!(typeof m=="boolean"&&n.isStale()!==m||o&&o!==n.state.fetchStatus||u&&!u(n))}function Xv(e,n){const{exact:a,status:r,predicate:o,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(a){if(Vr(n.options.mutationKey)!==Vr(u))return!1}else if(!vo(n.options.mutationKey,u))return!1}return!(r&&n.state.status!==r||o&&!o(n))}function ag(e,n){return((n==null?void 0:n.queryKeyHashFn)||Vr)(e)}function Vr(e){return JSON.stringify(e,(n,a)=>pm(a)?Object.keys(a).sort().reduce((r,o)=>(r[o]=a[o],r),{}):a)}function vo(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(a=>vo(e[a],n[a])):!1}function gx(e,n){if(e===n)return e;const a=Kv(e)&&Kv(n);if(a||pm(e)&&pm(n)){const r=a?e:Object.keys(e),o=r.length,u=a?n:Object.keys(n),f=u.length,m=a?[]:{};let p=0;for(let g=0;g<f;g++){const y=a?g:u[g];(!a&&r.includes(y)||a)&&e[y]===void 0&&n[y]===void 0?(m[y]=void 0,p++):(m[y]=gx(e[y],n[y]),m[y]===e[y]&&e[y]!==void 0&&p++)}return o===f&&p===o?e:m}return n}function Cc(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const a in e)if(e[a]!==n[a])return!1;return!0}function Kv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pm(e){if(!Zv(e))return!1;const n=e.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!Zv(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Zv(e){return Object.prototype.toString.call(e)==="[object Object]"}function s3(e){return new Promise(n=>{setTimeout(n,e)})}function ym(e,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,n):a.structuralSharing!==!1?gx(e,n):n}function l3(e,n,a=0){const r=[...e,n];return a&&r.length>a?r.slice(1):r}function o3(e,n,a=0){const r=[n,...e];return a&&r.length>a?r.slice(0,-1):r}var ig=Symbol();function px(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===ig?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var kr,Bi,Os,kw,u3=(kw=class extends Ws{constructor(){super();Ae(this,kr);Ae(this,Bi);Ae(this,Os);he(this,Os,n=>{if(!Pr&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){M(this,Bi)||this.setEventListener(M(this,Os))}onUnsubscribe(){var n;this.hasListeners()||((n=M(this,Bi))==null||n.call(this),he(this,Bi,void 0))}setEventListener(n){var a;he(this,Os,n),(a=M(this,Bi))==null||a.call(this),he(this,Bi,n(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(n){M(this,kr)!==n&&(he(this,kr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){var n;return typeof M(this,kr)=="boolean"?M(this,kr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},kr=new WeakMap,Bi=new WeakMap,Os=new WeakMap,kw),rg=new u3,_s,zi,Bs,Mw,c3=(Mw=class extends Ws{constructor(){super();Ae(this,_s,!0);Ae(this,zi);Ae(this,Bs);he(this,Bs,n=>{if(!Pr&&window.addEventListener){const a=()=>n(!0),r=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",r)}}})}onSubscribe(){M(this,zi)||this.setEventListener(M(this,Bs))}onUnsubscribe(){var n;this.hasListeners()||((n=M(this,zi))==null||n.call(this),he(this,zi,void 0))}setEventListener(n){var a;he(this,Bs,n),(a=M(this,zi))==null||a.call(this),he(this,zi,n(this.setOnline.bind(this)))}setOnline(n){M(this,_s)!==n&&(he(this,_s,n),this.listeners.forEach(r=>{r(n)}))}isOnline(){return M(this,_s)}},_s=new WeakMap,zi=new WeakMap,Bs=new WeakMap,Mw),Ec=new c3;function vm(){let e,n;const a=new Promise((o,u)=>{e=o,n=u});a.status="pending",a.catch(()=>{});function r(o){Object.assign(a,o),delete a.resolve,delete a.reject}return a.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},a.reject=o=>{r({status:"rejected",reason:o}),n(o)},a}function d3(e){return Math.min(1e3*2**e,3e4)}function yx(e){return(e??"online")==="online"?Ec.isOnline():!0}var vx=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Vh(e){return e instanceof vx}function wx(e){let n=!1,a=0,r=!1,o;const u=vm(),f=E=>{var C;r||(b(new vx(E)),(C=e.abort)==null||C.call(e))},m=()=>{n=!0},p=()=>{n=!1},g=()=>rg.isFocused()&&(e.networkMode==="always"||Ec.isOnline())&&e.canRun(),y=()=>yx(e.networkMode)&&e.canRun(),v=E=>{var C;r||(r=!0,(C=e.onSuccess)==null||C.call(e,E),o==null||o(),u.resolve(E))},b=E=>{var C;r||(r=!0,(C=e.onError)==null||C.call(e,E),o==null||o(),u.reject(E))},x=()=>new Promise(E=>{var C;o=k=>{(r||g())&&E(k)},(C=e.onPause)==null||C.call(e)}).then(()=>{var E;o=void 0,r||(E=e.onContinue)==null||E.call(e)}),S=()=>{if(r)return;let E;const C=a===0?e.initialPromise:void 0;try{E=C??e.fn()}catch(k){E=Promise.reject(k)}Promise.resolve(E).then(v).catch(k=>{var W;if(r)return;const z=e.retry??(Pr?0:3),_=e.retryDelay??d3,Z=typeof _=="function"?_(a,k):_,R=z===!0||typeof z=="number"&&a<z||typeof z=="function"&&z(a,k);if(n||!R){b(k);return}a++,(W=e.onFail)==null||W.call(e,a,k),s3(Z).then(()=>g()?void 0:x()).then(()=>{n?b(k):S()})})};return{promise:u,cancel:f,continue:()=>(o==null||o(),u),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?S():x().then(S),u)}}var f3=e=>setTimeout(e,0);function h3(){let e=[],n=0,a=m=>{m()},r=m=>{m()},o=f3;const u=m=>{n?e.push(m):o(()=>{a(m)})},f=()=>{const m=e;e=[],m.length&&o(()=>{r(()=>{m.forEach(p=>{a(p)})})})};return{batch:m=>{let p;n++;try{p=m()}finally{n--,n||f()}return p},batchCalls:m=>(...p)=>{u(()=>{m(...p)})},schedule:u,setNotifyFunction:m=>{a=m},setBatchNotifyFunction:m=>{r=m},setScheduler:m=>{o=m}}}var Ut=h3(),Mr,Dw,bx=(Dw=class{constructor(){Ae(this,Mr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gm(this.gcTime)&&he(this,Mr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pr?1/0:5*60*1e3))}clearGcTimeout(){M(this,Mr)&&(clearTimeout(M(this,Mr)),he(this,Mr,void 0))}},Mr=new WeakMap,Dw),zs,Ls,Zn,Dr,tn,bo,Or,ca,ti,Ow,m3=(Ow=class extends bx{constructor(n){super();Ae(this,ca);Ae(this,zs);Ae(this,Ls);Ae(this,Zn);Ae(this,Dr);Ae(this,tn);Ae(this,bo);Ae(this,Or);he(this,Or,!1),he(this,bo,n.defaultOptions),this.setOptions(n.options),this.observers=[],he(this,Dr,n.client),he(this,Zn,M(this,Dr).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,he(this,zs,g3(this.options)),this.state=n.state??M(this,zs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=M(this,tn))==null?void 0:n.promise}setOptions(n){this.options={...M(this,bo),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Zn).remove(this)}setData(n,a){const r=ym(this.state.data,n,this.options);return Ue(this,ca,ti).call(this,{data:r,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),r}setState(n,a){Ue(this,ca,ti).call(this,{type:"setState",state:n,setStateOptions:a})}cancel(n){var r,o;const a=(r=M(this,tn))==null?void 0:r.promise;return(o=M(this,tn))==null||o.cancel(n),a?a.then(Wn).catch(Wn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,zs))}isActive(){return this.observers.some(n=>ha(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ig||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!mx(this.state.dataUpdatedAt,n)}onFocus(){var a;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(a=M(this,tn))==null||a.continue()}onOnline(){var a;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(a=M(this,tn))==null||a.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),M(this,Zn).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(M(this,tn)&&(M(this,Or)?M(this,tn).cancel({revert:!0}):M(this,tn).cancelRetry()),this.scheduleGc()),M(this,Zn).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ue(this,ca,ti).call(this,{type:"invalidate"})}fetch(n,a){var p,g,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(M(this,tn))return M(this,tn).continueRetry(),M(this,tn).promise}if(n&&this.setOptions(n),!this.options.queryFn){const v=this.observers.find(b=>b.options.queryFn);v&&this.setOptions(v.options)}const r=new AbortController,o=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(he(this,Or,!0),r.signal)})},u=()=>{const v=px(this.options,a),b={client:M(this,Dr),queryKey:this.queryKey,meta:this.meta};return o(b),he(this,Or,!1),this.options.persister?this.options.persister(v,b,this):v(b)},f={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:M(this,Dr),state:this.state,fetchFn:u};o(f),(p=this.options.behavior)==null||p.onFetch(f,this),he(this,Ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=f.fetchOptions)==null?void 0:g.meta))&&Ue(this,ca,ti).call(this,{type:"fetch",meta:(y=f.fetchOptions)==null?void 0:y.meta});const m=v=>{var b,x,S,E;Vh(v)&&v.silent||Ue(this,ca,ti).call(this,{type:"error",error:v}),Vh(v)||((x=(b=M(this,Zn).config).onError)==null||x.call(b,v,this),(E=(S=M(this,Zn).config).onSettled)==null||E.call(S,this.state.data,v,this)),this.scheduleGc()};return he(this,tn,wx({initialPromise:a==null?void 0:a.initialPromise,fn:f.fetchFn,abort:r.abort.bind(r),onSuccess:v=>{var b,x,S,E;if(v===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(C){m(C);return}(x=(b=M(this,Zn).config).onSuccess)==null||x.call(b,v,this),(E=(S=M(this,Zn).config).onSettled)==null||E.call(S,v,this.state.error,this),this.scheduleGc()},onError:m,onFail:(v,b)=>{Ue(this,ca,ti).call(this,{type:"failed",failureCount:v,error:b})},onPause:()=>{Ue(this,ca,ti).call(this,{type:"pause"})},onContinue:()=>{Ue(this,ca,ti).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0})),M(this,tn).start()}},zs=new WeakMap,Ls=new WeakMap,Zn=new WeakMap,Dr=new WeakMap,tn=new WeakMap,bo=new WeakMap,Or=new WeakMap,ca=new WeakSet,ti=function(n){const a=r=>{switch(n.type){case"failed":return{...r,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...xx(r.data,this.options),fetchMeta:n.meta??null};case"success":return{...r,data:n.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=n.error;return Vh(o)&&o.revert&&M(this,Ls)?{...M(this,Ls),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...n.state}}};this.state=a(this.state),Ut.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),M(this,Zn).notify({query:this,type:"updated",action:n})})},Ow);function xx(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yx(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function g3(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,a=n!==void 0,r=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var ja,_w,p3=(_w=class extends Ws{constructor(n={}){super();Ae(this,ja);this.config=n,he(this,ja,new Map)}build(n,a,r){const o=a.queryKey,u=a.queryHash??ag(o,a);let f=this.get(u);return f||(f=new m3({client:n,queryKey:o,queryHash:u,options:n.defaultQueryOptions(a),state:r,defaultOptions:n.getQueryDefaults(o)}),this.add(f)),f}add(n){M(this,ja).has(n.queryHash)||(M(this,ja).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=M(this,ja).get(n.queryHash);a&&(n.destroy(),a===n&&M(this,ja).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ut.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return M(this,ja).get(n)}getAll(){return[...M(this,ja).values()]}find(n){const a={exact:!0,...n};return this.getAll().find(r=>Yv(a,r))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(r=>Yv(n,r)):a}notify(n){Ut.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){Ut.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ut.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},ja=new WeakMap,_w),Ra,on,_r,Na,Di,Bw,y3=(Bw=class extends bx{constructor(n){super();Ae(this,Na);Ae(this,Ra);Ae(this,on);Ae(this,_r);this.mutationId=n.mutationId,he(this,on,n.mutationCache),he(this,Ra,[]),this.state=n.state||Sx(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){M(this,Ra).includes(n)||(M(this,Ra).push(n),this.clearGcTimeout(),M(this,on).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){he(this,Ra,M(this,Ra).filter(a=>a!==n)),this.scheduleGc(),M(this,on).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){M(this,Ra).length||(this.state.status==="pending"?this.scheduleGc():M(this,on).remove(this))}continue(){var n;return((n=M(this,_r))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var u,f,m,p,g,y,v,b,x,S,E,C,k,z,_,Z,R,W,ce,re;const a=()=>{Ue(this,Na,Di).call(this,{type:"continue"})};he(this,_r,wx({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(Q,ne)=>{Ue(this,Na,Di).call(this,{type:"failed",failureCount:Q,error:ne})},onPause:()=>{Ue(this,Na,Di).call(this,{type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,on).canRun(this)}));const r=this.state.status==="pending",o=!M(this,_r).canStart();try{if(r)a();else{Ue(this,Na,Di).call(this,{type:"pending",variables:n,isPaused:o}),await((f=(u=M(this,on).config).onMutate)==null?void 0:f.call(u,n,this));const ne=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,n));ne!==this.state.context&&Ue(this,Na,Di).call(this,{type:"pending",context:ne,variables:n,isPaused:o})}const Q=await M(this,_r).start();return await((y=(g=M(this,on).config).onSuccess)==null?void 0:y.call(g,Q,n,this.state.context,this)),await((b=(v=this.options).onSuccess)==null?void 0:b.call(v,Q,n,this.state.context)),await((S=(x=M(this,on).config).onSettled)==null?void 0:S.call(x,Q,null,this.state.variables,this.state.context,this)),await((C=(E=this.options).onSettled)==null?void 0:C.call(E,Q,null,n,this.state.context)),Ue(this,Na,Di).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((z=(k=M(this,on).config).onError)==null?void 0:z.call(k,Q,n,this.state.context,this)),await((Z=(_=this.options).onError)==null?void 0:Z.call(_,Q,n,this.state.context)),await((W=(R=M(this,on).config).onSettled)==null?void 0:W.call(R,void 0,Q,this.state.variables,this.state.context,this)),await((re=(ce=this.options).onSettled)==null?void 0:re.call(ce,void 0,Q,n,this.state.context)),Q}finally{Ue(this,Na,Di).call(this,{type:"error",error:Q})}}finally{M(this,on).runNext(this)}}},Ra=new WeakMap,on=new WeakMap,_r=new WeakMap,Na=new WeakSet,Di=function(n){const a=r=>{switch(n.type){case"failed":return{...r,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...r,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:n.error,failureCount:r.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Ut.batch(()=>{M(this,Ra).forEach(r=>{r.onMutationUpdate(n)}),M(this,on).notify({mutation:this,type:"updated",action:n})})},Bw);function Sx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ai,da,xo,zw,v3=(zw=class extends Ws{constructor(n={}){super();Ae(this,ai);Ae(this,da);Ae(this,xo);this.config=n,he(this,ai,new Set),he(this,da,new Map),he(this,xo,0)}build(n,a,r){const o=new y3({mutationCache:this,mutationId:++Ku(this,xo)._,options:n.defaultMutationOptions(a),state:r});return this.add(o),o}add(n){M(this,ai).add(n);const a=nc(n);if(typeof a=="string"){const r=M(this,da).get(a);r?r.push(n):M(this,da).set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(M(this,ai).delete(n)){const a=nc(n);if(typeof a=="string"){const r=M(this,da).get(a);if(r)if(r.length>1){const o=r.indexOf(n);o!==-1&&r.splice(o,1)}else r[0]===n&&M(this,da).delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=nc(n);if(typeof a=="string"){const r=M(this,da).get(a),o=r==null?void 0:r.find(u=>u.state.status==="pending");return!o||o===n}else return!0}runNext(n){var r;const a=nc(n);if(typeof a=="string"){const o=(r=M(this,da).get(a))==null?void 0:r.find(u=>u!==n&&u.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ut.batch(()=>{M(this,ai).forEach(n=>{this.notify({type:"removed",mutation:n})}),M(this,ai).clear(),M(this,da).clear()})}getAll(){return Array.from(M(this,ai))}find(n){const a={exact:!0,...n};return this.getAll().find(r=>Xv(a,r))}findAll(n={}){return this.getAll().filter(a=>Xv(n,a))}notify(n){Ut.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return Ut.batch(()=>Promise.all(n.map(a=>a.continue().catch(Wn))))}},ai=new WeakMap,da=new WeakMap,xo=new WeakMap,zw);function nc(e){var n;return(n=e.options.scope)==null?void 0:n.id}function Jv(e){return{onFetch:(n,a)=>{var y,v,b,x,S;const r=n.options,o=(b=(v=(y=n.fetchOptions)==null?void 0:y.meta)==null?void 0:v.fetchMore)==null?void 0:b.direction,u=((x=n.state.data)==null?void 0:x.pages)||[],f=((S=n.state.data)==null?void 0:S.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let E=!1;const C=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(n.signal.aborted?E=!0:n.signal.addEventListener("abort",()=>{E=!0}),n.signal)})},k=px(n.options,n.fetchOptions),z=async(_,Z,R)=>{if(E)return Promise.reject();if(Z==null&&_.pages.length)return Promise.resolve(_);const W={client:n.client,queryKey:n.queryKey,pageParam:Z,direction:R?"backward":"forward",meta:n.options.meta};C(W);const ce=await k(W),{maxPages:re}=n.options,Q=R?o3:l3;return{pages:Q(_.pages,ce,re),pageParams:Q(_.pageParams,Z,re)}};if(o&&u.length){const _=o==="backward",Z=_?w3:Wv,R={pages:u,pageParams:f},W=Z(r,R);m=await z(R,W,_)}else{const _=e??u.length;do{const Z=p===0?f[0]??r.initialPageParam:Wv(r,m);if(p>0&&Z==null)break;m=await z(m,Z),p++}while(p<_)}return m};n.options.persister?n.fetchFn=()=>{var E,C;return(C=(E=n.options).persister)==null?void 0:C.call(E,g,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a)}:n.fetchFn=g}}}function Wv(e,{pages:n,pageParams:a}){const r=n.length-1;return n.length>0?e.getNextPageParam(n[r],n,a[r],a):void 0}function w3(e,{pages:n,pageParams:a}){var r;return n.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,n[0],n,a[0],a):void 0}var Et,Li,Ui,Us,Hs,Hi,Fs,Ps,Lw,b3=(Lw=class{constructor(e={}){Ae(this,Et);Ae(this,Li);Ae(this,Ui);Ae(this,Us);Ae(this,Hs);Ae(this,Hi);Ae(this,Fs);Ae(this,Ps);he(this,Et,e.queryCache||new p3),he(this,Li,e.mutationCache||new v3),he(this,Ui,e.defaultOptions||{}),he(this,Us,new Map),he(this,Hs,new Map),he(this,Hi,0)}mount(){Ku(this,Hi)._++,M(this,Hi)===1&&(he(this,Fs,rg.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Et).onFocus())})),he(this,Ps,Ec.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Et).onOnline())})))}unmount(){var e,n;Ku(this,Hi)._--,M(this,Hi)===0&&((e=M(this,Fs))==null||e.call(this),he(this,Fs,void 0),(n=M(this,Ps))==null||n.call(this),he(this,Ps,void 0))}isFetching(e){return M(this,Et).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,Li).findAll({...e,status:"pending"}).length}getQueryData(e){var a;const n=this.defaultQueryOptions({queryKey:e});return(a=M(this,Et).get(n.queryHash))==null?void 0:a.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),a=M(this,Et).build(this,n),r=a.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(ks(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(r))}getQueriesData(e){return M(this,Et).findAll(e).map(({queryKey:n,state:a})=>{const r=a.data;return[n,r]})}setQueryData(e,n,a){const r=this.defaultQueryOptions({queryKey:e}),o=M(this,Et).get(r.queryHash),u=o==null?void 0:o.state.data,f=r3(n,u);if(f!==void 0)return M(this,Et).build(this,r).setData(f,{...a,manual:!0})}setQueriesData(e,n,a){return Ut.batch(()=>M(this,Et).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,n,a)]))}getQueryState(e){var a;const n=this.defaultQueryOptions({queryKey:e});return(a=M(this,Et).get(n.queryHash))==null?void 0:a.state}removeQueries(e){const n=M(this,Et);Ut.batch(()=>{n.findAll(e).forEach(a=>{n.remove(a)})})}resetQueries(e,n){const a=M(this,Et);return Ut.batch(()=>(a.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const a={revert:!0,...n},r=Ut.batch(()=>M(this,Et).findAll(e).map(o=>o.cancel(a)));return Promise.all(r).then(Wn).catch(Wn)}invalidateQueries(e,n={}){return Ut.batch(()=>(M(this,Et).findAll(e).forEach(a=>{a.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},n)))}refetchQueries(e,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},r=Ut.batch(()=>M(this,Et).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let u=o.fetch(void 0,a);return a.throwOnError||(u=u.catch(Wn)),o.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(r).then(Wn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const a=M(this,Et).build(this,n);return a.isStaleByTime(ks(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Wn).catch(Wn)}fetchInfiniteQuery(e){return e.behavior=Jv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Wn).catch(Wn)}ensureInfiniteQueryData(e){return e.behavior=Jv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ec.isOnline()?M(this,Li).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,Et)}getMutationCache(){return M(this,Li)}getDefaultOptions(){return M(this,Ui)}setDefaultOptions(e){he(this,Ui,e)}setQueryDefaults(e,n){M(this,Us).set(Vr(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...M(this,Us).values()],a={};return n.forEach(r=>{vo(e,r.queryKey)&&Object.assign(a,r.defaultOptions)}),a}setMutationDefaults(e,n){M(this,Hs).set(Vr(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...M(this,Hs).values()],a={};return n.forEach(r=>{vo(e,r.mutationKey)&&Object.assign(a,r.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const n={...M(this,Ui).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=ag(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===ig&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Ui).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,Et).clear(),M(this,Li).clear()}},Et=new WeakMap,Li=new WeakMap,Ui=new WeakMap,Us=new WeakMap,Hs=new WeakMap,Hi=new WeakMap,Fs=new WeakMap,Ps=new WeakMap,Lw),yn,Qe,So,un,Br,Vs,Fi,Pi,Ao,Is,qs,zr,Lr,Vi,Qs,et,ho,wm,bm,xm,Sm,Am,Cm,Em,Ax,Uw,x3=(Uw=class extends Ws{constructor(n,a){super();Ae(this,et);Ae(this,yn);Ae(this,Qe);Ae(this,So);Ae(this,un);Ae(this,Br);Ae(this,Vs);Ae(this,Fi);Ae(this,Pi);Ae(this,Ao);Ae(this,Is);Ae(this,qs);Ae(this,zr);Ae(this,Lr);Ae(this,Vi);Ae(this,Qs,new Set);this.options=a,he(this,yn,n),he(this,Pi,null),he(this,Fi,vm()),this.options.experimental_prefetchInRender||M(this,Fi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(a)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Qe).addObserver(this),ew(M(this,Qe),this.options)?Ue(this,et,ho).call(this):this.updateResult(),Ue(this,et,Sm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jm(M(this,Qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jm(M(this,Qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ue(this,et,Am).call(this),Ue(this,et,Cm).call(this),M(this,Qe).removeObserver(this)}setOptions(n){const a=this.options,r=M(this,Qe);if(this.options=M(this,yn).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ha(this.options.enabled,M(this,Qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ue(this,et,Em).call(this),M(this,Qe).setOptions(this.options),a._defaulted&&!Cc(this.options,a)&&M(this,yn).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Qe),observer:this});const o=this.hasListeners();o&&tw(M(this,Qe),r,this.options,a)&&Ue(this,et,ho).call(this),this.updateResult(),o&&(M(this,Qe)!==r||ha(this.options.enabled,M(this,Qe))!==ha(a.enabled,M(this,Qe))||ks(this.options.staleTime,M(this,Qe))!==ks(a.staleTime,M(this,Qe)))&&Ue(this,et,wm).call(this);const u=Ue(this,et,bm).call(this);o&&(M(this,Qe)!==r||ha(this.options.enabled,M(this,Qe))!==ha(a.enabled,M(this,Qe))||u!==M(this,Vi))&&Ue(this,et,xm).call(this,u)}getOptimisticResult(n){const a=M(this,yn).getQueryCache().build(M(this,yn),n),r=this.createResult(a,n);return A3(this,r)&&(he(this,un,r),he(this,Vs,this.options),he(this,Br,M(this,Qe).state)),r}getCurrentResult(){return M(this,un)}trackResult(n,a){const r={};return Object.keys(n).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),a==null||a(o),n[o])})}),r}trackProp(n){M(this,Qs).add(n)}getCurrentQuery(){return M(this,Qe)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=M(this,yn).defaultQueryOptions(n),r=M(this,yn).getQueryCache().build(M(this,yn),a);return r.fetch().then(()=>this.createResult(r,a))}fetch(n){return Ue(this,et,ho).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,un)))}createResult(n,a){var Q;const r=M(this,Qe),o=this.options,u=M(this,un),f=M(this,Br),m=M(this,Vs),g=n!==r?n.state:M(this,So),{state:y}=n;let v={...y},b=!1,x;if(a._optimisticResults){const ne=this.hasListeners(),fe=!ne&&ew(n,a),Ge=ne&&tw(n,r,a,o);(fe||Ge)&&(v={...v,...xx(y.data,n.options)}),a._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:S,errorUpdatedAt:E,status:C}=v;x=v.data;let k=!1;if(a.placeholderData!==void 0&&x===void 0&&C==="pending"){let ne;u!=null&&u.isPlaceholderData&&a.placeholderData===(m==null?void 0:m.placeholderData)?(ne=u.data,k=!0):ne=typeof a.placeholderData=="function"?a.placeholderData((Q=M(this,qs))==null?void 0:Q.state.data,M(this,qs)):a.placeholderData,ne!==void 0&&(C="success",x=ym(u==null?void 0:u.data,ne,a),b=!0)}if(a.select&&x!==void 0&&!k)if(u&&x===(f==null?void 0:f.data)&&a.select===M(this,Ao))x=M(this,Is);else try{he(this,Ao,a.select),x=a.select(x),x=ym(u==null?void 0:u.data,x,a),he(this,Is,x),he(this,Pi,null)}catch(ne){he(this,Pi,ne)}M(this,Pi)&&(S=M(this,Pi),x=M(this,Is),E=Date.now(),C="error");const z=v.fetchStatus==="fetching",_=C==="pending",Z=C==="error",R=_&&z,W=x!==void 0,re={status:C,fetchStatus:v.fetchStatus,isPending:_,isSuccess:C==="success",isError:Z,isInitialLoading:R,isLoading:R,data:x,dataUpdatedAt:v.dataUpdatedAt,error:S,errorUpdatedAt:E,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>g.dataUpdateCount||v.errorUpdateCount>g.errorUpdateCount,isFetching:z,isRefetching:z&&!_,isLoadingError:Z&&!W,isPaused:v.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:Z&&W,isStale:sg(n,a),refetch:this.refetch,promise:M(this,Fi)};if(this.options.experimental_prefetchInRender){const ne=Xe=>{re.status==="error"?Xe.reject(re.error):re.data!==void 0&&Xe.resolve(re.data)},fe=()=>{const Xe=he(this,Fi,re.promise=vm());ne(Xe)},Ge=M(this,Fi);switch(Ge.status){case"pending":n.queryHash===r.queryHash&&ne(Ge);break;case"fulfilled":(re.status==="error"||re.data!==Ge.value)&&fe();break;case"rejected":(re.status!=="error"||re.error!==Ge.reason)&&fe();break}}return re}updateResult(){const n=M(this,un),a=this.createResult(M(this,Qe),this.options);if(he(this,Br,M(this,Qe).state),he(this,Vs,this.options),M(this,Br).data!==void 0&&he(this,qs,M(this,Qe)),Cc(a,n))return;he(this,un,a);const r=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!M(this,Qs).size)return!0;const f=new Set(u??M(this,Qs));return this.options.throwOnError&&f.add("error"),Object.keys(M(this,un)).some(m=>{const p=m;return M(this,un)[p]!==n[p]&&f.has(p)})};Ue(this,et,Ax).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ue(this,et,Sm).call(this)}},yn=new WeakMap,Qe=new WeakMap,So=new WeakMap,un=new WeakMap,Br=new WeakMap,Vs=new WeakMap,Fi=new WeakMap,Pi=new WeakMap,Ao=new WeakMap,Is=new WeakMap,qs=new WeakMap,zr=new WeakMap,Lr=new WeakMap,Vi=new WeakMap,Qs=new WeakMap,et=new WeakSet,ho=function(n){Ue(this,et,Em).call(this);let a=M(this,Qe).fetch(this.options,n);return n!=null&&n.throwOnError||(a=a.catch(Wn)),a},wm=function(){Ue(this,et,Am).call(this);const n=ks(this.options.staleTime,M(this,Qe));if(Pr||M(this,un).isStale||!gm(n))return;const r=mx(M(this,un).dataUpdatedAt,n)+1;he(this,zr,setTimeout(()=>{M(this,un).isStale||this.updateResult()},r))},bm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Qe)):this.options.refetchInterval)??!1},xm=function(n){Ue(this,et,Cm).call(this),he(this,Vi,n),!(Pr||ha(this.options.enabled,M(this,Qe))===!1||!gm(M(this,Vi))||M(this,Vi)===0)&&he(this,Lr,setInterval(()=>{(this.options.refetchIntervalInBackground||rg.isFocused())&&Ue(this,et,ho).call(this)},M(this,Vi)))},Sm=function(){Ue(this,et,wm).call(this),Ue(this,et,xm).call(this,Ue(this,et,bm).call(this))},Am=function(){M(this,zr)&&(clearTimeout(M(this,zr)),he(this,zr,void 0))},Cm=function(){M(this,Lr)&&(clearInterval(M(this,Lr)),he(this,Lr,void 0))},Em=function(){const n=M(this,yn).getQueryCache().build(M(this,yn),this.options);if(n===M(this,Qe))return;const a=M(this,Qe);he(this,Qe,n),he(this,So,n.state),this.hasListeners()&&(a==null||a.removeObserver(this),n.addObserver(this))},Ax=function(n){Ut.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(M(this,un))}),M(this,yn).getQueryCache().notify({query:M(this,Qe),type:"observerResultsUpdated"})})},Uw);function S3(e,n){return ha(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function ew(e,n){return S3(e,n)||e.state.data!==void 0&&jm(e,n,n.refetchOnMount)}function jm(e,n,a){if(ha(n.enabled,e)!==!1){const r=typeof a=="function"?a(e):a;return r==="always"||r!==!1&&sg(e,n)}return!1}function tw(e,n,a,r){return(e!==n||ha(r.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&sg(e,a)}function sg(e,n){return ha(n.enabled,e)!==!1&&e.isStaleByTime(ks(n.staleTime,e))}function A3(e,n){return!Cc(e.getCurrentResult(),n)}var Ii,qi,vn,ii,si,hc,Rm,Hw,C3=(Hw=class extends Ws{constructor(a,r){super();Ae(this,si);Ae(this,Ii);Ae(this,qi);Ae(this,vn);Ae(this,ii);he(this,Ii,a),this.setOptions(r),this.bindMethods(),Ue(this,si,hc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var o;const r=this.options;this.options=M(this,Ii).defaultMutationOptions(a),Cc(this.options,r)||M(this,Ii).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,vn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Vr(r.mutationKey)!==Vr(this.options.mutationKey)?this.reset():((o=M(this,vn))==null?void 0:o.state.status)==="pending"&&M(this,vn).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=M(this,vn))==null||a.removeObserver(this)}onMutationUpdate(a){Ue(this,si,hc).call(this),Ue(this,si,Rm).call(this,a)}getCurrentResult(){return M(this,qi)}reset(){var a;(a=M(this,vn))==null||a.removeObserver(this),he(this,vn,void 0),Ue(this,si,hc).call(this),Ue(this,si,Rm).call(this)}mutate(a,r){var o;return he(this,ii,r),(o=M(this,vn))==null||o.removeObserver(this),he(this,vn,M(this,Ii).getMutationCache().build(M(this,Ii),this.options)),M(this,vn).addObserver(this),M(this,vn).execute(a)}},Ii=new WeakMap,qi=new WeakMap,vn=new WeakMap,ii=new WeakMap,si=new WeakSet,hc=function(){var r;const a=((r=M(this,vn))==null?void 0:r.state)??Sx();he(this,qi,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},Rm=function(a){Ut.batch(()=>{var r,o,u,f,m,p,g,y;if(M(this,ii)&&this.hasListeners()){const v=M(this,qi).variables,b=M(this,qi).context;(a==null?void 0:a.type)==="success"?((o=(r=M(this,ii)).onSuccess)==null||o.call(r,a.data,v,b),(f=(u=M(this,ii)).onSettled)==null||f.call(u,a.data,null,v,b)):(a==null?void 0:a.type)==="error"&&((p=(m=M(this,ii)).onError)==null||p.call(m,a.error,v,b),(y=(g=M(this,ii)).onSettled)==null||y.call(g,void 0,a.error,v,b))}this.listeners.forEach(v=>{v(M(this,qi))})})},Hw),Cx=j.createContext(void 0),Ex=e=>{const n=j.useContext(Cx);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},E3=({client:e,children:n})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(Cx.Provider,{value:e,children:n})),jx=j.createContext(!1),j3=()=>j.useContext(jx);jx.Provider;function R3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var N3=j.createContext(R3()),T3=()=>j.useContext(N3);function Rx(e,n){return typeof e=="function"?e(...n):!!e}function Nm(){}var k3=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},M3=e=>{j.useEffect(()=>{e.clearReset()},[e])},D3=({result:e,errorResetBoundary:n,throwOnError:a,query:r,suspense:o})=>e.isError&&!n.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Rx(a,[e.error,r])),O3=e=>{const n=e.staleTime;e.suspense&&(e.staleTime=typeof n=="function"?(...a)=>Math.max(n(...a),1e3):Math.max(n??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},_3=(e,n)=>e.isLoading&&e.isFetching&&!n,B3=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,nw=(e,n,a)=>n.fetchOptimistic(e).catch(()=>{a.clearReset()});function z3(e,n,a){var v,b,x,S,E;const r=Ex(),o=j3(),u=T3(),f=r.defaultQueryOptions(e);(b=(v=r.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||b.call(v,f),f._optimisticResults=o?"isRestoring":"optimistic",O3(f),k3(f,u),M3(u);const m=!r.getQueryCache().get(f.queryHash),[p]=j.useState(()=>new n(r,f)),g=p.getOptimisticResult(f),y=!o&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(C=>{const k=y?p.subscribe(Ut.batchCalls(C)):Nm;return p.updateResult(),k},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),j.useEffect(()=>{p.setOptions(f)},[f,p]),B3(f,g))throw nw(f,p,u);if(D3({result:g,errorResetBoundary:u,throwOnError:f.throwOnError,query:r.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw g.error;if((S=(x=r.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||S.call(x,f,g),f.experimental_prefetchInRender&&!Pr&&_3(g,o)){const C=m?nw(f,p,u):(E=r.getQueryCache().get(f.queryHash))==null?void 0:E.promise;C==null||C.catch(Nm).finally(()=>{p.updateResult()})}return f.notifyOnChangeProps?g:p.trackResult(g)}function el(e,n){return z3(e,x3)}function jc(e,n){const a=Ex(),[r]=j.useState(()=>new C3(a,e));j.useEffect(()=>{r.setOptions(e)},[r,e]);const o=j.useSyncExternalStore(j.useCallback(f=>r.subscribe(Ut.batchCalls(f)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),u=j.useCallback((f,m)=>{r.mutate(f,m).catch(Nm)},[r]);if(o.error&&Rx(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:u,mutateAsync:o.mutate}}function L3(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}L3(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
`);var lg=e=>typeof e=="number"&&!isNaN(e),wo=e=>typeof e=="string",Nx=e=>typeof e=="function",U3=e=>wo(e)||lg(e),H3=e=>j.isValidElement(e)||wo(e)||Nx(e)||lg(e),F3=1,Tx=()=>`${F3++}`,ka=new Map,Tm=[],aw=new Set,kx=()=>ka.size>0,P3=(e,{containerId:n})=>{var a;return(a=ka.get(n||1))==null?void 0:a.toasts.get(e)};function V3(e,n){var a;if(n)return!!((a=ka.get(n))!=null&&a.isToastActive(e));let r=!1;return ka.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function I3(e){if(!kx()){Tm=Tm.filter(n=>e!=null&&n.options.toastId!==e);return}if(e==null||U3(e))ka.forEach(n=>{n.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let n=ka.get(e.containerId);n?n.removeToast(e.id):ka.forEach(a=>{a.removeToast(e.id)})}}var q3=(e={})=>{ka.forEach(n=>{n.props.limit&&(!e.containerId||n.id===e.containerId)&&n.clearQueue()})};function Q3(e,n){H3(e)&&(kx()||Tm.push({content:e,options:n}),ka.forEach(a=>{a.buildToast(e,n)}))}function Mx(e,n){ka.forEach(a=>{(n==null||!(n!=null&&n.containerId)||(n==null?void 0:n.containerId)===a.id)&&a.toggle(e,n==null?void 0:n.id)})}function G3(e){return aw.add(e),()=>{aw.delete(e)}}function $3(e){return e&&(wo(e.toastId)||lg(e.toastId))?e.toastId:Tx()}function No(e,n){return Q3(e,n),n.toastId}function Wc(e,n){return{...n,type:n&&n.type||e,toastId:$3(n)}}function ed(e){return(n,a)=>No(n,Wc(e,a))}function st(e,n){return No(e,Wc("default",n))}st.loading=(e,n)=>No(e,Wc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...n}));function Y3(e,{pending:n,error:a,success:r},o){let u;n&&(u=wo(n)?st.loading(n,o):st.loading(n.render,{...o,...n}));let f={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},m=(g,y,v)=>{if(y==null){st.dismiss(u);return}let b={type:g,...f,...o,data:v},x=wo(y)?{render:y}:y;return u?st.update(u,{...b,...x}):st(x.render,{...b,...x}),v},p=Nx(e)?e():e;return p.then(g=>m("success",r,g)).catch(g=>m("error",a,g)),p}st.promise=Y3;st.success=ed("success");st.info=ed("info");st.error=ed("error");st.warning=ed("warning");st.warn=st.warning;st.dark=(e,n)=>No(e,Wc("default",{theme:"dark",...n}));function X3(e){I3(e)}st.dismiss=X3;st.clearWaitingQueue=q3;st.isActive=V3;st.update=(e,n={})=>{let a=P3(e,n);if(a){let{props:r,content:o}=a,u={delay:100,...r,...n,toastId:n.toastId||e,updateId:Tx()};u.toastId!==e&&(u.staleId=e);let f=u.render||o;delete u.render,No(f,u)}};st.done=e=>{st.update(e,{progress:1})};st.onChange=G3;st.play=e=>Mx(!0,e);st.pause=e=>Mx(!1,e);const ea={createPublicDetection:e=>rt.post(dt.detectionsPatient.createPublic,e,{headers:{"Content-Type":"multipart/form-data"}}),getDetections(e){return rt.get(dt.detectionsPatient.history,{params:e})},getDetectionsById(e){return rt.get(`${dt.detectionsPatient.detail}/${e}`)},createDetection:e=>rt.post(`${dt.detectionsPatient.create}`,e,{headers:{"Content-Type":"multipart/form-data"}}),updateDetection:async(e,n,a)=>rt.patch(`${dt.detectionsPatient.update}/${e}`,n,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`}}),getSubmissions(e){return rt.get(dt.submissionsPatient.history,{params:e})},getSubmissionsById(e){return rt.get(`${dt.submissionsPatient.detail}/${e}`)},deleteSubmission:async(e,n)=>await rt.delete(`${dt.submissionsPatient.delete}/${e}`,{headers:{Authorization:`Bearer ${n}`}}),getListDoctors(e){return rt.get(dt.doctor.doctorList,{params:e})}},K3=()=>{var P,L;const e=JSON.parse(localStorage.getItem("user")),n=localStorage.getItem("token"),a=(P=e==null?void 0:e.data)==null?void 0:P.id,r=dn(),[o,u]=j.useState(!1),[f,m]=j.useState(""),[p,g]=j.useState(1),[y,v]=j.useState(5),[b,x]=j.useState(null),[S,E]=j.useState(!1),{data:C,isLoading:k,refetch:z}=el({queryKey:["submissions",a],queryFn:()=>ea.getDetections({userId:a}),enabled:!!a,staleTime:5*60*1e3,cacheTime:30*60*1e3}),_=((L=C==null?void 0:C.data)==null?void 0:L.data)||[],Z=(_==null?void 0:_.filter(F=>(F.complaint||"-").toLowerCase().includes(f.toLowerCase())))||[],R=Z.length,W=Math.ceil(R/y),ce=p*y,re=ce-y,Q=Z.slice(re,ce),ne=F=>{r(`/deteksi/${F}`)},fe=F=>{x(F),u(!0)},Ge=jc({mutationFn:F=>ea.deleteSubmission(F,n),onSuccess:()=>{st.success("Data berhasil dihapus"),z(),u(!1),x(null)},onError:()=>{st.error("Gagal menghapus data")}}),Xe=()=>{p<W&&g(F=>F+1)},te=()=>{p>1&&g(F=>F-1)};return d.jsxs(d.Fragment,{children:[o&&d.jsx(ng,{onClose:()=>u(!1),onDelete:()=>Ge.mutate(b)}),d.jsxs("div",{className:"pt-32 w-full px-6 lg:px-3",children:[d.jsx("h1",{className:"text-3xl font-bold text-black",children:"Riwayat Deteksi"}),d.jsxs("div",{className:"flex flex-col md:flex-row md:justify-between gap-3 mt-6 mb-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"mr-2 font-medium",children:"Tampilkan:"}),d.jsxs("select",{className:"border rounded px-3 py-1",value:y,onChange:F=>{v(Number(F.target.value)),g(1)},children:[d.jsx("option",{value:5,children:"5 data"}),d.jsx("option",{value:10,children:"10 data"}),d.jsx("option",{value:20,children:"20 data"})]})]}),d.jsx("div",{children:d.jsx("input",{type:"text",placeholder:"Cari keluhan...",className:"border rounded px-3 py-1 w-full md:w-64",value:f,onChange:F=>{m(F.target.value),g(1)}})})]}),d.jsx("button",{className:"px-4 py-2 mb-4 bg-sky-700 hover:bg-sky-600 font-semibold text-white rounded cursor-pointer",onClick:async()=>{try{E(!0),await z(),console.log("data deteksi di refresh")}finally{E(!1)}},children:S?"Memperbarui...":"Refresh Data 🔄"}),d.jsx("div",{className:"w-full lg:px-0 px-4 overflow-x-auto",children:d.jsxs("table",{className:"hidden lg:table w-full mt-6 mb-5 rounded-xl shadow-lg bg-white/60 backdrop-blur-md",children:[d.jsx("thead",{className:"border-b border-gray-200 text-left",children:d.jsxs("tr",{className:"text-black font-semibold",children:[d.jsx("th",{className:"py-4 px-6",children:"Tanggal Pengajuan"}),d.jsx("th",{className:"py-4 px-6",children:"Diagnosis AI"}),d.jsx("th",{className:"py-4 px-6",children:"Gambar"}),d.jsx("th",{className:"py-4 px-6",children:"Keluhan"}),d.jsx("th",{className:"py-4 px-6",children:"Pengajuan"}),d.jsx("th",{className:"py-4 px-6",children:"Status"}),d.jsx("th",{className:"py-4 px-6 text-center",children:"Aksi"})]})}),d.jsx("tbody",{className:"text-left text-gray-800",children:k?d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"py-6",children:d.jsx(hx,{})})}):Q.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"text-center font-bold py-6",children:"Anda belom memiliki riwayat deteksi"})}):Q.map(F=>{const le=parseFloat(F.diagnosisAi)>=50?"text-red-600":"text-green-600",N=F.status==="rejected"?"text-red-600":F.status==="pending"?"text-yellow-600":"text-green-600";return d.jsxs("tr",{className:"*:align-middle *:text-start *:px-6",children:[d.jsx("td",{children:F.submittedAt}),d.jsx("td",{className:`font-semibold ${le}`,children:F.diagnosisAi}),d.jsx("td",{children:d.jsx("div",{className:"w-40 h-32 rounded-lg flex items-center justify-start overflow-hidden p-2",children:d.jsx("img",{className:"max-w-full max-h-full object-contain",src:F.imageUrl,alt:"Deteksi"})})}),d.jsx("td",{className:"text-ellipsis",children:(F==null?void 0:F.complaint)||"-"}),d.jsx("td",{className:`font-semibold ${(F==null?void 0:F.isSubmitted)==="Sudah"?"text-green-600":"text-red-600"}`,children:(F==null?void 0:F.isSubmitted)||"-"}),d.jsx("td",{className:`font-semibold capitalize ${N}`,children:(F==null?void 0:F.status)||"Tidak"}),d.jsxs("td",{children:[d.jsxs("div",{className:"flex gap-x-3",children:[d.jsx("button",{type:"button",onClick:()=>ne(F.id),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Jc,alt:"Info"})}),d.jsx("button",{type:"button",className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Gs,alt:"Hapus",onClick:()=>fe(F.id)})})]}),(F.isSubmitted||"Tidak")==="Tidak"&&d.jsx("button",{type:"button",onClick:()=>r(`/pengajuan/ulang/${F.id}`),className:"w-3/4 text-sm font-semibold border border-black py-2 mt-2 rounded-lg cursor-pointer",children:"Ajukan Verifikasi"})]})]},F.id)})})]})}),d.jsx("div",{className:"lg:hidden mt-4 space-y-4",children:Q.map(F=>{const G={date:F.submittedAt,persentase:F.diagnosisAi,imageUrl:F.imageUrl,keluhan:F.complaint,pengajuan:F.isSubmitted,status:F.status};return d.jsx(fx,{item:G,handleInfo:()=>ne(F.id),handleDelete:()=>fe(F.id),handleSubmission:()=>r(`/pengajuan/ulang/${F.id}`)},F.id)})}),d.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between mt-4 mb-10 px-4 text-sm text-gray-600",children:[d.jsxs("span",{children:["Halaman ",p," dari ",W,"  |  Total"," ",R," data"]}),d.jsxs("div",{className:"mt-2 lg:mt-0 flex gap-3",children:[d.jsx("button",{onClick:te,disabled:p===1,className:"px-4 py-2 rounded-md border disabled:cursor-not-allowed disabled:opacity-50",children:"Sebelumnya"}),d.jsx("button",{onClick:Xe,disabled:p===W,className:"px-4 py-2 rounded-md border disabled:cursor-not-allowed disabled:opacity-50",children:"Selanjutnya"})]})]})]})]})},iw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGMSURBVHgB1ZQ7TsNAEIZn1pBAtxIHwAUFHa4QpVOAUoYThBKhFLkB4QQICRAd4QSEikCDUlPgCyCWC4AbhFDsHcZJ7PgRR0ksCj5ppX3+++/O7AL8F3DaoKwe2oKMOlctAJI83SUAVxC0feH33O6VmllU7h5ZKPCUB23IRwFR++Px8iQ9YKQ71vYaNUS45bIJ05GAaK9ubMvv1+eHXFE+romE9+xfwuzspIVFfFSQeJpTMKQpqw07IxoEha/YhAVBouOMqNDGARSAg2pJuykToswWFEPC8peZFEVK3CXno9KIFSJwuelqwn2uO6PJZ8OSwihnnKZRAB5nDbnDXX4Ub6wGklo7GvRb3sKlyBm74Nw0I+Oc+EiGHbaFKL1EcwVeT3bjqYRTQupBAYLrCp9t/E47UABCaIX1+ClMWJChy4ubjKihlxZ5SQNBQr8S7xs7JT23KAs6gWD6C4yi7/dLHSz366PpLkf/nRetI2Btgp7DuXb32T1vTdps6icdMHh6K5417vFU3uf8p/wCITaErXLCrhMAAAAASUVORK5CYII=",Z3=()=>{const e=[{title:"Apa itu melanoma?",desription:"Melanoma adalah jenis kanker kulit yang paling serius. Melanoma terjadi ketika sel-sel pigmentasi kulit yang disebut melanosit berubah menjadi sel-sel kanker. Melanoma dapat terjadi di kulit mana pun, tetapi melanoma yang terjadi di bagian tubuh yang tidak terpapar sinar matahari seringkali lebih serius."},{title:"Apa saja gejala Melanoma?",desription:"Gejala melanoma dapat meliputi munculnya tahi lalat baru atau perubahan pada tahi lalat yang sudah ada. Ciri-ciri tahi lalat yang mencurigakan termasuk bentuk yang tidak simetris, tepi yang tidak rata, warna yang tidak seragam, diameter lebih besar dari 6 mm, dan perubahan bentuk, ukuran, atau warna."},{title:"Bagaimana pengobatan untuk melanoma?",desription:"Gejala melanoma dapat meliputi munculnya tahi lalat baru atau perubahan pada tahi lalat yang sudah ada. Ciri-ciri tahi lalat yang mencurigakan termasuk bentuk yang tidak simetris, tepi yang tidak rata, warna yang tidak seragam, diameter lebih besar dari 6 mm, dan perubahan bentuk, ukuran, atau warna."},{title:"Bagaimana cara mencegah melanoma?",desription:"Pencegahan melanoma meliputi menghindari paparan sinar matahari yang berlebihan, terutama pada jam-jam terik. Gunakan tabir surya dengan SPF tinggi, kenakan pakaian pelindung, dan hindari penggunaan tanning bed. Selain itu, periksa kulit secara rutin untuk mendeteksi perubahan atau tanda-tanda yang mencurigakan."}],n=[{title:"Apa itu MySkin?",desription:"My Skin adalah sistem deteksi dini melanoma berbasis web yang menggunakan teknologi AI. Hasil analisis dapat diverifikasi oleh Dokter."},{title:"Apakah MySkin berbayar?",desription:"My Skin gratis untuk digunakan oleh khalayak umum, dapat diakses dimana saja dan tidak dipungut biaya sepersen pun"}];return d.jsxs("div",{className:"w-full pt-32",children:[d.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Frequntly Asked Questions"}),d.jsx("p",{className:"font-normal text-black text-center mt-2",children:"Terkait Melanoma"}),d.jsx("div",{className:"w-full flex flex-wrap justify-center gap-4 px-2 my-8",children:e.map((a,r)=>d.jsxs("div",{className:"rounded-lg shadow-lg w-full md:w-1/3 bg-white p-5",children:[d.jsxs("div",{className:"flex items-center gap-x-2",children:[d.jsx("span",{className:"border border-gray-200 p-1 rounded-lg",children:d.jsx("img",{src:iw,alt:""})}),d.jsx("h1",{className:"font-semibold",children:a.title})]}),d.jsx("p",{className:"text-sm font-normal mt-3",children:a.desription})]},r))}),d.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Frequntly Asked Questions"}),d.jsx("p",{className:"font-normal text-black text-center mt-2",children:"Terkait Melanoma"}),d.jsx("div",{className:"w-full flex flex-wrap justify-center px-2 gap-4 my-8",children:n.map((a,r)=>d.jsxs("div",{className:"rounded-lg shadow-lg w-full md:w-1/3 bg-white p-5",children:[d.jsxs("div",{className:"flex items-center gap-x-2",children:[d.jsx("span",{className:"border border-gray-200 p-1 rounded-lg",children:d.jsx("img",{src:iw,alt:""})}),d.jsx("h1",{className:"font-semibold",children:a.title})]}),d.jsx("p",{className:"text-sm font-normal mt-3",children:a.desription})]},r))})]})},J3="/assets/accordion1-zCBIfOOg.jpg",W3="/assets/accordion2-BgptnTtb.jpg",eR="/assets/accordion3-HU8XjMNE.jpg",tR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFoSURBVHgBrZTdUcJAFIXPXTMjj9gBVqA8Oeg4kgqQCqAErQCowBagAuyAOM7o+KQdGCsQX/RFWc9uEknIr4Ezk0z279t7T3avIEf6GU18YgCFYzZbtlOwhMYtv+6kAz9rnaRAj1ysMebIAMWa8plsghNAfY8u9jBnbxPV5HPzazm1USeB+gGXbM1RR99w5RzeH9CmCSwQefV/Lfm0TfoqCI+e1YcZGYtGNsIwulfsQg0cKPzwR5RphQnfk9J5Xxg6cNBjyoUwObOWGK+NRrlzBUcOYc0ymH4iZMX5HX4XQ1tORdg4irAMaiJ8S98XeJuwUOMY9ILtbmKVxofwQF8ReJOxmZdaUDamMBS9oIcNvGM3OlTi2goyw/aarm+K0Cdtr09d+QjPqQXaEiToo64UK05YxlTUxw6PUfbD3aopyMqVk3X5UvHxsK65FT2dMqu2DSTOyN08KBpdwnuxgmusecE+ZtLO9vwX7D910cozzz8AAAAASUVORK5CYII=",nR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFvSURBVHgBrZRRTsJAEIb/WUnkEW+AJ1CejBqT9gTICfAKnoByEzgB3gCMicYnuYF4AvFFX5T136FAa7elFv5kU3Y38+3Mz+4IcmRf0MAnujA45bSpi4I5LO74617OMfPFSQb0xGCLiDtdFGvA0f8LTgHtAwIcYMTVBsppxsNv5UKzTgPtI645G6GKvhHKFSZroJYJjLHy6v+ac7Rc+WaZHj2rDnNyFvU0wzi7V+xDdRwZ/PCP8GtSEOrf+8KNQQ1tXwD9CPntZ3YWelVCL1RwYuif74oEtKLHwCgFdbBLRPZZ/Qo8cc0a8hURCgd1X8Kwhi30IK9qzPAt+16yUDfZBiPrw2U45ehuyxRGs4xQJL4ysWN6WMc79qNjI6F2kCF212DzUoSlWH0+VTVDfBsUqC1I0EFVGXacuI2Z1RoXJsyyE59WTsuqQjnbtC+T3I/7WljS0wGramkiSUbu4cumERDeTjRcZ80UhxhKy+/5L0y3cInXnQ8yAAAAAElFTkSuQmCC",Dx=({title:e,description:n,onClose:a})=>d.jsxs("div",{className:"bg-white rounded-2xl shadow-lg max-w-md w-full p-6 relative",children:[d.jsx("button",{onClick:a,className:"absolute top-4 right-4 text-gray-500 hover:text-gray-800",children:d.jsx(mE,{size:16})}),d.jsx("h2",{className:"text-lg font-semibold text-sky-700 mb-2",children:e}),d.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:n})]});Dx.propTypes={title:Be.string.isRequired,description:Be.string.isRequired,onClose:Be.func.isRequired};const aR=()=>{const[e,n]=j.useState(0),{Modal:a,onOpen:r,onClose:o,type:u}=Zm(),[f,m]=j.useState({title:"",description:""}),p=[{title:"Deteksi Awal",content:"MySkin membantu mendeteksi gejala awal melanoma untuk penanganan yang lebih cepat. MySkin membantu mendeteksi gejala awal melanoma untuk penanganan yang lebih cepat.",image:J3},{title:"Diagnosis Dokter",content:"MySkin menyediakan 10+ dokter untuk memverifikasi penyakit Anda.",image:W3},{title:"Diagnosis AI",content:"MySkin menggunakan kecerdasan buatan yang andal untuk menganalisa kulit Anda.",image:eR}],g=y=>{m({title:y.title,description:y.content}),r("accordion")};return d.jsxs("div",{className:"flex flex-col md:flex-row items-center md:space-x-8 py-10 px-6 md:px-20 transition-all duration-300 ease-out",children:[d.jsx("div",{className:"w-full md:w-1/2",children:d.jsx("img",{src:p[e].image,alt:"Selected",className:"rounded-lg w-full h-96"})}),d.jsx("div",{className:"w-full md:w-1/2 min-h-96 mt-6",children:p.map((y,v)=>d.jsxs("div",{className:"border border-gray-300 rounded-lg mb-4 overflow-hidden",children:[d.jsxs("button",{onClick:()=>n(v),className:"w-full text-left px-6 py-4 flex justify-between items-center bg-white cursor-pointer",children:[d.jsx("span",{className:"font-semibold text-lg",children:y.title}),d.jsx("span",{className:"text-xl",children:d.jsx("img",{src:e===v?tR:nR,alt:""})})]}),d.jsxs("div",{className:`px-6 transition-all duration-300 ease-in-out ${e===v?"md:max-h-40 opacity-100 py-4":"max-h-0 opacity-0 py-0"}`,children:[d.jsx("p",{children:y.content}),d.jsx("button",{onClick:()=>g(y),className:"flex justify-end w-full text-sky-900 font-semibold mt-4 cursor-pointer",children:"Lebih banyak →"})]})]},v))}),u==="accordion"&&d.jsx(a,{children:d.jsx(Dx,{title:f.title,description:f.description,onClose:o})})]})};/*!
* sweetalert2 v11.21.0
* Released under the MIT License.
*/function Ox(e,n,a){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:a;throw new TypeError("Private element is not present on this object")}function iR(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function rw(e,n){return e.get(Ox(e,n))}function rR(e,n,a){iR(e,n),n.set(e,a)}function sR(e,n,a){return e.set(Ox(e,n),a),a}const lR=100,Ee={},oR=()=>{Ee.previousActiveElement instanceof HTMLElement?(Ee.previousActiveElement.focus(),Ee.previousActiveElement=null):document.body&&document.body.focus()},uR=e=>new Promise(n=>{if(!e)return n();const a=window.scrollX,r=window.scrollY;Ee.restoreFocusTimeout=setTimeout(()=>{oR(),n()},lR),window.scrollTo(a,r)}),_x="swal2-",cR=["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"],Y=cR.reduce((e,n)=>(e[n]=_x+n,e),{}),dR=["success","warning","info","question","error"],Rc=dR.reduce((e,n)=>(e[n]=_x+n,e),{}),Bx="SweetAlert2:",og=e=>e.charAt(0).toUpperCase()+e.slice(1),cn=e=>{console.warn(`${Bx} ${typeof e=="object"?e.join(" "):e}`)},Qr=e=>{console.error(`${Bx} ${e}`)},sw=[],fR=e=>{sw.includes(e)||(sw.push(e),cn(e))},zx=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;fR(`"${e}" is deprecated and will be removed in the next major release.${n?` Use "${n}" instead.`:""}`)},td=e=>typeof e=="function"?e():e,ug=e=>e&&typeof e.toPromise=="function",To=e=>ug(e)?e.toPromise():Promise.resolve(e),cg=e=>e&&Promise.resolve(e)===e,fn=()=>document.body.querySelector(`.${Y.container}`),ko=e=>{const n=fn();return n?n.querySelector(e):null},On=e=>ko(`.${e}`),Je=()=>On(Y.popup),tl=()=>On(Y.icon),hR=()=>On(Y["icon-content"]),Lx=()=>On(Y.title),dg=()=>On(Y["html-container"]),Ux=()=>On(Y.image),fg=()=>On(Y["progress-steps"]),nd=()=>On(Y["validation-message"]),Ma=()=>ko(`.${Y.actions} .${Y.confirm}`),nl=()=>ko(`.${Y.actions} .${Y.cancel}`),Gr=()=>ko(`.${Y.actions} .${Y.deny}`),mR=()=>On(Y["input-label"]),al=()=>ko(`.${Y.loader}`),Mo=()=>On(Y.actions),Hx=()=>On(Y.footer),ad=()=>On(Y["timer-progress-bar"]),hg=()=>On(Y.close),gR=`
a[href],
area[href],
input:not([disabled]),
select:not([disabled]),
textarea:not([disabled]),
button:not([disabled]),
iframe,
object,
embed,
[tabindex="0"],
[contenteditable],
audio[controls],
video[controls],
summary
`,mg=()=>{const e=Je();if(!e)return[];const n=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),a=Array.from(n).sort((u,f)=>{const m=parseInt(u.getAttribute("tabindex")||"0"),p=parseInt(f.getAttribute("tabindex")||"0");return m>p?1:m<p?-1:0}),r=e.querySelectorAll(gR),o=Array.from(r).filter(u=>u.getAttribute("tabindex")!=="-1");return[...new Set(a.concat(o))].filter(u=>bn(u))},gg=()=>ri(document.body,Y.shown)&&!ri(document.body,Y["toast-shown"])&&!ri(document.body,Y["no-backdrop"]),id=()=>{const e=Je();return e?ri(e,Y.toast):!1},pR=()=>{const e=Je();return e?e.hasAttribute("data-loading"):!1},_n=(e,n)=>{if(e.textContent="",n){const r=new DOMParser().parseFromString(n,"text/html"),o=r.querySelector("head");o&&Array.from(o.childNodes).forEach(f=>{e.appendChild(f)});const u=r.querySelector("body");u&&Array.from(u.childNodes).forEach(f=>{f instanceof HTMLVideoElement||f instanceof HTMLAudioElement?e.appendChild(f.cloneNode(!0)):e.appendChild(f)})}},ri=(e,n)=>{if(!n)return!1;const a=n.split(/\s+/);for(let r=0;r<a.length;r++)if(!e.classList.contains(a[r]))return!1;return!0},yR=(e,n)=>{Array.from(e.classList).forEach(a=>{!Object.values(Y).includes(a)&&!Object.values(Rc).includes(a)&&!Object.values(n.showClass||{}).includes(a)&&e.classList.remove(a)})},Dn=(e,n,a)=>{if(yR(e,n),!n.customClass)return;const r=n.customClass[a];if(r){if(typeof r!="string"&&!r.forEach){cn(`Invalid type of customClass.${a}! Expected string or iterable object, got "${typeof r}"`);return}We(e,r)}},rd=(e,n)=>{if(!n)return null;switch(n){case"select":case"textarea":case"file":return e.querySelector(`.${Y.popup} > .${Y[n]}`);case"checkbox":return e.querySelector(`.${Y.popup} > .${Y.checkbox} input`);case"radio":return e.querySelector(`.${Y.popup} > .${Y.radio} input:checked`)||e.querySelector(`.${Y.popup} > .${Y.radio} input:first-child`);case"range":return e.querySelector(`.${Y.popup} > .${Y.range} input`);default:return e.querySelector(`.${Y.popup} > .${Y.input}`)}},Fx=e=>{if(e.focus(),e.type!=="file"){const n=e.value;e.value="",e.value=n}},Px=(e,n,a)=>{!e||!n||(typeof n=="string"&&(n=n.split(/\s+/).filter(Boolean)),n.forEach(r=>{Array.isArray(e)?e.forEach(o=>{a?o.classList.add(r):o.classList.remove(r)}):a?e.classList.add(r):e.classList.remove(r)}))},We=(e,n)=>{Px(e,n,!0)},na=(e,n)=>{Px(e,n,!1)},Gi=(e,n)=>{const a=Array.from(e.children);for(let r=0;r<a.length;r++){const o=a[r];if(o instanceof HTMLElement&&ri(o,n))return o}},Hr=(e,n,a)=>{a===`${parseInt(a)}`&&(a=parseInt(a)),a||parseInt(a)===0?e.style.setProperty(n,typeof a=="number"?`${a}px`:a):e.style.removeProperty(n)},qt=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=n)},an=e=>{e&&(e.style.display="none")},pg=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{Do(e,e.innerHTML,n)}).observe(e,{childList:!0,subtree:!0})},lw=(e,n,a,r)=>{const o=e.querySelector(n);o&&o.style.setProperty(a,r)},Do=function(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";n?qt(e,a):an(e)},bn=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),vR=()=>!bn(Ma())&&!bn(Gr())&&!bn(nl()),ow=e=>e.scrollHeight>e.clientHeight,Vx=e=>{const n=window.getComputedStyle(e),a=parseFloat(n.getPropertyValue("animation-duration")||"0"),r=parseFloat(n.getPropertyValue("transition-duration")||"0");return a>0||r>0},yg=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=ad();a&&bn(a)&&(n&&(a.style.transition="none",a.style.width="100%"),setTimeout(()=>{a.style.transition=`width ${e/1e3}s linear`,a.style.width="0%"},10))},wR=()=>{const e=ad();if(!e)return;const n=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const a=parseInt(window.getComputedStyle(e).width),r=n/a*100;e.style.width=`${r}%`},bR=()=>typeof window>"u"||typeof document>"u",xR=`
<div aria-labelledby="${Y.title}" aria-describedby="${Y["html-container"]}" class="${Y.popup}" tabindex="-1">
<button type="button" class="${Y.close}"></button>
<ul class="${Y["progress-steps"]}"></ul>
<div class="${Y.icon}"></div>
<img class="${Y.image}" />
<h2 class="${Y.title}" id="${Y.title}"></h2>
<div class="${Y["html-container"]}" id="${Y["html-container"]}"></div>
<input class="${Y.input}" id="${Y.input}" />
<input type="file" class="${Y.file}" />
<div class="${Y.range}">
<input type="range" />
<output></output>
</div>
<select class="${Y.select}" id="${Y.select}"></select>
<div class="${Y.radio}"></div>
<label class="${Y.checkbox}">
<input type="checkbox" id="${Y.checkbox}" />
<span class="${Y.label}"></span>
</label>
<textarea class="${Y.textarea}" id="${Y.textarea}"></textarea>
<div class="${Y["validation-message"]}" id="${Y["validation-message"]}"></div>
<div class="${Y.actions}">
<div class="${Y.loader}"></div>
<button type="button" class="${Y.confirm}"></button>
<button type="button" class="${Y.deny}"></button>
<button type="button" class="${Y.cancel}"></button>
</div>
<div class="${Y.footer}"></div>
<div class="${Y["timer-progress-bar-container"]}">
<div class="${Y["timer-progress-bar"]}"></div>
</div>
</div>
`.replace(/(^|\n)\s*/g,""),SR=()=>{const e=fn();return e?(e.remove(),na([document.documentElement,document.body],[Y["no-backdrop"],Y["toast-shown"],Y["has-column"]]),!0):!1},jr=()=>{Ee.currentInstance.resetValidationMessage()},AR=()=>{const e=Je(),n=Gi(e,Y.input),a=Gi(e,Y.file),r=e.querySelector(`.${Y.range} input`),o=e.querySelector(`.${Y.range} output`),u=Gi(e,Y.select),f=e.querySelector(`.${Y.checkbox} input`),m=Gi(e,Y.textarea);n.oninput=jr,a.onchange=jr,u.onchange=jr,f.onchange=jr,m.oninput=jr,r.oninput=()=>{jr(),o.value=r.value},r.onchange=()=>{jr(),o.value=r.value}},CR=e=>typeof e=="string"?document.querySelector(e):e,ER=e=>{const n=Je();n.setAttribute("role",e.toast?"alert":"dialog"),n.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||n.setAttribute("aria-modal","true")},jR=e=>{window.getComputedStyle(e).direction==="rtl"&&We(fn(),Y.rtl)},RR=e=>{const n=SR();if(bR()){Qr("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=Y.container,n&&We(a,Y["no-transition"]),_n(a,xR),a.dataset.swal2Theme=e.theme;const r=CR(e.target);r.appendChild(a),e.topLayer&&(a.setAttribute("popover",""),a.showPopover()),ER(e),jR(r),AR()},vg=(e,n)=>{e instanceof HTMLElement?n.appendChild(e):typeof e=="object"?NR(e,n):e&&_n(n,e)},NR=(e,n)=>{e.jquery?TR(n,e):_n(n,e.toString())},TR=(e,n)=>{if(e.textContent="",0 in n)for(let a=0;a in n;a++)e.appendChild(n[a].cloneNode(!0));else e.appendChild(n.cloneNode(!0))},kR=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton?an(a):qt(a),Dn(a,n,"actions"),MR(a,r,n),_n(r,n.loaderHtml||""),Dn(r,n,"loader"))};function MR(e,n,a){const r=Ma(),o=Gr(),u=nl();!r||!o||!u||(qh(r,"confirm",a),qh(o,"deny",a),qh(u,"cancel",a),DR(r,o,u,a),a.reverseButtons&&(a.toast?(e.insertBefore(u,r),e.insertBefore(o,r)):(e.insertBefore(u,n),e.insertBefore(o,n),e.insertBefore(r,n))))}function DR(e,n,a,r){if(!r.buttonsStyling){na([e,n,a],Y.styled);return}We([e,n,a],Y.styled),r.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&n.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&a.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),Ih(e),Ih(n),Ih(a)}function Ih(e){const n=window.getComputedStyle(e),a=n.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-outline",n.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${a}`))}function qh(e,n,a){const r=og(n);Do(e,a[`show${r}Button`],"inline-block"),_n(e,a[`${n}ButtonText`]||""),e.setAttribute("aria-label",a[`${n}ButtonAriaLabel`]||""),e.className=Y[n],Dn(e,a,`${n}Button`)}const OR=(e,n)=>{const a=hg();a&&(_n(a,n.closeButtonHtml||""),Dn(a,n,"closeButton"),Do(a,n.showCloseButton),a.setAttribute("aria-label",n.closeButtonAriaLabel||""))},_R=(e,n)=>{const a=fn();a&&(BR(a,n.backdrop),zR(a,n.position),LR(a,n.grow),Dn(a,n,"container"))};function BR(e,n){typeof n=="string"?e.style.background=n:n||We([document.documentElement,document.body],Y["no-backdrop"])}function zR(e,n){n&&(n in Y?We(e,Y[n]):(cn('The "position" parameter is not valid, defaulting to "center"'),We(e,Y.center)))}function LR(e,n){n&&We(e,Y[`grow-${n}`])}var ft={innerParams:new WeakMap,domCache:new WeakMap};const UR=["input","file","range","select","radio","checkbox","textarea"],HR=(e,n)=>{const a=Je();if(!a)return;const r=ft.innerParams.get(e),o=!r||n.input!==r.input;UR.forEach(u=>{const f=Gi(a,Y[u]);f&&(VR(u,n.inputAttributes),f.className=Y[u],o&&an(f))}),n.input&&(o&&FR(n),IR(n))},FR=e=>{if(!e.input)return;if(!Tt[e.input]){Qr(`Unexpected type of input! Expected ${Object.keys(Tt).join(" | ")}, got "${e.input}"`);return}const n=Ix(e.input);if(!n)return;const a=Tt[e.input](n,e);qt(n),e.inputAutoFocus&&setTimeout(()=>{Fx(a)})},PR=e=>{for(let n=0;n<e.attributes.length;n++){const a=e.attributes[n].name;["id","type","value","style"].includes(a)||e.removeAttribute(a)}},VR=(e,n)=>{const a=Je();if(!a)return;const r=rd(a,e);if(r){PR(r);for(const o in n)r.setAttribute(o,n[o])}},IR=e=>{if(!e.input)return;const n=Ix(e.input);n&&Dn(n,e,"input")},wg=(e,n)=>{!e.placeholder&&n.inputPlaceholder&&(e.placeholder=n.inputPlaceholder)},Oo=(e,n,a)=>{if(a.inputLabel){const r=document.createElement("label"),o=Y["input-label"];r.setAttribute("for",e.id),r.className=o,typeof a.customClass=="object"&&We(r,a.customClass.inputLabel),r.innerText=a.inputLabel,n.insertAdjacentElement("beforebegin",r)}},Ix=e=>{const n=Je();if(n)return Gi(n,Y[e]||Y.input)},Nc=(e,n)=>{["string","number"].includes(typeof n)?e.value=`${n}`:cg(n)||cn(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof n}"`)},Tt={};Tt.text=Tt.email=Tt.password=Tt.number=Tt.tel=Tt.url=Tt.search=Tt.date=Tt["datetime-local"]=Tt.time=Tt.week=Tt.month=(e,n)=>(Nc(e,n.inputValue),Oo(e,e,n),wg(e,n),e.type=n.input,e);Tt.file=(e,n)=>(Oo(e,e,n),wg(e,n),e);Tt.range=(e,n)=>{const a=e.querySelector("input"),r=e.querySelector("output");return Nc(a,n.inputValue),a.type=n.input,Nc(r,n.inputValue),Oo(a,e,n),e};Tt.select=(e,n)=>{if(e.textContent="",n.inputPlaceholder){const a=document.createElement("option");_n(a,n.inputPlaceholder),a.value="",a.disabled=!0,a.selected=!0,e.appendChild(a)}return Oo(e,e,n),e};Tt.radio=e=>(e.textContent="",e);Tt.checkbox=(e,n)=>{const a=rd(Je(),"checkbox");a.value="1",a.checked=!!n.inputValue;const r=e.querySelector("span");return _n(r,n.inputPlaceholder||n.inputLabel),a};Tt.textarea=(e,n)=>{Nc(e,n.inputValue),wg(e,n),Oo(e,e,n);const a=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(Je()).width),o=()=>{if(!document.body.contains(e))return;const u=e.offsetWidth+a(e);u>r?Je().style.width=`${u}px`:Hr(Je(),"width",n.width)};new MutationObserver(o).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const qR=(e,n)=>{const a=dg();a&&(pg(a),Dn(a,n,"htmlContainer"),n.html?(vg(n.html,a),qt(a,"block")):n.text?(a.textContent=n.text,qt(a,"block")):an(a),HR(e,n))},QR=(e,n)=>{const a=Hx();a&&(pg(a),Do(a,n.footer,"block"),n.footer&&vg(n.footer,a),Dn(a,n,"footer"))},GR=(e,n)=>{const a=ft.innerParams.get(e),r=tl();if(!r)return;if(a&&n.icon===a.icon){cw(r,n),uw(r,n);return}if(!n.icon&&!n.iconHtml){an(r);return}if(n.icon&&Object.keys(Rc).indexOf(n.icon)===-1){Qr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${n.icon}"`),an(r);return}qt(r),cw(r,n),uw(r,n),We(r,n.showClass&&n.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",qx)},uw=(e,n)=>{for(const[a,r]of Object.entries(Rc))n.icon!==a&&na(e,r);We(e,n.icon&&Rc[n.icon]),XR(e,n),qx(),Dn(e,n,"icon")},qx=()=>{const e=Je();if(!e)return;const n=window.getComputedStyle(e).getPropertyValue("background-color"),a=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<a.length;r++)a[r].style.backgroundColor=n},$R=`
<div class="swal2-success-circular-line-left"></div>
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
<div class="swal2-success-circular-line-right"></div>
`,YR=`
<span class="swal2-x-mark">
<span class="swal2-x-mark-line-left"></span>
<span class="swal2-x-mark-line-right"></span>
</span>
`,cw=(e,n)=>{if(!n.icon&&!n.iconHtml)return;let a=e.innerHTML,r="";n.iconHtml?r=dw(n.iconHtml):n.icon==="success"?(r=$R,a=a.replace(/ style=".*?"/g,"")):n.icon==="error"?r=YR:n.icon&&(r=dw({question:"?",warning:"!",info:"i"}[n.icon])),a.trim()!==r.trim()&&_n(e,r)},XR=(e,n)=>{if(n.iconColor){e.style.color=n.iconColor,e.style.borderColor=n.iconColor;for(const a of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])lw(e,a,"background-color",n.iconColor);lw(e,".swal2-success-ring","border-color",n.iconColor)}},dw=e=>`<div class="${Y["icon-content"]}">${e}</div>`,KR=(e,n)=>{const a=Ux();if(a){if(!n.imageUrl){an(a);return}qt(a,""),a.setAttribute("src",n.imageUrl),a.setAttribute("alt",n.imageAlt||""),Hr(a,"width",n.imageWidth),Hr(a,"height",n.imageHeight),a.className=Y.image,Dn(a,n,"image")}};let bg=!1,Qx=0,Gx=0,$x=0,Yx=0;const ZR=e=>{e.addEventListener("mousedown",Tc),document.body.addEventListener("mousemove",kc),e.addEventListener("mouseup",Mc),e.addEventListener("touchstart",Tc),document.body.addEventListener("touchmove",kc),e.addEventListener("touchend",Mc)},JR=e=>{e.removeEventListener("mousedown",Tc),document.body.removeEventListener("mousemove",kc),e.removeEventListener("mouseup",Mc),e.removeEventListener("touchstart",Tc),document.body.removeEventListener("touchmove",kc),e.removeEventListener("touchend",Mc)},Tc=e=>{const n=Je();if(e.target===n||tl().contains(e.target)){bg=!0;const a=Xx(e);Qx=a.clientX,Gx=a.clientY,$x=parseInt(n.style.insetInlineStart)||0,Yx=parseInt(n.style.insetBlockStart)||0,We(n,"swal2-dragging")}},kc=e=>{const n=Je();if(bg){let{clientX:a,clientY:r}=Xx(e);n.style.insetInlineStart=`${$x+(a-Qx)}px`,n.style.insetBlockStart=`${Yx+(r-Gx)}px`}},Mc=()=>{const e=Je();bg=!1,na(e,"swal2-dragging")},Xx=e=>{let n=0,a=0;return e.type.startsWith("mouse")?(n=e.clientX,a=e.clientY):e.type.startsWith("touch")&&(n=e.touches[0].clientX,a=e.touches[0].clientY),{clientX:n,clientY:a}},WR=(e,n)=>{const a=fn(),r=Je();if(!(!a||!r)){if(n.toast){Hr(a,"width",n.width),r.style.width="100%";const o=al();o&&r.insertBefore(o,tl())}else Hr(r,"width",n.width);Hr(r,"padding",n.padding),n.color&&(r.style.color=n.color),n.background&&(r.style.background=n.background),an(nd()),eN(r,n),n.draggable&&!n.toast?(We(r,Y.draggable),ZR(r)):(na(r,Y.draggable),JR(r))}},eN=(e,n)=>{const a=n.showClass||{};e.className=`${Y.popup} ${bn(e)?a.popup:""}`,n.toast?(We([document.documentElement,document.body],Y["toast-shown"]),We(e,Y.toast)):We(e,Y.modal),Dn(e,n,"popup"),typeof n.customClass=="string"&&We(e,n.customClass),n.icon&&We(e,Y[`icon-${n.icon}`])},tN=(e,n)=>{const a=fg();if(!a)return;const{progressSteps:r,currentProgressStep:o}=n;if(!r||r.length===0||o===void 0){an(a);return}qt(a),a.textContent="",o>=r.length&&cn("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((u,f)=>{const m=nN(u);if(a.appendChild(m),f===o&&We(m,Y["active-progress-step"]),f!==r.length-1){const p=aN(n);a.appendChild(p)}})},nN=e=>{const n=document.createElement("li");return We(n,Y["progress-step"]),_n(n,e),n},aN=e=>{const n=document.createElement("li");return We(n,Y["progress-step-line"]),e.progressStepsDistance&&Hr(n,"width",e.progressStepsDistance),n},iN=(e,n)=>{const a=Lx();a&&(pg(a),Do(a,n.title||n.titleText,"block"),n.title&&vg(n.title,a),n.titleText&&(a.innerText=n.titleText),Dn(a,n,"title"))},Kx=(e,n)=>{WR(e,n),_R(e,n),tN(e,n),GR(e,n),KR(e,n),iN(e,n),OR(e,n),qR(e,n),kR(e,n),QR(e,n);const a=Je();typeof n.didRender=="function"&&a&&n.didRender(a),Ee.eventEmitter.emit("didRender",a)},rN=()=>bn(Je()),Zx=()=>{var e;return(e=Ma())===null||e===void 0?void 0:e.click()},sN=()=>{var e;return(e=Gr())===null||e===void 0?void 0:e.click()},lN=()=>{var e;return(e=nl())===null||e===void 0?void 0:e.click()},il=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Jx=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},oN=(e,n,a)=>{Jx(e),n.toast||(e.keydownHandler=r=>cN(n,r,a),e.keydownTarget=n.keydownListenerCapture?window:Je(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},km=(e,n)=>{var a;const r=mg();if(r.length){e=e+n,e===-2&&(e=r.length-1),e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();return}(a=Je())===null||a===void 0||a.focus()},Wx=["ArrowRight","ArrowDown"],uN=["ArrowLeft","ArrowUp"],cN=(e,n,a)=>{e&&(n.isComposing||n.keyCode===229||(e.stopKeydownPropagation&&n.stopPropagation(),n.key==="Enter"?dN(n,e):n.key==="Tab"?fN(n):[...Wx,...uN].includes(n.key)?hN(n.key):n.key==="Escape"&&mN(n,e,a)))},dN=(e,n)=>{if(!td(n.allowEnterKey))return;const a=rd(Je(),n.input);if(e.target&&a&&e.target instanceof HTMLElement&&e.target.outerHTML===a.outerHTML){if(["textarea","file"].includes(n.input))return;Zx(),e.preventDefault()}},fN=e=>{const n=e.target,a=mg();let r=-1;for(let o=0;o<a.length;o++)if(n===a[o]){r=o;break}e.shiftKey?km(r,-1):km(r,1),e.stopPropagation(),e.preventDefault()},hN=e=>{const n=Mo(),a=Ma(),r=Gr(),o=nl();if(!n||!a||!r||!o)return;const u=[a,r,o];if(document.activeElement instanceof HTMLElement&&!u.includes(document.activeElement))return;const f=Wx.includes(e)?"nextElementSibling":"previousElementSibling";let m=document.activeElement;if(m){for(let p=0;p<n.children.length;p++){if(m=m[f],!m)return;if(m instanceof HTMLButtonElement&&bn(m))break}m instanceof HTMLButtonElement&&m.focus()}},mN=(e,n,a)=>{td(n.allowEscapeKey)&&(e.preventDefault(),a(il.esc))};var $s={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const gN=()=>{const e=fn();Array.from(document.body.children).forEach(a=>{a.contains(e)||(a.hasAttribute("aria-hidden")&&a.setAttribute("data-previous-aria-hidden",a.getAttribute("aria-hidden")||""),a.setAttribute("aria-hidden","true"))})},e2=()=>{Array.from(document.body.children).forEach(n=>{n.hasAttribute("data-previous-aria-hidden")?(n.setAttribute("aria-hidden",n.getAttribute("data-previous-aria-hidden")||""),n.removeAttribute("data-previous-aria-hidden")):n.removeAttribute("aria-hidden")})},t2=typeof window<"u"&&!!window.GestureEvent,pN=()=>{if(t2&&!ri(document.body,Y.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,We(document.body,Y.iosfix),yN()}},yN=()=>{const e=fn();if(!e)return;let n;e.ontouchstart=a=>{n=vN(a)},e.ontouchmove=a=>{n&&(a.preventDefault(),a.stopPropagation())}},vN=e=>{const n=e.target,a=fn(),r=dg();return!a||!r||wN(e)||bN(e)?!1:n===a||!ow(a)&&n instanceof HTMLElement&&n.tagName!=="INPUT"&&n.tagName!=="TEXTAREA"&&!(ow(r)&&r.contains(n))},wN=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",bN=e=>e.touches&&e.touches.length>1,xN=()=>{if(ri(document.body,Y.iosfix)){const e=parseInt(document.body.style.top,10);na(document.body,Y.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},SN=()=>{const e=document.createElement("div");e.className=Y["scrollbar-measure"],document.body.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),n};let Ms=null;const AN=e=>{Ms===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(Ms=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ms+SN()}px`)},CN=()=>{Ms!==null&&(document.body.style.paddingRight=`${Ms}px`,Ms=null)};function n2(e,n,a,r){id()?fw(e,r):(uR(a).then(()=>fw(e,r)),Jx(Ee)),t2?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),gg()&&(CN(),xN(),e2()),EN()}function EN(){na([document.documentElement,document.body],[Y.shown,Y["height-auto"],Y["no-backdrop"],Y["toast-shown"]])}function $i(e){e=RN(e);const n=$s.swalPromiseResolve.get(this),a=jN(this);this.isAwaitingPromise?e.isDismissed||(_o(this),n(e)):a&&n(e)}const jN=e=>{const n=Je();if(!n)return!1;const a=ft.innerParams.get(e);if(!a||ri(n,a.hideClass.popup))return!1;na(n,a.showClass.popup),We(n,a.hideClass.popup);const r=fn();return na(r,a.showClass.backdrop),We(r,a.hideClass.backdrop),NN(e,n,a),!0};function a2(e){const n=$s.swalPromiseReject.get(this);_o(this),n&&n(e)}const _o=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,ft.innerParams.get(e)||e._destroy())},RN=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),NN=(e,n,a)=>{var r;const o=fn(),u=Vx(n);typeof a.willClose=="function"&&a.willClose(n),(r=Ee.eventEmitter)===null||r===void 0||r.emit("willClose",n),u?TN(e,n,o,a.returnFocus,a.didClose):n2(e,o,a.returnFocus,a.didClose)},TN=(e,n,a,r,o)=>{Ee.swalCloseEventFinishedCallback=n2.bind(null,e,a,r,o);const u=function(f){if(f.target===n){var m;(m=Ee.swalCloseEventFinishedCallback)===null||m===void 0||m.call(Ee),delete Ee.swalCloseEventFinishedCallback,n.removeEventListener("animationend",u),n.removeEventListener("transitionend",u)}};n.addEventListener("animationend",u),n.addEventListener("transitionend",u)},fw=(e,n)=>{setTimeout(()=>{var a;typeof n=="function"&&n.bind(e.params)(),(a=Ee.eventEmitter)===null||a===void 0||a.emit("didClose"),e._destroy&&e._destroy()})},Ys=e=>{let n=Je();if(n||new Tn,n=Je(),!n)return;const a=al();id()?an(tl()):kN(n,e),qt(a),n.setAttribute("data-loading","true"),n.setAttribute("aria-busy","true"),n.focus()},kN=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n&&bn(Ma())&&(n=Ma()),qt(a),n&&(an(n),r.setAttribute("data-button-to-replace",n.className),a.insertBefore(r,n)),We([e,a],Y.loading))},MN=(e,n)=>{n.input==="select"||n.input==="radio"?zN(e,n):["text","email","number","tel","textarea"].some(a=>a===n.input)&&(ug(n.inputValue)||cg(n.inputValue))&&(Ys(Ma()),LN(e,n))},DN=(e,n)=>{const a=e.getInput();if(!a)return null;switch(n.input){case"checkbox":return ON(a);case"radio":return _N(a);case"file":return BN(a);default:return n.inputAutoTrim?a.value.trim():a.value}},ON=e=>e.checked?1:0,_N=e=>e.checked?e.value:null,BN=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,zN=(e,n)=>{const a=Je();if(!a)return;const r=o=>{n.input==="select"?UN(a,Dc(o),n):n.input==="radio"&&HN(a,Dc(o),n)};ug(n.inputOptions)||cg(n.inputOptions)?(Ys(Ma()),To(n.inputOptions).then(o=>{e.hideLoading(),r(o)})):typeof n.inputOptions=="object"?r(n.inputOptions):Qr(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof n.inputOptions}`)},LN=(e,n)=>{const a=e.getInput();a&&(an(a),To(n.inputValue).then(r=>{a.value=n.input==="number"?`${parseFloat(r)||0}`:`${r}`,qt(a),a.focus(),e.hideLoading()}).catch(r=>{Qr(`Error in inputValue promise: ${r}`),a.value="",qt(a),a.focus(),e.hideLoading()}))};function UN(e,n,a){const r=Gi(e,Y.select);if(!r)return;const o=(u,f,m)=>{const p=document.createElement("option");p.value=m,_n(p,f),p.selected=i2(m,a.inputValue),u.appendChild(p)};n.forEach(u=>{const f=u[0],m=u[1];if(Array.isArray(m)){const p=document.createElement("optgroup");p.label=f,p.disabled=!1,r.appendChild(p),m.forEach(g=>o(p,g[1],g[0]))}else o(r,m,f)}),r.focus()}function HN(e,n,a){const r=Gi(e,Y.radio);if(!r)return;n.forEach(u=>{const f=u[0],m=u[1],p=document.createElement("input"),g=document.createElement("label");p.type="radio",p.name=Y.radio,p.value=f,i2(f,a.inputValue)&&(p.checked=!0);const y=document.createElement("span");_n(y,m),y.className=Y.label,g.appendChild(p),g.appendChild(y),r.appendChild(g)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}const Dc=e=>{const n=[];return e instanceof Map?e.forEach((a,r)=>{let o=a;typeof o=="object"&&(o=Dc(o)),n.push([r,o])}):Object.keys(e).forEach(a=>{let r=e[a];typeof r=="object"&&(r=Dc(r)),n.push([a,r])}),n},i2=(e,n)=>!!n&&n.toString()===e.toString(),FN=e=>{const n=ft.innerParams.get(e);e.disableButtons(),n.input?r2(e,"confirm"):Sg(e,!0)},PN=e=>{const n=ft.innerParams.get(e);e.disableButtons(),n.returnInputValueOnDeny?r2(e,"deny"):xg(e,!1)},VN=(e,n)=>{e.disableButtons(),n(il.cancel)},r2=(e,n)=>{const a=ft.innerParams.get(e);if(!a.input){Qr(`The "input" parameter is needed to be set when using returnInputValueOn${og(n)}`);return}const r=e.getInput(),o=DN(e,a);a.inputValidator?IN(e,o,n):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(a.validationMessage||r.validationMessage)):n==="deny"?xg(e,o):Sg(e,o)},IN=(e,n,a)=>{const r=ft.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>To(r.inputValidator(n,r.validationMessage))).then(u=>{e.enableButtons(),e.enableInput(),u?e.showValidationMessage(u):a==="deny"?xg(e,n):Sg(e,n)})},xg=(e,n)=>{const a=ft.innerParams.get(e||void 0);a.showLoaderOnDeny&&Ys(Gr()),a.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>To(a.preDeny(n,a.validationMessage))).then(o=>{o===!1?(e.hideLoading(),_o(e)):e.close({isDenied:!0,value:typeof o>"u"?n:o})}).catch(o=>s2(e||void 0,o))):e.close({isDenied:!0,value:n})},hw=(e,n)=>{e.close({isConfirmed:!0,value:n})},s2=(e,n)=>{e.rejectPromise(n)},Sg=(e,n)=>{const a=ft.innerParams.get(e||void 0);a.showLoaderOnConfirm&&Ys(),a.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>To(a.preConfirm(n,a.validationMessage))).then(o=>{bn(nd())||o===!1?(e.hideLoading(),_o(e)):hw(e,typeof o>"u"?n:o)}).catch(o=>s2(e||void 0,o))):hw(e,n)};function Oc(){const e=ft.innerParams.get(this);if(!e)return;const n=ft.domCache.get(this);an(n.loader),id()?e.icon&&qt(tl()):qN(n),na([n.popup,n.actions],Y.loading),n.popup.removeAttribute("aria-busy"),n.popup.removeAttribute("data-loading"),n.confirmButton.disabled=!1,n.denyButton.disabled=!1,n.cancelButton.disabled=!1}const qN=e=>{const n=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));n.length?qt(n[0],"inline-block"):vR()&&an(e.actions)};function l2(){const e=ft.innerParams.get(this),n=ft.domCache.get(this);return n?rd(n.popup,e.input):null}function o2(e,n,a){const r=ft.domCache.get(e);n.forEach(o=>{r[o].disabled=a})}function u2(e,n){const a=Je();if(!(!a||!e))if(e.type==="radio"){const r=a.querySelectorAll(`[name="${Y.radio}"]`);for(let o=0;o<r.length;o++)r[o].disabled=n}else e.disabled=n}function c2(){o2(this,["confirmButton","denyButton","cancelButton"],!1)}function d2(){o2(this,["confirmButton","denyButton","cancelButton"],!0)}function f2(){u2(this.getInput(),!1)}function h2(){u2(this.getInput(),!0)}function m2(e){const n=ft.domCache.get(this),a=ft.innerParams.get(this);_n(n.validationMessage,e),n.validationMessage.className=Y["validation-message"],a.customClass&&a.customClass.validationMessage&&We(n.validationMessage,a.customClass.validationMessage),qt(n.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",Y["validation-message"]),Fx(r),We(r,Y.inputerror))}function g2(){const e=ft.domCache.get(this);e.validationMessage&&an(e.validationMessage);const n=this.getInput();n&&(n.removeAttribute("aria-invalid"),n.removeAttribute("aria-describedby"),na(n,Y.inputerror))}const Ds={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:"&times;",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:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},QN=["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"],GN={allowEnterKey:void 0},$N=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],p2=e=>Object.prototype.hasOwnProperty.call(Ds,e),y2=e=>QN.indexOf(e)!==-1,v2=e=>GN[e],YN=e=>{p2(e)||cn(`Unknown parameter "${e}"`)},XN=e=>{$N.includes(e)&&cn(`The parameter "${e}" is incompatible with toasts`)},KN=e=>{const n=v2(e);n&&zx(e,n)},w2=e=>{e.backdrop===!1&&e.allowOutsideClick&&cn('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","embed-iframe"].includes(e.theme)&&cn(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "minimal", "borderless", or "embed-iframe"`);for(const n in e)YN(n),e.toast&&XN(n),KN(n)};function b2(e){const n=fn(),a=Je(),r=ft.innerParams.get(this);if(!a||ri(a,r.hideClass.popup)){cn("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 o=ZN(e),u=Object.assign({},r,o);w2(u),n.dataset.swal2Theme=u.theme,Kx(this,u),ft.innerParams.set(this,u),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ZN=e=>{const n={};return Object.keys(e).forEach(a=>{y2(a)?n[a]=e[a]:cn(`Invalid parameter to update: ${a}`)}),n};function x2(){const e=ft.domCache.get(this),n=ft.innerParams.get(this);if(!n){S2(this);return}e.popup&&Ee.swalCloseEventFinishedCallback&&(Ee.swalCloseEventFinishedCallback(),delete Ee.swalCloseEventFinishedCallback),typeof n.didDestroy=="function"&&n.didDestroy(),Ee.eventEmitter.emit("didDestroy"),JN(this)}const JN=e=>{S2(e),delete e.params,delete Ee.keydownHandler,delete Ee.keydownTarget,delete Ee.currentInstance},S2=e=>{e.isAwaitingPromise?(Qh(ft,e),e.isAwaitingPromise=!0):(Qh($s,e),Qh(ft,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)},Qh=(e,n)=>{for(const a in e)e[a].delete(n)};var WN=Object.freeze({__proto__:null,_destroy:x2,close:$i,closeModal:$i,closePopup:$i,closeToast:$i,disableButtons:d2,disableInput:h2,disableLoading:Oc,enableButtons:c2,enableInput:f2,getInput:l2,handleAwaitingPromise:_o,hideLoading:Oc,rejectPromise:a2,resetValidationMessage:g2,showValidationMessage:m2,update:b2});const e5=(e,n,a)=>{e.toast?t5(e,n,a):(a5(n),i5(n),r5(e,n,a))},t5=(e,n,a)=>{n.popup.onclick=()=>{e&&(n5(e)||e.timer||e.input)||a(il.close)}},n5=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let _c=!1;const a5=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(n){e.container.onmouseup=()=>{},n.target===e.container&&(_c=!0)}}},i5=e=>{e.container.onmousedown=n=>{n.target===e.container&&n.preventDefault(),e.popup.onmouseup=function(a){e.popup.onmouseup=()=>{},(a.target===e.popup||a.target instanceof HTMLElement&&e.popup.contains(a.target))&&(_c=!0)}}},r5=(e,n,a)=>{n.container.onclick=r=>{if(_c){_c=!1;return}r.target===n.container&&td(e.allowOutsideClick)&&a(il.backdrop)}},s5=e=>typeof e=="object"&&e.jquery,mw=e=>e instanceof Element||s5(e),l5=e=>{const n={};return typeof e[0]=="object"&&!mw(e[0])?Object.assign(n,e[0]):["title","html","icon"].forEach((a,r)=>{const o=e[r];typeof o=="string"||mw(o)?n[a]=o:o!==void 0&&Qr(`Unexpected type of ${a}! Expected "string" or "Element", got ${typeof o}`)}),n};function o5(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return new this(...n)}function u5(e){class n extends this{_main(r,o){return super._main(r,Object.assign({},e,o))}}return n}const c5=()=>Ee.timeout&&Ee.timeout.getTimerLeft(),A2=()=>{if(Ee.timeout)return wR(),Ee.timeout.stop()},C2=()=>{if(Ee.timeout){const e=Ee.timeout.start();return yg(e),e}},d5=()=>{const e=Ee.timeout;return e&&(e.running?A2():C2())},f5=e=>{if(Ee.timeout){const n=Ee.timeout.increase(e);return yg(n,!0),n}},h5=()=>!!(Ee.timeout&&Ee.timeout.isRunning());let gw=!1;const Mm={};function m5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Mm[e]=this,gw||(document.body.addEventListener("click",g5),gw=!0)}const g5=e=>{for(let n=e.target;n&&n!==document;n=n.parentNode)for(const a in Mm){const r=n.getAttribute(a);if(r){Mm[a].fire({template:r});return}}};class p5{constructor(){this.events={}}_getHandlersByEventName(n){return typeof this.events[n]>"u"&&(this.events[n]=[]),this.events[n]}on(n,a){const r=this._getHandlersByEventName(n);r.includes(a)||r.push(a)}once(n,a){var r=this;const o=function(){r.removeListener(n,o);for(var u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];a.apply(r,f)};this.on(n,o)}emit(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];this._getHandlersByEventName(n).forEach(u=>{try{u.apply(this,r)}catch(f){console.error(f)}})}removeListener(n,a){const r=this._getHandlersByEventName(n),o=r.indexOf(a);o>-1&&r.splice(o,1)}removeAllListeners(n){this.events[n]!==void 0&&(this.events[n].length=0)}reset(){this.events={}}}Ee.eventEmitter=new p5;const y5=(e,n)=>{Ee.eventEmitter.on(e,n)},v5=(e,n)=>{Ee.eventEmitter.once(e,n)},w5=(e,n)=>{if(!e){Ee.eventEmitter.reset();return}n?Ee.eventEmitter.removeListener(e,n):Ee.eventEmitter.removeAllListeners(e)};var b5=Object.freeze({__proto__:null,argsToParams:l5,bindClickHandler:m5,clickCancel:lN,clickConfirm:Zx,clickDeny:sN,enableLoading:Ys,fire:o5,getActions:Mo,getCancelButton:nl,getCloseButton:hg,getConfirmButton:Ma,getContainer:fn,getDenyButton:Gr,getFocusableElements:mg,getFooter:Hx,getHtmlContainer:dg,getIcon:tl,getIconContent:hR,getImage:Ux,getInputLabel:mR,getLoader:al,getPopup:Je,getProgressSteps:fg,getTimerLeft:c5,getTimerProgressBar:ad,getTitle:Lx,getValidationMessage:nd,increaseTimer:f5,isDeprecatedParameter:v2,isLoading:pR,isTimerRunning:h5,isUpdatableParameter:y2,isValidParameter:p2,isVisible:rN,mixin:u5,off:w5,on:y5,once:v5,resumeTimer:C2,showLoading:Ys,stopTimer:A2,toggleTimer:d5});class x5{constructor(n,a){this.callback=n,this.remaining=a,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(n){const a=this.running;return a&&this.stop(),this.remaining+=n,a&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const E2=["swal-title","swal-html","swal-footer"],S5=e=>{const n=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!n)return{};const a=n.content;return k5(a),Object.assign(A5(a),C5(a),E5(a),j5(a),R5(a),N5(a),T5(a,E2))},A5=e=>{const n={};return Array.from(e.querySelectorAll("swal-param")).forEach(r=>{Ir(r,["name","value"]);const o=r.getAttribute("name"),u=r.getAttribute("value");!o||!u||(typeof Ds[o]=="boolean"?n[o]=u!=="false":typeof Ds[o]=="object"?n[o]=JSON.parse(u):n[o]=u)}),n},C5=e=>{const n={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(r=>{const o=r.getAttribute("name"),u=r.getAttribute("value");!o||!u||(n[o]=new Function(`return ${u}`)())}),n},E5=e=>{const n={};return Array.from(e.querySelectorAll("swal-button")).forEach(r=>{Ir(r,["type","color","aria-label"]);const o=r.getAttribute("type");!o||!["confirm","cancel","deny"].includes(o)||(n[`${o}ButtonText`]=r.innerHTML,n[`show${og(o)}Button`]=!0,r.hasAttribute("color")&&(n[`${o}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(n[`${o}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),n},j5=e=>{const n={},a=e.querySelector("swal-image");return a&&(Ir(a,["src","width","height","alt"]),a.hasAttribute("src")&&(n.imageUrl=a.getAttribute("src")||void 0),a.hasAttribute("width")&&(n.imageWidth=a.getAttribute("width")||void 0),a.hasAttribute("height")&&(n.imageHeight=a.getAttribute("height")||void 0),a.hasAttribute("alt")&&(n.imageAlt=a.getAttribute("alt")||void 0)),n},R5=e=>{const n={},a=e.querySelector("swal-icon");return a&&(Ir(a,["type","color"]),a.hasAttribute("type")&&(n.icon=a.getAttribute("type")),a.hasAttribute("color")&&(n.iconColor=a.getAttribute("color")),n.iconHtml=a.innerHTML),n},N5=e=>{const n={},a=e.querySelector("swal-input");a&&(Ir(a,["type","label","placeholder","value"]),n.input=a.getAttribute("type")||"text",a.hasAttribute("label")&&(n.inputLabel=a.getAttribute("label")),a.hasAttribute("placeholder")&&(n.inputPlaceholder=a.getAttribute("placeholder")),a.hasAttribute("value")&&(n.inputValue=a.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(n.inputOptions={},r.forEach(o=>{Ir(o,["value"]);const u=o.getAttribute("value");if(!u)return;const f=o.innerHTML;n.inputOptions[u]=f})),n},T5=(e,n)=>{const a={};for(const r in n){const o=n[r],u=e.querySelector(o);u&&(Ir(u,[]),a[o.replace(/^swal-/,"")]=u.innerHTML.trim())}return a},k5=e=>{const n=E2.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(a=>{const r=a.tagName.toLowerCase();n.includes(r)||cn(`Unrecognized element <${r}>`)})},Ir=(e,n)=>{Array.from(e.attributes).forEach(a=>{n.indexOf(a.name)===-1&&cn([`Unrecognized attribute "${a.name}" on <${e.tagName.toLowerCase()}>.`,`${n.length?`Allowed attributes are: ${n.join(", ")}`:"To set the value, use HTML within the element."}`])})},j2=10,M5=e=>{const n=fn(),a=Je();typeof e.willOpen=="function"&&e.willOpen(a),Ee.eventEmitter.emit("willOpen",a);const o=window.getComputedStyle(document.body).overflowY;_5(n,a,e),setTimeout(()=>{D5(n,a)},j2),gg()&&(O5(n,e.scrollbarPadding,o),gN()),!id()&&!Ee.previousActiveElement&&(Ee.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(a)),Ee.eventEmitter.emit("didOpen",a),na(n,Y["no-transition"])},Bc=e=>{const n=Je();if(e.target!==n)return;const a=fn();n.removeEventListener("animationend",Bc),n.removeEventListener("transitionend",Bc),a.style.overflowY="auto"},D5=(e,n)=>{Vx(n)?(e.style.overflowY="hidden",n.addEventListener("animationend",Bc),n.addEventListener("transitionend",Bc)):e.style.overflowY="auto"},O5=(e,n,a)=>{pN(),n&&a!=="hidden"&&AN(a),setTimeout(()=>{e.scrollTop=0})},_5=(e,n,a)=>{We(e,a.showClass.backdrop),a.animation?(n.style.setProperty("opacity","0","important"),qt(n,"grid"),setTimeout(()=>{We(n,a.showClass.popup),n.style.removeProperty("opacity")},j2)):qt(n,"grid"),We([document.documentElement,document.body],Y.shown),a.heightAuto&&a.backdrop&&!a.toast&&We([document.documentElement,document.body],Y["height-auto"])};var pw={email:(e,n)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid email address"),url:(e,n)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid URL")};function B5(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=pw.email),e.input==="url"&&(e.inputValidator=pw.url))}function z5(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(cn('Target parameter is not valid, defaulting to "body"'),e.target="body")}function L5(e){B5(e),e.showLoaderOnConfirm&&!e.preConfirm&&cn(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),z5(e),typeof e.title=="string"&&(e.title=e.title.split(`
`).join("<br />")),RR(e)}let Ea;var ac=new WeakMap;class Mt{constructor(){if(rR(this,ac,void 0),typeof window>"u")return;Ea=this;for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];const o=Object.freeze(this.constructor.argsToParams(a));this.params=o,this.isAwaitingPromise=!1,sR(ac,this,this._main(Ea.params))}_main(n){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w2(Object.assign({},a,n)),Ee.currentInstance){const u=$s.swalPromiseResolve.get(Ee.currentInstance),{isAwaitingPromise:f}=Ee.currentInstance;Ee.currentInstance._destroy(),f||u({isDismissed:!0}),gg()&&e2()}Ee.currentInstance=Ea;const r=H5(n,a);L5(r),Object.freeze(r),Ee.timeout&&(Ee.timeout.stop(),delete Ee.timeout),clearTimeout(Ee.restoreFocusTimeout);const o=F5(Ea);return Kx(Ea,r),ft.innerParams.set(Ea,r),U5(Ea,o,r)}then(n){return rw(ac,this).then(n)}finally(n){return rw(ac,this).finally(n)}}const U5=(e,n,a)=>new Promise((r,o)=>{const u=f=>{e.close({isDismissed:!0,dismiss:f})};$s.swalPromiseResolve.set(e,r),$s.swalPromiseReject.set(e,o),n.confirmButton.onclick=()=>{FN(e)},n.denyButton.onclick=()=>{PN(e)},n.cancelButton.onclick=()=>{VN(e,u)},n.closeButton.onclick=()=>{u(il.close)},e5(a,n,u),oN(Ee,a,u),MN(e,a),M5(a),P5(Ee,a,u),V5(n,a),setTimeout(()=>{n.container.scrollTop=0})}),H5=(e,n)=>{const a=S5(e),r=Object.assign({},Ds,n,a,e);return r.showClass=Object.assign({},Ds.showClass,r.showClass),r.hideClass=Object.assign({},Ds.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},F5=e=>{const n={popup:Je(),container:fn(),actions:Mo(),confirmButton:Ma(),denyButton:Gr(),cancelButton:nl(),loader:al(),closeButton:hg(),validationMessage:nd(),progressSteps:fg()};return ft.domCache.set(e,n),n},P5=(e,n,a)=>{const r=ad();an(r),n.timer&&(e.timeout=new x5(()=>{a("timer"),delete e.timeout},n.timer),n.timerProgressBar&&(qt(r),Dn(r,n,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&yg(n.timer)})))},V5=(e,n)=>{if(!n.toast){if(!td(n.allowEnterKey)){zx("allowEnterKey"),Q5();return}I5(e)||q5(e,n)||km(-1,1)}},I5=e=>{const n=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const a of n)if(a instanceof HTMLElement&&bn(a))return a.focus(),!0;return!1},q5=(e,n)=>n.focusDeny&&bn(e.denyButton)?(e.denyButton.focus(),!0):n.focusCancel&&bn(e.cancelButton)?(e.cancelButton.focus(),!0):n.focusConfirm&&bn(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Q5=()=>{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,n=localStorage.getItem("swal-initiation");n?(e.getTime()-Date.parse(n))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const a=document.createElement("audio");a.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",a.loop=!0,document.body.appendChild(a),setTimeout(()=>{a.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}Mt.prototype.disableButtons=d2;Mt.prototype.enableButtons=c2;Mt.prototype.getInput=l2;Mt.prototype.disableInput=h2;Mt.prototype.enableInput=f2;Mt.prototype.hideLoading=Oc;Mt.prototype.disableLoading=Oc;Mt.prototype.showValidationMessage=m2;Mt.prototype.resetValidationMessage=g2;Mt.prototype.close=$i;Mt.prototype.closePopup=$i;Mt.prototype.closeModal=$i;Mt.prototype.closeToast=$i;Mt.prototype.rejectPromise=a2;Mt.prototype.update=b2;Mt.prototype._destroy=x2;Object.assign(Mt,b5);Object.keys(WN).forEach(e=>{Mt[e]=function(){return Ea&&Ea[e]?Ea[e](...arguments):null}});Mt.DismissReason=il;Mt.version="11.21.0";const Tn=Mt;Tn.default=Tn;typeof document<"u"&&function(e,n){var a=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(a),a.styleSheet)a.styleSheet.disabled||(a.styleSheet.cssText=n);else try{a.innerHTML=n}catch{a.innerText=n}}(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-footer-border-color: #eee;--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-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.1s, box-shadow 0.1s;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--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.1s, box-shadow 0.1s;--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-button-darken-hover: rgba(0, 0, 0, 0.1);--swal2-button-darken-active: rgba(0, 0, 0, 0.2);--swal2-button-transition: box-shadow 0.1s;--swal2-confirm-button-border: 0;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-border: 0;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-border: 0;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--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;align-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:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(var(--swal2-button-darken-hover), var(--swal2-button-darken-hover))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(var(--swal2-button-darken-active), var(--swal2-button-darken-active))}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-button-transition);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:var(--swal2-confirm-button-border);border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:var(--swal2-deny-button-border);border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:var(--swal2-cancel-button-border);border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}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);color:inherit;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-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:1px solid #d9d9d9;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):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}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:scale(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}100%{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 G5=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"}));var Dm=function(e,n){return Dm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(a[o]=r[o])},Dm(e,n)};function $5(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Dm(e,n);function a(){this.constructor=e}e.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}var Vt=function(){return Vt=Object.assign||function(n){for(var a,r=1,o=arguments.length;r<o;r++){a=arguments[r];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(n[u]=a[u])}return n},Vt.apply(this,arguments)};var Gh,yw;function Y5(){if(yw)return Gh;yw=1;var e=!1,n,a,r,o,u,f,m,p,g,y,v,b,x,S,E;function C(){if(!e){e=!0;var z=navigator.userAgent,_=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(z),Z=/(Mac OS X)|(Windows)|(Linux)/.exec(z);if(b=/\b(iPhone|iP[ao]d)/.exec(z),x=/\b(iP[ao]d)/.exec(z),y=/Android/i.exec(z),S=/FBAN\/\w+;/i.exec(z),E=/Mobile/i.exec(z),v=!!/Win64/.exec(z),_){n=_[1]?parseFloat(_[1]):_[5]?parseFloat(_[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var R=/(?:Trident\/(\d+.\d+))/.exec(z);f=R?parseFloat(R[1])+4:n,a=_[2]?parseFloat(_[2]):NaN,r=_[3]?parseFloat(_[3]):NaN,o=_[4]?parseFloat(_[4]):NaN,o?(_=/(?:Chrome\/(\d+\.\d+))/.exec(z),u=_&&_[1]?parseFloat(_[1]):NaN):u=NaN}else n=a=r=u=o=NaN;if(Z){if(Z[1]){var W=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(z);m=W?parseFloat(W[1].replace("_",".")):!0}else m=!1;p=!!Z[2],g=!!Z[3]}else m=p=g=!1}}var k={ie:function(){return C()||n},ieCompatibilityMode:function(){return C()||f>n},ie64:function(){return k.ie()&&v},firefox:function(){return C()||a},opera:function(){return C()||r},webkit:function(){return C()||o},safari:function(){return k.webkit()},chrome:function(){return C()||u},windows:function(){return C()||p},osx:function(){return C()||m},linux:function(){return C()||g},iphone:function(){return C()||b},mobile:function(){return C()||b||x||y||E},nativeApp:function(){return C()||S},android:function(){return C()||y},ipad:function(){return C()||x}};return Gh=k,Gh}var $h,vw;function X5(){if(vw)return $h;vw=1;var e=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};return $h=n,$h}var Yh,ww;function K5(){if(ww)return Yh;ww=1;var e=X5(),n;e.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/function a(r,o){if(!e.canUseDOM||o&&!("addEventListener"in document))return!1;var u="on"+r,f=u in document;if(!f){var m=document.createElement("div");m.setAttribute(u,"return;"),f=typeof m[u]=="function"}return!f&&n&&r==="wheel"&&(f=document.implementation.hasFeature("Events.wheel","3.0")),f}return Yh=a,Yh}var Xh,bw;function Z5(){if(bw)return Xh;bw=1;var e=Y5(),n=K5(),a=10,r=40,o=800;function u(f){var m=0,p=0,g=0,y=0;return"detail"in f&&(p=f.detail),"wheelDelta"in f&&(p=-f.wheelDelta/120),"wheelDeltaY"in f&&(p=-f.wheelDeltaY/120),"wheelDeltaX"in f&&(m=-f.wheelDeltaX/120),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(m=p,p=0),g=m*a,y=p*a,"deltaY"in f&&(y=f.deltaY),"deltaX"in f&&(g=f.deltaX),(g||y)&&f.deltaMode&&(f.deltaMode==1?(g*=r,y*=r):(g*=o,y*=o)),g&&!m&&(m=g<1?-1:1),y&&!p&&(p=y<1?-1:1),{spinX:m,spinY:p,pixelX:g,pixelY:y}}return u.getEventType=function(){return e.firefox()?"DOMMouseScroll":n("wheel")?"wheel":"mousewheel"},Xh=u,Xh}var Kh,xw;function J5(){return xw||(xw=1,Kh=Z5()),Kh}var W5=J5();const eT=zc(W5);function tT(e,n,a,r,o,u){u===void 0&&(u=0);var f=Xs(e,n,u),m=f.width,p=f.height,g=Math.min(m,a),y=Math.min(p,r);return g>y*o?{width:y*o,height:y}:{width:g,height:g/o}}function nT(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function uo(e,n,a,r,o){o===void 0&&(o=0);var u=Xs(n.width,n.height,o),f=u.width,m=u.height;return{x:Sw(e.x,f,a.width,r),y:Sw(e.y,m,a.height,r)}}function Sw(e,n,a,r){var o=n*r/2-a/2;return sd(e,-o,o)}function Aw(e,n){return Math.sqrt(Math.pow(e.y-n.y,2)+Math.pow(e.x-n.x,2))}function Cw(e,n){return Math.atan2(n.y-e.y,n.x-e.x)*180/Math.PI}function aT(e,n,a,r,o,u,f){u===void 0&&(u=0),f===void 0&&(f=!0);var m=f?iT:rT,p=Xs(n.width,n.height,u),g=Xs(n.naturalWidth,n.naturalHeight,u),y={x:m(100,((p.width-a.width/o)/2-e.x/o)/p.width*100),y:m(100,((p.height-a.height/o)/2-e.y/o)/p.height*100),width:m(100,a.width/p.width*100/o),height:m(100,a.height/p.height*100/o)},v=Math.round(m(g.width,y.width*g.width/100)),b=Math.round(m(g.height,y.height*g.height/100)),x=g.width>=g.height*r,S=x?{width:Math.round(b*r),height:b}:{width:v,height:Math.round(v/r)},E=Vt(Vt({},S),{x:Math.round(m(g.width-S.width,y.x*g.width/100)),y:Math.round(m(g.height-S.height,y.y*g.height/100))});return{croppedAreaPercentages:y,croppedAreaPixels:E}}function iT(e,n){return Math.min(e,Math.max(0,n))}function rT(e,n){return n}function sT(e,n,a,r,o,u){var f=Xs(n.width,n.height,a),m=sd(r.width/f.width*(100/e.width),o,u),p={x:m*f.width/2-r.width/2-f.width*m*(e.x/100),y:m*f.height/2-r.height/2-f.height*m*(e.y/100)};return{crop:p,zoom:m}}function lT(e,n,a){var r=nT(n);return a.height>a.width?a.height/(e.height*r):a.width/(e.width*r)}function oT(e,n,a,r,o,u){a===void 0&&(a=0);var f=Xs(n.naturalWidth,n.naturalHeight,a),m=sd(lT(e,n,r),o,u),p=r.height>r.width?r.height/e.height:r.width/e.width,g={x:((f.width-e.width)/2-e.x)*p,y:((f.height-e.height)/2-e.y)*p};return{crop:g,zoom:m}}function Ew(e,n){return{x:(n.x+e.x)/2,y:(n.y+e.y)/2}}function uT(e){return e*Math.PI/180}function Xs(e,n,a){var r=uT(a);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*n),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*n)}}function sd(e,n,a){return Math.min(Math.max(e,n),a)}function ic(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(function(a){return typeof a=="string"&&a.length>0}).join(" ").trim()}var cT=`.reactEasyCrop_Container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
user-select: none;
touch-action: none;
cursor: move;
display: flex;
justify-content: center;
align-items: center;
}
.reactEasyCrop_Image,
.reactEasyCrop_Video {
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
}
.reactEasyCrop_Contain {
max-width: 100%;
max-height: 100%;
margin: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.reactEasyCrop_Cover_Horizontal {
width: 100%;
height: auto;
}
.reactEasyCrop_Cover_Vertical {
width: auto;
height: 100%;
}
.reactEasyCrop_CropArea {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 1px solid rgba(255, 255, 255, 0.5);
box-sizing: border-box;
box-shadow: 0 0 0 9999em;
color: rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.reactEasyCrop_CropAreaRound {
border-radius: 50%;
}
.reactEasyCrop_CropAreaGrid::before {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 0;
bottom: 0;
left: 33.33%;
right: 33.33%;
border-top: 0;
border-bottom: 0;
}
.reactEasyCrop_CropAreaGrid::after {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 33.33%;
bottom: 33.33%;
left: 0;
right: 0;
border-left: 0;
border-right: 0;
}
`,dT=1,fT=3,hT=1,mT=function(e){$5(n,e);function n(){var a=e!==null&&e.apply(this,arguments)||this;return a.cropperRef=j.createRef(),a.imageRef=j.createRef(),a.videoRef=j.createRef(),a.containerPosition={x:0,y:0},a.containerRef=null,a.styleRef=null,a.containerRect=null,a.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},a.dragStartPosition={x:0,y:0},a.dragStartCrop={x:0,y:0},a.gestureZoomStart=0,a.gestureRotationStart=0,a.isTouching=!1,a.lastPinchDistance=0,a.lastPinchRotation=0,a.rafDragTimeout=null,a.rafPinchTimeout=null,a.wheelTimer=null,a.currentDoc=typeof document<"u"?document:null,a.currentWindow=typeof window<"u"?window:null,a.resizeObserver=null,a.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},a.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!a.containerRef)){var r=!0;a.resizeObserver=new window.ResizeObserver(function(o){if(r){r=!1;return}a.computeSizes()}),a.resizeObserver.observe(a.containerRef)}},a.preventZoomSafari=function(r){return r.preventDefault()},a.cleanEvents=function(){a.currentDoc&&(a.currentDoc.removeEventListener("mousemove",a.onMouseMove),a.currentDoc.removeEventListener("mouseup",a.onDragStopped),a.currentDoc.removeEventListener("touchmove",a.onTouchMove),a.currentDoc.removeEventListener("touchend",a.onDragStopped),a.currentDoc.removeEventListener("gesturemove",a.onGestureMove),a.currentDoc.removeEventListener("gestureend",a.onGestureEnd),a.currentDoc.removeEventListener("scroll",a.onScroll))},a.clearScrollEvent=function(){a.containerRef&&a.containerRef.removeEventListener("wheel",a.onWheel),a.wheelTimer&&clearTimeout(a.wheelTimer)},a.onMediaLoad=function(){var r=a.computeSizes();r&&(a.emitCropData(),a.setInitialCrop(r)),a.props.onMediaLoaded&&a.props.onMediaLoaded(a.mediaSize)},a.setInitialCrop=function(r){if(a.props.initialCroppedAreaPercentages){var o=sT(a.props.initialCroppedAreaPercentages,a.mediaSize,a.props.rotation,r,a.props.minZoom,a.props.maxZoom),u=o.crop,f=o.zoom;a.props.onCropChange(u),a.props.onZoomChange&&a.props.onZoomChange(f)}else if(a.props.initialCroppedAreaPixels){var m=oT(a.props.initialCroppedAreaPixels,a.mediaSize,a.props.rotation,r,a.props.minZoom,a.props.maxZoom),u=m.crop,f=m.zoom;a.props.onCropChange(u),a.props.onZoomChange&&a.props.onZoomChange(f)}},a.computeSizes=function(){var r,o,u,f,m,p,g=a.imageRef.current||a.videoRef.current;if(g&&a.containerRef){a.containerRect=a.containerRef.getBoundingClientRect(),a.saveContainerPosition();var y=a.containerRect.width/a.containerRect.height,v=((r=a.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((o=a.videoRef.current)===null||o===void 0?void 0:o.videoWidth)||0,b=((u=a.imageRef.current)===null||u===void 0?void 0:u.naturalHeight)||((f=a.videoRef.current)===null||f===void 0?void 0:f.videoHeight)||0,x=g.offsetWidth<v||g.offsetHeight<b,S=v/b,E=void 0;if(x)switch(a.state.mediaObjectFit){default:case"contain":E=y>S?{width:a.containerRect.height*S,height:a.containerRect.height}:{width:a.containerRect.width,height:a.containerRect.width/S};break;case"horizontal-cover":E={width:a.containerRect.width,height:a.containerRect.width/S};break;case"vertical-cover":E={width:a.containerRect.height*S,height:a.containerRect.height};break}else E={width:g.offsetWidth,height:g.offsetHeight};a.mediaSize=Vt(Vt({},E),{naturalWidth:v,naturalHeight:b}),a.props.setMediaSize&&a.props.setMediaSize(a.mediaSize);var C=a.props.cropSize?a.props.cropSize:tT(a.mediaSize.width,a.mediaSize.height,a.containerRect.width,a.containerRect.height,a.props.aspect,a.props.rotation);return(((m=a.state.cropSize)===null||m===void 0?void 0:m.height)!==C.height||((p=a.state.cropSize)===null||p===void 0?void 0:p.width)!==C.width)&&a.props.onCropSizeChange&&a.props.onCropSizeChange(C),a.setState({cropSize:C},a.recomputeCropPosition),a.props.setCropSize&&a.props.setCropSize(C),C}},a.saveContainerPosition=function(){if(a.containerRef){var r=a.containerRef.getBoundingClientRect();a.containerPosition={x:r.left,y:r.top}}},a.onMouseDown=function(r){a.currentDoc&&(r.preventDefault(),a.currentDoc.addEventListener("mousemove",a.onMouseMove),a.currentDoc.addEventListener("mouseup",a.onDragStopped),a.saveContainerPosition(),a.onDragStart(n.getMousePoint(r)))},a.onMouseMove=function(r){return a.onDrag(n.getMousePoint(r))},a.onScroll=function(r){a.currentDoc&&(r.preventDefault(),a.saveContainerPosition())},a.onTouchStart=function(r){a.currentDoc&&(a.isTouching=!0,!(a.props.onTouchRequest&&!a.props.onTouchRequest(r))&&(a.currentDoc.addEventListener("touchmove",a.onTouchMove,{passive:!1}),a.currentDoc.addEventListener("touchend",a.onDragStopped),a.saveContainerPosition(),r.touches.length===2?a.onPinchStart(r):r.touches.length===1&&a.onDragStart(n.getTouchPoint(r.touches[0]))))},a.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?a.onPinchMove(r):r.touches.length===1&&a.onDrag(n.getTouchPoint(r.touches[0]))},a.onGestureStart=function(r){a.currentDoc&&(r.preventDefault(),a.currentDoc.addEventListener("gesturechange",a.onGestureMove),a.currentDoc.addEventListener("gestureend",a.onGestureEnd),a.gestureZoomStart=a.props.zoom,a.gestureRotationStart=a.props.rotation)},a.onGestureMove=function(r){if(r.preventDefault(),!a.isTouching){var o=n.getMousePoint(r),u=a.gestureZoomStart-1+r.scale;if(a.setNewZoom(u,o,{shouldUpdatePosition:!0}),a.props.onRotationChange){var f=a.gestureRotationStart+r.rotation;a.props.onRotationChange(f)}}},a.onGestureEnd=function(r){a.cleanEvents()},a.onDragStart=function(r){var o,u,f=r.x,m=r.y;a.dragStartPosition={x:f,y:m},a.dragStartCrop=Vt({},a.props.crop),(u=(o=a.props).onInteractionStart)===null||u===void 0||u.call(o)},a.onDrag=function(r){var o=r.x,u=r.y;a.currentWindow&&(a.rafDragTimeout&&a.currentWindow.cancelAnimationFrame(a.rafDragTimeout),a.rafDragTimeout=a.currentWindow.requestAnimationFrame(function(){if(a.state.cropSize&&!(o===void 0||u===void 0)){var f=o-a.dragStartPosition.x,m=u-a.dragStartPosition.y,p={x:a.dragStartCrop.x+f,y:a.dragStartCrop.y+m},g=a.props.restrictPosition?uo(p,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):p;a.props.onCropChange(g)}}))},a.onDragStopped=function(){var r,o;a.isTouching=!1,a.cleanEvents(),a.emitCropData(),(o=(r=a.props).onInteractionEnd)===null||o===void 0||o.call(r)},a.onWheel=function(r){if(a.currentWindow&&!(a.props.onWheelRequest&&!a.props.onWheelRequest(r))){r.preventDefault();var o=n.getMousePoint(r),u=eT(r).pixelY,f=a.props.zoom-u*a.props.zoomSpeed/200;a.setNewZoom(f,o,{shouldUpdatePosition:!0}),a.state.hasWheelJustStarted||a.setState({hasWheelJustStarted:!0},function(){var m,p;return(p=(m=a.props).onInteractionStart)===null||p===void 0?void 0:p.call(m)}),a.wheelTimer&&clearTimeout(a.wheelTimer),a.wheelTimer=a.currentWindow.setTimeout(function(){return a.setState({hasWheelJustStarted:!1},function(){var m,p;return(p=(m=a.props).onInteractionEnd)===null||p===void 0?void 0:p.call(m)})},250)}},a.getPointOnContainer=function(r,o){var u=r.x,f=r.y;if(!a.containerRect)throw new Error("The Cropper is not mounted");return{x:a.containerRect.width/2-(u-o.x),y:a.containerRect.height/2-(f-o.y)}},a.getPointOnMedia=function(r){var o=r.x,u=r.y,f=a.props,m=f.crop,p=f.zoom;return{x:(o+m.x)/p,y:(u+m.y)/p}},a.setNewZoom=function(r,o,u){var f=u===void 0?{}:u,m=f.shouldUpdatePosition,p=m===void 0?!0:m;if(!(!a.state.cropSize||!a.props.onZoomChange)){var g=sd(r,a.props.minZoom,a.props.maxZoom);if(p){var y=a.getPointOnContainer(o,a.containerPosition),v=a.getPointOnMedia(y),b={x:v.x*g-y.x,y:v.y*g-y.y},x=a.props.restrictPosition?uo(b,a.mediaSize,a.state.cropSize,g,a.props.rotation):b;a.props.onCropChange(x)}a.props.onZoomChange(g)}},a.getCropData=function(){if(!a.state.cropSize)return null;var r=a.props.restrictPosition?uo(a.props.crop,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):a.props.crop;return aT(r,a.mediaSize,a.state.cropSize,a.getAspect(),a.props.zoom,a.props.rotation,a.props.restrictPosition)},a.emitCropData=function(){var r=a.getCropData();if(r){var o=r.croppedAreaPercentages,u=r.croppedAreaPixels;a.props.onCropComplete&&a.props.onCropComplete(o,u),a.props.onCropAreaChange&&a.props.onCropAreaChange(o,u)}},a.emitCropAreaChange=function(){var r=a.getCropData();if(r){var o=r.croppedAreaPercentages,u=r.croppedAreaPixels;a.props.onCropAreaChange&&a.props.onCropAreaChange(o,u)}},a.recomputeCropPosition=function(){if(a.state.cropSize){var r=a.props.restrictPosition?uo(a.props.crop,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):a.props.crop;a.props.onCropChange(r),a.emitCropData()}},a.onKeyDown=function(r){var o,u,f=a.props,m=f.crop,p=f.onCropChange,g=f.keyboardStep,y=f.zoom,v=f.rotation,b=g;if(a.state.cropSize){r.shiftKey&&(b*=.2);var x=Vt({},m);switch(r.key){case"ArrowUp":x.y-=b,r.preventDefault();break;case"ArrowDown":x.y+=b,r.preventDefault();break;case"ArrowLeft":x.x-=b,r.preventDefault();break;case"ArrowRight":x.x+=b,r.preventDefault();break;default:return}a.props.restrictPosition&&(x=uo(x,a.mediaSize,a.state.cropSize,y,v)),r.repeat||(u=(o=a.props).onInteractionStart)===null||u===void 0||u.call(o),p(x)}},a.onKeyUp=function(r){var o,u;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}a.emitCropData(),(u=(o=a.props).onInteractionEnd)===null||u===void 0||u.call(o)},a}return n.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=cT,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},n.prototype.componentWillUnmount=function(){var a,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(a=this.resizeObserver)===null||a===void 0||a.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},n.prototype.componentDidUpdate=function(a){var r,o,u,f,m,p,g,y,v;a.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):a.aspect!==this.props.aspect?this.computeSizes():a.objectFit!==this.props.objectFit?this.computeSizes():a.zoom!==this.props.zoom?this.recomputeCropPosition():((r=a.cropSize)===null||r===void 0?void 0:r.height)!==((o=this.props.cropSize)===null||o===void 0?void 0:o.height)||((u=a.cropSize)===null||u===void 0?void 0:u.width)!==((f=this.props.cropSize)===null||f===void 0?void 0:f.width)?this.computeSizes():(((m=a.crop)===null||m===void 0?void 0:m.x)!==((p=this.props.crop)===null||p===void 0?void 0:p.x)||((g=a.crop)===null||g===void 0?void 0:g.y)!==((y=this.props.crop)===null||y===void 0?void 0:y.y))&&this.emitCropAreaChange(),a.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),a.video!==this.props.video&&((v=this.videoRef.current)===null||v===void 0||v.load());var b=this.getObjectFit();b!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:b},this.computeSizes)},n.prototype.getAspect=function(){var a=this.props,r=a.cropSize,o=a.aspect;return r?r.width/r.height:o},n.prototype.getObjectFit=function(){var a,r,o,u;if(this.props.objectFit==="cover"){var f=this.imageRef.current||this.videoRef.current;if(f&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var m=this.containerRect.width/this.containerRect.height,p=((a=this.imageRef.current)===null||a===void 0?void 0:a.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,g=((o=this.imageRef.current)===null||o===void 0?void 0:o.naturalHeight)||((u=this.videoRef.current)===null||u===void 0?void 0:u.videoHeight)||0,y=p/g;return y<m?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},n.prototype.onPinchStart=function(a){var r=n.getTouchPoint(a.touches[0]),o=n.getTouchPoint(a.touches[1]);this.lastPinchDistance=Aw(r,o),this.lastPinchRotation=Cw(r,o),this.onDragStart(Ew(r,o))},n.prototype.onPinchMove=function(a){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var o=n.getTouchPoint(a.touches[0]),u=n.getTouchPoint(a.touches[1]),f=Ew(o,u);this.onDrag(f),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var m=Aw(o,u),p=r.props.zoom*(m/r.lastPinchDistance);r.setNewZoom(p,f,{shouldUpdatePosition:!1}),r.lastPinchDistance=m;var g=Cw(o,u),y=r.props.rotation+(g-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(y),r.lastPinchRotation=g})}},n.prototype.render=function(){var a=this,r,o=this.props,u=o.image,f=o.video,m=o.mediaProps,p=o.cropperProps,g=o.transform,y=o.crop,v=y.x,b=y.y,x=o.rotation,S=o.zoom,E=o.cropShape,C=o.showGrid,k=o.style,z=k.containerStyle,_=k.cropAreaStyle,Z=k.mediaStyle,R=o.classes,W=R.containerClassName,ce=R.cropAreaClassName,re=R.mediaClassName,Q=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return j.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(fe){return a.containerRef=fe},"data-testid":"container",style:z,className:ic("reactEasyCrop_Container",W)},u?j.createElement("img",Vt({alt:"",className:ic("reactEasyCrop_Image",Q==="contain"&&"reactEasyCrop_Contain",Q==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",Q==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",re)},m,{src:u,ref:this.imageRef,style:Vt(Vt({},Z),{transform:g||"translate(".concat(v,"px, ").concat(b,"px) rotate(").concat(x,"deg) scale(").concat(S,")")}),onLoad:this.onMediaLoad})):f&&j.createElement("video",Vt({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:ic("reactEasyCrop_Video",Q==="contain"&&"reactEasyCrop_Contain",Q==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",Q==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",re)},m,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Vt(Vt({},Z),{transform:g||"translate(".concat(v,"px, ").concat(b,"px) rotate(").concat(x,"deg) scale(").concat(S,")")}),controls:!1}),(Array.isArray(f)?f:[{src:f}]).map(function(ne){return j.createElement("source",Vt({key:ne.src},ne))})),this.state.cropSize&&j.createElement("div",Vt({ref:this.cropperRef,style:Vt(Vt({},_),{width:this.state.cropSize.width,height:this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:ic("reactEasyCrop_CropArea",E==="round"&&"reactEasyCrop_CropAreaRound",C&&"reactEasyCrop_CropAreaGrid",ce)},p)))},n.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:fT,minZoom:dT,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:hT},n.getMousePoint=function(a){return{x:Number(a.clientX),y:Number(a.clientY)}},n.getTouchPoint=function(a){return{x:Number(a.clientX),y:Number(a.clientY)}},n}(j.Component);async function gT(e,n){const a=new Image;a.src=e,await new Promise(u=>a.onload=u);const r=document.createElement("canvas"),o=r.getContext("2d");return r.width=n.width,r.height=n.height,o.drawImage(a,n.x,n.y,n.width,n.height,0,0,n.width,n.height),new Promise(u=>{r.toBlob(f=>u(URL.createObjectURL(f)),"image/jpeg")})}const R2=({image:e,onCropComplete:n})=>{const[a,r]=j.useState({x:0,y:0}),[o,u]=j.useState(1),f=j.useCallback(async(m,p)=>{const g=await gT(e,p);n(g)},[e,n]);return d.jsxs("div",{className:"relative w-full h-96 bg-gray-200 flex flex-col items-center justify-center",children:[d.jsx(mT,{image:e,crop:a,zoom:o,aspect:1,onCropChange:r,onZoomChange:u,onCropComplete:f}),d.jsx("button",{className:"mt-4 px-6 py-2 bg-blue-600 text-white font-semibold rounded-lg",onClick:()=>f(),children:"Simpan Crop"})]})};R2.propTypes={image:Be.string.isRequired,onCropComplete:Be.func.isRequired};const Bo="/assets/Ellipse%201-BVGZo3uy.png",zo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA5zSURBVHgB7Z39cxT1Hcffu3d5ziWX8JQglYsBFAkClVQsAySFFrUj0OoPwoyK5ZeOMx3tOP1Z/AvEX/1F7HR02ukUaK2jtUi0Ba08hQFBIZID8kQMEMgTuaft57N3h5fcd2/3br97t4F7zRwke3uXu33v5/H73e8qcDlad7cfHk8bSksXIhJpgqouhKYFoCh+ejr5AG70JV6AYajKMP0Q1H+P4RRUdCOqnULE26msWjUMF6PAZWj9/Xywt9JBX0mPNtoUsPTCpCDmfyFI798JxbMf0fAppeUnnXARrhBEu3KljQ7SNjr7t8KqANOxLEjaXw8CagdisXeV5a0dKDAFE0R3ReXlr5AVbKNfV8IuOQuSComjenfjNj4j1xZEAci7IFpPDx/8nWQNLyLp/2UgRZBUlL0IqW/kW5i8CaLHBk17h35sgxNIFyRJfoVxXBDdNZWVvU4/vgoncUyQJPkRRoWDaAMDr5AY3XBajLyg7URp5JB27uSLcBBHLMRx9yTCcQtJQUEHJj0vOWEt0i1EtwpNO4l8ipFvNPpupdGT2tmj0i1fmoXkLVYYkU8LSUVR9igPP/p7SEKKIAkXtQ8y6olcKZQgOlS/hLztMlyYbZeVEOMQCilGwVECesA/eTIAm9gSRC/y4vEigHseJaDHlTNf2ToxcxZEF0NV2TLkVdszHz8U9ZAdUXISpChGRmyJkrUgeswoimFGXJQcYkpWgqQE8KIY5vhzCfTZWUhcjACKWEThQL+PRLF8AlsWROvrexNFMXJhJcpir1vd2ZIgejvkrmgQFghNe9Vqm8W0Uk/EDa413B03ClqpW2IYIc8qs2re3ELiXdtiELcP9fqi75jtlFEQso6duJu7tvmGusRmrsvQZaWkuAHMBNzvspKw62oymh9mbCGx2G4Usyon8GfKuoQWkrCObriAa7296O3qwvjNmxi7dQtaLIbSigpU1daivqEB8xcvRhn9PoMsJE7cSoLTN3uFO7N1KIWbQxe6fRsXOztx/vhxjA1nnvmp0OdsbG5GQ8MsNC9dAm+JFzOCeIBvn7457agX2jr6LlzAyYMHcevatexed/kyGu9fgLU/b8PCxc2YEWixVdOnsqYL0tu7l047R2dWiIiEwzj+8ce4eOoUcoEFSfLQyha0PbUZVTXVcDUa3lJaVk/JuqYIUijrCE1M4MsPPkDv+fPIlVRBmNo6P57a/gzmk9W4mLSMa3qW1YY8EwmFbIsh4uaNYfztnfdwqcsVuYkRfngjUyxkqiCaZrkJJotjH32UUQxN0zA2MoLrQ0MY7OvDVXoMXb2K4evXMUnBPxOTZHn/+NNfcLW3H65FVbZO+TX5g35JQJ7rDo4X3adPGz7PB3Swv5/O9hu4PT6OSCSCKD1Ck5MYHx3FtcFBfE/ihMjKDN+DRPvgvb/i9kRm8QrISu300bbkLz/kiKq6E3lgkg7sdT6I9P+JTz4x3G+E6g5+mBEmcYYGBnCT9q3x+WigLr3WHb52HUc7DmPdkxuRDWydl7su4sbQdYRJ9LrZs9D4o/soWfBBKnxtDNDBP3pTNm6AA/CXGqYzuevECfRfvGhaVzCjVABaESOV8bGx+EGrq4PHm16LfPX5YaxYsxo1dbWm7xWLRnH66An879B/6HOMTHmO655VP30Mq9etgc9v/l6WUHS3pccSPctKTFo4CcmM04HlmqKHYkSMXI0V2DVxvMiW/r54pV5aVqaLogosZU37Oqzd/LOM7xMOhXHwwIf4+njmK93mNs7Dtp074KutgRQSlXv8U3s80ie5XfnmG3z49tu4fPasZTE4RnCwtgPHlzGKLyK+PX0284vJmj//8F+mYjCD/Vfx9z/+2TSxsExJhN1WIqhr2lZI5NwXX+DIvn26f8+GUXJTMepV2WWcrEz0PjeGrpE7HDF83fkz59D55TFYZaC3D//9+FNIQVFX8H9Ju5ZmIZw1dX76adYHlq2D44AM+G+HqfIXMTQwKNzO8efg/n8iW05/dYLS8QFIoI3/UfVZ65LS3RFyN8eprshElAImx4lbFNz5wQF8goTINoibYZQK3zJIKrrPU0d5bFz4HFvcyIjYsvj7HPl3B+yjBXh2ihderzTr4F5U2OBAsAXwQZ+QZAVmcHYngoO2iDNHxTnNJLndmyki+nzpKe+lCxf1Oqe8ohy2qMAGVVZA7//uOz2tFcEicXWdLzF0DAQxcqWDBtX8CFlwklGykqggQeHGaBfFH9tEIk0qfcIAJHD2yBHhdv4CnMZybu8GFME4zySd3WOj6ScLH+jpsYjdl4jey1cg4dMFVErYV8Am43TmfH9F/IE4jY1aTHulYjDAJqpPDN2s4CSaoHaOiJEbEmKgogWkXGPIw6win81fVFqeniVG452qJ/0ri9ot+r6C7RzERd91fFyGO1YW8l8MwCZ9FD9EjKb4X7fg8XjStpVXVghdWUlJSZoo/Hqjfe2j+Pmv2Z4EN0wBW0Q4Qxe2UIjObj7IjYKBLD7w1SlZlZd6ZNyWEVFZXQUJn87PXTjbgkwYtCoihYgdCTSD7aFJ8UkSWNKMvkvpcbCqqgpl1B9jvF7jCRRLVyyHBPxSYojorDOqA/KFUVbX031ZuP2Rxx6lxmSp8DkWIpMYVWRFDyxdAhlIEUT0YdnclQJOJeJ0VXRSXPmum0YQ0+dwVVVXU3u+Fbmw+dkt8EqJIZIEqZ0zR7i9orIShYLdpchlcjeYG4IisdY/uQn3L2pCNqx/YhOaHlwEWbAg5iNGJswLBITbq2skjRXkiFEbnlsdRpX5s7ueR0vrKphRU+/X921tWwuJDHt2v/bab2EzsPNUzgvHj6dtVxMpZijLNnwujAqaf2wh5eXlwlQ3Go1h0bKH0razm1308IOY09igJwDc++L34feopAA/774GPL5xA9q3PIHZ88SeIXeUAXb+ti3EV1+vT+fs6+pKf662Vh+gGstnHysF7kXVz5qVtj14oUtvjRj5/sUkFj94H24csoOroOahrFghRNP0EcMgJLCivd0wiNfSAfEVyH1NUi0kaiiO3RqlVrx5u4MFqK7x0ef3OStGAm4uXoIE/HPnYkmrcZbi8/vJxOfFZ6rnEwreRu0bo8GqAnLKS72BICSxfP16DFGT8Vq/OGDyBIRZlJHxGctxZYI6pzxY5XTNYlSg8pCuu2CXFYkEIYkSOuBtO3ag0sQ9cX+onCyljlzZ3Pnz9Tijqs6tNhg1GAOJhAvXSRCioVOldKMDEimlrGbTCy9QWlhvaX/OXliQeSRMuUPuTDWIbR6vB64i4u1UlaYmzrKCkAhf3bR51y40LV9uuVrnFng9ubNaat7JrvCNgrG/vg7uQQvyLPjkNKDPIBlvaSnWbNmCtu3b0fDAA5Zfx32hutmzpYpSWiruUdXOcpMg0C+MiTeheHF6wJGLdBqamvTH9z09CJ45g8Fg0PTqKHZdbC08mdouFfReol5bla8KcxrmwTWoXl4i8Y4g+8lK3oSDzFmwQH/oc30HBnDp7FmcP3bMcHi3jGIRuy+e+Z4rHJ9qasXzb+9f1JyXusIy0bBuIbrLUhobg5AcR4xgV1TX2IiVGzfi6Zdf1q3HCHZfldW5XZbGYtRRYiHK3vQJ04/n1tl1BoofiWsNf/i0sdgB5JkKOuDtlCZz/WIEWwlbSzbo9Q7FIaNh1WbqVTW66lI3tePOT3e2adp+FIiWdevw0Jo1wuf4bOZ4wp1js0DPI3uzqLbhh6ihyPj8NWh/+gm4iljs3eSPUy/67Ovj6XsFW+710PvvY8Bgsh3D8YabhTz4xCOC/OE5m+MsapgSBdWTua5gQX/9mx0ILJY3fmEfclfLWu/47enXGObdbaWydts2vXNsBF+I46fn51BPjAtJrvLryTWx9VgR4xfPPO0yMQD9BjKpv055MhTaAwnt+FzhJTM2PPccKmslXZmUgGPQL7c/g5bV5gNPBWBKDThFEL1qT/FnhcBHQXzT88/r3WMZLFzSjF1/+B0efGQZ3IeyV1k6db2T9JUcHLq8LVt4atHXhw/jwjFrF9BMXziAL85cQyN7PL3HycalLVRPk6kgDAV3XierDS6Ap6l+e/Qorpw7l/EiIBaELwdYuGQRWn68AguaAxmn7hQeso5lj76UtlW0q5uWZ0rC16wPUfuFx1tuDg3pl8txIOd4U0furdITwYKmhZgxCKyDMV5RrqdnD9n6K5gpzKj1ssTWwRg713B4NwqYcd298L0S1TeMnjUUJDFOYvjCIjlCdYfIVSUxX7fXRQE+IzPBZWnoUFpWt2faxTwfVBT2dUXXZRe+i7XH85LZbqaCJFrzRddlG+2NTK4qiaWKSZk/fw8VAW+hSG7oS/m17rGyq+WB68Rt8dx78y/XxpCp3VwzLPcU9KxLUX6FPI0s3h3otwNvz+YVWTV59HiiKPwHikHeDA7iJIaVuJFK1l03XZRYrChKJlgMxLIWg8mpDaosWNBZFMWApBjTFki2Ss596aIoAmyKwdgaKNBFURQehgvinocCuMezyo4YjO2Rm5RAH8S9S2cuAVyElKE0FoWKx6Z7snikog8hjxQxGOkXklMzkpc75RWyba8QkRX5Lgz1eEHtEIsVuFUcubI/MeLI98doQ77IpyDUteVGoSyrSMXRpRb0m4rF15MPwGnyIYhDVpGKo9MxKLbs1QO+phV0apEUOFaEaRzcQTGYvC1Gorux+K2UnLlZjFMW4qB7EpH31WEcE0amILprAll1bK/duiJb8i5IEl0YDvqyYowcQaj7oB1AxLvH6D6DTlMwQVLR713Ct8uI36EhgFzIWRAlqE8y17T9yvLWDhQYVwiSij6VldcSjq9Hz4NhAUsvtCwIC0BxQdU6Mek5YHaz4HzjOkGmo49U8urbJSUreKHhlGVtA4gXn/ECNCkI+39FGSZB6X/wwb9EuWQ3IvR/1NNRKFdklf8DYxwEor4iWjMAAAAASUVORK5CYII=",ld=()=>d.jsx("div",{children:d.jsx("div",{className:"flex-col gap-4 w-full h-96 flex items-center justify-center",children:d.jsx("div",{className:"w-20 h-20 border-4 border-transparent text-sky-800 text-4xl animate-spin flex items-center justify-center border-t-blue-400 rounded-full",children:d.jsx("div",{className:"w-16 h-16 border-4 border-transparent text-gray-500 text-2xl animate-spin flex items-center justify-center border-t-red-400 rounded-full"})})})}),Ag=({handleDoctorSelect:e})=>{var x;const[n,a]=j.useState(""),[r,o]=j.useState(1),u=8,{data:f,isLoading:m,isError:p}=el({queryKey:["doctors",n],queryFn:()=>ea.getListDoctors({search:n}),staleTime:5*60*1e3,cacheTime:30*60*1e3}),y=(((x=f==null?void 0:f.data)==null?void 0:x.data)||[]).filter(S=>S.name.toLowerCase().includes(n.toLowerCase())),v=Math.ceil(y.length/u),b=y.slice((r-1)*u,r*u);return d.jsxs("div",{className:"w-full pt-4",children:[d.jsxs("div",{className:"w-full flex items-center bg-white shadow-md rounded-lg px-4 py-2 mb-6 mx-auto",children:[d.jsx(qc,{className:"text-gray-400 mr-2"}),d.jsx("input",{type:"text",placeholder:"Cari dokter",value:n,onChange:S=>{a(S.target.value),o(1)},className:"flex- outline-none bg-transparent text-gray-700"})]}),m?d.jsx(ld,{}):p?d.jsx("p",{className:"text-center text-red-500",children:"Gagal memuat data dokter."}):d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4",children:b.map(S=>d.jsxs("div",{className:"flex flex-col items-center bg-white rounded-xl shadow-md p-4",children:[d.jsx("img",{src:"https://img.freepik.com/free-photo/young-female-doctor-office_1303-18666.jpg?w=200",alt:"dokter",className:"w-20 h-20 rounded-full object-cover mb-4"}),d.jsxs("p",{className:"font-semibold text-center",children:["dr. ",S.name]}),d.jsx("button",{onClick:()=>e==null?void 0:e(S),className:"mt-3 bg-sky-900 text-white px-6 py-2 rounded-full cursor-pointer",children:"Pilih Dokter"})]},S.id))}),v>1&&d.jsxs("div",{className:"flex justify-center items-center space-x-2 mt-8",children:[d.jsx("button",{onClick:()=>o(S=>Math.max(S-1,1)),disabled:r===1,className:"px-3 py-1 rounded-md bg-white border disabled:opacity-50",children:d.jsx(db,{className:"m-1"})}),Array.from({length:v},(S,E)=>E+1).map(S=>d.jsx("button",{onClick:()=>o(S),className:`px-3 py-1 rounded-md border ${r===S?"bg-sky-900 text-white":"bg-white text-gray-700"}`,children:S},S)),d.jsx("button",{onClick:()=>o(S=>Math.min(S+1,v)),disabled:r===v,className:"px-3 py-1 rounded-md bg-white border disabled:opacity-50",children:d.jsx(fb,{className:"m-1"})})]})]})]})};Ag.propTypes={handleDoctorSelect:Be.func};const pT=()=>{var Xe;const[e,n]=j.useState(null),[a,r]=j.useState(null),[o,u]=j.useState(!1),[f,m]=j.useState(!0),[p,g]=j.useState(null),[y,v]=j.useState(!1),[b,x]=j.useState(!1),S=j.useRef(!1),[E,C]=j.useState(""),[k,z]=j.useState(null),{user:_}=Wi(),Z=(Xe=_==null?void 0:_.data)==null?void 0:Xe.id,R=jc({mutationFn:te=>ea.createDetection(te),onSuccess:te=>{var P;console.log("Detection submitted successfully:",te),g((P=te==null?void 0:te.data)==null?void 0:P.data),v(!1)},onError:te=>{var P,L,F;console.error("Detailed error response:",{status:(P=te.response)==null?void 0:P.status,data:(L=te.response)==null?void 0:L.data,headers:(F=te.response)==null?void 0:F.headers}),v(!1)}}),W=jc({mutationFn:te=>ea.createPublicDetection(te),onSuccess:te=>{console.log("Public detection successful:",te),g(te==null?void 0:te.data),v(!1)},onError:te=>{console.error("Error on public detection:",te),v(!1)}}),ce=async te=>{if(!b){if(x(!0),!te){console.error("Missing cropped image URL");return}try{if(v(!0),!te.startsWith("blob:")&&!te.startsWith("data:")){console.error("Invalid image URL format:",te),v(!1);return}const P=await fetch(te);if(!P.ok)throw new Error("Failed to fetch cropped image");const L=await P.blob();if(!L||L.size===0)throw new Error("Empty image blob");const F=new File([L],"diagnosis.jpg",{type:L.type||"image/jpeg"}),G=new FormData;if(G.append("image",F,F.name),_&&Z){G.append("patient_id",Z.toString());for(let[le,N]of G.entries())console.log(le,N instanceof File?`${N.name} (${N.type})`:N);R.mutate(G)}else{for(let[le,N]of G.entries())console.log(le,N instanceof File?`${N.name} (${N.type})`:N);W.mutate(G)}}catch(P){console.error("Submission error details:",{error:P.message,patientId:Z,hasCroppedImage:!!te,userAuthStatus:!!_}),v(!1)}finally{x(!1)}}},re=async te=>{if(!E||!te||!(p!=null&&p.id)){Tn.fire("Error","Keluhan dan dokter wajib diisi","error");return}const P={doctorId:te.id,complaint:E};try{const L=await ea.updateDetection(p.id,P,_.token);console.log("data submit:",L),Tn.fire("Berhasil","Pengajuan berhasil dikirim ke dokter","success"),m(!0),C(""),z(null)}catch(L){console.error(L),Tn.fire("Gagal","Terjadi kesalahan saat mengirim data","error")}},Q=async te=>{(await Tn.fire({title:`Pilih Dokter ${te.name}?`,text:"Apakah Anda yakin ingin mengajukan verifikasi ke dokter ini?",icon:"question",showCancelButton:!0,confirmButtonText:"Ya, pilih dokter ini",cancelButtonText:"Batal"})).isConfirmed&&(z(te),re(te))},ne=te=>{const P=te.target.files[0];P&&(n(URL.createObjectURL(P)),r(null),g(null),m(!0),S.current=!1)},fe=(p==null?void 0:p.percentage)>=50?"Tidak Aman":"Aman",Ge=(p==null?void 0:p.percentage)>=50?"Melanoma":"Bukan Melanoma";return d.jsx("div",{className:"flex justify-center py-10 px-10 md:px-20 w-full",children:d.jsxs("div",{className:"md:bg-white md:py-8 md:px-20 md:rounded-lg md:border md:border-gray-400 w-full",children:[d.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Deteksi Kanker Kulit"}),d.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Masukkan gambar untuk mendeteksi kanker dari gambar yang diberikan"}),d.jsxs("div",{className:"w-full flex flex-col items-center",children:[o?d.jsx(R2,{image:e,onCropComplete:async te=>{r(te),u(!1),!S.current&&te&&(S.current=!0,await ce(te))}}):d.jsx("div",{className:"w-full md:w-1/3 h-60 border-2 border-dashed border-gray-400 bg-blue-50 rounded-lg mt-6 flex justify-center items-center relative",children:a?d.jsx("img",{src:a,alt:"Cropped",className:"max-h-58 w-full object-cover rounded-lg"}):e?d.jsx("img",{src:e,alt:"Uploaded",className:"max-h-58 w-full object-cover rounded-lg"}):d.jsxs("label",{className:"cursor-pointer flex flex-col items-center text-blue-900 font-semibold",children:[d.jsx("span",{className:"text-lg",children:"+ Masukkan Gambar"}),d.jsx("input",{type:"file",className:"hidden",accept:"image/jpeg, image/png",onChange:ne})]})}),e&&!o&&d.jsx("div",{className:"w-full flex justify-center mt-3",children:a?d.jsxs("label",{className:"md:w-1/3 font-bold border border-gray-800 rounded-full px-6 py-2 cursor-pointer text-center",children:[d.jsx("input",{type:"file",className:"hidden",accept:"image/jpeg, image/png",onChange:ne}),"Ganti Foto"]}):d.jsx("button",{className:"md:w-1/3 font-bold text-white bg-sky-900 rounded-full px-6 py-2 cursor-pointer",onClick:()=>u(!0),children:"Crop Foto"})}),y&&d.jsx("div",{className:"mt-4 text-center",children:d.jsx("p",{className:"text-gray-600",children:"Memproses deteksi..."})}),a&&p&&d.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-6",children:[d.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[d.jsx("img",{src:zo,alt:"Melanoma",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Melanoma"}),d.jsx("p",{children:p.diagnosis||Ge})]}),d.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[d.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),d.jsx("p",{className:"text-green-500",children:`${p.percentage}% ${p.diagnosisAi} (${fe})`})]})]}),a&&_&&d.jsx("button",{onClick:()=>m(te=>!te),className:`md:w-1/3 font-bold text-white rounded-full px-6 py-2 my-4 cursor-pointer ${f?"bg-sky-900":"bg-red-700"}`,children:f?"Ajukan Verifikasi/Keluhan":"Batalkan Pengajuan"}),!f&&a&&d.jsxs("div",{className:"w-full",children:[d.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Pengajuan Verifikasi"}),d.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Ajukan keluhan dan pilih dokter Anda disini"}),d.jsxs("div",{className:"text-left w-full",children:[d.jsx("p",{children:"Keluhan:"}),d.jsx("textarea",{value:E,onChange:te=>C(te.target.value),className:"w-full h-32 border border-gray-400 rounded-lg p-2 mt-2",placeholder:"Masukkan keluhan Anda disini",required:!0}),d.jsx(Ag,{handleDoctorSelect:Q}),k&&d.jsxs("div",{className:"mt-4 text-sm text-green-700",children:["Dokter terpilih: ",d.jsxs("strong",{children:["dr. ",k.name]})]})]})]})]}),!a&&d.jsxs("div",{className:"mt-6 text-sm text-gray-700",children:[d.jsxs("p",{className:"text-black",children:["1. Format: JPEG, PNG ",d.jsx("span",{className:"text-red-500",children:"*"})]}),d.jsxs("p",{className:"text-black",children:["2. Ukuran: Maksimum 5 MB ",d.jsx("span",{className:"text-red-500",children:"*"})]}),d.jsxs("p",{className:"text-black",children:["3. Resolusi: Minimal 800 x 600 piksel"," ",d.jsx("span",{className:"text-red-500",children:"*"})]}),d.jsx("p",{className:"text-red-500 mt-2 italic",children:"*Wajib mengikuti aturan gambar"})]})]})})},yT="/assets/doctor-B0xZjIfR.jpeg",vT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFMSURBVHgB7ZW9VcMwEMfvjgwQwgIZIRvgNIYORggdL7ADYQMKApQwAY8upkGMkAliFjBZAB1nPewnCQmbQKDJr/GzdH+dT/dhgA0NoP3S2zvhkJFGHC5nl8pe6+4fJ8RbTyH7IpvW53b8TfGgkPnZ/Yy3PHBODsznjhZxV05OIEYZQS8dT2BFSq1/C52Y8U56esjIB9AKPS+y64vQTtQBgx7I3YygBQyk5BF0QLBm3AgkaZrM16xEqSWtnTWMGXclB9Q2B8wvxePVBP4DE8F2Or5HhAH8Kqik4Y5MDojhQYp3DohnVaM1No2FaHLR3NUak0tY1BFUmCaRzfI+TcOJw5YO1Gs2HVYae1SsvUz/uA8sQjUdgwkX33bwMZ4V/JDP41oqwZ+omvTtcnaT22vyP+iTppGvxSYHpswQE89MQTn/Xfp+lUXHwoaveAeA0XugwY8BigAAAABJRU5ErkJggg==",wT=()=>{var n;const{user:e}=Wi();return d.jsxs("div",{className:"w-full min-h-screen",children:[d.jsxs("div",{className:"w-full h-80 md:h-[32rem]",children:[d.jsx("img",{src:yT,alt:"Dokter",className:"w-full h-full object-cover"}),d.jsxs("div",{className:"absolute left-8 md:left-32 top-28 md:top-48 max-w-md",children:[d.jsxs("h1",{className:"text-4xl md:text-5xl font-light text-sky-900",children:["Selamat Datang, ",d.jsx("br",{}),d.jsx("span",{className:"font-bold capitalize",children:((n=e==null?void 0:e.data)==null?void 0:n.name)||"Pasien"})]}),d.jsxs("button",{onClick:()=>window.location.href="#deteksi",className:"mt-4 md:mt-6 flex items-center gap-2 bg-white text-blue-900 font-semibold px-4 md:px-6 py-1 md:py-3 rounded-full shadow-lg cursor-pointer hover:bg-blue-100",children:[d.jsx("span",{className:"material-icons",children:d.jsx("img",{src:vT,alt:""})}),"Coba Sekarang"]})]})]}),d.jsx(aR,{}),d.jsx("div",{id:"deteksi",children:d.jsx(pT,{})})]})},od="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAgCSURBVHgB7d0JbBRVGAfw/5vd7tHSUkCKpRERLSpIRCWtCmrrLYEEPCpFimCNF0ii4kHQqOARFY0xCl4BRaMxmBiNKAGj4oVFAsVSCi3QVmhLKZRylB67O+M3s1KEPdo53rDbfT8ym92Z2Q3sNzvvve99MwCCIAiCIAiCIAiCIAiCIAiCIAiCICQuBk6UfSvPRHvbVDCWhoTAZDjZcpY5uQYmOMGLzzcPkmMOEklAKaTHC2GCBF4UxYtEwyTTBzi/gAiGiIDEGBGQGCMCEmP49bJMatjXgnc+/Rn7m4/CTnmXD8eUCTk4XXQFRCn7+HF6XEBPXd3u3NHJ4O5+t0jKKuuxau0W2K28qj5+AkLG0uKBDa4acx7mzLjO1l+IOkq+duwFOJ30BUSR62jkDTt4PS5Mn3wFEo2+Rl1imyFwpS8gAf8fELjSF5DtaRX02A6BG11tCCsoCChlH9XQ09Pb8v3PHxt3Yiv1jHgbnJGO8fmjwJuRcUgpbA7IF9/+hdr6Zsy8/UoM7J/atf5IazvmPP857OL1upB/+fngyUBAFGpH2BTYQJZlvPbBaqz4boP2OoW+kFlF+V3bU7xu5Fx8DrbtaABvGQPTMCI7E7zpDwiTN0FxgLejxzrw3Jvf4OeS7drrszL74dabLjlpH0liWLzgLvQm+gOieKuATvB05GgbHn1xBTZt/Ud7fXZWfyxeOA2DBvT+yUfdyUU2amojTT7thwUWU66q+KmPUb37xMfVUw5r+tylXcEYNTwLyxfdkxDBUBnL9jKsg0mdnX4s+/J3bK7YjQee/gQVOxtQW3cADz/3GXY3HNT2ufmai/DWs4VISbYlWxMTjGV7FbaBgjIRJrhcTjxSfD3e+HANDrS04r55y+F0StRz6tC2F07MwWP33hj2vWpj30Q5LkWBbdLTvPC4k8CbwfS7ssOKgpWpE3PRLzUZr7y3SmvEEYwFHpyWh+I7xkV8X9FjS7F9117YKdmThCULizBy+GDwZOyUJUm/wSK35I3C0w9PoH+wSwvx7OnXRg2Gyh+QYbcOOsX6AgHwZvgwpxG7OjyO3DFP9kLPfMjBQ8e0bmzf1O6LVQIUkF27m2CnAel90D89JfpOjO1gWZOyYYKZGUN1gGDZSKlf3+Qe7+twSMgeOgi9kfE5dQWVECxnJiDrIVjORNVJwLKGXTjBeBviSK2G3OqnhsyWyhU/jT2cUujxM5sGklXVjeBtIGUK3nzmTpzRrw94MvxlsosKOpWyZTX09DxwtGfvQcxf9BWqavfh5cdvxTU5w7u2NdOAsqS0mgaI/EeI6uB1S2Ud8nJjLv1+EjWFwi0gdRSMh575lPJbh7TX+w+eXIGidkNfmjtZCxZvGTQPwzsYKnMBkdk6aoWKwME/NCE1g5KMh1uDM8Yz7xiL2266NGS/G8aN0JbewlwpqdNc11ed8atvbAlZ/+O6bZj55LKuYKiTUrOm5SMRmPuF+LANDq3oQXc6Vj3vT5nzPhr3H8YDhVfj3ilXa+tX/vQ3Fr79Lfx+asRpAPgoJRgLxo9BojAVEDZ6Rp3y90c1lIDRPceufuEOKZi5effzX7RckZuyqe9+tlZbl5bqwQuPTMKVl3HtM8Qc0ylbymmpVQahc+w9yGWppyt1LuR4o32cGoxF8wpw6cghYd+3fnO1tiiwL/9+VuYATLphdPSdTnMuK0hWdkEyFtfBg9Kx9NWZNF37BbZWBQsVBmf0xZIXipBF2yKZ//pXWjLSbi6ng3spkPmAONhGMweqOtBasmAaFn2wGm3tnZh1d37UYKgKJ+Tgz9JdCMj2/UIyBvRB7iXDwJv5U9bWTzIpHx5aqaYz/d4rWHDKMn0FFRtRROcaxn9kliAsuqSN2hHBEtYERMH3ECxhUabWmqKH7rTIh7G641e0yR0h2xj9Gee+DMOcQxDPrAmIpJRC4R+QUl8Fyn1VEbc7Ox1xHxBrTlntvhp69IMzGdGrPgLgXxXCmyUBYWPuP0bfVglijF9maPeHLur6WGXdbB9DOYJX6caE3+s9KF4zEMf8ocecet3qs7nNuGfkEcQa6+7kICv2X1Qexa91nrDBUKkTjKtqe152ZCfrAuJg8TUWsbEuWA/rTlmejB/Q1qi/6KG9Gaj+muZWwiQL1XPL0AlAanz3nPSw7BfCsserg4Na6NW4nibLy4BDO0OXFhre1KxEIrG4hIepF4Seq+st3VWMyNx700E+v3pbwtD1SfQVJfG/DOE4awOi4E/qbd2GeFNK/ZG3ltLpsyP89oKJwKSbYQdr75fFAqWIR3saIgdDVVoOu1gbENlRgd7IxokwSwOiFj1Qm9ACwTDrb/HH2F8QDLM+IAE55nJa8cT6gEhsJwTDrL+UQHJughI9DV5eWX+icLqJmpymKMUQ3k7qAQUrVrf4mtDojzwuYdIRrHUH963fkQLX3sj5qsNtPqwt+a+5q6ZsgT9K8aX6Vy0Jfq7HlYTc0UPB6856ln+qsuG9vnB7KpHsyQhXdaLeu2TuSysQzx6cmofiO8NcKRwLVSenormRQ9TTinjayj57kFZ3xegIO7EgysLCLD3dL/IHh92fRrYhyymf3SfZjWFDzgAvnK5+0lLxYe9gmXVmOr5+fzaE8Pjc2To4WSUYwCkgyhoIhvAJiE1FD70Rl4BoRQ+M8b/vXi/E739HkNhGJBpFNl01we8ac+aeTwNEGm3J8V8s1ROMtcLBnoAgCIIgCIIgCIIgCIIgJIh/AWKHeUFeYYwHAAAAAElFTkSuQmCC",N2="/assets/Ellipse%204-CrOw4YA8.png",bT=()=>{var y;const{id:e}=Fc(),n=dn(),{data:a,isLoading:r,isError:o}=el({queryKey:["submitDetect",e],queryFn:()=>ea.getDetectionsById(e),enabled:!!e}),u=((y=a==null?void 0:a.data)==null?void 0:y.data)||[];if(r)return d.jsx("div",{className:"mt-10",children:d.jsx(ld,{})});if(o||!u)return d.jsx("div",{className:"w-full h-96 flex items-center justify-center font-semibold",children:"Gagal memuat data..."});const f=a.data.data,p=parseFloat(f.diagnosisAi)>=50?"text-red-600":"text-green-600",g=f.status==="rejected"?"text-red-600":f.status==="pending"?"text-yellow-600":"text-green-600";return d.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:d.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-6 lg:p-10",children:[d.jsxs("button",{onClick:()=>n("/deteksi"),className:"flex items-center gap-x-2 px-4 py-2 text-white font-bold rounded-xl bg-sky-800 hover:bg-sky-900",children:[d.jsx(Ic,{className:"text-lg"}),"Kembali"]}),d.jsxs("div",{className:"text-center flex flex-col items-center mt-5",children:[d.jsx("h1",{className:"text-2xl font-semibold mb-2",children:"Detail Hasil Deteksi"}),d.jsx("p",{className:"text-sm text-gray-600",children:f.isSubmitted==="Sudah"?"Hasil deteksi sudah diverifikasi dokter":"Hasil deteksi belum diverifikasi dokter"})]}),d.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 mx-auto my-6 object-cover",src:f.imageUrl,alt:"Hasil Deteksi Kulit"}),d.jsxs("p",{className:"w-full lg:w-1/2 mx-auto mb-4 text-left font-bold text-md",children:["ID Deteksi: ",f.id]}),d.jsx("a",{href:f.imageUrl,download:!0,className:"block w-full lg:w-1/2 mx-auto mb-6 px-4 py-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 text-center",children:"Unduh Gambar"}),d.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),d.jsx("p",{children:f.diagnosis||"Tidak diketahui"})]}),d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),d.jsx("p",{className:p,children:f.diagnosisAi||"Tidak tersedia"})]}),d.jsxs("div",{onClick:()=>f.isSubmitted==="Sudah"?n(`/deteksi/${f.id}`):n(`/pengajuan/ulang/${f.id}`),className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4 cursor-pointer",children:[d.jsx("img",{src:N2,alt:"Pengajuan Verifikasi",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Pengajuan Verifikasi"}),d.jsx("p",{className:`font-semibold ${f.isSubmitted==="Sudah"?"text-green-500":"text-red-500"}`,children:f.isSubmitted})]}),d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:od,alt:"Status",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Status"}),d.jsx("p",{className:`font-semibold ${g}`,children:f.status})]})]}),d.jsx("p",{className:"text-sm font-normal text-gray-400 text-center",children:"*Hasil deteksi hanya berupa indikasi awal dari sistem, harap konsultasikan dengan dokter untuk kepastian diagnosis."})]})})};var mc={exports:{}},xT=mc.exports,jw;function ST(){return jw||(jw=1,function(e,n){(function(a,r){e.exports=r()})(xT,function(){var a=1e3,r=6e4,o=36e5,u="millisecond",f="second",m="minute",p="hour",g="day",y="week",v="month",b="quarter",x="year",S="date",E="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,z={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(te){var P=["th","st","nd","rd"],L=te%100;return"["+te+(P[(L-20)%10]||P[L]||P[0])+"]"}},_=function(te,P,L){var F=String(te);return!F||F.length>=P?te:""+Array(P+1-F.length).join(L)+te},Z={s:_,z:function(te){var P=-te.utcOffset(),L=Math.abs(P),F=Math.floor(L/60),G=L%60;return(P<=0?"+":"-")+_(F,2,"0")+":"+_(G,2,"0")},m:function te(P,L){if(P.date()<L.date())return-te(L,P);var F=12*(L.year()-P.year())+(L.month()-P.month()),G=P.clone().add(F,v),le=L-G<0,N=P.clone().add(F+(le?-1:1),v);return+(-(F+(L-G)/(le?G-N:N-G))||0)},a:function(te){return te<0?Math.ceil(te)||0:Math.floor(te)},p:function(te){return{M:v,y:x,w:y,d:g,D:S,h:p,m,s:f,ms:u,Q:b}[te]||String(te||"").toLowerCase().replace(/s$/,"")},u:function(te){return te===void 0}},R="en",W={};W[R]=z;var ce="$isDayjsObject",re=function(te){return te instanceof Ge||!(!te||!te[ce])},Q=function te(P,L,F){var G;if(!P)return R;if(typeof P=="string"){var le=P.toLowerCase();W[le]&&(G=le),L&&(W[le]=L,G=le);var N=P.split("-");if(!G&&N.length>1)return te(N[0])}else{var X=P.name;W[X]=P,G=X}return!F&&G&&(R=G),G||!F&&R},ne=function(te,P){if(re(te))return te.clone();var L=typeof P=="object"?P:{};return L.date=te,L.args=arguments,new Ge(L)},fe=Z;fe.l=Q,fe.i=re,fe.w=function(te,P){return ne(te,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var Ge=function(){function te(L){this.$L=Q(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[ce]=!0}var P=te.prototype;return P.parse=function(L){this.$d=function(F){var G=F.date,le=F.utc;if(G===null)return new Date(NaN);if(fe.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var N=G.match(C);if(N){var X=N[2]-1||0,oe=(N[7]||"0").substring(0,3);return le?new Date(Date.UTC(N[1],X,N[3]||1,N[4]||0,N[5]||0,N[6]||0,oe)):new Date(N[1],X,N[3]||1,N[4]||0,N[5]||0,N[6]||0,oe)}}return new Date(G)}(L),this.init()},P.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},P.$utils=function(){return fe},P.isValid=function(){return this.$d.toString()!==E},P.isSame=function(L,F){var G=ne(L);return this.startOf(F)<=G&&G<=this.endOf(F)},P.isAfter=function(L,F){return ne(L)<this.startOf(F)},P.isBefore=function(L,F){return this.endOf(F)<ne(L)},P.$g=function(L,F,G){return fe.u(L)?this[F]:this.set(G,L)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(L,F){var G=this,le=!!fe.u(F)||F,N=fe.p(L),X=function(Oe,De){var wt=fe.w(G.$u?Date.UTC(G.$y,De,Oe):new Date(G.$y,De,Oe),G);return le?wt:wt.endOf(g)},oe=function(Oe,De){return fe.w(G.toDate()[Oe].apply(G.toDate("s"),(le?[0,0,0,0]:[23,59,59,999]).slice(De)),G)},ue=this.$W,se=this.$M,Se=this.$D,ke="set"+(this.$u?"UTC":"");switch(N){case x:return le?X(1,0):X(31,11);case v:return le?X(1,se):X(0,se+1);case y:var ht=this.$locale().weekStart||0,Fe=(ue<ht?ue+7:ue)-ht;return X(le?Se-Fe:Se+(6-Fe),se);case g:case S:return oe(ke+"Hours",0);case p:return oe(ke+"Minutes",1);case m:return oe(ke+"Seconds",2);case f:return oe(ke+"Milliseconds",3);default:return this.clone()}},P.endOf=function(L){return this.startOf(L,!1)},P.$set=function(L,F){var G,le=fe.p(L),N="set"+(this.$u?"UTC":""),X=(G={},G[g]=N+"Date",G[S]=N+"Date",G[v]=N+"Month",G[x]=N+"FullYear",G[p]=N+"Hours",G[m]=N+"Minutes",G[f]=N+"Seconds",G[u]=N+"Milliseconds",G)[le],oe=le===g?this.$D+(F-this.$W):F;if(le===v||le===x){var ue=this.clone().set(S,1);ue.$d[X](oe),ue.init(),this.$d=ue.set(S,Math.min(this.$D,ue.daysInMonth())).$d}else X&&this.$d[X](oe);return this.init(),this},P.set=function(L,F){return this.clone().$set(L,F)},P.get=function(L){return this[fe.p(L)]()},P.add=function(L,F){var G,le=this;L=Number(L);var N=fe.p(F),X=function(se){var Se=ne(le);return fe.w(Se.date(Se.date()+Math.round(se*L)),le)};if(N===v)return this.set(v,this.$M+L);if(N===x)return this.set(x,this.$y+L);if(N===g)return X(1);if(N===y)return X(7);var oe=(G={},G[m]=r,G[p]=o,G[f]=a,G)[N]||1,ue=this.$d.getTime()+L*oe;return fe.w(ue,this)},P.subtract=function(L,F){return this.add(-1*L,F)},P.format=function(L){var F=this,G=this.$locale();if(!this.isValid())return G.invalidDate||E;var le=L||"YYYY-MM-DDTHH:mm:ssZ",N=fe.z(this),X=this.$H,oe=this.$m,ue=this.$M,se=G.weekdays,Se=G.months,ke=G.meridiem,ht=function(De,wt,xn,Rt){return De&&(De[wt]||De(F,le))||xn[wt].slice(0,Rt)},Fe=function(De){return fe.s(X%12||12,De,"0")},Oe=ke||function(De,wt,xn){var Rt=De<12?"AM":"PM";return xn?Rt.toLowerCase():Rt};return le.replace(k,function(De,wt){return wt||function(xn){switch(xn){case"YY":return String(F.$y).slice(-2);case"YYYY":return fe.s(F.$y,4,"0");case"M":return ue+1;case"MM":return fe.s(ue+1,2,"0");case"MMM":return ht(G.monthsShort,ue,Se,3);case"MMMM":return ht(Se,ue);case"D":return F.$D;case"DD":return fe.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return ht(G.weekdaysMin,F.$W,se,2);case"ddd":return ht(G.weekdaysShort,F.$W,se,3);case"dddd":return se[F.$W];case"H":return String(X);case"HH":return fe.s(X,2,"0");case"h":return Fe(1);case"hh":return Fe(2);case"a":return Oe(X,oe,!0);case"A":return Oe(X,oe,!1);case"m":return String(oe);case"mm":return fe.s(oe,2,"0");case"s":return String(F.$s);case"ss":return fe.s(F.$s,2,"0");case"SSS":return fe.s(F.$ms,3,"0");case"Z":return N}return null}(De)||N.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(L,F,G){var le,N=this,X=fe.p(F),oe=ne(L),ue=(oe.utcOffset()-this.utcOffset())*r,se=this-oe,Se=function(){return fe.m(N,oe)};switch(X){case x:le=Se()/12;break;case v:le=Se();break;case b:le=Se()/3;break;case y:le=(se-ue)/6048e5;break;case g:le=(se-ue)/864e5;break;case p:le=se/o;break;case m:le=se/r;break;case f:le=se/a;break;default:le=se}return G?le:fe.a(le)},P.daysInMonth=function(){return this.endOf(v).$D},P.$locale=function(){return W[this.$L]},P.locale=function(L,F){if(!L)return this.$L;var G=this.clone(),le=Q(L,F,!0);return le&&(G.$L=le),G},P.clone=function(){return fe.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},te}(),Xe=Ge.prototype;return ne.prototype=Xe,[["$ms",u],["$s",f],["$m",m],["$H",p],["$W",g],["$M",v],["$y",x],["$D",S]].forEach(function(te){Xe[te[1]]=function(P){return this.$g(P,te[0],te[1])}}),ne.extend=function(te,P){return te.$i||(te(P,Ge,ne),te.$i=!0),ne},ne.locale=Q,ne.isDayjs=re,ne.unix=function(te){return ne(1e3*te)},ne.en=W[R],ne.Ls=W,ne.p={},ne})}(mc)),mc.exports}var AT=ST();const Rw=zc(AT),CT=()=>{var v,b,x,S;const{id:e}=Fc(),n=dn(),{user:a}=Wi(),{data:r,isLoading:o,isError:u}=el({queryKey:["submission",e],queryFn:()=>ea.getSubmissionsById(e),enabled:!!e});if(o)return d.jsx("div",{className:"mt-10",children:d.jsx(ld,{})});if(u||!(r!=null&&r.data))return d.jsx("div",{className:"w-full h-96 flex items-center justify-center font-semibold",children:"Gagal memuat data..."});const f=r.data.data,p=parseFloat(f.diagnosisAi)>=50?"text-red-600":"text-green-600",g=f.status==="rejected"?"text-red-600":f.status==="pending"?"text-yellow-600":"text-green-600",y=E=>Rw().diff(Rw(E),"year");return d.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:d.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-4 lg:p-10",children:[d.jsxs("button",{onClick:()=>n("/pengajuan"),className:"flex justify-between gap-x-2 items-center px-4 py-2 text-white font-bold rounded-xl bg-sky-800 cursor-pointer",children:[d.jsx(Ic,{className:"text-lg text-white"}),"kembali"]}),d.jsxs("div",{className:"text-center flex flex-col items-center",children:[d.jsx("div",{className:"my-5 leading-10",children:d.jsx("h1",{className:"text-2xl font-semibold",children:"Prediksi Penyakit"})}),d.jsx("img",{className:"rounded-3xl w-full lg:w-1/2",src:f.imageUrl||"https://via.placeholder.com/600x400?text=No+Image",alt:"Hasil Deteksi"}),d.jsx("a",{href:f.imageUrl,download:!0,className:"w-full lg:w-1/2 px-4 py-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 cursor-pointer text-center",children:"Unduh Gambar"}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 mt-4 gap-4 w-full",children:[d.jsxs("div",{className:"lg:col-span-3 p-4 text-left rounded-lg shadow-md",children:[d.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Diverifikasi Oleh"}),d.jsxs("p",{children:["Dr. ",f.verifiedBy]})]}),d.jsxs("div",{className:"p-4 text-left rounded-lg shadow-md",children:[d.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Detail Pasien"}),d.jsxs("span",{className:"flex flex-col gap-y-2",children:[d.jsxs("p",{children:["Nama: ",((v=a==null?void 0:a.data)==null?void 0:v.name)||"Pasien"]}),d.jsxs("p",{children:["Nomor Telepon: ",((b=a==null?void 0:a.data)==null?void 0:b.phone)||"-"]}),d.jsxs("p",{children:["Email: ",((x=a==null?void 0:a.data)==null?void 0:x.email)||"-"]}),d.jsxs("p",{children:["Umur: ",y((S=a==null?void 0:a.data)==null?void 0:S.dob)]})]})]}),d.jsxs("div",{className:"lg:col-span-2 p-4 text-left rounded-lg shadow-md",children:[d.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Keluhan"}),d.jsx("p",{children:f.complaint})]})]}),d.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),d.jsx("p",{children:f.diagnosis||"Tidak diketahui"})]}),d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),d.jsx("p",{className:p,children:f.diagnosisAi||"Tidak tersedia"})]}),d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:od,alt:"Status",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Status"}),d.jsx("p",{className:`font-semibold ${g}`,children:f.status})]})]}),d.jsxs("div",{className:"w-full text-left",children:[d.jsx("h1",{className:"text-2xl font-semibold text-center my-4",children:"Catatan Dokter"}),d.jsx("textarea",{className:"shadow-md rounded-lg w-full p-4",name:"catatan",id:"catatan",value:f.doctorNote,readOnly:!0})]})]})]})})},T2=e=>{const{diagnosis:n,percentage:a,status:r}=e;return d.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-6",children:[d.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[d.jsx("img",{src:zo,alt:"Melanoma",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Melanoma"}),d.jsx("p",{children:a>49?"Iya":"Tidak"})]}),d.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[d.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),d.jsx("p",{className:a>49?"text-red-500":"text-green-500",children:n})]}),d.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[d.jsx("img",{src:od,alt:"Status",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Status"}),d.jsx("p",{className:r=="verified"?"text-green-500":"text-red-500",children:r==="verified"?"Sudah diverifikasi":"Belum diverifikasi"})]})]})};T2.propTypes={diagnosis:Be.string.isRequired,percentage:Be.number.isRequired,status:Be.string.isRequired};const Nw="/assets/default-DlLfYoqZ.png";let ET={data:""},jT=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ET,RT=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,NT=/\/\*[^]*?\*\/| +/g,Tw=/\n+/g,_i=(e,n)=>{let a="",r="",o="";for(let u in e){let f=e[u];u[0]=="@"?u[1]=="i"?a=u+" "+f+";":r+=u[1]=="f"?_i(f,u):u+"{"+_i(f,u[1]=="k"?"":n)+"}":typeof f=="object"?r+=_i(f,n?n.replace(/([^,])+/g,m=>u.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,m):m?m+" "+p:p)):u):f!=null&&(u=/^--/.test(u)?u:u.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=_i.p?_i.p(u,f):u+":"+f+";")}return a+(n&&o?n+"{"+o+"}":o)+r},ei={},k2=e=>{if(typeof e=="object"){let n="";for(let a in e)n+=a+k2(e[a]);return n}return e},TT=(e,n,a,r,o)=>{let u=k2(e),f=ei[u]||(ei[u]=(p=>{let g=0,y=11;for(;g<p.length;)y=101*y+p.charCodeAt(g++)>>>0;return"go"+y})(u));if(!ei[f]){let p=u!==e?e:(g=>{let y,v,b=[{}];for(;y=RT.exec(g.replace(NT,""));)y[4]?b.shift():y[3]?(v=y[3].replace(Tw," ").trim(),b.unshift(b[0][v]=b[0][v]||{})):b[0][y[1]]=y[2].replace(Tw," ").trim();return b[0]})(e);ei[f]=_i(o?{["@keyframes "+f]:p}:p,a?"":"."+f)}let m=a&&ei.g?ei.g:null;return a&&(ei.g=ei[f]),((p,g,y,v)=>{v?g.data=g.data.replace(v,p):g.data.indexOf(p)===-1&&(g.data=y?p+g.data:g.data+p)})(ei[f],n,r,m),f},kT=(e,n,a)=>e.reduce((r,o,u)=>{let f=n[u];if(f&&f.call){let m=f(a),p=m&&m.props&&m.props.className||/^go/.test(m)&&m;f=p?"."+p:m&&typeof m=="object"?m.props?"":_i(m,""):m===!1?"":m}return r+o+(f??"")},"");function ud(e){let n=this||{},a=e.call?e(n.p):e;return TT(a.unshift?a.raw?kT(a,[].slice.call(arguments,1),n.p):a.reduce((r,o)=>Object.assign(r,o&&o.call?o(n.p):o),{}):a,jT(n.target),n.g,n.o,n.k)}let M2,Om,_m;ud.bind({g:1});let li=ud.bind({k:1});function MT(e,n,a,r){_i.p=n,M2=e,Om=a,_m=r}function er(e,n){let a=this||{};return function(){let r=arguments;function o(u,f){let m=Object.assign({},u),p=m.className||o.className;a.p=Object.assign({theme:Om&&Om()},m),a.o=/ *go\d+/.test(p),m.className=ud.apply(a,r)+(p?" "+p:"");let g=e;return e[0]&&(g=m.as||e,delete m.as),_m&&g[0]&&_m(m),M2(g,m)}return o}}var DT=e=>typeof e=="function",Bm=(e,n)=>DT(e)?e(n):e,OT=(()=>{let e=0;return()=>(++e).toString()})(),_T=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),BT=20,D2=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,BT)};case 1:return{...e,toasts:e.toasts.map(u=>u.id===n.toast.id?{...u,...n.toast}:u)};case 2:let{toast:a}=n;return D2(e,{type:e.toasts.find(u=>u.id===a.id)?1:0,toast:a});case 3:let{toastId:r}=n;return{...e,toasts:e.toasts.map(u=>u.id===r||r===void 0?{...u,dismissed:!0,visible:!1}:u)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(u=>u.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let o=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(u=>({...u,pauseDuration:u.pauseDuration+o}))}}},zT=[],Zh={toasts:[],pausedAt:void 0},Cg=e=>{Zh=D2(Zh,e),zT.forEach(n=>{n(Zh)})},LT=(e,n="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(a==null?void 0:a.id)||OT()}),Lo=e=>(n,a)=>{let r=LT(n,e,a);return Cg({type:2,toast:r}),r.id},Kt=(e,n)=>Lo("blank")(e,n);Kt.error=Lo("error");Kt.success=Lo("success");Kt.loading=Lo("loading");Kt.custom=Lo("custom");Kt.dismiss=e=>{Cg({type:3,toastId:e})};Kt.remove=e=>Cg({type:4,toastId:e});Kt.promise=(e,n,a)=>{let r=Kt.loading(n.loading,{...a,...a==null?void 0:a.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let u=n.success?Bm(n.success,o):void 0;return u?Kt.success(u,{id:r,...a,...a==null?void 0:a.success}):Kt.dismiss(r),o}).catch(o=>{let u=n.error?Bm(n.error,o):void 0;u?Kt.error(u,{id:r,...a,...a==null?void 0:a.error}):Kt.dismiss(r)}),e};var UT=li`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,HT=li`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,FT=li`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,PT=er("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${UT} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${HT} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${FT} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,VT=li`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,IT=er("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
animation: ${VT} 1s linear infinite;
`,qT=li`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,QT=li`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,GT=er("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${qT} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${QT} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,$T=er("div")`
position: absolute;
`,YT=er("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,XT=li`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,KT=er("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${XT} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,ZT=({toast:e})=>{let{icon:n,type:a,iconTheme:r}=e;return n!==void 0?typeof n=="string"?j.createElement(KT,null,n):n:a==="blank"?null:j.createElement(YT,null,j.createElement(IT,{...r}),a!=="loading"&&j.createElement($T,null,a==="error"?j.createElement(PT,{...r}):j.createElement(GT,{...r})))},JT=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,WT=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,e6="0%{opacity:0;} 100%{opacity:1;}",t6="0%{opacity:1;} 100%{opacity:0;}",n6=er("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,a6=er("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`,i6=(e,n)=>{let a=e.includes("top")?1:-1,[r,o]=_T()?[e6,t6]:[JT(a),WT(a)];return{animation:n?`${li(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${li(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}};j.memo(({toast:e,position:n,style:a,children:r})=>{let o=e.height?i6(e.position||n||"top-center",e.visible):{opacity:0},u=j.createElement(ZT,{toast:e}),f=j.createElement(a6,{...e.ariaProps},Bm(e.message,e));return j.createElement(n6,{className:e.className,style:{...o,...a,...e.style}},typeof r=="function"?r({icon:u,message:f}):j.createElement(j.Fragment,null,u,f))});MT(j.createElement);ud`
z-index: 9999;
> * {
pointer-events: auto;
}
`;const r6=()=>d.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0 animate-pulse",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[d.jsx("div",{className:"w-6 h-6 bg-gray-300 rounded-full"}),d.jsx("div",{className:"h-6 w-24 bg-gray-300 rounded"})]}),d.jsxs("div",{className:"text-center mb-6",children:[d.jsx("div",{className:"h-6 w-48 bg-gray-300 rounded mx-auto mb-2"}),d.jsx("div",{className:"h-4 w-24 bg-gray-200 rounded mx-auto"})]}),d.jsx("div",{className:"flex justify-center",children:d.jsx("div",{className:"w-full lg:w-1/2 h-[300px] bg-gray-200 rounded-2xl mb-4"})}),d.jsx("div",{className:"w-full lg:w-1/2 h-10 bg-gray-300 rounded-full mx-auto mb-6"}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[d.jsxs("div",{className:"p-4 rounded-lg shadow-md border border-gray-100",children:[d.jsx("div",{className:"h-6 w-32 bg-gray-300 mb-4 rounded"}),d.jsx("div",{className:"space-y-2",children:[...Array(4)].map((e,n)=>d.jsx("div",{className:"h-4 w-3/4 bg-gray-200 rounded"},n))})]}),d.jsxs("div",{className:"lg:col-span-2 p-4 rounded-lg shadow-md border border-gray-100",children:[d.jsx("div",{className:"h-6 w-32 bg-gray-300 mb-4 rounded"}),d.jsx("div",{className:"space-y-2",children:[...Array(4)].map((e,n)=>d.jsx("div",{className:"h-4 w-full bg-gray-200 rounded"},n))})]})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6 w-full",children:[...Array(3)].map((e,n)=>d.jsx("div",{className:"h-24 bg-gray-200 rounded-lg shadow-md border border-gray-100"},n))}),d.jsxs("div",{className:"p-6 rounded-lg shadow-md w-full border border-gray-100",children:[d.jsx("div",{className:"h-6 w-40 bg-gray-300 mb-6 rounded"}),d.jsxs("div",{className:"flex gap-8 mb-6",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-4 h-4 rounded-full bg-gray-300"}),d.jsx("div",{className:"w-24 h-4 bg-gray-200 rounded"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-4 h-4 rounded-full bg-gray-300"}),d.jsx("div",{className:"w-32 h-4 bg-gray-200 rounded"})]})]}),d.jsxs("div",{className:"mb-6",children:[d.jsx("div",{className:"w-24 h-4 bg-gray-300 mb-2 rounded"}),d.jsx("div",{className:"h-28 w-full bg-gray-100 rounded-lg"})]}),d.jsx("div",{className:"w-full h-10 bg-gray-300 rounded-full"})]})]}),s6=()=>{const{id:e}=Fc(),n=dn(),[a,r]=j.useState(null),[o,u]=j.useState(!0),[f,m]=j.useState(""),[p,g]=j.useState(""),[y,v]=j.useState(!1),[b,x]=j.useState(!1);j.useEffect(()=>{e&&((async()=>{try{u(!0);const Z=await Ki.getSubmissionDetail(e);r(Z.data.data),console.log("Submission Data:",Z.data.data),Z.data.data.diagnosis&&m(Z.data.data.diagnosis),Z.data.data.doctorNote&&g(Z.data.data.doctorNote)}catch(Z){console.error("Error fetching submission detail:",Z),Kt.error("Gagal memuat data submission")}finally{u(!1)}})(),v(!1))},[e]);const S=()=>{v(!0),console.log("Image failed to load, using default image")},E=async()=>{if(!f){Kt.error("Silakan pilih diagnosis terlebih dahulu");return}if((await Tn.fire({title:"Konfirmasi Verifikasi",html:"Apakah Anda sudah memverifikasi data dengan benar?<br><br><b>Hasil verifikasi tidak dapat diubah lagi</b><br>Pastikan Anda memeriksa dengan benar keluhan pasien.",icon:"warning",showCancelButton:!0,confirmButtonColor:"#12476B",cancelButtonColor:"#d33",confirmButtonText:"Ya, verifikasi",cancelButtonText:"Batalkan"})).isConfirmed)try{x(!0);const Z={diagnosis:f,doctorNote:p};await Ki.verifySubmission(e,Z),Kt.success("Verifikasi berhasil"),n("/dokter/riwayat-verifikasi")}catch(Z){console.error("Error verifying submission:",Z),Kt.error("Gagal memverifikasi submission")}finally{x(!1)}},C=()=>{if(!(a!=null&&a.imageUrl)||y){Kt.error("Gambar tidak tersedia untuk diunduh");return}const _=document.createElement("a");_.href=a.imageUrl,_.download=`skin-condition-${e}.jpg`,document.body.appendChild(_),_.click(),document.body.removeChild(_)};if(o)return d.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0 text-center",children:[d.jsx(r6,{}),";"]});const k=(a==null?void 0:a.status)==="verified",z=y?Nw:a==null?void 0:a.imageUrl;return d.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0",children:[d.jsxs("button",{onClick:()=>n("/dokter/riwayat-verifikasi"),className:"flex justify-between gap-x-2 items-center px-4 py-2 text-white font-bold rounded-xl bg-sky-800 cursor-pointer",children:[d.jsx(Ic,{className:"text-lg text-white"}),"kembali"]}),d.jsxs("div",{className:"text-center flex flex-col items-center",children:[d.jsxs("div",{className:"my-5 leading-10",children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Prediksi Penyakit"}),d.jsxs("p",{children:["ID: ",e||"-"]})]}),d.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 object-cover max-h-[400px]",src:z||Nw,alt:"Skin condition",onError:S}),d.jsx("button",{className:`w-full lg:w-1/2 px-4 py-2 my-2 text-white font-bold rounded-full ${y?"bg-gray-500 cursor-not-allowed":"bg-sky-800 hover:bg-sky-900 cursor-pointer"}`,onClick:C,disabled:y,children:y?"Gambar tidak tersedia":"Unduh Gambar"}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 mt-4 gap-4 w-full",children:[d.jsxs("div",{className:"p-4 text-left rounded-lg shadow-md border border-gray-100",children:[d.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Detail Pasien"}),d.jsxs("span",{className:"flex flex-col gap-y-2",children:[d.jsxs("p",{children:["Nama: ",(a==null?void 0:a.patientName)||"-"]}),d.jsxs("p",{children:["ID Pasien: ",(a==null?void 0:a.patientId)||"-"]}),d.jsxs("p",{children:["Status: ",(a==null?void 0:a.status)||"-"]}),d.jsxs("p",{children:["Tanggal Submit: ",(a==null?void 0:a.submittedAt)||"-"]}),(a==null?void 0:a.verifiedAt)&&d.jsxs("p",{children:["Tanggal Verifikasi: ",a.verifiedAt]})]})]}),d.jsxs("div",{className:"lg:col-span-2 p-4 text-left rounded-lg shadow-md border border-gray-100",children:[d.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Keluhan"}),d.jsx("p",{children:(a==null?void 0:a.complaint)||"Tidak ada keluhan"})]})]}),(a==null?void 0:a.diagnosisAi)&&d.jsx(T2,{diagnosis:a.diagnosisAi,percentage:a.percentage,status:a.status}),d.jsxs("div",{className:"p-6 mt-4 rounded-lg shadow-md w-full text-left border border-gray-100",children:[d.jsx("h1",{className:"text-xl font-semibold mb-4",children:k?"Hasil Verifikasi Dokter":"Verifikasi Hasil Deteksi"}),d.jsxs("div",{className:"mb-4",children:[d.jsx("p",{className:"font-bold mb-2",children:k?"Diagnosis Dokter:":"*Verifikasi Diagnosis"}),d.jsxs("div",{className:"flex gap-8",children:[d.jsxs("label",{className:`flex items-center gap-2 ${k?"cursor-default":"cursor-pointer"}`,children:[d.jsx("input",{type:"radio",className:"w-4 h-4",name:"diagnosis",value:"Melanoma",checked:f==="Melanoma",onChange:_=>!k&&m(_.target.value),disabled:k}),d.jsx("span",{children:"Melanoma"})]}),d.jsxs("label",{className:`flex items-center gap-2 ${k?"cursor-default":"cursor-pointer"}`,children:[d.jsx("input",{type:"radio",className:"w-4 h-4",name:"diagnosis",value:"Bukan Melanoma",checked:f==="Bukan Melanoma",onChange:_=>!k&&m(_.target.value),disabled:k}),d.jsx("span",{children:"Bukan Melanoma"})]})]})]}),d.jsxs("div",{className:"mb-6",children:[d.jsx("label",{htmlFor:"catatan",className:"block font-bold mb-2",children:k?"Catatan Dokter:":"Catatan:"}),k?d.jsx("div",{className:"border border-gray-200 rounded-lg w-full p-4 shadow-md min-h-[120px] bg-gray-50",children:p||"Tidak ada catatan"}):d.jsx("textarea",{id:"catatan",name:"catatan",placeholder:"Masukkan catatan untuk pasien disini",className:"border border-gray-200 rounded-lg w-full p-4 shadow-md min-h-[120px]",value:p,onChange:_=>g(_.target.value)})]}),!k&&d.jsx("button",{className:`w-full text-white font-semibold py-2 rounded-full ${b?"bg-gray-500 cursor-not-allowed":"bg-[#12476B] hover:bg-[#0f3c5b] cursor-pointer"}`,onClick:E,disabled:b,children:b?d.jsxs("div",{className:"flex items-center justify-center",children:[d.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[d.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),d.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Memproses..."]}):"Verifikasi"})]})]})]})},O2=({item:e,handleDelete:n})=>{const a=dn(),o=parseFloat(e.persentase)>=50?"text-red-600":"text-green-600",u=e.status==="rejected"?"text-red-600":e.status==="pending"?"text-yellow-600":"text-green-600",f=e.diagnosis===null?"Menunggu":e.diagnosis!=="Melanoma"?"Bukan Melanoma":"Melanoma";return d.jsx("div",{className:"block lg:hidden w-full mx-auto bg-white rounded-3xl shadow-lg p-6 mb-5",children:d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex justify-between gap-x-4",children:[d.jsx("span",{className:"font-bold",children:"Tanggal Pengajuan"}),d.jsx("span",{className:"text-right",children:e.date})]}),d.jsxs("div",{className:"flex justify-between gap-x-4",children:[d.jsx("span",{className:"font-bold",children:"Diagnosis AI"}),d.jsx("span",{className:`font-semibold text-right ${o}`,children:e.persentase})]}),d.jsxs("div",{className:"flex justify-between gap-x-4 items-center",children:[d.jsx("span",{className:"font-bold",children:"Gambar"}),d.jsx("img",{src:dx,alt:"Deteksi",className:"w-24 h-24 rounded-lg shadow-md object-cover"})]}),d.jsxs("div",{className:"flex justify-between gap-x-4",children:[d.jsx("span",{className:"font-bold",children:"Keluhan"}),d.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.keluhan})]}),d.jsxs("div",{className:"flex justify-between gap-x-4",children:[d.jsx("span",{className:"font-bold",children:"Status"}),d.jsx("span",{className:`font-semibold capitalize ${u}`,children:e.status})]}),d.jsxs("div",{className:"flex justify-between gap-x-4",children:[d.jsx("span",{className:"font-bold",children:"Tanggal Diverifikasi"}),d.jsx("span",{children:e.tglVerif||"-"})]}),d.jsxs("div",{className:"flex justify-between gap-x-4",children:[d.jsx("span",{className:"font-bold",children:"Verified By"}),d.jsx("span",{children:e.verifiedBy||"-"})]}),d.jsxs("div",{className:"flex justify-between gap-x-4",children:[d.jsx("span",{className:"font-bold",children:"Melanoma"}),d.jsx("span",{children:f||"-"})]}),d.jsxs("div",{className:"flex justify-between gap-x-4",children:[d.jsx("span",{className:"font-bold",children:"Catatan Dokter"}),d.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.doctorNote||"-"})]}),d.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[d.jsx("button",{onClick:()=>a(`/pengajuan/info/${e.id}`),className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Jc,alt:"Info"})}),d.jsx("button",{onClick:n,className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Gs,alt:"Hapus"})})]})]})})};O2.propTypes={item:Be.object.isRequired,handleDelete:Be.func.isRequired};const l6=()=>{var te;const{user:e}=Wi(),n=e==null?void 0:e.token,a=(te=e==null?void 0:e.data)==null?void 0:te.id,[r,o]=j.useState(!1),[u,f]=j.useState(1),[m,p]=j.useState(""),[g,y]=j.useState(5),[v,b]=j.useState(null),[x,S]=j.useState(!1),E=dn(),{data:C,isLoading:k,refetch:z}=el({queryKey:["submissions",a],queryFn:()=>ea.getSubmissions({userId:a}),enabled:!!a}),_=j.useMemo(()=>{var P;return((P=C==null?void 0:C.data)==null?void 0:P.data)||[]},[C]),Z=(_==null?void 0:_.filter(P=>{var L;return(L=P.verifiedBy)==null?void 0:L.toLowerCase().includes(m.toLowerCase())}))||[],R=Z.length,W=Math.ceil(R/g),ce=u*g,re=ce-g,Q=Z.slice(re,ce),ne=P=>{b(P),o(!0)},fe=jc({mutationFn:P=>ea.deleteSubmission(P,n),onSuccess:()=>{st.success("Data berhasil dihapus"),z(),o(!1),b(null)},onError:()=>{st.error("Gagal menghapus data")}}),Ge=()=>{u<W&&f(P=>P+1)},Xe=()=>{u>1&&f(P=>P-1)};return d.jsxs(d.Fragment,{children:[r&&d.jsx(ng,{onClose:()=>o(!1),onDelete:()=>fe.mutate(v)}),d.jsxs("div",{className:"pt-32 w-full px-6 lg:px-3",children:[d.jsx("h1",{className:"text-3xl font-bold text-black",children:"Riwayat Pengajuan"}),d.jsxs("div",{className:"flex flex-col md:flex-row md:justify-between gap-3 mt-6 mb-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"mr-2 font-medium",children:"Tampilkan:"}),d.jsxs("select",{className:"border rounded px-3 py-1",value:g,onChange:P=>{y(Number(P.target.value)),f(1)},children:[d.jsx("option",{value:5,children:"5 data"}),d.jsx("option",{value:10,children:"10 data"}),d.jsx("option",{value:20,children:"20 data"})]})]}),d.jsx("div",{children:d.jsx("input",{type:"text",placeholder:"Cari dokter...",className:"border rounded px-3 py-1 w-full md:w-64",value:m,onChange:P=>{p(P.target.value),f(1)}})})]}),d.jsx("button",{className:"px-4 py-2 mb-4 bg-sky-700 hover:bg-sky-600 font-semibold text-white rounded cursor-pointer",onClick:async()=>{try{S(!0),await z()}finally{S(!1)}},children:x?"Sedang memuat...":"Refresh Data 🔄"}),d.jsx("div",{className:"w-full overflow-x-auto hidden lg:block",children:d.jsxs("table",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white/60 backdrop-blur-md",children:[d.jsx("thead",{className:"border-b border-gray-200 text-left",children:d.jsxs("tr",{className:"text-black font-semibold",children:[d.jsx("th",{className:"py-4 px-6",children:"Tanggal"}),d.jsx("th",{className:"py-4 px-6",children:"Diagnosis AI"}),d.jsx("th",{className:"py-4 px-6",children:"Gambar"}),d.jsx("th",{className:"py-4 px-6",children:"Keluhan"}),d.jsx("th",{className:"py-4 px-6",children:"Status"}),d.jsx("th",{className:"py-4 px-6",children:"Tgl Verifikasi"}),d.jsx("th",{className:"py-4 px-6",children:"Verified By"}),d.jsx("th",{className:"py-4 px-6",children:"Melanoma"}),d.jsx("th",{className:"py-4 px-6",children:"Catatan Dokter"}),d.jsx("th",{className:"py-4 px-6",children:"Aksi"})]})}),d.jsx("tbody",{className:"text-left text-gray-800",children:k?d.jsx("tr",{children:d.jsx("td",{colSpan:10,className:"py-6",children:d.jsx(hx,{})})}):Q.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:10,className:"text-center font-bold py-6",children:"Anda belum memiliki riwayat pengajuan"})}):Z.length===0?d.jsx("tr",{children:d.jsxs("td",{colSpan:10,className:"text-center font-bold py-6",children:["Data tidak ditemukan untuk pencarian: ",d.jsx("i",{children:m})]})}):Q.map((P,L)=>{const G=parseFloat(P.diagnosisAi)>=50?"text-red-600":"text-green-600",le=P.status==="rejected"?"text-red-600":P.status==="pending"?"text-yellow-600":"text-green-600";return d.jsxs("tr",{className:"*:align-middle *:py-3 *:px-6",children:[d.jsx("td",{children:P.submittedAt}),d.jsx("td",{className:`font-semibold ${G}`,children:P.diagnosisAi}),d.jsx("td",{children:d.jsx("div",{className:"w-20 h-16 rounded-lg flex items-center justify-start overflow-hidden p-2",children:d.jsx("img",{className:"max-w-full max-h-full object-cover",src:P.imageUrl,alt:"Deteksi"})})}),d.jsx("td",{className:"px-6 text-ellipsis",children:P.complaint}),d.jsx("td",{className:`px-6 font-semibold capitalize ${le}`,children:P.status}),d.jsx("td",{children:P.verifiedAt}),d.jsx("td",{children:P.verifiedBy}),d.jsx("td",{children:P.diagnosis}),d.jsx("td",{children:P.doctorNote}),d.jsx("td",{children:d.jsxs("div",{className:"flex gap-x-3",children:[d.jsx("button",{type:"button",onClick:()=>E(`/pengajuan/info/${P.id}`),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Jc,alt:"Info"})}),d.jsx("button",{className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Gs,alt:"Hapus",onClick:()=>ne(P.id)})})]})})]},L)})})]})}),d.jsx("div",{className:"lg:hidden mt-4 space-y-4",children:Q.map((P,L)=>{const F={id:P.id,date:P.submittedAt,persentase:P.diagnosisAi,keluhan:P.complaint,status:P.status,tglVerif:P.verifiedAt,verifiedBy:P.verifiedBy,diagnosis:P.diagnosis,doctorNote:P.doctorNote};return d.jsx(O2,{item:F,handleDelete:()=>ne(P.id)},L)})}),d.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between mt-4 mb-10 px-4 text-sm text-gray-600",children:[d.jsxs("span",{children:["Halaman ",u," dari ",W,"  |  Total"," ",R," data"]}),d.jsxs("div",{className:"mt-2 lg:mt-0 flex gap-3",children:[d.jsx("button",{onClick:Xe,disabled:u===1,className:"px-4 py-2 rounded-md border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",children:"Sebelumnya"}),d.jsx("button",{onClick:Ge,disabled:u===W,className:"px-4 py-2 rounded-md border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",children:"Selanjutnya"})]})]})]})]})},zm=({children:e})=>{const n=localStorage.getItem("token"),{data:a}=JSON.parse(localStorage.getItem("user")),r=Da();return!n||!a?d.jsx(Rh,{to:"/",replace:!0}):a.role==="patient"&&!r.pathname.startsWith("/deteksi")&&!r.pathname.startsWith("/pengajuan")?d.jsx(Rh,{to:"/",replace:!0}):a.role==="doctor"&&!r.pathname.startsWith("/dokter")?d.jsx(Rh,{to:"/dokter",replace:!0}):e};zm.propTypes={children:Be.node};const _2=({data:e})=>{const n=dn(),[a,r]=j.useState(""),[o,u]=j.useState([]),[f,m]=j.useState(10),p=j.useMemo(()=>[{header:"Tanggal Pengajuan",accessorKey:"submittedAt"},{header:"Pasien",accessorKey:"patientName"},{header:"Diagnosis AI",accessorKey:"diagnosisAi",cell:({getValue:v})=>d.jsx("span",{className:"text-green-600 font-semibold block",children:v()})},{header:"Verifikasi Dokter",accessorKey:"diagnosis"},{header:"Catatan",accessorKey:"doctorNote",cell:({getValue:v})=>d.jsx("p",{className:"truncate max-w-[250px]",children:v()})},{header:"Detail",cell:({row:v})=>d.jsxs("button",{onClick:()=>n(`/dokter/riwayat-verifikasi/informasi-penyakit/${v.original.id}`),className:"w-full bg-[#12476B] text-white px-4 py-2 rounded-xl flex items-center justify-center gap-2",children:[d.jsx(cE,{size:18}),"Detail"]})}],[n]),g=ux({data:e,columns:p,state:{globalFilter:a,sorting:o},onGlobalFilterChange:r,onSortingChange:u,getCoreRowModel:rx(),getFilteredRowModel:sx(),getSortedRowModel:ox(),getPaginationRowModel:lx(),initialState:{pagination:{pageSize:f}}}),y=v=>{const b=Number(v.target.value);m(b),g.setPageSize(b)};return d.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[d.jsxs("div",{className:"mb-4 flex flex-col md:flex-row justify-between items-center gap-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("label",{htmlFor:"pageSize",className:"text-sm text-gray-700 whitespace-nowrap",children:"Tampilkan"}),d.jsx("select",{id:"pageSize",value:f,onChange:y,className:"px-3 py-2 border border-gray-200 rounded-lg shadow-sm text-sm",children:[10,25,50,100].map(v=>d.jsxs("option",{value:v,children:[v," data"]},v))})]}),d.jsxs("div",{className:"relative w-full max-w-sm",children:[d.jsx(qc,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),d.jsx("input",{type:"text",value:a??"",onChange:v=>r(v.target.value),placeholder:"Cari data...",className:"pl-10 pr-4 py-2 border border-gray-200 rounded-lg w-full shadow-sm"})]})]}),d.jsxs("table",{className:"w-full text-left",children:[d.jsx("thead",{className:"border-b border-gray-200 text-black font-semibold",children:g.getHeaderGroups().map(v=>d.jsx("tr",{children:v.headers.map(b=>d.jsx("th",{className:"py-4 px-6 text-center cursor-pointer select-none",onClick:b.column.getToggleSortingHandler(),children:d.jsxs("div",{className:"flex items-center justify-center gap-1",children:[Ac(b.column.columnDef.header,b.getContext()),{asc:d.jsx(Gb,{size:14}),desc:d.jsx(Qb,{size:14})}[b.column.getIsSorted()]??null]})},b.id))},v.id))}),d.jsx("tbody",{className:"text-gray-800",children:g.getRowModel().rows.map((v,b)=>d.jsx("tr",{className:b%2===0?"bg-white":"bg-gray-50",children:v.getVisibleCells().map(x=>d.jsx("td",{className:"py-4 px-6 text-center",children:Ac(x.column.columnDef.cell,x.getContext())},x.id))},v.id))})]}),d.jsxs("div",{className:"mt-6 flex flex-col md:flex-row items-center justify-between gap-4",children:[d.jsxs("div",{className:"text-sm text-gray-600",children:["Halaman ",g.getState().pagination.pageIndex+1," dari"," ",g.getPageCount(),"   |   Total:"," ",g.getFilteredRowModel().rows.length," data"]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("button",{onClick:()=>g.previousPage(),disabled:!g.getCanPreviousPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:[d.jsx(Yb,{}),"Sebelumnya"]}),d.jsxs("button",{onClick:()=>g.nextPage(),disabled:!g.getCanNextPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:["Selanjutnya",d.jsx(Xb,{})]})]})]})]})};_2.propTypes={data:Be.array.isRequired};const o6=()=>d.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[d.jsxs("div",{className:"grid grid-cols-4 font-semibold text-black py-3 border-b border-gray-300",children:[d.jsx("div",{className:"h-6 w-32 bg-gray-200 rounded"}),d.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded"}),d.jsx("div",{className:"h-6 w-28 bg-gray-200 rounded"}),d.jsx("div",{className:"h-6 w-28 bg-gray-200 rounded"})]}),[...Array(5)].map((e,n)=>d.jsxs("div",{className:"grid grid-cols-4 gap-4 py-4 border-b border-gray-100 animate-pulse",children:[d.jsx("div",{className:"h-6 bg-gray-200 rounded w-32"}),d.jsx("div",{className:"h-6 bg-gray-200 rounded w-40"}),d.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"}),d.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]},n)),d.jsxs("div",{className:"flex justify-between items-center mt-6",children:[d.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded animate-pulse"}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"}),d.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"})]})]})]}),u6=()=>{const[e,n]=j.useState([]),[a,r]=j.useState(!0),[o,u]=j.useState(null);return j.useEffect(()=>{(async()=>{try{r(!0);const m=await Ki.getSubmissionsHistory();n(m.data.data||[]),r(!1)}catch(m){console.error("Error fetching verification history:",m),u("Failed to fetch verification history"),r(!1)}})()},[]),a?d.jsx("div",{className:"py-10 px-6 flex justify-center",children:d.jsxs("div",{className:"w-full",children:[d.jsx("h1",{className:"text-3xl font-bold text-black text-center mb-6",children:"Riwayat Verifikasi"}),d.jsx(o6,{})]})}):o?d.jsxs("div",{className:"py-10 px-6",children:[d.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Riwayat Verifikasi"}),d.jsx("div",{className:"py-10 px-6 flex justify-center",children:d.jsx("p",{className:"text-lg text-red-500",children:o})})]}):d.jsxs("div",{className:"py-10",children:[d.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Riwayat Verifikasi"}),d.jsx("div",{className:"px-6 flex justify-center",children:e.length===0?d.jsxs("div",{className:"w-full flex flex-col items-center py-10",children:[d.jsx("img",{src:"/empty-state.svg",alt:"Empty",className:"w-40 h-40 mb-4 opacity-70",style:{objectFit:"contain"},onError:f=>f.target.style.display="none"}),d.jsx("p",{className:"text-lg text-gray-500",children:"Belum ada riwayat verifikasi."})]}):d.jsx(_2,{data:e})})]})},c6="/assets/errorPage-c4bJcYnY.jpeg",Jh=()=>{const e=tb(),n=dn();console.error(e);const a=()=>{n("/",{replace:!0})};return d.jsxs("div",{className:"h-screen flex flex-col items-center justify-center text-center p-4",children:[d.jsx("img",{src:c6,alt:"error",className:"w-[30rem] mb-2"}),d.jsx("p",{className:"text-lg font-bold",children:"Something went wrong."}),d.jsx("pre",{className:"bg-gray-100 p-4 mt-4 rounded text-sm text-red-700 max-w-md overflow-x-auto",children:(e==null?void 0:e.statusText)||(e==null?void 0:e.message)||"Unexpected error"}),d.jsx("button",{onClick:a,className:"mt-6 bg-blue-600 text-white px-6 py-2 rounded-full hover:bg-blue-700 transition",children:"Kembali ke halaman utama"})]})},d6=()=>{var k;const{id:e}=Fc(),{user:n}=Wi(),a=dn(),[r,o]=j.useState(""),[u,f]=j.useState(null),{data:m,isLoading:p,isError:g}=el({queryKey:["submission",e],queryFn:()=>ea.getDetectionsById(e),enabled:!!e}),y=((k=m==null?void 0:m.data)==null?void 0:k.data)||[];if(p)return d.jsx("div",{className:"mt-10",children:d.jsx(ld,{})});if(g||!y)return d.jsx("div",{className:"w-full h-96 flex items-center justify-center font-semibold",children:"Gagal memuat data..."});const v=y,b=async z=>{if(!r||!z||!(v!=null&&v.id)){Tn.fire("Error","Keluhan dan dokter wajib diisi","error");return}const _={doctorId:z.id,complaint:r};try{const Z=await ea.updateDetection(v.id,_,n.token);console.log("data submit:",Z),Tn.fire("Berhasil","Pengajuan berhasil dikirim ke dokter","success"),o(""),f(null)}catch(Z){console.error(Z),Tn.fire("Gagal","Terjadi kesalahan saat mengirim data","error")}},x=async z=>{(await Tn.fire({title:`Pilih Dokter ${z.name}?`,text:"Apakah Anda yakin ingin mengajukan verifikasi ke dokter ini?",icon:"question",showCancelButton:!0,confirmButtonText:"Ya, pilih dokter ini",cancelButtonText:"Batal"})).isConfirmed&&(f(z),b(z))},E=parseFloat(v.diagnosisAi)>=50?"text-red-600":"text-green-600",C=v.status==="rejected"?"text-red-600":v.status==="pending"?"text-yellow-600":"text-green-600";return d.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:d.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-6 lg:p-10",children:[d.jsxs("button",{onClick:()=>a("/deteksi"),className:"flex justify-between gap-x-2 items-center px-4 py-2 text-white font-bold rounded-xl bg-sky-800 cursor-pointer",children:[d.jsx(Ic,{className:"text-lg text-white"}),"kembali"]}),d.jsxs("div",{className:"text-center flex flex-col items-center",children:[d.jsxs("div",{className:"my-5 leading-10",children:[d.jsx("h1",{className:"text-2xl font-semibold",children:"Detail Hasil Deteksi"}),d.jsx("p",{className:"text-sm text-ellipsis",children:v.isSubmitted==="Sudah"?"Hasil deteksi sudah diverifikasi dokter":"Hasil deteksi belum diverifikasi dokter"})]}),d.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 object-cover",src:v.imageUrl,alt:"Hasil Deteksi Kulit"}),d.jsxs("p",{className:"w-full lg:w-1/2 my-5 text-left font-bold text-md",children:["ID Deteksi: ",v.id]}),d.jsx("a",{href:v.imageUrl,download:!0,className:"w-full lg:w-1/2 px-4 py-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 cursor-pointer text-center",children:"Unduh Gambar"}),d.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),d.jsx("p",{children:v.diagnosis||"Tidak diketahui"})]}),d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),d.jsx("p",{className:E,children:v.diagnosisAi||"Tidak tersedia"})]}),d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:N2,alt:"Pengajuan Verifikasi",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Pengajuan Verifikasi"}),d.jsx("p",{className:`font-semibold ${v.isSubmitted==="Sudah"?"text-green-500":"text-red-500"}`,children:v.isSubmitted})]}),d.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[d.jsx("img",{src:od,alt:"Status",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Status"}),d.jsx("p",{className:`font-semibold ${C}`,children:v.status})]})]}),d.jsx("p",{className:"text-sm font-normal text-gray-400",children:"*Hasil deteksi belum dipastikan benar karena web hanya memberikan indikasi awal, silahkan ajukan hasil verifikasi ke dokter."}),d.jsxs("div",{className:"w-full mt-6",children:[d.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Pengajuan Verifikasi"}),d.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Ajukan keluhan dan pilih dokter Anda disini"}),d.jsxs("div",{className:"text-left w-full",children:[d.jsx("p",{children:"Keluhan:"}),d.jsx("textarea",{value:r,onChange:z=>o(z.target.value),className:"w-full h-32 border border-gray-400 rounded-lg p-2 mt-2",placeholder:"Masukkan keluhan Anda disini",required:!0}),d.jsx(Ag,{handleDoctorSelect:x}),u&&d.jsxs("div",{className:"mt-4 text-sm text-green-700",children:["Dokter terpilih: ",d.jsxs("strong",{children:["dr. ",u.name]})]})]})]})]})]})})},f6=UC([{element:d.jsx(JC,{}),errorElement:d.jsx(Jh,{}),children:[{element:d.jsx(dc,{type:"default"}),errorElement:d.jsx(Jh,{}),children:[{path:"/",element:d.jsx(wT,{})},{path:"faq",element:d.jsx(Z3,{})}]},{element:d.jsx(zm,{children:d.jsx(dc,{type:"default"})}),errorElement:d.jsx(Jh,{}),children:[{path:"deteksi",element:d.jsx(K3,{})},{path:"pengajuan",element:d.jsx(l6,{})},{path:"deteksi/:id",element:d.jsx(bT,{})},{path:"pengajuan/info/:id",element:d.jsx(CT,{})},{path:"pengajuan/ulang/:id",element:d.jsx(d6,{})}]},{path:"dokter",element:d.jsx(zm,{children:d.jsx(dc,{type:"doctor"})}),children:[{path:"",element:d.jsx(n3,{})},{path:"daftar-pasien",element:d.jsx(W4,{})},{path:"daftar-pengajuan",element:d.jsx(t3,{})},{path:"riwayat-verifikasi",element:d.jsx(u6,{})},{path:"riwayat-verifikasi/informasi-penyakit/:id",element:d.jsx(s6,{})}]}]}]),h6=new b3;YS.createRoot(document.getElementById("root")).render(d.jsx(Yi.StrictMode,{children:d.jsx(E3,{client:h6,children:d.jsx(Ub,{children:d.jsx(ZC,{router:f6})})})}));