commit 72240da76272a4c55e56257236955afdde632745 Author: Sulthan Zaki Date: Thu Jul 16 09:51:17 2026 +0700 initial deployable commit diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..cf01f59 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.git/ +__MACOSX/ +cgi-bin/ +.htaccess +.well-known/ +Dockerfile +.dockerignore diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..621c461 --- /dev/null +++ b/.htaccess @@ -0,0 +1,10 @@ + + RewriteEngine On + RewriteBase / + RewriteRule ^index\.html$ - [L] + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-l + RewriteRule . /index.html [L] + + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..998c661 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM nginx:alpine + +COPY nginx.conf /etc/nginx/conf.d/default.conf + +COPY . /usr/share/nginx/html/ + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] diff --git a/__MACOSX/._dist b/__MACOSX/._dist new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/._dist differ diff --git a/__MACOSX/dist/._assets b/__MACOSX/dist/._assets new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/._assets differ diff --git a/__MACOSX/dist/._favicon.ico b/__MACOSX/dist/._favicon.ico new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/._favicon.ico differ diff --git a/__MACOSX/dist/._index.html b/__MACOSX/dist/._index.html new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/._index.html differ diff --git a/__MACOSX/dist/assets/._Ellipse 1-BVGZo3uy.png b/__MACOSX/dist/assets/._Ellipse 1-BVGZo3uy.png new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._Ellipse 1-BVGZo3uy.png differ diff --git a/__MACOSX/dist/assets/._Ellipse 4-CrOw4YA8.png b/__MACOSX/dist/assets/._Ellipse 4-CrOw4YA8.png new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._Ellipse 4-CrOw4YA8.png differ diff --git a/__MACOSX/dist/assets/._Urbanist-Bold-_m6Tq3Qd.ttf b/__MACOSX/dist/assets/._Urbanist-Bold-_m6Tq3Qd.ttf new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._Urbanist-Bold-_m6Tq3Qd.ttf differ diff --git a/__MACOSX/dist/assets/._Urbanist-Regular-BFGlRth7.ttf b/__MACOSX/dist/assets/._Urbanist-Regular-BFGlRth7.ttf new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._Urbanist-Regular-BFGlRth7.ttf differ diff --git a/__MACOSX/dist/assets/._Urbanist-SemiBold-pOjqLDOP.ttf b/__MACOSX/dist/assets/._Urbanist-SemiBold-pOjqLDOP.ttf new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._Urbanist-SemiBold-pOjqLDOP.ttf differ diff --git a/__MACOSX/dist/assets/._accordion1-zCBIfOOg.jpg b/__MACOSX/dist/assets/._accordion1-zCBIfOOg.jpg new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._accordion1-zCBIfOOg.jpg differ diff --git a/__MACOSX/dist/assets/._accordion2-BgptnTtb.jpg b/__MACOSX/dist/assets/._accordion2-BgptnTtb.jpg new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._accordion2-BgptnTtb.jpg differ diff --git a/__MACOSX/dist/assets/._accordion3-HU8XjMNE.jpg b/__MACOSX/dist/assets/._accordion3-HU8XjMNE.jpg new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._accordion3-HU8XjMNE.jpg differ diff --git a/__MACOSX/dist/assets/._default-DlLfYoqZ.png b/__MACOSX/dist/assets/._default-DlLfYoqZ.png new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._default-DlLfYoqZ.png differ diff --git a/__MACOSX/dist/assets/._doctor-B0xZjIfR.jpeg b/__MACOSX/dist/assets/._doctor-B0xZjIfR.jpeg new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._doctor-B0xZjIfR.jpeg differ diff --git a/__MACOSX/dist/assets/._doctorImage-DY3J_gjP.jpg b/__MACOSX/dist/assets/._doctorImage-DY3J_gjP.jpg new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._doctorImage-DY3J_gjP.jpg differ diff --git a/__MACOSX/dist/assets/._errorPage-c4bJcYnY.jpeg b/__MACOSX/dist/assets/._errorPage-c4bJcYnY.jpeg new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._errorPage-c4bJcYnY.jpeg differ diff --git a/__MACOSX/dist/assets/._index-BmU9RARS.js b/__MACOSX/dist/assets/._index-BmU9RARS.js new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._index-BmU9RARS.js differ diff --git a/__MACOSX/dist/assets/._index-CWQAYNRT.js b/__MACOSX/dist/assets/._index-CWQAYNRT.js new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._index-CWQAYNRT.js differ diff --git a/__MACOSX/dist/assets/._index-DPuNwwI8.css b/__MACOSX/dist/assets/._index-DPuNwwI8.css new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._index-DPuNwwI8.css differ diff --git a/__MACOSX/dist/assets/._index-DTxuOAFm.js b/__MACOSX/dist/assets/._index-DTxuOAFm.js new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._index-DTxuOAFm.js differ diff --git a/__MACOSX/dist/assets/._index-DZfOfg4Q.js b/__MACOSX/dist/assets/._index-DZfOfg4Q.js new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._index-DZfOfg4Q.js differ diff --git a/__MACOSX/dist/assets/._index-Dmx8ovNH.js b/__MACOSX/dist/assets/._index-Dmx8ovNH.js new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._index-Dmx8ovNH.js differ diff --git a/__MACOSX/dist/assets/._index-LfvfHwe5.css b/__MACOSX/dist/assets/._index-LfvfHwe5.css new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._index-LfvfHwe5.css differ diff --git a/__MACOSX/dist/assets/._index-bqXuGEcj.css b/__MACOSX/dist/assets/._index-bqXuGEcj.css new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._index-bqXuGEcj.css differ diff --git a/__MACOSX/dist/assets/._index-h0msZ7rN.js b/__MACOSX/dist/assets/._index-h0msZ7rN.js new file mode 100644 index 0000000..9cfc724 Binary files /dev/null and b/__MACOSX/dist/assets/._index-h0msZ7rN.js differ diff --git a/assets/Ellipse 1-BVGZo3uy.png b/assets/Ellipse 1-BVGZo3uy.png new file mode 100644 index 0000000..24d3a1e Binary files /dev/null and b/assets/Ellipse 1-BVGZo3uy.png differ diff --git a/assets/Ellipse 4-CrOw4YA8.png b/assets/Ellipse 4-CrOw4YA8.png new file mode 100644 index 0000000..4dcd177 Binary files /dev/null and b/assets/Ellipse 4-CrOw4YA8.png differ diff --git a/assets/Urbanist-Bold-_m6Tq3Qd.ttf b/assets/Urbanist-Bold-_m6Tq3Qd.ttf new file mode 100644 index 0000000..330e84f Binary files /dev/null and b/assets/Urbanist-Bold-_m6Tq3Qd.ttf differ diff --git a/assets/Urbanist-Regular-BFGlRth7.ttf b/assets/Urbanist-Regular-BFGlRth7.ttf new file mode 100644 index 0000000..2a794b2 Binary files /dev/null and b/assets/Urbanist-Regular-BFGlRth7.ttf differ diff --git a/assets/Urbanist-SemiBold-pOjqLDOP.ttf b/assets/Urbanist-SemiBold-pOjqLDOP.ttf new file mode 100644 index 0000000..6d393d1 Binary files /dev/null and b/assets/Urbanist-SemiBold-pOjqLDOP.ttf differ diff --git a/assets/accordion1-zCBIfOOg.jpg b/assets/accordion1-zCBIfOOg.jpg new file mode 100644 index 0000000..d11b997 Binary files /dev/null and b/assets/accordion1-zCBIfOOg.jpg differ diff --git a/assets/accordion2-BgptnTtb.jpg b/assets/accordion2-BgptnTtb.jpg new file mode 100644 index 0000000..4cebecb Binary files /dev/null and b/assets/accordion2-BgptnTtb.jpg differ diff --git a/assets/accordion3-HU8XjMNE.jpg b/assets/accordion3-HU8XjMNE.jpg new file mode 100644 index 0000000..dada0d4 Binary files /dev/null and b/assets/accordion3-HU8XjMNE.jpg differ diff --git a/assets/default-DlLfYoqZ.png b/assets/default-DlLfYoqZ.png new file mode 100644 index 0000000..954af0c Binary files /dev/null and b/assets/default-DlLfYoqZ.png differ diff --git a/assets/doctor-B0xZjIfR.jpeg b/assets/doctor-B0xZjIfR.jpeg new file mode 100644 index 0000000..cec9484 Binary files /dev/null and b/assets/doctor-B0xZjIfR.jpeg differ diff --git a/assets/doctorImage-DY3J_gjP.jpg b/assets/doctorImage-DY3J_gjP.jpg new file mode 100644 index 0000000..ea2dd7d Binary files /dev/null and b/assets/doctorImage-DY3J_gjP.jpg differ diff --git a/assets/errorPage-c4bJcYnY.jpeg b/assets/errorPage-c4bJcYnY.jpeg new file mode 100644 index 0000000..5ba0fef Binary files /dev/null and b/assets/errorPage-c4bJcYnY.jpeg differ diff --git a/assets/index-BmU9RARS.js b/assets/index-BmU9RARS.js new file mode 100644 index 0000000..70ab6a8 --- /dev/null +++ b/assets/index-BmU9RARS.js @@ -0,0 +1,430 @@ +var Gy=e=>{throw TypeError(e)};var gh=(e,n,a)=>n.has(e)||Gy("Cannot "+a);var M=(e,n,a)=>(gh(e,n,"read from private field"),a?a.call(e):n.get(e)),Ce=(e,n,a)=>n.has(e)?Gy("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),he=(e,n,a,r)=>(gh(e,n,"write to private field"),r?r.call(e,a):n.set(e,a),a),Fe=(e,n,a)=>(gh(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 Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={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 IS(){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 $y;function qS(){return $y||($y=1,ph.exports=IS()),ph.exports}var c=qS(),yh={exports:{}},He={};/** + * @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 Xy;function QS(){if(Xy)return He;Xy=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,j={};function C(N,X,le){this.props=N,this.context=X,this.refs=j,this.updater=le||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,le){this.props=N,this.context=X,this.refs=j,this.updater=le||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 ue(N,X,le,q,re,we){return le=we.ref,{$$typeof:e,type:N,key:X,ref:le!==void 0?le:null,props:we}}function se(N,X){return ue(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(le){return X[le]})}var fe=/\/+/g;function ge(N,X){return typeof N=="object"&&N!==null&&N.key!=null?ne(""+N.key):X.toString(36)}function De(){}function ce(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(De,De):(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,le,q,re){var we=typeof N;(we==="undefined"||we==="boolean")&&(N=null);var Re=!1;if(N===null)Re=!0;else switch(we){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(N.$$typeof){case e:case n:Re=!0;break;case y:return Re=N._init,P(Re(N._payload),X,le,q,re)}}if(Re)return re=re(N),Re=q===""?"."+ge(N,0):q,Z(re)?(le="",Re!=null&&(le=Re.replace(fe,"$&/")+"/"),P(re,X,le,"",function(ze){return ze})):re!=null&&(Q(re)&&(re=se(re,le+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(fe,"$&/")+"/")+Re)),X.push(re)),1;Re=0;var dt=q===""?".":q+":";if(Z(N))for(var Ve=0;Ve>>1,N=H[oe];if(0>>1;oeo(q,$))reo(we,q)?(H[oe]=we,H[re]=$,oe=re):(H[oe]=q,H[le]=$,oe=le);else if(reo(we,$))H[oe]=we,H[re]=$,oe=re;else break e}}return te}function o(H,te){var $=H.sortIndex-te.sortIndex;return $!==0?$:H.id-te.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,j=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function _(H){for(var te=a(g);te!==null;){if(te.callback===null)r(g);else if(te.startTime<=H)r(g),te.sortIndex=te.expirationTime,n(p,te);else break;te=a(g)}}function Z(H){if(j=!1,_(H),!S)if(a(p)!==null)S=!0,ce();else{var te=a(g);te!==null&&P(Z,te.startTime-H)}}var R=!1,W=-1,ue=5,se=-1;function Q(){return!(e.unstable_now()-seH&&Q());){var oe=v.callback;if(typeof oe=="function"){v.callback=null,b=v.priorityLevel;var N=oe(v.expirationTime<=H);if(H=e.unstable_now(),typeof N=="function"){v.callback=N,_(H),te=!0;break t}v===a(p)&&r(p),_(H)}else r(p);v=a(p)}if(v!==null)te=!0;else{var X=a(g);X!==null&&P(Z,X.startTime-H),te=!1}}break e}finally{v=null,b=$,x=!1}te=void 0}}finally{te?fe():R=!1}}}var fe;if(typeof z=="function")fe=function(){z(ne)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,De=ge.port2;ge.port1.onmessage=ne,fe=function(){De.postMessage(null)}}else fe=function(){C(ne,0)};function ce(){R||(R=!0,fe())}function P(H,te){W=C(function(){H(e.unstable_now())},te)}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(H){H.callback=null},e.unstable_continueExecution=function(){S||x||(S=!0,ce())},e.unstable_forceFrameRate=function(H){0>H||125oe?(H.sortIndex=$,n(g,H),a(p)===null&&H===a(g)&&(j?(k(W),W=-1):j=!0,P(Z,$-oe))):(H.sortIndex=N,n(p,H),S||x||(S=!0,ce())),H},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(H){var te=b;return function(){var $=b;b=te;try{return H.apply(this,arguments)}finally{b=$}}}}(bh)),bh}var Jy;function YS(){return Jy||(Jy=1,wh.exports=GS()),wh.exports}var xh={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 Wy;function $S(){if(Wy)return Wt;Wy=1;var e=zm();function n(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),xh.exports=$S(),xh.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 tv;function XS(){if(tv)return no;tv=1;var e=YS(),n=zm(),a=Fw();function r(t){var i="https://react.dev/errors/"+t;if(1)":-1d||T[l]!==B[d]){var J=` +`+T[l].replace(" at new "," at ");return t.displayName&&J.includes("")&&(J=J.replace("",t.displayName)),J}while(1<=l&&0<=d);break}}}finally{ce=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?De(s):""}function H(t){switch(t.tag){case 26:case 27:case 5:return De(t.type);case 16:return De("Lazy");case 13:return De("Suspense");case 19:return De("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 te(t){try{var i="";do i+=H(t),t=t.return;while(t);return i}catch(s){return` +Error generating stack: `+s.message+` +`+s.stack}}function $(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 oe(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($(t)!==t)throw Error(r(188))}function X(t){var i=t.alternate;if(!i){if(i=$(t),i===null)throw Error(r(188));return i!==t?null:t}for(var s=t,l=i;;){var d=s.return;if(d===null)break;var h=d.alternate;if(h===null){if(l=d.return,l!==null){s=l;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===s)return N(d),t;if(h===l)return N(d),i;h=h.sibling}throw Error(r(188))}if(s.return!==l.return)s=d,l=h;else{for(var w=!1,A=d.child;A;){if(A===s){w=!0,s=d,l=h;break}if(A===l){w=!0,l=d,s=h;break}A=A.sibling}if(!w){for(A=h.child;A;){if(A===s){w=!0,s=h,l=d;break}if(A===l){w=!0,l=h,s=d;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 le(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=le(t),i!==null)return i;t=t.sibling}return null}var q=Array.isArray,re=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,we={pending:!1,data:null,method:null,action:null},Re=[],dt=-1;function Ve(t){return{current:t}}function ze(t){0>dt||(t.current=Re[dt],Re[dt]=null,dt--)}function _e(t,i){dt++,Re[dt]=t.current,t.current=i}var bt=Ve(null),xn=Ve(null),Rt=Ve(null),Yr=Ve(null);function $r(t,i){switch(_e(Rt,i),_e(xn,t),_e(bt,null),t=i.nodeType,t){case 9:case 11:i=(i=i.documentElement)&&(i=i.namespaceURI)?xy(i):0;break;default:if(t=t===8?i.parentNode:i,i=t.tagName,t=t.namespaceURI)t=xy(t),i=Sy(t,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ze(bt),_e(bt,i)}function Oa(){ze(bt),ze(xn),ze(Rt)}function rl(t){t.memoizedState!==null&&_e(Yr,t);var i=bt.current,s=Sy(i,t.type);i!==s&&(_e(xn,t),_e(bt,s))}function Xr(t){xn.current===t&&(ze(bt),ze(xn)),Yr.current===t&&(ze(Yr),Kl._currentValue=we)}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,zn=e.unstable_ImmediatePriority,ol=e.unstable_UserBlockingPriority,oi=e.unstable_NormalPriority,ud=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,cd=Math.LN2;function Vo(t){return t>>>=0,t===0?32:31-(ul(t)/cd|0)|0}var Kr=128,nr=4194304;function Ln(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,d=t.suspendedLanes,h=t.pingedLanes,w=t.warmLanes;t=t.finishedLanes!==0;var A=s&134217727;return A!==0?(s=A&~d,s!==0?l=Ln(s):(h&=A,h!==0?l=Ln(h):t||(w=A&~w,w!==0&&(l=Ln(w))))):(A=s&~d,A!==0?l=Ln(A):h!==0?l=Ln(h):t||(w=s&~w,w!==0&&(l=Ln(w)))),l===0?0:i!==0&&i!==l&&(i&d)===0&&(d=l&-l,w=i&-i,d>=w||d===32&&(w&4194176)!==0)?i:l}function ar(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function dd(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 U(){var t=nr;return nr<<=1,(nr&62914560)===0&&(nr=4194304),t}function I(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,d,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"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 Fn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Cg(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function U2(t){var i=Cg(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 d=s.get,h=s.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return d.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=U2(t))}function Eg(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Cg(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 H2=/[\n"\\]/g;function Pn(t){return t.replace(H2,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function fd(t,i,s,l,d,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=""+Fn(i)):t.value!==""+Fn(i)&&(t.value=""+Fn(i)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),i!=null?hd(t,w,Fn(i)):s!=null?hd(t,w,Fn(s)):l!=null&&t.removeAttribute("value"),d==null&&h!=null&&(t.defaultChecked=!!h),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.name=""+Fn(A):t.removeAttribute("name")}function jg(t,i,s,l,d,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?""+Fn(s):"",i=i!=null?""+Fn(i):s,A||i===t.value||(t.value=i),t.defaultValue=i}l=l??d,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 hd(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 d=0;d=ml),Hg=" ",Fg=!1;function Pg(t,i){switch(t){case"keyup":return h1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ns=!1;function g1(t,i){switch(t){case"compositionend":return Vg(i);case"keypress":return i.which!==32?null:(Fg=!0,Hg);case"textInput":return t=i.data,t===Hg&&Fg?null:t;default:return null}}function p1(t,i){if(ns)return t==="compositionend"||!Cd&&Pg(t,i)?(t=Og(),$o=wd=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)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=Kg(s)}}function Jg(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Jg(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Wg(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 Rd(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 C1(t,i){var s=Wg(i);i=t.focusedElem;var l=t.selectionRange;if(s!==i&&i&&i.ownerDocument&&Jg(i.ownerDocument.documentElement,i)){if(l!==null&&Rd(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 d=i.textContent.length,h=Math.min(l.start,d);l=l.end===void 0?h:Math.min(l.end,d),!s.extend&&h>l&&(d=l,l=h,h=d),d=Zg(i,h);var w=Zg(i,l);d&&w&&(s.rangeCount!==1||s.anchorNode!==d.node||s.anchorOffset!==d.offset||s.focusNode!==w.node||s.focusOffset!==w.offset)&&(t=t.createRange(),t.setStart(d.node,d.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=document.documentMode,as=null,Nd=null,vl=null,Td=!1;function ep(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Td||as==null||as!==Go(l)||(l=as,"selectionStart"in l&&Rd(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(Nd,"onSelect"),0>=w,d-=w,Ha=1<<32-Zt(i)+d|s<Te?(Pt=Ae,Ae=null):Pt=Ae.sibling;var Ze=V(L,Ae,F[Te],ee);if(Ze===null){Ae===null&&(Ae=Pt);break}t&&Ae&&Ze.alternate===null&&i(L,Ae),O=h(Ze,O,Te),Ie===null?ve=Ze:Ie.sibling=Ze,Ie=Ze,Ae=Pt}if(Te===F.length)return s(L,Ae),Ke&&dr(L,Te),ve;if(Ae===null){for(;TeTe?(Pt=Ae,Ae=null):Pt=Ae.sibling;var ki=V(L,Ae,Ze.value,ee);if(ki===null){Ae===null&&(Ae=Pt);break}t&&Ae&&ki.alternate===null&&i(L,Ae),O=h(ki,O,Te),Ie===null?ve=ki:Ie.sibling=ki,Ie=ki,Ae=Pt}if(Ze.done)return s(L,Ae),Ke&&dr(L,Te),ve;if(Ae===null){for(;!Ze.done;Te++,Ze=F.next())Ze=ae(L,Ze.value,ee),Ze!==null&&(O=h(Ze,O,Te),Ie===null?ve=Ze:Ie.sibling=Ze,Ie=Ze);return Ke&&dr(L,Te),ve}for(Ae=l(Ae);!Ze.done;Te++,Ze=F.next())Ze=K(Ae,L,Te,Ze.value,ee),Ze!==null&&(t&&Ze.alternate!==null&&Ae.delete(Ze.key===null?Te:Ze.key),O=h(Ze,O,Te),Ie===null?ve=Ze:Ie.sibling=Ze,Ie=Ze);return t&&Ae.forEach(function(VS){return i(L,VS)}),Ke&&dr(L,Te),ve}function Et(L,O,F,ee){if(typeof F=="object"&&F!==null&&F.type===p&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case f:e:{for(var ve=F.key;O!==null;){if(O.key===ve){if(ve=F.type,ve===p){if(O.tag===7){s(L,O.sibling),ee=d(O,F.props.children),ee.return=L,L=ee;break e}}else if(O.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===z&&yp(ve)===O.type){s(L,O.sibling),ee=d(O,F.props),El(ee,F),ee.return=L,L=ee;break e}s(L,O);break}else i(L,O);O=O.sibling}F.type===p?(ee=Sr(F.props.children,L.mode,ee,F.key),ee.return=L,L=ee):(ee=Eu(F.type,F.key,F.props,null,L.mode,ee),El(ee,F),ee.return=L,L=ee)}return w(L);case m:e:{for(ve=F.key;O!==null;){if(O.key===ve)if(O.tag===4&&O.stateNode.containerInfo===F.containerInfo&&O.stateNode.implementation===F.implementation){s(L,O.sibling),ee=d(O,F.children||[]),ee.return=L,L=ee;break e}else{s(L,O);break}else i(L,O);O=O.sibling}ee=Df(F,L.mode,ee),ee.return=L,L=ee}return w(L);case z:return ve=F._init,F=ve(F._payload),Et(L,O,F,ee)}if(q(F))return xe(L,O,F,ee);if(W(F)){if(ve=W(F),typeof ve!="function")throw Error(r(150));return F=ve.call(F),Le(L,O,F,ee)}if(typeof F.then=="function")return Et(L,O,su(F),ee);if(F.$$typeof===x)return Et(L,O,Su(L,F),ee);lu(L,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,O!==null&&O.tag===6?(s(L,O.sibling),ee=d(O,F),ee.return=L,L=ee):(s(L,O),ee=Mf(F,L.mode,ee),ee.return=L,L=ee),w(L)):s(L,O)}return function(L,O,F,ee){try{Cl=0;var ve=Et(L,O,F,ee);return us=null,ve}catch(Ae){if(Ae===Sl)throw Ae;var Ie=Xn(29,Ae,null,L.mode);return Ie.lanes=ee,Ie.return=L,Ie}finally{}}}var hr=vp(!0),wp=vp(!1),cs=Ve(null),ou=Ve(0);function bp(t,i){t=Za,_e(ou,t),_e(cs,i),Za=t|i.baseLanes}function Ld(){_e(ou,Za),_e(cs,cs.current)}function Ud(){Za=ou.current,ze(cs),ze(ou)}var Gn=Ve(null),wa=null;function fi(t){var i=t.alternate;_e(zt,zt.current&1),_e(Gn,t),wa===null&&(i===null||cs.current!==null||i.memoizedState!==null)&&(wa=t)}function xp(t){if(t.tag===22){if(_e(zt,zt.current),_e(Gn,t),wa===null){var i=t.alternate;i!==null&&i.memoizedState!==null&&(wa=t)}}else hi()}function hi(){_e(zt,zt.current),_e(Gn,Gn.current)}function Pa(t){ze(Gn),wa===t&&(wa=null),ze(zt)}var zt=Ve(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 T1=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()})}},k1=e.unstable_scheduleCallback,M1=e.unstable_NormalPriority,Lt={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hd(){return{controller:new T1,data:new Map,refCount:0}}function jl(t){t.refCount--,t.refCount===0&&k1(M1,function(){t.controller.abort()})}var Rl=null,Fd=0,ds=0,fs=null;function D1(t,i){if(Rl===null){var s=Rl=[];Fd=0,ds=Yf(),fs={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Fd++,i.then(Sp,Sp),i}function Sp(){if(--Fd===0&&Rl!==null){fs!==null&&(fs.status="fulfilled");var t=Rl;Rl=null,ds=0,fs=null;for(var i=0;ih?h:8;var w=Q.T,A={};Q.T=A,af(t,!1,i,s);try{var T=d(),B=Q.S;if(B!==null&&B(A,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var J=O1(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{re.p=h,Q.T=w}}function U1(){}function tf(t,i,s,l){if(t.tag!==5)throw Error(r(476));var d=Wp(t).queue;Jp(t,d,i,we,s===null?U1:function(){return e0(t),s(l)})}function Wp(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:we,baseState:we,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:we},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 e0(t){var i=Wp(t).next.queue;kl(t,i,{},Rn())}function nf(){return Jt(Kl)}function t0(){return _t().memoizedState}function n0(){return _t().memoizedState}function H1(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:Hd()},t.payload=i;return}i=i.return}}function F1(t,i,s){var l=Rn();s={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},vu(t)?i0(i,s):(s=Dd(t,i,s,l),s!==null&&(ln(s,t,l),r0(s,i,l)))}function a0(t,i,s){var l=Rn();kl(t,i,s,l)}function kl(t,i,s,l){var d={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(vu(t))i0(i,d);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(d.hasEagerState=!0,d.eagerState=A,An(A,w))return tu(t,i,d,0),lt===null&&eu(),!1}catch{}finally{}if(s=Dd(t,i,d,l),s!==null)return ln(s,t,l),r0(s,i,l),!0}return!1}function af(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=Dd(t,s,l,2),i!==null&&ln(i,t,2)}function vu(t){var i=t.alternate;return t===Pe||i!==null&&i===Pe}function i0(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 r0(t,i,s){if((s&4194176)!==0){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,Ee(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 d=s(i);if(gr){Sn(!0);try{s(i)}finally{Sn(!1)}}}else d=i;return l.memoizedState=l.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},l.queue=t,t=t.dispatch=F1.bind(null,Pe,t),[l.memoizedState,t]},useRef:function(t){var i=pn();return t={current:t},i.memoizedState=t},useState:function(t){t=Kd(t);var i=t.queue,s=a0.bind(null,Pe,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:Wd,useDeferredValue:function(t,i){var s=pn();return ef(s,t,i)},useTransition:function(){var t=Kd(!1);return t=Jp.bind(null,Pe,t.queue,!0,!1),pn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,s){var l=Pe,d=pn();if(Ke){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),lt===null)throw Error(r(349));(Xe&60)!==0||Np(l,i,s)}d.memoizedState=s;var h={value:s,getSnapshot:i};return d.queue=h,qp(kp.bind(null,l,h,t),[t]),l.flags|=2048,gs(9,Tp.bind(null,l,h,s,i),{destroy:void 0},null),s},useId:function(){var t=pn(),i=lt.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 title"))),Xt(h,l,s),h[ye]=t,st(h),l=h;break e;case"link":var w=Dy("link","href",d).get(l+(s.href||""));if(w){for(var A=0;A<\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?d.createElement(s,{is:l.is}):d.createElement(s)}}t[ye]=i,t[Oe]=l;e:for(d=i.child;d!==null;){if(d.tag===5||d.tag===6)t.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;d=d.return}d.sibling.return=d.return,d=d.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,d=sn,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}t[ye]=i,t=!!(t.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||by(t.nodeValue,s)),t||fr(i)}else t=Lu(t).createTextNode(l),t[ye]=i,i.stateNode=t}return yt(i),null;case 13:if(l=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=wl(i),l!==null&&l.dehydrated!==null){if(t===null){if(!d)throw Error(r(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[ye]=i}else bl(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;yt(i),d=!1}else la!==null&&(Ff(la),la=null),d=!0;if(!d)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,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool);var h=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==d&&(l.flags|=2048)}return s!==t&&s&&(i.child.flags|=8192),ju(i,i.updateQueue),yt(i),null;case 4:return Oa(),t===null&&Zf(i.stateNode.containerInfo),yt(i),null;case 10:return Qa(i.type),yt(i),null;case 19:if(ze(zt),d=i.memoizedState,d===null)return yt(i),null;if(l=(i.flags&128)!==0,h=d.rendering,h===null)if(l)Fl(d,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(h=uu(t),h!==null){for(i.flags|=128,Fl(d,!1),t=h.updateQueue,i.updateQueue=t,ju(i,t),i.subtreeFlags=0,t=s,s=i.child;s!==null;)$0(s,t),s=s.sibling;return _e(zt,zt.current&1|2),i.child}t=t.sibling}d.tail!==null&&hn()>Ru&&(i.flags|=128,l=!0,Fl(d,!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(d,!0),d.tail===null&&d.tailMode==="hidden"&&!h.alternate&&!Ke)return yt(i),null}else 2*hn()-d.renderingStartTime>Ru&&s!==536870912&&(i.flags|=128,l=!0,Fl(d,!1),i.lanes=4194304);d.isBackwards?(h.sibling=i.child,i.child=h):(t=d.last,t!==null?t.sibling=h:i.child=h,d.last=h)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=hn(),i.sibling=null,t=zt.current,_e(zt,l?t&1|2:t&1),i):(yt(i),null);case 22:case 23:return Pa(i),Ud(),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&&ze(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 Y1(t,i){switch(_d(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 ze(zt),null;case 4:return Oa(),null;case 10:return Qa(i.type),null;case 22:case 23:return Pa(i),Ud(),t!==null&&ze(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 Z0(t,i){switch(_d(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:ze(zt);break;case 10:Qa(i.type);break;case 22:case 23:Pa(i),Ud(),t!==null&&ze(mr);break;case 24:Qa(Lt)}}var $1={getCacheForType:function(t){var i=Jt(Lt),s=i.data.get(t);return s===void 0&&(s=t(),i.data.set(t,s)),s}},X1=typeof WeakMap=="function"?WeakMap:Map,vt=0,lt=null,qe=null,Xe=0,ot=0,jn=null,Ka=!1,ws=!1,Of=!1,Za=0,Ct=0,Ci=0,Ar=0,_f=0,Kn=0,bs=0,Pl=null,xa=null,Bf=!1,zf=0,Ru=1/0,Nu=null,Ei=null,Tu=!1,Cr=null,Vl=0,Lf=0,Uf=null,Il=0,Hf=null;function Rn(){if((vt&2)!==0&&Xe!==0)return Xe&-Xe;if(Q.T!==null){var t=ds;return t!==0?t:Yf()}return Se()}function J0(){Kn===0&&(Kn=(Xe&536870912)===0||Ke?D():536870912);var t=Gn.current;return t!==null&&(t.flags|=32),Kn}function ln(t,i,s){(t===lt&&ot===2||t.cancelPendingCommit!==null)&&(xs(t,0),Ja(t,Xe,Kn,!1)),ie(t,s),((vt&2)===0||t!==lt)&&(t===lt&&((vt&2)===0&&(Ar|=s),Ct===4&&Ja(t,Xe,Kn,!1)),Sa(t))}function W0(t,i,s){if((vt&6)!==0)throw Error(r(327));var l=!s&&(i&60)===0&&(i&t.expiredLanes)===0||ar(t,i),d=l?J1(t,i):If(t,i,!0),h=l;do{if(d===0){ws&&!l&&Ja(t,i,0,!1);break}else if(d===6)Ja(t,i,0,!Ka);else{if(s=t.current.alternate,h&&!K1(s)){d=If(t,i,!1),h=!1;continue}if(d===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;d=Pl;var T=A.current.memoizedState.isDehydrated;if(T&&(xs(A,w).flags|=256),w=If(A,w,!1),w!==2){if(Of&&!T){A.errorRecoveryDisabledLanes|=h,Ar|=h,d=4;break e}h=xa,xa=d,h!==null&&Ff(h)}d=w}if(h=!1,d!==2)continue}}if(d===1){xs(t,0),Ja(t,i,0,!0);break}e:{switch(l=t,d){case 0:case 1:throw Error(r(345));case 4:if((i&4194176)===i){Ja(l,i,Kn,!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=zf+300-hn(),10s?32:s,Q.T=null,Cr===null)var h=!1;else{s=Uf,Uf=null;var w=Cr,A=Vl;if(Cr=null,Vl=0,(vt&6)!==0)throw Error(r(331));var T=vt;if(vt|=4,G0(w.current),I0(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{re.p=d,Q.T=l,oy(t,i)}}return!1}function uy(t,i,s){i=In(s,i),i=lf(t.stateNode,i,2),t=wi(t,i,2),t!==null&&(ie(t,2),Sa(t))}function rt(t,i,s){if(t.tag===3)uy(t,t,s);else for(;i!==null;){if(i.tag===3){uy(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=In(s,t),s=f0(2),l=wi(i,s,2),l!==null&&(h0(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 X1;var d=new Set;l.set(i,d)}else d=l.get(i),d===void 0&&(d=new Set,l.set(i,d));d.has(s)||(Of=!0,d.add(s),t=tS.bind(null,t,i,s),i.then(t,t))}function tS(t,i,s){var l=t.pingCache;l!==null&&l.delete(i),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,lt===t&&(Xe&s)===s&&(Ct===4||Ct===3&&(Xe&62914560)===Xe&&300>hn()-zf?(vt&2)===0&&xs(t,0):_f|=s,bs===Xe&&(bs=0)),Sa(t)}function cy(t,i){i===0&&(i=U()),t=di(t,i),t!==null&&(ie(t,i),Sa(t))}function nS(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),cy(t,s)}function aS(t,i){var s=0;switch(t.tag){case 13:var l=t.stateNode,d=t.memoizedState;d!==null&&(s=d.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),cy(t,s)}function iS(t,i){return ll(t,i)}var Du=null,Cs=null,Qf=!1,Ou=!1,Gf=!1,Er=0;function Sa(t){t!==Cs&&t.next===null&&(Cs===null?Du=Cs=t:Cs=Cs.next=t),Ou=!0,Qf||(Qf=!0,sS(rS))}function ql(t,i){if(!Gf&&Ou){Gf=!0;do for(var s=!1,l=Du;l!==null;){if(t!==0){var d=l.pendingLanes;if(d===0)var h=0;else{var w=l.suspendedLanes,A=l.pingedLanes;h=(1<<31-Zt(42|t)+1)-1,h&=d&~(w&~A),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(s=!0,hy(l,h))}else h=Xe,h=_a(l,l===lt?h:0),(h&3)===0||ar(l,h)||(s=!0,hy(l,h));l=l.next}while(s);Gf=!1}}function rS(){Ou=Qf=!1;var t=0;Er!==0&&(mS()&&(t=Er),Er=0);for(var i=hn(),s=null,l=Du;l!==null;){var d=l.next,h=dy(l,i);h===0?(l.next=null,s===null?Du=d:s.next=d,d===null&&(Cs=s)):(s=l,(t!==0||(h&3)!==0)&&(Ou=!0)),l=d}ql(t)}function dy(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,d=t.expirationTimes,h=t.pendingLanes&-62914561;0"u"?null:document;function Ny(t,i,s){var l=js;if(l&&typeof i=="string"&&i){var d=Pn(i);d='link[rel="'+t+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),Ry.has(d)||(Ry.add(d),t={rel:t,crossOrigin:s,href:i},l.querySelector(d)===null&&(i=l.createElement("link"),Xt(i,"link",t),st(i),l.head.appendChild(i)))}}function SS(t){Wa.D(t),Ny("dns-prefetch",t,null)}function AS(t,i){Wa.C(t,i),Ny("preconnect",t,i)}function CS(t,i,s){Wa.L(t,i,s);var l=js;if(l&&t&&i){var d='link[rel="preload"][as="'+Pn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+Pn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+Pn(s.imageSizes)+'"]')):d+='[href="'+Pn(t)+'"]';var h=d;switch(i){case"style":h=Rs(t);break;case"script":h=Ns(t)}Zn.has(h)||(t=ne({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:t,as:i},s),Zn.set(h,t),l.querySelector(d)!==null||i==="style"&&l.querySelector(Yl(h))||i==="script"&&l.querySelector($l(h))||(i=l.createElement("link"),Xt(i,"link",t),st(i),l.head.appendChild(i)))}}function ES(t,i){Wa.m(t,i);var s=js;if(s&&t){var l=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+Pn(l)+'"][href="'+Pn(t)+'"]',h=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ns(t)}if(!Zn.has(h)&&(t=ne({rel:"modulepreload",href:t},i),Zn.set(h,t),s.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector($l(h)))return}l=s.createElement("link"),Xt(l,"link",t),st(l),s.head.appendChild(l)}}}function jS(t,i,s){Wa.S(t,i,s);var l=js;if(l&&t){var d=Hn(l).hoistableStyles,h=Rs(t);i=i||"default";var w=d.get(h);if(!w){var A={loading:0,preload:null};if(w=l.querySelector(Yl(h)))A.loading=5;else{t=ne({rel:"stylesheet",href:t,"data-precedence":i},s),(s=Zn.get(h))&&sh(t,s);var T=w=l.createElement("link");st(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},d.set(h,w)}}}function RS(t,i){Wa.X(t,i);var s=js;if(s&&t){var l=Hn(s).hoistableScripts,d=Ns(t),h=l.get(d);h||(h=s.querySelector($l(d)),h||(t=ne({src:t,async:!0},i),(i=Zn.get(d))&&lh(t,i),h=s.createElement("script"),st(h),Xt(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function NS(t,i){Wa.M(t,i);var s=js;if(s&&t){var l=Hn(s).hoistableScripts,d=Ns(t),h=l.get(d);h||(h=s.querySelector($l(d)),h||(t=ne({src:t,async:!0,type:"module"},i),(i=Zn.get(d))&&lh(t,i),h=s.createElement("script"),st(h),Xt(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function Ty(t,i,s,l){var d=(d=Rt.current)?Uu(d):null;if(!d)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=Hn(d).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=Hn(d).hoistableStyles,w=h.get(t);if(w||(d=d.ownerDocument||d,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,w),(h=d.querySelector(Yl(t)))&&!h._p&&(w.instance=h,w.state.loading=5),Zn.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},Zn.set(t,s),h||TS(d,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=Hn(d).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="'+Pn(t)+'"'}function Yl(t){return'link[rel="stylesheet"]['+t+"]"}function ky(t){return ne({},t,{"data-precedence":t.precedence,precedence:null})}function TS(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),st(i),t.head.appendChild(i))}function Ns(t){return'[src="'+Pn(t)+'"]'}function $l(t){return"script[async]"+t}function My(t,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var l=t.querySelector('style[data-href~="'+Pn(s.href)+'"]');if(l)return i.instance=l,st(l),l;var d=ne({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),st(l),Xt(l,"style",d),Hu(l,s.precedence,t),i.instance=l;case"stylesheet":d=Rs(s.href);var h=t.querySelector(Yl(d));if(h)return i.state.loading|=4,i.instance=h,st(h),h;l=ky(s),(d=Zn.get(d))&&sh(l,d),h=(t.ownerDocument||t).createElement("link"),st(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),(d=t.querySelector($l(h)))?(i.instance=d,st(d),d):(l=s,(d=Zn.get(h))&&(l=ne({},s),lh(l,d)),t=t.ownerDocument||t,d=t.createElement("script"),st(d),Xt(d,"link",l),t.head.appendChild(d),i.instance=d);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]'),d=l.length?l[l.length-1]:null,h=d,w=0;w title"):null)}function kS(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 _y(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Xl=null;function MS(){}function DS(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 d=Rs(s.href),h=t.querySelector(Yl(d));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,st(h);return}h=t.ownerDocument||t,s=ky(s),(d=Zn.get(d))&&sh(s,d),h=h.createElement("link"),st(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 OS(){if(Xl===null)throw Error(r(475));var t=Xl;return t.stylesheets&&t.count===0&&oh(t,t.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),vh.exports=XS(),vh.exports}var ZS=KS(),ao={},av;function JS(){if(av)return ao;av=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,j=b.length;if(j<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?j:_;if(z>Z){k=b.lastIndexOf(";",z-1)+1;continue}const R=m(b,k,z),W=p(b,z,R),ue=b.slice(R,W);if(S[ue]===void 0){let se=m(b,z+1,Z),Q=p(b,Z,se);const ne=C(b.slice(se,Q));S[ue]=ne}k=Z+1}while(kS;){const j=b.charCodeAt(--x);if(j!==32&&j!==9)return x+1}return S}function g(b,x,S){const j=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(b))throw new TypeError(`argument name is invalid: ${b}`);const C=j(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}JS();/** + * 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)},WS=(e,n,a)=>n.has(e)||Pw("Cannot "+a),Sh=(e,n,a)=>(WS(e,n,"read from private field"),a?a.call(e):n.get(e)),eA=(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),iv="popstate";function tA(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 aA(n,a,null,e)}function Qe(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 nA(){return Math.random().toString(36).substring(2,10)}function rv(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||nA()}}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 aA(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:j.location,delta:k})}function b(C,k){m="PUSH";let z=go(j.location,C,k);g=y()+1;let _=rv(z,g),Z=j.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:j.location,delta:1})}function x(C,k){m="REPLACE";let z=go(j.location,C,k);g=y();let _=rv(z,g),Z=j.createHref(z);f.replaceState(_,"",Z),u&&p&&p({action:m,location:j.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"),Qe(k,`No window.location.(origin|href) available to create URL for href: ${z}`),new URL(z,k)}let j={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(iv,v),p=C,()=>{o.removeEventListener(iv,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 j}var co,sv=class{constructor(e){if(eA(this,co,new Map),e)for(let[n,a]of e)this.set(n,a)}get(e){if(Sh(this,co).has(e))return Sh(this,co).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){Sh(this,co).set(e,n)}};co=new WeakMap;var iA=new Set(["lazy","caseSensitive","path","id","index","children"]);function rA(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(Qe(o.index!==!0||!o.children,"Cannot specify children on an index route"),Qe(!r[m],`Found a route id collision on id "${m}". Route id's must be globally unique within Data Router usages`),rA(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);lA(f);let m=null;for(let p=0;m==null&&p{let p={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};p.relativePath.startsWith("/")&&(Qe(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&&(Qe(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:mA(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 lA(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:gA(n.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var oA=/^:[\w-]+$/,uA=3,cA=2,dA=1,fA=10,hA=-2,lv=e=>e==="*";function mA(e,n){let a=e.split("/"),r=a.length;return a.some(lv)&&(r+=hA),n&&(r+=cA),a.filter(o=>!lv(o)).reduce((o,u)=>o+(oA.test(u)?uA:u===""?dA:fA),r)}function gA(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 pA(e,n,a=!1){let{routesMeta:r}=e,o={},u="/",f=[];for(let m=0;m{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 yA(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 vA(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 wA(e,n="/"){let{pathname:a,search:r="",hash:o=""}=typeof e=="string"?Ji(e):e;return{pathname:a?a.startsWith("/")?a:bA(a,n):n,search:SA(r),hash:AA(o)}}function bA(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 Ah(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 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 zc(e){let n=qw(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function Lc(e,n,a,r=!1){let o;typeof e=="string"?o=Ji(e):(o={...e},Qe(!o.pathname||!o.pathname.includes("?"),Ah("?","pathname","search",o)),Qe(!o.pathname||!o.pathname.includes("#"),Ah("#","pathname","hash",o)),Qe(!o.search||!o.search.includes("#"),Ah("#","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=wA(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,"/"),xA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AA=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"],CA=new Set(Qw),EA=["GET",...Qw],jA=new Set(EA),RA=new Set([301,302,303,307,308]),NA=new Set([307,308]),Ch={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},TA={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},Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Gw="remix-router-transitions",Yw=Symbol("ResetLoaderData");function MA(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";Qe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.mapRouteProperties||kA,o={},u=gc(e.routes,r,void 0,o),f,m=e.basename||"/",p=e.dataStrategy||zA,g={unstable_middleware:!1,...e.future},y=null,v=new Set,b=null,x=null,S=null,j=e.hydrationData!=null,C=Oi(u,e.history.location,m),k=!1,z=null;if(C==null&&!e.patchRoutesOnNavigation){let D=Wn(404,{pathname:e.history.location.pathname}),{matches:U,route:I}=wv(u);C=U,z={[I.id]:D}}C&&!e.hydrationData&&Ln(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,U=e.hydrationData?e.hydrationData.errors:null;if(U){let I=C.findIndex(ie=>U[ie.route.id]!==void 0);_=C.slice(0,I+1).every(ie=>!Wh(ie.route,D,U))}else _=C.every(I=>!Wh(I.route,D,U))}else{_=!1,C=[];let D=Ln(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:Ch,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",ue=!1,se,Q=!1,ne=new Map,fe=null,ge=!1,De=!1,ce=new Set,P=new Map,H=0,te=-1,$=new Map,oe=new Set,N=new Map,X=new Map,le=new Set,q=new Map,re,we=null;function Re(){if(y=e.history.listen(({action:D,location:U,delta:I})=>{if(re){re(),re=void 0;return}It(q.size===0||I!=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:U,historyAction:D});if(ie&&I!=null){let de=new Promise(Ne=>{re=Ne});e.history.go(I*-1),Sn(ie,{state:"blocked",location:U,proceed(){Sn(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),de.then(()=>e.history.go(I))},reset(){let Ne=new Map(R.blockers);Ne.set(ie,io),ze({blockers:Ne})}});return}return Rt(D,U)}),a){$A(n,ne);let D=()=>XA(n,ne);n.addEventListener("pagehide",D),fe=()=>n.removeEventListener("pagehide",D)}return R.initialized||Rt("POP",R.location,{initialHydration:!0}),Z}function dt(){y&&y(),fe&&fe(),v.clear(),se&&se.abort(),R.fetchers.forEach((D,U)=>oi(U)),R.blockers.forEach((D,U)=>Po(U))}function Ve(D){return v.add(D),()=>v.delete(D)}function ze(D,U={}){R={...R,...D};let I=[],ie=[];R.fetchers.forEach((de,Ne)=>{de.state==="idle"&&(le.has(Ne)?I.push(Ne):ie.push(Ne))}),le.forEach(de=>{!R.fetchers.has(de)&&!P.has(de)&&I.push(de)}),[...v].forEach(de=>de(R,{deletedFetchers:I,viewTransitionOpts:U.viewTransitionOpts,flushSync:U.flushSync===!0})),I.forEach(de=>oi(de)),ie.forEach(de=>R.fetchers.delete(de))}function _e(D,U,{flushSync:I}={}){var me,pe;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;U.actionData?Object.keys(U.actionData).length>0?de=U.actionData:de=null:ie?de=R.actionData:de=null;let Ne=U.loaderData?yv(R.loaderData,U.loaderData,U.matches||[],U.errors):R.loaderData,Ee=R.blockers;Ee.size>0&&(Ee=new Map(Ee),Ee.forEach((ye,Oe)=>Ee.set(Oe,io)));let be=ue===!0||R.navigation.formMethod!=null&&fa(R.navigation.formMethod)&&((pe=D.state)==null?void 0:pe._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 Se;if(W==="POP"){let ye=ne.get(R.location.pathname);ye&&ye.has(D.pathname)?Se={currentLocation:R.location,nextLocation:D}:ne.has(D.pathname)&&(Se={currentLocation:D,nextLocation:R.location})}else if(Q){let ye=ne.get(R.location.pathname);ye?ye.add(D.pathname):(ye=new Set([D.pathname]),ne.set(R.location.pathname,ye)),Se={currentLocation:R.location,nextLocation:D}}ze({...U,actionData:de,loaderData:Ne,historyAction:W,location:D,initialized:!0,navigation:Ch,revalidation:"idle",restoreScrollPosition:nr(D,U.matches||R.matches),preventScrollReset:be,blockers:Ee},{viewTransitionOpts:Se,flushSync:I===!0}),W="POP",ue=!1,Q=!1,ge=!1,De=!1,we==null||we.resolve(),we=null}async function bt(D,U){if(typeof D=="number"){e.history.go(D);return}let I=Jh(R.location,R.matches,m,D,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:ie,submission:de,error:Ne}=ov(!1,I,U),Ee=R.location,be=go(R.location,ie,U&&U.state);be={...be,...e.history.encodeLocation(be)};let Se=U&&U.replace!=null?U.replace:void 0,me="PUSH";Se===!0?me="REPLACE":Se===!1||de!=null&&fa(de.formMethod)&&de.formAction===R.location.pathname+R.location.search&&(me="REPLACE");let pe=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,ye=(U&&U.flushSync)===!0,Oe=Zt({currentLocation:Ee,nextLocation:be,historyAction:me});if(Oe){Sn(Oe,{state:"blocked",location:be,proceed(){Sn(Oe,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),bt(D,U)},reset(){let tt=new Map(R.blockers);tt.set(Oe,io),ze({blockers:tt})}});return}await Rt(me,be,{submission:de,pendingError:Ne,preventScrollReset:pe,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:ye})}function xn(){we||(we=KA()),hn(),ze({revalidation:"loading"});let D=we.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,U,I){se&&se.abort(),se=null,W=D,ge=(I&&I.startUninterruptedRevalidation)===!0,Kr(R.location,R.matches),ue=(I&&I.preventScrollReset)===!0,Q=(I&&I.enableViewTransition)===!0;let ie=f||u,de=I&&I.overrideNavigation,Ne=I!=null&&I.initialHydration&&R.matches&&R.matches.length>0&&!k?R.matches:Oi(ie,U,m),Ee=(I&&I.flushSync)===!0;if(Ne&&R.initialized&&!De&&IA(R.location,U)&&!(I&&I.submission&&fa(I.submission.formMethod))){_e(U,{matches:Ne},{flushSync:Ee});return}let be=Ln(Ne,ie,U.pathname);if(be.active&&be.matches&&(Ne=be.matches),!Ne){let{error:xt,notFoundMatches:mt,route:St}=ul(U.pathname);_e(U,{matches:mt,loaderData:{},errors:{[St.id]:xt}},{flushSync:Ee});return}se=new AbortController;let Se=Ts(e.history,U,se.signal,I&&I.submission),me=new sv(e.unstable_getContext?await e.unstable_getContext():void 0),pe;if(I&&I.pendingError)pe=[Rr(Ne).route.id,{type:"error",error:I.pendingError}];else if(I&&I.submission&&fa(I.submission.formMethod)){let xt=await Yr(Se,U,I.submission,Ne,me,be.active,{replace:I.replace,flushSync:Ee});if(xt.shortCircuited)return;if(xt.pendingActionResult){let[mt,St]=xt.pendingActionResult;if(Nn(St)&&po(St.error)&&St.error.status===404){se=null,_e(U,{matches:xt.matches,loaderData:{},errors:{[mt]:St.error}});return}}Ne=xt.matches||Ne,pe=xt.pendingActionResult,de=Eh(U,I.submission),Ee=!1,be.active=!1,Se=Ts(e.history,Se.url,Se.signal)}let{shortCircuited:ye,matches:Oe,loaderData:tt,errors:Dt}=await $r(Se,U,Ne,me,be.active,de,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,Ee,pe);ye||(se=null,_e(U,{matches:Oe||Ne,...vv(pe),loaderData:tt,errors:Dt}))}async function Yr(D,U,I,ie,de,Ne,Ee={}){hn();let be=GA(U,I);if(ze({navigation:be},{flushSync:Ee.flushSync===!0}),Ne){let pe=await _a(ie,U.pathname,D.signal);if(pe.type==="aborted")return{shortCircuited:!0};if(pe.type==="error"){let ye=Rr(pe.partialMatches).route.id;return{matches:pe.partialMatches,pendingActionResult:[ye,{type:"error",error:pe.error}]}}else if(pe.matches)ie=pe.matches;else{let{notFoundMatches:ye,error:Oe,route:tt}=ul(U.pathname);return{matches:ye,pendingActionResult:[tt.id,{type:"error",error:Oe}]}}}let Se,me=fo(ie,U);if(!me.route.action&&!me.route.lazy)Se={type:"error",error:Wn(405,{method:D.method,pathname:U.pathname,routeId:me.route.id})};else{let pe=await tr("action",D,[me],ie,de,null);if(Se=pe[me.route.id],!Se){for(let ye of ie)if(pe[ye.route.id]){Se=pe[ye.route.id];break}}if(D.signal.aborted)return{shortCircuited:!0}}if(Nr(Se)){let pe;return Ee&&Ee.replace!=null?pe=Ee.replace:pe=mv(Se.response.headers.get("Location"),new URL(D.url),m)===R.location.pathname+R.location.search,await ia(D,Se,!0,{submission:I,replace:pe}),{shortCircuited:!0}}if(Nn(Se)){let pe=Rr(ie,me.route.id);return(Ee&&Ee.replace)!==!0&&(W="PUSH"),{matches:ie,pendingActionResult:[pe.route.id,Se]}}return{matches:ie,pendingActionResult:[me.route.id,Se]}}async function $r(D,U,I,ie,de,Ne,Ee,be,Se,me,pe,ye){let Oe=Ne||Eh(U,Ee),tt=Ee||be||xv(Oe),Dt=!ge&&!me;if(de){if(Dt){let gt=Oa(ye);ze({navigation:Oe,...gt!==void 0?{actionData:gt}:{}},{flushSync:pe})}let $e=await _a(I,U.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)I=$e.matches;else{let{error:gt,notFoundMatches:mn,route:sr}=ul(U.pathname);return{matches:mn,loaderData:{},errors:{[sr.id]:gt}}}}let xt=f||u,[mt,St]=cv(e.history,R,I,tt,U,me===!0,De,ce,le,N,oe,xt,m,ye);if(te=++H,mt.length===0&&St.length===0){let $e=Fo();return _e(U,{matches:I,loaderData:{},errors:ye&&Nn(ye[1])?{[ye[0]]:ye[1].error}:null,...vv(ye),...$e?{fetchers:new Map(R.fetchers)}:{}},{flushSync:pe}),{shortCircuited:!0}}if(Dt){let $e={};if(!de){$e.navigation=Oe;let gt=Oa(ye);gt!==void 0&&($e.actionData=gt)}St.length>0&&($e.fetchers=rl(St)),ze($e,{flushSync:pe})}St.forEach($e=>{ra($e.key),$e.controller&&P.set($e.key,$e.controller)});let Un=()=>St.forEach($e=>ra($e.key));se&&se.signal.addEventListener("abort",Un);let{loaderResults:Ba,fetcherResults:Qt}=await Uo(I,mt,St,D,ie);if(D.signal.aborted)return{shortCircuited:!0};se&&se.signal.removeEventListener("abort",Un),St.forEach($e=>P.delete($e.key));let Gt=Zu(Ba);if(Gt)return await ia(D,Gt.result,!0,{replace:Se}),{shortCircuited:!0};if(Gt=Zu(Qt),Gt)return oe.add(Gt.key),await ia(D,Gt.result,!0,{replace:Se}),{shortCircuited:!0};let{loaderData:za,errors:Hn}=pv(R,I,Ba,ye,St,Qt);me&&R.errors&&(Hn={...R.errors,...Hn});let st=Fo(),ir=ui(te),rr=st||ir||St.length>0;return{matches:I,loaderData:za,errors:Hn,...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(U=>{let I=R.fetchers.get(U.key),ie=ro(void 0,I?I.data:void 0);R.fetchers.set(U.key,ie)}),new Map(R.fetchers)}async function Xr(D,U,I,ie){ra(D);let de=(ie&&ie.flushSync)===!0,Ne=f||u,Ee=Jh(R.location,R.matches,m,I,U,ie==null?void 0:ie.relative),be=Oi(Ne,Ee,m),Se=Ln(be,Ne,Ee);if(Se.active&&Se.matches&&(be=Se.matches),!be){zn(D,U,Wn(404,{pathname:Ee}),{flushSync:de});return}let{path:me,submission:pe,error:ye}=ov(!0,Ee,ie);if(ye){zn(D,U,ye,{flushSync:de});return}let Oe=fo(be,me),tt=new sv(e.unstable_getContext?await e.unstable_getContext():void 0),Dt=(ie&&ie.preventScrollReset)===!0;if(pe&&fa(pe.formMethod)){await sl(D,U,me,Oe,be,tt,Se.active,de,Dt,pe);return}N.set(D,{routeId:U,path:me}),await ll(D,U,me,Oe,be,tt,Se.active,de,Dt,pe)}async function sl(D,U,I,ie,de,Ne,Ee,be,Se,me){hn(),N.delete(D);function pe(pt){if(!pt.route.action&&!pt.route.lazy){let La=Wn(405,{method:me.formMethod,pathname:I,routeId:U});return zn(D,U,La,{flushSync:be}),!0}return!1}if(!Ee&&pe(ie))return;let ye=R.fetchers.get(D);ya(D,YA(me,ye),{flushSync:be});let Oe=new AbortController,tt=Ts(e.history,I,Oe.signal,me);if(Ee){let pt=await _a(de,I,tt.signal,D);if(pt.type==="aborted")return;if(pt.type==="error"){zn(D,U,pt.error,{flushSync:be});return}else if(pt.matches){if(de=pt.matches,ie=fo(de,I),pe(ie))return}else{zn(D,U,Wn(404,{pathname:I}),{flushSync:be});return}}P.set(D,Oe);let Dt=H,mt=(await tr("action",tt,[ie],de,Ne,D))[ie.route.id];if(tt.signal.aborted){P.get(D)===Oe&&P.delete(D);return}if(le.has(D)){if(Nr(mt)||Nn(mt)){ya(D,Mi(void 0));return}}else{if(Nr(mt))if(P.delete(D),te>Dt){ya(D,Mi(void 0));return}else return oe.add(D),ya(D,ro(me)),ia(tt,mt,!1,{fetcherSubmission:me,preventScrollReset:Se});if(Nn(mt)){zn(D,U,mt.error);return}}let St=R.navigation.location||R.location,Un=Ts(e.history,St,Oe.signal),Ba=f||u,Qt=R.navigation.state!=="idle"?Oi(Ba,R.navigation.location,m):R.matches;Qe(Qt,"Didn't find any matches after fetcher action");let Gt=++H;$.set(D,Gt);let za=ro(me,mt.data);R.fetchers.set(D,za);let[Hn,st]=cv(e.history,R,Qt,me,St,!1,De,ce,le,N,oe,Ba,m,[ie.route.id,mt]);st.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)}),ze({fetchers:new Map(R.fetchers)});let ir=()=>st.forEach(pt=>ra(pt.key));Oe.signal.addEventListener("abort",ir);let{loaderResults:rr,fetcherResults:$e}=await Uo(Qt,Hn,st,Un,Ne);if(Oe.signal.aborted)return;Oe.signal.removeEventListener("abort",ir),$.delete(D),P.delete(D),st.forEach(pt=>P.delete(pt.key));let gt=Zu(rr);if(gt)return ia(Un,gt.result,!1,{preventScrollReset:Se});if(gt=Zu($e),gt)return oe.add(gt.key),ia(Un,gt.result,!1,{preventScrollReset:Se});let{loaderData:mn,errors:sr}=pv(R,Qt,rr,void 0,st,$e);if(R.fetchers.has(D)){let pt=Mi(mt.data);R.fetchers.set(D,pt)}ui(Gt),R.navigation.state==="loading"&&Gt>te?(Qe(W,"Expected pending action"),se&&se.abort(),_e(R.navigation.location,{matches:Qt,loaderData:mn,errors:sr,fetchers:new Map(R.fetchers)})):(ze({errors:sr,loaderData:yv(R.loaderData,mn,Qt,sr),fetchers:new Map(R.fetchers)}),De=!1)}async function ll(D,U,I,ie,de,Ne,Ee,be,Se,me){let pe=R.fetchers.get(D);ya(D,ro(me,pe?pe.data:void 0),{flushSync:be});let ye=new AbortController,Oe=Ts(e.history,I,ye.signal);if(Ee){let mt=await _a(de,I,Oe.signal,D);if(mt.type==="aborted")return;if(mt.type==="error"){zn(D,U,mt.error,{flushSync:be});return}else if(mt.matches)de=mt.matches,ie=fo(de,I);else{zn(D,U,Wn(404,{pathname:I}),{flushSync:be});return}}P.set(D,ye);let tt=H,xt=(await tr("loader",Oe,[ie],de,Ne,D))[ie.route.id];if(P.get(D)===ye&&P.delete(D),!Oe.signal.aborted){if(le.has(D)){ya(D,Mi(void 0));return}if(Nr(xt))if(te>tt){ya(D,Mi(void 0));return}else{oe.add(D),await ia(Oe,xt,!1,{preventScrollReset:Se});return}if(Nn(xt)){zn(D,U,xt.error);return}ya(D,Mi(xt.data))}}async function ia(D,U,I,{submission:ie,fetcherSubmission:de,preventScrollReset:Ne,replace:Ee}={}){U.response.headers.has("X-Remix-Revalidate")&&(De=!0);let be=U.response.headers.get("Location");Qe(be,"Expected a Location header on the redirect Response"),be=mv(be,new URL(D.url),m);let Se=go(R.location,be,{_isRedirect:!0});if(a){let Dt=!1;if(U.response.headers.has("X-Remix-Reload-Document"))Dt=!0;else if(Lm.test(be)){const xt=e.history.createURL(be);Dt=xt.origin!==n.location.origin||ta(xt.pathname,m)==null}if(Dt){Ee?n.location.replace(be):n.location.assign(be);return}}se=null;let me=Ee===!0||U.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:pe,formAction:ye,formEncType:Oe}=R.navigation;!ie&&!de&&pe&&ye&&Oe&&(ie=xv(R.navigation));let tt=ie||de;if(NA.has(U.response.status)&&tt&&fa(tt.formMethod))await Rt(me,Se,{submission:{...tt,formAction:be},preventScrollReset:Ne||ue,enableViewTransition:I?Q:void 0});else{let Dt=Eh(Se,ie);await Rt(me,Se,{overrideNavigation:Dt,fetcherSubmission:de,preventScrollReset:Ne||ue,enableViewTransition:I?Q:void 0})}}async function tr(D,U,I,ie,de,Ne){let Ee,be={};try{Ee=await UA(p,D,U,I,ie,Ne,o,r,de,g.unstable_middleware)}catch(Se){return I.forEach(me=>{be[me.route.id]={type:"error",error:Se}}),be}for(let[Se,me]of Object.entries(Ee))if(qA(me)){let pe=me.result;be[Se]={type:"redirect",response:PA(pe,U,Se,ie,m)}}else be[Se]=await FA(me);return be}async function Uo(D,U,I,ie,de){let Ne=tr("loader",ie,U,D,de,null),Ee=Promise.all(I.map(async me=>{if(me.matches&&me.match&&me.controller){let ye=(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]:ye}}else return Promise.resolve({[me.key]:{type:"error",error:Wn(404,{pathname:me.path})}})})),be=await Ne,Se=(await Ee).reduce((me,pe)=>Object.assign(me,pe),{});return{loaderResults:be,fetcherResults:Se}}function hn(){De=!0,N.forEach((D,U)=>{P.has(U)&&ce.add(U),ra(U)})}function ya(D,U,I={}){R.fetchers.set(D,U),ze({fetchers:new Map(R.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function zn(D,U,I,ie={}){let de=Rr(R.matches,U);oi(D),ze({errors:{[de.route.id]:I},fetchers:new Map(R.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ol(D){return X.set(D,(X.get(D)||0)+1),le.has(D)&&le.delete(D),R.fetchers.get(D)||TA}function oi(D){let U=R.fetchers.get(D);P.has(D)&&!(U&&U.state==="loading"&&$.has(D))&&ra(D),N.delete(D),$.delete(D),oe.delete(D),le.delete(D),ce.delete(D),R.fetchers.delete(D)}function ud(D){let U=(X.get(D)||0)-1;U<=0?(X.delete(D),le.add(D)):X.set(D,U),ze({fetchers:new Map(R.fetchers)})}function ra(D){let U=P.get(D);U&&(U.abort(),P.delete(D))}function Ho(D){for(let U of D){let I=ol(U),ie=Mi(I.data);R.fetchers.set(U,ie)}}function Fo(){let D=[],U=!1;for(let I of oe){let ie=R.fetchers.get(I);Qe(ie,`Expected fetcher: ${I}`),ie.state==="loading"&&(oe.delete(I),D.push(I),U=!0)}return Ho(D),U}function ui(D){let U=[];for(let[I,ie]of $)if(ie0}function rn(D,U){let I=R.blockers.get(D)||io;return q.get(D)!==U&&q.set(D,U),I}function Po(D){R.blockers.delete(D),q.delete(D)}function Sn(D,U){let I=R.blockers.get(D)||io;Qe(I.state==="unblocked"&&U.state==="blocked"||I.state==="blocked"&&U.state==="blocked"||I.state==="blocked"&&U.state==="proceeding"||I.state==="blocked"&&U.state==="unblocked"||I.state==="proceeding"&&U.state==="unblocked",`Invalid blocker state transition: ${I.state} -> ${U.state}`);let ie=new Map(R.blockers);ie.set(D,U),ze({blockers:ie})}function Zt({currentLocation:D,nextLocation:U,historyAction:I}){if(q.size===0)return;q.size>1&&It(!1,"A router only supports one blocker at a time");let ie=Array.from(q.entries()),[de,Ne]=ie[ie.length-1],Ee=R.blockers.get(de);if(!(Ee&&Ee.state==="proceeding")&&Ne({currentLocation:D,nextLocation:U,historyAction:I}))return de}function ul(D){let U=Wn(404,{pathname:D}),I=f||u,{matches:ie,route:de}=wv(I);return{notFoundMatches:ie,route:de,error:U}}function cd(D,U,I){if(b=D,S=U,x=I||null,!j&&R.navigation===Ch){j=!0;let ie=nr(R.location,R.matches);ie!=null&&ze({restoreScrollPosition:ie})}return()=>{b=null,S=null,x=null}}function Vo(D,U){return x&&x(D,U.map(ie=>sA(ie,R.loaderData)))||D.key}function Kr(D,U){if(b&&S){let I=Vo(D,U);b[I]=S()}}function nr(D,U){if(b){let I=Vo(D,U),ie=b[I];if(typeof ie=="number")return ie}return null}function Ln(D,U,I){if(e.patchRoutesOnNavigation)if(D){if(Object.keys(D[0].params).length>0)return{active:!0,matches:rc(U,I,m,!0)}}else return{active:!0,matches:rc(U,I,m,!0)||[]};return{active:!1,matches:null}}async function _a(D,U,I,ie){if(!e.patchRoutesOnNavigation)return{type:"success",matches:D};let de=D;for(;;){let Ne=f==null,Ee=f||u,be=o;try{await e.patchRoutesOnNavigation({signal:I,path:U,matches:de,fetcherKey:ie,patch:(pe,ye)=>{I.aborted||fv(pe,ye,Ee,be,r)}})}catch(pe){return{type:"error",error:pe,partialMatches:de}}finally{Ne&&!I.aborted&&(u=[...u])}if(I.aborted)return{type:"aborted"};let Se=Oi(Ee,U,m);if(Se)return{type:"success",matches:Se};let me=rc(Ee,U,m,!0);if(!me||de.length===me.length&&de.every((pe,ye)=>pe.route.id===me[ye].route.id))return{type:"success",matches:null};de=me}}function ar(D){o={},f=gc(D,r,void 0,o)}function dd(D,U){let I=f==null;fv(D,U,f||u,o,r),I&&(u=[...u],ze({}))}return Z={get basename(){return m},get future(){return g},get state(){return R},get routes(){return u},get window(){return n},initialize:Re,subscribe:Ve,enableScrollRestoration:cd,navigate:bt,fetch:Xr,revalidate:xn,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:ol,deleteFetcher:ud,dispose:dt,getBlocker:rn,deleteBlocker:Po,patchRoutes:dd,_internalFetchControllers:P,_internalSetRoutes:ar},Z}function DA(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Jh(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=Lc(r||".",zc(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=Um(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 ov(e,n,a){if(!a||!DA(a))return{path:n};if(a.formMethod&&!QA(a.formMethod))return{path:n,error:Wn(405,{method:a.formMethod})};let r=()=>({path:n,error:Wn(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()}}}Qe(typeof FormData=="function","FormData is not available in this environment");let m,p;if(a.formData)m=tm(a.formData),p=a.formData;else if(a.body instanceof FormData)m=tm(a.body),p=a.body;else if(a.body instanceof URLSearchParams)m=a.body,p=gv(m);else if(a.body==null)m=new URLSearchParams,p=new FormData;else try{m=new URLSearchParams(a.body),p=gv(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&&Um(y.search)&&m.append("index",""),y.search=`?${m}`,{path:Xi(y),submission:g}}function uv(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 cv(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,j=e.createURL(n.location),C=e.createURL(o),k=a;u&&n.errors?k=uv(a,Object.keys(n.errors)[0],!0):x&&Nn(x[1])&&(k=uv(a,x[0]));let z=x?x[1].statusCode:void 0,_=z&&z>=400,Z=k.filter((W,ue)=>{let{route:se}=W;if(se.lazy)return!0;if(se.loader==null)return!1;if(u)return Wh(se,n.loaderData,n.errors);if(OA(n.loaderData,n.matches[ue],W))return!0;let Q=n.matches[ue],ne=W;return dv(W,{currentUrl:j,currentParams:Q.params,nextUrl:C,nextParams:ne.params,...r,actionResult:S,actionStatus:z,defaultShouldRevalidate:_?!1:f||j.pathname+j.search===C.pathname+C.search||j.search!==C.search||_A(Q,ne)})}),R=[];return g.forEach((W,ue)=>{if(u||!a.some(ge=>ge.route.id===W.routeId)||p.has(ue))return;let se=Oi(v,W.path,b);if(!se){R.push({key:ue,routeId:W.routeId,path:W.path,matches:null,match:null,controller:null});return}let Q=n.fetchers.get(ue),ne=fo(se,W.path),fe=!1;y.has(ue)?fe=!1:m.has(ue)?(m.delete(ue),fe=!0):Q&&Q.state!=="idle"&&Q.data===void 0?fe=f:fe=dv(ne,{currentUrl:j,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:ue,routeId:W.routeId,path:W.path,matches:se,match:ne,controller:new AbortController})}),[Z,R]}function Wh(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 OA(e,n,a){let r=!n||a.route.id!==n.route.id,o=!e.hasOwnProperty(a.route.id);return r||o}function _A(e,n){let a=e.route.path;return e.pathname!==n.pathname||a!=null&&a.endsWith("*")&&e.params["*"]!==n.params["*"]}function dv(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function fv(e,n,a,r,o){let u;if(e){let p=r[e];Qe(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=>$w(p,g))),m=gc(f,o,[e||"_","patch",String((u==null?void 0:u.length)||"0")],r);u.push(...m)}function $w(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=>$w(a,u))}):!1}async function BA(e,n,a){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=a[e.id];Qe(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&&!iA.has(f)&&(u[f]=r[f])}Object.assign(o,u),Object.assign(o,{...n(o),lazy:void 0})}async function hv(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 zA(e){return e.matches.some(n=>n.route.unstable_middleware)?LA(e,!1,()=>hv(e),n=>({[n.routeId]:{type:"error",result:n.error}})):hv(e)}async function LA(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 em))throw g;let y=await r(g);return p.handlerResult?Object.assign(p.handlerResult,y):y}}var em=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 em?b:new em(m,b)}}async function UA(e,n,a,r,o,u,f,m,p,g){let y=o.map(x=>x.route.lazy?BA(x.route,m,f):void 0);g&&await Promise.all(y);let v=o.map((x,S)=>{let j=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?HA(n,a,x,j,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 HA(e,n,a,r,o,u){let f,m,p=g=>{let y,v=new Promise((S,j)=>y=j);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(j=>b(j)):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 Wn(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 Wn(404,{pathname:v})}}catch(g){return{type:"error",result:g}}finally{m&&n.signal.removeEventListener("abort",m)}return f}async function FA(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"?bv(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}:bv(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 PA(e,n,a,r,o){let u=e.headers.get("Location");if(Qe(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!Lm.test(u)){let f=r.slice(0,r.findIndex(m=>m.route.id===a)+1);u=Jh(new URL(n.url),f,o,u),e.headers.set("Location",u)}return e}function mv(e,n,a){if(Lm.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=tm(r.formData):u.body=r.formData}return new Request(o,u)}function tm(e){let n=new URLSearchParams;for(let[a,r]of e.entries())n.append(a,typeof r=="string"?r:r.name);return n}function gv(e){let n=new FormData;for(let[a,r]of e.entries())n.append(a,r);return n}function VA(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(Qe(!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 j=Rr(e,b);f[j.route.id]==null&&(f[j.route.id]=S)}r||(u[b]=Yw),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 pv(e,n,a,r,o,u){let{loaderData:f,errors:m}=VA(n,a,r);return o.forEach(p=>{let{key:g,match:y,controller:v}=p,b=u[g];if(Qe(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))Qe(!1,"Unhandled fetcher revalidation redirect");else{let x=Mi(b.data);e.fetchers.set(g,x)}}),{loaderData:f,errors:m}}function yv(e,n,a,r){let o=Object.entries(n).filter(([,u])=>u!==Yw).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 vv(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 wv(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 Wn(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 IA(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function qA(e){return Zw(e.result)&&RA.has(e.result.status)}function Nn(e){return e.type==="error"}function Nr(e){return(e&&e.type)==="redirect"}function bv(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 QA(e){return jA.has(e.toUpperCase())}function fa(e){return CA.has(e.toUpperCase())}function Um(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&&Um(a||""))return e[e.length-1];let r=qw(e);return r[r.length-1]}function xv(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 Eh(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 GA(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 YA(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 $A(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 XA(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 KA(){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=E.createContext(null);qr.displayName="DataRouter";var Co=E.createContext(null);Co.displayName="DataRouterState";var Hm=E.createContext({isTransitioning:!1});Hm.displayName="ViewTransition";var Jw=E.createContext(new Map);Jw.displayName="Fetchers";var ZA=E.createContext(null);ZA.displayName="Await";var ga=E.createContext(null);ga.displayName="Navigation";var Uc=E.createContext(null);Uc.displayName="Location";var aa=E.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Fm=E.createContext(null);Fm.displayName="RouteError";function JA(e,{relative:n}={}){Qe(Ks(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:r}=E.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 E.useContext(Uc)!=null}function Da(){return Qe(Ks(),"useLocation() may be used only in the context of a component."),E.useContext(Uc).location}var Ww="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eb(e){E.useContext(ga).static||E.useLayoutEffect(e)}function dn(){let{isDataRoute:e}=E.useContext(aa);return e?fC():WA()}function WA(){Qe(Ks(),"useNavigate() may be used only in the context of a component.");let e=E.useContext(qr),{basename:n,navigator:a}=E.useContext(ga),{matches:r}=E.useContext(aa),{pathname:o}=Da(),u=JSON.stringify(zc(r)),f=E.useRef(!1);return eb(()=>{f.current=!0}),E.useCallback((p,g={})=>{if(It(f.current,Ww),!f.current)return;if(typeof p=="number"){a.go(p);return}let y=Lc(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 eC=E.createContext(null);function tC(e){let n=E.useContext(aa).outlet;return n&&E.createElement(eC.Provider,{value:e},n)}function Hc(){let{matches:e}=E.useContext(aa),n=e[e.length-1];return n?n.params:{}}function Eo(e,{relative:n}={}){let{matches:a}=E.useContext(aa),{pathname:r}=Da(),o=JSON.stringify(zc(a));return E.useMemo(()=>Lc(e,JSON.parse(o),r,n==="path"),[e,o,r,n])}function nC(e,n,a,r){Qe(Ks(),"useRoutes() may be used only in the context of a component.");let{navigator:o,static:u}=E.useContext(ga),{matches:f}=E.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 (or called \`useRoutes()\`) at "${g}" (under ) 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 to .`)}let b=Da(),x;x=b;let S=x.pathname||"/",j=S;if(y!=="/"){let z=y.replace(/^\//,"").split("/");j="/"+S.replace(/^\//,"").split("/").slice(z.length).join("/")}let C=!u&&a&&a.matches&&a.matches.length>0?a.matches:Oi(e,{pathname:j});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 with a null value by default resulting in an "empty" page.`),lC(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 aC(){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=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:u},"ErrorBoundary")," or"," ",E.createElement("code",{style:u},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},n),a?E.createElement("pre",{style:o},a):null,f)}var iC=E.createElement(aC,null),rC=class extends E.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?E.createElement(aa.Provider,{value:this.props.routeContext},E.createElement(Fm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function sC({routeContext:e,match:n,children:a}){let r=E.useContext(qr);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(aa.Provider,{value:e},a)}function lC(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);Qe(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=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||iC,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 j=n.concat(o.slice(0,y+1)),C=()=>{let k;return v?k=x:b?k=S:g.route.Component?k=E.createElement(g.route.Component,null):g.route.element?k=g.route.element:k=p,E.createElement(sC,{match:g,routeContext:{outlet:p,matches:j,isDataRoute:a!=null},children:k})};return a&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?E.createElement(rC,{location:a.location,revalidation:a.revalidation,component:x,error:v,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):C()},null)}function Pm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function oC(e){let n=E.useContext(qr);return Qe(n,Pm(e)),n}function uC(e){let n=E.useContext(Co);return Qe(n,Pm(e)),n}function cC(e){let n=E.useContext(aa);return Qe(n,Pm(e)),n}function Vm(e){let n=cC(e),a=n.matches[n.matches.length-1];return Qe(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function dC(){return Vm("useRouteId")}function tb(){var r;let e=E.useContext(Fm),n=uC("useRouteError"),a=Vm("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[a]}function fC(){let{router:e}=oC("useNavigate"),n=Vm("useNavigate"),a=E.useRef(!1);return eb(()=>{a.current=!0}),E.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 Sv={};function nb(e,n,a){!n&&!Sv[e]&&(Sv[e]=!0,It(!1,a))}var Av={};function Cv(e,n){!e&&!Av[n]&&(Av[n]=!0,console.warn(n))}function hC(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:E.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:E.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:E.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),n}var mC=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 gC({router:e,flushSync:n}){let[a,r]=E.useState(e.state),[o,u]=E.useState(),[f,m]=E.useState({isTransitioning:!1}),[p,g]=E.useState(),[y,v]=E.useState(),[b,x]=E.useState(),S=E.useRef(new Map),j=E.useCallback((_,{deletedFetchers:Z,flushSync:R,viewTransitionOpts:W})=>{_.fetchers.forEach((se,Q)=>{se.data!==void 0&&S.current.set(Q,se.data)}),Z.forEach(se=>S.current.delete(se)),Cv(R===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `` 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 ue=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Cv(W==null||ue,"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||!ue){n&&R?n(()=>r(_)):E.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 se=e.window.document.startViewTransition(()=>{n(()=>r(_))});se.finished.finally(()=>{n(()=>{g(void 0),v(void 0),u(void 0),m({isTransitioning:!1})})}),n(()=>v(se));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]);E.useLayoutEffect(()=>e.subscribe(j),[e,j]),E.useEffect(()=>{f.isTransitioning&&!f.flushSync&&g(new mC)},[f]),E.useEffect(()=>{if(p&&o&&e.window){let _=o,Z=p.promise,R=e.window.document.startViewTransition(async()=>{E.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]),E.useEffect(()=>{p&&o&&a.location.key===o.location.key&&p.resolve()},[p,y,a.location,o]),E.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=E.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=E.useMemo(()=>({router:e,navigator:C,static:!1,basename:k}),[e,C,k]);return E.createElement(E.Fragment,null,E.createElement(qr.Provider,{value:z},E.createElement(Co.Provider,{value:a},E.createElement(Jw.Provider,{value:S.current},E.createElement(Hm.Provider,{value:f},E.createElement(vC,{basename:k,location:a.location,navigationType:a.historyAction,navigator:C},E.createElement(pC,{routes:e.routes,future:e.future,state:a})))))),null)}var pC=E.memo(yC);function yC({routes:e,future:n,state:a}){return nC(e,void 0,a,n)}function jh({to:e,replace:n,state:a,relative:r}){Qe(Ks()," may be used only in the context of a component.");let{static:o}=E.useContext(ga);It(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:u}=E.useContext(aa),{pathname:f}=Da(),m=dn(),p=Lc(e,zc(u),f,r==="path"),g=JSON.stringify(p);return E.useEffect(()=>{m(JSON.parse(g),{replace:n,state:a,relative:r})},[m,g,r,n,a]),null}function ab(e){return tC(e.context)}function vC({basename:e="/",children:n=null,location:a,navigationType:r="POP",navigator:o,static:u=!1}){Qe(!Ks(),"You cannot render a inside another . You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),m=E.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=E.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,` is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the won't render anything.`),x==null?null:E.createElement(ga.Provider,{value:m},E.createElement(Uc.Provider,{children:n,value:x}))}var sc="get",lc="application/x-www-form-urlencoded";function Fc(e){return e!=null&&typeof e.tagName=="string"}function wC(e){return Fc(e)&&e.tagName.toLowerCase()==="button"}function bC(e){return Fc(e)&&e.tagName.toLowerCase()==="form"}function xC(e){return Fc(e)&&e.tagName.toLowerCase()==="input"}function SC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AC(e,n){return e.button===0&&(!n||n==="_self")&&!SC(e)}var Ju=null;function CC(){if(Ju===null)try{new FormData(document.createElement("form"),0),Ju=!1}catch{Ju=!0}return Ju}var EC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Rh(e){return e!=null&&!EC.has(e)?(It(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${lc}"`),null):e}function jC(e,n){let a,r,o,u,f;if(bC(e)){let m=e.getAttribute("action");r=m?ta(m,n):null,a=e.getAttribute("method")||sc,o=Rh(e.getAttribute("enctype"))||lc,u=new FormData(e)}else if(wC(e)||xC(e)&&(e.type==="submit"||e.type==="image")){let m=e.form;if(m==null)throw new Error('Cannot submit a +
    +
    + +

    +
    + + +
    + + +
    + +
    + + +
    +
    +
    + + + +
    +
    +
    +
    +
    + +`.replace(/(^|\n)\s*/g,""),ER=()=>{const e=fn();return e?(e.remove(),na([document.documentElement,document.body],[Y["no-backdrop"],Y["toast-shown"],Y["has-column"]]),!0):!1},jr=()=>{je.currentInstance.resetValidationMessage()},jR=()=>{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}},RR=e=>typeof e=="string"?document.querySelector(e):e,NR=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")},TR=e=>{window.getComputedStyle(e).direction==="rtl"&&We(fn(),Y.rtl)},kR=e=>{const n=ER();if(AR()){Qr("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=Y.container,n&&We(a,Y["no-transition"]),Bn(a,CR),a.dataset.swal2Theme=e.theme;const r=RR(e.target);r.appendChild(a),e.topLayer&&(a.setAttribute("popover",""),a.showPopover()),NR(e),TR(r),jR()},yg=(e,n)=>{e instanceof HTMLElement?n.appendChild(e):typeof e=="object"?MR(e,n):e&&Bn(n,e)},MR=(e,n)=>{e.jquery?DR(n,e):Bn(n,e.toString())},DR=(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))},OR=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton?an(a):qt(a),On(a,n,"actions"),_R(a,r,n),Bn(r,n.loaderHtml||""),On(r,n,"loader"))};function _R(e,n,a){const r=Ma(),o=Gr(),u=nl();!r||!o||!u||(Ih(r,"confirm",a),Ih(o,"deny",a),Ih(u,"cancel",a),BR(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 BR(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),Vh(e),Vh(n),Vh(a)}function Vh(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 Ih(e,n,a){const r=lg(n);Do(e,a[`show${r}Button`],"inline-block"),Bn(e,a[`${n}ButtonText`]||""),e.setAttribute("aria-label",a[`${n}ButtonAriaLabel`]||""),e.className=Y[n],On(e,a,`${n}Button`)}const zR=(e,n)=>{const a=fg();a&&(Bn(a,n.closeButtonHtml||""),On(a,n,"closeButton"),Do(a,n.showCloseButton),a.setAttribute("aria-label",n.closeButtonAriaLabel||""))},LR=(e,n)=>{const a=fn();a&&(UR(a,n.backdrop),HR(a,n.position),FR(a,n.grow),On(a,n,"container"))};function UR(e,n){typeof n=="string"?e.style.background=n:n||We([document.documentElement,document.body],Y["no-backdrop"])}function HR(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 FR(e,n){n&&We(e,Y[`grow-${n}`])}var ct={innerParams:new WeakMap,domCache:new WeakMap};const PR=["input","file","range","select","radio","checkbox","textarea"],VR=(e,n)=>{const a=Je();if(!a)return;const r=ct.innerParams.get(e),o=!r||n.input!==r.input;PR.forEach(u=>{const f=Gi(a,Y[u]);f&&(QR(u,n.inputAttributes),f.className=Y[u],o&&an(f))}),n.input&&(o&&IR(n),GR(n))},IR=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=Gx(e.input);if(!n)return;const a=Tt[e.input](n,e);qt(n),e.inputAutoFocus&&setTimeout(()=>{Ix(a)})},qR=e=>{for(let n=0;n{const a=Je();if(!a)return;const r=id(a,e);if(r){qR(r);for(const o in n)r.setAttribute(o,n[o])}},GR=e=>{if(!e.input)return;const n=Gx(e.input);n&&On(n,e,"input")},vg=(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)}},Gx=e=>{const n=Je();if(n)return Gi(n,Y[e]||Y.input)},Rc=(e,n)=>{["string","number"].includes(typeof n)?e.value=`${n}`:ug(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)=>(Rc(e,n.inputValue),Oo(e,e,n),vg(e,n),e.type=n.input,e);Tt.file=(e,n)=>(Oo(e,e,n),vg(e,n),e);Tt.range=(e,n)=>{const a=e.querySelector("input"),r=e.querySelector("output");return Rc(a,n.inputValue),a.type=n.input,Rc(r,n.inputValue),Oo(a,e,n),e};Tt.select=(e,n)=>{if(e.textContent="",n.inputPlaceholder){const a=document.createElement("option");Bn(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=id(Je(),"checkbox");a.value="1",a.checked=!!n.inputValue;const r=e.querySelector("span");return Bn(r,n.inputPlaceholder||n.inputLabel),a};Tt.textarea=(e,n)=>{Rc(e,n.inputValue),vg(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 YR=(e,n)=>{const a=cg();a&&(gg(a),On(a,n,"htmlContainer"),n.html?(yg(n.html,a),qt(a,"block")):n.text?(a.textContent=n.text,qt(a,"block")):an(a),VR(e,n))},$R=(e,n)=>{const a=Vx();a&&(gg(a),Do(a,n.footer,"block"),n.footer&&yg(n.footer,a),On(a,n,"footer"))},XR=(e,n)=>{const a=ct.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(jc).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",Yx)},uw=(e,n)=>{for(const[a,r]of Object.entries(jc))n.icon!==a&&na(e,r);We(e,n.icon&&jc[n.icon]),JR(e,n),Yx(),On(e,n,"icon")},Yx=()=>{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 + +
    +
    +`,ZR=` + + + + +`,cw=(e,n)=>{if(!n.icon&&!n.iconHtml)return;let a=e.innerHTML,r="";n.iconHtml?r=dw(n.iconHtml):n.icon==="success"?(r=KR,a=a.replace(/ style=".*?"/g,"")):n.icon==="error"?r=ZR:n.icon&&(r=dw({question:"?",warning:"!",info:"i"}[n.icon])),a.trim()!==r.trim()&&Bn(e,r)},JR=(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=>`
    ${e}
    `,WR=(e,n)=>{const a=Px();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,On(a,n,"image")}};let wg=!1,$x=0,Xx=0,Kx=0,Zx=0;const eN=e=>{e.addEventListener("mousedown",Nc),document.body.addEventListener("mousemove",Tc),e.addEventListener("mouseup",kc),e.addEventListener("touchstart",Nc),document.body.addEventListener("touchmove",Tc),e.addEventListener("touchend",kc)},tN=e=>{e.removeEventListener("mousedown",Nc),document.body.removeEventListener("mousemove",Tc),e.removeEventListener("mouseup",kc),e.removeEventListener("touchstart",Nc),document.body.removeEventListener("touchmove",Tc),e.removeEventListener("touchend",kc)},Nc=e=>{const n=Je();if(e.target===n||tl().contains(e.target)){wg=!0;const a=Jx(e);$x=a.clientX,Xx=a.clientY,Kx=parseInt(n.style.insetInlineStart)||0,Zx=parseInt(n.style.insetBlockStart)||0,We(n,"swal2-dragging")}},Tc=e=>{const n=Je();if(wg){let{clientX:a,clientY:r}=Jx(e);n.style.insetInlineStart=`${Kx+(a-$x)}px`,n.style.insetBlockStart=`${Zx+(r-Xx)}px`}},kc=()=>{const e=Je();wg=!1,na(e,"swal2-dragging")},Jx=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}},nN=(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(td()),aN(r,n),n.draggable&&!n.toast?(We(r,Y.draggable),eN(r)):(na(r,Y.draggable),tN(r))}},aN=(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),On(e,n,"popup"),typeof n.customClass=="string"&&We(e,n.customClass),n.icon&&We(e,Y[`icon-${n.icon}`])},iN=(e,n)=>{const a=dg();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=rN(u);if(a.appendChild(m),f===o&&We(m,Y["active-progress-step"]),f!==r.length-1){const p=sN(n);a.appendChild(p)}})},rN=e=>{const n=document.createElement("li");return We(n,Y["progress-step"]),Bn(n,e),n},sN=e=>{const n=document.createElement("li");return We(n,Y["progress-step-line"]),e.progressStepsDistance&&Hr(n,"width",e.progressStepsDistance),n},lN=(e,n)=>{const a=Fx();a&&(gg(a),Do(a,n.title||n.titleText,"block"),n.title&&yg(n.title,a),n.titleText&&(a.innerText=n.titleText),On(a,n,"title"))},Wx=(e,n)=>{nN(e,n),LR(e,n),iN(e,n),XR(e,n),WR(e,n),lN(e,n),zR(e,n),YR(e,n),OR(e,n),$R(e,n);const a=Je();typeof n.didRender=="function"&&a&&n.didRender(a),je.eventEmitter.emit("didRender",a)},oN=()=>bn(Je()),e2=()=>{var e;return(e=Ma())===null||e===void 0?void 0:e.click()},uN=()=>{var e;return(e=Gr())===null||e===void 0?void 0:e.click()},cN=()=>{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"}),t2=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},dN=(e,n,a)=>{t2(e),n.toast||(e.keydownHandler=r=>hN(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)},Tm=(e,n)=>{var a;const r=hg();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()},n2=["ArrowRight","ArrowDown"],fN=["ArrowLeft","ArrowUp"],hN=(e,n,a)=>{e&&(n.isComposing||n.keyCode===229||(e.stopKeydownPropagation&&n.stopPropagation(),n.key==="Enter"?mN(n,e):n.key==="Tab"?gN(n):[...n2,...fN].includes(n.key)?pN(n.key):n.key==="Escape"&&yN(n,e,a)))},mN=(e,n)=>{if(!ed(n.allowEnterKey))return;const a=id(Je(),n.input);if(e.target&&a&&e.target instanceof HTMLElement&&e.target.outerHTML===a.outerHTML){if(["textarea","file"].includes(n.input))return;e2(),e.preventDefault()}},gN=e=>{const n=e.target,a=hg();let r=-1;for(let o=0;o{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=n2.includes(e)?"nextElementSibling":"previousElementSibling";let m=document.activeElement;if(m){for(let p=0;p{ed(n.allowEscapeKey)&&(e.preventDefault(),a(il.esc))};var Ys={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const vN=()=>{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"))})},a2=()=>{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")})},i2=typeof window<"u"&&!!window.GestureEvent,wN=()=>{if(i2&&!ri(document.body,Y.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,We(document.body,Y.iosfix),bN()}},bN=()=>{const e=fn();if(!e)return;let n;e.ontouchstart=a=>{n=xN(a)},e.ontouchmove=a=>{n&&(a.preventDefault(),a.stopPropagation())}},xN=e=>{const n=e.target,a=fn(),r=cg();return!a||!r||SN(e)||AN(e)?!1:n===a||!ow(a)&&n instanceof HTMLElement&&n.tagName!=="INPUT"&&n.tagName!=="TEXTAREA"&&!(ow(r)&&r.contains(n))},SN=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",AN=e=>e.touches&&e.touches.length>1,CN=()=>{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}},EN=()=>{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 jN=e=>{Ms===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(Ms=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ms+EN()}px`)},RN=()=>{Ms!==null&&(document.body.style.paddingRight=`${Ms}px`,Ms=null)};function r2(e,n,a,r){ad()?fw(e,r):(fR(a).then(()=>fw(e,r)),t2(je)),i2?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),mg()&&(RN(),CN(),a2()),NN()}function NN(){na([document.documentElement,document.body],[Y.shown,Y["height-auto"],Y["no-backdrop"],Y["toast-shown"]])}function Yi(e){e=kN(e);const n=Ys.swalPromiseResolve.get(this),a=TN(this);this.isAwaitingPromise?e.isDismissed||(_o(this),n(e)):a&&n(e)}const TN=e=>{const n=Je();if(!n)return!1;const a=ct.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),MN(e,n,a),!0};function s2(e){const n=Ys.swalPromiseReject.get(this);_o(this),n&&n(e)}const _o=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,ct.innerParams.get(e)||e._destroy())},kN=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),MN=(e,n,a)=>{var r;const o=fn(),u=Qx(n);typeof a.willClose=="function"&&a.willClose(n),(r=je.eventEmitter)===null||r===void 0||r.emit("willClose",n),u?DN(e,n,o,a.returnFocus,a.didClose):r2(e,o,a.returnFocus,a.didClose)},DN=(e,n,a,r,o)=>{je.swalCloseEventFinishedCallback=r2.bind(null,e,a,r,o);const u=function(f){if(f.target===n){var m;(m=je.swalCloseEventFinishedCallback)===null||m===void 0||m.call(je),delete je.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=je.eventEmitter)===null||a===void 0||a.emit("didClose"),e._destroy&&e._destroy()})},$s=e=>{let n=Je();if(n||new Tn,n=Je(),!n)return;const a=al();ad()?an(tl()):ON(n,e),qt(a),n.setAttribute("data-loading","true"),n.setAttribute("aria-busy","true"),n.focus()},ON=(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))},_N=(e,n)=>{n.input==="select"||n.input==="radio"?HN(e,n):["text","email","number","tel","textarea"].some(a=>a===n.input)&&(og(n.inputValue)||ug(n.inputValue))&&($s(Ma()),FN(e,n))},BN=(e,n)=>{const a=e.getInput();if(!a)return null;switch(n.input){case"checkbox":return zN(a);case"radio":return LN(a);case"file":return UN(a);default:return n.inputAutoTrim?a.value.trim():a.value}},zN=e=>e.checked?1:0,LN=e=>e.checked?e.value:null,UN=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,HN=(e,n)=>{const a=Je();if(!a)return;const r=o=>{n.input==="select"?PN(a,Mc(o),n):n.input==="radio"&&VN(a,Mc(o),n)};og(n.inputOptions)||ug(n.inputOptions)?($s(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}`)},FN=(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 PN(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,Bn(p,f),p.selected=l2(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 VN(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,l2(f,a.inputValue)&&(p.checked=!0);const y=document.createElement("span");Bn(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 Mc=e=>{const n=[];return e instanceof Map?e.forEach((a,r)=>{let o=a;typeof o=="object"&&(o=Mc(o)),n.push([r,o])}):Object.keys(e).forEach(a=>{let r=e[a];typeof r=="object"&&(r=Mc(r)),n.push([a,r])}),n},l2=(e,n)=>!!n&&n.toString()===e.toString(),IN=e=>{const n=ct.innerParams.get(e);e.disableButtons(),n.input?o2(e,"confirm"):xg(e,!0)},qN=e=>{const n=ct.innerParams.get(e);e.disableButtons(),n.returnInputValueOnDeny?o2(e,"deny"):bg(e,!1)},QN=(e,n)=>{e.disableButtons(),n(il.cancel)},o2=(e,n)=>{const a=ct.innerParams.get(e);if(!a.input){Qr(`The "input" parameter is needed to be set when using returnInputValueOn${lg(n)}`);return}const r=e.getInput(),o=BN(e,a);a.inputValidator?GN(e,o,n):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(a.validationMessage||r.validationMessage)):n==="deny"?bg(e,o):xg(e,o)},GN=(e,n,a)=>{const r=ct.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"?bg(e,n):xg(e,n)})},bg=(e,n)=>{const a=ct.innerParams.get(e||void 0);a.showLoaderOnDeny&&$s(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=>u2(e||void 0,o))):e.close({isDenied:!0,value:n})},hw=(e,n)=>{e.close({isConfirmed:!0,value:n})},u2=(e,n)=>{e.rejectPromise(n)},xg=(e,n)=>{const a=ct.innerParams.get(e||void 0);a.showLoaderOnConfirm&&$s(),a.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>To(a.preConfirm(n,a.validationMessage))).then(o=>{bn(td())||o===!1?(e.hideLoading(),_o(e)):hw(e,typeof o>"u"?n:o)}).catch(o=>u2(e||void 0,o))):hw(e,n)};function Dc(){const e=ct.innerParams.get(this);if(!e)return;const n=ct.domCache.get(this);an(n.loader),ad()?e.icon&&qt(tl()):YN(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 YN=e=>{const n=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));n.length?qt(n[0],"inline-block"):xR()&&an(e.actions)};function c2(){const e=ct.innerParams.get(this),n=ct.domCache.get(this);return n?id(n.popup,e.input):null}function d2(e,n,a){const r=ct.domCache.get(e);n.forEach(o=>{r[o].disabled=a})}function f2(e,n){const a=Je();if(!(!a||!e))if(e.type==="radio"){const r=a.querySelectorAll(`[name="${Y.radio}"]`);for(let o=0;oObject.prototype.hasOwnProperty.call(Ds,e),b2=e=>$N.indexOf(e)!==-1,x2=e=>XN[e],ZN=e=>{w2(e)||cn(`Unknown parameter "${e}"`)},JN=e=>{KN.includes(e)&&cn(`The parameter "${e}" is incompatible with toasts`)},WN=e=>{const n=x2(e);n&&Hx(e,n)},S2=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)ZN(n),e.toast&&JN(n),WN(n)};function A2(e){const n=fn(),a=Je(),r=ct.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=e6(e),u=Object.assign({},r,o);S2(u),n.dataset.swal2Theme=u.theme,Wx(this,u),ct.innerParams.set(this,u),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const e6=e=>{const n={};return Object.keys(e).forEach(a=>{b2(a)?n[a]=e[a]:cn(`Invalid parameter to update: ${a}`)}),n};function C2(){const e=ct.domCache.get(this),n=ct.innerParams.get(this);if(!n){E2(this);return}e.popup&&je.swalCloseEventFinishedCallback&&(je.swalCloseEventFinishedCallback(),delete je.swalCloseEventFinishedCallback),typeof n.didDestroy=="function"&&n.didDestroy(),je.eventEmitter.emit("didDestroy"),t6(this)}const t6=e=>{E2(e),delete e.params,delete je.keydownHandler,delete je.keydownTarget,delete je.currentInstance},E2=e=>{e.isAwaitingPromise?(qh(ct,e),e.isAwaitingPromise=!0):(qh(Ys,e),qh(ct,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},qh=(e,n)=>{for(const a in e)e[a].delete(n)};var n6=Object.freeze({__proto__:null,_destroy:C2,close:Yi,closeModal:Yi,closePopup:Yi,closeToast:Yi,disableButtons:m2,disableInput:p2,disableLoading:Dc,enableButtons:h2,enableInput:g2,getInput:c2,handleAwaitingPromise:_o,hideLoading:Dc,rejectPromise:s2,resetValidationMessage:v2,showValidationMessage:y2,update:A2});const a6=(e,n,a)=>{e.toast?i6(e,n,a):(s6(n),l6(n),o6(e,n,a))},i6=(e,n,a)=>{n.popup.onclick=()=>{e&&(r6(e)||e.timer||e.input)||a(il.close)}},r6=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let Oc=!1;const s6=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(n){e.container.onmouseup=()=>{},n.target===e.container&&(Oc=!0)}}},l6=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))&&(Oc=!0)}}},o6=(e,n,a)=>{n.container.onclick=r=>{if(Oc){Oc=!1;return}r.target===n.container&&ed(e.allowOutsideClick)&&a(il.backdrop)}},u6=e=>typeof e=="object"&&e.jquery,mw=e=>e instanceof Element||u6(e),c6=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 d6(){for(var e=arguments.length,n=new Array(e),a=0;aje.timeout&&je.timeout.getTimerLeft(),j2=()=>{if(je.timeout)return SR(),je.timeout.stop()},R2=()=>{if(je.timeout){const e=je.timeout.start();return pg(e),e}},m6=()=>{const e=je.timeout;return e&&(e.running?j2():R2())},g6=e=>{if(je.timeout){const n=je.timeout.increase(e);return pg(n,!0),n}},p6=()=>!!(je.timeout&&je.timeout.isRunning());let gw=!1;const km={};function y6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";km[e]=this,gw||(document.body.addEventListener("click",v6),gw=!0)}const v6=e=>{for(let n=e.target;n&&n!==document;n=n.parentNode)for(const a in km){const r=n.getAttribute(a);if(r){km[a].fire({template:r});return}}};class w6{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;m1?a-1:0),o=1;o{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={}}}je.eventEmitter=new w6;const b6=(e,n)=>{je.eventEmitter.on(e,n)},x6=(e,n)=>{je.eventEmitter.once(e,n)},S6=(e,n)=>{if(!e){je.eventEmitter.reset();return}n?je.eventEmitter.removeListener(e,n):je.eventEmitter.removeAllListeners(e)};var A6=Object.freeze({__proto__:null,argsToParams:c6,bindClickHandler:y6,clickCancel:cN,clickConfirm:e2,clickDeny:uN,enableLoading:$s,fire:d6,getActions:Mo,getCancelButton:nl,getCloseButton:fg,getConfirmButton:Ma,getContainer:fn,getDenyButton:Gr,getFocusableElements:hg,getFooter:Vx,getHtmlContainer:cg,getIcon:tl,getIconContent:pR,getImage:Px,getInputLabel:yR,getLoader:al,getPopup:Je,getProgressSteps:dg,getTimerLeft:h6,getTimerProgressBar:nd,getTitle:Fx,getValidationMessage:td,increaseTimer:g6,isDeprecatedParameter:x2,isLoading:wR,isTimerRunning:p6,isUpdatableParameter:b2,isValidParameter:w2,isVisible:oN,mixin:f6,off:S6,on:b6,once:x6,resumeTimer:R2,showLoading:$s,stopTimer:j2,toggleTimer:m6});class C6{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 N2=["swal-title","swal-html","swal-footer"],E6=e=>{const n=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!n)return{};const a=n.content;return O6(a),Object.assign(j6(a),R6(a),N6(a),T6(a),k6(a),M6(a),D6(a,N2))},j6=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},R6=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},N6=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${lg(o)}Button`]=!0,r.hasAttribute("color")&&(n[`${o}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(n[`${o}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),n},T6=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},k6=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},M6=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},D6=(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},O6=e=>{const n=N2.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."}`])})},T2=10,_6=e=>{const n=fn(),a=Je();typeof e.willOpen=="function"&&e.willOpen(a),je.eventEmitter.emit("willOpen",a);const o=window.getComputedStyle(document.body).overflowY;L6(n,a,e),setTimeout(()=>{B6(n,a)},T2),mg()&&(z6(n,e.scrollbarPadding,o),vN()),!ad()&&!je.previousActiveElement&&(je.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(a)),je.eventEmitter.emit("didOpen",a),na(n,Y["no-transition"])},_c=e=>{const n=Je();if(e.target!==n)return;const a=fn();n.removeEventListener("animationend",_c),n.removeEventListener("transitionend",_c),a.style.overflowY="auto"},B6=(e,n)=>{Qx(n)?(e.style.overflowY="hidden",n.addEventListener("animationend",_c),n.addEventListener("transitionend",_c)):e.style.overflowY="auto"},z6=(e,n,a)=>{wN(),n&&a!=="hidden"&&jN(a),setTimeout(()=>{e.scrollTop=0})},L6=(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")},T2)):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 U6(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=pw.email),e.input==="url"&&(e.inputValidator=pw.url))}function H6(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 F6(e){U6(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`),H6(e),typeof e.title=="string"&&(e.title=e.title.split(` +`).join("
    ")),kR(e)}let Ea;var ac=new WeakMap;class Mt{constructor(){if(oR(this,ac,void 0),typeof window>"u")return;Ea=this;for(var n=arguments.length,a=new Array(n),r=0;r1&&arguments[1]!==void 0?arguments[1]:{};if(S2(Object.assign({},a,n)),je.currentInstance){const u=Ys.swalPromiseResolve.get(je.currentInstance),{isAwaitingPromise:f}=je.currentInstance;je.currentInstance._destroy(),f||u({isDismissed:!0}),mg()&&a2()}je.currentInstance=Ea;const r=V6(n,a);F6(r),Object.freeze(r),je.timeout&&(je.timeout.stop(),delete je.timeout),clearTimeout(je.restoreFocusTimeout);const o=I6(Ea);return Wx(Ea,r),ct.innerParams.set(Ea,r),P6(Ea,o,r)}then(n){return rw(ac,this).then(n)}finally(n){return rw(ac,this).finally(n)}}const P6=(e,n,a)=>new Promise((r,o)=>{const u=f=>{e.close({isDismissed:!0,dismiss:f})};Ys.swalPromiseResolve.set(e,r),Ys.swalPromiseReject.set(e,o),n.confirmButton.onclick=()=>{IN(e)},n.denyButton.onclick=()=>{qN(e)},n.cancelButton.onclick=()=>{QN(e,u)},n.closeButton.onclick=()=>{u(il.close)},a6(a,n,u),dN(je,a,u),_N(e,a),_6(a),q6(je,a,u),Q6(n,a),setTimeout(()=>{n.container.scrollTop=0})}),V6=(e,n)=>{const a=E6(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},I6=e=>{const n={popup:Je(),container:fn(),actions:Mo(),confirmButton:Ma(),denyButton:Gr(),cancelButton:nl(),loader:al(),closeButton:fg(),validationMessage:td(),progressSteps:dg()};return ct.domCache.set(e,n),n},q6=(e,n,a)=>{const r=nd();an(r),n.timer&&(e.timeout=new C6(()=>{a("timer"),delete e.timeout},n.timer),n.timerProgressBar&&(qt(r),On(r,n,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&pg(n.timer)})))},Q6=(e,n)=>{if(!n.toast){if(!ed(n.allowEnterKey)){Hx("allowEnterKey"),$6();return}G6(e)||Y6(e,n)||Tm(-1,1)}},G6=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},Y6=(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,$6=()=>{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=m2;Mt.prototype.enableButtons=h2;Mt.prototype.getInput=c2;Mt.prototype.disableInput=p2;Mt.prototype.enableInput=g2;Mt.prototype.hideLoading=Dc;Mt.prototype.disableLoading=Dc;Mt.prototype.showValidationMessage=y2;Mt.prototype.resetValidationMessage=v2;Mt.prototype.close=Yi;Mt.prototype.closePopup=Yi;Mt.prototype.closeModal=Yi;Mt.prototype.closeToast=Yi;Mt.prototype.rejectPromise=s2;Mt.prototype.update=A2;Mt.prototype._destroy=C2;Object.assign(Mt,A6);Object.keys(n6).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 X6=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"}));var Mm=function(e,n){return Mm=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])},Mm(e,n)};function K6(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Mm(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;rn},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||j},nativeApp:function(){return C()||S},android:function(){return C()||y},ipad:function(){return C()||x}};return Qh=k,Qh}var Gh,vw;function J6(){if(vw)return Gh;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 Gh=n,Gh}var Yh,ww;function W6(){if(ww)return Yh;ww=1;var e=J6(),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 $h,bw;function eT(){if(bw)return $h;bw=1;var e=Z6(),n=W6(),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"},$h=u,$h}var Xh,xw;function tT(){return xw||(xw=1,Xh=eT()),Xh}var nT=tT();const aT=Bc(nT);function iT(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 rT(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 rd(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 sT(e,n,a,r,o,u,f){u===void 0&&(u=0),f===void 0&&(f=!0);var m=f?lT:oT,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)},j=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:j}}function lT(e,n){return Math.min(e,Math.max(0,n))}function oT(e,n){return n}function uT(e,n,a,r,o,u){var f=Xs(n.width,n.height,a),m=rd(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 cT(e,n,a){var r=rT(n);return a.height>a.width?a.height/(e.height*r):a.width/(e.width*r)}function dT(e,n,a,r,o,u){a===void 0&&(a=0);var f=Xs(n.naturalWidth,n.naturalHeight,a),m=rd(cT(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 fT(e){return e*Math.PI/180}function Xs(e,n,a){var r=fT(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 rd(e,n,a){return Math.min(Math.max(e,n),a)}function ic(){for(var e=[],n=0;n0}).join(" ").trim()}var hT=`.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; +} +`,mT=1,gT=3,pT=1,yT=function(e){K6(n,e);function n(){var a=e!==null&&e.apply(this,arguments)||this;return a.cropperRef=E.createRef(),a.imageRef=E.createRef(),a.videoRef=E.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=uT(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=dT(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.offsetWidthS?{width:a.containerRect.height*S,height:a.containerRect.height}:{width:a.containerRect.width,height:a.containerRect.width/S};break;case"horizontal-cover":j={width:a.containerRect.width,height:a.containerRect.width/S};break;case"vertical-cover":j={width:a.containerRect.height*S,height:a.containerRect.height};break}else j={width:g.offsetWidth,height:g.offsetHeight};a.mediaSize=Vt(Vt({},j),{naturalWidth:v,naturalHeight:b}),a.props.setMediaSize&&a.props.setMediaSize(a.mediaSize);var C=a.props.cropSize?a.props.cropSize:iT(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=aT(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=rd(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 sT(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=hT,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 ya.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 k2=({image:e,onCropComplete:n})=>{const[a,r]=E.useState({x:0,y:0}),[o,u]=E.useState(1),f=E.useCallback(async(m,p)=>{const g=await vT(e,p);n(g)},[e,n]);return c.jsxs("div",{className:"relative w-full h-96 bg-gray-200 flex flex-col items-center justify-center",children:[c.jsx(yT,{image:e,crop:a,zoom:o,aspect:1,onCropChange:r,onZoomChange:u,onCropComplete:f}),c.jsx("button",{className:"mt-4 px-6 py-2 bg-blue-600 text-white font-semibold rounded-lg",onClick:()=>f(),children:"Simpan Crop"})]})};k2.propTypes={image:Be.string.isRequired,onCropComplete:Be.func.isRequired};const Bo="https://myskin-v2.humicprototyping.com/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=",sd=()=>c.jsx("div",{children:c.jsx("div",{className:"flex-col gap-4 w-full h-96 flex items-center justify-center",children:c.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:c.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"})})})}),Sg=({handleDoctorSelect:e})=>{var x;const[n,a]=E.useState(""),[r,o]=E.useState(1),u=8,{data:f,isLoading:m,isError:p}=el({queryKey:["doctors",n],queryFn:()=>Mn.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 c.jsxs("div",{className:"w-full pt-4",children:[c.jsxs("div",{className:"w-full flex items-center bg-white shadow-md rounded-lg px-4 py-2 mb-6 mx-auto",children:[c.jsx(Ic,{className:"text-gray-400 mr-2"}),c.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?c.jsx(sd,{}):p?c.jsx("p",{className:"text-center text-red-500",children:"Gagal memuat data dokter."}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4",children:b.map(S=>c.jsxs("div",{className:"flex flex-col items-center bg-white rounded-xl shadow-md p-4",children:[c.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"}),c.jsxs("p",{className:"font-semibold text-center",children:["dr. ",S.name]}),c.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&&c.jsxs("div",{className:"flex justify-center items-center space-x-2 mt-8",children:[c.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:c.jsx(db,{className:"m-1"})}),Array.from({length:v},(S,j)=>j+1).map(S=>c.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)),c.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:c.jsx(fb,{className:"m-1"})})]})]})]})};Sg.propTypes={handleDoctorSelect:Be.func};const wT=()=>{var fe;const[e,n]=E.useState(null),[a,r]=E.useState(null),[o,u]=E.useState(!1),[f,m]=E.useState(!0),[p,g]=E.useState(null),[y,v]=E.useState(!1),[b,x]=E.useState(!1),S=E.useRef(!1),[j,C]=E.useState(""),[k,z]=E.useState(null),{user:_}=Wi(),Z=(fe=_==null?void 0:_.data)==null?void 0:fe.id,R=Ec({mutationFn:ge=>Mn.createDetection(ge),onSuccess:ge=>{var De;console.log("Detection submitted successfully:",ge),g((De=ge==null?void 0:ge.data)==null?void 0:De.data),v(!1)},onError:ge=>{var De,ce,P;console.error("Detailed error response:",{status:(De=ge.response)==null?void 0:De.status,data:(ce=ge.response)==null?void 0:ce.data,headers:(P=ge.response)==null?void 0:P.headers}),v(!1)}}),W=async ge=>{if(!b){if(x(!0),!ge){console.error("Missing cropped image URL");return}if(!Z){console.error("Patient ID not available. Current user:",_);return}try{if(v(!0),!ge.startsWith("blob:")&&!ge.startsWith("data:")){console.error("Invalid image URL format:",ge),v(!1);return}const De=await fetch(ge);if(!De.ok)throw new Error("Failed to fetch cropped image");const ce=await De.blob();if(!ce||ce.size===0)throw new Error("Empty image blob");const P=new File([ce],"diagnosis.jpg",{type:ce.type||"image/jpeg"}),H=new FormData;H.append("patient_id",Z.toString()),H.append("image",P,P.name);for(let[te,$]of H.entries())console.log(te,$ instanceof File?`${$.name} (${$.type})`:$);R.mutate(H)}catch(De){console.error("Submission error details:",{error:De.message,patientId:Z,hasCroppedImage:!!ge,userAuthStatus:!!_}),v(!1)}finally{x(!1)}}},ue=async ge=>{if(!j||!ge||!(p!=null&&p.id)){Tn.fire("Error","Keluhan dan dokter wajib diisi","error");return}const De={doctorId:ge.id,complaint:j};try{const ce=await Mn.updateDetection(p.id,De,_.token);console.log("data submit:",ce),Tn.fire("Berhasil","Pengajuan berhasil dikirim ke dokter","success"),m(!0),C(""),z(null)}catch(ce){console.error(ce),Tn.fire("Gagal","Terjadi kesalahan saat mengirim data","error")}},se=async ge=>{(await Tn.fire({title:`Pilih Dokter ${ge.name}?`,text:"Apakah Anda yakin ingin mengajukan verifikasi ke dokter ini?",icon:"question",showCancelButton:!0,confirmButtonText:"Ya, pilih dokter ini",cancelButtonText:"Batal"})).isConfirmed&&(z(ge),ue(ge))},Q=ge=>{const De=ge.target.files[0];De&&(n(URL.createObjectURL(De)),r(null),g(null),m(!0),S.current=!1)},ne=(p==null?void 0:p.percentage)>=50?"Tidak Aman":"Aman";return c.jsx("div",{className:"flex justify-center py-10 px-10 md:px-20 w-full",children:c.jsxs("div",{className:"md:bg-white md:py-8 md:px-20 md:rounded-lg md:border md:border-gray-400 w-full",children:[c.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Deteksi Kanker Kulit"}),c.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Masukkan gambar untuk mendeteksi kanker dari gambar yang diberikan"}),c.jsxs("div",{className:"w-full flex flex-col items-center",children:[o?c.jsx(k2,{image:e,onCropComplete:async ge=>{r(ge),u(!1),!S.current&&ge&&(S.current=!0,await W(ge))}}):c.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?c.jsx("img",{src:a,alt:"Cropped",className:"max-h-58 w-full object-cover rounded-lg"}):e?c.jsx("img",{src:e,alt:"Uploaded",className:"max-h-58 w-full object-cover rounded-lg"}):c.jsxs("label",{className:"cursor-pointer flex flex-col items-center text-blue-900 font-semibold",children:[c.jsx("span",{className:"text-lg",children:"+ Masukkan Gambar"}),c.jsx("input",{type:"file",className:"hidden",accept:"image/jpeg, image/png",onChange:Q})]})}),e&&!o&&c.jsx("div",{className:"w-full flex justify-center mt-3",children:a?c.jsxs("label",{className:"md:w-1/3 font-bold border border-gray-800 rounded-full px-6 py-2 cursor-pointer text-center",children:[c.jsx("input",{type:"file",className:"hidden",accept:"image/jpeg, image/png",onChange:Q}),"Ganti Foto"]}):c.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&&c.jsx("div",{className:"mt-4 text-center",children:c.jsx("p",{className:"text-gray-600",children:"Memproses deteksi..."})}),a&&p&&c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-6",children:[c.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:[c.jsx("img",{src:zo,alt:"Melanoma",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Melanoma"}),c.jsx("p",{children:p.diagnosis})]}),c.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:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:"text-green-500",children:`${p.percentage}% ${p.diagnosisAi} (${ne})`})]})]}),a&&_&&c.jsx("button",{onClick:()=>m(ge=>!ge),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&&c.jsxs("div",{className:"w-full",children:[c.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Ajukan keluhan dan pilih dokter Anda disini"}),c.jsxs("div",{className:"text-left w-full",children:[c.jsx("p",{children:"Keluhan:"}),c.jsx("textarea",{value:j,onChange:ge=>C(ge.target.value),className:"w-full h-32 border border-gray-400 rounded-lg p-2 mt-2",placeholder:"Masukkan keluhan Anda disini",required:!0}),c.jsx(Sg,{handleDoctorSelect:se}),k&&c.jsxs("div",{className:"mt-4 text-sm text-green-700",children:["Dokter terpilih: ",c.jsxs("strong",{children:["dr. ",k.name]})]})]})]})]}),!a&&c.jsxs("div",{className:"mt-6 text-sm text-gray-700",children:[c.jsxs("p",{className:"text-black",children:["1. Format: JPEG, PNG ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsxs("p",{className:"text-black",children:["2. Ukuran: Maksimum 5 MB ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsxs("p",{className:"text-black",children:["3. Resolusi: Minimal 800 x 600 piksel"," ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsx("p",{className:"text-red-500 mt-2 italic",children:"*Wajib mengikuti aturan gambar"})]})]})})},bT="https://myskin-v2.humicprototyping.com/assets/doctor-B0xZjIfR.jpeg",xT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFMSURBVHgB7ZW9VcMwEMfvjgwQwgIZIRvgNIYORggdL7ADYQMKApQwAY8upkGMkAliFjBZAB1nPewnCQmbQKDJr/GzdH+dT/dhgA0NoP3S2zvhkJFGHC5nl8pe6+4fJ8RbTyH7IpvW53b8TfGgkPnZ/Yy3PHBODsznjhZxV05OIEYZQS8dT2BFSq1/C52Y8U56esjIB9AKPS+y64vQTtQBgx7I3YygBQyk5BF0QLBm3AgkaZrM16xEqSWtnTWMGXclB9Q2B8wvxePVBP4DE8F2Or5HhAH8Kqik4Y5MDojhQYp3DohnVaM1No2FaHLR3NUak0tY1BFUmCaRzfI+TcOJw5YO1Gs2HVYae1SsvUz/uA8sQjUdgwkX33bwMZ4V/JDP41oqwZ+omvTtcnaT22vyP+iTppGvxSYHpswQE89MQTn/Xfp+lUXHwoaveAeA0XugwY8BigAAAABJRU5ErkJggg==",ST=()=>{var n;const{user:e}=Wi();return c.jsxs("div",{className:"w-full min-h-screen",children:[c.jsxs("div",{className:"w-full h-80 md:h-[32rem]",children:[c.jsx("img",{src:bT,alt:"Dokter",className:"w-full h-full object-cover"}),c.jsxs("div",{className:"absolute left-8 md:left-32 top-28 md:top-48 max-w-md",children:[c.jsxs("h1",{className:"text-4xl md:text-5xl font-light text-sky-900",children:["Selamat Datang, ",c.jsx("br",{}),c.jsx("span",{className:"font-bold capitalize",children:((n=e==null?void 0:e.data)==null?void 0:n.name)||"Pasien"})]}),c.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:[c.jsx("span",{className:"material-icons",children:c.jsx("img",{src:xT,alt:""})}),"Coba Sekarang"]})]})]}),c.jsx(sR,{}),c.jsx("div",{id:"deteksi",children:c.jsx(wT,{})})]})},ld="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",M2="https://myskin-v2.humicprototyping.com/assets/Ellipse%204-CrOw4YA8.png",AT=()=>{var y;const{id:e}=Hc(),n=dn(),{data:a,isLoading:r,isError:o}=el({queryKey:["submitDetect",e],queryFn:()=>Mn.getDetectionsById(e),enabled:!!e}),u=((y=a==null?void 0:a.data)==null?void 0:y.data)||[];if(r)return c.jsx("div",{className:"mt-10",children:c.jsx(sd,{})});if(o||!u)return c.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 c.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:c.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-6 lg:p-10",children:[c.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:[c.jsx(Vc,{className:"text-lg"}),"Kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center mt-5",children:[c.jsx("h1",{className:"text-2xl font-semibold mb-2",children:"Detail Hasil Deteksi"}),c.jsx("p",{className:"text-sm text-gray-600",children:f.isSubmitted==="Sudah"?"Hasil deteksi sudah diverifikasi dokter":"Hasil deteksi belum diverifikasi dokter"})]}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 mx-auto my-6 object-cover",src:f.imageUrl,alt:"Hasil Deteksi Kulit"}),c.jsxs("p",{className:"w-full lg:w-1/2 mx-auto mb-4 text-left font-bold text-md",children:["ID Deteksi: ",f.id]}),c.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"}),c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),c.jsx("p",{children:f.diagnosis||"Tidak diketahui"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:p,children:f.diagnosisAi||"Tidak tersedia"})]}),c.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:[c.jsx("img",{src:M2,alt:"Pengajuan Verifikasi",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:`font-semibold ${f.isSubmitted==="Sudah"?"text-green-500":"text-red-500"}`,children:f.isSubmitted})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:`font-semibold ${g}`,children:f.status})]})]}),c.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:{}},CT=mc.exports,jw;function ET(){return jw||(jw=1,function(e,n){(function(a,r){e.exports=r()})(CT,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",j="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(ce){var P=["th","st","nd","rd"],H=ce%100;return"["+ce+(P[(H-20)%10]||P[H]||P[0])+"]"}},_=function(ce,P,H){var te=String(ce);return!te||te.length>=P?ce:""+Array(P+1-te.length).join(H)+ce},Z={s:_,z:function(ce){var P=-ce.utcOffset(),H=Math.abs(P),te=Math.floor(H/60),$=H%60;return(P<=0?"+":"-")+_(te,2,"0")+":"+_($,2,"0")},m:function ce(P,H){if(P.date()1)return ce(N[0])}else{var X=P.name;W[X]=P,$=X}return!te&&$&&(R=$),$||!te&&R},ne=function(ce,P){if(se(ce))return ce.clone();var H=typeof P=="object"?P:{};return H.date=ce,H.args=arguments,new ge(H)},fe=Z;fe.l=Q,fe.i=se,fe.w=function(ce,P){return ne(ce,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var ge=function(){function ce(H){this.$L=Q(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[ue]=!0}var P=ce.prototype;return P.parse=function(H){this.$d=function(te){var $=te.date,oe=te.utc;if($===null)return new Date(NaN);if(fe.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var N=$.match(C);if(N){var X=N[2]-1||0,le=(N[7]||"0").substring(0,3);return oe?new Date(Date.UTC(N[1],X,N[3]||1,N[4]||0,N[5]||0,N[6]||0,le)):new Date(N[1],X,N[3]||1,N[4]||0,N[5]||0,N[6]||0,le)}}return new Date($)}(H),this.init()},P.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},P.$utils=function(){return fe},P.isValid=function(){return this.$d.toString()!==j},P.isSame=function(H,te){var $=ne(H);return this.startOf(te)<=$&&$<=this.endOf(te)},P.isAfter=function(H,te){return ne(H){var v,b,x,S;const{id:e}=Hc(),n=dn(),{user:a}=Wi(),{data:r,isLoading:o,isError:u}=el({queryKey:["submission",e],queryFn:()=>Mn.getSubmissionsById(e),enabled:!!e});if(o)return c.jsx("div",{className:"mt-10",children:c.jsx(sd,{})});if(u||!(r!=null&&r.data))return c.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=j=>Rw().diff(Rw(j),"year");return c.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:c.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-4 lg:p-10",children:[c.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:[c.jsx(Vc,{className:"text-lg text-white"}),"kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center",children:[c.jsx("div",{className:"my-5 leading-10",children:c.jsx("h1",{className:"text-2xl font-semibold",children:"Prediksi Penyakit"})}),c.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"}),c.jsx("button",{className:"w-full lg:w-1/2 px-4 py-2 my-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 cursor-pointer",children:"Unduh Gambar"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 mt-4 gap-4 w-full",children:[c.jsxs("div",{className:"lg:col-span-3 p-4 text-left rounded-lg shadow-md",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Diverifikasi Oleh"}),c.jsxs("p",{children:["Dr. ",f.verifiedBy]})]}),c.jsxs("div",{className:"p-4 text-left rounded-lg shadow-md",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Detail Pasien"}),c.jsxs("span",{className:"flex flex-col gap-y-2",children:[c.jsxs("p",{children:["Nama: ",((v=a==null?void 0:a.data)==null?void 0:v.name)||"Pasien"]}),c.jsxs("p",{children:["Nomor Telepon: ",((b=a==null?void 0:a.data)==null?void 0:b.phone)||"-"]}),c.jsxs("p",{children:["Email: ",((x=a==null?void 0:a.data)==null?void 0:x.email)||"-"]}),c.jsxs("p",{children:["Umur: ",y((S=a==null?void 0:a.data)==null?void 0:S.dob)]})]})]}),c.jsxs("div",{className:"lg:col-span-2 p-4 text-left rounded-lg shadow-md",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Keluhan"}),c.jsx("p",{children:f.complaint})]})]}),c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),c.jsx("p",{children:f.diagnosis||"Tidak diketahui"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:p,children:f.diagnosisAi||"Tidak tersedia"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:`font-semibold ${g}`,children:f.status})]})]}),c.jsxs("div",{className:"w-full text-left",children:[c.jsx("h1",{className:"text-2xl font-semibold text-center my-4",children:"Catatan Dokter"}),c.jsx("textarea",{className:"shadow-md rounded-lg w-full p-4",name:"catatan",id:"catatan",value:f.doctorNote,readOnly:!0})]})]})]})})},D2=e=>{const{diagnosis:n,percentage:a,status:r}=e;return c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-6",children:[c.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:[c.jsx("img",{src:zo,alt:"Melanoma",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Melanoma"}),c.jsx("p",{children:a>49?"Iya":"Tidak"})]}),c.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:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:a>49?"text-red-500":"text-green-500",children:n})]}),c.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:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:r=="verified"?"text-green-500":"text-red-500",children:r==="verified"?"Sudah diverifikasi":"Belum diverifikasi"})]})]})};D2.propTypes={diagnosis:Be.string.isRequired,percentage:Be.number.isRequired,status:Be.string.isRequired};const Nw="https://myskin-v2.humicprototyping.com/assets/default-DlLfYoqZ.png";let NT={data:""},TT=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||NT,kT=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,MT=/\/\*[^]*?\*\/| +/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={},O2=e=>{if(typeof e=="object"){let n="";for(let a in e)n+=a+O2(e[a]);return n}return e},DT=(e,n,a,r,o)=>{let u=O2(e),f=ei[u]||(ei[u]=(p=>{let g=0,y=11;for(;g>>0;return"go"+y})(u));if(!ei[f]){let p=u!==e?e:(g=>{let y,v,b=[{}];for(;y=kT.exec(g.replace(MT,""));)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},OT=(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 od(e){let n=this||{},a=e.call?e(n.p):e;return DT(a.unshift?a.raw?OT(a,[].slice.call(arguments,1),n.p):a.reduce((r,o)=>Object.assign(r,o&&o.call?o(n.p):o),{}):a,TT(n.target),n.g,n.o,n.k)}let _2,Dm,Om;od.bind({g:1});let li=od.bind({k:1});function _T(e,n,a,r){_i.p=n,_2=e,Dm=a,Om=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:Dm&&Dm()},m),a.o=/ *go\d+/.test(p),m.className=od.apply(a,r)+(p?" "+p:"");let g=e;return e[0]&&(g=m.as||e,delete m.as),Om&&g[0]&&Om(m),_2(g,m)}return o}}var BT=e=>typeof e=="function",_m=(e,n)=>BT(e)?e(n):e,zT=(()=>{let e=0;return()=>(++e).toString()})(),LT=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),UT=20,B2=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,UT)};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 B2(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}))}}},HT=[],Kh={toasts:[],pausedAt:void 0},Ag=e=>{Kh=B2(Kh,e),HT.forEach(n=>{n(Kh)})},FT=(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)||zT()}),Lo=e=>(n,a)=>{let r=FT(n,e,a);return Ag({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=>{Ag({type:3,toastId:e})};Kt.remove=e=>Ag({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?_m(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?_m(n.error,o):void 0;u?Kt.error(u,{id:r,...a,...a==null?void 0:a.error}):Kt.dismiss(r)}),e};var PT=li` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,VT=li` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,IT=li` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,qT=er("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${PT} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${VT} 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: ${IT} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,QT=li` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,GT=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: ${QT} 1s linear infinite; +`,YT=li` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,$T=li` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,XT=er("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${YT} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${$T} 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; + } +`,KT=er("div")` + position: absolute; +`,ZT=er("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,JT=li` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,WT=er("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${JT} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,ek=({toast:e})=>{let{icon:n,type:a,iconTheme:r}=e;return n!==void 0?typeof n=="string"?E.createElement(WT,null,n):n:a==="blank"?null:E.createElement(ZT,null,E.createElement(GT,{...r}),a!=="loading"&&E.createElement(KT,null,a==="error"?E.createElement(qT,{...r}):E.createElement(XT,{...r})))},tk=e=>` +0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} +100% {transform: translate3d(0,0,0) scale(1); opacity:1;} +`,nk=e=>` +0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} +100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} +`,ak="0%{opacity:0;} 100%{opacity:1;}",ik="0%{opacity:1;} 100%{opacity:0;}",rk=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; +`,sk=er("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,lk=(e,n)=>{let a=e.includes("top")?1:-1,[r,o]=LT()?[ak,ik]:[tk(a),nk(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)`}};E.memo(({toast:e,position:n,style:a,children:r})=>{let o=e.height?lk(e.position||n||"top-center",e.visible):{opacity:0},u=E.createElement(ek,{toast:e}),f=E.createElement(sk,{...e.ariaProps},_m(e.message,e));return E.createElement(rk,{className:e.className,style:{...o,...a,...e.style}},typeof r=="function"?r({icon:u,message:f}):E.createElement(E.Fragment,null,u,f))});_T(E.createElement);od` + z-index: 9999; + > * { + pointer-events: auto; + } +`;const ok=()=>c.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0 animate-pulse",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[c.jsx("div",{className:"w-6 h-6 bg-gray-300 rounded-full"}),c.jsx("div",{className:"h-6 w-24 bg-gray-300 rounded"})]}),c.jsxs("div",{className:"text-center mb-6",children:[c.jsx("div",{className:"h-6 w-48 bg-gray-300 rounded mx-auto mb-2"}),c.jsx("div",{className:"h-4 w-24 bg-gray-200 rounded mx-auto"})]}),c.jsx("div",{className:"flex justify-center",children:c.jsx("div",{className:"w-full lg:w-1/2 h-[300px] bg-gray-200 rounded-2xl mb-4"})}),c.jsx("div",{className:"w-full lg:w-1/2 h-10 bg-gray-300 rounded-full mx-auto mb-6"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[c.jsxs("div",{className:"p-4 rounded-lg shadow-md border border-gray-100",children:[c.jsx("div",{className:"h-6 w-32 bg-gray-300 mb-4 rounded"}),c.jsx("div",{className:"space-y-2",children:[...Array(4)].map((e,n)=>c.jsx("div",{className:"h-4 w-3/4 bg-gray-200 rounded"},n))})]}),c.jsxs("div",{className:"lg:col-span-2 p-4 rounded-lg shadow-md border border-gray-100",children:[c.jsx("div",{className:"h-6 w-32 bg-gray-300 mb-4 rounded"}),c.jsx("div",{className:"space-y-2",children:[...Array(4)].map((e,n)=>c.jsx("div",{className:"h-4 w-full bg-gray-200 rounded"},n))})]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6 w-full",children:[...Array(3)].map((e,n)=>c.jsx("div",{className:"h-24 bg-gray-200 rounded-lg shadow-md border border-gray-100"},n))}),c.jsxs("div",{className:"p-6 rounded-lg shadow-md w-full border border-gray-100",children:[c.jsx("div",{className:"h-6 w-40 bg-gray-300 mb-6 rounded"}),c.jsxs("div",{className:"flex gap-8 mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-4 h-4 rounded-full bg-gray-300"}),c.jsx("div",{className:"w-24 h-4 bg-gray-200 rounded"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-4 h-4 rounded-full bg-gray-300"}),c.jsx("div",{className:"w-32 h-4 bg-gray-200 rounded"})]})]}),c.jsxs("div",{className:"mb-6",children:[c.jsx("div",{className:"w-24 h-4 bg-gray-300 mb-2 rounded"}),c.jsx("div",{className:"h-28 w-full bg-gray-100 rounded-lg"})]}),c.jsx("div",{className:"w-full h-10 bg-gray-300 rounded-full"})]})]}),uk=()=>{const{id:e}=Hc(),n=dn(),[a,r]=E.useState(null),[o,u]=E.useState(!0),[f,m]=E.useState(""),[p,g]=E.useState(""),[y,v]=E.useState(!1),[b,x]=E.useState(!1);E.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")},j=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?

    Hasil verifikasi tidak dapat diubah lagi
    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 c.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0 text-center",children:[c.jsx(ok,{}),";"]});const k=(a==null?void 0:a.status)==="verified",z=y?Nw:a==null?void 0:a.imageUrl;return c.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0",children:[c.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:[c.jsx(Vc,{className:"text-lg text-white"}),"kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center",children:[c.jsxs("div",{className:"my-5 leading-10",children:[c.jsx("h1",{className:"text-2xl font-semibold",children:"Prediksi Penyakit"}),c.jsxs("p",{children:["ID: ",e||"-"]})]}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 object-cover max-h-[400px]",src:z||Nw,alt:"Skin condition",onError:S}),c.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"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 mt-4 gap-4 w-full",children:[c.jsxs("div",{className:"p-4 text-left rounded-lg shadow-md border border-gray-100",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Detail Pasien"}),c.jsxs("span",{className:"flex flex-col gap-y-2",children:[c.jsxs("p",{children:["Nama: ",(a==null?void 0:a.patientName)||"-"]}),c.jsxs("p",{children:["ID Pasien: ",(a==null?void 0:a.patientId)||"-"]}),c.jsxs("p",{children:["Status: ",(a==null?void 0:a.status)||"-"]}),c.jsxs("p",{children:["Tanggal Submit: ",(a==null?void 0:a.submittedAt)||"-"]}),(a==null?void 0:a.verifiedAt)&&c.jsxs("p",{children:["Tanggal Verifikasi: ",a.verifiedAt]})]})]}),c.jsxs("div",{className:"lg:col-span-2 p-4 text-left rounded-lg shadow-md border border-gray-100",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Keluhan"}),c.jsx("p",{children:(a==null?void 0:a.complaint)||"Tidak ada keluhan"})]})]}),(a==null?void 0:a.diagnosisAi)&&c.jsx(D2,{diagnosis:a.diagnosisAi,percentage:a.percentage,status:a.status}),c.jsxs("div",{className:"p-6 mt-4 rounded-lg shadow-md w-full text-left border border-gray-100",children:[c.jsx("h1",{className:"text-xl font-semibold mb-4",children:k?"Hasil Verifikasi Dokter":"Verifikasi Hasil Deteksi"}),c.jsxs("div",{className:"mb-4",children:[c.jsx("p",{className:"font-bold mb-2",children:k?"Diagnosis Dokter:":"*Verifikasi Diagnosis"}),c.jsxs("div",{className:"flex gap-8",children:[c.jsxs("label",{className:`flex items-center gap-2 ${k?"cursor-default":"cursor-pointer"}`,children:[c.jsx("input",{type:"radio",className:"w-4 h-4",name:"diagnosis",value:"Melanoma",checked:f==="Melanoma",onChange:_=>!k&&m(_.target.value),disabled:k}),c.jsx("span",{children:"Melanoma"})]}),c.jsxs("label",{className:`flex items-center gap-2 ${k?"cursor-default":"cursor-pointer"}`,children:[c.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}),c.jsx("span",{children:"Bukan Melanoma"})]})]})]}),c.jsxs("div",{className:"mb-6",children:[c.jsx("label",{htmlFor:"catatan",className:"block font-bold mb-2",children:k?"Catatan Dokter:":"Catatan:"}),k?c.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"}):c.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&&c.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:j,disabled:b,children:b?c.jsxs("div",{className:"flex items-center justify-center",children:[c.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:[c.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),c.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"})]})]})]})},z2=({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 c.jsx("div",{className:"block lg:hidden w-full mx-auto bg-white rounded-3xl shadow-lg p-6 mb-5",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Tanggal Pengajuan"}),c.jsx("span",{className:"text-right",children:e.date})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Diagnosis AI"}),c.jsx("span",{className:`font-semibold text-right ${o}`,children:e.persentase})]}),c.jsxs("div",{className:"flex justify-between gap-x-4 items-center",children:[c.jsx("span",{className:"font-bold",children:"Gambar"}),c.jsx("img",{src:mx,alt:"Deteksi",className:"w-24 h-24 rounded-lg shadow-md object-cover"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Keluhan"}),c.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.keluhan})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Status"}),c.jsx("span",{className:`font-semibold capitalize ${u}`,children:e.status})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Tanggal Diverifikasi"}),c.jsx("span",{children:e.tglVerif||"-"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Verified By"}),c.jsx("span",{children:e.verifiedBy||"-"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Melanoma"}),c.jsx("span",{children:f||"-"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Catatan Dokter"}),c.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.doctorNote||"-"})]}),c.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[c.jsx("button",{onClick:()=>a(`/pengajuan/info/${e.id}`),className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Zc,alt:"Info"})}),c.jsx("button",{onClick:n,className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Gs,alt:"Hapus"})})]})]})})};z2.propTypes={item:Be.object.isRequired,handleDelete:Be.func.isRequired};const ck=()=>{var ce;const{user:e}=Wi(),n=e==null?void 0:e.token,a=(ce=e==null?void 0:e.data)==null?void 0:ce.id,[r,o]=E.useState(!1),[u,f]=E.useState(1),[m,p]=E.useState(""),[g,y]=E.useState(5),[v,b]=E.useState(null),[x,S]=E.useState(!1),j=dn(),{data:C,isLoading:k,refetch:z}=el({queryKey:["submissions",a],queryFn:()=>Mn.getSubmissions({userId:a}),enabled:!!a,staleTime:5*60*1e3,cacheTime:30*60*1e3}),_=E.useMemo(()=>{var P;return((P=C==null?void 0:C.data)==null?void 0:P.data)||[]},[C]),Z=(_==null?void 0:_.filter(P=>{var H;return(H=P.complaint)==null?void 0:H.toLowerCase().includes(m.toLowerCase())}))||[],R=Z.length,W=Math.ceil(R/g),ue=u*g,se=ue-g,Q=Z.slice(se,ue),ne=P=>{b(P),o(!0)},fe=Ec({mutationFn:P=>Mn.deleteSubmission(P,n),onSuccess:()=>{nt.success("Data berhasil dihapus"),z(),o(!1),b(null)},onError:()=>{nt.error("Gagal menghapus data")}}),ge=()=>{uP+1)},De=()=>{u>1&&f(P=>P-1)};return c.jsxs(c.Fragment,{children:[r&&c.jsx(tg,{onClose:()=>o(!1),onDelete:()=>fe.mutate(v)}),c.jsxs("div",{className:"pt-32 w-full px-6 lg:px-3",children:[c.jsx("h1",{className:"text-3xl font-bold text-black",children:"Riwayat Pengajuan"}),c.jsxs("div",{className:"flex flex-col md:flex-row md:justify-between gap-3 mt-6 mb-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mr-2 font-medium",children:"Tampilkan:"}),c.jsxs("select",{className:"border rounded px-3 py-1",value:g,onChange:P=>{y(Number(P.target.value)),f(1)},children:[c.jsx("option",{value:5,children:"5 data"}),c.jsx("option",{value:10,children:"10 data"}),c.jsx("option",{value:20,children:"20 data"})]})]}),c.jsx("div",{children:c.jsx("input",{type:"text",placeholder:"Cari keluhan...",className:"border rounded px-3 py-1 w-full md:w-64",value:m,onChange:P=>{p(P.target.value),f(1)}})})]}),c.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 🔄"}),c.jsx("div",{className:"w-full overflow-x-auto hidden lg:block",children:c.jsxs("table",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white/60 backdrop-blur-md",children:[c.jsx("thead",{className:"border-b border-gray-200 text-left",children:c.jsxs("tr",{className:"text-black font-semibold",children:[c.jsx("th",{className:"py-4 px-6",children:"Tanggal"}),c.jsx("th",{className:"py-4 px-6",children:"Diagnosis AI"}),c.jsx("th",{className:"py-4 px-6",children:"Gambar"}),c.jsx("th",{className:"py-4 px-6",children:"Keluhan"}),c.jsx("th",{className:"py-4 px-6",children:"Status"}),c.jsx("th",{className:"py-4 px-6",children:"Tgl Verifikasi"}),c.jsx("th",{className:"py-4 px-6",children:"Verified By"}),c.jsx("th",{className:"py-4 px-6",children:"Melanoma"}),c.jsx("th",{className:"py-4 px-6",children:"Catatan Dokter"}),c.jsx("th",{className:"py-4 px-6",children:"Aksi"})]})}),c.jsx("tbody",{className:"text-left text-gray-800",children:k?c.jsx("tr",{children:c.jsx("td",{colSpan:10,className:"py-6",children:c.jsx(px,{})})}):Q.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:10,className:"text-center font-bold py-6",children:"Anda belum memiliki riwayat pengajuan"})}):Q.map((P,H)=>{const $=parseFloat(P.diagnosisAi)>=50?"text-red-600":"text-green-600",oe=P.status==="rejected"?"text-red-600":P.status==="pending"?"text-yellow-600":"text-green-600";return c.jsxs("tr",{className:"*:align-middle *:py-3 *:px-6",children:[c.jsx("td",{children:P.submittedAt}),c.jsx("td",{className:`font-semibold ${$}`,children:P.diagnosisAi}),c.jsx("td",{children:c.jsx("div",{className:"w-20 h-16 rounded-lg flex items-center justify-start overflow-hidden",children:c.jsx("img",{className:"max-w-full max-h-full object-cover",src:P.imageUrl,alt:"Deteksi"})})}),c.jsx("td",{className:"px-6 text-ellipsis",children:P.complaint}),c.jsx("td",{className:`px-6 font-semibold capitalize ${oe}`,children:P.status}),c.jsx("td",{children:P.verifiedAt}),c.jsx("td",{children:P.verifiedBy}),c.jsx("td",{children:P.diagnosis}),c.jsx("td",{children:P.doctorNote}),c.jsx("td",{children:c.jsxs("div",{className:"flex gap-x-3",children:[c.jsx("button",{type:"button",onClick:()=>j(`/pengajuan/info/${P.id}`),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Zc,alt:"Info"})}),c.jsx("button",{className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Gs,alt:"Hapus",onClick:()=>ne(P.id)})})]})})]},H)})})]})}),c.jsx("div",{className:"lg:hidden mt-4 space-y-4",children:Q.map((P,H)=>{const te={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 c.jsx(z2,{item:te,handleDelete:()=>ne(P.id)},H)})}),c.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:[c.jsxs("span",{children:["Halaman ",u," dari ",W,"  |  Total"," ",R," data"]}),c.jsxs("div",{className:"mt-2 lg:mt-0 flex gap-3",children:[c.jsx("button",{onClick:De,disabled:u===1,className:"px-4 py-2 rounded-md border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",children:"Sebelumnya"}),c.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"})]})]})]})]})},Bm=({children:e})=>{const n=localStorage.getItem("token"),{data:a}=JSON.parse(localStorage.getItem("user")),r=Da();return!n||!a?c.jsx(jh,{to:"/",replace:!0}):a.role==="patient"&&!r.pathname.startsWith("/deteksi")&&!r.pathname.startsWith("/pengajuan")?c.jsx(jh,{to:"/",replace:!0}):a.role==="doctor"&&!r.pathname.startsWith("/dokter")?c.jsx(jh,{to:"/dokter",replace:!0}):e};Bm.propTypes={children:Be.node};const L2=({data:e})=>{const n=dn(),[a,r]=E.useState(""),[o,u]=E.useState([]),[f,m]=E.useState(10),p=E.useMemo(()=>[{header:"Tanggal Pengajuan",accessorKey:"submittedAt"},{header:"Pasien",accessorKey:"patientName"},{header:"Diagnosis AI",accessorKey:"diagnosisAi",cell:({getValue:v})=>c.jsx("span",{className:"text-green-600 font-semibold block",children:v()})},{header:"Verifikasi Dokter",accessorKey:"diagnosis"},{header:"Catatan",accessorKey:"doctorNote",cell:({getValue:v})=>c.jsx("p",{className:"truncate max-w-[250px]",children:v()})},{header:"Detail",cell:({row:v})=>c.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:[c.jsx(hE,{size:18}),"Detail"]})}],[n]),g=cx({data:e,columns:p,state:{globalFilter:a,sorting:o},onGlobalFilterChange:r,onSortingChange:u,getCoreRowModel:sx(),getFilteredRowModel:lx(),getSortedRowModel:ux(),getPaginationRowModel:ox(),initialState:{pagination:{pageSize:f}}}),y=v=>{const b=Number(v.target.value);m(b),g.setPageSize(b)};return c.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[c.jsxs("div",{className:"mb-4 flex flex-col md:flex-row justify-between items-center gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("label",{htmlFor:"pageSize",className:"text-sm text-gray-700 whitespace-nowrap",children:"Tampilkan"}),c.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=>c.jsxs("option",{value:v,children:[v," data"]},v))})]}),c.jsxs("div",{className:"relative w-full max-w-sm",children:[c.jsx(Ic,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),c.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"})]})]}),c.jsxs("table",{className:"w-full text-left",children:[c.jsx("thead",{className:"border-b border-gray-200 text-black font-semibold",children:g.getHeaderGroups().map(v=>c.jsx("tr",{children:v.headers.map(b=>c.jsx("th",{className:"py-4 px-6 text-center cursor-pointer select-none",onClick:b.column.getToggleSortingHandler(),children:c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[Sc(b.column.columnDef.header,b.getContext()),{asc:c.jsx(Yb,{size:14}),desc:c.jsx(Qb,{size:14})}[b.column.getIsSorted()]??null]})},b.id))},v.id))}),c.jsx("tbody",{className:"text-gray-800",children:g.getRowModel().rows.map((v,b)=>c.jsx("tr",{className:b%2===0?"bg-white":"bg-gray-50",children:v.getVisibleCells().map(x=>c.jsx("td",{className:"py-4 px-6 text-center",children:Sc(x.column.columnDef.cell,x.getContext())},x.id))},v.id))})]}),c.jsxs("div",{className:"mt-6 flex flex-col md:flex-row items-center justify-between gap-4",children:[c.jsxs("div",{className:"text-sm text-gray-600",children:["Halaman ",g.getState().pagination.pageIndex+1," dari"," ",g.getPageCount(),"   |   Total:"," ",g.getFilteredRowModel().rows.length," data"]}),c.jsxs("div",{className:"flex gap-2",children:[c.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:[c.jsx(Xb,{}),"Sebelumnya"]}),c.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",c.jsx(Kb,{})]})]})]})]})};L2.propTypes={data:Be.array.isRequired};const dk=()=>c.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[c.jsxs("div",{className:"grid grid-cols-4 font-semibold text-black py-3 border-b border-gray-300",children:[c.jsx("div",{className:"h-6 w-32 bg-gray-200 rounded"}),c.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded"}),c.jsx("div",{className:"h-6 w-28 bg-gray-200 rounded"}),c.jsx("div",{className:"h-6 w-28 bg-gray-200 rounded"})]}),[...Array(5)].map((e,n)=>c.jsxs("div",{className:"grid grid-cols-4 gap-4 py-4 border-b border-gray-100 animate-pulse",children:[c.jsx("div",{className:"h-6 bg-gray-200 rounded w-32"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-40"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]},n)),c.jsxs("div",{className:"flex justify-between items-center mt-6",children:[c.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded animate-pulse"}),c.jsxs("div",{className:"flex gap-4",children:[c.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"}),c.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"})]})]})]}),fk=()=>{const[e,n]=E.useState([]),[a,r]=E.useState(!0),[o,u]=E.useState(null);return E.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?c.jsx("div",{className:"py-10 px-6 flex justify-center",children:c.jsxs("div",{className:"w-full",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center mb-6",children:"Riwayat Verifikasi"}),c.jsx(dk,{})]})}):o?c.jsxs("div",{className:"py-10 px-6",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Riwayat Verifikasi"}),c.jsx("div",{className:"py-10 px-6 flex justify-center",children:c.jsx("p",{className:"text-lg text-red-500",children:o})})]}):c.jsxs("div",{className:"py-10 px-6",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Riwayat Verifikasi"}),c.jsx("div",{className:"px-6 flex justify-center",children:e.length===0?c.jsxs("div",{className:"w-full flex flex-col items-center py-10",children:[c.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"}),c.jsx("p",{className:"text-lg text-gray-500",children:"Belum ada riwayat verifikasi."})]}):c.jsx(L2,{data:e})})]})},hk="https://myskin-v2.humicprototyping.com/assets/errorPage-c4bJcYnY.jpeg",Zh=()=>{const e=tb(),n=dn();console.error(e);const a=()=>{n("/",{replace:!0})};return c.jsxs("div",{className:"h-screen flex flex-col items-center justify-center text-center p-4",children:[c.jsx("img",{src:hk,alt:"error",className:"w-[30rem] mb-2"}),c.jsx("p",{className:"text-lg font-bold",children:"Something went wrong."}),c.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"}),c.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"})]})},mk=()=>{var k;const{id:e}=Hc(),{user:n}=Wi(),a=dn(),[r,o]=E.useState(""),[u,f]=E.useState(null),{data:m,isLoading:p,isError:g}=el({queryKey:["submission",e],queryFn:()=>Mn.getDetectionsById(e),enabled:!!e}),y=((k=m==null?void 0:m.data)==null?void 0:k.data)||[];if(p)return c.jsx("div",{className:"mt-10",children:c.jsx(sd,{})});if(g||!y)return c.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 Mn.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))},j=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 c.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:c.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-6 lg:p-10",children:[c.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:[c.jsx(Vc,{className:"text-lg text-white"}),"kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center",children:[c.jsxs("div",{className:"my-5 leading-10",children:[c.jsx("h1",{className:"text-2xl font-semibold",children:"Detail Hasil Deteksi"}),c.jsx("p",{className:"text-sm text-ellipsis",children:v.isSubmitted==="Sudah"?"Hasil deteksi sudah diverifikasi dokter":"Hasil deteksi belum diverifikasi dokter"})]}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 object-cover",src:v.imageUrl,alt:"Hasil Deteksi Kulit"}),c.jsxs("p",{className:"w-full lg:w-1/2 my-5 text-left font-bold text-md",children:["ID Deteksi: ",v.id]}),c.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"}),c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),c.jsx("p",{children:v.diagnosis||"Tidak diketahui"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:j,children:v.diagnosisAi||"Tidak tersedia"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:M2,alt:"Pengajuan Verifikasi",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:`font-semibold ${v.isSubmitted==="Sudah"?"text-green-500":"text-red-500"}`,children:v.isSubmitted})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:`font-semibold ${C}`,children:v.status})]})]}),c.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."}),c.jsxs("div",{className:"w-full mt-6",children:[c.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Ajukan keluhan dan pilih dokter Anda disini"}),c.jsxs("div",{className:"text-left w-full",children:[c.jsx("p",{children:"Keluhan:"}),c.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}),c.jsx(Sg,{handleDoctorSelect:x}),u&&c.jsxs("div",{className:"mt-4 text-sm text-green-700",children:["Dokter terpilih: ",c.jsxs("strong",{children:["dr. ",u.name]})]})]})]})]})]})})},gk=PC([{element:c.jsx(tE,{}),errorElement:c.jsx(Zh,{}),children:[{element:c.jsx(dc,{type:"default"}),errorElement:c.jsx(Zh,{}),children:[{path:"/",element:c.jsx(ST,{})},{path:"faq",element:c.jsx(eR,{})}]},{element:c.jsx(Bm,{children:c.jsx(dc,{type:"default"})}),errorElement:c.jsx(Zh,{}),children:[{path:"deteksi",element:c.jsx(W3,{})},{path:"pengajuan",element:c.jsx(ck,{})},{path:"deteksi/:id",element:c.jsx(AT,{})},{path:"pengajuan/info/:id",element:c.jsx(RT,{})},{path:"pengajuan/ulang/:id",element:c.jsx(mk,{})}]},{path:"dokter",element:c.jsx(Bm,{children:c.jsx(dc,{type:"doctor"})}),children:[{path:"",element:c.jsx(r3,{})},{path:"daftar-pasien",element:c.jsx(n3,{})},{path:"daftar-pengajuan",element:c.jsx(i3,{})},{path:"riwayat-verifikasi",element:c.jsx(fk,{})},{path:"riwayat-verifikasi/informasi-penyakit/:id",element:c.jsx(uk,{})}]}]}]),pk=new A3;ZS.createRoot(document.getElementById("root")).render(c.jsx($i.StrictMode,{children:c.jsx(N3,{client:pk,children:c.jsx(Ub,{children:c.jsx(eE,{router:gk})})})})); diff --git a/assets/index-CWQAYNRT.js b/assets/index-CWQAYNRT.js new file mode 100644 index 0000000..ee452ff --- /dev/null +++ b/assets/index-CWQAYNRT.js @@ -0,0 +1,430 @@ +var Gy=e=>{throw TypeError(e)};var gh=(e,n,a)=>n.has(e)||Gy("Cannot "+a);var M=(e,n,a)=>(gh(e,n,"read from private field"),a?a.call(e):n.get(e)),Ae=(e,n,a)=>n.has(e)?Gy("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),he=(e,n,a,r)=>(gh(e,n,"write to private field"),r?r.call(e,a):n.set(e,a),a),Ue=(e,n,a)=>(gh(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 Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={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 $y;function FS(){if($y)return to;$y=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 Yy;function PS(){return Yy||(Yy=1,ph.exports=FS()),ph.exports}var d=PS(),yh={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 Xy;function VS(){if(Xy)return Le;Xy=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,j={};function C(N,X,oe){this.props=N,this.context=X,this.refs=j,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=j,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 G(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 F(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,F(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,"$&/")+"/"),F(se,X,oe,"",function(Oe){return Oe})):se!=null&&(G(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>>1,N=L[le];if(0>>1;leo(ue,Q))seo(Se,ue)?(L[le]=Se,L[se]=Q,le=se):(L[le]=ue,L[oe]=Q,le=oe);else if(seo(Se,Q))L[le]=Se,L[se]=Q,le=se;else break e}}return P}function o(L,P){var Q=L.sortIndex-P.sortIndex;return Q!==0?Q:L.id-P.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,j=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function _(L){for(var P=a(g);P!==null;){if(P.callback===null)r(g);else if(P.startTime<=L)r(g),P.sortIndex=P.expirationTime,n(p,P);else break;P=a(g)}}function Z(L){if(j=!1,_(L),!S)if(a(p)!==null)S=!0,te();else{var P=a(g);P!==null&&F(Z,P.startTime-L)}}var R=!1,W=-1,ce=5,re=-1;function G(){return!(e.unstable_now()-reL&&G());){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),P=!0;break t}v===a(p)&&r(p),_(L)}else r(p);v=a(p)}if(v!==null)P=!0;else{var X=a(g);X!==null&&F(Z,X.startTime-L),P=!1}}break e}finally{v=null,b=Q,x=!1}P=void 0}}finally{P?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 F(L,P){W=C(function(){L(e.unstable_now())},P)}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||125le?(L.sortIndex=Q,n(g,L),a(p)===null&&L===a(g)&&(j?(k(W),W=-1):j=!0,F(Z,Q-le))):(L.sortIndex=N,n(p,L),S||x||(S=!0,te())),L},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(L){var P=b;return function(){var Q=b;b=P;try{return L.apply(this,arguments)}finally{b=Q}}}}(bh)),bh}var Jy;function qS(){return Jy||(Jy=1,wh.exports=IS()),wh.exports}var xh={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 Wy;function QS(){if(Wy)return Wt;Wy=1;var e=zm();function n(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),xh.exports=QS(),xh.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 tv;function GS(){if(tv)return no;tv=1;var e=qS(),n=zm(),a=Hw();function r(t){var i="https://react.dev/errors/"+t;if(1)":-1c||T[l]!==B[c]){var J=` +`+T[l].replace(" at new "," at ");return t.displayName&&J.includes("")&&(J=J.replace("",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=F(t.type,!1),t;case 11:return t=F(t.type.render,!1),t;case 1:return t=F(t.type,!0),t;default:return""}}function P(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 Q(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(Q(t)!==t)throw Error(r(188))}function X(t){var i=t.alternate;if(!i){if(i=Q(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)?xy(i):0;break;default:if(t=t===8?i.parentNode:i,i=t.tagName,t=t.namespaceURI)t=xy(t),i=Sy(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=Sy(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,ud=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,cd=Math.LN2;function Vo(t){return t>>>=0,t===0?32:31-(ul(t)/cd|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 dd(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"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 Cg(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function B2(t){var i=Cg(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 Eg(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Cg(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 fd(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?hd(t,w,Hn(i)):s!=null?hd(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 jg(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 hd(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=ml),Hg=" ",Fg=!1;function Pg(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 Vg(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 Vg(i);case"keypress":return i.which!==32?null:(Fg=!0,Hg);case"textInput":return t=i.data,t===Hg&&Fg?null:t;default:return null}}function h1(t,i){if(ns)return t==="compositionend"||!Cd&&Pg(t,i)?(t=Og(),Yo=wd=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)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=Kg(s)}}function Jg(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Jg(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Wg(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 Rd(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=Wg(i);i=t.focusedElem;var l=t.selectionRange;if(s!==i&&i&&i.ownerDocument&&Jg(i.ownerDocument.documentElement,i)){if(l!==null&&Rd(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=Zg(i,h);var w=Zg(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=document.documentMode,as=null,Nd=null,vl=null,Td=!1;function ep(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Td||as==null||as!==Go(l)||(l=as,"selectionStart"in l&&Rd(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(Nd,"onSelect"),0>=w,c-=w,Ha=1<<32-Zt(i)+c|s<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(;ReRe?(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&&yp(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=Df(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=Mf(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=vp(!0),wp=vp(!1),cs=Fe(null),ou=Fe(0);function bp(t,i){t=Za,De(ou,t),De(cs,i),Za=t|i.baseLanes}function Ld(){De(ou,Za),De(cs,cs.current)}function Ud(){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 xp(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 Hd(){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,Fd=0,ds=0,fs=null;function T1(t,i){if(Rl===null){var s=Rl=[];Fd=0,ds=$f(),fs={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Fd++,i.then(Sp,Sp),i}function Sp(){if(--Fd===0&&Rl!==null){fs!==null&&(fs.status="fulfilled");var t=Rl;Rl=null,ds=0,fs=null;for(var i=0;ih?h:8;var w=G.T,A={};G.T=A,af(t,!1,i,s);try{var T=c(),B=G.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,G.T=w}}function B1(){}function tf(t,i,s,l){if(t.tag!==5)throw Error(r(476));var c=Wp(t).queue;Jp(t,c,i,Se,s===null?B1:function(){return e0(t),s(l)})}function Wp(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 e0(t){var i=Wp(t).next.queue;kl(t,i,{},Rn())}function nf(){return Jt(Kl)}function t0(){return _t().memoizedState}function n0(){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:Hd()},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)?i0(i,s):(s=Dd(t,i,s,l),s!==null&&(ln(s,t,l),r0(s,i,l)))}function a0(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))i0(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=Dd(t,i,c,l),s!==null)return ln(s,t,l),r0(s,i,l),!0}return!1}function af(t,i,s,l){if(l={lane:2,revertLane:$f(),action:l,hasEagerState:!1,eagerState:null,next:null},vu(t)){if(i)throw Error(r(479))}else i=Dd(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 i0(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 r0(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,$p.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=Kd(t);var i=t.queue,s=a0.bind(null,He,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:Wd,useDeferredValue:function(t,i){var s=pn();return ef(s,t,i)},useTransition:function(){var t=Kd(!1);return t=Jp.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||Np(l,i,s)}c.memoizedState=s;var h={value:s,getSnapshot:i};return c.queue=h,qp(kp.bind(null,l,h,t),[t]),l.flags|=2048,gs(9,Tp.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 title"))),Xt(h,l,s),h[pe]=t,lt(h),l=h;break e;case"link":var w=Dy("link","href",c).get(l+(s.href||""));if(w){for(var A=0;A<\/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||by(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&&(Ff(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&&Zf(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;)Y0(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),Ud(),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(_d(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),Ud(),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 Z0(t,i){switch(_d(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),Ud(),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,Of=!1,Za=0,At=0,Ci=0,Ar=0,_f=0,Xn=0,bs=0,Pl=null,xa=null,Bf=!1,zf=0,Ru=1/0,Nu=null,Ei=null,Tu=!1,Cr=null,Vl=0,Lf=0,Uf=null,Il=0,Hf=null;function Rn(){if((vt&2)!==0&&Ye!==0)return Ye&-Ye;if(G.T!==null){var t=ds;return t!==0?t:$f()}return be()}function J0(){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 W0(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):If(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=If(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=If(A,w,!1),w!==2){if(Of&&!T){A.errorRecoveryDisabledLanes|=h,Ar|=h,c=4;break e}h=xa,xa=c,h!==null&&Ff(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=zf+300-hn(),10s?32:s,G.T=null,Cr===null)var h=!1;else{s=Uf,Uf=null;var w=Cr,A=Vl;if(Cr=null,Vl=0,(vt&6)!==0)throw Error(r(331));var T=vt;if(vt|=4,G0(w.current),I0(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,G.T=l,oy(t,i)}}return!1}function uy(t,i,s){i=Vn(s,i),i=lf(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)uy(t,t,s);else for(;i!==null;){if(i.tag===3){uy(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=f0(2),l=wi(i,s,2),l!==null&&(h0(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)||(Of=!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()-zf?(vt&2)===0&&xs(t,0):_f|=s,bs===Ye&&(bs=0)),Sa(t)}function cy(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),cy(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),cy(t,s)}function tS(t,i){return ll(t,i)}var Du=null,Cs=null,Qf=!1,Ou=!1,Gf=!1,Er=0;function Sa(t){t!==Cs&&t.next===null&&(Cs===null?Du=Cs=t:Cs=Cs.next=t),Ou=!0,Qf||(Qf=!0,aS(nS))}function ql(t,i){if(!Gf&&Ou){Gf=!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,hy(l,h))}else h=Ye,h=_a(l,l===ot?h:0),(h&3)===0||ar(l,h)||(s=!0,hy(l,h));l=l.next}while(s);Gf=!1}}function nS(){Ou=Qf=!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=dy(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 dy(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,h=t.pendingLanes&-62914561;0"u"?null:document;function Ny(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+'"]'),Ry.has(c)||(Ry.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),Ny("dns-prefetch",t,null)}function bS(t,i){Wa.C(t,i),Ny("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))&&sh(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))&&lh(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))&&lh(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 Ty(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 ky(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 My(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=ky(s),(c=Kn.get(c))&&sh(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),lh(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 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 _y(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=ky(s),(c=Kn.get(c))&&sh(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&&oh(t,t.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),vh.exports=GS(),vh.exports}var YS=$S(),ao={},av;function XS(){if(av)return ao;av=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,j=b.length;if(j<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?j:_;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),G=p(b,Z,re);const ne=C(b.slice(re,G));S[ce]=ne}k=Z+1}while(kS;){const j=b.charCodeAt(--x);if(j!==32&&j!==9)return x+1}return S}function g(b,x,S){const j=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(b))throw new TypeError(`argument name is invalid: ${b}`);const C=j(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 Fw=e=>{throw TypeError(e)},KS=(e,n,a)=>n.has(e)||Fw("Cannot "+a),Sh=(e,n,a)=>(KS(e,n,"read from private field"),a?a.call(e):n.get(e)),ZS=(e,n,a)=>n.has(e)?Fw("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),iv="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 rv(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:j.location,delta:k})}function b(C,k){m="PUSH";let z=go(j.location,C,k);g=y()+1;let _=rv(z,g),Z=j.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:j.location,delta:1})}function x(C,k){m="REPLACE";let z=go(j.location,C,k);g=y();let _=rv(z,g),Z=j.createHref(z);f.replaceState(_,"",Z),u&&p&&p({action:m,location:j.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 j={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(iv,v),p=C,()=>{o.removeEventListener(iv,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 j}var co,sv=class{constructor(e){if(ZS(this,co,new Map),e)for(let[n,a]of e)this.set(n,a)}get(e){if(Sh(this,co).has(e))return Sh(this,co).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){Sh(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=Pw(e);iA(f);let m=null;for(let p=0;m==null&&p{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}".`),Pw(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 Vw(u.path))o(u,f,p)}),n}function Vw(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=Vw(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,lv=e=>e==="*";function dA(e,n){let a=e.split("/"),r=a.length;return a.some(lv)&&(r+=cA),n&&(r+=lA),a.filter(o=>!lv(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{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 Ah(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 and the router will parse it for you.`}function Iw(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function zc(e){let n=Iw(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function Lc(e,n,a,r=!1){let o;typeof e=="string"?o=Ji(e):(o={...e},Ie(!o.pathname||!o.pathname.includes("?"),Ah("?","pathname","search",o)),Ie(!o.pathname||!o.pathname.includes("#"),Ah("#","pathname","hash",o)),Ie(!o.search||!o.search.includes("#"),Ah("#","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]),Ch={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},Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Qw="remix-router-transitions",Gw=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,j=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}=wv(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=>!Wh(ie.route,D,H))}else _=C.every(q=>!Wh(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:Ch,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,G=!1,ne=new Map,fe=null,Ge=!1,Xe=!1,te=new Set,F=new Map,L=0,P=-1,Q=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)&&!F.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?yv(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(G){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:Ch,revalidation:"idle",restoreScrollPosition:nr(D,H.matches||R.matches),preventScrollReset:ve,blockers:Ce},{viewTransitionOpts:be,flushSync:q===!0}),W="POP",ce=!1,G=!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=Jh(R.location,R.matches,m,D,H==null?void 0:H.fromRouteId,H==null?void 0:H.relative),{path:ie,submission:de,error:je}=ov(!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:G===!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,G=(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 sv(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=Eh(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,...vv(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=mv(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||Eh(H,Ce),tt=Ce||ve||xv(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]=cv(e.history,R,q,tt,H,me===!0,Xe,te,oe,N,le,bt,m,pe);if(P=++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,...vv(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&&F.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=>F.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}=pv(R,q,Ba,pe,xt,Qt);me&&R.errors&&(Un={...R.errors,...Un});let lt=Fo(),ir=ui(P),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=Jh(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}=ov(!0,Ce,ie);if(pe){Bn(D,H,pe,{flushSync:de});return}let Me=fo(ve,me),tt=new sv(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}}F.set(D,Me);let Dt=L,mt=(await tr("action",tt,[ie],de,je,D))[ie.route.id];if(tt.signal.aborted){F.get(D)===Me&&F.delete(D);return}if(oe.has(D)){if(Nr(mt)||Nn(mt)){ya(D,Mi(void 0));return}}else{if(Nr(mt))if(F.delete(D),P>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;Q.set(D,Gt);let za=ro(me,mt.data);R.fetchers.set(D,za);let[Un,lt]=cv(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&&F.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),Q.delete(D),F.delete(D),lt.forEach(pt=>F.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}=pv(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>P?(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:yv(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}}F.set(D,pe);let tt=L,bt=(await tr("loader",Me,[ie],de,je,D))[ie.route.id];if(F.get(D)===pe&&F.delete(D),!Me.signal.aborted){if(oe.has(D)){ya(D,Mi(void 0));return}if(Nr(bt))if(P>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=mv(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(Lm.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=xv(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?G:void 0});else{let Dt=Eh(be,ie);await Rt(me,be,{overrideNavigation:Dt,fetcherSubmission:de,preventScrollReset:je||ce,enableViewTransition:q?G: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)=>{F.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);F.has(D)&&!(H&&H.state==="loading"&&Q.has(D))&&ra(D),N.delete(D),Q.delete(D),le.delete(D),oe.delete(D),te.delete(D),R.fetchers.delete(D)}function ud(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=F.get(D);H&&(H.abort(),F.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 Q)if(ie0}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}=wv(q);return{notFoundMatches:ie,route:de,error:H}}function cd(D,H,q){if(b=D,S=H,x=q||null,!j&&R.navigation===Ch){j=!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||fv(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 dd(D,H){let q=f==null;fv(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:cd,navigate:wt,fetch:Xr,revalidate:xn,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:ol,deleteFetcher:ud,dispose:ht,getBlocker:rn,deleteBlocker:Po,patchRoutes:dd,_internalFetchControllers:F,_internalSetRoutes:ar},Z}function TA(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Jh(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=Lc(r||".",zc(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=Um(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 ov(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=Xw(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=tm(a.formData),p=a.formData;else if(a.body instanceof FormData)m=tm(a.body),p=a.body;else if(a.body instanceof URLSearchParams)m=a.body,p=gv(m);else if(a.body==null)m=new URLSearchParams,p=new FormData;else try{m=new URLSearchParams(a.body),p=gv(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&&Um(y.search)&&m.append("index",""),y.search=`?${m}`,{path:Xi(y),submission:g}}function uv(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 cv(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,j=e.createURL(n.location),C=e.createURL(o),k=a;u&&n.errors?k=uv(a,Object.keys(n.errors)[0],!0):x&&Nn(x[1])&&(k=uv(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 Wh(re,n.loaderData,n.errors);if(kA(n.loaderData,n.matches[ce],W))return!0;let G=n.matches[ce],ne=W;return dv(W,{currentUrl:j,currentParams:G.params,nextUrl:C,nextParams:ne.params,...r,actionResult:S,actionStatus:z,defaultShouldRevalidate:_?!1:f||j.pathname+j.search===C.pathname+C.search||j.search!==C.search||MA(G,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 G=n.fetchers.get(ce),ne=fo(re,W.path),fe=!1;y.has(ce)?fe=!1:m.has(ce)?(m.delete(ce),fe=!0):G&&G.state!=="idle"&&G.data===void 0?fe=f:fe=dv(ne,{currentUrl:j,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 Wh(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 dv(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function fv(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=>$w(p,g))),m=gc(f,o,[e||"_","patch",String((u==null?void 0:u.length)||"0")],r);u.push(...m)}function $w(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=>$w(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 hv(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,()=>hv(e),n=>({[n.routeId]:{type:"error",result:n.error}})):hv(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 Yw({request:u,params:f,context:m},g,p,a);return p.propagateResult?y:p.handlerResult}catch(g){if(!(g instanceof em))throw g;let y=await r(g);return p.handlerResult?Object.assign(p.handlerResult,y):y}}var em=class{constructor(e,n){this.routeId=e,this.error=n}};async function Yw(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 Yw(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 em?b:new em(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 j=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,j,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,j)=>y=j);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(j=>b(j)):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(Kw(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"?bv(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}:bv(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"),!Lm.test(u)){let f=r.slice(0,r.findIndex(m=>m.route.id===a)+1);u=Jh(new URL(n.url),f,o,u),e.headers.set("Location",u)}return e}function mv(e,n,a){if(Lm.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(Xw(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=tm(r.formData):u.body=r.formData}return new Request(o,u)}function tm(e){let n=new URLSearchParams;for(let[a,r]of e.entries())n.append(a,typeof r=="string"?r:r.name);return n}function gv(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 j=Rr(e,b);f[j.route.id]==null&&(f[j.route.id]=S)}r||(u[b]=Gw),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 pv(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 yv(e,n,a,r){let o=Object.entries(n).filter(([,u])=>u!==Gw).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 vv(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 wv(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 Xw(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 Kw(e.result)&&CA.has(e.result.status)}function Nn(e){return e.type==="error"}function Nr(e){return(e&&e.type)==="redirect"}function bv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Kw(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 Um(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&&Um(a||""))return e[e.length-1];let r=Iw(e);return r[r.length-1]}function xv(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 Eh(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(Qw);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(Qw,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=E.createContext(null);qr.displayName="DataRouter";var Co=E.createContext(null);Co.displayName="DataRouterState";var Hm=E.createContext({isTransitioning:!1});Hm.displayName="ViewTransition";var Zw=E.createContext(new Map);Zw.displayName="Fetchers";var YA=E.createContext(null);YA.displayName="Await";var ga=E.createContext(null);ga.displayName="Navigation";var Uc=E.createContext(null);Uc.displayName="Location";var aa=E.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Fm=E.createContext(null);Fm.displayName="RouteError";function XA(e,{relative:n}={}){Ie(Ks(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:r}=E.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 E.useContext(Uc)!=null}function Da(){return Ie(Ks(),"useLocation() may be used only in the context of a component."),E.useContext(Uc).location}var Jw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ww(e){E.useContext(ga).static||E.useLayoutEffect(e)}function dn(){let{isDataRoute:e}=E.useContext(aa);return e?uC():KA()}function KA(){Ie(Ks(),"useNavigate() may be used only in the context of a component.");let e=E.useContext(qr),{basename:n,navigator:a}=E.useContext(ga),{matches:r}=E.useContext(aa),{pathname:o}=Da(),u=JSON.stringify(zc(r)),f=E.useRef(!1);return Ww(()=>{f.current=!0}),E.useCallback((p,g={})=>{if(It(f.current,Jw),!f.current)return;if(typeof p=="number"){a.go(p);return}let y=Lc(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=E.createContext(null);function JA(e){let n=E.useContext(aa).outlet;return n&&E.createElement(ZA.Provider,{value:e},n)}function Hc(){let{matches:e}=E.useContext(aa),n=e[e.length-1];return n?n.params:{}}function Eo(e,{relative:n}={}){let{matches:a}=E.useContext(aa),{pathname:r}=Da(),o=JSON.stringify(zc(a));return E.useMemo(()=>Lc(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 component.");let{navigator:o,static:u}=E.useContext(ga),{matches:f}=E.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||"";tb(g,!v||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (under ) 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 to .`)}let b=Da(),x;x=b;let S=x.pathname||"/",j=S;if(y!=="/"){let z=y.replace(/^\//,"").split("/");j="/"+S.replace(/^\//,"").split("/").slice(z.length).join("/")}let C=!u&&a&&a.matches&&a.matches.length>0?a.matches:Oi(e,{pathname:j});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 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=eb(),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=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:u},"ErrorBoundary")," or"," ",E.createElement("code",{style:u},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},n),a?E.createElement("pre",{style:o},a):null,f)}var tC=E.createElement(eC,null),nC=class extends E.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?E.createElement(aa.Provider,{value:this.props.routeContext},E.createElement(Fm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function aC({routeContext:e,match:n,children:a}){let r=E.useContext(qr);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),E.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=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?(tb("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 j=n.concat(o.slice(0,y+1)),C=()=>{let k;return v?k=x:b?k=S:g.route.Component?k=E.createElement(g.route.Component,null):g.route.element?k=g.route.element:k=p,E.createElement(aC,{match:g,routeContext:{outlet:p,matches:j,isDataRoute:a!=null},children:k})};return a&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?E.createElement(nC,{location:a.location,revalidation:a.revalidation,component:x,error:v,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):C()},null)}function Pm(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=E.useContext(qr);return Ie(n,Pm(e)),n}function sC(e){let n=E.useContext(Co);return Ie(n,Pm(e)),n}function lC(e){let n=E.useContext(aa);return Ie(n,Pm(e)),n}function Vm(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 Vm("useRouteId")}function eb(){var r;let e=E.useContext(Fm),n=sC("useRouteError"),a=Vm("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[a]}function uC(){let{router:e}=rC("useNavigate"),n=Vm("useNavigate"),a=E.useRef(!1);return Ww(()=>{a.current=!0}),E.useCallback(async(o,u={})=>{It(a.current,Jw),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...u}))},[e,n])}var Sv={};function tb(e,n,a){!n&&!Sv[e]&&(Sv[e]=!0,It(!1,a))}var Av={};function Cv(e,n){!e&&!Av[n]&&(Av[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:E.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:E.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:E.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]=E.useState(e.state),[o,u]=E.useState(),[f,m]=E.useState({isTransitioning:!1}),[p,g]=E.useState(),[y,v]=E.useState(),[b,x]=E.useState(),S=E.useRef(new Map),j=E.useCallback((_,{deletedFetchers:Z,flushSync:R,viewTransitionOpts:W})=>{_.fetchers.forEach((re,G)=>{re.data!==void 0&&S.current.set(G,re.data)}),Z.forEach(re=>S.current.delete(re)),Cv(R===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `` 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(Cv(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(_)):E.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]);E.useLayoutEffect(()=>e.subscribe(j),[e,j]),E.useEffect(()=>{f.isTransitioning&&!f.flushSync&&g(new dC)},[f]),E.useEffect(()=>{if(p&&o&&e.window){let _=o,Z=p.promise,R=e.window.document.startViewTransition(async()=>{E.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]),E.useEffect(()=>{p&&o&&a.location.key===o.location.key&&p.resolve()},[p,y,a.location,o]),E.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=E.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=E.useMemo(()=>({router:e,navigator:C,static:!1,basename:k}),[e,C,k]);return E.createElement(E.Fragment,null,E.createElement(qr.Provider,{value:z},E.createElement(Co.Provider,{value:a},E.createElement(Zw.Provider,{value:S.current},E.createElement(Hm.Provider,{value:f},E.createElement(gC,{basename:k,location:a.location,navigationType:a.historyAction,navigator:C},E.createElement(hC,{routes:e.routes,future:e.future,state:a})))))),null)}var hC=E.memo(mC);function mC({routes:e,future:n,state:a}){return WA(e,void 0,a,n)}function jh({to:e,replace:n,state:a,relative:r}){Ie(Ks()," may be used only in the context of a component.");let{static:o}=E.useContext(ga);It(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:u}=E.useContext(aa),{pathname:f}=Da(),m=dn(),p=Lc(e,zc(u),f,r==="path"),g=JSON.stringify(p);return E.useEffect(()=>{m(JSON.parse(g),{replace:n,state:a,relative:r})},[m,g,r,n,a]),null}function nb(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 inside another . You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),m=E.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=E.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,` is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the won't render anything.`),x==null?null:E.createElement(ga.Provider,{value:m},E.createElement(Uc.Provider,{children:n,value:x}))}var sc="get",lc="application/x-www-form-urlencoded";function Fc(e){return e!=null&&typeof e.tagName=="string"}function pC(e){return Fc(e)&&e.tagName.toLowerCase()==="button"}function yC(e){return Fc(e)&&e.tagName.toLowerCase()==="form"}function vC(e){return Fc(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 Rh(e){return e!=null&&!SC.has(e)?(It(!1,`"${e}" is not a valid \`encType\` for \`\`/\`\` 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=Rh(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 +
      +
      + +

      +
      + + +
      + + +
      + +
      + + +
      +
      +
      + + + +
      +
      +
      +
      +
      + +`.replace(/(^|\n)\s*/g,""),S3=()=>{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()},A3=()=>{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}},C3=e=>typeof e=="string"?document.querySelector(e):e,E3=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")},j3=e=>{window.getComputedStyle(e).direction==="rtl"&&We(fn(),Y.rtl)},R3=e=>{const n=S3();if(b3()){Qr("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=Y.container,n&&We(a,Y["no-transition"]),_n(a,x3),a.dataset.swal2Theme=e.theme;const r=C3(e.target);r.appendChild(a),e.topLayer&&(a.setAttribute("popover",""),a.showPopover()),E3(e),j3(r),A3()},yg=(e,n)=>{e instanceof HTMLElement?n.appendChild(e):typeof e=="object"?N3(e,n):e&&_n(n,e)},N3=(e,n)=>{e.jquery?T3(n,e):_n(n,e.toString())},T3=(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))},k3=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton?an(a):qt(a),Dn(a,n,"actions"),M3(a,r,n),_n(r,n.loaderHtml||""),Dn(r,n,"loader"))};function M3(e,n,a){const r=Ma(),o=Gr(),u=nl();!r||!o||!u||(Ih(r,"confirm",a),Ih(o,"deny",a),Ih(u,"cancel",a),D3(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 D3(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),Vh(e),Vh(n),Vh(a)}function Vh(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 Ih(e,n,a){const r=lg(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 O3=(e,n)=>{const a=fg();a&&(_n(a,n.closeButtonHtml||""),Dn(a,n,"closeButton"),Do(a,n.showCloseButton),a.setAttribute("aria-label",n.closeButtonAriaLabel||""))},_3=(e,n)=>{const a=fn();a&&(B3(a,n.backdrop),z3(a,n.position),L3(a,n.grow),Dn(a,n,"container"))};function B3(e,n){typeof n=="string"?e.style.background=n:n||We([document.documentElement,document.body],Y["no-backdrop"])}function z3(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 L3(e,n){n&&We(e,Y[`grow-${n}`])}var ft={innerParams:new WeakMap,domCache:new WeakMap};const U3=["input","file","range","select","radio","checkbox","textarea"],H3=(e,n)=>{const a=Je();if(!a)return;const r=ft.innerParams.get(e),o=!r||n.input!==r.input;U3.forEach(u=>{const f=Gi(a,Y[u]);f&&(V3(u,n.inputAttributes),f.className=Y[u],o&&an(f))}),n.input&&(o&&F3(n),I3(n))},F3=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)})},P3=e=>{for(let n=0;n{const a=Je();if(!a)return;const r=id(a,e);if(r){P3(r);for(const o in n)r.setAttribute(o,n[o])}},I3=e=>{if(!e.input)return;const n=Ix(e.input);n&&Dn(n,e,"input")},vg=(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)},Rc=(e,n)=>{["string","number"].includes(typeof n)?e.value=`${n}`:ug(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)=>(Rc(e,n.inputValue),Oo(e,e,n),vg(e,n),e.type=n.input,e);Tt.file=(e,n)=>(Oo(e,e,n),vg(e,n),e);Tt.range=(e,n)=>{const a=e.querySelector("input"),r=e.querySelector("output");return Rc(a,n.inputValue),a.type=n.input,Rc(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=id(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)=>{Rc(e,n.inputValue),vg(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 q3=(e,n)=>{const a=cg();a&&(gg(a),Dn(a,n,"htmlContainer"),n.html?(yg(n.html,a),qt(a,"block")):n.text?(a.textContent=n.text,qt(a,"block")):an(a),H3(e,n))},Q3=(e,n)=>{const a=Hx();a&&(gg(a),Do(a,n.footer,"block"),n.footer&&yg(n.footer,a),Dn(a,n,"footer"))},G3=(e,n)=>{const a=ft.innerParams.get(e),r=tl();if(!r)return;if(a&&n.icon===a.icon){uw(r,n),ow(r,n);return}if(!n.icon&&!n.iconHtml){an(r);return}if(n.icon&&Object.keys(jc).indexOf(n.icon)===-1){Qr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${n.icon}"`),an(r);return}qt(r),uw(r,n),ow(r,n),We(r,n.showClass&&n.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",qx)},ow=(e,n)=>{for(const[a,r]of Object.entries(jc))n.icon!==a&&na(e,r);We(e,n.icon&&jc[n.icon]),X3(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 + +
      +
      +`,Y3=` + + + + +`,uw=(e,n)=>{if(!n.icon&&!n.iconHtml)return;let a=e.innerHTML,r="";n.iconHtml?r=cw(n.iconHtml):n.icon==="success"?(r=$3,a=a.replace(/ style=".*?"/g,"")):n.icon==="error"?r=Y3:n.icon&&(r=cw({question:"?",warning:"!",info:"i"}[n.icon])),a.trim()!==r.trim()&&_n(e,r)},X3=(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"])sw(e,a,"background-color",n.iconColor);sw(e,".swal2-success-ring","border-color",n.iconColor)}},cw=e=>`
      ${e}
      `,K3=(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 wg=!1,Qx=0,Gx=0,$x=0,Yx=0;const Z3=e=>{e.addEventListener("mousedown",Nc),document.body.addEventListener("mousemove",Tc),e.addEventListener("mouseup",kc),e.addEventListener("touchstart",Nc),document.body.addEventListener("touchmove",Tc),e.addEventListener("touchend",kc)},J3=e=>{e.removeEventListener("mousedown",Nc),document.body.removeEventListener("mousemove",Tc),e.removeEventListener("mouseup",kc),e.removeEventListener("touchstart",Nc),document.body.removeEventListener("touchmove",Tc),e.removeEventListener("touchend",kc)},Nc=e=>{const n=Je();if(e.target===n||tl().contains(e.target)){wg=!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")}},Tc=e=>{const n=Je();if(wg){let{clientX:a,clientY:r}=Xx(e);n.style.insetInlineStart=`${$x+(a-Qx)}px`,n.style.insetBlockStart=`${Yx+(r-Gx)}px`}},kc=()=>{const e=Je();wg=!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}},W3=(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(td()),eN(r,n),n.draggable&&!n.toast?(We(r,Y.draggable),Z3(r)):(na(r,Y.draggable),J3(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=dg();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&&(gg(a),Do(a,n.title||n.titleText,"block"),n.title&&yg(n.title,a),n.titleText&&(a.innerText=n.titleText),Dn(a,n,"title"))},Kx=(e,n)=>{W3(e,n),_3(e,n),tN(e,n),G3(e,n),K3(e,n),iN(e,n),O3(e,n),q3(e,n),k3(e,n),Q3(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)},Tm=(e,n)=>{var a;const r=hg();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(!ed(n.allowEnterKey))return;const a=id(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=hg();let r=-1;for(let o=0;o{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{ed(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=cg();return!a||!r||wN(e)||bN(e)?!1:n===a||!lw(a)&&n instanceof HTMLElement&&n.tagName!=="INPUT"&&n.tagName!=="TEXTAREA"&&!(lw(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){ad()?dw(e,r):(u3(a).then(()=>dw(e,r)),Jx(Ee)),t2?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),mg()&&(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)},dw=(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();ad()?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)&&(og(n.inputValue)||ug(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,Mc(o),n):n.input==="radio"&&HN(a,Mc(o),n)};og(n.inputOptions)||ug(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 Mc=e=>{const n=[];return e instanceof Map?e.forEach((a,r)=>{let o=a;typeof o=="object"&&(o=Mc(o)),n.push([r,o])}):Object.keys(e).forEach(a=>{let r=e[a];typeof r=="object"&&(r=Mc(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"):xg(e,!0)},PN=e=>{const n=ft.innerParams.get(e);e.disableButtons(),n.returnInputValueOnDeny?r2(e,"deny"):bg(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${lg(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"?bg(e,o):xg(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"?bg(e,n):xg(e,n)})},bg=(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})},fw=(e,n)=>{e.close({isConfirmed:!0,value:n})},s2=(e,n)=>{e.rejectPromise(n)},xg=(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(td())||o===!1?(e.hideLoading(),_o(e)):fw(e,typeof o>"u"?n:o)}).catch(o=>s2(e||void 0,o))):fw(e,n)};function Dc(){const e=ft.innerParams.get(this);if(!e)return;const n=ft.domCache.get(this);an(n.loader),ad()?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"):v3()&&an(e.actions)};function l2(){const e=ft.innerParams.get(this),n=ft.domCache.get(this);return n?id(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;oObject.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:Dc,enableButtons:c2,enableInput:f2,getInput:l2,handleAwaitingPromise:_o,hideLoading:Dc,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 Oc=!1;const a5=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(n){e.container.onmouseup=()=>{},n.target===e.container&&(Oc=!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))&&(Oc=!0)}}},r5=(e,n,a)=>{n.container.onclick=r=>{if(Oc){Oc=!1;return}r.target===n.container&&ed(e.allowOutsideClick)&&a(il.backdrop)}},s5=e=>typeof e=="object"&&e.jquery,hw=e=>e instanceof Element||s5(e),l5=e=>{const n={};return typeof e[0]=="object"&&!hw(e[0])?Object.assign(n,e[0]):["title","html","icon"].forEach((a,r)=>{const o=e[r];typeof o=="string"||hw(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;aEe.timeout&&Ee.timeout.getTimerLeft(),A2=()=>{if(Ee.timeout)return w3(),Ee.timeout.stop()},C2=()=>{if(Ee.timeout){const e=Ee.timeout.start();return pg(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 pg(n,!0),n}},h5=()=>!!(Ee.timeout&&Ee.timeout.isRunning());let mw=!1;const km={};function m5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";km[e]=this,mw||(document.body.addEventListener("click",g5),mw=!0)}const g5=e=>{for(let n=e.target;n&&n!==document;n=n.parentNode)for(const a in km){const r=n.getAttribute(a);if(r){km[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;m1?a-1:0),o=1;o{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:fg,getConfirmButton:Ma,getContainer:fn,getDenyButton:Gr,getFocusableElements:hg,getFooter:Hx,getHtmlContainer:cg,getIcon:tl,getIconContent:h3,getImage:Ux,getInputLabel:m3,getLoader:al,getPopup:Je,getProgressSteps:dg,getTimerLeft:c5,getTimerProgressBar:nd,getTitle:Lx,getValidationMessage:td,increaseTimer:f5,isDeprecatedParameter:v2,isLoading:p3,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${lg(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),mg()&&(O5(n,e.scrollbarPadding,o),gN()),!ad()&&!Ee.previousActiveElement&&(Ee.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(a)),Ee.eventEmitter.emit("didOpen",a),na(n,Y["no-transition"])},_c=e=>{const n=Je();if(e.target!==n)return;const a=fn();n.removeEventListener("animationend",_c),n.removeEventListener("transitionend",_c),a.style.overflowY="auto"},D5=(e,n)=>{Vx(n)?(e.style.overflowY="hidden",n.addEventListener("animationend",_c),n.addEventListener("transitionend",_c)):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 gw={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=gw.email),e.input==="url"&&(e.inputValidator=gw.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("
      ")),R3(e)}let Ea;var ac=new WeakMap;class Mt{constructor(){if(r3(this,ac,void 0),typeof window>"u")return;Ea=this;for(var n=arguments.length,a=new Array(n),r=0;r1&&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}),mg()&&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 iw(ac,this).then(n)}finally(n){return iw(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:fg(),validationMessage:td(),progressSteps:dg()};return ft.domCache.set(e,n),n},P5=(e,n,a)=>{const r=nd();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&&pg(n.timer)})))},V5=(e,n)=>{if(!n.toast){if(!ed(n.allowEnterKey)){zx("allowEnterKey"),Q5();return}I5(e)||q5(e,n)||Tm(-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=Dc;Mt.prototype.disableLoading=Dc;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 Mm=function(e,n){return Mm=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])},Mm(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");Mm(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;rn},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||j},nativeApp:function(){return C()||S},android:function(){return C()||y},ipad:function(){return C()||x}};return Qh=k,Qh}var Gh,yw;function X5(){if(yw)return Gh;yw=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 Gh=n,Gh}var $h,vw;function K5(){if(vw)return $h;vw=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 $h=a,$h}var Yh,ww;function Z5(){if(ww)return Yh;ww=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"},Yh=u,Yh}var Xh,bw;function J5(){return bw||(bw=1,Xh=Z5()),Xh}var W5=J5();const eT=Bc(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:xw(e.x,f,a.width,r),y:xw(e.y,m,a.height,r)}}function xw(e,n,a,r){var o=n*r/2-a/2;return rd(e,-o,o)}function Sw(e,n){return Math.sqrt(Math.pow(e.y-n.y,2)+Math.pow(e.x-n.x,2))}function Aw(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)},j=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:j}}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=rd(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=rd(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 Cw(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 rd(e,n,a){return Math.min(Math.max(e,n),a)}function ic(){for(var e=[],n=0;n0}).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=E.createRef(),a.imageRef=E.createRef(),a.videoRef=E.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.offsetWidthS?{width:a.containerRect.height*S,height:a.containerRect.height}:{width:a.containerRect.width,height:a.containerRect.width/S};break;case"horizontal-cover":j={width:a.containerRect.width,height:a.containerRect.width/S};break;case"vertical-cover":j={width:a.containerRect.height*S,height:a.containerRect.height};break}else j={width:g.offsetWidth,height:g.offsetHeight};a.mediaSize=Vt(Vt({},j),{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=rd(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 ya.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]=E.useState({x:0,y:0}),[o,u]=E.useState(1),f=E.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="https://myskin-v2.humicprototyping.com/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=",sd=()=>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"})})})}),Sg=({handleDoctorSelect:e})=>{var x;const[n,a]=E.useState(""),[r,o]=E.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(Ic,{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(sd,{}):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(cb,{className:"m-1"})}),Array.from({length:v},(S,j)=>j+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(db,{className:"m-1"})})]})]})]})};Sg.propTypes={handleDoctorSelect:Be.func};const pT=()=>{var Xe;const[e,n]=E.useState(null),[a,r]=E.useState(null),[o,u]=E.useState(!1),[f,m]=E.useState(!0),[p,g]=E.useState(null),[y,v]=E.useState(!1),[b,x]=E.useState(!1),S=E.useRef(!1),[j,C]=E.useState(""),[k,z]=E.useState(null),{user:_}=Wi(),Z=(Xe=_==null?void 0:_.data)==null?void 0:Xe.id,R=Ec({mutationFn:te=>ea.createDetection(te),onSuccess:te=>{var F;console.log("Detection submitted successfully:",te),g((F=te==null?void 0:te.data)==null?void 0:F.data),v(!1)},onError:te=>{var F,L,P;console.error("Detailed error response:",{status:(F=te.response)==null?void 0:F.status,data:(L=te.response)==null?void 0:L.data,headers:(P=te.response)==null?void 0:P.headers}),v(!1)}}),W=Ec({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 F=await fetch(te);if(!F.ok)throw new Error("Failed to fetch cropped image");const L=await F.blob();if(!L||L.size===0)throw new Error("Empty image blob");const P=new File([L],"diagnosis.jpg",{type:L.type||"image/jpeg"}),Q=new FormData;if(Q.append("image",P,P.name),_&&Z){Q.append("patient_id",Z.toString());for(let[le,N]of Q.entries())console.log(le,N instanceof File?`${N.name} (${N.type})`:N);R.mutate(Q)}else{for(let[le,N]of Q.entries())console.log(le,N instanceof File?`${N.name} (${N.type})`:N);W.mutate(Q)}}catch(F){console.error("Submission error details:",{error:F.message,patientId:Z,hasCroppedImage:!!te,userAuthStatus:!!_}),v(!1)}finally{x(!1)}}},re=async te=>{if(!j||!te||!(p!=null&&p.id)){Tn.fire("Error","Keluhan dan dokter wajib diisi","error");return}const F={doctorId:te.id,complaint:j};try{const L=await ea.updateDetection(p.id,F,_.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")}},G=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 F=te.target.files[0];F&&(n(URL.createObjectURL(F)),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:j,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(Sg,{handleDoctorSelect:G}),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="https://myskin-v2.humicprototyping.com/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(a3,{}),d.jsx("div",{id:"deteksi",children:d.jsx(pT,{})})]})},ld="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="https://myskin-v2.humicprototyping.com/assets/Ellipse%204-CrOw4YA8.png",bT=()=>{var y;const{id:e}=Hc(),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(sd,{})});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(Vc,{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:ld,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,Ew;function ST(){return Ew||(Ew=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",j="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 F=["th","st","nd","rd"],L=te%100;return"["+te+(F[(L-20)%10]||F[L]||F[0])+"]"}},_=function(te,F,L){var P=String(te);return!P||P.length>=F?te:""+Array(F+1-P.length).join(L)+te},Z={s:_,z:function(te){var F=-te.utcOffset(),L=Math.abs(F),P=Math.floor(L/60),Q=L%60;return(F<=0?"+":"-")+_(P,2,"0")+":"+_(Q,2,"0")},m:function te(F,L){if(F.date()1)return te(N[0])}else{var X=F.name;W[X]=F,Q=X}return!P&&Q&&(R=Q),Q||!P&&R},ne=function(te,F){if(re(te))return te.clone();var L=typeof F=="object"?F:{};return L.date=te,L.args=arguments,new Ge(L)},fe=Z;fe.l=G,fe.i=re,fe.w=function(te,F){return ne(te,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var Ge=function(){function te(L){this.$L=G(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[ce]=!0}var F=te.prototype;return F.parse=function(L){this.$d=function(P){var Q=P.date,le=P.utc;if(Q===null)return new Date(NaN);if(fe.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var N=Q.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(Q)}(L),this.init()},F.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()},F.$utils=function(){return fe},F.isValid=function(){return this.$d.toString()!==j},F.isSame=function(L,P){var Q=ne(L);return this.startOf(P)<=Q&&Q<=this.endOf(P)},F.isAfter=function(L,P){return ne(L){var v,b,x,S;const{id:e}=Hc(),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(sd,{})});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=j=>jw().diff(jw(j),"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(Vc,{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:ld,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:ld,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 Rw="https://myskin-v2.humicprototyping.com/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,Nw=/\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>>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(Nw," ").trim(),b.unshift(b[0][v]=b[0][v]||{})):b[0][y[1]]=y[2].replace(Nw," ").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 od(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,Dm,Om;od.bind({g:1});let li=od.bind({k:1});function MT(e,n,a,r){_i.p=n,M2=e,Dm=a,Om=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:Dm&&Dm()},m),a.o=/ *go\d+/.test(p),m.className=od.apply(a,r)+(p?" "+p:"");let g=e;return e[0]&&(g=m.as||e,delete m.as),Om&&g[0]&&Om(m),M2(g,m)}return o}}var DT=e=>typeof e=="function",_m=(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=[],Kh={toasts:[],pausedAt:void 0},Ag=e=>{Kh=D2(Kh,e),zT.forEach(n=>{n(Kh)})},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 Ag({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=>{Ag({type:3,toastId:e})};Kt.remove=e=>Ag({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?_m(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?_m(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"?E.createElement(KT,null,n):n:a==="blank"?null:E.createElement(YT,null,E.createElement(IT,{...r}),a!=="loading"&&E.createElement($T,null,a==="error"?E.createElement(PT,{...r}):E.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)`}};E.memo(({toast:e,position:n,style:a,children:r})=>{let o=e.height?i6(e.position||n||"top-center",e.visible):{opacity:0},u=E.createElement(ZT,{toast:e}),f=E.createElement(a6,{...e.ariaProps},_m(e.message,e));return E.createElement(n6,{className:e.className,style:{...o,...a,...e.style}},typeof r=="function"?r({icon:u,message:f}):E.createElement(E.Fragment,null,u,f))});MT(E.createElement);od` + 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}=Hc(),n=dn(),[a,r]=E.useState(null),[o,u]=E.useState(!0),[f,m]=E.useState(""),[p,g]=E.useState(""),[y,v]=E.useState(!1),[b,x]=E.useState(!1);E.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")},j=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?

      Hasil verifikasi tidak dapat diubah lagi
      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?Rw: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(Vc,{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||Rw,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:j,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:Zc,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]=E.useState(!1),[u,f]=E.useState(1),[m,p]=E.useState(""),[g,y]=E.useState(5),[v,b]=E.useState(null),[x,S]=E.useState(!1),j=dn(),{data:C,isLoading:k,refetch:z}=el({queryKey:["submissions",a],queryFn:()=>ea.getSubmissions({userId:a}),enabled:!!a}),_=E.useMemo(()=>{var F;return((F=C==null?void 0:C.data)==null?void 0:F.data)||[]},[C]),Z=(_==null?void 0:_.filter(F=>{var L;return(L=F.verifiedBy)==null?void 0:L.toLowerCase().includes(m.toLowerCase())}))||[],R=Z.length,W=Math.ceil(R/g),ce=u*g,re=ce-g,G=Z.slice(re,ce),ne=F=>{b(F),o(!0)},fe=Ec({mutationFn:F=>ea.deleteSubmission(F,n),onSuccess:()=>{st.success("Data berhasil dihapus"),z(),o(!1),b(null)},onError:()=>{st.error("Gagal menghapus data")}}),Ge=()=>{uF+1)},Xe=()=>{u>1&&f(F=>F-1)};return d.jsxs(d.Fragment,{children:[r&&d.jsx(tg,{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:F=>{y(Number(F.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:F=>{p(F.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,{})})}):G.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})]})}):G.map((F,L)=>{const Q=parseFloat(F.diagnosisAi)>=50?"text-red-600":"text-green-600",le=F.status==="rejected"?"text-red-600":F.status==="pending"?"text-yellow-600":"text-green-600";return d.jsxs("tr",{className:"*:align-middle *:py-3 *:px-6",children:[d.jsx("td",{children:F.submittedAt}),d.jsx("td",{className:`font-semibold ${Q}`,children:F.diagnosisAi}),d.jsx("td",{children:d.jsx("div",{className:"w-20 h-16 rounded-lg flex items-center justify-start overflow-hidden",children:d.jsx("img",{className:"max-w-full max-h-full object-cover",src:F.imageUrl,alt:"Deteksi"})})}),d.jsx("td",{className:"px-6 text-ellipsis",children:F.complaint}),d.jsx("td",{className:`px-6 font-semibold capitalize ${le}`,children:F.status}),d.jsx("td",{children:F.verifiedAt}),d.jsx("td",{children:F.verifiedBy}),d.jsx("td",{children:F.diagnosis}),d.jsx("td",{children:F.doctorNote}),d.jsx("td",{children:d.jsxs("div",{className:"flex gap-x-3",children:[d.jsx("button",{type:"button",onClick:()=>j(`/pengajuan/info/${F.id}`),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Zc,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(F.id)})})]})})]},L)})})]})}),d.jsx("div",{className:"lg:hidden mt-4 space-y-4",children:G.map((F,L)=>{const P={date:F.submittedAt,persentase:F.diagnosisAi,keluhan:F.complaint,status:F.status,tglVerif:F.verifiedAt,verifiedBy:F.verifiedBy,diagnosis:F.diagnosis,doctorNote:F.doctorNote};return d.jsx(O2,{item:P,handleDelete:()=>ne(F.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"})]})]})]})]})},Bm=({children:e})=>{const n=localStorage.getItem("token"),{data:a}=JSON.parse(localStorage.getItem("user")),r=Da();return!n||!a?d.jsx(jh,{to:"/",replace:!0}):a.role==="patient"&&!r.pathname.startsWith("/deteksi")&&!r.pathname.startsWith("/pengajuan")?d.jsx(jh,{to:"/",replace:!0}):a.role==="doctor"&&!r.pathname.startsWith("/dokter")?d.jsx(jh,{to:"/dokter",replace:!0}):e};Bm.propTypes={children:Be.node};const _2=({data:e})=>{const n=dn(),[a,r]=E.useState(""),[o,u]=E.useState([]),[f,m]=E.useState(10),p=E.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(Ic,{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:[Sc(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:Sc(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]=E.useState([]),[a,r]=E.useState(!0),[o,u]=E.useState(null);return E.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 px-6",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="https://myskin-v2.humicprototyping.com/assets/errorPage-c4bJcYnY.jpeg",Zh=()=>{const e=eb(),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}=Hc(),{user:n}=Wi(),a=dn(),[r,o]=E.useState(""),[u,f]=E.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(sd,{})});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))},j=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(Vc,{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:j,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:ld,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(Sg,{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(Zh,{}),children:[{element:d.jsx(dc,{type:"default"}),errorElement:d.jsx(Zh,{}),children:[{path:"/",element:d.jsx(wT,{})},{path:"faq",element:d.jsx(ZR,{})}]},{element:d.jsx(Bm,{children:d.jsx(dc,{type:"default"})}),errorElement:d.jsx(Zh,{}),children:[{path:"deteksi",element:d.jsx(KR,{})},{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(Bm,{children:d.jsx(dc,{type:"doctor"})}),children:[{path:"",element:d.jsx(nR,{})},{path:"daftar-pasien",element:d.jsx(W4,{})},{path:"daftar-pengajuan",element:d.jsx(tR,{})},{path:"riwayat-verifikasi",element:d.jsx(u6,{})},{path:"riwayat-verifikasi/informasi-penyakit/:id",element:d.jsx(s6,{})}]}]}]),h6=new bR;YS.createRoot(document.getElementById("root")).render(d.jsx(Yi.StrictMode,{children:d.jsx(ER,{client:h6,children:d.jsx(Lb,{children:d.jsx(ZC,{router:f6})})})})); diff --git a/assets/index-DPuNwwI8.css b/assets/index-DPuNwwI8.css new file mode 100644 index 0000000..c46c81a --- /dev/null +++ b/assets/index-DPuNwwI8.css @@ -0,0 +1 @@ +/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-orange-400:oklch(.75 .183 55.934);--color-orange-600:oklch(.646 .222 41.116);--color-yellow-600:oklch(.681 .162 75.834);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-sky-300:oklch(.828 .111 230.318);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-xl:36rem;--container-6xl:72rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.top-17{top:calc(var(--spacing)*17)}.top-28{top:calc(var(--spacing)*28)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-3{left:calc(var(--spacing)*3)}.left-8{left:calc(var(--spacing)*8)}.z-10{z-index:10}.z-50{z-index:50}.z-\[20\]{z-index:20}.col-span-4{grid-column:span 4/span 4}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-1{margin:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing)*2)}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.my-8{margin-block:calc(var(--spacing)*8)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-10{margin-top:calc(var(--spacing)*10)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-3{margin-right:calc(var(--spacing)*3)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.mb-\[60px\]{margin-bottom:60px}.-ml-1{margin-left:calc(var(--spacing)*-1)}.ml-2{margin-left:calc(var(--spacing)*2)}.\!table{display:table!important}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-24{height:calc(var(--spacing)*24)}.h-28{height:calc(var(--spacing)*28)}.h-32{height:calc(var(--spacing)*32)}.h-40{height:calc(var(--spacing)*40)}.h-48{height:calc(var(--spacing)*48)}.h-60{height:calc(var(--spacing)*60)}.h-64{height:calc(var(--spacing)*64)}.h-80{height:calc(var(--spacing)*80)}.h-96{height:calc(var(--spacing)*96)}.h-\[300px\]{height:300px}.h-full{height:100%}.h-screen{height:100vh}.max-h-0{max-height:calc(var(--spacing)*0)}.max-h-58{max-height:calc(var(--spacing)*58)}.max-h-\[90\%\]{max-height:90%}.max-h-\[400px\]{max-height:400px}.max-h-full{max-height:100%}.min-h-96{min-height:calc(var(--spacing)*96)}.min-h-\[120px\]{min-height:120px}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing)*3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-28{width:calc(var(--spacing)*28)}.w-32{width:calc(var(--spacing)*32)}.w-36{width:calc(var(--spacing)*36)}.w-40{width:calc(var(--spacing)*40)}.w-48{width:calc(var(--spacing)*48)}.w-72{width:calc(var(--spacing)*72)}.w-96{width:calc(var(--spacing)*96)}.w-\[30rem\]{width:30rem}.w-\[1200px\]{width:1200px}.w-full{width:100%}.max-w-\[60\%\]{max-width:60%}.max-w-\[250px\]{max-width:250px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-\[600px\]{min-width:600px}.flex-1{flex:1}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.animate-bounce{animation:var(--animate-bounce)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-x-12{column-gap:calc(var(--spacing)*12)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-5{row-gap:calc(var(--spacing)*5)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.scroll-auto{scroll-behavior:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[16px\]{border-radius:16px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-b,.border-b-\[1px\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[\#12476B\]{border-color:#12476b}.border-\[\#B8B8B8\]{border-color:#b8b8b8}.border-\[\#E3E3E3\]{border-color:#e3e3e3}.border-\[\#f7f7f7\]{border-color:#f7f7f7}.border-black{border-color:var(--color-black)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-800{border-color:var(--color-gray-800)}.border-transparent{border-color:#0000}.border-t-blue-400{border-top-color:var(--color-blue-400)}.border-t-red-400{border-top-color:var(--color-red-400)}.bg-\[\#1E3A5F\]{background-color:#1e3a5f}.bg-\[\#12476B\]{background-color:#12476b}.bg-\[\#F6F4F4\]{background-color:#f6f4f4}.bg-black\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}.bg-black\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-orange-400{background-color:var(--color-orange-400)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200{background-color:var(--color-red-200)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-700{background-color:var(--color-red-700)}.bg-sky-300{background-color:var(--color-sky-300)}.bg-sky-700{background-color:var(--color-sky-700)}.bg-sky-800{background-color:var(--color-sky-800)}.bg-sky-900{background-color:var(--color-sky-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/60{background-color:color-mix(in oklab,var(--color-white)60%,transparent)}.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-10{padding-inline:calc(var(--spacing)*10)}.px-12{padding-inline:calc(var(--spacing)*12)}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.py-12{padding-block:calc(var(--spacing)*12)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-32{padding-top:calc(var(--spacing)*32)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-10{padding-right:calc(var(--spacing)*10)}.pr-\[18px\]{padding-right:18px}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[20px\]{font-size:20px}.text-\[24px\]{font-size:24px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[30px\]{font-size:30px}.leading-10{--tw-leading:calc(var(--spacing)*10);line-height:calc(var(--spacing)*10)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extralight{--tw-font-weight:var(--font-weight-extralight);font-weight:var(--font-weight-extralight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\[\#2699E8\]{color:#2699e8}.text-\[\#12476B\]{color:#12476b}.text-\[\#646464\]{color:#646464}.text-\[\#C11616\]{color:#c11616}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-900{color:var(--color-blue-900)}.text-blue-950{color:var(--color-blue-950)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-sky-700{color:var(--color-sky-700)}.text-sky-800{color:var(--color-sky-800)}.text-sky-900{color:var(--color-sky-900)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.capitalize{text-transform:capitalize}.italic{font-style:italic}.accent-\[\#1E3A5F\]{accent-color:#1e3a5f}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[animation-delay\:\.3s\]{animation-delay:.3s}.\[animation-delay\:\.7s\]{animation-delay:.7s}:is(.\*\:px-6>*){padding-inline:calc(var(--spacing)*6)}:is(.\*\:py-3>*){padding-block:calc(var(--spacing)*3)}:is(.\*\:text-start>*){text-align:start}:is(.\*\:align-middle>*){vertical-align:middle}@media (hover:hover){.hover\:bg-\[\#0f3c5b\]:hover{background-color:#0f3c5b}.hover\:bg-\[\#1A2F4A\]:hover{background-color:#1a2f4a}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-orange-600:hover{background-color:var(--color-orange-600)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-sky-600:hover{background-color:var(--color-sky-600)}.hover\:bg-sky-900:hover{background-color:var(--color-sky-900)}.hover\:text-\[\#12476B\]:hover{color:#12476b}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-red-500:hover{color:var(--color-red-500)}}.focus\:border-transparent:focus{border-color:#0000}.focus\:font-bold:focus{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-\[\#12476B\]:focus{--tw-ring-color:#12476b}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-orange-400:focus{--tw-ring-color:var(--color-orange-400)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=48rem){.md\:top-48{top:calc(var(--spacing)*48)}.md\:left-32{left:calc(var(--spacing)*32)}.md\:mt-6{margin-top:calc(var(--spacing)*6)}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:h-\[32rem\]{height:32rem}.md\:max-h-40{max-height:calc(var(--spacing)*40)}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.3333%}.md\:w-64{width:calc(var(--spacing)*64)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-nowrap{flex-wrap:nowrap}.md\:justify-between{justify-content:space-between}:where(.md\:space-x-8>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*8)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-lg{border-radius:var(--radius-lg)}.md\:border{border-style:var(--tw-border-style);border-width:1px}.md\:border-gray-400{border-color:var(--color-gray-400)}.md\:bg-white{background-color:var(--color-white)}.md\:px-6{padding-inline:calc(var(--spacing)*6)}.md\:px-20{padding-inline:calc(var(--spacing)*20)}.md\:px-32{padding-inline:calc(var(--spacing)*32)}.md\:py-3{padding-block:calc(var(--spacing)*3)}.md\:py-8{padding-block:calc(var(--spacing)*8)}.md\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.md\:font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}}@media (width>=64rem){.lg\:relative{position:relative}.lg\:top-0{top:calc(var(--spacing)*0)}.lg\:right-0{right:calc(var(--spacing)*0)}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:mx-0{margin-inline:calc(var(--spacing)*0)}.lg\:mt-0{margin-top:calc(var(--spacing)*0)}.lg\:mb-0{margin-bottom:calc(var(--spacing)*0)}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:table{display:table}.lg\:w-1\/2{width:50%}.lg\:w-6xl{width:var(--container-6xl)}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:rounded-xl{border-radius:var(--radius-xl)}.lg\:p-10{padding:calc(var(--spacing)*10)}.lg\:px-0{padding-inline:calc(var(--spacing)*0)}.lg\:px-3{padding-inline:calc(var(--spacing)*3)}.lg\:px-32{padding-inline:calc(var(--spacing)*32)}.lg\:py-32{padding-block:calc(var(--spacing)*32)}.lg\:pt-5{padding-top:calc(var(--spacing)*5)}}}@font-face{font-family:Urbanist;src:url(https://myskin-v2.humicprototyping.com/assets/Urbanist-Regular-BFGlRth7.ttf)format("truetype")}@font-face{font-family:Urbanist;font-weight:600;src:url(https://myskin-v2.humicprototyping.com/assets/Urbanist-SemiBold-pOjqLDOP.ttf)format("truetype")}@font-face{font-family:Urbanist;font-weight:700;src:url(https://myskin-v2.humicprototyping.com/assets/Urbanist-Bold-_m6Tq3Qd.ttf)format("truetype")}html{scroll-behavior:smooth}body{font-family:Urbanist,sans-serif}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}} diff --git a/assets/index-DTxuOAFm.js b/assets/index-DTxuOAFm.js new file mode 100644 index 0000000..e5cb306 --- /dev/null +++ b/assets/index-DTxuOAFm.js @@ -0,0 +1,430 @@ +var Gy=e=>{throw TypeError(e)};var gh=(e,n,a)=>n.has(e)||Gy("Cannot "+a);var M=(e,n,a)=>(gh(e,n,"read from private field"),a?a.call(e):n.get(e)),Ae=(e,n,a)=>n.has(e)?Gy("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),he=(e,n,a,r)=>(gh(e,n,"write to private field"),r?r.call(e,a):n.set(e,a),a),Ue=(e,n,a)=>(gh(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 Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={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 $y;function FS(){if($y)return to;$y=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 Yy;function PS(){return Yy||(Yy=1,ph.exports=FS()),ph.exports}var d=PS(),yh={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 Xy;function VS(){if(Xy)return Le;Xy=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>>1,N=L[le];if(0>>1;leo(ue,G))seo(Se,ue)?(L[le]=Se,L[se]=G,le=se):(L[le]=ue,L[oe]=G,le=oe);else if(seo(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()-reL&&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||125le?(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}}}}(bh)),bh}var Jy;function qS(){return Jy||(Jy=1,wh.exports=IS()),wh.exports}var xh={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 Wy;function QS(){if(Wy)return Wt;Wy=1;var e=zm();function n(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),xh.exports=QS(),xh.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 tv;function GS(){if(tv)return no;tv=1;var e=qS(),n=zm(),a=Hw();function r(t){var i="https://react.dev/errors/"+t;if(1)":-1c||T[l]!==B[c]){var J=` +`+T[l].replace(" at new "," at ");return t.displayName&&J.includes("")&&(J=J.replace("",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)?xy(i):0;break;default:if(t=t===8?i.parentNode:i,i=t.tagName,t=t.namespaceURI)t=xy(t),i=Sy(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=Sy(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,ud=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,cd=Math.LN2;function Vo(t){return t>>>=0,t===0?32:31-(ul(t)/cd|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 dd(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"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 Cg(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function B2(t){var i=Cg(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 Eg(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Cg(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 fd(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?hd(t,w,Hn(i)):s!=null?hd(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 jg(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 hd(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=ml),Hg=" ",Fg=!1;function Pg(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 Vg(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 Vg(i);case"keypress":return i.which!==32?null:(Fg=!0,Hg);case"textInput":return t=i.data,t===Hg&&Fg?null:t;default:return null}}function h1(t,i){if(ns)return t==="compositionend"||!Cd&&Pg(t,i)?(t=Og(),Yo=wd=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)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=Kg(s)}}function Jg(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Jg(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Wg(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 Rd(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=Wg(i);i=t.focusedElem;var l=t.selectionRange;if(s!==i&&i&&i.ownerDocument&&Jg(i.ownerDocument.documentElement,i)){if(l!==null&&Rd(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=Zg(i,h);var w=Zg(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=document.documentMode,as=null,Nd=null,vl=null,Td=!1;function ep(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Td||as==null||as!==Go(l)||(l=as,"selectionStart"in l&&Rd(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(Nd,"onSelect"),0>=w,c-=w,Ha=1<<32-Zt(i)+c|s<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(;ReRe?(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&&yp(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=Df(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=Mf(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=vp(!0),wp=vp(!1),cs=Fe(null),ou=Fe(0);function bp(t,i){t=Za,De(ou,t),De(cs,i),Za=t|i.baseLanes}function Ld(){De(ou,Za),De(cs,cs.current)}function Ud(){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 xp(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 Hd(){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,Fd=0,ds=0,fs=null;function T1(t,i){if(Rl===null){var s=Rl=[];Fd=0,ds=$f(),fs={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Fd++,i.then(Sp,Sp),i}function Sp(){if(--Fd===0&&Rl!==null){fs!==null&&(fs.status="fulfilled");var t=Rl;Rl=null,ds=0,fs=null;for(var i=0;ih?h:8;var w=Q.T,A={};Q.T=A,af(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 tf(t,i,s,l){if(t.tag!==5)throw Error(r(476));var c=Wp(t).queue;Jp(t,c,i,Se,s===null?B1:function(){return e0(t),s(l)})}function Wp(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 e0(t){var i=Wp(t).next.queue;kl(t,i,{},Rn())}function nf(){return Jt(Kl)}function t0(){return _t().memoizedState}function n0(){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:Hd()},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)?i0(i,s):(s=Dd(t,i,s,l),s!==null&&(ln(s,t,l),r0(s,i,l)))}function a0(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))i0(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=Dd(t,i,c,l),s!==null)return ln(s,t,l),r0(s,i,l),!0}return!1}function af(t,i,s,l){if(l={lane:2,revertLane:$f(),action:l,hasEagerState:!1,eagerState:null,next:null},vu(t)){if(i)throw Error(r(479))}else i=Dd(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 i0(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 r0(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,$p.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=Kd(t);var i=t.queue,s=a0.bind(null,He,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:Wd,useDeferredValue:function(t,i){var s=pn();return ef(s,t,i)},useTransition:function(){var t=Kd(!1);return t=Jp.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||Np(l,i,s)}c.memoizedState=s;var h={value:s,getSnapshot:i};return c.queue=h,qp(kp.bind(null,l,h,t),[t]),l.flags|=2048,gs(9,Tp.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 title"))),Xt(h,l,s),h[pe]=t,lt(h),l=h;break e;case"link":var w=Dy("link","href",c).get(l+(s.href||""));if(w){for(var A=0;A<\/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||by(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&&(Ff(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&&Zf(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;)Y0(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),Ud(),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(_d(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),Ud(),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 Z0(t,i){switch(_d(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),Ud(),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,Of=!1,Za=0,At=0,Ci=0,Ar=0,_f=0,Xn=0,bs=0,Pl=null,xa=null,Bf=!1,zf=0,Ru=1/0,Nu=null,Ei=null,Tu=!1,Cr=null,Vl=0,Lf=0,Uf=null,Il=0,Hf=null;function Rn(){if((vt&2)!==0&&Ye!==0)return Ye&-Ye;if(Q.T!==null){var t=ds;return t!==0?t:$f()}return be()}function J0(){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 W0(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):If(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=If(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=If(A,w,!1),w!==2){if(Of&&!T){A.errorRecoveryDisabledLanes|=h,Ar|=h,c=4;break e}h=xa,xa=c,h!==null&&Ff(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=zf+300-hn(),10s?32:s,Q.T=null,Cr===null)var h=!1;else{s=Uf,Uf=null;var w=Cr,A=Vl;if(Cr=null,Vl=0,(vt&6)!==0)throw Error(r(331));var T=vt;if(vt|=4,G0(w.current),I0(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,oy(t,i)}}return!1}function uy(t,i,s){i=Vn(s,i),i=lf(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)uy(t,t,s);else for(;i!==null;){if(i.tag===3){uy(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=f0(2),l=wi(i,s,2),l!==null&&(h0(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)||(Of=!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()-zf?(vt&2)===0&&xs(t,0):_f|=s,bs===Ye&&(bs=0)),Sa(t)}function cy(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),cy(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),cy(t,s)}function tS(t,i){return ll(t,i)}var Du=null,Cs=null,Qf=!1,Ou=!1,Gf=!1,Er=0;function Sa(t){t!==Cs&&t.next===null&&(Cs===null?Du=Cs=t:Cs=Cs.next=t),Ou=!0,Qf||(Qf=!0,aS(nS))}function ql(t,i){if(!Gf&&Ou){Gf=!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,hy(l,h))}else h=Ye,h=_a(l,l===ot?h:0),(h&3)===0||ar(l,h)||(s=!0,hy(l,h));l=l.next}while(s);Gf=!1}}function nS(){Ou=Qf=!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=dy(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 dy(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,h=t.pendingLanes&-62914561;0"u"?null:document;function Ny(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+'"]'),Ry.has(c)||(Ry.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),Ny("dns-prefetch",t,null)}function bS(t,i){Wa.C(t,i),Ny("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))&&sh(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))&&lh(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))&&lh(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 Ty(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 ky(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 My(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=ky(s),(c=Kn.get(c))&&sh(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),lh(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 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 _y(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=ky(s),(c=Kn.get(c))&&sh(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&&oh(t,t.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),vh.exports=GS(),vh.exports}var YS=$S(),ao={},av;function XS(){if(av)return ao;av=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(kS;){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 Fw=e=>{throw TypeError(e)},KS=(e,n,a)=>n.has(e)||Fw("Cannot "+a),Sh=(e,n,a)=>(KS(e,n,"read from private field"),a?a.call(e):n.get(e)),ZS=(e,n,a)=>n.has(e)?Fw("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),iv="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 rv(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 _=rv(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 _=rv(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(iv,v),p=C,()=>{o.removeEventListener(iv,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,sv=class{constructor(e){if(ZS(this,co,new Map),e)for(let[n,a]of e)this.set(n,a)}get(e){if(Sh(this,co).has(e))return Sh(this,co).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){Sh(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=Pw(e);iA(f);let m=null;for(let p=0;m==null&&p{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}".`),Pw(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 Vw(u.path))o(u,f,p)}),n}function Vw(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=Vw(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,lv=e=>e==="*";function dA(e,n){let a=e.split("/"),r=a.length;return a.some(lv)&&(r+=cA),n&&(r+=lA),a.filter(o=>!lv(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{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 Ah(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 and the router will parse it for you.`}function Iw(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function zc(e){let n=Iw(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function Lc(e,n,a,r=!1){let o;typeof e=="string"?o=Ji(e):(o={...e},Ie(!o.pathname||!o.pathname.includes("?"),Ah("?","pathname","search",o)),Ie(!o.pathname||!o.pathname.includes("#"),Ah("#","pathname","hash",o)),Ie(!o.search||!o.search.includes("#"),Ah("#","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]),Ch={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},Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Qw="remix-router-transitions",Gw=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}=wv(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=>!Wh(ie.route,D,H))}else _=C.every(q=>!Wh(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:Ch,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?yv(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:Ch,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=Jh(R.location,R.matches,m,D,H==null?void 0:H.fromRouteId,H==null?void 0:H.relative),{path:ie,submission:de,error:je}=ov(!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 sv(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=Eh(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,...vv(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=mv(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||Eh(H,Ce),tt=Ce||ve||xv(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]=cv(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,...vv(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}=pv(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=Jh(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}=ov(!0,Ce,ie);if(pe){Bn(D,H,pe,{flushSync:de});return}let Me=fo(ve,me),tt=new sv(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]=cv(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}=pv(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:yv(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=mv(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(Lm.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=xv(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=Eh(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 ud(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(ie0}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}=wv(q);return{notFoundMatches:ie,route:de,error:H}}function cd(D,H,q){if(b=D,S=H,x=q||null,!E&&R.navigation===Ch){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||fv(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 dd(D,H){let q=f==null;fv(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:cd,navigate:wt,fetch:Xr,revalidate:xn,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:ol,deleteFetcher:ud,dispose:ht,getBlocker:rn,deleteBlocker:Po,patchRoutes:dd,_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 Jh(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=Lc(r||".",zc(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=Um(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 ov(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=Xw(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=tm(a.formData),p=a.formData;else if(a.body instanceof FormData)m=tm(a.body),p=a.body;else if(a.body instanceof URLSearchParams)m=a.body,p=gv(m);else if(a.body==null)m=new URLSearchParams,p=new FormData;else try{m=new URLSearchParams(a.body),p=gv(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&&Um(y.search)&&m.append("index",""),y.search=`?${m}`,{path:Xi(y),submission:g}}function uv(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 cv(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=uv(a,Object.keys(n.errors)[0],!0):x&&Nn(x[1])&&(k=uv(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 Wh(re,n.loaderData,n.errors);if(kA(n.loaderData,n.matches[ce],W))return!0;let Q=n.matches[ce],ne=W;return dv(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=dv(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 Wh(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 dv(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function fv(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=>$w(p,g))),m=gc(f,o,[e||"_","patch",String((u==null?void 0:u.length)||"0")],r);u.push(...m)}function $w(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=>$w(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 hv(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,()=>hv(e),n=>({[n.routeId]:{type:"error",result:n.error}})):hv(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 Yw({request:u,params:f,context:m},g,p,a);return p.propagateResult?y:p.handlerResult}catch(g){if(!(g instanceof em))throw g;let y=await r(g);return p.handlerResult?Object.assign(p.handlerResult,y):y}}var em=class{constructor(e,n){this.routeId=e,this.error=n}};async function Yw(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 Yw(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 em?b:new em(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(Kw(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"?bv(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}:bv(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"),!Lm.test(u)){let f=r.slice(0,r.findIndex(m=>m.route.id===a)+1);u=Jh(new URL(n.url),f,o,u),e.headers.set("Location",u)}return e}function mv(e,n,a){if(Lm.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(Xw(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=tm(r.formData):u.body=r.formData}return new Request(o,u)}function tm(e){let n=new URLSearchParams;for(let[a,r]of e.entries())n.append(a,typeof r=="string"?r:r.name);return n}function gv(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]=Gw),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 pv(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 yv(e,n,a,r){let o=Object.entries(n).filter(([,u])=>u!==Gw).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 vv(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 wv(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 Xw(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 Kw(e.result)&&CA.has(e.result.status)}function Nn(e){return e.type==="error"}function Nr(e){return(e&&e.type)==="redirect"}function bv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Kw(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 Um(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&&Um(a||""))return e[e.length-1];let r=Iw(e);return r[r.length-1]}function xv(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 Eh(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(Qw);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(Qw,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 Hm=j.createContext({isTransitioning:!1});Hm.displayName="ViewTransition";var Zw=j.createContext(new Map);Zw.displayName="Fetchers";var YA=j.createContext(null);YA.displayName="Await";var ga=j.createContext(null);ga.displayName="Navigation";var Uc=j.createContext(null);Uc.displayName="Location";var aa=j.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Fm=j.createContext(null);Fm.displayName="RouteError";function XA(e,{relative:n}={}){Ie(Ks(),"useHref() may be used only in the context of a 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(Uc)!=null}function Da(){return Ie(Ks(),"useLocation() may be used only in the context of a component."),j.useContext(Uc).location}var Jw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ww(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 component.");let e=j.useContext(qr),{basename:n,navigator:a}=j.useContext(ga),{matches:r}=j.useContext(aa),{pathname:o}=Da(),u=JSON.stringify(zc(r)),f=j.useRef(!1);return Ww(()=>{f.current=!0}),j.useCallback((p,g={})=>{if(It(f.current,Jw),!f.current)return;if(typeof p=="number"){a.go(p);return}let y=Lc(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 Hc(){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(zc(a));return j.useMemo(()=>Lc(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 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||"";tb(g,!v||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (under ) 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 to .`)}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 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=eb(),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(Fm.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=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?(tb("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 Pm(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,Pm(e)),n}function sC(e){let n=j.useContext(Co);return Ie(n,Pm(e)),n}function lC(e){let n=j.useContext(aa);return Ie(n,Pm(e)),n}function Vm(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 Vm("useRouteId")}function eb(){var r;let e=j.useContext(Fm),n=sC("useRouteError"),a=Vm("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[a]}function uC(){let{router:e}=rC("useNavigate"),n=Vm("useNavigate"),a=j.useRef(!1);return Ww(()=>{a.current=!0}),j.useCallback(async(o,u={})=>{It(a.current,Jw),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...u}))},[e,n])}var Sv={};function tb(e,n,a){!n&&!Sv[e]&&(Sv[e]=!0,It(!1,a))}var Av={};function Cv(e,n){!e&&!Av[n]&&(Av[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)),Cv(R===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `` 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(Cv(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(Zw.Provider,{value:S.current},j.createElement(Hm.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 jh({to:e,replace:n,state:a,relative:r}){Ie(Ks()," may be used only in the context of a component.");let{static:o}=j.useContext(ga);It(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the 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=Lc(e,zc(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 nb(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 inside another . 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,` is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the won't render anything.`),x==null?null:j.createElement(ga.Provider,{value:m},j.createElement(Uc.Provider,{children:n,value:x}))}var sc="get",lc="application/x-www-form-urlencoded";function Fc(e){return e!=null&&typeof e.tagName=="string"}function pC(e){return Fc(e)&&e.tagName.toLowerCase()==="button"}function yC(e){return Fc(e)&&e.tagName.toLowerCase()==="form"}function vC(e){return Fc(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 Rh(e){return e!=null&&!SC.has(e)?(It(!1,`"${e}" is not a valid \`encType\` for \`\`/\`\` 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=Rh(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 +
        +
        + +

        +
        + + +
        + + +
        + +
        + + +
        +
        +
        + + + +
        +
        +
        +
        +
        + +`.replace(/(^|\n)\s*/g,""),S3=()=>{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()},A3=()=>{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}},C3=e=>typeof e=="string"?document.querySelector(e):e,E3=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")},j3=e=>{window.getComputedStyle(e).direction==="rtl"&&We(fn(),Y.rtl)},R3=e=>{const n=S3();if(b3()){Qr("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=Y.container,n&&We(a,Y["no-transition"]),_n(a,x3),a.dataset.swal2Theme=e.theme;const r=C3(e.target);r.appendChild(a),e.topLayer&&(a.setAttribute("popover",""),a.showPopover()),E3(e),j3(r),A3()},yg=(e,n)=>{e instanceof HTMLElement?n.appendChild(e):typeof e=="object"?N3(e,n):e&&_n(n,e)},N3=(e,n)=>{e.jquery?T3(n,e):_n(n,e.toString())},T3=(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))},k3=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton?an(a):qt(a),Dn(a,n,"actions"),M3(a,r,n),_n(r,n.loaderHtml||""),Dn(r,n,"loader"))};function M3(e,n,a){const r=Ma(),o=Gr(),u=nl();!r||!o||!u||(Ih(r,"confirm",a),Ih(o,"deny",a),Ih(u,"cancel",a),D3(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 D3(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),Vh(e),Vh(n),Vh(a)}function Vh(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 Ih(e,n,a){const r=lg(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 O3=(e,n)=>{const a=fg();a&&(_n(a,n.closeButtonHtml||""),Dn(a,n,"closeButton"),Do(a,n.showCloseButton),a.setAttribute("aria-label",n.closeButtonAriaLabel||""))},_3=(e,n)=>{const a=fn();a&&(B3(a,n.backdrop),z3(a,n.position),L3(a,n.grow),Dn(a,n,"container"))};function B3(e,n){typeof n=="string"?e.style.background=n:n||We([document.documentElement,document.body],Y["no-backdrop"])}function z3(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 L3(e,n){n&&We(e,Y[`grow-${n}`])}var ft={innerParams:new WeakMap,domCache:new WeakMap};const U3=["input","file","range","select","radio","checkbox","textarea"],H3=(e,n)=>{const a=Je();if(!a)return;const r=ft.innerParams.get(e),o=!r||n.input!==r.input;U3.forEach(u=>{const f=Gi(a,Y[u]);f&&(V3(u,n.inputAttributes),f.className=Y[u],o&&an(f))}),n.input&&(o&&F3(n),I3(n))},F3=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)})},P3=e=>{for(let n=0;n{const a=Je();if(!a)return;const r=id(a,e);if(r){P3(r);for(const o in n)r.setAttribute(o,n[o])}},I3=e=>{if(!e.input)return;const n=Ix(e.input);n&&Dn(n,e,"input")},vg=(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)},Rc=(e,n)=>{["string","number"].includes(typeof n)?e.value=`${n}`:ug(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)=>(Rc(e,n.inputValue),Oo(e,e,n),vg(e,n),e.type=n.input,e);Tt.file=(e,n)=>(Oo(e,e,n),vg(e,n),e);Tt.range=(e,n)=>{const a=e.querySelector("input"),r=e.querySelector("output");return Rc(a,n.inputValue),a.type=n.input,Rc(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=id(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)=>{Rc(e,n.inputValue),vg(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 q3=(e,n)=>{const a=cg();a&&(gg(a),Dn(a,n,"htmlContainer"),n.html?(yg(n.html,a),qt(a,"block")):n.text?(a.textContent=n.text,qt(a,"block")):an(a),H3(e,n))},Q3=(e,n)=>{const a=Hx();a&&(gg(a),Do(a,n.footer,"block"),n.footer&&yg(n.footer,a),Dn(a,n,"footer"))},G3=(e,n)=>{const a=ft.innerParams.get(e),r=tl();if(!r)return;if(a&&n.icon===a.icon){uw(r,n),ow(r,n);return}if(!n.icon&&!n.iconHtml){an(r);return}if(n.icon&&Object.keys(jc).indexOf(n.icon)===-1){Qr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${n.icon}"`),an(r);return}qt(r),uw(r,n),ow(r,n),We(r,n.showClass&&n.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",qx)},ow=(e,n)=>{for(const[a,r]of Object.entries(jc))n.icon!==a&&na(e,r);We(e,n.icon&&jc[n.icon]),X3(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 + +
        +
        +`,Y3=` + + + + +`,uw=(e,n)=>{if(!n.icon&&!n.iconHtml)return;let a=e.innerHTML,r="";n.iconHtml?r=cw(n.iconHtml):n.icon==="success"?(r=$3,a=a.replace(/ style=".*?"/g,"")):n.icon==="error"?r=Y3:n.icon&&(r=cw({question:"?",warning:"!",info:"i"}[n.icon])),a.trim()!==r.trim()&&_n(e,r)},X3=(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"])sw(e,a,"background-color",n.iconColor);sw(e,".swal2-success-ring","border-color",n.iconColor)}},cw=e=>`
        ${e}
        `,K3=(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 wg=!1,Qx=0,Gx=0,$x=0,Yx=0;const Z3=e=>{e.addEventListener("mousedown",Nc),document.body.addEventListener("mousemove",Tc),e.addEventListener("mouseup",kc),e.addEventListener("touchstart",Nc),document.body.addEventListener("touchmove",Tc),e.addEventListener("touchend",kc)},J3=e=>{e.removeEventListener("mousedown",Nc),document.body.removeEventListener("mousemove",Tc),e.removeEventListener("mouseup",kc),e.removeEventListener("touchstart",Nc),document.body.removeEventListener("touchmove",Tc),e.removeEventListener("touchend",kc)},Nc=e=>{const n=Je();if(e.target===n||tl().contains(e.target)){wg=!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")}},Tc=e=>{const n=Je();if(wg){let{clientX:a,clientY:r}=Xx(e);n.style.insetInlineStart=`${$x+(a-Qx)}px`,n.style.insetBlockStart=`${Yx+(r-Gx)}px`}},kc=()=>{const e=Je();wg=!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}},W3=(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(td()),eN(r,n),n.draggable&&!n.toast?(We(r,Y.draggable),Z3(r)):(na(r,Y.draggable),J3(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=dg();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&&(gg(a),Do(a,n.title||n.titleText,"block"),n.title&&yg(n.title,a),n.titleText&&(a.innerText=n.titleText),Dn(a,n,"title"))},Kx=(e,n)=>{W3(e,n),_3(e,n),tN(e,n),G3(e,n),K3(e,n),iN(e,n),O3(e,n),q3(e,n),k3(e,n),Q3(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)},Tm=(e,n)=>{var a;const r=hg();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(!ed(n.allowEnterKey))return;const a=id(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=hg();let r=-1;for(let o=0;o{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{ed(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=cg();return!a||!r||wN(e)||bN(e)?!1:n===a||!lw(a)&&n instanceof HTMLElement&&n.tagName!=="INPUT"&&n.tagName!=="TEXTAREA"&&!(lw(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){ad()?dw(e,r):(u3(a).then(()=>dw(e,r)),Jx(Ee)),t2?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),mg()&&(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)},dw=(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();ad()?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)&&(og(n.inputValue)||ug(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,Mc(o),n):n.input==="radio"&&HN(a,Mc(o),n)};og(n.inputOptions)||ug(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 Mc=e=>{const n=[];return e instanceof Map?e.forEach((a,r)=>{let o=a;typeof o=="object"&&(o=Mc(o)),n.push([r,o])}):Object.keys(e).forEach(a=>{let r=e[a];typeof r=="object"&&(r=Mc(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"):xg(e,!0)},PN=e=>{const n=ft.innerParams.get(e);e.disableButtons(),n.returnInputValueOnDeny?r2(e,"deny"):bg(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${lg(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"?bg(e,o):xg(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"?bg(e,n):xg(e,n)})},bg=(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})},fw=(e,n)=>{e.close({isConfirmed:!0,value:n})},s2=(e,n)=>{e.rejectPromise(n)},xg=(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(td())||o===!1?(e.hideLoading(),_o(e)):fw(e,typeof o>"u"?n:o)}).catch(o=>s2(e||void 0,o))):fw(e,n)};function Dc(){const e=ft.innerParams.get(this);if(!e)return;const n=ft.domCache.get(this);an(n.loader),ad()?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"):v3()&&an(e.actions)};function l2(){const e=ft.innerParams.get(this),n=ft.domCache.get(this);return n?id(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;oObject.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:Dc,enableButtons:c2,enableInput:f2,getInput:l2,handleAwaitingPromise:_o,hideLoading:Dc,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 Oc=!1;const a5=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(n){e.container.onmouseup=()=>{},n.target===e.container&&(Oc=!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))&&(Oc=!0)}}},r5=(e,n,a)=>{n.container.onclick=r=>{if(Oc){Oc=!1;return}r.target===n.container&&ed(e.allowOutsideClick)&&a(il.backdrop)}},s5=e=>typeof e=="object"&&e.jquery,hw=e=>e instanceof Element||s5(e),l5=e=>{const n={};return typeof e[0]=="object"&&!hw(e[0])?Object.assign(n,e[0]):["title","html","icon"].forEach((a,r)=>{const o=e[r];typeof o=="string"||hw(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;aEe.timeout&&Ee.timeout.getTimerLeft(),A2=()=>{if(Ee.timeout)return w3(),Ee.timeout.stop()},C2=()=>{if(Ee.timeout){const e=Ee.timeout.start();return pg(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 pg(n,!0),n}},h5=()=>!!(Ee.timeout&&Ee.timeout.isRunning());let mw=!1;const km={};function m5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";km[e]=this,mw||(document.body.addEventListener("click",g5),mw=!0)}const g5=e=>{for(let n=e.target;n&&n!==document;n=n.parentNode)for(const a in km){const r=n.getAttribute(a);if(r){km[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;m1?a-1:0),o=1;o{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:fg,getConfirmButton:Ma,getContainer:fn,getDenyButton:Gr,getFocusableElements:hg,getFooter:Hx,getHtmlContainer:cg,getIcon:tl,getIconContent:h3,getImage:Ux,getInputLabel:m3,getLoader:al,getPopup:Je,getProgressSteps:dg,getTimerLeft:c5,getTimerProgressBar:nd,getTitle:Lx,getValidationMessage:td,increaseTimer:f5,isDeprecatedParameter:v2,isLoading:p3,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${lg(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),mg()&&(O5(n,e.scrollbarPadding,o),gN()),!ad()&&!Ee.previousActiveElement&&(Ee.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(a)),Ee.eventEmitter.emit("didOpen",a),na(n,Y["no-transition"])},_c=e=>{const n=Je();if(e.target!==n)return;const a=fn();n.removeEventListener("animationend",_c),n.removeEventListener("transitionend",_c),a.style.overflowY="auto"},D5=(e,n)=>{Vx(n)?(e.style.overflowY="hidden",n.addEventListener("animationend",_c),n.addEventListener("transitionend",_c)):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 gw={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=gw.email),e.input==="url"&&(e.inputValidator=gw.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("
        ")),R3(e)}let Ea;var ac=new WeakMap;class Mt{constructor(){if(r3(this,ac,void 0),typeof window>"u")return;Ea=this;for(var n=arguments.length,a=new Array(n),r=0;r1&&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}),mg()&&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 iw(ac,this).then(n)}finally(n){return iw(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:fg(),validationMessage:td(),progressSteps:dg()};return ft.domCache.set(e,n),n},P5=(e,n,a)=>{const r=nd();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&&pg(n.timer)})))},V5=(e,n)=>{if(!n.toast){if(!ed(n.allowEnterKey)){zx("allowEnterKey"),Q5();return}I5(e)||q5(e,n)||Tm(-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=Dc;Mt.prototype.disableLoading=Dc;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 Mm=function(e,n){return Mm=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])},Mm(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");Mm(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;rn},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 Qh=k,Qh}var Gh,yw;function X5(){if(yw)return Gh;yw=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 Gh=n,Gh}var $h,vw;function K5(){if(vw)return $h;vw=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 $h=a,$h}var Yh,ww;function Z5(){if(ww)return Yh;ww=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"},Yh=u,Yh}var Xh,bw;function J5(){return bw||(bw=1,Xh=Z5()),Xh}var W5=J5();const eT=Bc(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:xw(e.x,f,a.width,r),y:xw(e.y,m,a.height,r)}}function xw(e,n,a,r){var o=n*r/2-a/2;return rd(e,-o,o)}function Sw(e,n){return Math.sqrt(Math.pow(e.y-n.y,2)+Math.pow(e.x-n.x,2))}function Aw(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=rd(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=rd(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 Cw(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 rd(e,n,a){return Math.min(Math.max(e,n),a)}function ic(){for(var e=[],n=0;n0}).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.offsetWidthS?{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=rd(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 ya.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="https://myskin-v2.humicprototyping.com/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=",sd=()=>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"})})})}),Sg=({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(Ic,{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(sd,{}):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(cb,{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(db,{className:"m-1"})})]})]})]})};Sg.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=Ec({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=Ec({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(Sg,{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="https://myskin-v2.humicprototyping.com/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(a3,{}),d.jsx("div",{id:"deteksi",children:d.jsx(pT,{})})]})},ld="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="https://myskin-v2.humicprototyping.com/assets/Ellipse%204-CrOw4YA8.png",bT=()=>{var y;const{id:e}=Hc(),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(sd,{})});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(Vc,{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:ld,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,Ew;function ST(){return Ew||(Ew=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()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){var v,b,x,S;const{id:e}=Hc(),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(sd,{})});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=>jw().diff(jw(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(Vc,{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:ld,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:ld,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 Rw="https://myskin-v2.humicprototyping.com/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,Nw=/\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>>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(Nw," ").trim(),b.unshift(b[0][v]=b[0][v]||{})):b[0][y[1]]=y[2].replace(Nw," ").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 od(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,Dm,Om;od.bind({g:1});let li=od.bind({k:1});function MT(e,n,a,r){_i.p=n,M2=e,Dm=a,Om=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:Dm&&Dm()},m),a.o=/ *go\d+/.test(p),m.className=od.apply(a,r)+(p?" "+p:"");let g=e;return e[0]&&(g=m.as||e,delete m.as),Om&&g[0]&&Om(m),M2(g,m)}return o}}var DT=e=>typeof e=="function",_m=(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=[],Kh={toasts:[],pausedAt:void 0},Ag=e=>{Kh=D2(Kh,e),zT.forEach(n=>{n(Kh)})},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 Ag({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=>{Ag({type:3,toastId:e})};Kt.remove=e=>Ag({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?_m(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?_m(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},_m(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);od` + 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}=Hc(),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?

        Hasil verifikasi tidak dapat diubah lagi
        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?Rw: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(Vc,{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||Rw,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:Zc,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=Ec({mutationFn:P=>ea.deleteSubmission(P,n),onSuccess:()=>{st.success("Data berhasil dihapus"),z(),o(!1),b(null)},onError:()=>{st.error("Gagal menghapus data")}}),Ge=()=>{uP+1)},Xe=()=>{u>1&&f(P=>P-1)};return d.jsxs(d.Fragment,{children:[r&&d.jsx(tg,{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:Zc,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={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"})]})]})]})]})},Bm=({children:e})=>{const n=localStorage.getItem("token"),{data:a}=JSON.parse(localStorage.getItem("user")),r=Da();return!n||!a?d.jsx(jh,{to:"/",replace:!0}):a.role==="patient"&&!r.pathname.startsWith("/deteksi")&&!r.pathname.startsWith("/pengajuan")?d.jsx(jh,{to:"/",replace:!0}):a.role==="doctor"&&!r.pathname.startsWith("/dokter")?d.jsx(jh,{to:"/dokter",replace:!0}):e};Bm.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(Ic,{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:[Sc(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:Sc(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 px-6",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="https://myskin-v2.humicprototyping.com/assets/errorPage-c4bJcYnY.jpeg",Zh=()=>{const e=eb(),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}=Hc(),{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(sd,{})});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(Vc,{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:ld,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(Sg,{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(Zh,{}),children:[{element:d.jsx(dc,{type:"default"}),errorElement:d.jsx(Zh,{}),children:[{path:"/",element:d.jsx(wT,{})},{path:"faq",element:d.jsx(ZR,{})}]},{element:d.jsx(Bm,{children:d.jsx(dc,{type:"default"})}),errorElement:d.jsx(Zh,{}),children:[{path:"deteksi",element:d.jsx(KR,{})},{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(Bm,{children:d.jsx(dc,{type:"doctor"})}),children:[{path:"",element:d.jsx(nR,{})},{path:"daftar-pasien",element:d.jsx(W4,{})},{path:"daftar-pengajuan",element:d.jsx(tR,{})},{path:"riwayat-verifikasi",element:d.jsx(u6,{})},{path:"riwayat-verifikasi/informasi-penyakit/:id",element:d.jsx(s6,{})}]}]}]),h6=new bR;YS.createRoot(document.getElementById("root")).render(d.jsx(Yi.StrictMode,{children:d.jsx(ER,{client:h6,children:d.jsx(Lb,{children:d.jsx(ZC,{router:f6})})})})); diff --git a/assets/index-DZfOfg4Q.js b/assets/index-DZfOfg4Q.js new file mode 100644 index 0000000..dfb7072 --- /dev/null +++ b/assets/index-DZfOfg4Q.js @@ -0,0 +1,430 @@ +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>>1,N=L[le];if(0>>1;leo(ue,G))seo(Se,ue)?(L[le]=Se,L[se]=G,le=se):(L[le]=ue,L[oe]=G,le=oe);else if(seo(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()-reL&&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||125le?(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"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)":-1c||T[l]!==B[c]){var J=` +`+T[l].replace(" at new "," at ");return t.displayName&&J.includes("")&&(J=J.replace("",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"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=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)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=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>=w,c-=w,Ha=1<<32-Zt(i)+c|s<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(;ReRe?(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;ih?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 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<\/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(),10s?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"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 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"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(kS;){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{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{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 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(ie0}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 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 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 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 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 (or called \`useRoutes()\`) at "${g}" (under ) 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 to .`)}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 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=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 `` 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()," may be used only in the context of a component.");let{static:o}=j.useContext(ga);It(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the 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 inside another . 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,` is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the 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 \`\`/\`\` 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 +
          +
          + +

          +
          + + +
          + + +
          + +
          + + +
          +
          +
          + + + +
          +
          +
          +
          +
          + +`.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{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 + +
          +
          +`,YR=` + + + + +`,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=>`
          ${e}
          `,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{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{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;oObject.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;aEe.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;m1?a-1:0),o=1;o{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("
          ")),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;r1&&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;rn},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;n0}).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.offsetWidthS?{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 ya.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="https://myskin-v2.humicprototyping.com/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="https://myskin-v2.humicprototyping.com/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="https://myskin-v2.humicprototyping.com/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()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){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="https://myskin-v2.humicprototyping.com/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>>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?

          Hasil verifikasi tidak dapat diubah lagi
          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=()=>{uP+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="https://myskin-v2.humicprototyping.com/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})})})})); diff --git a/assets/index-Dmx8ovNH.js b/assets/index-Dmx8ovNH.js new file mode 100644 index 0000000..a94574d --- /dev/null +++ b/assets/index-Dmx8ovNH.js @@ -0,0 +1,430 @@ +var Gy=e=>{throw TypeError(e)};var gh=(e,n,a)=>n.has(e)||Gy("Cannot "+a);var M=(e,n,a)=>(gh(e,n,"read from private field"),a?a.call(e):n.get(e)),Ae=(e,n,a)=>n.has(e)?Gy("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),he=(e,n,a,r)=>(gh(e,n,"write to private field"),r?r.call(e,a):n.set(e,a),a),Ue=(e,n,a)=>(gh(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 Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={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 $y;function FS(){if($y)return to;$y=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 Yy;function PS(){return Yy||(Yy=1,ph.exports=FS()),ph.exports}var d=PS(),yh={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 Xy;function VS(){if(Xy)return Le;Xy=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 G(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 F(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,F(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,"$&/")+"/"),F(se,X,oe,"",function(Oe){return Oe})):se!=null&&(G(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>>1,N=L[le];if(0>>1;leo(ue,Q))seo(Se,ue)?(L[le]=Se,L[se]=Q,le=se):(L[le]=ue,L[oe]=Q,le=oe);else if(seo(Se,Q))L[le]=Se,L[se]=Q,le=se;else break e}}return P}function o(L,P){var Q=L.sortIndex-P.sortIndex;return Q!==0?Q:L.id-P.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 P=a(g);P!==null;){if(P.callback===null)r(g);else if(P.startTime<=L)r(g),P.sortIndex=P.expirationTime,n(p,P);else break;P=a(g)}}function Z(L){if(E=!1,_(L),!S)if(a(p)!==null)S=!0,te();else{var P=a(g);P!==null&&F(Z,P.startTime-L)}}var R=!1,W=-1,ce=5,re=-1;function G(){return!(e.unstable_now()-reL&&G());){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),P=!0;break t}v===a(p)&&r(p),_(L)}else r(p);v=a(p)}if(v!==null)P=!0;else{var X=a(g);X!==null&&F(Z,X.startTime-L),P=!1}}break e}finally{v=null,b=Q,x=!1}P=void 0}}finally{P?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 F(L,P){W=C(function(){L(e.unstable_now())},P)}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||125le?(L.sortIndex=Q,n(g,L),a(p)===null&&L===a(g)&&(E?(k(W),W=-1):E=!0,F(Z,Q-le))):(L.sortIndex=N,n(p,L),S||x||(S=!0,te())),L},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(L){var P=b;return function(){var Q=b;b=P;try{return L.apply(this,arguments)}finally{b=Q}}}}(bh)),bh}var Jy;function qS(){return Jy||(Jy=1,wh.exports=IS()),wh.exports}var xh={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 Wy;function QS(){if(Wy)return Wt;Wy=1;var e=zm();function n(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),xh.exports=QS(),xh.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 tv;function GS(){if(tv)return no;tv=1;var e=qS(),n=zm(),a=Hw();function r(t){var i="https://react.dev/errors/"+t;if(1)":-1c||T[l]!==B[c]){var J=` +`+T[l].replace(" at new "," at ");return t.displayName&&J.includes("")&&(J=J.replace("",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=F(t.type,!1),t;case 11:return t=F(t.type.render,!1),t;case 1:return t=F(t.type,!0),t;default:return""}}function P(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 Q(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(Q(t)!==t)throw Error(r(188))}function X(t){var i=t.alternate;if(!i){if(i=Q(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)?xy(i):0;break;default:if(t=t===8?i.parentNode:i,i=t.tagName,t=t.namespaceURI)t=xy(t),i=Sy(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=Sy(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,ud=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,cd=Math.LN2;function Vo(t){return t>>>=0,t===0?32:31-(ul(t)/cd|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 dd(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"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 Cg(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function B2(t){var i=Cg(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 Eg(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Cg(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 fd(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?hd(t,w,Hn(i)):s!=null?hd(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 jg(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 hd(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=ml),Hg=" ",Fg=!1;function Pg(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 Vg(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 Vg(i);case"keypress":return i.which!==32?null:(Fg=!0,Hg);case"textInput":return t=i.data,t===Hg&&Fg?null:t;default:return null}}function h1(t,i){if(ns)return t==="compositionend"||!Cd&&Pg(t,i)?(t=Og(),Yo=wd=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)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=Kg(s)}}function Jg(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Jg(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Wg(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 Rd(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=Wg(i);i=t.focusedElem;var l=t.selectionRange;if(s!==i&&i&&i.ownerDocument&&Jg(i.ownerDocument.documentElement,i)){if(l!==null&&Rd(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=Zg(i,h);var w=Zg(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=document.documentMode,as=null,Nd=null,vl=null,Td=!1;function ep(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Td||as==null||as!==Go(l)||(l=as,"selectionStart"in l&&Rd(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(Nd,"onSelect"),0>=w,c-=w,Ha=1<<32-Zt(i)+c|s<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(;ReRe?(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&&yp(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=Df(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=Mf(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=vp(!0),wp=vp(!1),cs=Fe(null),ou=Fe(0);function bp(t,i){t=Za,De(ou,t),De(cs,i),Za=t|i.baseLanes}function Ld(){De(ou,Za),De(cs,cs.current)}function Ud(){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 xp(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 Hd(){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,Fd=0,ds=0,fs=null;function T1(t,i){if(Rl===null){var s=Rl=[];Fd=0,ds=$f(),fs={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Fd++,i.then(Sp,Sp),i}function Sp(){if(--Fd===0&&Rl!==null){fs!==null&&(fs.status="fulfilled");var t=Rl;Rl=null,ds=0,fs=null;for(var i=0;ih?h:8;var w=G.T,A={};G.T=A,af(t,!1,i,s);try{var T=c(),B=G.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,G.T=w}}function B1(){}function tf(t,i,s,l){if(t.tag!==5)throw Error(r(476));var c=Wp(t).queue;Jp(t,c,i,Se,s===null?B1:function(){return e0(t),s(l)})}function Wp(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 e0(t){var i=Wp(t).next.queue;kl(t,i,{},Rn())}function nf(){return Jt(Kl)}function t0(){return _t().memoizedState}function n0(){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:Hd()},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)?i0(i,s):(s=Dd(t,i,s,l),s!==null&&(ln(s,t,l),r0(s,i,l)))}function a0(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))i0(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=Dd(t,i,c,l),s!==null)return ln(s,t,l),r0(s,i,l),!0}return!1}function af(t,i,s,l){if(l={lane:2,revertLane:$f(),action:l,hasEagerState:!1,eagerState:null,next:null},vu(t)){if(i)throw Error(r(479))}else i=Dd(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 i0(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 r0(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,$p.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=Kd(t);var i=t.queue,s=a0.bind(null,He,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:Wd,useDeferredValue:function(t,i){var s=pn();return ef(s,t,i)},useTransition:function(){var t=Kd(!1);return t=Jp.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||Np(l,i,s)}c.memoizedState=s;var h={value:s,getSnapshot:i};return c.queue=h,qp(kp.bind(null,l,h,t),[t]),l.flags|=2048,gs(9,Tp.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 title"))),Xt(h,l,s),h[pe]=t,lt(h),l=h;break e;case"link":var w=Dy("link","href",c).get(l+(s.href||""));if(w){for(var A=0;A<\/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||by(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&&(Ff(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&&Zf(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;)Y0(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),Ud(),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(_d(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),Ud(),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 Z0(t,i){switch(_d(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),Ud(),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,Of=!1,Za=0,At=0,Ci=0,Ar=0,_f=0,Xn=0,bs=0,Pl=null,xa=null,Bf=!1,zf=0,Ru=1/0,Nu=null,Ei=null,Tu=!1,Cr=null,Vl=0,Lf=0,Uf=null,Il=0,Hf=null;function Rn(){if((vt&2)!==0&&Ye!==0)return Ye&-Ye;if(G.T!==null){var t=ds;return t!==0?t:$f()}return be()}function J0(){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 W0(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):If(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=If(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=If(A,w,!1),w!==2){if(Of&&!T){A.errorRecoveryDisabledLanes|=h,Ar|=h,c=4;break e}h=xa,xa=c,h!==null&&Ff(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=zf+300-hn(),10s?32:s,G.T=null,Cr===null)var h=!1;else{s=Uf,Uf=null;var w=Cr,A=Vl;if(Cr=null,Vl=0,(vt&6)!==0)throw Error(r(331));var T=vt;if(vt|=4,G0(w.current),I0(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,G.T=l,oy(t,i)}}return!1}function uy(t,i,s){i=Vn(s,i),i=lf(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)uy(t,t,s);else for(;i!==null;){if(i.tag===3){uy(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=f0(2),l=wi(i,s,2),l!==null&&(h0(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)||(Of=!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()-zf?(vt&2)===0&&xs(t,0):_f|=s,bs===Ye&&(bs=0)),Sa(t)}function cy(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),cy(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),cy(t,s)}function tS(t,i){return ll(t,i)}var Du=null,Cs=null,Qf=!1,Ou=!1,Gf=!1,Er=0;function Sa(t){t!==Cs&&t.next===null&&(Cs===null?Du=Cs=t:Cs=Cs.next=t),Ou=!0,Qf||(Qf=!0,aS(nS))}function ql(t,i){if(!Gf&&Ou){Gf=!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,hy(l,h))}else h=Ye,h=_a(l,l===ot?h:0),(h&3)===0||ar(l,h)||(s=!0,hy(l,h));l=l.next}while(s);Gf=!1}}function nS(){Ou=Qf=!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=dy(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 dy(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,h=t.pendingLanes&-62914561;0"u"?null:document;function Ny(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+'"]'),Ry.has(c)||(Ry.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),Ny("dns-prefetch",t,null)}function bS(t,i){Wa.C(t,i),Ny("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))&&sh(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))&&lh(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))&&lh(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 Ty(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 ky(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 My(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=ky(s),(c=Kn.get(c))&&sh(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),lh(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 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 _y(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=ky(s),(c=Kn.get(c))&&sh(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&&oh(t,t.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),vh.exports=GS(),vh.exports}var YS=$S(),ao={},av;function XS(){if(av)return ao;av=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),G=p(b,Z,re);const ne=C(b.slice(re,G));S[ce]=ne}k=Z+1}while(kS;){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 Fw=e=>{throw TypeError(e)},KS=(e,n,a)=>n.has(e)||Fw("Cannot "+a),Sh=(e,n,a)=>(KS(e,n,"read from private field"),a?a.call(e):n.get(e)),ZS=(e,n,a)=>n.has(e)?Fw("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),iv="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 rv(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 _=rv(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 _=rv(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(iv,v),p=C,()=>{o.removeEventListener(iv,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,sv=class{constructor(e){if(ZS(this,co,new Map),e)for(let[n,a]of e)this.set(n,a)}get(e){if(Sh(this,co).has(e))return Sh(this,co).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){Sh(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=Pw(e);iA(f);let m=null;for(let p=0;m==null&&p{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}".`),Pw(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 Vw(u.path))o(u,f,p)}),n}function Vw(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=Vw(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,lv=e=>e==="*";function dA(e,n){let a=e.split("/"),r=a.length;return a.some(lv)&&(r+=cA),n&&(r+=lA),a.filter(o=>!lv(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{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 Ah(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 and the router will parse it for you.`}function Iw(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function zc(e){let n=Iw(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function Lc(e,n,a,r=!1){let o;typeof e=="string"?o=Ji(e):(o={...e},Ie(!o.pathname||!o.pathname.includes("?"),Ah("?","pathname","search",o)),Ie(!o.pathname||!o.pathname.includes("#"),Ah("#","pathname","hash",o)),Ie(!o.search||!o.search.includes("#"),Ah("#","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]),Ch={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},Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Qw="remix-router-transitions",Gw=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}=wv(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=>!Wh(ie.route,D,H))}else _=C.every(q=>!Wh(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:Ch,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,G=!1,ne=new Map,fe=null,Ge=!1,Xe=!1,te=new Set,F=new Map,L=0,P=-1,Q=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)&&!F.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?yv(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(G){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:Ch,revalidation:"idle",restoreScrollPosition:nr(D,H.matches||R.matches),preventScrollReset:ve,blockers:Ce},{viewTransitionOpts:be,flushSync:q===!0}),W="POP",ce=!1,G=!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=Jh(R.location,R.matches,m,D,H==null?void 0:H.fromRouteId,H==null?void 0:H.relative),{path:ie,submission:de,error:je}=ov(!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:G===!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,G=(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 sv(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=Eh(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,...vv(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=mv(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||Eh(H,Ce),tt=Ce||ve||xv(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]=cv(e.history,R,q,tt,H,me===!0,Xe,te,oe,N,le,bt,m,pe);if(P=++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,...vv(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&&F.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=>F.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}=pv(R,q,Ba,pe,xt,Qt);me&&R.errors&&(Un={...R.errors,...Un});let lt=Fo(),ir=ui(P),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=Jh(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}=ov(!0,Ce,ie);if(pe){Bn(D,H,pe,{flushSync:de});return}let Me=fo(ve,me),tt=new sv(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}}F.set(D,Me);let Dt=L,mt=(await tr("action",tt,[ie],de,je,D))[ie.route.id];if(tt.signal.aborted){F.get(D)===Me&&F.delete(D);return}if(oe.has(D)){if(Nr(mt)||Nn(mt)){ya(D,Mi(void 0));return}}else{if(Nr(mt))if(F.delete(D),P>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;Q.set(D,Gt);let za=ro(me,mt.data);R.fetchers.set(D,za);let[Un,lt]=cv(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&&F.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),Q.delete(D),F.delete(D),lt.forEach(pt=>F.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}=pv(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>P?(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:yv(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}}F.set(D,pe);let tt=L,bt=(await tr("loader",Me,[ie],de,je,D))[ie.route.id];if(F.get(D)===pe&&F.delete(D),!Me.signal.aborted){if(oe.has(D)){ya(D,Mi(void 0));return}if(Nr(bt))if(P>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=mv(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(Lm.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=xv(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?G:void 0});else{let Dt=Eh(be,ie);await Rt(me,be,{overrideNavigation:Dt,fetcherSubmission:de,preventScrollReset:je||ce,enableViewTransition:q?G: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)=>{F.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);F.has(D)&&!(H&&H.state==="loading"&&Q.has(D))&&ra(D),N.delete(D),Q.delete(D),le.delete(D),oe.delete(D),te.delete(D),R.fetchers.delete(D)}function ud(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=F.get(D);H&&(H.abort(),F.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 Q)if(ie0}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}=wv(q);return{notFoundMatches:ie,route:de,error:H}}function cd(D,H,q){if(b=D,S=H,x=q||null,!E&&R.navigation===Ch){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||fv(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 dd(D,H){let q=f==null;fv(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:cd,navigate:wt,fetch:Xr,revalidate:xn,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:ol,deleteFetcher:ud,dispose:ht,getBlocker:rn,deleteBlocker:Po,patchRoutes:dd,_internalFetchControllers:F,_internalSetRoutes:ar},Z}function TA(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Jh(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=Lc(r||".",zc(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=Um(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 ov(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=Xw(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=tm(a.formData),p=a.formData;else if(a.body instanceof FormData)m=tm(a.body),p=a.body;else if(a.body instanceof URLSearchParams)m=a.body,p=gv(m);else if(a.body==null)m=new URLSearchParams,p=new FormData;else try{m=new URLSearchParams(a.body),p=gv(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&&Um(y.search)&&m.append("index",""),y.search=`?${m}`,{path:Xi(y),submission:g}}function uv(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 cv(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=uv(a,Object.keys(n.errors)[0],!0):x&&Nn(x[1])&&(k=uv(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 Wh(re,n.loaderData,n.errors);if(kA(n.loaderData,n.matches[ce],W))return!0;let G=n.matches[ce],ne=W;return dv(W,{currentUrl:E,currentParams:G.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(G,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 G=n.fetchers.get(ce),ne=fo(re,W.path),fe=!1;y.has(ce)?fe=!1:m.has(ce)?(m.delete(ce),fe=!0):G&&G.state!=="idle"&&G.data===void 0?fe=f:fe=dv(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 Wh(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 dv(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function fv(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=>$w(p,g))),m=gc(f,o,[e||"_","patch",String((u==null?void 0:u.length)||"0")],r);u.push(...m)}function $w(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=>$w(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 hv(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,()=>hv(e),n=>({[n.routeId]:{type:"error",result:n.error}})):hv(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 Yw({request:u,params:f,context:m},g,p,a);return p.propagateResult?y:p.handlerResult}catch(g){if(!(g instanceof em))throw g;let y=await r(g);return p.handlerResult?Object.assign(p.handlerResult,y):y}}var em=class{constructor(e,n){this.routeId=e,this.error=n}};async function Yw(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 Yw(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 em?b:new em(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(Kw(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"?bv(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}:bv(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"),!Lm.test(u)){let f=r.slice(0,r.findIndex(m=>m.route.id===a)+1);u=Jh(new URL(n.url),f,o,u),e.headers.set("Location",u)}return e}function mv(e,n,a){if(Lm.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(Xw(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=tm(r.formData):u.body=r.formData}return new Request(o,u)}function tm(e){let n=new URLSearchParams;for(let[a,r]of e.entries())n.append(a,typeof r=="string"?r:r.name);return n}function gv(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]=Gw),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 pv(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 yv(e,n,a,r){let o=Object.entries(n).filter(([,u])=>u!==Gw).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 vv(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 wv(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 Xw(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 Kw(e.result)&&CA.has(e.result.status)}function Nn(e){return e.type==="error"}function Nr(e){return(e&&e.type)==="redirect"}function bv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Kw(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 Um(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&&Um(a||""))return e[e.length-1];let r=Iw(e);return r[r.length-1]}function xv(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 Eh(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(Qw);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(Qw,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 Hm=j.createContext({isTransitioning:!1});Hm.displayName="ViewTransition";var Zw=j.createContext(new Map);Zw.displayName="Fetchers";var YA=j.createContext(null);YA.displayName="Await";var ga=j.createContext(null);ga.displayName="Navigation";var Uc=j.createContext(null);Uc.displayName="Location";var aa=j.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Fm=j.createContext(null);Fm.displayName="RouteError";function XA(e,{relative:n}={}){Ie(Ks(),"useHref() may be used only in the context of a 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(Uc)!=null}function Da(){return Ie(Ks(),"useLocation() may be used only in the context of a component."),j.useContext(Uc).location}var Jw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ww(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 component.");let e=j.useContext(qr),{basename:n,navigator:a}=j.useContext(ga),{matches:r}=j.useContext(aa),{pathname:o}=Da(),u=JSON.stringify(zc(r)),f=j.useRef(!1);return Ww(()=>{f.current=!0}),j.useCallback((p,g={})=>{if(It(f.current,Jw),!f.current)return;if(typeof p=="number"){a.go(p);return}let y=Lc(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 Hc(){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(zc(a));return j.useMemo(()=>Lc(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 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||"";tb(g,!v||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (under ) 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 to .`)}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 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=eb(),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(Fm.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=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?(tb("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 Pm(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,Pm(e)),n}function sC(e){let n=j.useContext(Co);return Ie(n,Pm(e)),n}function lC(e){let n=j.useContext(aa);return Ie(n,Pm(e)),n}function Vm(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 Vm("useRouteId")}function eb(){var r;let e=j.useContext(Fm),n=sC("useRouteError"),a=Vm("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[a]}function uC(){let{router:e}=rC("useNavigate"),n=Vm("useNavigate"),a=j.useRef(!1);return Ww(()=>{a.current=!0}),j.useCallback(async(o,u={})=>{It(a.current,Jw),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...u}))},[e,n])}var Sv={};function tb(e,n,a){!n&&!Sv[e]&&(Sv[e]=!0,It(!1,a))}var Av={};function Cv(e,n){!e&&!Av[n]&&(Av[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,G)=>{re.data!==void 0&&S.current.set(G,re.data)}),Z.forEach(re=>S.current.delete(re)),Cv(R===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `` 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(Cv(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(Zw.Provider,{value:S.current},j.createElement(Hm.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 jh({to:e,replace:n,state:a,relative:r}){Ie(Ks()," may be used only in the context of a component.");let{static:o}=j.useContext(ga);It(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the 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=Lc(e,zc(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 nb(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 inside another . 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,` is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the won't render anything.`),x==null?null:j.createElement(ga.Provider,{value:m},j.createElement(Uc.Provider,{children:n,value:x}))}var sc="get",lc="application/x-www-form-urlencoded";function Fc(e){return e!=null&&typeof e.tagName=="string"}function pC(e){return Fc(e)&&e.tagName.toLowerCase()==="button"}function yC(e){return Fc(e)&&e.tagName.toLowerCase()==="form"}function vC(e){return Fc(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 Rh(e){return e!=null&&!SC.has(e)?(It(!1,`"${e}" is not a valid \`encType\` for \`\`/\`\` 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=Rh(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 +
            +
            + +

            +
            + + +
            + + +
            + +
            + + +
            +
            +
            + + + +
            +
            +
            +
            +
            + +`.replace(/(^|\n)\s*/g,""),S3=()=>{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()},A3=()=>{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}},C3=e=>typeof e=="string"?document.querySelector(e):e,E3=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")},j3=e=>{window.getComputedStyle(e).direction==="rtl"&&We(fn(),Y.rtl)},R3=e=>{const n=S3();if(b3()){Qr("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=Y.container,n&&We(a,Y["no-transition"]),_n(a,x3),a.dataset.swal2Theme=e.theme;const r=C3(e.target);r.appendChild(a),e.topLayer&&(a.setAttribute("popover",""),a.showPopover()),E3(e),j3(r),A3()},yg=(e,n)=>{e instanceof HTMLElement?n.appendChild(e):typeof e=="object"?N3(e,n):e&&_n(n,e)},N3=(e,n)=>{e.jquery?T3(n,e):_n(n,e.toString())},T3=(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))},k3=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton?an(a):qt(a),Dn(a,n,"actions"),M3(a,r,n),_n(r,n.loaderHtml||""),Dn(r,n,"loader"))};function M3(e,n,a){const r=Ma(),o=Gr(),u=nl();!r||!o||!u||(Ih(r,"confirm",a),Ih(o,"deny",a),Ih(u,"cancel",a),D3(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 D3(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),Vh(e),Vh(n),Vh(a)}function Vh(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 Ih(e,n,a){const r=lg(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 O3=(e,n)=>{const a=fg();a&&(_n(a,n.closeButtonHtml||""),Dn(a,n,"closeButton"),Do(a,n.showCloseButton),a.setAttribute("aria-label",n.closeButtonAriaLabel||""))},_3=(e,n)=>{const a=fn();a&&(B3(a,n.backdrop),z3(a,n.position),L3(a,n.grow),Dn(a,n,"container"))};function B3(e,n){typeof n=="string"?e.style.background=n:n||We([document.documentElement,document.body],Y["no-backdrop"])}function z3(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 L3(e,n){n&&We(e,Y[`grow-${n}`])}var ft={innerParams:new WeakMap,domCache:new WeakMap};const U3=["input","file","range","select","radio","checkbox","textarea"],H3=(e,n)=>{const a=Je();if(!a)return;const r=ft.innerParams.get(e),o=!r||n.input!==r.input;U3.forEach(u=>{const f=Gi(a,Y[u]);f&&(V3(u,n.inputAttributes),f.className=Y[u],o&&an(f))}),n.input&&(o&&F3(n),I3(n))},F3=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)})},P3=e=>{for(let n=0;n{const a=Je();if(!a)return;const r=id(a,e);if(r){P3(r);for(const o in n)r.setAttribute(o,n[o])}},I3=e=>{if(!e.input)return;const n=Ix(e.input);n&&Dn(n,e,"input")},vg=(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)},Rc=(e,n)=>{["string","number"].includes(typeof n)?e.value=`${n}`:ug(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)=>(Rc(e,n.inputValue),Oo(e,e,n),vg(e,n),e.type=n.input,e);Tt.file=(e,n)=>(Oo(e,e,n),vg(e,n),e);Tt.range=(e,n)=>{const a=e.querySelector("input"),r=e.querySelector("output");return Rc(a,n.inputValue),a.type=n.input,Rc(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=id(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)=>{Rc(e,n.inputValue),vg(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 q3=(e,n)=>{const a=cg();a&&(gg(a),Dn(a,n,"htmlContainer"),n.html?(yg(n.html,a),qt(a,"block")):n.text?(a.textContent=n.text,qt(a,"block")):an(a),H3(e,n))},Q3=(e,n)=>{const a=Hx();a&&(gg(a),Do(a,n.footer,"block"),n.footer&&yg(n.footer,a),Dn(a,n,"footer"))},G3=(e,n)=>{const a=ft.innerParams.get(e),r=tl();if(!r)return;if(a&&n.icon===a.icon){uw(r,n),ow(r,n);return}if(!n.icon&&!n.iconHtml){an(r);return}if(n.icon&&Object.keys(jc).indexOf(n.icon)===-1){Qr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${n.icon}"`),an(r);return}qt(r),uw(r,n),ow(r,n),We(r,n.showClass&&n.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",qx)},ow=(e,n)=>{for(const[a,r]of Object.entries(jc))n.icon!==a&&na(e,r);We(e,n.icon&&jc[n.icon]),X3(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 + +
            +
            +`,Y3=` + + + + +`,uw=(e,n)=>{if(!n.icon&&!n.iconHtml)return;let a=e.innerHTML,r="";n.iconHtml?r=cw(n.iconHtml):n.icon==="success"?(r=$3,a=a.replace(/ style=".*?"/g,"")):n.icon==="error"?r=Y3:n.icon&&(r=cw({question:"?",warning:"!",info:"i"}[n.icon])),a.trim()!==r.trim()&&_n(e,r)},X3=(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"])sw(e,a,"background-color",n.iconColor);sw(e,".swal2-success-ring","border-color",n.iconColor)}},cw=e=>`
            ${e}
            `,K3=(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 wg=!1,Qx=0,Gx=0,$x=0,Yx=0;const Z3=e=>{e.addEventListener("mousedown",Nc),document.body.addEventListener("mousemove",Tc),e.addEventListener("mouseup",kc),e.addEventListener("touchstart",Nc),document.body.addEventListener("touchmove",Tc),e.addEventListener("touchend",kc)},J3=e=>{e.removeEventListener("mousedown",Nc),document.body.removeEventListener("mousemove",Tc),e.removeEventListener("mouseup",kc),e.removeEventListener("touchstart",Nc),document.body.removeEventListener("touchmove",Tc),e.removeEventListener("touchend",kc)},Nc=e=>{const n=Je();if(e.target===n||tl().contains(e.target)){wg=!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")}},Tc=e=>{const n=Je();if(wg){let{clientX:a,clientY:r}=Xx(e);n.style.insetInlineStart=`${$x+(a-Qx)}px`,n.style.insetBlockStart=`${Yx+(r-Gx)}px`}},kc=()=>{const e=Je();wg=!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}},W3=(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(td()),eN(r,n),n.draggable&&!n.toast?(We(r,Y.draggable),Z3(r)):(na(r,Y.draggable),J3(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=dg();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&&(gg(a),Do(a,n.title||n.titleText,"block"),n.title&&yg(n.title,a),n.titleText&&(a.innerText=n.titleText),Dn(a,n,"title"))},Kx=(e,n)=>{W3(e,n),_3(e,n),tN(e,n),G3(e,n),K3(e,n),iN(e,n),O3(e,n),q3(e,n),k3(e,n),Q3(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)},Tm=(e,n)=>{var a;const r=hg();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(!ed(n.allowEnterKey))return;const a=id(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=hg();let r=-1;for(let o=0;o{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{ed(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=cg();return!a||!r||wN(e)||bN(e)?!1:n===a||!lw(a)&&n instanceof HTMLElement&&n.tagName!=="INPUT"&&n.tagName!=="TEXTAREA"&&!(lw(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){ad()?dw(e,r):(u3(a).then(()=>dw(e,r)),Jx(Ee)),t2?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),mg()&&(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)},dw=(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();ad()?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)&&(og(n.inputValue)||ug(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,Mc(o),n):n.input==="radio"&&HN(a,Mc(o),n)};og(n.inputOptions)||ug(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 Mc=e=>{const n=[];return e instanceof Map?e.forEach((a,r)=>{let o=a;typeof o=="object"&&(o=Mc(o)),n.push([r,o])}):Object.keys(e).forEach(a=>{let r=e[a];typeof r=="object"&&(r=Mc(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"):xg(e,!0)},PN=e=>{const n=ft.innerParams.get(e);e.disableButtons(),n.returnInputValueOnDeny?r2(e,"deny"):bg(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${lg(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"?bg(e,o):xg(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"?bg(e,n):xg(e,n)})},bg=(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})},fw=(e,n)=>{e.close({isConfirmed:!0,value:n})},s2=(e,n)=>{e.rejectPromise(n)},xg=(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(td())||o===!1?(e.hideLoading(),_o(e)):fw(e,typeof o>"u"?n:o)}).catch(o=>s2(e||void 0,o))):fw(e,n)};function Dc(){const e=ft.innerParams.get(this);if(!e)return;const n=ft.domCache.get(this);an(n.loader),ad()?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"):v3()&&an(e.actions)};function l2(){const e=ft.innerParams.get(this),n=ft.domCache.get(this);return n?id(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;oObject.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:Dc,enableButtons:c2,enableInput:f2,getInput:l2,handleAwaitingPromise:_o,hideLoading:Dc,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 Oc=!1;const a5=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(n){e.container.onmouseup=()=>{},n.target===e.container&&(Oc=!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))&&(Oc=!0)}}},r5=(e,n,a)=>{n.container.onclick=r=>{if(Oc){Oc=!1;return}r.target===n.container&&ed(e.allowOutsideClick)&&a(il.backdrop)}},s5=e=>typeof e=="object"&&e.jquery,hw=e=>e instanceof Element||s5(e),l5=e=>{const n={};return typeof e[0]=="object"&&!hw(e[0])?Object.assign(n,e[0]):["title","html","icon"].forEach((a,r)=>{const o=e[r];typeof o=="string"||hw(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;aEe.timeout&&Ee.timeout.getTimerLeft(),A2=()=>{if(Ee.timeout)return w3(),Ee.timeout.stop()},C2=()=>{if(Ee.timeout){const e=Ee.timeout.start();return pg(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 pg(n,!0),n}},h5=()=>!!(Ee.timeout&&Ee.timeout.isRunning());let mw=!1;const km={};function m5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";km[e]=this,mw||(document.body.addEventListener("click",g5),mw=!0)}const g5=e=>{for(let n=e.target;n&&n!==document;n=n.parentNode)for(const a in km){const r=n.getAttribute(a);if(r){km[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;m1?a-1:0),o=1;o{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:fg,getConfirmButton:Ma,getContainer:fn,getDenyButton:Gr,getFocusableElements:hg,getFooter:Hx,getHtmlContainer:cg,getIcon:tl,getIconContent:h3,getImage:Ux,getInputLabel:m3,getLoader:al,getPopup:Je,getProgressSteps:dg,getTimerLeft:c5,getTimerProgressBar:nd,getTitle:Lx,getValidationMessage:td,increaseTimer:f5,isDeprecatedParameter:v2,isLoading:p3,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${lg(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),mg()&&(O5(n,e.scrollbarPadding,o),gN()),!ad()&&!Ee.previousActiveElement&&(Ee.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(a)),Ee.eventEmitter.emit("didOpen",a),na(n,Y["no-transition"])},_c=e=>{const n=Je();if(e.target!==n)return;const a=fn();n.removeEventListener("animationend",_c),n.removeEventListener("transitionend",_c),a.style.overflowY="auto"},D5=(e,n)=>{Vx(n)?(e.style.overflowY="hidden",n.addEventListener("animationend",_c),n.addEventListener("transitionend",_c)):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 gw={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=gw.email),e.input==="url"&&(e.inputValidator=gw.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("
            ")),R3(e)}let Ea;var ac=new WeakMap;class Mt{constructor(){if(r3(this,ac,void 0),typeof window>"u")return;Ea=this;for(var n=arguments.length,a=new Array(n),r=0;r1&&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}),mg()&&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 iw(ac,this).then(n)}finally(n){return iw(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:fg(),validationMessage:td(),progressSteps:dg()};return ft.domCache.set(e,n),n},P5=(e,n,a)=>{const r=nd();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&&pg(n.timer)})))},V5=(e,n)=>{if(!n.toast){if(!ed(n.allowEnterKey)){zx("allowEnterKey"),Q5();return}I5(e)||q5(e,n)||Tm(-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=Dc;Mt.prototype.disableLoading=Dc;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 Mm=function(e,n){return Mm=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])},Mm(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");Mm(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;rn},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 Qh=k,Qh}var Gh,yw;function X5(){if(yw)return Gh;yw=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 Gh=n,Gh}var $h,vw;function K5(){if(vw)return $h;vw=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 $h=a,$h}var Yh,ww;function Z5(){if(ww)return Yh;ww=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"},Yh=u,Yh}var Xh,bw;function J5(){return bw||(bw=1,Xh=Z5()),Xh}var W5=J5();const eT=Bc(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:xw(e.x,f,a.width,r),y:xw(e.y,m,a.height,r)}}function xw(e,n,a,r){var o=n*r/2-a/2;return rd(e,-o,o)}function Sw(e,n){return Math.sqrt(Math.pow(e.y-n.y,2)+Math.pow(e.x-n.x,2))}function Aw(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=rd(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=rd(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 Cw(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 rd(e,n,a){return Math.min(Math.max(e,n),a)}function ic(){for(var e=[],n=0;n0}).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.offsetWidthS?{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=rd(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 ya.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="https://myskin-v2.humicprototyping.com/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=",sd=()=>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"})})})}),Sg=({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(Ic,{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(sd,{}):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(cb,{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(db,{className:"m-1"})})]})]})]})};Sg.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=Ec({mutationFn:te=>ea.createDetection(te),onSuccess:te=>{var F;console.log("Detection submitted successfully:",te),g((F=te==null?void 0:te.data)==null?void 0:F.data),v(!1)},onError:te=>{var F,L,P;console.error("Detailed error response:",{status:(F=te.response)==null?void 0:F.status,data:(L=te.response)==null?void 0:L.data,headers:(P=te.response)==null?void 0:P.headers}),v(!1)}}),W=Ec({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 F=await fetch(te);if(!F.ok)throw new Error("Failed to fetch cropped image");const L=await F.blob();if(!L||L.size===0)throw new Error("Empty image blob");const P=new File([L],"diagnosis.jpg",{type:L.type||"image/jpeg"}),Q=new FormData;if(Q.append("image",P,P.name),_&&Z){Q.append("patient_id",Z.toString());for(let[le,N]of Q.entries())console.log(le,N instanceof File?`${N.name} (${N.type})`:N);R.mutate(Q)}else{for(let[le,N]of Q.entries())console.log(le,N instanceof File?`${N.name} (${N.type})`:N);W.mutate(Q)}}catch(F){console.error("Submission error details:",{error:F.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 F={doctorId:te.id,complaint:E};try{const L=await ea.updateDetection(p.id,F,_.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")}},G=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 F=te.target.files[0];F&&(n(URL.createObjectURL(F)),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(Sg,{handleDoctorSelect:G}),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="https://myskin-v2.humicprototyping.com/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(a3,{}),d.jsx("div",{id:"deteksi",children:d.jsx(pT,{})})]})},ld="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="https://myskin-v2.humicprototyping.com/assets/Ellipse%204-CrOw4YA8.png",bT=()=>{var y;const{id:e}=Hc(),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(sd,{})});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(Vc,{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:ld,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,Ew;function ST(){return Ew||(Ew=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 F=["th","st","nd","rd"],L=te%100;return"["+te+(F[(L-20)%10]||F[L]||F[0])+"]"}},_=function(te,F,L){var P=String(te);return!P||P.length>=F?te:""+Array(F+1-P.length).join(L)+te},Z={s:_,z:function(te){var F=-te.utcOffset(),L=Math.abs(F),P=Math.floor(L/60),Q=L%60;return(F<=0?"+":"-")+_(P,2,"0")+":"+_(Q,2,"0")},m:function te(F,L){if(F.date()1)return te(N[0])}else{var X=F.name;W[X]=F,Q=X}return!P&&Q&&(R=Q),Q||!P&&R},ne=function(te,F){if(re(te))return te.clone();var L=typeof F=="object"?F:{};return L.date=te,L.args=arguments,new Ge(L)},fe=Z;fe.l=G,fe.i=re,fe.w=function(te,F){return ne(te,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var Ge=function(){function te(L){this.$L=G(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[ce]=!0}var F=te.prototype;return F.parse=function(L){this.$d=function(P){var Q=P.date,le=P.utc;if(Q===null)return new Date(NaN);if(fe.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var N=Q.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(Q)}(L),this.init()},F.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()},F.$utils=function(){return fe},F.isValid=function(){return this.$d.toString()!==E},F.isSame=function(L,P){var Q=ne(L);return this.startOf(P)<=Q&&Q<=this.endOf(P)},F.isAfter=function(L,P){return ne(L){var v,b,x,S;const{id:e}=Hc(),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(sd,{})});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=>jw().diff(jw(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(Vc,{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:ld,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:ld,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 Rw="https://myskin-v2.humicprototyping.com/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,Nw=/\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>>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(Nw," ").trim(),b.unshift(b[0][v]=b[0][v]||{})):b[0][y[1]]=y[2].replace(Nw," ").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 od(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,Dm,Om;od.bind({g:1});let li=od.bind({k:1});function MT(e,n,a,r){_i.p=n,M2=e,Dm=a,Om=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:Dm&&Dm()},m),a.o=/ *go\d+/.test(p),m.className=od.apply(a,r)+(p?" "+p:"");let g=e;return e[0]&&(g=m.as||e,delete m.as),Om&&g[0]&&Om(m),M2(g,m)}return o}}var DT=e=>typeof e=="function",_m=(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=[],Kh={toasts:[],pausedAt:void 0},Ag=e=>{Kh=D2(Kh,e),zT.forEach(n=>{n(Kh)})},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 Ag({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=>{Ag({type:3,toastId:e})};Kt.remove=e=>Ag({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?_m(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?_m(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},_m(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);od` + 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}=Hc(),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?

            Hasil verifikasi tidak dapat diubah lagi
            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?Rw: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(Vc,{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||Rw,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:Zc,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 F;return((F=C==null?void 0:C.data)==null?void 0:F.data)||[]},[C]),Z=(_==null?void 0:_.filter(F=>{var L;return(L=F.verifiedBy)==null?void 0:L.toLowerCase().includes(m.toLowerCase())}))||[],R=Z.length,W=Math.ceil(R/g),ce=u*g,re=ce-g,G=Z.slice(re,ce),ne=F=>{b(F),o(!0)},fe=Ec({mutationFn:F=>ea.deleteSubmission(F,n),onSuccess:()=>{st.success("Data berhasil dihapus"),z(),o(!1),b(null)},onError:()=>{st.error("Gagal menghapus data")}}),Ge=()=>{uF+1)},Xe=()=>{u>1&&f(F=>F-1)};return d.jsxs(d.Fragment,{children:[r&&d.jsx(tg,{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:F=>{y(Number(F.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:F=>{p(F.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,{})})}):G.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})]})}):G.map((F,L)=>{const Q=parseFloat(F.diagnosisAi)>=50?"text-red-600":"text-green-600",le=F.status==="rejected"?"text-red-600":F.status==="pending"?"text-yellow-600":"text-green-600";return d.jsxs("tr",{className:"*:align-middle *:py-3 *:px-6",children:[d.jsx("td",{children:F.submittedAt}),d.jsx("td",{className:`font-semibold ${Q}`,children:F.diagnosisAi}),d.jsx("td",{children:d.jsx("div",{className:"w-20 h-16 rounded-lg flex items-center justify-start overflow-hidden",children:d.jsx("img",{className:"max-w-full max-h-full object-cover",src:F.imageUrl,alt:"Deteksi"})})}),d.jsx("td",{className:"px-6 text-ellipsis",children:F.complaint}),d.jsx("td",{className:`px-6 font-semibold capitalize ${le}`,children:F.status}),d.jsx("td",{children:F.verifiedAt}),d.jsx("td",{children:F.verifiedBy}),d.jsx("td",{children:F.diagnosis}),d.jsx("td",{children:F.doctorNote}),d.jsx("td",{children:d.jsxs("div",{className:"flex gap-x-3",children:[d.jsx("button",{type:"button",onClick:()=>E(`/pengajuan/info/${F.id}`),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Zc,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(F.id)})})]})})]},L)})})]})}),d.jsx("div",{className:"lg:hidden mt-4 space-y-4",children:G.map((F,L)=>{const P={date:F.submittedAt,persentase:F.diagnosisAi,keluhan:F.complaint,status:F.status,tglVerif:F.verifiedAt,verifiedBy:F.verifiedBy,diagnosis:F.diagnosis,doctorNote:F.doctorNote};return d.jsx(O2,{item:P,handleDelete:()=>ne(F.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"})]})]})]})]})},Bm=({children:e})=>{const n=localStorage.getItem("token"),{data:a}=JSON.parse(localStorage.getItem("user")),r=Da();return!n||!a?d.jsx(jh,{to:"/",replace:!0}):a.role==="patient"&&!r.pathname.startsWith("/deteksi")&&!r.pathname.startsWith("/pengajuan")?d.jsx(jh,{to:"/",replace:!0}):a.role==="doctor"&&!r.pathname.startsWith("/dokter")?d.jsx(jh,{to:"/dokter",replace:!0}):e};Bm.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(Ic,{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:[Sc(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:Sc(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 px-6",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="https://myskin-v2.humicprototyping.com/assets/errorPage-c4bJcYnY.jpeg",Zh=()=>{const e=eb(),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}=Hc(),{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(sd,{})});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(Vc,{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:ld,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(Sg,{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(Zh,{}),children:[{element:d.jsx(dc,{type:"default"}),errorElement:d.jsx(Zh,{}),children:[{path:"/",element:d.jsx(wT,{})},{path:"faq",element:d.jsx(ZR,{})}]},{element:d.jsx(Bm,{children:d.jsx(dc,{type:"default"})}),errorElement:d.jsx(Zh,{}),children:[{path:"deteksi",element:d.jsx(KR,{})},{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(Bm,{children:d.jsx(dc,{type:"doctor"})}),children:[{path:"",element:d.jsx(nR,{})},{path:"daftar-pasien",element:d.jsx(W4,{})},{path:"daftar-pengajuan",element:d.jsx(tR,{})},{path:"riwayat-verifikasi",element:d.jsx(u6,{})},{path:"riwayat-verifikasi/informasi-penyakit/:id",element:d.jsx(s6,{})}]}]}]),h6=new bR;YS.createRoot(document.getElementById("root")).render(d.jsx(Yi.StrictMode,{children:d.jsx(ER,{client:h6,children:d.jsx(Lb,{children:d.jsx(ZC,{router:f6})})})})); diff --git a/assets/index-LfvfHwe5.css b/assets/index-LfvfHwe5.css new file mode 100644 index 0000000..7d33953 --- /dev/null +++ b/assets/index-LfvfHwe5.css @@ -0,0 +1 @@ +/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-orange-400:oklch(.75 .183 55.934);--color-orange-600:oklch(.646 .222 41.116);--color-yellow-600:oklch(.681 .162 75.834);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-sky-300:oklch(.828 .111 230.318);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-xl:36rem;--container-6xl:72rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.top-17{top:calc(var(--spacing)*17)}.top-28{top:calc(var(--spacing)*28)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-3{left:calc(var(--spacing)*3)}.left-8{left:calc(var(--spacing)*8)}.z-10{z-index:10}.z-50{z-index:50}.z-\[20\]{z-index:20}.col-span-4{grid-column:span 4/span 4}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-1{margin:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing)*2)}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.my-8{margin-block:calc(var(--spacing)*8)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-10{margin-top:calc(var(--spacing)*10)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-3{margin-right:calc(var(--spacing)*3)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.mb-\[60px\]{margin-bottom:60px}.-ml-1{margin-left:calc(var(--spacing)*-1)}.ml-2{margin-left:calc(var(--spacing)*2)}.\!table{display:table!important}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-24{height:calc(var(--spacing)*24)}.h-28{height:calc(var(--spacing)*28)}.h-32{height:calc(var(--spacing)*32)}.h-40{height:calc(var(--spacing)*40)}.h-48{height:calc(var(--spacing)*48)}.h-60{height:calc(var(--spacing)*60)}.h-64{height:calc(var(--spacing)*64)}.h-80{height:calc(var(--spacing)*80)}.h-96{height:calc(var(--spacing)*96)}.h-\[300px\]{height:300px}.h-full{height:100%}.h-screen{height:100vh}.max-h-0{max-height:calc(var(--spacing)*0)}.max-h-58{max-height:calc(var(--spacing)*58)}.max-h-\[90\%\]{max-height:90%}.max-h-\[400px\]{max-height:400px}.max-h-full{max-height:100%}.min-h-96{min-height:calc(var(--spacing)*96)}.min-h-\[120px\]{min-height:120px}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing)*3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-28{width:calc(var(--spacing)*28)}.w-32{width:calc(var(--spacing)*32)}.w-36{width:calc(var(--spacing)*36)}.w-40{width:calc(var(--spacing)*40)}.w-48{width:calc(var(--spacing)*48)}.w-72{width:calc(var(--spacing)*72)}.w-96{width:calc(var(--spacing)*96)}.w-\[30rem\]{width:30rem}.w-\[1200px\]{width:1200px}.w-full{width:100%}.max-w-\[60\%\]{max-width:60%}.max-w-\[250px\]{max-width:250px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.flex-1{flex:1}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.animate-bounce{animation:var(--animate-bounce)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-x-12{column-gap:calc(var(--spacing)*12)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-5{row-gap:calc(var(--spacing)*5)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[16px\]{border-radius:16px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-b,.border-b-\[1px\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[\#12476B\]{border-color:#12476b}.border-\[\#B8B8B8\]{border-color:#b8b8b8}.border-\[\#E3E3E3\]{border-color:#e3e3e3}.border-\[\#f7f7f7\]{border-color:#f7f7f7}.border-black{border-color:var(--color-black)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-800{border-color:var(--color-gray-800)}.border-transparent{border-color:#0000}.border-t-blue-400{border-top-color:var(--color-blue-400)}.border-t-red-400{border-top-color:var(--color-red-400)}.bg-\[\#1E3A5F\]{background-color:#1e3a5f}.bg-\[\#12476B\]{background-color:#12476b}.bg-\[\#F6F4F4\]{background-color:#f6f4f4}.bg-black\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}.bg-black\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-orange-400{background-color:var(--color-orange-400)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200{background-color:var(--color-red-200)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-700{background-color:var(--color-red-700)}.bg-sky-300{background-color:var(--color-sky-300)}.bg-sky-700{background-color:var(--color-sky-700)}.bg-sky-800{background-color:var(--color-sky-800)}.bg-sky-900{background-color:var(--color-sky-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/60{background-color:color-mix(in oklab,var(--color-white)60%,transparent)}.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-10{padding-inline:calc(var(--spacing)*10)}.px-12{padding-inline:calc(var(--spacing)*12)}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.py-12{padding-block:calc(var(--spacing)*12)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-32{padding-top:calc(var(--spacing)*32)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-10{padding-right:calc(var(--spacing)*10)}.pr-\[18px\]{padding-right:18px}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[20px\]{font-size:20px}.text-\[24px\]{font-size:24px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[30px\]{font-size:30px}.leading-10{--tw-leading:calc(var(--spacing)*10);line-height:calc(var(--spacing)*10)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extralight{--tw-font-weight:var(--font-weight-extralight);font-weight:var(--font-weight-extralight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\[\#2699E8\]{color:#2699e8}.text-\[\#12476B\]{color:#12476b}.text-\[\#646464\]{color:#646464}.text-\[\#C11616\]{color:#c11616}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-900{color:var(--color-blue-900)}.text-blue-950{color:var(--color-blue-950)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-sky-700{color:var(--color-sky-700)}.text-sky-800{color:var(--color-sky-800)}.text-sky-900{color:var(--color-sky-900)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.capitalize{text-transform:capitalize}.italic{font-style:italic}.accent-\[\#1E3A5F\]{accent-color:#1e3a5f}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[animation-delay\:\.3s\]{animation-delay:.3s}.\[animation-delay\:\.7s\]{animation-delay:.7s}:is(.\*\:px-6>*){padding-inline:calc(var(--spacing)*6)}:is(.\*\:py-3>*){padding-block:calc(var(--spacing)*3)}:is(.\*\:text-start>*){text-align:start}:is(.\*\:align-middle>*){vertical-align:middle}@media (hover:hover){.hover\:bg-\[\#0f3c5b\]:hover{background-color:#0f3c5b}.hover\:bg-\[\#1A2F4A\]:hover{background-color:#1a2f4a}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-orange-600:hover{background-color:var(--color-orange-600)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-sky-600:hover{background-color:var(--color-sky-600)}.hover\:bg-sky-900:hover{background-color:var(--color-sky-900)}.hover\:text-\[\#12476B\]:hover{color:#12476b}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-red-500:hover{color:var(--color-red-500)}}.focus\:border-transparent:focus{border-color:#0000}.focus\:font-bold:focus{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-\[\#12476B\]:focus{--tw-ring-color:#12476b}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-orange-400:focus{--tw-ring-color:var(--color-orange-400)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=48rem){.md\:top-48{top:calc(var(--spacing)*48)}.md\:left-32{left:calc(var(--spacing)*32)}.md\:mt-6{margin-top:calc(var(--spacing)*6)}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-\[32rem\]{height:32rem}.md\:max-h-40{max-height:calc(var(--spacing)*40)}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.3333%}.md\:w-64{width:calc(var(--spacing)*64)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-nowrap{flex-wrap:nowrap}.md\:justify-between{justify-content:space-between}:where(.md\:space-x-8>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*8)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-lg{border-radius:var(--radius-lg)}.md\:border{border-style:var(--tw-border-style);border-width:1px}.md\:border-gray-400{border-color:var(--color-gray-400)}.md\:bg-white{background-color:var(--color-white)}.md\:px-6{padding-inline:calc(var(--spacing)*6)}.md\:px-20{padding-inline:calc(var(--spacing)*20)}.md\:px-32{padding-inline:calc(var(--spacing)*32)}.md\:py-3{padding-block:calc(var(--spacing)*3)}.md\:py-8{padding-block:calc(var(--spacing)*8)}.md\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.md\:font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}}@media (width>=64rem){.lg\:relative{position:relative}.lg\:top-0{top:calc(var(--spacing)*0)}.lg\:right-0{right:calc(var(--spacing)*0)}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:mx-0{margin-inline:calc(var(--spacing)*0)}.lg\:mt-0{margin-top:calc(var(--spacing)*0)}.lg\:mb-0{margin-bottom:calc(var(--spacing)*0)}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:table{display:table}.lg\:w-1\/2{width:50%}.lg\:w-6xl{width:var(--container-6xl)}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:rounded-xl{border-radius:var(--radius-xl)}.lg\:p-10{padding:calc(var(--spacing)*10)}.lg\:px-0{padding-inline:calc(var(--spacing)*0)}.lg\:px-3{padding-inline:calc(var(--spacing)*3)}.lg\:px-32{padding-inline:calc(var(--spacing)*32)}.lg\:py-32{padding-block:calc(var(--spacing)*32)}.lg\:pt-5{padding-top:calc(var(--spacing)*5)}}}@font-face{font-family:Urbanist;src:url(https://myskin-v2.humicprototyping.com/assets/Urbanist-Regular-BFGlRth7.ttf)format("truetype")}@font-face{font-family:Urbanist;font-weight:600;src:url(https://myskin-v2.humicprototyping.com/assets/Urbanist-SemiBold-pOjqLDOP.ttf)format("truetype")}@font-face{font-family:Urbanist;font-weight:700;src:url(https://myskin-v2.humicprototyping.com/assets/Urbanist-Bold-_m6Tq3Qd.ttf)format("truetype")}html{scroll-behavior:smooth}body{font-family:Urbanist,sans-serif}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}} diff --git a/assets/index-bqXuGEcj.css b/assets/index-bqXuGEcj.css new file mode 100644 index 0000000..3f1beca --- /dev/null +++ b/assets/index-bqXuGEcj.css @@ -0,0 +1 @@ +/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-orange-400:oklch(.75 .183 55.934);--color-orange-600:oklch(.646 .222 41.116);--color-yellow-600:oklch(.681 .162 75.834);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-sky-300:oklch(.828 .111 230.318);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-xl:36rem;--container-6xl:72rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-sm:8px;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.top-17{top:calc(var(--spacing)*17)}.top-28{top:calc(var(--spacing)*28)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-3{left:calc(var(--spacing)*3)}.left-8{left:calc(var(--spacing)*8)}.z-10{z-index:10}.z-50{z-index:50}.z-\[20\]{z-index:20}.col-span-4{grid-column:span 4/span 4}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-1{margin:calc(var(--spacing)*1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing)*2)}.my-4{margin-block:calc(var(--spacing)*4)}.my-5{margin-block:calc(var(--spacing)*5)}.my-6{margin-block:calc(var(--spacing)*6)}.my-8{margin-block:calc(var(--spacing)*8)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-10{margin-top:calc(var(--spacing)*10)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-3{margin-right:calc(var(--spacing)*3)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.mb-\[60px\]{margin-bottom:60px}.-ml-1{margin-left:calc(var(--spacing)*-1)}.ml-2{margin-left:calc(var(--spacing)*2)}.\!table{display:table!important}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-24{height:calc(var(--spacing)*24)}.h-28{height:calc(var(--spacing)*28)}.h-32{height:calc(var(--spacing)*32)}.h-40{height:calc(var(--spacing)*40)}.h-48{height:calc(var(--spacing)*48)}.h-60{height:calc(var(--spacing)*60)}.h-64{height:calc(var(--spacing)*64)}.h-80{height:calc(var(--spacing)*80)}.h-96{height:calc(var(--spacing)*96)}.h-\[300px\]{height:300px}.h-full{height:100%}.h-screen{height:100vh}.max-h-0{max-height:calc(var(--spacing)*0)}.max-h-58{max-height:calc(var(--spacing)*58)}.max-h-\[90\%\]{max-height:90%}.max-h-\[400px\]{max-height:400px}.max-h-full{max-height:100%}.min-h-96{min-height:calc(var(--spacing)*96)}.min-h-\[120px\]{min-height:120px}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-2\/3{width:66.6667%}.w-3{width:calc(var(--spacing)*3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-28{width:calc(var(--spacing)*28)}.w-32{width:calc(var(--spacing)*32)}.w-36{width:calc(var(--spacing)*36)}.w-40{width:calc(var(--spacing)*40)}.w-48{width:calc(var(--spacing)*48)}.w-72{width:calc(var(--spacing)*72)}.w-96{width:calc(var(--spacing)*96)}.w-\[30rem\]{width:30rem}.w-\[1200px\]{width:1200px}.w-full{width:100%}.max-w-\[60\%\]{max-width:60%}.max-w-\[250px\]{max-width:250px}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.flex-1{flex:1}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.animate-bounce{animation:var(--animate-bounce)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-x-12{column-gap:calc(var(--spacing)*12)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-5{row-gap:calc(var(--spacing)*5)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[16px\]{border-radius:16px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b,.border-b-\[1px\]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[\#12476B\]{border-color:#12476b}.border-\[\#B8B8B8\]{border-color:#b8b8b8}.border-\[\#E3E3E3\]{border-color:#e3e3e3}.border-\[\#f7f7f7\]{border-color:#f7f7f7}.border-black{border-color:var(--color-black)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-800{border-color:var(--color-gray-800)}.border-sky-900{border-color:var(--color-sky-900)}.border-transparent{border-color:#0000}.border-t-blue-400{border-top-color:var(--color-blue-400)}.border-t-red-400{border-top-color:var(--color-red-400)}.bg-\[\#1E3A5F\]{background-color:#1e3a5f}.bg-\[\#12476B\]{background-color:#12476b}.bg-\[\#F6F4F4\]{background-color:#f6f4f4}.bg-black\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}.bg-black\/40{background-color:color-mix(in oklab,var(--color-black)40%,transparent)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-500{background-color:var(--color-gray-500)}.bg-orange-400{background-color:var(--color-orange-400)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-200{background-color:var(--color-red-200)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-700{background-color:var(--color-red-700)}.bg-sky-300{background-color:var(--color-sky-300)}.bg-sky-700{background-color:var(--color-sky-700)}.bg-sky-800{background-color:var(--color-sky-800)}.bg-sky-900{background-color:var(--color-sky-900)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/60{background-color:color-mix(in oklab,var(--color-white)60%,transparent)}.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-10{padding-inline:calc(var(--spacing)*10)}.px-12{padding-inline:calc(var(--spacing)*12)}.py-0{padding-block:calc(var(--spacing)*0)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.py-12{padding-block:calc(var(--spacing)*12)}.py-20{padding-block:calc(var(--spacing)*20)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-32{padding-top:calc(var(--spacing)*32)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-10{padding-right:calc(var(--spacing)*10)}.pr-\[18px\]{padding-right:18px}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[20px\]{font-size:20px}.text-\[24px\]{font-size:24px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[30px\]{font-size:30px}.leading-10{--tw-leading:calc(var(--spacing)*10);line-height:calc(var(--spacing)*10)}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extralight{--tw-font-weight:var(--font-weight-extralight);font-weight:var(--font-weight-extralight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-\[\#2699E8\]{color:#2699e8}.text-\[\#12476B\]{color:#12476b}.text-\[\#646464\]{color:#646464}.text-\[\#C11616\]{color:#c11616}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-900{color:var(--color-blue-900)}.text-blue-950{color:var(--color-blue-950)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-sky-700{color:var(--color-sky-700)}.text-sky-800{color:var(--color-sky-800)}.text-sky-900{color:var(--color-sky-900)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.capitalize{text-transform:capitalize}.italic{font-style:italic}.accent-\[\#1E3A5F\]{accent-color:#1e3a5f}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[animation-delay\:\.3s\]{animation-delay:.3s}.\[animation-delay\:\.7s\]{animation-delay:.7s}:is(.\*\:px-6>*){padding-inline:calc(var(--spacing)*6)}:is(.\*\:py-3>*){padding-block:calc(var(--spacing)*3)}:is(.\*\:text-start>*){text-align:start}:is(.\*\:align-middle>*){vertical-align:middle}@media (hover:hover){.hover\:bg-\[\#0f3c5b\]:hover{background-color:#0f3c5b}.hover\:bg-\[\#1A2F4A\]:hover{background-color:#1a2f4a}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-orange-600:hover{background-color:var(--color-orange-600)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-sky-600:hover{background-color:var(--color-sky-600)}.hover\:bg-sky-900:hover{background-color:var(--color-sky-900)}.hover\:text-\[\#12476B\]:hover{color:#12476b}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-red-500:hover{color:var(--color-red-500)}}.focus\:border-transparent:focus{border-color:#0000}.focus\:font-bold:focus{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-\[\#12476B\]:focus{--tw-ring-color:#12476b}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-orange-400:focus{--tw-ring-color:var(--color-orange-400)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (width>=40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=48rem){.md\:top-48{top:calc(var(--spacing)*48)}.md\:left-32{left:calc(var(--spacing)*32)}.md\:mt-6{margin-top:calc(var(--spacing)*6)}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-\[32rem\]{height:32rem}.md\:max-h-40{max-height:calc(var(--spacing)*40)}.md\:w-1\/2{width:50%}.md\:w-1\/3{width:33.3333%}.md\:w-64{width:calc(var(--spacing)*64)}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:flex-nowrap{flex-wrap:nowrap}.md\:justify-between{justify-content:space-between}:where(.md\:space-x-8>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*8)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-lg{border-radius:var(--radius-lg)}.md\:border{border-style:var(--tw-border-style);border-width:1px}.md\:border-gray-400{border-color:var(--color-gray-400)}.md\:bg-white{background-color:var(--color-white)}.md\:px-6{padding-inline:calc(var(--spacing)*6)}.md\:px-20{padding-inline:calc(var(--spacing)*20)}.md\:px-32{padding-inline:calc(var(--spacing)*32)}.md\:py-3{padding-block:calc(var(--spacing)*3)}.md\:py-8{padding-block:calc(var(--spacing)*8)}.md\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.md\:font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}}@media (width>=64rem){.lg\:relative{position:relative}.lg\:top-0{top:calc(var(--spacing)*0)}.lg\:right-0{right:calc(var(--spacing)*0)}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-span-5{grid-column:span 5/span 5}.lg\:col-span-7{grid-column:span 7/span 7}.lg\:mx-0{margin-inline:calc(var(--spacing)*0)}.lg\:mt-0{margin-top:calc(var(--spacing)*0)}.lg\:mb-0{margin-bottom:calc(var(--spacing)*0)}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:table{display:table}.lg\:w-1\/2{width:50%}.lg\:w-6xl{width:var(--container-6xl)}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:rounded-xl{border-radius:var(--radius-xl)}.lg\:p-10{padding:calc(var(--spacing)*10)}.lg\:px-0{padding-inline:calc(var(--spacing)*0)}.lg\:px-3{padding-inline:calc(var(--spacing)*3)}.lg\:px-32{padding-inline:calc(var(--spacing)*32)}.lg\:py-32{padding-block:calc(var(--spacing)*32)}.lg\:pt-5{padding-top:calc(var(--spacing)*5)}}}@font-face{font-family:Urbanist;src:url(https://myskin-v2.humicprototyping.com/assets/Urbanist-Regular-BFGlRth7.ttf)format("truetype")}@font-face{font-family:Urbanist;font-weight:600;src:url(https://myskin-v2.humicprototyping.com/assets/Urbanist-SemiBold-pOjqLDOP.ttf)format("truetype")}@font-face{font-family:Urbanist;font-weight:700;src:url(https://myskin-v2.humicprototyping.com/assets/Urbanist-Bold-_m6Tq3Qd.ttf)format("truetype")}html{scroll-behavior:smooth}body{font-family:Urbanist,sans-serif}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}} diff --git a/assets/index-h0msZ7rN.js b/assets/index-h0msZ7rN.js new file mode 100644 index 0000000..86594fb --- /dev/null +++ b/assets/index-h0msZ7rN.js @@ -0,0 +1,430 @@ +var Gy=e=>{throw TypeError(e)};var gh=(e,n,a)=>n.has(e)||Gy("Cannot "+a);var M=(e,n,a)=>(gh(e,n,"read from private field"),a?a.call(e):n.get(e)),Ae=(e,n,a)=>n.has(e)?Gy("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),he=(e,n,a,r)=>(gh(e,n,"write to private field"),r?r.call(e,a):n.set(e,a),a),Ue=(e,n,a)=>(gh(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 Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={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 $y;function FS(){if($y)return to;$y=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 Yy;function PS(){return Yy||(Yy=1,ph.exports=FS()),ph.exports}var d=PS(),yh={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 Xy;function VS(){if(Xy)return Le;Xy=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"),g=Symbol.for("react.suspense"),p=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 G(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 F(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,F(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,"$&/")+"/"),F(se,X,oe,"",function(Oe){return Oe})):se!=null&&(G(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>>1,N=L[le];if(0>>1;leo(ue,Q))seo(Se,ue)?(L[le]=Se,L[se]=Q,le=se):(L[le]=ue,L[oe]=Q,le=oe);else if(seo(Se,Q))L[le]=Se,L[se]=Q,le=se;else break e}}return P}function o(L,P){var Q=L.sortIndex-P.sortIndex;return Q!==0?Q:L.id-P.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 g=[],p=[],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 P=a(p);P!==null;){if(P.callback===null)r(p);else if(P.startTime<=L)r(p),P.sortIndex=P.expirationTime,n(g,P);else break;P=a(p)}}function Z(L){if(E=!1,_(L),!S)if(a(g)!==null)S=!0,te();else{var P=a(p);P!==null&&F(Z,P.startTime-L)}}var R=!1,W=-1,ce=5,re=-1;function G(){return!(e.unstable_now()-reL&&G());){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),P=!0;break t}v===a(g)&&r(g),_(L)}else r(g);v=a(g)}if(v!==null)P=!0;else{var X=a(p);X!==null&&F(Z,X.startTime-L),P=!1}}break e}finally{v=null,b=Q,x=!1}P=void 0}}finally{P?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 F(L,P){W=C(function(){L(e.unstable_now())},P)}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||125le?(L.sortIndex=Q,n(p,L),a(g)===null&&L===a(p)&&(E?(k(W),W=-1):E=!0,F(Z,Q-le))):(L.sortIndex=N,n(g,L),S||x||(S=!0,te())),L},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(L){var P=b;return function(){var Q=b;b=P;try{return L.apply(this,arguments)}finally{b=Q}}}}(bh)),bh}var Jy;function qS(){return Jy||(Jy=1,wh.exports=IS()),wh.exports}var xh={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 Wy;function QS(){if(Wy)return Wt;Wy=1;var e=zm();function n(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),xh.exports=QS(),xh.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 tv;function GS(){if(tv)return no;tv=1;var e=qS(),n=zm(),a=Hw();function r(t){var i="https://react.dev/errors/"+t;if(1)":-1c||T[l]!==B[c]){var J=` +`+T[l].replace(" at new "," at ");return t.displayName&&J.includes("")&&(J=J.replace("",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=F(t.type,!1),t;case 11:return t=F(t.type.render,!1),t;case 1:return t=F(t.type,!0),t;default:return""}}function P(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 Q(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(Q(t)!==t)throw Error(r(188))}function X(t){var i=t.alternate;if(!i){if(i=Q(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)?xy(i):0;break;default:if(t=t===8?i.parentNode:i,i=t.tagName,t=t.namespaceURI)t=xy(t),i=Sy(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=Sy(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,ud=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,cd=Math.LN2;function Vo(t){return t>>>=0,t===0?32:31-(ul(t)/cd|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 dd(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"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 Cg(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function B2(t){var i=Cg(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 Eg(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Cg(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 fd(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?hd(t,w,Hn(i)):s!=null?hd(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 jg(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 hd(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=ml),Hg=" ",Fg=!1;function Pg(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 Vg(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 Vg(i);case"keypress":return i.which!==32?null:(Fg=!0,Hg);case"textInput":return t=i.data,t===Hg&&Fg?null:t;default:return null}}function h1(t,i){if(ns)return t==="compositionend"||!Cd&&Pg(t,i)?(t=Og(),Yo=wd=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)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=Kg(s)}}function Jg(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Jg(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Wg(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 Rd(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=Wg(i);i=t.focusedElem;var l=t.selectionRange;if(s!==i&&i&&i.ownerDocument&&Jg(i.ownerDocument.documentElement,i)){if(l!==null&&Rd(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=Zg(i,h);var w=Zg(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=document.documentMode,as=null,Nd=null,vl=null,Td=!1;function ep(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Td||as==null||as!==Go(l)||(l=as,"selectionStart"in l&&Rd(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(Nd,"onSelect"),0>=w,c-=w,Ha=1<<32-Zt(i)+c|s<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(;ReRe?(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===g&&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===g){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&&yp(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===g?(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=Df(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=Mf(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=vp(!0),wp=vp(!1),cs=Fe(null),ou=Fe(0);function bp(t,i){t=Za,De(ou,t),De(cs,i),Za=t|i.baseLanes}function Ld(){De(ou,Za),De(cs,cs.current)}function Ud(){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 xp(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 Hd(){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,Fd=0,ds=0,fs=null;function T1(t,i){if(Rl===null){var s=Rl=[];Fd=0,ds=$f(),fs={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Fd++,i.then(Sp,Sp),i}function Sp(){if(--Fd===0&&Rl!==null){fs!==null&&(fs.status="fulfilled");var t=Rl;Rl=null,ds=0,fs=null;for(var i=0;ih?h:8;var w=G.T,A={};G.T=A,af(t,!1,i,s);try{var T=c(),B=G.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,G.T=w}}function B1(){}function tf(t,i,s,l){if(t.tag!==5)throw Error(r(476));var c=Wp(t).queue;Jp(t,c,i,Se,s===null?B1:function(){return e0(t),s(l)})}function Wp(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 e0(t){var i=Wp(t).next.queue;kl(t,i,{},Rn())}function nf(){return Jt(Kl)}function t0(){return _t().memoizedState}function n0(){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:Hd()},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)?i0(i,s):(s=Dd(t,i,s,l),s!==null&&(ln(s,t,l),r0(s,i,l)))}function a0(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))i0(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=Dd(t,i,c,l),s!==null)return ln(s,t,l),r0(s,i,l),!0}return!1}function af(t,i,s,l){if(l={lane:2,revertLane:$f(),action:l,hasEagerState:!1,eagerState:null,next:null},vu(t)){if(i)throw Error(r(479))}else i=Dd(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 i0(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 r0(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,$p.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=Kd(t);var i=t.queue,s=a0.bind(null,He,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:Wd,useDeferredValue:function(t,i){var s=pn();return ef(s,t,i)},useTransition:function(){var t=Kd(!1);return t=Jp.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||Np(l,i,s)}c.memoizedState=s;var h={value:s,getSnapshot:i};return c.queue=h,qp(kp.bind(null,l,h,t),[t]),l.flags|=2048,gs(9,Tp.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 title"))),Xt(h,l,s),h[pe]=t,lt(h),l=h;break e;case"link":var w=Dy("link","href",c).get(l+(s.href||""));if(w){for(var A=0;A<\/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||by(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&&(Ff(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&&Zf(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;)Y0(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),Ud(),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(_d(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),Ud(),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 Z0(t,i){switch(_d(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),Ud(),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,Of=!1,Za=0,At=0,Ci=0,Ar=0,_f=0,Xn=0,bs=0,Pl=null,xa=null,Bf=!1,zf=0,Ru=1/0,Nu=null,Ei=null,Tu=!1,Cr=null,Vl=0,Lf=0,Uf=null,Il=0,Hf=null;function Rn(){if((vt&2)!==0&&Ye!==0)return Ye&-Ye;if(G.T!==null){var t=ds;return t!==0?t:$f()}return be()}function J0(){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 W0(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):If(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=If(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=If(A,w,!1),w!==2){if(Of&&!T){A.errorRecoveryDisabledLanes|=h,Ar|=h,c=4;break e}h=xa,xa=c,h!==null&&Ff(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=zf+300-hn(),10s?32:s,G.T=null,Cr===null)var h=!1;else{s=Uf,Uf=null;var w=Cr,A=Vl;if(Cr=null,Vl=0,(vt&6)!==0)throw Error(r(331));var T=vt;if(vt|=4,G0(w.current),I0(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,G.T=l,oy(t,i)}}return!1}function uy(t,i,s){i=Vn(s,i),i=lf(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)uy(t,t,s);else for(;i!==null;){if(i.tag===3){uy(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=f0(2),l=wi(i,s,2),l!==null&&(h0(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)||(Of=!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()-zf?(vt&2)===0&&xs(t,0):_f|=s,bs===Ye&&(bs=0)),Sa(t)}function cy(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),cy(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),cy(t,s)}function tS(t,i){return ll(t,i)}var Du=null,Cs=null,Qf=!1,Ou=!1,Gf=!1,Er=0;function Sa(t){t!==Cs&&t.next===null&&(Cs===null?Du=Cs=t:Cs=Cs.next=t),Ou=!0,Qf||(Qf=!0,aS(nS))}function ql(t,i){if(!Gf&&Ou){Gf=!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,hy(l,h))}else h=Ye,h=_a(l,l===ot?h:0),(h&3)===0||ar(l,h)||(s=!0,hy(l,h));l=l.next}while(s);Gf=!1}}function nS(){Ou=Qf=!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=dy(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 dy(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,h=t.pendingLanes&-62914561;0"u"?null:document;function Ny(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+'"]'),Ry.has(c)||(Ry.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),Ny("dns-prefetch",t,null)}function bS(t,i){Wa.C(t,i),Ny("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))&&sh(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))&&lh(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))&&lh(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 Ty(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 ky(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 My(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=ky(s),(c=Kn.get(c))&&sh(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),lh(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 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 _y(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=ky(s),(c=Kn.get(c))&&sh(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&&oh(t,t.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),vh.exports=GS(),vh.exports}var YS=$S(),ao={},av;function XS(){if(av)return ao;av=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.parse=f,ao.serialize=p;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=g(b,z,R),ce=b.slice(R,W);if(S[ce]===void 0){let re=m(b,z+1,Z),G=g(b,Z,re);const ne=C(b.slice(re,G));S[ce]=ne}k=Z+1}while(kS;){const E=b.charCodeAt(--x);if(E!==32&&E!==9)return x+1}return S}function p(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 Fw=e=>{throw TypeError(e)},KS=(e,n,a)=>n.has(e)||Fw("Cannot "+a),Sh=(e,n,a)=>(KS(e,n,"read from private field"),a?a.call(e):n.get(e)),ZS=(e,n,a)=>n.has(e)?Fw("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),iv="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 rv(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",g=null,p=y();p==null&&(p=0,f.replaceState({...f.state,idx:p},""));function y(){return(f.state||{idx:null}).idx}function v(){m="POP";let C=y(),k=C==null?null:C-p;p=C,g&&g({action:m,location:E.location,delta:k})}function b(C,k){m="PUSH";let z=go(E.location,C,k);p=y()+1;let _=rv(z,p),Z=E.createHref(z);try{f.pushState(_,"",Z)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(Z)}u&&g&&g({action:m,location:E.location,delta:1})}function x(C,k){m="REPLACE";let z=go(E.location,C,k);p=y();let _=rv(z,p),Z=E.createHref(z);f.replaceState(_,"",Z),u&&g&&g({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(g)throw new Error("A history only accepts one active listener");return o.addEventListener(iv,v),g=C,()=>{o.removeEventListener(iv,v),g=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,sv=class{constructor(e){if(ZS(this,co,new Map),e)for(let[n,a]of e)this.set(n,a)}get(e){if(Sh(this,co).has(e))return Sh(this,co).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){Sh(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 g={...o,...n(o),id:m};return r[m]=g,g}else{let g={...o,...n(o),id:m,children:void 0};return r[m]=g,o.children&&(g.children=gc(o.children,n,f,r)),g}})}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=Pw(e);iA(f);let m=null;for(let g=0;m==null&&g{let g={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};g.relativePath.startsWith("/")&&(Ie(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length));let p=Ta([r,g.relativePath]),y=a.concat(g);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 "${p}".`),Pw(u.children,n,y,p)),!(u.path==null&&!u.index)&&n.push({path:p,score:dA(p,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 g of Vw(u.path))o(u,f,g)}),n}function Vw(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=Vw(r.join("/")),m=[];return m.push(...f.map(g=>g===""?u:[u,g].join("/"))),o&&m.push(...f),m.map(g=>e.startsWith("/")&&g===""?"/":g)}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,lv=e=>e==="*";function dA(e,n){let a=e.split("/"),r=a.length;return a.some(lv)&&(r+=cA),n&&(r+=lA),a.filter(o=>!lv(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{if(y==="*"){let S=m[b]||"";f=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const x=m[b];return v&&!x?p[y]=void 0:p[y]=(x||"").replace(/%2F/g,"/"),p},{}),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,g)=>(r.push({paramName:m,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));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 Ah(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 and the router will parse it for you.`}function Iw(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function zc(e){let n=Iw(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function Lc(e,n,a,r=!1){let o;typeof e=="string"?o=Ji(e):(o={...e},Ie(!o.pathname||!o.pathname.includes("?"),Ah("?","pathname","search",o)),Ie(!o.pathname||!o.pathname.includes("#"),Ah("#","pathname","hash",o)),Ie(!o.search||!o.search.includes("#"),Ah("#","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 g=pA(o,m),p=f&&f!=="/"&&f.endsWith("/"),y=(u||f===".")&&a.endsWith("/");return!g.pathname.endsWith("/")&&(p||y)&&(g.pathname+="/"),g}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]),Ch={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},Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Qw="remix-router-transitions",Gw=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||"/",g=e.dataStrategy||OA,p={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}=wv(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=>!Wh(ie.route,D,H))}else _=C.every(q=>!Wh(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:Ch,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,G=!1,ne=new Map,fe=null,Ge=!1,Xe=!1,te=new Set,F=new Map,L=0,P=-1,Q=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)&&!F.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?yv(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(G){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:Ch,revalidation:"idle",restoreScrollPosition:nr(D,H.matches||R.matches),preventScrollReset:ve,blockers:Ce},{viewTransitionOpts:be,flushSync:q===!0}),W="POP",ce=!1,G=!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=Jh(R.location,R.matches,m,D,H==null?void 0:H.fromRouteId,H==null?void 0:H.relative),{path:ie,submission:de,error:je}=ov(!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:G===!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,G=(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 sv(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=Eh(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,...vv(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=mv(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||Eh(H,Ce),tt=Ce||ve||xv(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]=cv(e.history,R,q,tt,H,me===!0,Xe,te,oe,N,le,bt,m,pe);if(P=++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,...vv(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&&F.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=>F.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}=pv(R,q,Ba,pe,xt,Qt);me&&R.errors&&(Un={...R.errors,...Un});let lt=Fo(),ir=ui(P),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=Jh(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}=ov(!0,Ce,ie);if(pe){Bn(D,H,pe,{flushSync:de});return}let Me=fo(ve,me),tt=new sv(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}}F.set(D,Me);let Dt=L,mt=(await tr("action",tt,[ie],de,je,D))[ie.route.id];if(tt.signal.aborted){F.get(D)===Me&&F.delete(D);return}if(oe.has(D)){if(Nr(mt)||Nn(mt)){ya(D,Mi(void 0));return}}else{if(Nr(mt))if(F.delete(D),P>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;Q.set(D,Gt);let za=ro(me,mt.data);R.fetchers.set(D,za);let[Un,lt]=cv(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&&F.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),Q.delete(D),F.delete(D),lt.forEach(pt=>F.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}=pv(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>P?(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:yv(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}}F.set(D,pe);let tt=L,bt=(await tr("loader",Me,[ie],de,je,D))[ie.route.id];if(F.get(D)===pe&&F.delete(D),!Me.signal.aborted){if(oe.has(D)){ya(D,Mi(void 0));return}if(Nr(bt))if(P>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=mv(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(Lm.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=xv(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?G:void 0});else{let Dt=Eh(be,ie);await Rt(me,be,{overrideNavigation:Dt,fetcherSubmission:de,preventScrollReset:je||ce,enableViewTransition:q?G:void 0})}}async function tr(D,H,q,ie,de,je){let Ce,ve={};try{Ce=await BA(g,D,H,q,ie,je,o,r,de,p.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)=>{F.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);F.has(D)&&!(H&&H.state==="loading"&&Q.has(D))&&ra(D),N.delete(D),Q.delete(D),le.delete(D),oe.delete(D),te.delete(D),R.fetchers.delete(D)}function ud(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=F.get(D);H&&(H.abort(),F.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 Q)if(ie0}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}=wv(q);return{notFoundMatches:ie,route:de,error:H}}function cd(D,H,q){if(b=D,S=H,x=q||null,!E&&R.navigation===Ch){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||fv(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 dd(D,H){let q=f==null;fv(D,H,f||u,o,r),q&&(u=[...u],Oe({}))}return Z={get basename(){return m},get future(){return p},get state(){return R},get routes(){return u},get window(){return n},initialize:ke,subscribe:Fe,enableScrollRestoration:cd,navigate:wt,fetch:Xr,revalidate:xn,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:ol,deleteFetcher:ud,dispose:ht,getBlocker:rn,deleteBlocker:Po,patchRoutes:dd,_internalFetchControllers:F,_internalSetRoutes:ar},Z}function TA(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Jh(e,n,a,r,o,u){let f,m;if(o){f=[];for(let p of n)if(f.push(p),p.route.id===o){m=p;break}}else f=n,m=n[n.length-1];let g=Lc(r||".",zc(f),ta(e.pathname,a)||e.pathname,u==="path");if(r==null&&(g.search=e.search,g.hash=e.hash),(r==null||r===""||r===".")&&m){let p=Um(g.search);if(m.route.index&&!p)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&p){let y=new URLSearchParams(g.search),v=y.getAll("index");y.delete("index"),v.filter(x=>x).forEach(x=>y.append("index",x));let b=y.toString();g.search=b?`?${b}`:""}}return a!=="/"&&(g.pathname=g.pathname==="/"?a:Ta([a,g.pathname])),Xi(g)}function ov(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=Xw(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,g;if(a.formData)m=tm(a.formData),g=a.formData;else if(a.body instanceof FormData)m=tm(a.body),g=a.body;else if(a.body instanceof URLSearchParams)m=a.body,g=gv(m);else if(a.body==null)m=new URLSearchParams,g=new FormData;else try{m=new URLSearchParams(a.body),g=gv(m)}catch{return r()}let p={formMethod:u,formAction:f,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(fa(p.formMethod))return{path:n,submission:p};let y=Ji(n);return e&&y.search&&Um(y.search)&&m.append("index",""),y.search=`?${m}`,{path:Xi(y),submission:p}}function uv(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 cv(e,n,a,r,o,u,f,m,g,p,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=uv(a,Object.keys(n.errors)[0],!0):x&&Nn(x[1])&&(k=uv(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 Wh(re,n.loaderData,n.errors);if(kA(n.loaderData,n.matches[ce],W))return!0;let G=n.matches[ce],ne=W;return dv(W,{currentUrl:E,currentParams:G.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(G,ne)})}),R=[];return p.forEach((W,ce)=>{if(u||!a.some(Ge=>Ge.route.id===W.routeId)||g.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 G=n.fetchers.get(ce),ne=fo(re,W.path),fe=!1;y.has(ce)?fe=!1:m.has(ce)?(m.delete(ce),fe=!0):G&&G.state!=="idle"&&G.data===void 0?fe=f:fe=dv(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 Wh(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 dv(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function fv(e,n,a,r,o){let u;if(e){let g=r[e];Ie(g,`No route found to patch children into: routeId = ${e}`),g.children||(g.children=[]),u=g.children}else u=a;let f=n.filter(g=>!u.some(p=>$w(g,p))),m=gc(f,o,[e||"_","patch",String((u==null?void 0:u.length)||"0")],r);u.push(...m)}function $w(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=>$w(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 g=o[f]!==void 0&&f!=="hasErrorBoundary";It(!g,`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.`),!g&&!tA.has(f)&&(u[f]=r[f])}Object.assign(o,u),Object.assign(o,{...n(o),lazy:void 0})}async function hv(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,()=>hv(e),n=>({[n.routeId]:{type:"error",result:n.error}})):hv(e)}async function _A(e,n,a,r){let{matches:o,request:u,params:f,context:m}=e,g={handlerResult:void 0,propagateResult:n};try{let p=o.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(b=>[v.route.id,b]):[]),y=await Yw({request:u,params:f,context:m},p,g,a);return g.propagateResult?y:g.handlerResult}catch(p){if(!(p instanceof em))throw p;let y=await r(p);return g.handlerResult?Object.assign(g.handlerResult,y):y}}var em=class{constructor(e,n){this.routeId=e,this.error=n}};async function Yw(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,g]=f,p=!1,y,v=async()=>{if(p)throw new Error("You may only call `next()` once per middleware");p=!0;let b=await Yw(e,n,a,r,o+1);if(a.propagateResult)return y=b,y};try{let b=await g({request:e.request,params:e.params,context:e.context},v);return p?b===void 0?y:b:v()}catch(b){throw b instanceof em?b:new em(m,b)}}async function BA(e,n,a,r,o,u,f,m,g,p){let y=o.map(x=>x.route.lazy?DA(x.route,m,f):void 0);p&&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,g):Promise.resolve({type:"data",result:void 0}))}}),b=await e({matches:v,request:a,params:o[0].params,fetcherKey:u,context:g});try{await Promise.all(y)}catch{}return b}async function zA(e,n,a,r,o,u){let f,m,g=p=>{let y,v=new Promise((S,E)=>y=E);m=()=>y(),n.signal.addEventListener("abort",m);let b=S=>typeof p!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${a.route.id}]`)):p({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 p=a.route[e];if(r)if(p){let y,[v]=await Promise.all([g(p).catch(b=>{y=b}),r]);if(y!==void 0)throw y;f=v}else if(await r,p=a.route[e],p)f=await g(p);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(p)f=await g(p);else{let y=new URL(n.url),v=y.pathname+y.search;throw Jn(404,{pathname:v})}}catch(p){return{type:"error",result:p}}finally{m&&n.signal.removeEventListener("abort",m)}return f}async function LA(e){var r,o,u,f,m,g;let{result:n,type:a}=e;if(Kw(n)){let p;try{let y=n.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?n.body==null?p=null:p=await n.json():p=await n.text()}catch(y){return{type:"error",error:y}}return a==="error"?{type:"error",error:new yc(n.status,n.statusText,p),statusCode:n.status,headers:n.headers}:{type:"data",data:p,statusCode:n.status,headers:n.headers}}return a==="error"?bv(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}:bv(n)?{type:"data",data:n.data,statusCode:(m=n.init)==null?void 0:m.status,headers:(g=n.init)!=null&&g.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"),!Lm.test(u)){let f=r.slice(0,r.findIndex(m=>m.route.id===a)+1);u=Jh(new URL(n.url),f,o,u),e.headers.set("Location",u)}return e}function mv(e,n,a){if(Lm.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(Xw(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=tm(r.formData):u.body=r.formData}return new Request(o,u)}function tm(e){let n=new URLSearchParams;for(let[a,r]of e.entries())n.append(a,typeof r=="string"?r:r.name);return n}function gv(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,g=!1,p={},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]=Gw),g||(g=!0,m=po(x.error)?x.error.status:500),x.headers&&(p[b]=x.headers)}else u[b]=x.data,x.statusCode&&x.statusCode!==200&&!g&&(m=x.statusCode),x.headers&&(p[b]=x.headers)}),y!==void 0&&a&&(f={[a[0]]:y},u[a[0]]=void 0),{loaderData:u,errors:f,statusCode:m||200,loaderHeaders:p}}function pv(e,n,a,r,o,u){let{loaderData:f,errors:m}=HA(n,a,r);return o.forEach(g=>{let{key:p,match:y,controller:v}=g,b=u[p];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(p)}else if(Nr(b))Ie(!1,"Unhandled fetcher revalidation redirect");else{let x=Mi(b.data);e.fetchers.set(p,x)}}),{loaderData:f,errors:m}}function yv(e,n,a,r){let o=Object.entries(n).filter(([,u])=>u!==Gw).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 vv(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 wv(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 Xw(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 Kw(e.result)&&CA.has(e.result.status)}function Nn(e){return e.type==="error"}function Nr(e){return(e&&e.type)==="redirect"}function bv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Kw(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 Um(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&&Um(a||""))return e[e.length-1];let r=Iw(e);return r[r.length-1]}function xv(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 Eh(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(Qw);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(Qw,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 Hm=j.createContext({isTransitioning:!1});Hm.displayName="ViewTransition";var Zw=j.createContext(new Map);Zw.displayName="Fetchers";var YA=j.createContext(null);YA.displayName="Await";var ga=j.createContext(null);ga.displayName="Navigation";var Uc=j.createContext(null);Uc.displayName="Location";var aa=j.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Fm=j.createContext(null);Fm.displayName="RouteError";function XA(e,{relative:n}={}){Ie(Ks(),"useHref() may be used only in the context of a 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(Uc)!=null}function Da(){return Ie(Ks(),"useLocation() may be used only in the context of a component."),j.useContext(Uc).location}var Jw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ww(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 component.");let e=j.useContext(qr),{basename:n,navigator:a}=j.useContext(ga),{matches:r}=j.useContext(aa),{pathname:o}=Da(),u=JSON.stringify(zc(r)),f=j.useRef(!1);return Ww(()=>{f.current=!0}),j.useCallback((g,p={})=>{if(It(f.current,Jw),!f.current)return;if(typeof g=="number"){a.go(g);return}let y=Lc(g,JSON.parse(u),o,p.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Ta([n,y.pathname])),(p.replace?a.replace:a.push)(y,p.state,p)},[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 Hc(){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(zc(a));return j.useMemo(()=>Lc(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 component.");let{navigator:o,static:u}=j.useContext(ga),{matches:f}=j.useContext(aa),m=f[f.length-1],g=m?m.params:{},p=m?m.pathname:"/",y=m?m.pathnameBase:"/",v=m&&m.route;{let z=v&&v.path||"";tb(p,!v||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${p}" (under ) 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 to .`)}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 with a null value by default resulting in an "empty" page.`),iC(C&&C.map(z=>Object.assign({},z,{params:Object.assign({},g,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=eb(),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(Fm.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 g=o.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id])!==void 0);Ie(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,g+1))}let f=!1,m=-1;if(a)for(let g=0;g=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((g,p,y)=>{let v,b=!1,x=null,S=null;a&&(v=u&&p.route.id?u[p.route.id]:void 0,x=p.route.errorElement||tC,f&&(m<0&&y===0?(tb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,S=null):m===y&&(b=!0,S=p.route.hydrateFallbackElement||null)));let E=n.concat(o.slice(0,y+1)),C=()=>{let k;return v?k=x:b?k=S:p.route.Component?k=j.createElement(p.route.Component,null):p.route.element?k=p.route.element:k=g,j.createElement(aC,{match:p,routeContext:{outlet:g,matches:E,isDataRoute:a!=null},children:k})};return a&&(p.route.ErrorBoundary||p.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 Pm(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,Pm(e)),n}function sC(e){let n=j.useContext(Co);return Ie(n,Pm(e)),n}function lC(e){let n=j.useContext(aa);return Ie(n,Pm(e)),n}function Vm(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 Vm("useRouteId")}function eb(){var r;let e=j.useContext(Fm),n=sC("useRouteError"),a=Vm("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[a]}function uC(){let{router:e}=rC("useNavigate"),n=Vm("useNavigate"),a=j.useRef(!1);return Ww(()=>{a.current=!0}),j.useCallback(async(o,u={})=>{It(a.current,Jw),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...u}))},[e,n])}var Sv={};function tb(e,n,a){!n&&!Sv[e]&&(Sv[e]=!0,It(!1,a))}var Av={};function Cv(e,n){!e&&!Av[n]&&(Av[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}),[g,p]=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,G)=>{re.data!==void 0&&S.current.set(G,re.data)}),Z.forEach(re=>S.current.delete(re)),Cv(R===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `` 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(Cv(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&&(g&&g.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(()=>{p(void 0),v(void 0),u(void 0),m({isTransitioning:!1})})}),n(()=>v(re));return}y?(g&&g.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,g]);j.useLayoutEffect(()=>e.subscribe(E),[e,E]),j.useEffect(()=>{f.isTransitioning&&!f.flushSync&&p(new dC)},[f]),j.useEffect(()=>{if(g&&o&&e.window){let _=o,Z=g.promise,R=e.window.document.startViewTransition(async()=>{j.startTransition(()=>r(_)),await Z});R.finished.finally(()=>{p(void 0),v(void 0),u(void 0),m({isTransitioning:!1})}),v(R)}},[o,g,e.window]),j.useEffect(()=>{g&&o&&a.location.key===o.location.key&&g.resolve()},[g,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(Zw.Provider,{value:S.current},j.createElement(Hm.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 jh({to:e,replace:n,state:a,relative:r}){Ie(Ks()," may be used only in the context of a component.");let{static:o}=j.useContext(ga);It(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:u}=j.useContext(aa),{pathname:f}=Da(),m=dn(),g=Lc(e,zc(u),f,r==="path"),p=JSON.stringify(g);return j.useEffect(()=>{m(JSON.parse(p),{replace:n,state:a,relative:r})},[m,p,r,n,a]),null}function nb(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 inside another . 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:g="/",search:p="",hash:y="",state:v=null,key:b="default"}=a,x=j.useMemo(()=>{let S=ta(g,f);return S==null?null:{location:{pathname:S,search:p,hash:y,state:v,key:b},navigationType:r}},[f,g,p,y,v,b,r]);return It(x!=null,` is not able to match the URL "${g}${p}${y}" because it does not start with the basename, so the won't render anything.`),x==null?null:j.createElement(ga.Provider,{value:m},j.createElement(Uc.Provider,{children:n,value:x}))}var sc="get",lc="application/x-www-form-urlencoded";function Fc(e){return e!=null&&typeof e.tagName=="string"}function pC(e){return Fc(e)&&e.tagName.toLowerCase()==="button"}function yC(e){return Fc(e)&&e.tagName.toLowerCase()==="form"}function vC(e){return Fc(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 Rh(e){return e!=null&&!SC.has(e)?(It(!1,`"${e}" is not a valid \`encType\` for \`\`/\`\` 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=Rh(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 +
              +
              + +

              +
              + + +
              + + +
              + +
              + + +
              +
              +
              + + + +
              +
              +
              +
              +
              + +`.replace(/(^|\n)\s*/g,""),S3=()=>{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()},A3=()=>{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}},C3=e=>typeof e=="string"?document.querySelector(e):e,E3=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")},j3=e=>{window.getComputedStyle(e).direction==="rtl"&&We(fn(),Y.rtl)},R3=e=>{const n=S3();if(b3()){Qr("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=Y.container,n&&We(a,Y["no-transition"]),_n(a,x3),a.dataset.swal2Theme=e.theme;const r=C3(e.target);r.appendChild(a),e.topLayer&&(a.setAttribute("popover",""),a.showPopover()),E3(e),j3(r),A3()},yg=(e,n)=>{e instanceof HTMLElement?n.appendChild(e):typeof e=="object"?N3(e,n):e&&_n(n,e)},N3=(e,n)=>{e.jquery?T3(n,e):_n(n,e.toString())},T3=(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))},k3=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton?an(a):qt(a),Dn(a,n,"actions"),M3(a,r,n),_n(r,n.loaderHtml||""),Dn(r,n,"loader"))};function M3(e,n,a){const r=Ma(),o=Gr(),u=nl();!r||!o||!u||(Ih(r,"confirm",a),Ih(o,"deny",a),Ih(u,"cancel",a),D3(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 D3(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),Vh(e),Vh(n),Vh(a)}function Vh(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 Ih(e,n,a){const r=lg(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 O3=(e,n)=>{const a=fg();a&&(_n(a,n.closeButtonHtml||""),Dn(a,n,"closeButton"),Do(a,n.showCloseButton),a.setAttribute("aria-label",n.closeButtonAriaLabel||""))},_3=(e,n)=>{const a=fn();a&&(B3(a,n.backdrop),z3(a,n.position),L3(a,n.grow),Dn(a,n,"container"))};function B3(e,n){typeof n=="string"?e.style.background=n:n||We([document.documentElement,document.body],Y["no-backdrop"])}function z3(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 L3(e,n){n&&We(e,Y[`grow-${n}`])}var ft={innerParams:new WeakMap,domCache:new WeakMap};const U3=["input","file","range","select","radio","checkbox","textarea"],H3=(e,n)=>{const a=Je();if(!a)return;const r=ft.innerParams.get(e),o=!r||n.input!==r.input;U3.forEach(u=>{const f=Gi(a,Y[u]);f&&(V3(u,n.inputAttributes),f.className=Y[u],o&&an(f))}),n.input&&(o&&F3(n),I3(n))},F3=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)})},P3=e=>{for(let n=0;n{const a=Je();if(!a)return;const r=id(a,e);if(r){P3(r);for(const o in n)r.setAttribute(o,n[o])}},I3=e=>{if(!e.input)return;const n=Ix(e.input);n&&Dn(n,e,"input")},vg=(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)},Rc=(e,n)=>{["string","number"].includes(typeof n)?e.value=`${n}`:ug(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)=>(Rc(e,n.inputValue),Oo(e,e,n),vg(e,n),e.type=n.input,e);Tt.file=(e,n)=>(Oo(e,e,n),vg(e,n),e);Tt.range=(e,n)=>{const a=e.querySelector("input"),r=e.querySelector("output");return Rc(a,n.inputValue),a.type=n.input,Rc(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=id(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)=>{Rc(e,n.inputValue),vg(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 q3=(e,n)=>{const a=cg();a&&(gg(a),Dn(a,n,"htmlContainer"),n.html?(yg(n.html,a),qt(a,"block")):n.text?(a.textContent=n.text,qt(a,"block")):an(a),H3(e,n))},Q3=(e,n)=>{const a=Hx();a&&(gg(a),Do(a,n.footer,"block"),n.footer&&yg(n.footer,a),Dn(a,n,"footer"))},G3=(e,n)=>{const a=ft.innerParams.get(e),r=tl();if(!r)return;if(a&&n.icon===a.icon){uw(r,n),ow(r,n);return}if(!n.icon&&!n.iconHtml){an(r);return}if(n.icon&&Object.keys(jc).indexOf(n.icon)===-1){Qr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${n.icon}"`),an(r);return}qt(r),uw(r,n),ow(r,n),We(r,n.showClass&&n.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",qx)},ow=(e,n)=>{for(const[a,r]of Object.entries(jc))n.icon!==a&&na(e,r);We(e,n.icon&&jc[n.icon]),X3(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 + +
              +
              +`,Y3=` + + + + +`,uw=(e,n)=>{if(!n.icon&&!n.iconHtml)return;let a=e.innerHTML,r="";n.iconHtml?r=cw(n.iconHtml):n.icon==="success"?(r=$3,a=a.replace(/ style=".*?"/g,"")):n.icon==="error"?r=Y3:n.icon&&(r=cw({question:"?",warning:"!",info:"i"}[n.icon])),a.trim()!==r.trim()&&_n(e,r)},X3=(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"])sw(e,a,"background-color",n.iconColor);sw(e,".swal2-success-ring","border-color",n.iconColor)}},cw=e=>`
              ${e}
              `,K3=(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 wg=!1,Qx=0,Gx=0,$x=0,Yx=0;const Z3=e=>{e.addEventListener("mousedown",Nc),document.body.addEventListener("mousemove",Tc),e.addEventListener("mouseup",kc),e.addEventListener("touchstart",Nc),document.body.addEventListener("touchmove",Tc),e.addEventListener("touchend",kc)},J3=e=>{e.removeEventListener("mousedown",Nc),document.body.removeEventListener("mousemove",Tc),e.removeEventListener("mouseup",kc),e.removeEventListener("touchstart",Nc),document.body.removeEventListener("touchmove",Tc),e.removeEventListener("touchend",kc)},Nc=e=>{const n=Je();if(e.target===n||tl().contains(e.target)){wg=!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")}},Tc=e=>{const n=Je();if(wg){let{clientX:a,clientY:r}=Xx(e);n.style.insetInlineStart=`${$x+(a-Qx)}px`,n.style.insetBlockStart=`${Yx+(r-Gx)}px`}},kc=()=>{const e=Je();wg=!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}},W3=(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(td()),eN(r,n),n.draggable&&!n.toast?(We(r,Y.draggable),Z3(r)):(na(r,Y.draggable),J3(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=dg();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 g=aN(n);a.appendChild(g)}})},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&&(gg(a),Do(a,n.title||n.titleText,"block"),n.title&&yg(n.title,a),n.titleText&&(a.innerText=n.titleText),Dn(a,n,"title"))},Kx=(e,n)=>{W3(e,n),_3(e,n),tN(e,n),G3(e,n),K3(e,n),iN(e,n),O3(e,n),q3(e,n),k3(e,n),Q3(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)},Tm=(e,n)=>{var a;const r=hg();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(!ed(n.allowEnterKey))return;const a=id(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=hg();let r=-1;for(let o=0;o{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 g=0;g{ed(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=cg();return!a||!r||wN(e)||bN(e)?!1:n===a||!lw(a)&&n instanceof HTMLElement&&n.tagName!=="INPUT"&&n.tagName!=="TEXTAREA"&&!(lw(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){ad()?dw(e,r):(u3(a).then(()=>dw(e,r)),Jx(Ee)),t2?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),mg()&&(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)},dw=(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();ad()?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)&&(og(n.inputValue)||ug(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,Mc(o),n):n.input==="radio"&&HN(a,Mc(o),n)};og(n.inputOptions)||ug(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 g=document.createElement("option");g.value=m,_n(g,f),g.selected=i2(m,a.inputValue),u.appendChild(g)};n.forEach(u=>{const f=u[0],m=u[1];if(Array.isArray(m)){const g=document.createElement("optgroup");g.label=f,g.disabled=!1,r.appendChild(g),m.forEach(p=>o(g,p[1],p[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],g=document.createElement("input"),p=document.createElement("label");g.type="radio",g.name=Y.radio,g.value=f,i2(f,a.inputValue)&&(g.checked=!0);const y=document.createElement("span");_n(y,m),y.className=Y.label,p.appendChild(g),p.appendChild(y),r.appendChild(p)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}const Mc=e=>{const n=[];return e instanceof Map?e.forEach((a,r)=>{let o=a;typeof o=="object"&&(o=Mc(o)),n.push([r,o])}):Object.keys(e).forEach(a=>{let r=e[a];typeof r=="object"&&(r=Mc(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"):xg(e,!0)},PN=e=>{const n=ft.innerParams.get(e);e.disableButtons(),n.returnInputValueOnDeny?r2(e,"deny"):bg(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${lg(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"?bg(e,o):xg(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"?bg(e,n):xg(e,n)})},bg=(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})},fw=(e,n)=>{e.close({isConfirmed:!0,value:n})},s2=(e,n)=>{e.rejectPromise(n)},xg=(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(td())||o===!1?(e.hideLoading(),_o(e)):fw(e,typeof o>"u"?n:o)}).catch(o=>s2(e||void 0,o))):fw(e,n)};function Dc(){const e=ft.innerParams.get(this);if(!e)return;const n=ft.domCache.get(this);an(n.loader),ad()?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"):v3()&&an(e.actions)};function l2(){const e=ft.innerParams.get(this),n=ft.domCache.get(this);return n?id(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;oObject.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:Dc,enableButtons:c2,enableInput:f2,getInput:l2,handleAwaitingPromise:_o,hideLoading:Dc,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 Oc=!1;const a5=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(n){e.container.onmouseup=()=>{},n.target===e.container&&(Oc=!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))&&(Oc=!0)}}},r5=(e,n,a)=>{n.container.onclick=r=>{if(Oc){Oc=!1;return}r.target===n.container&&ed(e.allowOutsideClick)&&a(il.backdrop)}},s5=e=>typeof e=="object"&&e.jquery,hw=e=>e instanceof Element||s5(e),l5=e=>{const n={};return typeof e[0]=="object"&&!hw(e[0])?Object.assign(n,e[0]):["title","html","icon"].forEach((a,r)=>{const o=e[r];typeof o=="string"||hw(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;aEe.timeout&&Ee.timeout.getTimerLeft(),A2=()=>{if(Ee.timeout)return w3(),Ee.timeout.stop()},C2=()=>{if(Ee.timeout){const e=Ee.timeout.start();return pg(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 pg(n,!0),n}},h5=()=>!!(Ee.timeout&&Ee.timeout.isRunning());let mw=!1;const km={};function m5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";km[e]=this,mw||(document.body.addEventListener("click",g5),mw=!0)}const g5=e=>{for(let n=e.target;n&&n!==document;n=n.parentNode)for(const a in km){const r=n.getAttribute(a);if(r){km[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;m1?a-1:0),o=1;o{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:fg,getConfirmButton:Ma,getContainer:fn,getDenyButton:Gr,getFocusableElements:hg,getFooter:Hx,getHtmlContainer:cg,getIcon:tl,getIconContent:h3,getImage:Ux,getInputLabel:m3,getLoader:al,getPopup:Je,getProgressSteps:dg,getTimerLeft:c5,getTimerProgressBar:nd,getTitle:Lx,getValidationMessage:td,increaseTimer:f5,isDeprecatedParameter:v2,isLoading:p3,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${lg(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),mg()&&(O5(n,e.scrollbarPadding,o),gN()),!ad()&&!Ee.previousActiveElement&&(Ee.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(a)),Ee.eventEmitter.emit("didOpen",a),na(n,Y["no-transition"])},_c=e=>{const n=Je();if(e.target!==n)return;const a=fn();n.removeEventListener("animationend",_c),n.removeEventListener("transitionend",_c),a.style.overflowY="auto"},D5=(e,n)=>{Vx(n)?(e.style.overflowY="hidden",n.addEventListener("animationend",_c),n.addEventListener("transitionend",_c)):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 gw={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=gw.email),e.input==="url"&&(e.inputValidator=gw.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("
              ")),R3(e)}let Ea;var ac=new WeakMap;class Mt{constructor(){if(r3(this,ac,void 0),typeof window>"u")return;Ea=this;for(var n=arguments.length,a=new Array(n),r=0;r1&&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}),mg()&&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 iw(ac,this).then(n)}finally(n){return iw(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:fg(),validationMessage:td(),progressSteps:dg()};return ft.domCache.set(e,n),n},P5=(e,n,a)=>{const r=nd();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&&pg(n.timer)})))},V5=(e,n)=>{if(!n.toast){if(!ed(n.allowEnterKey)){zx("allowEnterKey"),Q5();return}I5(e)||q5(e,n)||Tm(-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=Dc;Mt.prototype.disableLoading=Dc;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 Mm=function(e,n){return Mm=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])},Mm(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");Mm(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;rn},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()||g},osx:function(){return C()||m},linux:function(){return C()||p},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 Qh=k,Qh}var Gh,yw;function X5(){if(yw)return Gh;yw=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 Gh=n,Gh}var $h,vw;function K5(){if(vw)return $h;vw=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 $h=a,$h}var Yh,ww;function Z5(){if(ww)return Yh;ww=1;var e=Y5(),n=K5(),a=10,r=40,o=800;function u(f){var m=0,g=0,p=0,y=0;return"detail"in f&&(g=f.detail),"wheelDelta"in f&&(g=-f.wheelDelta/120),"wheelDeltaY"in f&&(g=-f.wheelDeltaY/120),"wheelDeltaX"in f&&(m=-f.wheelDeltaX/120),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(m=g,g=0),p=m*a,y=g*a,"deltaY"in f&&(y=f.deltaY),"deltaX"in f&&(p=f.deltaX),(p||y)&&f.deltaMode&&(f.deltaMode==1?(p*=r,y*=r):(p*=o,y*=o)),p&&!m&&(m=p<1?-1:1),y&&!g&&(g=y<1?-1:1),{spinX:m,spinY:g,pixelX:p,pixelY:y}}return u.getEventType=function(){return e.firefox()?"DOMMouseScroll":n("wheel")?"wheel":"mousewheel"},Yh=u,Yh}var Xh,bw;function J5(){return bw||(bw=1,Xh=Z5()),Xh}var W5=J5();const eT=Bc(W5);function tT(e,n,a,r,o,u){u===void 0&&(u=0);var f=Xs(e,n,u),m=f.width,g=f.height,p=Math.min(m,a),y=Math.min(g,r);return p>y*o?{width:y*o,height:y}:{width:p,height:p/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:xw(e.x,f,a.width,r),y:xw(e.y,m,a.height,r)}}function xw(e,n,a,r){var o=n*r/2-a/2;return rd(e,-o,o)}function Sw(e,n){return Math.sqrt(Math.pow(e.y-n.y,2)+Math.pow(e.x-n.x,2))}function Aw(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,g=Xs(n.width,n.height,u),p=Xs(n.naturalWidth,n.naturalHeight,u),y={x:m(100,((g.width-a.width/o)/2-e.x/o)/g.width*100),y:m(100,((g.height-a.height/o)/2-e.y/o)/g.height*100),width:m(100,a.width/g.width*100/o),height:m(100,a.height/g.height*100/o)},v=Math.round(m(p.width,y.width*p.width/100)),b=Math.round(m(p.height,y.height*p.height/100)),x=p.width>=p.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(p.width-S.width,y.x*p.width/100)),y:Math.round(m(p.height-S.height,y.y*p.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=rd(r.width/f.width*(100/e.width),o,u),g={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:g,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=rd(lT(e,n,r),o,u),g=r.height>r.width?r.height/e.height:r.width/e.width,p={x:((f.width-e.width)/2-e.x)*g,y:((f.height-e.height)/2-e.y)*g};return{crop:p,zoom:m}}function Cw(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 rd(e,n,a){return Math.min(Math.max(e,n),a)}function ic(){for(var e=[],n=0;n0}).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,g,p=a.imageRef.current||a.videoRef.current;if(p&&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=p.offsetWidthS?{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:p.offsetWidth,height:p.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||((g=a.state.cropSize)===null||g===void 0?void 0:g.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,g={x:a.dragStartCrop.x+f,y:a.dragStartCrop.y+m},p=a.props.restrictPosition?uo(g,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):g;a.props.onCropChange(p)}}))},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,g;return(g=(m=a.props).onInteractionStart)===null||g===void 0?void 0:g.call(m)}),a.wheelTimer&&clearTimeout(a.wheelTimer),a.wheelTimer=a.currentWindow.setTimeout(function(){return a.setState({hasWheelJustStarted:!1},function(){var m,g;return(g=(m=a.props).onInteractionEnd)===null||g===void 0?void 0:g.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,g=f.zoom;return{x:(o+m.x)/g,y:(u+m.y)/g}},a.setNewZoom=function(r,o,u){var f=u===void 0?{}:u,m=f.shouldUpdatePosition,g=m===void 0?!0:m;if(!(!a.state.cropSize||!a.props.onZoomChange)){var p=rd(r,a.props.minZoom,a.props.maxZoom);if(g){var y=a.getPointOnContainer(o,a.containerPosition),v=a.getPointOnMedia(y),b={x:v.x*p-y.x,y:v.y*p-y.y},x=a.props.restrictPosition?uo(b,a.mediaSize,a.state.cropSize,p,a.props.rotation):b;a.props.onCropChange(x)}a.props.onZoomChange(p)}},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,g=f.onCropChange,p=f.keyboardStep,y=f.zoom,v=f.rotation,b=p;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),g(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,g,p,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)!==((g=this.props.crop)===null||g===void 0?void 0:g.x)||((p=a.crop)===null||p===void 0?void 0:p.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,g=((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,p=((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=g/p;return ya.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,g)=>{const p=await gT(e,g);n(p)},[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="https://myskin-v2.humicprototyping.com/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=",sd=()=>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"})})})}),Sg=({handleDoctorSelect:e})=>{var x;const[n,a]=j.useState(""),[r,o]=j.useState(1),u=8,{data:f,isLoading:m,isError:g}=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(Ic,{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(sd,{}):g?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(cb,{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(db,{className:"m-1"})})]})]})]})};Sg.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),[g,p]=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=Ec({mutationFn:te=>ea.createDetection(te),onSuccess:te=>{var F;console.log("Detection submitted successfully:",te),p((F=te==null?void 0:te.data)==null?void 0:F.data),v(!1)},onError:te=>{var F,L,P;console.error("Detailed error response:",{status:(F=te.response)==null?void 0:F.status,data:(L=te.response)==null?void 0:L.data,headers:(P=te.response)==null?void 0:P.headers}),v(!1)}}),W=Ec({mutationFn:te=>ea.createPublicDetection(te),onSuccess:te=>{console.log("Public detection successful:",te),p(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 F=await fetch(te);if(!F.ok)throw new Error("Failed to fetch cropped image");const L=await F.blob();if(!L||L.size===0)throw new Error("Empty image blob");const P=new File([L],"diagnosis.jpg",{type:L.type||"image/jpeg"}),Q=new FormData;if(Q.append("image",P,P.name),_&&Z){Q.append("patient_id",Z.toString());for(let[le,N]of Q.entries())console.log(le,N instanceof File?`${N.name} (${N.type})`:N);R.mutate(Q)}else{for(let[le,N]of Q.entries())console.log(le,N instanceof File?`${N.name} (${N.type})`:N);W.mutate(Q)}}catch(F){console.error("Submission error details:",{error:F.message,patientId:Z,hasCroppedImage:!!te,userAuthStatus:!!_}),v(!1)}finally{x(!1)}}},re=async te=>{if(!E||!te||!(g!=null&&g.id)){Tn.fire("Error","Keluhan dan dokter wajib diisi","error");return}const F={doctorId:te.id,complaint:E};try{const L=await ea.updateDetection(g.id,F,_.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")}},G=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 F=te.target.files[0];F&&(n(URL.createObjectURL(F)),r(null),p(null),m(!0),S.current=!1)},fe=(g==null?void 0:g.percentage)>=50?"Tidak Aman":"Aman",Ge=(g==null?void 0:g.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&&g&&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:g.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:`${g.percentage}% ${g.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(Sg,{handleDoctorSelect:G}),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="https://myskin-v2.humicprototyping.com/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(a3,{}),d.jsx("div",{id:"deteksi",children:d.jsx(pT,{})})]})},ld="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="https://myskin-v2.humicprototyping.com/assets/Ellipse%204-CrOw4YA8.png",bT=()=>{var y;const{id:e}=Hc(),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(sd,{})});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,g=parseFloat(f.diagnosisAi)>=50?"text-red-600":"text-green-600",p=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(Vc,{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:g,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:ld,alt:"Status",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Status"}),d.jsx("p",{className:`font-semibold ${p}`,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,Ew;function ST(){return Ew||(Ew=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",g="hour",p="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 F=["th","st","nd","rd"],L=te%100;return"["+te+(F[(L-20)%10]||F[L]||F[0])+"]"}},_=function(te,F,L){var P=String(te);return!P||P.length>=F?te:""+Array(F+1-P.length).join(L)+te},Z={s:_,z:function(te){var F=-te.utcOffset(),L=Math.abs(F),P=Math.floor(L/60),Q=L%60;return(F<=0?"+":"-")+_(P,2,"0")+":"+_(Q,2,"0")},m:function te(F,L){if(F.date()1)return te(N[0])}else{var X=F.name;W[X]=F,Q=X}return!P&&Q&&(R=Q),Q||!P&&R},ne=function(te,F){if(re(te))return te.clone();var L=typeof F=="object"?F:{};return L.date=te,L.args=arguments,new Ge(L)},fe=Z;fe.l=G,fe.i=re,fe.w=function(te,F){return ne(te,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var Ge=function(){function te(L){this.$L=G(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[ce]=!0}var F=te.prototype;return F.parse=function(L){this.$d=function(P){var Q=P.date,le=P.utc;if(Q===null)return new Date(NaN);if(fe.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var N=Q.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(Q)}(L),this.init()},F.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()},F.$utils=function(){return fe},F.isValid=function(){return this.$d.toString()!==E},F.isSame=function(L,P){var Q=ne(L);return this.startOf(P)<=Q&&Q<=this.endOf(P)},F.isAfter=function(L,P){return ne(L){var v,b,x,S;const{id:e}=Hc(),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(sd,{})});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,g=parseFloat(f.diagnosisAi)>=50?"text-red-600":"text-green-600",p=f.status==="rejected"?"text-red-600":f.status==="pending"?"text-yellow-600":"text-green-600",y=E=>jw().diff(jw(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(Vc,{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:g,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:ld,alt:"Status",className:"w-16 h-16"}),d.jsx("h4",{className:"text-black font-semibold",children:"Status"}),d.jsx("p",{className:`font-semibold ${p}`,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:ld,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 Rw="https://myskin-v2.humicprototyping.com/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,Nw=/\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,g=>/&/.test(g)?g.replace(/&/g,m):m?m+" "+g:g)):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]=(g=>{let p=0,y=11;for(;p>>0;return"go"+y})(u));if(!ei[f]){let g=u!==e?e:(p=>{let y,v,b=[{}];for(;y=RT.exec(p.replace(NT,""));)y[4]?b.shift():y[3]?(v=y[3].replace(Nw," ").trim(),b.unshift(b[0][v]=b[0][v]||{})):b[0][y[1]]=y[2].replace(Nw," ").trim();return b[0]})(e);ei[f]=_i(o?{["@keyframes "+f]:g}:g,a?"":"."+f)}let m=a&&ei.g?ei.g:null;return a&&(ei.g=ei[f]),((g,p,y,v)=>{v?p.data=p.data.replace(v,g):p.data.indexOf(g)===-1&&(p.data=y?g+p.data:p.data+g)})(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),g=m&&m.props&&m.props.className||/^go/.test(m)&&m;f=g?"."+g:m&&typeof m=="object"?m.props?"":_i(m,""):m===!1?"":m}return r+o+(f??"")},"");function od(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,Dm,Om;od.bind({g:1});let li=od.bind({k:1});function MT(e,n,a,r){_i.p=n,M2=e,Dm=a,Om=r}function er(e,n){let a=this||{};return function(){let r=arguments;function o(u,f){let m=Object.assign({},u),g=m.className||o.className;a.p=Object.assign({theme:Dm&&Dm()},m),a.o=/ *go\d+/.test(g),m.className=od.apply(a,r)+(g?" "+g:"");let p=e;return e[0]&&(p=m.as||e,delete m.as),Om&&p[0]&&Om(m),M2(p,m)}return o}}var DT=e=>typeof e=="function",_m=(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=[],Kh={toasts:[],pausedAt:void 0},Ag=e=>{Kh=D2(Kh,e),zT.forEach(n=>{n(Kh)})},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 Ag({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=>{Ag({type:3,toastId:e})};Kt.remove=e=>Ag({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?_m(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?_m(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},_m(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);od` + 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}=Hc(),n=dn(),[a,r]=j.useState(null),[o,u]=j.useState(!0),[f,m]=j.useState(""),[g,p]=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&&p(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?

              Hasil verifikasi tidak dapat diubah lagi
              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:g};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?Rw: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(Vc,{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||Rw,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:g||"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:g,onChange:_=>p(_.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:Zc,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,g]=j.useState(""),[p,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 F;return((F=C==null?void 0:C.data)==null?void 0:F.data)||[]},[C]),Z=(_==null?void 0:_.filter(F=>{var L;return(L=F.verifiedBy)==null?void 0:L.toLowerCase().includes(m.toLowerCase())}))||[],R=Z.length,W=Math.ceil(R/p),ce=u*p,re=ce-p,G=Z.slice(re,ce),ne=F=>{b(F),o(!0)},fe=Ec({mutationFn:F=>ea.deleteSubmission(F,n),onSuccess:()=>{st.success("Data berhasil dihapus"),z(),o(!1),b(null)},onError:()=>{st.error("Gagal menghapus data")}}),Ge=()=>{uF+1)},Xe=()=>{u>1&&f(F=>F-1)};return d.jsxs(d.Fragment,{children:[r&&d.jsx(tg,{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:p,onChange:F=>{y(Number(F.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:F=>{g(F.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,{})})}):G.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})]})}):G.map((F,L)=>{const Q=parseFloat(F.diagnosisAi)>=50?"text-red-600":"text-green-600",le=F.status==="rejected"?"text-red-600":F.status==="pending"?"text-yellow-600":"text-green-600";return d.jsxs("tr",{className:"*:align-middle *:py-3 *:px-6",children:[d.jsx("td",{children:F.submittedAt}),d.jsx("td",{className:`font-semibold ${Q}`,children:F.diagnosisAi}),d.jsx("td",{children:d.jsx("div",{className:"w-20 h-16 rounded-lg flex items-center justify-start overflow-hidden",children:d.jsx("img",{className:"max-w-full max-h-full object-cover",src:F.imageUrl,alt:"Deteksi"})})}),d.jsx("td",{className:"px-6 text-ellipsis",children:F.complaint}),d.jsx("td",{className:`px-6 font-semibold capitalize ${le}`,children:F.status}),d.jsx("td",{children:F.verifiedAt}),d.jsx("td",{children:F.verifiedBy}),d.jsx("td",{children:F.diagnosis}),d.jsx("td",{children:F.doctorNote}),d.jsx("td",{children:d.jsxs("div",{className:"flex gap-x-3",children:[d.jsx("button",{type:"button",onClick:()=>E(`/pengajuan/info/${F.id}`),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:d.jsx("img",{src:Zc,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(F.id)})})]})})]},L)})})]})}),d.jsx("div",{className:"lg:hidden mt-4 space-y-4",children:G.map((F,L)=>{const P={date:F.submittedAt,persentase:F.diagnosisAi,keluhan:F.complaint,status:F.status,tglVerif:F.verifiedAt,verifiedBy:F.verifiedBy,diagnosis:F.diagnosis,doctorNote:F.doctorNote};return d.jsx(O2,{item:P,handleDelete:()=>ne(F.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"})]})]})]})]})},Bm=({children:e})=>{const n=localStorage.getItem("token"),{data:a}=JSON.parse(localStorage.getItem("user")),r=Da();return!n||!a?d.jsx(jh,{to:"/",replace:!0}):a.role==="patient"&&!r.pathname.startsWith("/deteksi")&&!r.pathname.startsWith("/pengajuan")?d.jsx(jh,{to:"/",replace:!0}):a.role==="doctor"&&!r.pathname.startsWith("/dokter")?d.jsx(jh,{to:"/dokter",replace:!0}):e};Bm.propTypes={children:Be.node};const _2=({data:e})=>{const n=dn(),[a,r]=j.useState(""),[o,u]=j.useState([]),[f,m]=j.useState(10),g=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]),p=ux({data:e,columns:g,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),p.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(Ic,{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:p.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:[Sc(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:p.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:Sc(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 ",p.getState().pagination.pageIndex+1," dari"," ",p.getPageCount(),"   |   Total:"," ",p.getFilteredRowModel().rows.length," data"]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("button",{onClick:()=>p.previousPage(),disabled:!p.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:()=>p.nextPage(),disabled:!p.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 px-6",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="https://myskin-v2.humicprototyping.com/assets/errorPage-c4bJcYnY.jpeg",Zh=()=>{const e=eb(),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}=Hc(),{user:n}=Wi(),a=dn(),[r,o]=j.useState(""),[u,f]=j.useState(null),{data:m,isLoading:g,isError:p}=el({queryKey:["submission",e],queryFn:()=>ea.getDetectionsById(e),enabled:!!e}),y=((k=m==null?void 0:m.data)==null?void 0:k.data)||[];if(g)return d.jsx("div",{className:"mt-10",children:d.jsx(sd,{})});if(p||!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(Vc,{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:ld,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(Sg,{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(Zh,{}),children:[{element:d.jsx(dc,{type:"default"}),errorElement:d.jsx(Zh,{}),children:[{path:"/",element:d.jsx(wT,{})},{path:"faq",element:d.jsx(ZR,{})}]},{element:d.jsx(Bm,{children:d.jsx(dc,{type:"default"})}),errorElement:d.jsx(Zh,{}),children:[{path:"deteksi",element:d.jsx(KR,{})},{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(Bm,{children:d.jsx(dc,{type:"doctor"})}),children:[{path:"",element:d.jsx(nR,{})},{path:"daftar-pasien",element:d.jsx(W4,{})},{path:"daftar-pengajuan",element:d.jsx(tR,{})},{path:"riwayat-verifikasi",element:d.jsx(u6,{})},{path:"riwayat-verifikasi/informasi-penyakit/:id",element:d.jsx(s6,{})}]}]}]),h6=new bR;YS.createRoot(document.getElementById("root")).render(d.jsx(Yi.StrictMode,{children:d.jsx(ER,{client:h6,children:d.jsx(Lb,{children:d.jsx(ZC,{router:f6})})})})); diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..8f34970 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..c25000e --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + MySkin + + + + +
              + + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..2b672ba --- /dev/null +++ b/nginx.conf @@ -0,0 +1,21 @@ +server { + listen 80; + server_name _; + + root /usr/share/nginx/html; + index index.html; + + gzip on; + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml; + gzip_min_length 1000; + gzip_proxied any; + + location / { + try_files $uri $uri/ /index.html; + } + + location /assets/ { + expires 1y; + add_header Cache-Control "public, immutable"; + } +}