@agrada_digital/pbm 0.0.130 → 0.0.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/vanilla.js +48 -40
  2. package/package.json +2 -1
package/dist/vanilla.js CHANGED
@@ -1,12 +1,12 @@
1
- var vE=Object.defineProperty;var bE=(on,un,pr)=>un in on?vE(on,un,{enumerable:!0,configurable:!0,writable:!0,value:pr}):on[un]=pr;var im=(on,un,pr)=>bE(on,typeof un!="symbol"?un+"":un,pr);(function(){"use strict";var on=typeof document<"u"?document.currentScript:null;function un(n,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(s,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function pr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ru={exports:{}},be={};/**
1
+ var eE=Object.defineProperty;var tE=(Ja,Ia,tn)=>Ia in Ja?eE(Ja,Ia,{enumerable:!0,configurable:!0,writable:!0,value:tn}):Ja[Ia]=tn;var Zd=(Ja,Ia,tn)=>tE(Ja,typeof Ia!="symbol"?Ia+"":Ia,tn);(function(){"use strict";var Ja=typeof document<"u"?document.currentScript:null;function Ia(r,n){for(var l=0;l<n.length;l++){const s=n[l];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in r)){const f=Object.getOwnPropertyDescriptor(s,o);f&&Object.defineProperty(r,o,f.get?f:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function tn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var du={exports:{}},is={};/**
2
2
  * @license React
3
- * react.production.js
3
+ * react-jsx-dev-runtime.production.js
4
4
  *
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var sm;function Zv(){if(sm)return be;sm=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function N(A){return A===null||typeof A!="object"?null:(A=C&&A[C]||A["@@iterator"],typeof A=="function"?A:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,q={};function P(A,Z,ne){this.props=A,this.context=Z,this.refs=q,this.updater=ne||U}P.prototype.isReactComponent={},P.prototype.setState=function(A,Z){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Z,"setState")},P.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function F(){}F.prototype=P.prototype;function ae(A,Z,ne){this.props=A,this.context=Z,this.refs=q,this.updater=ne||U}var W=ae.prototype=new F;W.constructor=ae,E(W,P.prototype),W.isPureReactComponent=!0;var B=Array.isArray;function Q(){}var K={H:null,A:null,T:null,S:null},Se=Object.prototype.hasOwnProperty;function ze(A,Z,ne){var ue=ne.ref;return{$$typeof:n,type:A,key:Z,ref:ue!==void 0?ue:null,props:ne}}function Ie(A,Z){return ze(A.type,Z,A.props)}function ye(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function v(A){var Z={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ne){return Z[ne]})}var Y=/\/+/g;function $(A,Z){return typeof A=="object"&&A!==null&&A.key!=null?v(""+A.key):Z.toString(36)}function ie(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(Q,Q):(A.status="pending",A.then(function(Z){A.status==="pending"&&(A.status="fulfilled",A.value=Z)},function(Z){A.status==="pending"&&(A.status="rejected",A.reason=Z)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function R(A,Z,ne,ue,ve){var Ce=typeof A;(Ce==="undefined"||Ce==="boolean")&&(A=null);var je=!1;if(A===null)je=!0;else switch(Ce){case"bigint":case"string":case"number":je=!0;break;case"object":switch(A.$$typeof){case n:case r:je=!0;break;case _:return je=A._init,R(je(A._payload),Z,ne,ue,ve)}}if(je)return ve=ve(A),je=ue===""?"."+$(A,0):ue,B(ve)?(ne="",je!=null&&(ne=je.replace(Y,"$&/")+"/"),R(ve,Z,ne,"",function(Zn){return Zn})):ve!=null&&(ye(ve)&&(ve=Ie(ve,ne+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(Y,"$&/")+"/")+je)),Z.push(ve)),1;je=0;var jt=ue===""?".":ue+":";if(B(A))for(var lt=0;lt<A.length;lt++)ue=A[lt],Ce=jt+$(ue,lt),je+=R(ue,Z,ne,Ce,ve);else if(lt=N(A),typeof lt=="function")for(A=lt.call(A),lt=0;!(ue=A.next()).done;)ue=ue.value,Ce=jt+$(ue,lt++),je+=R(ue,Z,ne,Ce,ve);else if(Ce==="object"){if(typeof A.then=="function")return R(ie(A),Z,ne,ue,ve);throw Z=String(A),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return je}function X(A,Z,ne){if(A==null)return A;var ue=[],ve=0;return R(A,ue,"","",function(Ce){return Z.call(ne,Ce,ve++)}),ue}function se(A){if(A._status===-1){var Z=A._result;Z=Z(),Z.then(function(ne){(A._status===0||A._status===-1)&&(A._status=1,A._result=ne)},function(ne){(A._status===0||A._status===-1)&&(A._status=2,A._result=ne)}),A._status===-1&&(A._status=0,A._result=Z)}if(A._status===1)return A._result.default;throw A._result}var Te=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Le={map:X,forEach:function(A,Z,ne){X(A,function(){Z.apply(this,arguments)},ne)},count:function(A){var Z=0;return X(A,function(){Z++}),Z},toArray:function(A){return X(A,function(Z){return Z})||[]},only:function(A){if(!ye(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return be.Activity=b,be.Children=Le,be.Component=P,be.Fragment=i,be.Profiler=u,be.PureComponent=ae,be.StrictMode=s,be.Suspense=y,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,be.__COMPILER_RUNTIME={__proto__:null,c:function(A){return K.H.useMemoCache(A)}},be.cache=function(A){return function(){return A.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(A,Z,ne){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var ue=E({},A.props),ve=A.key;if(Z!=null)for(Ce in Z.key!==void 0&&(ve=""+Z.key),Z)!Se.call(Z,Ce)||Ce==="key"||Ce==="__self"||Ce==="__source"||Ce==="ref"&&Z.ref===void 0||(ue[Ce]=Z[Ce]);var Ce=arguments.length-2;if(Ce===1)ue.children=ne;else if(1<Ce){for(var je=Array(Ce),jt=0;jt<Ce;jt++)je[jt]=arguments[jt+2];ue.children=je}return ze(A.type,ve,ue)},be.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},be.createElement=function(A,Z,ne){var ue,ve={},Ce=null;if(Z!=null)for(ue in Z.key!==void 0&&(Ce=""+Z.key),Z)Se.call(Z,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ve[ue]=Z[ue]);var je=arguments.length-2;if(je===1)ve.children=ne;else if(1<je){for(var jt=Array(je),lt=0;lt<je;lt++)jt[lt]=arguments[lt+2];ve.children=jt}if(A&&A.defaultProps)for(ue in je=A.defaultProps,je)ve[ue]===void 0&&(ve[ue]=je[ue]);return ze(A,Ce,ve)},be.createRef=function(){return{current:null}},be.forwardRef=function(A){return{$$typeof:h,render:A}},be.isValidElement=ye,be.lazy=function(A){return{$$typeof:_,_payload:{_status:-1,_result:A},_init:se}},be.memo=function(A,Z){return{$$typeof:p,type:A,compare:Z===void 0?null:Z}},be.startTransition=function(A){var Z=K.T,ne={};K.T=ne;try{var ue=A(),ve=K.S;ve!==null&&ve(ne,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(Q,Te)}catch(Ce){Te(Ce)}finally{Z!==null&&ne.types!==null&&(Z.types=ne.types),K.T=Z}},be.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},be.use=function(A){return K.H.use(A)},be.useActionState=function(A,Z,ne){return K.H.useActionState(A,Z,ne)},be.useCallback=function(A,Z){return K.H.useCallback(A,Z)},be.useContext=function(A){return K.H.useContext(A)},be.useDebugValue=function(){},be.useDeferredValue=function(A,Z){return K.H.useDeferredValue(A,Z)},be.useEffect=function(A,Z){return K.H.useEffect(A,Z)},be.useEffectEvent=function(A){return K.H.useEffectEvent(A)},be.useId=function(){return K.H.useId()},be.useImperativeHandle=function(A,Z,ne){return K.H.useImperativeHandle(A,Z,ne)},be.useInsertionEffect=function(A,Z){return K.H.useInsertionEffect(A,Z)},be.useLayoutEffect=function(A,Z){return K.H.useLayoutEffect(A,Z)},be.useMemo=function(A,Z){return K.H.useMemo(A,Z)},be.useOptimistic=function(A,Z){return K.H.useOptimistic(A,Z)},be.useReducer=function(A,Z,ne){return K.H.useReducer(A,Z,ne)},be.useRef=function(A){return K.H.useRef(A)},be.useState=function(A){return K.H.useState(A)},be.useSyncExternalStore=function(A,Z,ne){return K.H.useSyncExternalStore(A,Z,ne)},be.useTransition=function(){return K.H.useTransition()},be.version="19.2.4",be}var om;function Ou(){return om||(om=1,Ru.exports=Zv()),Ru.exports}var te=Ou();const nt=pr(te),um=un({__proto__:null,default:nt},[te]);var zu={exports:{}},ei={},ku={exports:{}},Du={};/**
9
+ */var Yd;function Ab(){if(Yd)return is;Yd=1;var r=Symbol.for("react.fragment");return is.Fragment=r,is.jsxDEV=void 0,is}var $d;function Tb(){return $d||($d=1,du.exports=Ab()),du.exports}var v=Tb(),mu={exports:{}},Li={},hu={exports:{}},pu={};/**
10
10
  * @license React
11
11
  * scheduler.production.js
12
12
  *
@@ -14,7 +14,15 @@ var vE=Object.defineProperty;var bE=(on,un,pr)=>un in on?vE(on,un,{enumerable:!0
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var cm;function Yv(){return cm||(cm=1,(function(n){function r(R,X){var se=R.length;R.push(X);e:for(;0<se;){var Te=se-1>>>1,Le=R[Te];if(0<u(Le,X))R[Te]=X,R[se]=Le,se=Te;else break e}}function i(R){return R.length===0?null:R[0]}function s(R){if(R.length===0)return null;var X=R[0],se=R.pop();if(se!==X){R[0]=se;e:for(var Te=0,Le=R.length,A=Le>>>1;Te<A;){var Z=2*(Te+1)-1,ne=R[Z],ue=Z+1,ve=R[ue];if(0>u(ne,se))ue<Le&&0>u(ve,ne)?(R[Te]=ve,R[ue]=se,Te=ue):(R[Te]=ne,R[Z]=se,Te=Z);else if(ue<Le&&0>u(ve,se))R[Te]=ve,R[ue]=se,Te=ue;else break e}}return X}function u(R,X){var se=R.sortIndex-X.sortIndex;return se!==0?se:R.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var y=[],p=[],_=1,b=null,C=3,N=!1,U=!1,E=!1,q=!1,P=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null;function W(R){for(var X=i(p);X!==null;){if(X.callback===null)s(p);else if(X.startTime<=R)s(p),X.sortIndex=X.expirationTime,r(y,X);else break;X=i(p)}}function B(R){if(E=!1,W(R),!U)if(i(y)!==null)U=!0,Q||(Q=!0,v());else{var X=i(p);X!==null&&ie(B,X.startTime-R)}}var Q=!1,K=-1,Se=5,ze=-1;function Ie(){return q?!0:!(n.unstable_now()-ze<Se)}function ye(){if(q=!1,Q){var R=n.unstable_now();ze=R;var X=!0;try{e:{U=!1,E&&(E=!1,F(K),K=-1),N=!0;var se=C;try{t:{for(W(R),b=i(y);b!==null&&!(b.expirationTime>R&&Ie());){var Te=b.callback;if(typeof Te=="function"){b.callback=null,C=b.priorityLevel;var Le=Te(b.expirationTime<=R);if(R=n.unstable_now(),typeof Le=="function"){b.callback=Le,W(R),X=!0;break t}b===i(y)&&s(y),W(R)}else s(y);b=i(y)}if(b!==null)X=!0;else{var A=i(p);A!==null&&ie(B,A.startTime-R),X=!1}}break e}finally{b=null,C=se,N=!1}X=void 0}}finally{X?v():Q=!1}}}var v;if(typeof ae=="function")v=function(){ae(ye)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,$=Y.port2;Y.port1.onmessage=ye,v=function(){$.postMessage(null)}}else v=function(){P(ye,0)};function ie(R,X){K=P(function(){R(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Se=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return C},n.unstable_next=function(R){switch(C){case 1:case 2:case 3:var X=3;break;default:X=C}var se=C;C=X;try{return R()}finally{C=se}},n.unstable_requestPaint=function(){q=!0},n.unstable_runWithPriority=function(R,X){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var se=C;C=R;try{return X()}finally{C=se}},n.unstable_scheduleCallback=function(R,X,se){var Te=n.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Te+se:Te):se=Te,R){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=se+Le,R={id:_++,callback:X,priorityLevel:R,startTime:se,expirationTime:Le,sortIndex:-1},se>Te?(R.sortIndex=se,r(p,R),i(y)===null&&R===i(p)&&(E?(F(K),K=-1):E=!0,ie(B,se-Te))):(R.sortIndex=Le,r(y,R),U||N||(U=!0,Q||(Q=!0,v()))),R},n.unstable_shouldYield=Ie,n.unstable_wrapCallback=function(R){var X=C;return function(){var se=C;C=X;try{return R.apply(this,arguments)}finally{C=se}}}})(Du)),Du}var fm;function $v(){return fm||(fm=1,ku.exports=Yv()),ku.exports}var Mu={exports:{}},Zt={};/**
17
+ */var Fd;function Ob(){return Fd||(Fd=1,(function(r){function n(Z,H){var J=Z.length;Z.push(H);e:for(;0<J;){var De=J-1>>>1,Qe=Z[De];if(0<o(Qe,H))Z[De]=H,Z[J]=Qe,J=De;else break e}}function l(Z){return Z.length===0?null:Z[0]}function s(Z){if(Z.length===0)return null;var H=Z[0],J=Z.pop();if(J!==H){Z[0]=J;e:for(var De=0,Qe=Z.length,kt=Qe>>>1;De<kt;){var A=2*(De+1)-1,$=Z[A],re=A+1,ce=Z[re];if(0>o($,J))re<Qe&&0>o(ce,$)?(Z[De]=ce,Z[re]=J,De=re):(Z[De]=$,Z[A]=J,De=A);else if(re<Qe&&0>o(ce,J))Z[De]=ce,Z[re]=J,De=re;else break e}}return H}function o(Z,H){var J=Z.sortIndex-H.sortIndex;return J!==0?J:Z.id-H.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;r.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();r.unstable_now=function(){return d.now()-h}}var y=[],p=[],x=1,N=null,C=3,S=!1,k=!1,w=!1,q=!1,te=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,le=typeof setImmediate<"u"?setImmediate:null;function I(Z){for(var H=l(p);H!==null;){if(H.callback===null)s(p);else if(H.startTime<=Z)s(p),H.sortIndex=H.expirationTime,n(y,H);else break;H=l(p)}}function B(Z){if(w=!1,I(Z),!k)if(l(y)!==null)k=!0,K||(K=!0,b());else{var H=l(p);H!==null&&se(B,H.startTime-Z)}}var K=!1,ne=-1,de=5,we=-1;function Ue(){return q?!0:!(r.unstable_now()-we<de)}function _e(){if(q=!1,K){var Z=r.unstable_now();we=Z;var H=!0;try{e:{k=!1,w&&(w=!1,Q(ne),ne=-1),S=!0;var J=C;try{t:{for(I(Z),N=l(y);N!==null&&!(N.expirationTime>Z&&Ue());){var De=N.callback;if(typeof De=="function"){N.callback=null,C=N.priorityLevel;var Qe=De(N.expirationTime<=Z);if(Z=r.unstable_now(),typeof Qe=="function"){N.callback=Qe,I(Z),H=!0;break t}N===l(y)&&s(y),I(Z)}else s(y);N=l(y)}if(N!==null)H=!0;else{var kt=l(p);kt!==null&&se(B,kt.startTime-Z),H=!1}}break e}finally{N=null,C=J,S=!1}H=void 0}}finally{H?b():K=!1}}}var b;if(typeof le=="function")b=function(){le(_e)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,X=F.port2;F.port1.onmessage=_e,b=function(){X.postMessage(null)}}else b=function(){te(_e,0)};function se(Z,H){ne=te(function(){Z(r.unstable_now())},H)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(Z){Z.callback=null},r.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<Z?Math.floor(1e3/Z):5},r.unstable_getCurrentPriorityLevel=function(){return C},r.unstable_next=function(Z){switch(C){case 1:case 2:case 3:var H=3;break;default:H=C}var J=C;C=H;try{return Z()}finally{C=J}},r.unstable_requestPaint=function(){q=!0},r.unstable_runWithPriority=function(Z,H){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var J=C;C=Z;try{return H()}finally{C=J}},r.unstable_scheduleCallback=function(Z,H,J){var De=r.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?De+J:De):J=De,Z){case 1:var Qe=-1;break;case 2:Qe=250;break;case 5:Qe=1073741823;break;case 4:Qe=1e4;break;default:Qe=5e3}return Qe=J+Qe,Z={id:x++,callback:H,priorityLevel:Z,startTime:J,expirationTime:Qe,sortIndex:-1},J>De?(Z.sortIndex=J,n(p,Z),l(y)===null&&Z===l(p)&&(w?(Q(ne),ne=-1):w=!0,se(B,J-De))):(Z.sortIndex=Qe,n(y,Z),k||S||(k=!0,K||(K=!0,b()))),Z},r.unstable_shouldYield=Ue,r.unstable_wrapCallback=function(Z){var H=C;return function(){var J=C;C=H;try{return Z.apply(this,arguments)}finally{C=J}}}})(pu)),pu}var Qd;function Rb(){return Qd||(Qd=1,hu.exports=Ob()),hu.exports}var gu={exports:{}},xe={},Xd;function Mb(){if(Xd)return xe;Xd=1;var r={env:{}};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),S=Symbol.iterator;function k(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,te={};function Q(A,$,re){this.props=A,this.context=$,this.refs=te,this.updater=re||w}Q.prototype.isReactComponent={},Q.prototype.setState=function(A,$){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,$,"setState")},Q.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function le(){}le.prototype=Q.prototype;function I(A,$,re){this.props=A,this.context=$,this.refs=te,this.updater=re||w}var B=I.prototype=new le;B.constructor=I,q(B,Q.prototype),B.isPureReactComponent=!0;var K=Array.isArray;function ne(){}var de={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function Ue(A,$,re){var ce=re.ref;return{$$typeof:n,type:A,key:$,ref:ce!==void 0?ce:null,props:re}}function _e(A,$){return Ue(A.type,$,A.props)}function b(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function F(A){var $={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(re){return $[re]})}var X=/\/+/g;function se(A,$){return typeof A=="object"&&A!==null&&A.key!=null?F(""+A.key):$.toString(36)}function Z(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ne,ne):(A.status="pending",A.then(function($){A.status==="pending"&&(A.status="fulfilled",A.value=$)},function($){A.status==="pending"&&(A.status="rejected",A.reason=$)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function H(A,$,re,ce,Te){var Ae=typeof A;(Ae==="undefined"||Ae==="boolean")&&(A=null);var Le=!1;if(A===null)Le=!0;else switch(Ae){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(A.$$typeof){case n:case l:Le=!0;break;case N:return Le=A._init,H(Le(A._payload),$,re,ce,Te)}}if(Le)return Te=Te(A),Le=ce===""?"."+se(A,0):ce,K(Te)?(re="",Le!=null&&(re=Le.replace(X,"$&/")+"/"),H(Te,$,re,"",function(rr){return rr})):Te!=null&&(b(Te)&&(Te=_e(Te,re+(Te.key==null||A&&A.key===Te.key?"":(""+Te.key).replace(X,"$&/")+"/")+Le)),$.push(Te)),1;Le=0;var Tt=ce===""?".":ce+":";if(K(A))for(var ut=0;ut<A.length;ut++)ce=A[ut],Ae=Tt+se(ce,ut),Le+=H(ce,$,re,Ae,Te);else if(ut=k(A),typeof ut=="function")for(A=ut.call(A),ut=0;!(ce=A.next()).done;)ce=ce.value,Ae=Tt+se(ce,ut++),Le+=H(ce,$,re,Ae,Te);else if(Ae==="object"){if(typeof A.then=="function")return H(Z(A),$,re,ce,Te);throw $=String(A),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return Le}function J(A,$,re){if(A==null)return A;var ce=[],Te=0;return H(A,ce,"","",function(Ae){return $.call(re,Ae,Te++)}),ce}function De(A){if(A._status===-1){var $=A._result;$=$(),$.then(function(re){(A._status===0||A._status===-1)&&(A._status=1,A._result=re)},function(re){(A._status===0||A._status===-1)&&(A._status=2,A._result=re)}),A._status===-1&&(A._status=0,A._result=$)}if(A._status===1)return A._result.default;throw A._result}var Qe=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent($))return}else if(typeof r=="object"&&typeof r.emit=="function"){r.emit("uncaughtException",A);return}console.error(A)},kt={map:J,forEach:function(A,$,re){J(A,function(){$.apply(this,arguments)},re)},count:function(A){var $=0;return J(A,function(){$++}),$},toArray:function(A){return J(A,function($){return $})||[]},only:function(A){if(!b(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return xe.Activity=C,xe.Children=kt,xe.Component=Q,xe.Fragment=s,xe.Profiler=f,xe.PureComponent=I,xe.StrictMode=o,xe.Suspense=p,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=de,xe.__COMPILER_RUNTIME={__proto__:null,c:function(A){return de.H.useMemoCache(A)}},xe.cache=function(A){return function(){return A.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(A,$,re){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var ce=q({},A.props),Te=A.key;if($!=null)for(Ae in $.key!==void 0&&(Te=""+$.key),$)!we.call($,Ae)||Ae==="key"||Ae==="__self"||Ae==="__source"||Ae==="ref"&&$.ref===void 0||(ce[Ae]=$[Ae]);var Ae=arguments.length-2;if(Ae===1)ce.children=re;else if(1<Ae){for(var Le=Array(Ae),Tt=0;Tt<Ae;Tt++)Le[Tt]=arguments[Tt+2];ce.children=Le}return Ue(A.type,Te,ce)},xe.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},xe.createElement=function(A,$,re){var ce,Te={},Ae=null;if($!=null)for(ce in $.key!==void 0&&(Ae=""+$.key),$)we.call($,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(Te[ce]=$[ce]);var Le=arguments.length-2;if(Le===1)Te.children=re;else if(1<Le){for(var Tt=Array(Le),ut=0;ut<Le;ut++)Tt[ut]=arguments[ut+2];Te.children=Tt}if(A&&A.defaultProps)for(ce in Le=A.defaultProps,Le)Te[ce]===void 0&&(Te[ce]=Le[ce]);return Ue(A,Ae,Te)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(A){return{$$typeof:y,render:A}},xe.isValidElement=b,xe.lazy=function(A){return{$$typeof:N,_payload:{_status:-1,_result:A},_init:De}},xe.memo=function(A,$){return{$$typeof:x,type:A,compare:$===void 0?null:$}},xe.startTransition=function(A){var $=de.T,re={};de.T=re;try{var ce=A(),Te=de.S;Te!==null&&Te(re,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(ne,Qe)}catch(Ae){Qe(Ae)}finally{$!==null&&re.types!==null&&($.types=re.types),de.T=$}},xe.unstable_useCacheRefresh=function(){return de.H.useCacheRefresh()},xe.use=function(A){return de.H.use(A)},xe.useActionState=function(A,$,re){return de.H.useActionState(A,$,re)},xe.useCallback=function(A,$){return de.H.useCallback(A,$)},xe.useContext=function(A){return de.H.useContext(A)},xe.useDebugValue=function(){},xe.useDeferredValue=function(A,$){return de.H.useDeferredValue(A,$)},xe.useEffect=function(A,$){return de.H.useEffect(A,$)},xe.useEffectEvent=function(A){return de.H.useEffectEvent(A)},xe.useId=function(){return de.H.useId()},xe.useImperativeHandle=function(A,$,re){return de.H.useImperativeHandle(A,$,re)},xe.useInsertionEffect=function(A,$){return de.H.useInsertionEffect(A,$)},xe.useLayoutEffect=function(A,$){return de.H.useLayoutEffect(A,$)},xe.useMemo=function(A,$){return de.H.useMemo(A,$)},xe.useOptimistic=function(A,$){return de.H.useOptimistic(A,$)},xe.useReducer=function(A,$,re){return de.H.useReducer(A,$,re)},xe.useRef=function(A){return de.H.useRef(A)},xe.useState=function(A){return de.H.useState(A)},xe.useSyncExternalStore=function(A,$,re){return de.H.useSyncExternalStore(A,$,re)},xe.useTransition=function(){return de.H.useTransition()},xe.version="19.2.4",xe}var Kd;function yu(){return Kd||(Kd=1,gu.exports=Mb()),gu.exports}var bu={exports:{}},Ht={};/**
18
26
  * @license React
19
27
  * react-dom.production.js
20
28
  *
@@ -22,7 +30,7 @@ var vE=Object.defineProperty;var bE=(on,un,pr)=>un in on?vE(on,un,{enumerable:!0
22
30
  *
23
31
  * This source code is licensed under the MIT license found in the
24
32
  * LICENSE file in the root directory of this source tree.
25
- */var dm;function Qv(){if(dm)return Zt;dm=1;var n=Ou();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)p+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(y,p,_){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:y,containerInfo:p,implementation:_}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Zt.createPortal=function(y,p){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return f(y,p,null,_)},Zt.flushSync=function(y){var p=d.T,_=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=p,s.p=_,s.d.f()}},Zt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},Zt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},Zt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var _=p.as,b=h(_,p.crossOrigin),C=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;_==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:N}):_==="script"&&s.d.X(y,{crossOrigin:b,integrity:C,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Zt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var _=h(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},Zt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var _=p.as,b=h(_,p.crossOrigin);s.d.L(y,_,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Zt.preloadModule=function(y,p){if(typeof y=="string")if(p){var _=h(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},Zt.requestFormReset=function(y){s.d.r(y)},Zt.unstable_batchedUpdates=function(y,p){return y(p)},Zt.useFormState=function(y,p,_){return d.H.useFormState(y,p,_)},Zt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Zt.version="19.2.4",Zt}var mm;function Xv(){if(mm)return Mu.exports;mm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Mu.exports=Qv(),Mu.exports}/**
33
+ */var Jd;function zb(){if(Jd)return Ht;Jd=1;var r=yu();function n(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(n(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(y,p,x){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:N==null?null:""+N,children:y,containerInfo:p,implementation:x}}var d=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ht.createPortal=function(y,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return f(y,p,null,x)},Ht.flushSync=function(y){var p=d.T,x=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=p,s.p=x,s.d.f()}},Ht.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},Ht.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},Ht.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,N=h(x,p.crossOrigin),C=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:N,integrity:C,fetchPriority:S}):x==="script"&&s.d.X(y,{crossOrigin:N,integrity:C,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ht.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=h(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},Ht.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,N=h(x,p.crossOrigin);s.d.L(y,x,{crossOrigin:N,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ht.preloadModule=function(y,p){if(typeof y=="string")if(p){var x=h(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},Ht.requestFormReset=function(y){s.d.r(y)},Ht.unstable_batchedUpdates=function(y,p){return y(p)},Ht.useFormState=function(y,p,x){return d.H.useFormState(y,p,x)},Ht.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ht.version="19.2.4",Ht}var Id;function kb(){if(Id)return bu.exports;Id=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),bu.exports=zb(),bu.exports}var Pd;function jb(){if(Pd)return Li;Pd=1;var r={env:{}};/**
26
34
  * @license React
27
35
  * react-dom-client.production.js
28
36
  *
@@ -30,71 +38,71 @@ var vE=Object.defineProperty;var bE=(on,un,pr)=>un in on?vE(on,un,{enumerable:!0
30
38
  *
31
39
  * This source code is licensed under the MIT license found in the
32
40
  * LICENSE file in the root directory of this source tree.
33
- */var hm;function Fv(){if(hm)return ei;hm=1;var n=$v(),r=Ou(),i=Xv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return y(o),e;if(c===l)return y(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=c;else{for(var m=!1,g=o.child;g;){if(g===a){m=!0,a=o,l=c;break}if(g===l){m=!0,l=o,a=c;break}g=g.sibling}if(!m){for(g=c.child;g;){if(g===a){m=!0,a=c,l=o;break}if(g===l){m=!0,l=c,a=o;break}g=g.sibling}if(!m)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Se=Symbol.for("react.lazy"),ze=Symbol.for("react.activity"),Ie=Symbol.for("react.memo_cache_sentinel"),ye=Symbol.iterator;function v(e){return e===null||typeof e!="object"?null:(e=ye&&e[ye]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Symbol.for("react.client.reference");function $(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Y?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case P:return"Profiler";case q:return"StrictMode";case B:return"Suspense";case Q:return"SuspenseList";case ze:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case ae:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case W:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:$(e.type)||"Memo";case Se:t=e._payload,e=e._init;try{return $(e(t))}catch{}}return null}var ie=Array.isArray,R=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Te=[],Le=-1;function A(e){return{current:e}}function Z(e){0>Le||(e.current=Te[Le],Te[Le]=null,Le--)}function ne(e,t){Le++,Te[Le]=e.current,e.current=t}var ue=A(null),ve=A(null),Ce=A(null),je=A(null);function jt(e,t){switch(ne(Ce,t),ne(ve,e),ne(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dv(t),e=mv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(ue),ne(ue,e)}function lt(){Z(ue),Z(ve),Z(Ce)}function Zn(e){e.memoizedState!==null&&ne(je,e);var t=ue.current,a=mv(t,e.type);t!==a&&(ne(ve,e),ne(ue,a))}function Yn(e){ve.current===e&&(Z(ue),Z(ve)),je.current===e&&(Z(je),vs._currentValue=se)}var Tr,oo;function an(e){if(Tr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Tr=t&&t[1]||"",oo=-1<a.stack.indexOf(`
41
+ */var n=Rb(),l=yu(),s=kb();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(d(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,i=t;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(i=u.return,i!==null){a=i;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return p(u),e;if(c===i)return p(u),t;c=c.sibling}throw Error(o(188))}if(a.return!==i.return)a=u,i=c;else{for(var m=!1,g=u.child;g;){if(g===a){m=!0,a=u,i=c;break}if(g===i){m=!0,i=u,a=c;break}g=g.sibling}if(!m){for(g=c.child;g;){if(g===a){m=!0,a=c,i=u;break}if(g===i){m=!0,i=c,a=u;break}g=g.sibling}if(!m)throw Error(o(189))}}if(a.alternate!==i)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var C=Object.assign,S=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),le=Symbol.for("react.consumer"),I=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),Ue=Symbol.for("react.activity"),_e=Symbol.for("react.memo_cache_sentinel"),b=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=b&&e[b]||e["@@iterator"],typeof e=="function"?e:null)}var X=Symbol.for("react.client.reference");function se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===X?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case Q:return"Profiler";case te:return"StrictMode";case K:return"Suspense";case ne:return"SuspenseList";case Ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case I:return e.displayName||"Context";case le:return(e._context.displayName||"Context")+".Consumer";case B:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case de:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var Z=Array.isArray,H=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De={pending:!1,data:null,method:null,action:null},Qe=[],kt=-1;function A(e){return{current:e}}function $(e){0>kt||(e.current=Qe[kt],Qe[kt]=null,kt--)}function re(e,t){kt++,Qe[kt]=e.current,e.current=t}var ce=A(null),Te=A(null),Ae=A(null),Le=A(null);function Tt(e,t){switch(re(Ae,t),re(Te,e),re(ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Iy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Iy(t),e=Py(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ce),re(ce,e)}function ut(){$(ce),$(Te),$(Ae)}function rr(e){e.memoizedState!==null&&re(Le,e);var t=ce.current,a=Py(t,e.type);t!==a&&(re(Te,e),re(ce,a))}function Or(e){Te.current===e&&($(ce),$(Te)),Le.current===e&&($(Le),ts._currentValue=De)}var dl,ml;function nr(e){if(dl===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);dl=t&&t[1]||"",ml=-1<a.stack.indexOf(`
34
42
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
35
- `+Tr+e+oo}var Ri=!1;function hl(e,t){if(!e||Ri)return"";Ri=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(j){var M=j}Reflect.construct(e,[],G)}else{try{G.call()}catch(j){M=j}e.call(G.prototype)}}else{try{throw Error()}catch(j){M=j}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(j){if(j&&M&&typeof j.stack=="string")return[j.stack,M.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),m=c[0],g=c[1];if(m&&g){var S=m.split(`
36
- `),k=g.split(`
37
- `);for(o=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;o<k.length&&!k[o].includes("DetermineComponentFrameRoot");)o++;if(l===S.length||o===k.length)for(l=S.length-1,o=k.length-1;1<=l&&0<=o&&S[l]!==k[o];)o--;for(;1<=l&&0<=o;l--,o--)if(S[l]!==k[o]){if(l!==1||o!==1)do if(l--,o--,0>o||S[l]!==k[o]){var V=`
38
- `+S[l].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=l&&0<=o);break}}}finally{Ri=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?an(a):""}function uo(e,t){switch(e.tag){case 26:case 27:case 5:return an(e.type);case 16:return an("Lazy");case 13:return e.child!==t&&t!==null?an("Suspense Fallback"):an("Suspense");case 19:return an("SuspenseList");case 0:case 15:return hl(e.type,!1);case 11:return hl(e.type.render,!1);case 1:return hl(e.type,!0);case 31:return an("Activity");default:return""}}function co(e){try{var t="",a=null;do t+=uo(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
39
- Error generating stack: `+l.message+`
40
- `+l.stack}}var Oi=Object.prototype.hasOwnProperty,fo=n.unstable_scheduleCallback,pl=n.unstable_cancelCallback,x=n.unstable_shouldYield,O=n.unstable_requestPaint,D=n.unstable_now,re=n.unstable_getCurrentPriorityLevel,I=n.unstable_ImmediatePriority,ee=n.unstable_UserBlockingPriority,fe=n.unstable_NormalPriority,xe=n.unstable_LowPriority,Ve=n.unstable_IdlePriority,It=n.log,Ra=n.unstable_setDisableYieldValue,wt=null,Wt=null;function Oa(e){if(typeof It=="function"&&Ra(e),Wt&&typeof Wt.setStrictMode=="function")try{Wt.setStrictMode(wt,e)}catch{}}var Bt=Math.clz32?Math.clz32:Qc,$c=Math.log,mo=Math.LN2;function Qc(e){return e>>>=0,e===0?32:31-($c(e)/mo|0)|0}var Rr=256,ho=262144,po=4194304;function Or(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function go(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var g=l&134217727;return g!==0?(l=g&~c,l!==0?o=Or(l):(m&=g,m!==0?o=Or(m):a||(a=g&~e,a!==0&&(o=Or(a))))):(g=l&~c,g!==0?o=Or(g):m!==0?o=Or(m):a||(a=l&~e,a!==0&&(o=Or(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function zi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function l2(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xp(){var e=po;return po<<=1,(po&62914560)===0&&(po=4194304),e}function Xc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ki(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function i2(e,t,a,l,o,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var g=e.entanglements,S=e.expirationTimes,k=e.hiddenUpdates;for(a=m&~a;0<a;){var V=31-Bt(a),G=1<<V;g[V]=0,S[V]=-1;var M=k[V];if(M!==null)for(k[V]=null,V=0;V<M.length;V++){var j=M[V];j!==null&&(j.lane&=-536870913)}a&=~G}l!==0&&Fp(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function Fp(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Bt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Kp(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Bt(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function Jp(e,t){var a=t&-t;return a=(a&42)!==0?1:Fc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Fc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Kc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Pp(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:jv(e.type))}function Ip(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var $n=Math.random().toString(36).slice(2),Lt="__reactFiber$"+$n,la="__reactProps$"+$n,gl="__reactContainer$"+$n,Jc="__reactEvents$"+$n,s2="__reactListeners$"+$n,o2="__reactHandles$"+$n,Wp="__reactResources$"+$n,Di="__reactMarker$"+$n;function Pc(e){delete e[Lt],delete e[la],delete e[Jc],delete e[s2],delete e[o2]}function yl(e){var t=e[Lt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[gl]||a[Lt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=_v(e);e!==null;){if(a=e[Lt])return a;e=_v(e)}return t}e=a,a=e.parentNode}return null}function vl(e){if(e=e[Lt]||e[gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Mi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function bl(e){var t=e[Wp];return t||(t=e[Wp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Dt(e){e[Di]=!0}var e0=new Set,t0={};function zr(e,t){_l(e,t),_l(e+"Capture",t)}function _l(e,t){for(t0[e]=t,e=0;e<t.length;e++)e0.add(t[e])}var u2=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]*$"),a0={},n0={};function c2(e){return Oi.call(n0,e)?!0:Oi.call(a0,e)?!1:u2.test(e)?n0[e]=!0:(a0[e]=!0,!1)}function yo(e,t,a){if(c2(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function vo(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function gn(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function za(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function r0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function f2(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ic(e){if(!e._valueTracker){var t=r0(e)?"checked":"value";e._valueTracker=f2(e,t,""+e[t])}}function l0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=r0(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function bo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var d2=/[\n"\\]/g;function ka(e){return e.replace(d2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Wc(e,t,a,l,o,c,m,g){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+za(t)):e.value!==""+za(t)&&(e.value=""+za(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?ef(e,m,za(t)):a!=null?ef(e,m,za(a)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+za(g):e.removeAttribute("name")}function i0(e,t,a,l,o,c,m,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Ic(e);return}a=a!=null?""+za(a):"",t=t!=null?""+za(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=g?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Ic(e)}function ef(e,t,a){t==="number"&&bo(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Nl(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+za(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function s0(e,t,a){if(t!=null&&(t=""+za(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+za(a):""}function o0(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(s(92));if(ie(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=za(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Ic(e)}function Sl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var m2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function u0(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||m2.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function c0(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&u0(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&u0(e,c,t[c])}function tf(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var h2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),p2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function _o(e){return p2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}var af=null;function nf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xl=null,El=null;function f0(e){var t=vl(e);if(t&&(e=t.stateNode)){var a=e[la]||null;e:switch(e=t.stateNode,t.type){case"input":if(Wc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+ka(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[la]||null;if(!o)throw Error(s(90));Wc(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&l0(l)}break e;case"textarea":s0(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Nl(e,!!a.multiple,t,!1)}}}var rf=!1;function d0(e,t,a){if(rf)return e(t,a);rf=!0;try{var l=e(t);return l}finally{if(rf=!1,(xl!==null||El!==null)&&(su(),xl&&(t=xl,e=El,El=xl=null,f0(t),e)))for(t=0;t<e.length;t++)f0(e[t])}}function Ui(e,t){var a=e.stateNode;if(a===null)return null;var l=a[la]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var vn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lf=!1;if(vn)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){lf=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{lf=!1}var Qn=null,sf=null,No=null;function m0(){if(No)return No;var e,t=sf,a=t.length,l,o="value"in Qn?Qn.value:Qn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var m=a-e;for(l=1;l<=m&&t[a-l]===o[c-l];l++);return No=o.slice(e,1<l?1-l:void 0)}function So(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xo(){return!0}function h0(){return!1}function ia(e){function t(a,l,o,c,m){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?xo:h0,this.isPropagationStopped=h0,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=xo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=xo)},persist:function(){},isPersistent:xo}),t}var kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eo=ia(kr),Bi=b({},kr,{view:0,detail:0}),g2=ia(Bi),of,uf,Li,wo=b({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ff,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Li&&(Li&&e.type==="mousemove"?(of=e.screenX-Li.screenX,uf=e.screenY-Li.screenY):uf=of=0,Li=e),of)},movementY:function(e){return"movementY"in e?e.movementY:uf}}),p0=ia(wo),y2=b({},wo,{dataTransfer:0}),v2=ia(y2),b2=b({},Bi,{relatedTarget:0}),cf=ia(b2),_2=b({},kr,{animationName:0,elapsedTime:0,pseudoElement:0}),N2=ia(_2),S2=b({},kr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),x2=ia(S2),E2=b({},kr,{data:0}),g0=ia(E2),w2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},A2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=A2[e])?!!t[e]:!1}function ff(){return T2}var R2=b({},Bi,{key:function(e){if(e.key){var t=w2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=So(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?C2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ff,charCode:function(e){return e.type==="keypress"?So(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?So(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O2=ia(R2),z2=b({},wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),y0=ia(z2),k2=b({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ff}),D2=ia(k2),M2=b({},kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),U2=ia(M2),j2=b({},wo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),B2=ia(j2),L2=b({},kr,{newState:0,oldState:0}),V2=ia(L2),q2=[9,13,27,32],df=vn&&"CompositionEvent"in window,Vi=null;vn&&"documentMode"in document&&(Vi=document.documentMode);var H2=vn&&"TextEvent"in window&&!Vi,v0=vn&&(!df||Vi&&8<Vi&&11>=Vi),b0=" ",_0=!1;function N0(e,t){switch(e){case"keyup":return q2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function S0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wl=!1;function G2(e,t){switch(e){case"compositionend":return S0(t);case"keypress":return t.which!==32?null:(_0=!0,b0);case"textInput":return e=t.data,e===b0&&_0?null:e;default:return null}}function Z2(e,t){if(wl)return e==="compositionend"||!df&&N0(e,t)?(e=m0(),No=sf=Qn=null,wl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return v0&&t.locale!=="ko"?null:t.data;default:return null}}var Y2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function x0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Y2[e.type]:t==="textarea"}function E0(e,t,a,l){xl?El?El.push(l):El=[l]:xl=l,t=hu(t,"onChange"),0<t.length&&(a=new Eo("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var qi=null,Hi=null;function $2(e){iv(e,0)}function Co(e){var t=Mi(e);if(l0(t))return e}function w0(e,t){if(e==="change")return t}var C0=!1;if(vn){var mf;if(vn){var hf="oninput"in document;if(!hf){var A0=document.createElement("div");A0.setAttribute("oninput","return;"),hf=typeof A0.oninput=="function"}mf=hf}else mf=!1;C0=mf&&(!document.documentMode||9<document.documentMode)}function T0(){qi&&(qi.detachEvent("onpropertychange",R0),Hi=qi=null)}function R0(e){if(e.propertyName==="value"&&Co(Hi)){var t=[];E0(t,Hi,e,nf(e)),d0($2,t)}}function Q2(e,t,a){e==="focusin"?(T0(),qi=t,Hi=a,qi.attachEvent("onpropertychange",R0)):e==="focusout"&&T0()}function X2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Co(Hi)}function F2(e,t){if(e==="click")return Co(t)}function K2(e,t){if(e==="input"||e==="change")return Co(t)}function J2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ya=typeof Object.is=="function"?Object.is:J2;function Gi(e,t){if(ya(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Oi.call(t,o)||!ya(e[o],t[o]))return!1}return!0}function O0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function z0(e,t){var a=O0(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=O0(a)}}function k0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?k0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function D0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bo(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=bo(e.document)}return t}function pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var P2=vn&&"documentMode"in document&&11>=document.documentMode,Cl=null,gf=null,Zi=null,yf=!1;function M0(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;yf||Cl==null||Cl!==bo(l)||(l=Cl,"selectionStart"in l&&pf(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}),Zi&&Gi(Zi,l)||(Zi=l,l=hu(gf,"onSelect"),0<l.length&&(t=new Eo("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Cl)))}function Dr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Al={animationend:Dr("Animation","AnimationEnd"),animationiteration:Dr("Animation","AnimationIteration"),animationstart:Dr("Animation","AnimationStart"),transitionrun:Dr("Transition","TransitionRun"),transitionstart:Dr("Transition","TransitionStart"),transitioncancel:Dr("Transition","TransitionCancel"),transitionend:Dr("Transition","TransitionEnd")},vf={},U0={};vn&&(U0=document.createElement("div").style,"AnimationEvent"in window||(delete Al.animationend.animation,delete Al.animationiteration.animation,delete Al.animationstart.animation),"TransitionEvent"in window||delete Al.transitionend.transition);function Mr(e){if(vf[e])return vf[e];if(!Al[e])return e;var t=Al[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in U0)return vf[e]=t[a];return e}var j0=Mr("animationend"),B0=Mr("animationiteration"),L0=Mr("animationstart"),I2=Mr("transitionrun"),W2=Mr("transitionstart"),e5=Mr("transitioncancel"),V0=Mr("transitionend"),q0=new Map,bf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");bf.push("scrollEnd");function $a(e,t){q0.set(e,t),zr(t,[e])}var Ao=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Da=[],Tl=0,_f=0;function To(){for(var e=Tl,t=_f=Tl=0;t<e;){var a=Da[t];Da[t++]=null;var l=Da[t];Da[t++]=null;var o=Da[t];Da[t++]=null;var c=Da[t];if(Da[t++]=null,l!==null&&o!==null){var m=l.pending;m===null?o.next=o:(o.next=m.next,m.next=o),l.pending=o}c!==0&&H0(a,o,c)}}function Ro(e,t,a,l){Da[Tl++]=e,Da[Tl++]=t,Da[Tl++]=a,Da[Tl++]=l,_f|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Nf(e,t,a,l){return Ro(e,t,a,l),Oo(e)}function Ur(e,t){return Ro(e,null,null,t),Oo(e)}function H0(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Bt(a),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=a|536870912),c):null}function Oo(e){if(50<fs)throw fs=0,Od=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Rl={};function t5(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,a,l){return new t5(e,t,a,l)}function Sf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bn(e,t){var a=e.alternate;return a===null?(a=va(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function G0(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zo(e,t,a,l,o,c){var m=0;if(l=e,typeof e=="function")Sf(e)&&(m=1);else if(typeof e=="string")m=iE(e,a,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ze:return e=va(31,a,t,o),e.elementType=ze,e.lanes=c,e;case E:return jr(a.children,o,c,t);case q:m=8,o|=24;break;case P:return e=va(12,a,t,o|2),e.elementType=P,e.lanes=c,e;case B:return e=va(13,a,t,o),e.elementType=B,e.lanes=c,e;case Q:return e=va(19,a,t,o),e.elementType=Q,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ae:m=10;break e;case F:m=9;break e;case W:m=11;break e;case K:m=14;break e;case Se:m=16,l=null;break e}m=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=va(m,a,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function jr(e,t,a,l){return e=va(7,e,l,t),e.lanes=a,e}function xf(e,t,a){return e=va(6,e,null,t),e.lanes=a,e}function Z0(e){var t=va(18,null,null,0);return t.stateNode=e,t}function Ef(e,t,a){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Y0=new WeakMap;function Ma(e,t){if(typeof e=="object"&&e!==null){var a=Y0.get(e);return a!==void 0?a:(t={value:e,source:t,stack:co(t)},Y0.set(e,t),t)}return{value:e,source:t,stack:co(t)}}var Ol=[],zl=0,ko=null,Yi=0,Ua=[],ja=0,Xn=null,nn=1,rn="";function _n(e,t){Ol[zl++]=Yi,Ol[zl++]=ko,ko=e,Yi=t}function $0(e,t,a){Ua[ja++]=nn,Ua[ja++]=rn,Ua[ja++]=Xn,Xn=e;var l=nn;e=rn;var o=32-Bt(l)-1;l&=~(1<<o),a+=1;var c=32-Bt(t)+o;if(30<c){var m=o-o%5;c=(l&(1<<m)-1).toString(32),l>>=m,o-=m,nn=1<<32-Bt(t)+o|a<<o|l,rn=c+e}else nn=1<<c|a<<o|l,rn=e}function wf(e){e.return!==null&&(_n(e,1),$0(e,1,0))}function Cf(e){for(;e===ko;)ko=Ol[--zl],Ol[zl]=null,Yi=Ol[--zl],Ol[zl]=null;for(;e===Xn;)Xn=Ua[--ja],Ua[ja]=null,rn=Ua[--ja],Ua[ja]=null,nn=Ua[--ja],Ua[ja]=null}function Q0(e,t){Ua[ja++]=nn,Ua[ja++]=rn,Ua[ja++]=Xn,nn=t.id,rn=t.overflow,Xn=e}var Vt=null,it=null,Me=!1,Fn=null,Ba=!1,Af=Error(s(519));function Kn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $i(Ma(t,e)),Af}function X0(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Lt]=e,t[la]=l,a){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(a=0;a<ms.length;a++)Oe(ms[a],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),i0(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),o0(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||cv(t.textContent,a)?(l.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),l.onScroll!=null&&Oe("scroll",t),l.onScrollEnd!=null&&Oe("scrollend",t),l.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||Kn(e,!0)}function F0(e){for(Vt=e.return;Vt;)switch(Vt.tag){case 5:case 31:case 13:Ba=!1;return;case 27:case 3:Ba=!0;return;default:Vt=Vt.return}}function kl(e){if(e!==Vt)return!1;if(!Me)return F0(e),Me=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||$d(e.type,e.memoizedProps)),a=!a),a&&it&&Kn(e),F0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));it=bv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));it=bv(e)}else t===27?(t=it,ur(e.type)?(e=Jd,Jd=null,it=e):it=t):it=Vt?Va(e.stateNode.nextSibling):null;return!0}function Br(){it=Vt=null,Me=!1}function Tf(){var e=Fn;return e!==null&&(ca===null?ca=e:ca.push.apply(ca,e),Fn=null),e}function $i(e){Fn===null?Fn=[e]:Fn.push(e)}var Rf=A(null),Lr=null,Nn=null;function Jn(e,t,a){ne(Rf,t._currentValue),t._currentValue=a}function Sn(e){e._currentValue=Rf.current,Z(Rf)}function Of(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function zf(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var g=c;c=o;for(var S=0;S<t.length;S++)if(g.context===t[S]){c.lanes|=a,g=c.alternate,g!==null&&(g.lanes|=a),Of(c.return,a,e),l||(m=null);break e}c=g.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(s(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),Of(m,a,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Dl(e,t,a,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var g=o.type;ya(o.pendingProps.value,m.value)||(e!==null?e.push(g):e=[g])}}else if(o===je.current){if(m=o.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(vs):e=[vs])}o=o.return}e!==null&&zf(t,e,a,l),t.flags|=262144}function Do(e){for(e=e.firstContext;e!==null;){if(!ya(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vr(e){Lr=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qt(e){return K0(Lr,e)}function Mo(e,t){return Lr===null&&Vr(e),K0(e,t)}function K0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Nn===null){if(e===null)throw Error(s(308));Nn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nn=Nn.next=t;return a}var a5=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},n5=n.unstable_scheduleCallback,r5=n.unstable_NormalPriority,Ct={$$typeof:ae,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kf(){return{controller:new a5,data:new Map,refCount:0}}function Qi(e){e.refCount--,e.refCount===0&&n5(r5,function(){e.controller.abort()})}var Xi=null,Df=0,Ml=0,Ul=null;function l5(e,t){if(Xi===null){var a=Xi=[];Df=0,Ml=jd(),Ul={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Df++,t.then(J0,J0),t}function J0(){if(--Df===0&&Xi!==null){Ul!==null&&(Ul.status="fulfilled");var e=Xi;Xi=null,Ml=0,Ul=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function i5(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var P0=R.S;R.S=function(e,t){My=D(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&l5(e,t),P0!==null&&P0(e,t)};var qr=A(null);function Mf(){var e=qr.current;return e!==null?e:at.pooledCache}function Uo(e,t){t===null?ne(qr,qr.current):ne(qr,t.pool)}function I0(){var e=Mf();return e===null?null:{parent:Ct._currentValue,pool:e}}var jl=Error(s(460)),Uf=Error(s(474)),jo=Error(s(542)),Bo={then:function(){}};function W0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function eg(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(yn,yn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ag(e),e;default:if(typeof t.status=="string")t.then(yn,yn);else{if(e=at,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ag(e),e}throw Gr=t,jl}}function Hr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Gr=a,jl):a}}var Gr=null;function tg(){if(Gr===null)throw Error(s(459));var e=Gr;return Gr=null,e}function ag(e){if(e===jl||e===jo)throw Error(s(483))}var Bl=null,Fi=0;function Lo(e){var t=Fi;return Fi+=1,Bl===null&&(Bl=[]),eg(Bl,e,t)}function Ki(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vo(e,t){throw t.$$typeof===C?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ng(e){function t(T,w){if(e){var z=T.deletions;z===null?(T.deletions=[w],T.flags|=16):z.push(w)}}function a(T,w){if(!e)return null;for(;w!==null;)t(T,w),w=w.sibling;return null}function l(T){for(var w=new Map;T!==null;)T.key!==null?w.set(T.key,T):w.set(T.index,T),T=T.sibling;return w}function o(T,w){return T=bn(T,w),T.index=0,T.sibling=null,T}function c(T,w,z){return T.index=z,e?(z=T.alternate,z!==null?(z=z.index,z<w?(T.flags|=67108866,w):z):(T.flags|=67108866,w)):(T.flags|=1048576,w)}function m(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function g(T,w,z,H){return w===null||w.tag!==6?(w=xf(z,T.mode,H),w.return=T,w):(w=o(w,z),w.return=T,w)}function S(T,w,z,H){var pe=z.type;return pe===E?V(T,w,z.props.children,H,z.key):w!==null&&(w.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Se&&Hr(pe)===w.type)?(w=o(w,z.props),Ki(w,z),w.return=T,w):(w=zo(z.type,z.key,z.props,null,T.mode,H),Ki(w,z),w.return=T,w)}function k(T,w,z,H){return w===null||w.tag!==4||w.stateNode.containerInfo!==z.containerInfo||w.stateNode.implementation!==z.implementation?(w=Ef(z,T.mode,H),w.return=T,w):(w=o(w,z.children||[]),w.return=T,w)}function V(T,w,z,H,pe){return w===null||w.tag!==7?(w=jr(z,T.mode,H,pe),w.return=T,w):(w=o(w,z),w.return=T,w)}function G(T,w,z){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=xf(""+w,T.mode,z),w.return=T,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case N:return z=zo(w.type,w.key,w.props,null,T.mode,z),Ki(z,w),z.return=T,z;case U:return w=Ef(w,T.mode,z),w.return=T,w;case Se:return w=Hr(w),G(T,w,z)}if(ie(w)||v(w))return w=jr(w,T.mode,z,null),w.return=T,w;if(typeof w.then=="function")return G(T,Lo(w),z);if(w.$$typeof===ae)return G(T,Mo(T,w),z);Vo(T,w)}return null}function M(T,w,z,H){var pe=w!==null?w.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return pe!==null?null:g(T,w,""+z,H);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case N:return z.key===pe?S(T,w,z,H):null;case U:return z.key===pe?k(T,w,z,H):null;case Se:return z=Hr(z),M(T,w,z,H)}if(ie(z)||v(z))return pe!==null?null:V(T,w,z,H,null);if(typeof z.then=="function")return M(T,w,Lo(z),H);if(z.$$typeof===ae)return M(T,w,Mo(T,z),H);Vo(T,z)}return null}function j(T,w,z,H,pe){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return T=T.get(z)||null,g(w,T,""+H,pe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case N:return T=T.get(H.key===null?z:H.key)||null,S(w,T,H,pe);case U:return T=T.get(H.key===null?z:H.key)||null,k(w,T,H,pe);case Se:return H=Hr(H),j(T,w,z,H,pe)}if(ie(H)||v(H))return T=T.get(z)||null,V(w,T,H,pe,null);if(typeof H.then=="function")return j(T,w,z,Lo(H),pe);if(H.$$typeof===ae)return j(T,w,z,Mo(w,H),pe);Vo(w,H)}return null}function ce(T,w,z,H){for(var pe=null,qe=null,me=w,we=w=0,De=null;me!==null&&we<z.length;we++){me.index>we?(De=me,me=null):De=me.sibling;var He=M(T,me,z[we],H);if(He===null){me===null&&(me=De);break}e&&me&&He.alternate===null&&t(T,me),w=c(He,w,we),qe===null?pe=He:qe.sibling=He,qe=He,me=De}if(we===z.length)return a(T,me),Me&&_n(T,we),pe;if(me===null){for(;we<z.length;we++)me=G(T,z[we],H),me!==null&&(w=c(me,w,we),qe===null?pe=me:qe.sibling=me,qe=me);return Me&&_n(T,we),pe}for(me=l(me);we<z.length;we++)De=j(me,T,we,z[we],H),De!==null&&(e&&De.alternate!==null&&me.delete(De.key===null?we:De.key),w=c(De,w,we),qe===null?pe=De:qe.sibling=De,qe=De);return e&&me.forEach(function(hr){return t(T,hr)}),Me&&_n(T,we),pe}function ge(T,w,z,H){if(z==null)throw Error(s(151));for(var pe=null,qe=null,me=w,we=w=0,De=null,He=z.next();me!==null&&!He.done;we++,He=z.next()){me.index>we?(De=me,me=null):De=me.sibling;var hr=M(T,me,He.value,H);if(hr===null){me===null&&(me=De);break}e&&me&&hr.alternate===null&&t(T,me),w=c(hr,w,we),qe===null?pe=hr:qe.sibling=hr,qe=hr,me=De}if(He.done)return a(T,me),Me&&_n(T,we),pe;if(me===null){for(;!He.done;we++,He=z.next())He=G(T,He.value,H),He!==null&&(w=c(He,w,we),qe===null?pe=He:qe.sibling=He,qe=He);return Me&&_n(T,we),pe}for(me=l(me);!He.done;we++,He=z.next())He=j(me,T,we,He.value,H),He!==null&&(e&&He.alternate!==null&&me.delete(He.key===null?we:He.key),w=c(He,w,we),qe===null?pe=He:qe.sibling=He,qe=He);return e&&me.forEach(function(yE){return t(T,yE)}),Me&&_n(T,we),pe}function tt(T,w,z,H){if(typeof z=="object"&&z!==null&&z.type===E&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case N:e:{for(var pe=z.key;w!==null;){if(w.key===pe){if(pe=z.type,pe===E){if(w.tag===7){a(T,w.sibling),H=o(w,z.props.children),H.return=T,T=H;break e}}else if(w.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===Se&&Hr(pe)===w.type){a(T,w.sibling),H=o(w,z.props),Ki(H,z),H.return=T,T=H;break e}a(T,w);break}else t(T,w);w=w.sibling}z.type===E?(H=jr(z.props.children,T.mode,H,z.key),H.return=T,T=H):(H=zo(z.type,z.key,z.props,null,T.mode,H),Ki(H,z),H.return=T,T=H)}return m(T);case U:e:{for(pe=z.key;w!==null;){if(w.key===pe)if(w.tag===4&&w.stateNode.containerInfo===z.containerInfo&&w.stateNode.implementation===z.implementation){a(T,w.sibling),H=o(w,z.children||[]),H.return=T,T=H;break e}else{a(T,w);break}else t(T,w);w=w.sibling}H=Ef(z,T.mode,H),H.return=T,T=H}return m(T);case Se:return z=Hr(z),tt(T,w,z,H)}if(ie(z))return ce(T,w,z,H);if(v(z)){if(pe=v(z),typeof pe!="function")throw Error(s(150));return z=pe.call(z),ge(T,w,z,H)}if(typeof z.then=="function")return tt(T,w,Lo(z),H);if(z.$$typeof===ae)return tt(T,w,Mo(T,z),H);Vo(T,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,w!==null&&w.tag===6?(a(T,w.sibling),H=o(w,z),H.return=T,T=H):(a(T,w),H=xf(z,T.mode,H),H.return=T,T=H),m(T)):a(T,w)}return function(T,w,z,H){try{Fi=0;var pe=tt(T,w,z,H);return Bl=null,pe}catch(me){if(me===jl||me===jo)throw me;var qe=va(29,me,null,T.mode);return qe.lanes=H,qe.return=T,qe}finally{}}}var Zr=ng(!0),rg=ng(!1),Pn=!1;function jf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function In(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ye&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Oo(e),H0(e,null,a),t}return Ro(e,l,t,a),Oo(e)}function Ji(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Kp(e,a)}}function Lf(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Vf=!1;function Pi(){if(Vf){var e=Ul;if(e!==null)throw e}}function Ii(e,t,a,l){Vf=!1;var o=e.updateQueue;Pn=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var S=g,k=S.next;S.next=null,m===null?c=k:m.next=k,m=S;var V=e.alternate;V!==null&&(V=V.updateQueue,g=V.lastBaseUpdate,g!==m&&(g===null?V.firstBaseUpdate=k:g.next=k,V.lastBaseUpdate=S))}if(c!==null){var G=o.baseState;m=0,V=k=S=null,g=c;do{var M=g.lane&-536870913,j=M!==g.lane;if(j?(ke&M)===M:(l&M)===M){M!==0&&M===Ml&&(Vf=!0),V!==null&&(V=V.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var ce=e,ge=g;M=t;var tt=a;switch(ge.tag){case 1:if(ce=ge.payload,typeof ce=="function"){G=ce.call(tt,G,M);break e}G=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=ge.payload,M=typeof ce=="function"?ce.call(tt,G,M):ce,M==null)break e;G=b({},G,M);break e;case 2:Pn=!0}}M=g.callback,M!==null&&(e.flags|=64,j&&(e.flags|=8192),j=o.callbacks,j===null?o.callbacks=[M]:j.push(M))}else j={lane:M,tag:g.tag,payload:g.payload,callback:g.callback,next:null},V===null?(k=V=j,S=G):V=V.next=j,m|=M;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;j=g,g=j.next,j.next=null,o.lastBaseUpdate=j,o.shared.pending=null}}while(!0);V===null&&(S=G),o.baseState=S,o.firstBaseUpdate=k,o.lastBaseUpdate=V,c===null&&(o.shared.lanes=0),rr|=m,e.lanes=m,e.memoizedState=G}}function lg(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function ig(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)lg(a[e],t)}var Ll=A(null),qo=A(0);function sg(e,t){e=zn,ne(qo,e),ne(Ll,t),zn=e|t.baseLanes}function qf(){ne(qo,zn),ne(Ll,Ll.current)}function Hf(){zn=qo.current,Z(Ll),Z(qo)}var ba=A(null),La=null;function er(e){var t=e.alternate;ne(bt,bt.current&1),ne(ba,e),La===null&&(t===null||Ll.current!==null||t.memoizedState!==null)&&(La=e)}function Gf(e){ne(bt,bt.current),ne(ba,e),La===null&&(La=e)}function og(e){e.tag===22?(ne(bt,bt.current),ne(ba,e),La===null&&(La=e)):tr()}function tr(){ne(bt,bt.current),ne(ba,ba.current)}function _a(e){Z(ba),La===e&&(La=null),Z(bt)}var bt=A(0);function Ho(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Fd(a)||Kd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xn=0,Ee=null,We=null,At=null,Go=!1,Vl=!1,Yr=!1,Zo=0,Wi=0,ql=null,s5=0;function pt(){throw Error(s(321))}function Zf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ya(e[a],t[a]))return!1;return!0}function Yf(e,t,a,l,o,c){return xn=c,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?$g:ld,Yr=!1,c=a(l,o),Yr=!1,Vl&&(c=cg(t,a,l,o)),ug(e),c}function ug(e){R.H=as;var t=We!==null&&We.next!==null;if(xn=0,At=We=Ee=null,Go=!1,Wi=0,ql=null,t)throw Error(s(300));e===null||Tt||(e=e.dependencies,e!==null&&Do(e)&&(Tt=!0))}function cg(e,t,a,l){Ee=e;var o=0;do{if(Vl&&(ql=null),Wi=0,Vl=!1,25<=o)throw Error(s(301));if(o+=1,At=We=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}R.H=Qg,c=t(a,l)}while(Vl);return c}function o5(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?es(t):t,e=e.useState()[0],(We!==null?We.memoizedState:null)!==e&&(Ee.flags|=1024),t}function $f(){var e=Zo!==0;return Zo=0,e}function Qf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Xf(e){if(Go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Go=!1}xn=0,At=We=Ee=null,Vl=!1,Wi=Zo=0,ql=null}function ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Ee.memoizedState=At=e:At=At.next=e,At}function _t(){if(We===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=We.next;var t=At===null?Ee.memoizedState:At.next;if(t!==null)At=t,We=e;else{if(e===null)throw Ee.alternate===null?Error(s(467)):Error(s(310));We=e,e={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},At===null?Ee.memoizedState=At=e:At=At.next=e}return At}function Yo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function es(e){var t=Wi;return Wi+=1,ql===null&&(ql=[]),e=eg(ql,e,t),t=Ee,(At===null?t.memoizedState:At.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?$g:ld),e}function $o(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return es(e);if(e.$$typeof===ae)return qt(e)}throw Error(s(438,String(e)))}function Ff(e){var t=null,a=Ee.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=Ee.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Yo(),Ee.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Ie;return t.index++,a}function En(e,t){return typeof t=="function"?t(e):t}function Qo(e){var t=_t();return Kf(t,We,e)}function Kf(e,t,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var g=m=null,S=null,k=t,V=!1;do{var G=k.lane&-536870913;if(G!==k.lane?(ke&G)===G:(xn&G)===G){var M=k.revertLane;if(M===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),G===Ml&&(V=!0);else if((xn&M)===M){k=k.next,M===Ml&&(V=!0);continue}else G={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},S===null?(g=S=G,m=c):S=S.next=G,Ee.lanes|=M,rr|=M;G=k.action,Yr&&a(c,G),c=k.hasEagerState?k.eagerState:a(c,G)}else M={lane:G,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},S===null?(g=S=M,m=c):S=S.next=M,Ee.lanes|=G,rr|=G;k=k.next}while(k!==null&&k!==t);if(S===null?m=c:S.next=g,!ya(c,e.memoizedState)&&(Tt=!0,V&&(a=Ul,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=S,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Jf(e){var t=_t(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);ya(c,t.memoizedState)||(Tt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function fg(e,t,a){var l=Ee,o=_t(),c=Me;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var m=!ya((We||o).memoizedState,a);if(m&&(o.memoizedState=a,Tt=!0),o=o.queue,Wf(hg.bind(null,l,o,e),[e]),o.getSnapshot!==t||m||At!==null&&At.memoizedState.tag&1){if(l.flags|=2048,Hl(9,{destroy:void 0},mg.bind(null,l,o,a,t),null),at===null)throw Error(s(349));c||(xn&127)!==0||dg(l,t,a)}return a}function dg(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ee.updateQueue,t===null?(t=Yo(),Ee.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function mg(e,t,a,l){t.value=a,t.getSnapshot=l,pg(t)&&gg(e)}function hg(e,t,a){return a(function(){pg(t)&&gg(e)})}function pg(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ya(e,a)}catch{return!0}}function gg(e){var t=Ur(e,2);t!==null&&fa(t,e,2)}function Pf(e){var t=ea();if(typeof e=="function"){var a=e;if(e=a(),Yr){Oa(!0);try{a()}finally{Oa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function yg(e,t,a,l){return e.baseState=a,Kf(e,We,typeof l=="function"?l:En)}function u5(e,t,a,l,o){if(Ko(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};R.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,vg(t,c)):(c.next=a.next,t.pending=a.next=c)}}function vg(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=R.T,m={};R.T=m;try{var g=a(o,l),S=R.S;S!==null&&S(m,g),bg(e,t,g)}catch(k){If(e,t,k)}finally{c!==null&&m.types!==null&&(c.types=m.types),R.T=c}}else try{c=a(o,l),bg(e,t,c)}catch(k){If(e,t,k)}}function bg(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){_g(e,t,l)},function(l){return If(e,t,l)}):_g(e,t,a)}function _g(e,t,a){t.status="fulfilled",t.value=a,Ng(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,vg(e,a)))}function If(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Ng(t),t=t.next;while(t!==l)}e.action=null}function Ng(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Sg(e,t){return t}function xg(e,t){if(Me){var a=at.formState;if(a!==null){e:{var l=Ee;if(Me){if(it){t:{for(var o=it,c=Ba;o.nodeType!==8;){if(!c){o=null;break t}if(o=Va(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){it=Va(o.nextSibling),l=o.data==="F!";break e}}Kn(l)}l=!1}l&&(t=a[0])}}return a=ea(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sg,lastRenderedState:t},a.queue=l,a=Gg.bind(null,Ee,l),l.dispatch=a,l=Pf(!1),c=rd.bind(null,Ee,!1,l.queue),l=ea(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=u5.bind(null,Ee,o,c,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function Eg(e){var t=_t();return wg(t,We,e)}function wg(e,t,a){if(t=Kf(e,t,Sg)[0],e=Qo(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=es(t)}catch(m){throw m===jl?jo:m}else l=t;t=_t();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(Ee.flags|=2048,Hl(9,{destroy:void 0},c5.bind(null,o,a),null)),[l,c,e]}function c5(e,t){e.action=t}function Cg(e){var t=_t(),a=We;if(a!==null)return wg(t,a,e);_t(),t=t.memoizedState,a=_t();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Hl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=Yo(),Ee.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Ag(){return _t().memoizedState}function Xo(e,t,a,l){var o=ea();Ee.flags|=e,o.memoizedState=Hl(1|t,{destroy:void 0},a,l===void 0?null:l)}function Fo(e,t,a,l){var o=_t();l=l===void 0?null:l;var c=o.memoizedState.inst;We!==null&&l!==null&&Zf(l,We.memoizedState.deps)?o.memoizedState=Hl(t,c,a,l):(Ee.flags|=e,o.memoizedState=Hl(1|t,c,a,l))}function Tg(e,t){Xo(8390656,8,e,t)}function Wf(e,t){Fo(2048,8,e,t)}function f5(e){Ee.flags|=4;var t=Ee.updateQueue;if(t===null)t=Yo(),Ee.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Rg(e){var t=_t().memoizedState;return f5({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Og(e,t){return Fo(4,2,e,t)}function zg(e,t){return Fo(4,4,e,t)}function kg(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dg(e,t,a){a=a!=null?a.concat([e]):null,Fo(4,4,kg.bind(null,t,e),a)}function ed(){}function Mg(e,t){var a=_t();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Zf(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Ug(e,t){var a=_t();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Zf(t,l[1]))return l[0];if(l=e(),Yr){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[l,t],l}function td(e,t,a){return a===void 0||(xn&1073741824)!==0&&(ke&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=jy(),Ee.lanes|=e,rr|=e,a)}function jg(e,t,a,l){return ya(a,t)?a:Ll.current!==null?(e=td(e,a,l),ya(e,t)||(Tt=!0),e):(xn&42)===0||(xn&1073741824)!==0&&(ke&261930)===0?(Tt=!0,e.memoizedState=a):(e=jy(),Ee.lanes|=e,rr|=e,t)}function Bg(e,t,a,l,o){var c=X.p;X.p=c!==0&&8>c?c:8;var m=R.T,g={};R.T=g,rd(e,!1,t,a);try{var S=o(),k=R.S;if(k!==null&&k(g,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var V=i5(S,l);ts(e,t,V,xa(e))}else ts(e,t,l,xa(e))}catch(G){ts(e,t,{then:function(){},status:"rejected",reason:G},xa())}finally{X.p=c,m!==null&&g.types!==null&&(m.types=g.types),R.T=m}}function d5(){}function ad(e,t,a,l){if(e.tag!==5)throw Error(s(476));var o=Lg(e).queue;Bg(e,o,t,se,a===null?d5:function(){return Vg(e),a(l)})}function Lg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:se},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Vg(e){var t=Lg(e);t.next===null&&(t=e.alternate.memoizedState),ts(e,t.next.queue,{},xa())}function nd(){return qt(vs)}function qg(){return _t().memoizedState}function Hg(){return _t().memoizedState}function m5(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=xa();e=In(a);var l=Wn(t,e,a);l!==null&&(fa(l,t,a),Ji(l,t,a)),t={cache:kf()},e.payload=t;return}t=t.return}}function h5(e,t,a){var l=xa();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ko(e)?Zg(t,a):(a=Nf(e,t,a,l),a!==null&&(fa(a,e,l),Yg(a,t,l)))}function Gg(e,t,a){var l=xa();ts(e,t,a,l)}function ts(e,t,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ko(e))Zg(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,g=c(m,a);if(o.hasEagerState=!0,o.eagerState=g,ya(g,m))return Ro(e,t,o,0),at===null&&To(),!1}catch{}finally{}if(a=Nf(e,t,o,l),a!==null)return fa(a,e,l),Yg(a,t,l),!0}return!1}function rd(e,t,a,l){if(l={lane:2,revertLane:jd(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ko(e)){if(t)throw Error(s(479))}else t=Nf(e,a,l,2),t!==null&&fa(t,e,2)}function Ko(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function Zg(e,t){Vl=Go=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Yg(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Kp(e,a)}}var as={readContext:qt,use:$o,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt};as.useEffectEvent=pt;var $g={readContext:qt,use:$o,useCallback:function(e,t){return ea().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Tg,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Xo(4194308,4,kg.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Xo(4194308,4,e,t)},useInsertionEffect:function(e,t){Xo(4,2,e,t)},useMemo:function(e,t){var a=ea();t=t===void 0?null:t;var l=e();if(Yr){Oa(!0);try{e()}finally{Oa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ea();if(a!==void 0){var o=a(t);if(Yr){Oa(!0);try{a(t)}finally{Oa(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=h5.bind(null,Ee,e),[l.memoizedState,e]},useRef:function(e){var t=ea();return e={current:e},t.memoizedState=e},useState:function(e){e=Pf(e);var t=e.queue,a=Gg.bind(null,Ee,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:ed,useDeferredValue:function(e,t){var a=ea();return td(a,e,t)},useTransition:function(){var e=Pf(!1);return e=Bg.bind(null,Ee,e.queue,!0,!1),ea().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=Ee,o=ea();if(Me){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),at===null)throw Error(s(349));(ke&127)!==0||dg(l,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Tg(hg.bind(null,l,c,e),[e]),l.flags|=2048,Hl(9,{destroy:void 0},mg.bind(null,l,c,a,t),null),a},useId:function(){var e=ea(),t=at.identifierPrefix;if(Me){var a=rn,l=nn;a=(l&~(1<<32-Bt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Zo++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=s5++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:nd,useFormState:xg,useActionState:xg,useOptimistic:function(e){var t=ea();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=rd.bind(null,Ee,!0,a),a.dispatch=t,[e,t]},useMemoCache:Ff,useCacheRefresh:function(){return ea().memoizedState=m5.bind(null,Ee)},useEffectEvent:function(e){var t=ea(),a={impl:e};return t.memoizedState=a,function(){if((Ye&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},ld={readContext:qt,use:$o,useCallback:Mg,useContext:qt,useEffect:Wf,useImperativeHandle:Dg,useInsertionEffect:Og,useLayoutEffect:zg,useMemo:Ug,useReducer:Qo,useRef:Ag,useState:function(){return Qo(En)},useDebugValue:ed,useDeferredValue:function(e,t){var a=_t();return jg(a,We.memoizedState,e,t)},useTransition:function(){var e=Qo(En)[0],t=_t().memoizedState;return[typeof e=="boolean"?e:es(e),t]},useSyncExternalStore:fg,useId:qg,useHostTransitionStatus:nd,useFormState:Eg,useActionState:Eg,useOptimistic:function(e,t){var a=_t();return yg(a,We,e,t)},useMemoCache:Ff,useCacheRefresh:Hg};ld.useEffectEvent=Rg;var Qg={readContext:qt,use:$o,useCallback:Mg,useContext:qt,useEffect:Wf,useImperativeHandle:Dg,useInsertionEffect:Og,useLayoutEffect:zg,useMemo:Ug,useReducer:Jf,useRef:Ag,useState:function(){return Jf(En)},useDebugValue:ed,useDeferredValue:function(e,t){var a=_t();return We===null?td(a,e,t):jg(a,We.memoizedState,e,t)},useTransition:function(){var e=Jf(En)[0],t=_t().memoizedState;return[typeof e=="boolean"?e:es(e),t]},useSyncExternalStore:fg,useId:qg,useHostTransitionStatus:nd,useFormState:Cg,useActionState:Cg,useOptimistic:function(e,t){var a=_t();return We!==null?yg(a,We,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ff,useCacheRefresh:Hg};Qg.useEffectEvent=Rg;function id(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:b({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var sd={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=xa(),o=In(l);o.payload=t,a!=null&&(o.callback=a),t=Wn(e,o,l),t!==null&&(fa(t,e,l),Ji(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=xa(),o=In(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Wn(e,o,l),t!==null&&(fa(t,e,l),Ji(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=xa(),l=In(a);l.tag=2,t!=null&&(l.callback=t),t=Wn(e,l,a),t!==null&&(fa(t,e,a),Ji(t,e,a))}};function Xg(e,t,a,l,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,m):t.prototype&&t.prototype.isPureReactComponent?!Gi(a,l)||!Gi(o,c):!0}function Fg(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&sd.enqueueReplaceState(t,t.state,null)}function $r(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function Kg(e){Ao(e)}function Jg(e){console.error(e)}function Pg(e){Ao(e)}function Jo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Ig(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function od(e,t,a){return a=In(a),a.tag=3,a.payload={element:null},a.callback=function(){Jo(e,t)},a}function Wg(e){return e=In(e),e.tag=3,e}function ey(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){Ig(t,a,l)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Ig(t,a,l),typeof o!="function"&&(lr===null?lr=new Set([this]):lr.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function p5(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Dl(t,a,o,!0),a=ba.current,a!==null){switch(a.tag){case 31:case 13:return La===null?ou():a.alternate===null&&gt===0&&(gt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===Bo?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Dd(e,l,o)),!1;case 22:return a.flags|=65536,l===Bo?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Dd(e,l,o)),!1}throw Error(s(435,a.tag))}return Dd(e,l,o),ou(),!1}if(Me)return t=ba.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Af&&(e=Error(s(422),{cause:l}),$i(Ma(e,a)))):(l!==Af&&(t=Error(s(423),{cause:l}),$i(Ma(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Ma(l,a),o=od(e.stateNode,l,o),Lf(e,o),gt!==4&&(gt=2)),!1;var c=Error(s(520),{cause:l});if(c=Ma(c,a),cs===null?cs=[c]:cs.push(c),gt!==4&&(gt=2),t===null)return!0;l=Ma(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=od(a.stateNode,l,e),Lf(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(lr===null||!lr.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Wg(o),ey(o,e,a,l),Lf(a,o),!1}a=a.return}while(a!==null);return!1}var ud=Error(s(461)),Tt=!1;function Ht(e,t,a,l){t.child=e===null?rg(t,null,a,l):Zr(t,e.child,a,l)}function ty(e,t,a,l,o){a=a.render;var c=t.ref;if("ref"in l){var m={};for(var g in l)g!=="ref"&&(m[g]=l[g])}else m=l;return Vr(t),l=Yf(e,t,a,m,c,o),g=$f(),e!==null&&!Tt?(Qf(e,t,o),wn(e,t,o)):(Me&&g&&wf(t),t.flags|=1,Ht(e,t,l,o),t.child)}function ay(e,t,a,l,o){if(e===null){var c=a.type;return typeof c=="function"&&!Sf(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,ny(e,t,c,l,o)):(e=zo(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!yd(e,o)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:Gi,a(m,l)&&e.ref===t.ref)return wn(e,t,o)}return t.flags|=1,e=bn(c,l),e.ref=t.ref,e.return=t,t.child=e}function ny(e,t,a,l,o){if(e!==null){var c=e.memoizedProps;if(Gi(c,l)&&e.ref===t.ref)if(Tt=!1,t.pendingProps=l=c,yd(e,o))(e.flags&131072)!==0&&(Tt=!0);else return t.lanes=e.lanes,wn(e,t,o)}return cd(e,t,a,l,o)}function ry(e,t,a,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return ly(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Uo(t,c!==null?c.cachePool:null),c!==null?sg(t,c):qf(),og(t);else return l=t.lanes=536870912,ly(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(Uo(t,c.cachePool),sg(t,c),tr(),t.memoizedState=null):(e!==null&&Uo(t,null),qf(),tr());return Ht(e,t,o,a),t.child}function ns(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ly(e,t,a,l,o){var c=Mf();return c=c===null?null:{parent:Ct._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Uo(t,null),qf(),og(t),e!==null&&Dl(e,t,l,!0),t.childLanes=o,null}function Po(e,t){return t=Wo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function iy(e,t,a){return Zr(t,e.child,null,a),e=Po(t,t.pendingProps),e.flags|=2,_a(t),t.memoizedState=null,e}function g5(e,t,a){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(l.mode==="hidden")return e=Po(t,l),t.lanes=536870912,ns(null,e);if(Gf(t),(e=it)?(e=vv(e,Ba),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:nn,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},a=Z0(e),a.return=t,t.child=a,Vt=t,it=null)):e=null,e===null)throw Kn(t);return t.lanes=536870912,null}return Po(t,l)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(Gf(t),o)if(t.flags&256)t.flags&=-257,t=iy(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Tt||Dl(e,t,a,!1),o=(a&e.childLanes)!==0,Tt||o){if(l=at,l!==null&&(m=Jp(l,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,Ur(e,m),fa(l,e,m),ud;ou(),t=iy(e,t,a)}else e=c.treeContext,it=Va(m.nextSibling),Vt=t,Me=!0,Fn=null,Ba=!1,e!==null&&Q0(t,e),t=Po(t,l),t.flags|=4096;return t}return e=bn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Io(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function cd(e,t,a,l,o){return Vr(t),a=Yf(e,t,a,l,void 0,o),l=$f(),e!==null&&!Tt?(Qf(e,t,o),wn(e,t,o)):(Me&&l&&wf(t),t.flags|=1,Ht(e,t,a,o),t.child)}function sy(e,t,a,l,o,c){return Vr(t),t.updateQueue=null,a=cg(t,l,a,o),ug(e),l=$f(),e!==null&&!Tt?(Qf(e,t,c),wn(e,t,c)):(Me&&l&&wf(t),t.flags|=1,Ht(e,t,a,c),t.child)}function oy(e,t,a,l,o){if(Vr(t),t.stateNode===null){var c=Rl,m=a.contextType;typeof m=="object"&&m!==null&&(c=qt(m)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=sd,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},jf(t),m=a.contextType,c.context=typeof m=="object"&&m!==null?qt(m):Rl,c.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(id(t,a,m,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&sd.enqueueReplaceState(c,c.state,null),Ii(t,l,c,o),Pi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var g=t.memoizedProps,S=$r(a,g);c.props=S;var k=c.context,V=a.contextType;m=Rl,typeof V=="object"&&V!==null&&(m=qt(V));var G=a.getDerivedStateFromProps;V=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,V||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||k!==m)&&Fg(t,c,l,m),Pn=!1;var M=t.memoizedState;c.state=M,Ii(t,l,c,o),Pi(),k=t.memoizedState,g||M!==k||Pn?(typeof G=="function"&&(id(t,a,G,l),k=t.memoizedState),(S=Pn||Xg(t,a,S,l,M,k,m))?(V||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=k),c.props=l,c.state=k,c.context=m,l=S):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,Bf(e,t),m=t.memoizedProps,V=$r(a,m),c.props=V,G=t.pendingProps,M=c.context,k=a.contextType,S=Rl,typeof k=="object"&&k!==null&&(S=qt(k)),g=a.getDerivedStateFromProps,(k=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==G||M!==S)&&Fg(t,c,l,S),Pn=!1,M=t.memoizedState,c.state=M,Ii(t,l,c,o),Pi();var j=t.memoizedState;m!==G||M!==j||Pn||e!==null&&e.dependencies!==null&&Do(e.dependencies)?(typeof g=="function"&&(id(t,a,g,l),j=t.memoizedState),(V=Pn||Xg(t,a,V,l,M,j,S)||e!==null&&e.dependencies!==null&&Do(e.dependencies))?(k||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,j,S),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,j,S)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=j),c.props=l,c.state=j,c.context=S,l=V):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Io(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Zr(t,e.child,null,o),t.child=Zr(t,null,a,o)):Ht(e,t,a,o),t.memoizedState=c.state,e=t.child):e=wn(e,t,o),e}function uy(e,t,a,l){return Br(),t.flags|=256,Ht(e,t,a,l),t.child}var fd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function dd(e){return{baseLanes:e,cachePool:I0()}}function md(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Sa),e}function cy(e,t,a){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(o?er(t):tr(),(e=it)?(e=vv(e,Ba),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:nn,overflow:rn}:null,retryLane:536870912,hydrationErrors:null},a=Z0(e),a.return=t,t.child=a,Vt=t,it=null)):e=null,e===null)throw Kn(t);return Kd(e)?t.lanes=32:t.lanes=536870912,null}var g=l.children;return l=l.fallback,o?(tr(),o=t.mode,g=Wo({mode:"hidden",children:g},o),l=jr(l,o,a,null),g.return=t,l.return=t,g.sibling=l,t.child=g,l=t.child,l.memoizedState=dd(a),l.childLanes=md(e,m,a),t.memoizedState=fd,ns(null,l)):(er(t),hd(t,g))}var S=e.memoizedState;if(S!==null&&(g=S.dehydrated,g!==null)){if(c)t.flags&256?(er(t),t.flags&=-257,t=pd(e,t,a)):t.memoizedState!==null?(tr(),t.child=e.child,t.flags|=128,t=null):(tr(),g=l.fallback,o=t.mode,l=Wo({mode:"visible",children:l.children},o),g=jr(g,o,a,null),g.flags|=2,l.return=t,g.return=t,l.sibling=g,t.child=l,Zr(t,e.child,null,a),l=t.child,l.memoizedState=dd(a),l.childLanes=md(e,m,a),t.memoizedState=fd,t=ns(null,l));else if(er(t),Kd(g)){if(m=g.nextSibling&&g.nextSibling.dataset,m)var k=m.dgst;m=k,l=Error(s(419)),l.stack="",l.digest=m,$i({value:l,source:null,stack:null}),t=pd(e,t,a)}else if(Tt||Dl(e,t,a,!1),m=(a&e.childLanes)!==0,Tt||m){if(m=at,m!==null&&(l=Jp(m,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,Ur(e,l),fa(m,e,l),ud;Fd(g)||ou(),t=pd(e,t,a)}else Fd(g)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,it=Va(g.nextSibling),Vt=t,Me=!0,Fn=null,Ba=!1,e!==null&&Q0(t,e),t=hd(t,l.children),t.flags|=4096);return t}return o?(tr(),g=l.fallback,o=t.mode,S=e.child,k=S.sibling,l=bn(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,k!==null?g=bn(k,g):(g=jr(g,o,a,null),g.flags|=2),g.return=t,l.return=t,l.sibling=g,t.child=l,ns(null,l),l=t.child,g=e.child.memoizedState,g===null?g=dd(a):(o=g.cachePool,o!==null?(S=Ct._currentValue,o=o.parent!==S?{parent:S,pool:S}:o):o=I0(),g={baseLanes:g.baseLanes|a,cachePool:o}),l.memoizedState=g,l.childLanes=md(e,m,a),t.memoizedState=fd,ns(e.child,l)):(er(t),a=e.child,e=a.sibling,a=bn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function hd(e,t){return t=Wo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Wo(e,t){return e=va(22,e,null,t),e.lanes=0,e}function pd(e,t,a){return Zr(t,e.child,null,a),e=hd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fy(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Of(e.return,t,a)}function gd(e,t,a,l,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=a,m.tailMode=o,m.treeForkCount=c)}function dy(e,t,a){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var m=bt.current,g=(m&2)!==0;if(g?(m=m&1|2,t.flags|=128):m&=1,ne(bt,m),Ht(e,t,l,a),l=Me?Yi:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fy(e,a,t);else if(e.tag===19)fy(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&Ho(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),gd(t,!1,o,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ho(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}gd(t,!0,a,null,c,l);break;case"together":gd(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function wn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),rr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Dl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=bn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=bn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function yd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Do(e)))}function y5(e,t,a){switch(t.tag){case 3:jt(t,t.stateNode.containerInfo),Jn(t,Ct,e.memoizedState.cache),Br();break;case 27:case 5:Zn(t);break;case 4:jt(t,t.stateNode.containerInfo);break;case 10:Jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Gf(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(er(t),t.flags|=128,null):(a&t.child.childLanes)!==0?cy(e,t,a):(er(t),e=wn(e,t,a),e!==null?e.sibling:null);er(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Dl(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return dy(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(bt,bt.current),l)break;return null;case 22:return t.lanes=0,ry(e,t,a,t.pendingProps);case 24:Jn(t,Ct,e.memoizedState.cache)}return wn(e,t,a)}function my(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Tt=!0;else{if(!yd(e,a)&&(t.flags&128)===0)return Tt=!1,y5(e,t,a);Tt=(e.flags&131072)!==0}else Tt=!1,Me&&(t.flags&1048576)!==0&&$0(t,Yi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Hr(t.elementType),t.type=e,typeof e=="function")Sf(e)?(l=$r(e,l),t.tag=1,t=oy(null,t,e,l,a)):(t.tag=0,t=cd(null,t,e,l,a));else{if(e!=null){var o=e.$$typeof;if(o===W){t.tag=11,t=ty(null,t,e,l,a);break e}else if(o===K){t.tag=14,t=ay(null,t,e,l,a);break e}}throw t=$(e)||e,Error(s(306,t,""))}}return t;case 0:return cd(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=$r(l,t.pendingProps),oy(e,t,l,o,a);case 3:e:{if(jt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,Bf(e,t),Ii(t,l,null,a);var m=t.memoizedState;if(l=m.cache,Jn(t,Ct,l),l!==c.cache&&zf(t,[Ct],a,!0),Pi(),l=m.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=uy(e,t,l,a);break e}else if(l!==o){o=Ma(Error(s(424)),t),$i(o),t=uy(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(it=Va(e.firstChild),Vt=t,Me=!0,Fn=null,Ba=!0,a=rg(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Br(),l===o){t=wn(e,t,a);break e}Ht(e,t,l,a)}t=t.child}return t;case 26:return Io(e,t),e===null?(a=Ev(t.type,null,t.pendingProps,null))?t.memoizedState=a:Me||(a=t.type,e=t.pendingProps,l=pu(Ce.current).createElement(a),l[Lt]=t,l[la]=e,Gt(l,a,e),Dt(l),t.stateNode=l):t.memoizedState=Ev(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Zn(t),e===null&&Me&&(l=t.stateNode=Nv(t.type,t.pendingProps,Ce.current),Vt=t,Ba=!0,o=it,ur(t.type)?(Jd=o,it=Va(l.firstChild)):it=o),Ht(e,t,t.pendingProps.children,a),Io(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((o=l=it)&&(l=X5(l,t.type,t.pendingProps,Ba),l!==null?(t.stateNode=l,Vt=t,it=Va(l.firstChild),Ba=!1,o=!0):o=!1),o||Kn(t)),Zn(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,l=c.children,$d(o,c)?l=null:m!==null&&$d(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=Yf(e,t,o5,null,null,a),vs._currentValue=o),Io(e,t),Ht(e,t,l,a),t.child;case 6:return e===null&&Me&&((e=a=it)&&(a=F5(a,t.pendingProps,Ba),a!==null?(t.stateNode=a,Vt=t,it=null,e=!0):e=!1),e||Kn(t)),null;case 13:return cy(e,t,a);case 4:return jt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Zr(t,null,l,a):Ht(e,t,l,a),t.child;case 11:return ty(e,t,t.type,t.pendingProps,a);case 7:return Ht(e,t,t.pendingProps,a),t.child;case 8:return Ht(e,t,t.pendingProps.children,a),t.child;case 12:return Ht(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Jn(t,t.type,l.value),Ht(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Vr(t),o=qt(o),l=l(o),t.flags|=1,Ht(e,t,l,a),t.child;case 14:return ay(e,t,t.type,t.pendingProps,a);case 15:return ny(e,t,t.type,t.pendingProps,a);case 19:return dy(e,t,a);case 31:return g5(e,t,a);case 22:return ry(e,t,a,t.pendingProps);case 24:return Vr(t),l=qt(Ct),e===null?(o=Mf(),o===null&&(o=at,c=kf(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:l,cache:o},jf(t),Jn(t,Ct,o)):((e.lanes&a)!==0&&(Bf(e,t),Ii(t,null,null,a),Pi()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Jn(t,Ct,l)):(l=c.cache,Jn(t,Ct,l),l!==o.cache&&zf(t,[Ct],a,!0))),Ht(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Cn(e){e.flags|=4}function vd(e,t,a,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(qy())e.flags|=8192;else throw Gr=Bo,Uf}else e.flags&=-16777217}function hy(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Rv(t))if(qy())e.flags|=8192;else throw Gr=Bo,Uf}function eu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xp():536870912,e.lanes|=t,$l|=t)}function rs(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function st(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function v5(e,t,a){var l=t.pendingProps;switch(Cf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return st(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Sn(Ct),lt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(kl(t)?Cn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tf())),st(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Cn(t),c!==null?(st(t),hy(t,c)):(st(t),vd(t,o,null,l,a))):c?c!==e.memoizedState?(Cn(t),st(t),hy(t,c)):(st(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Cn(t),st(t),vd(t,o,e,l,a)),null;case 27:if(Yn(t),a=Ce.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Cn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return st(t),null}e=ue.current,kl(t)?X0(t):(e=Nv(o,l,a),t.stateNode=e,Cn(t))}return st(t),null;case 5:if(Yn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Cn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return st(t),null}if(c=ue.current,kl(t))X0(t);else{var m=pu(Ce.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?m.createElement(o,{is:l.is}):m.createElement(o)}}c[Lt]=t,c[la]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(Gt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Cn(t)}}return st(t),vd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Cn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=Ce.current,kl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=Vt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[Lt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||cv(e.nodeValue,a)),e||Kn(t,!0)}else e=pu(e).createTextNode(l),e[Lt]=t,t.stateNode=e}return st(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=kl(t),a!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Lt]=t}else Br(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;st(t),e=!1}else a=Tf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(_a(t),t):(_a(t),null);if((t.flags&128)!==0)throw Error(s(558))}return st(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=kl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Lt]=t}else Br(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;st(t),o=!1}else o=Tf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(_a(t),t):(_a(t),null)}return _a(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),eu(t,t.updateQueue),st(t),null);case 4:return lt(),e===null&&qd(t.stateNode.containerInfo),st(t),null;case 10:return Sn(t.type),st(t),null;case 19:if(Z(bt),l=t.memoizedState,l===null)return st(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)rs(l,!1);else{if(gt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Ho(e),c!==null){for(t.flags|=128,rs(l,!1),e=c.updateQueue,t.updateQueue=e,eu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)G0(a,e),a=a.sibling;return ne(bt,bt.current&1|2),Me&&_n(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&D()>lu&&(t.flags|=128,o=!0,rs(l,!1),t.lanes=4194304)}else{if(!o)if(e=Ho(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,eu(t,e),rs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Me)return st(t),null}else 2*D()-l.renderingStartTime>lu&&a!==536870912&&(t.flags|=128,o=!0,rs(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=D(),e.sibling=null,a=bt.current,ne(bt,o?a&1|2:a&1),Me&&_n(t,l.treeForkCount),e):(st(t),null);case 22:case 23:return _a(t),Hf(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),a=t.updateQueue,a!==null&&eu(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Z(qr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Sn(Ct),st(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function b5(e,t){switch(Cf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(Ct),lt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Yn(t),null;case 31:if(t.memoizedState!==null){if(_a(t),t.alternate===null)throw Error(s(340));Br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_a(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(bt),null;case 4:return lt(),null;case 10:return Sn(t.type),null;case 22:case 23:return _a(t),Hf(),e!==null&&Z(qr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sn(Ct),null;case 25:return null;default:return null}}function py(e,t){switch(Cf(t),t.tag){case 3:Sn(Ct),lt();break;case 26:case 27:case 5:Yn(t);break;case 4:lt();break;case 31:t.memoizedState!==null&&_a(t);break;case 13:_a(t);break;case 19:Z(bt);break;case 10:Sn(t.type);break;case 22:case 23:_a(t),Hf(),e!==null&&Z(qr);break;case 24:Sn(Ct)}}function ls(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var c=a.create,m=a.inst;l=c(),m.destroy=l}a=a.next}while(a!==o)}}catch(g){Ke(t,t.return,g)}}function ar(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var m=l.inst,g=m.destroy;if(g!==void 0){m.destroy=void 0,o=t;var S=a,k=g;try{k()}catch(V){Ke(o,S,V)}}}l=l.next}while(l!==c)}}catch(V){Ke(t,t.return,V)}}function gy(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ig(t,a)}catch(l){Ke(e,e.return,l)}}}function yy(e,t,a){a.props=$r(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ke(e,t,l)}}function is(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){Ke(e,t,o)}}function ln(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Ke(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Ke(e,t,o)}else a.current=null}function vy(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Ke(e,e.return,o)}}function bd(e,t,a){try{var l=e.stateNode;H5(l,e.type,a,t),l[la]=t}catch(o){Ke(e,e.return,o)}}function by(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ur(e.type)||e.tag===4}function _d(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||by(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ur(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nd(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=yn));else if(l!==4&&(l===27&&ur(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Nd(e,t,a),e=e.sibling;e!==null;)Nd(e,t,a),e=e.sibling}function tu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&ur(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(tu(e,t,a),e=e.sibling;e!==null;)tu(e,t,a),e=e.sibling}function _y(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Gt(t,l,a),t[Lt]=e,t[la]=a}catch(c){Ke(e,e.return,c)}}var An=!1,Rt=!1,Sd=!1,Ny=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function _5(e,t){if(e=e.containerInfo,Zd=Su,e=D0(e),pf(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,g=-1,S=-1,k=0,V=0,G=e,M=null;t:for(;;){for(var j;G!==a||o!==0&&G.nodeType!==3||(g=m+o),G!==c||l!==0&&G.nodeType!==3||(S=m+l),G.nodeType===3&&(m+=G.nodeValue.length),(j=G.firstChild)!==null;)M=G,G=j;for(;;){if(G===e)break t;if(M===a&&++k===o&&(g=m),M===c&&++V===l&&(S=m),(j=G.nextSibling)!==null)break;G=M,M=G.parentNode}G=j}a=g===-1||S===-1?null:{start:g,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Yd={focusedElem:e,selectionRange:a},Su=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){switch(t=Mt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var ce=$r(a.type,o);e=l.getSnapshotBeforeUpdate(ce,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Ke(a,a.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Xd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Mt=e;break}Mt=t.return}}function Sy(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Rn(e,a),l&4&&ls(5,a);break;case 1:if(Rn(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(m){Ke(a,a.return,m)}else{var o=$r(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ke(a,a.return,m)}}l&64&&gy(a),l&512&&is(a,a.return);break;case 3:if(Rn(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{ig(e,t)}catch(m){Ke(a,a.return,m)}}break;case 27:t===null&&l&4&&_y(a);case 26:case 5:Rn(e,a),t===null&&l&4&&vy(a),l&512&&is(a,a.return);break;case 12:Rn(e,a);break;case 31:Rn(e,a),l&4&&wy(e,a);break;case 13:Rn(e,a),l&4&&Cy(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=R5.bind(null,a),K5(e,a))));break;case 22:if(l=a.memoizedState!==null||An,!l){t=t!==null&&t.memoizedState!==null||Rt,o=An;var c=Rt;An=l,(Rt=t)&&!c?On(e,a,(a.subtreeFlags&8772)!==0):Rn(e,a),An=o,Rt=c}break;case 30:break;default:Rn(e,a)}}function xy(e){var t=e.alternate;t!==null&&(e.alternate=null,xy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ft=null,sa=!1;function Tn(e,t,a){for(a=a.child;a!==null;)Ey(e,t,a),a=a.sibling}function Ey(e,t,a){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(wt,a)}catch{}switch(a.tag){case 26:Rt||ln(a,t),Tn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Rt||ln(a,t);var l=ft,o=sa;ur(a.type)&&(ft=a.stateNode,sa=!1),Tn(e,t,a),ps(a.stateNode),ft=l,sa=o;break;case 5:Rt||ln(a,t);case 6:if(l=ft,o=sa,ft=null,Tn(e,t,a),ft=l,sa=o,ft!==null)if(sa)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(a.stateNode)}catch(c){Ke(a,t,c)}else try{ft.removeChild(a.stateNode)}catch(c){Ke(a,t,c)}break;case 18:ft!==null&&(sa?(e=ft,gv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Wl(e)):gv(ft,a.stateNode));break;case 4:l=ft,o=sa,ft=a.stateNode.containerInfo,sa=!0,Tn(e,t,a),ft=l,sa=o;break;case 0:case 11:case 14:case 15:ar(2,a,t),Rt||ar(4,a,t),Tn(e,t,a);break;case 1:Rt||(ln(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&yy(a,t,l)),Tn(e,t,a);break;case 21:Tn(e,t,a);break;case 22:Rt=(l=Rt)||a.memoizedState!==null,Tn(e,t,a),Rt=l;break;default:Tn(e,t,a)}}function wy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wl(e)}catch(a){Ke(t,t.return,a)}}}function Cy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wl(e)}catch(a){Ke(t,t.return,a)}}function N5(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ny),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ny),t;default:throw Error(s(435,e.tag))}}function au(e,t){var a=N5(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var o=O5.bind(null,e,l);l.then(o,o)}})}function oa(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],c=e,m=t,g=m;e:for(;g!==null;){switch(g.tag){case 27:if(ur(g.type)){ft=g.stateNode,sa=!1;break e}break;case 5:ft=g.stateNode,sa=!1;break e;case 3:case 4:ft=g.stateNode.containerInfo,sa=!0;break e}g=g.return}if(ft===null)throw Error(s(160));Ey(c,m,o),ft=null,sa=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ay(t,e),t=t.sibling}var Qa=null;function Ay(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:oa(t,e),ua(e),l&4&&(ar(3,e,e.return),ls(3,e),ar(5,e,e.return));break;case 1:oa(t,e),ua(e),l&512&&(Rt||a===null||ln(a,a.return)),l&64&&An&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Qa;if(oa(t,e),ua(e),l&512&&(Rt||a===null||ln(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Di]||c[Lt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),Gt(c,l,a),c[Lt]=e,Dt(c),l=c;break e;case"link":var m=Av("link","href",o).get(l+(a.href||""));if(m){for(var g=0;g<m.length;g++)if(c=m[g],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(g,1);break t}}c=o.createElement(l),Gt(c,l,a),o.head.appendChild(c);break;case"meta":if(m=Av("meta","content",o).get(l+(a.content||""))){for(g=0;g<m.length;g++)if(c=m[g],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(g,1);break t}}c=o.createElement(l),Gt(c,l,a),o.head.appendChild(c);break;default:throw Error(s(468,l))}c[Lt]=e,Dt(c),l=c}e.stateNode=l}else Tv(o,e.type,e.stateNode);else e.stateNode=Cv(o,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?Tv(o,e.type,e.stateNode):Cv(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&bd(e,e.memoizedProps,a.memoizedProps)}break;case 27:oa(t,e),ua(e),l&512&&(Rt||a===null||ln(a,a.return)),a!==null&&l&4&&bd(e,e.memoizedProps,a.memoizedProps);break;case 5:if(oa(t,e),ua(e),l&512&&(Rt||a===null||ln(a,a.return)),e.flags&32){o=e.stateNode;try{Sl(o,"")}catch(ce){Ke(e,e.return,ce)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,bd(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Sd=!0);break;case 6:if(oa(t,e),ua(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(ce){Ke(e,e.return,ce)}}break;case 3:if(vu=null,o=Qa,Qa=gu(t.containerInfo),oa(t,e),Qa=o,ua(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Wl(t.containerInfo)}catch(ce){Ke(e,e.return,ce)}Sd&&(Sd=!1,Ty(e));break;case 4:l=Qa,Qa=gu(e.stateNode.containerInfo),oa(t,e),ua(e),Qa=l;break;case 12:oa(t,e),ua(e);break;case 31:oa(t,e),ua(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 13:oa(t,e),ua(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ru=D()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 22:o=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,k=An,V=Rt;if(An=k||o,Rt=V||S,oa(t,e),Rt=V,An=k,ua(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||S||An||Rt||Qr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(c=S.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{g=S.stateNode;var G=S.memoizedProps.style,M=G!=null&&G.hasOwnProperty("display")?G.display:null;g.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(ce){Ke(S,S.return,ce)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=o?"":S.memoizedProps}catch(ce){Ke(S,S.return,ce)}}}else if(t.tag===18){if(a===null){S=t;try{var j=S.stateNode;o?yv(j,!0):yv(S.stateNode,!1)}catch(ce){Ke(S,S.return,ce)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,au(e,a))));break;case 19:oa(t,e),ua(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,au(e,l)));break;case 30:break;case 21:break;default:oa(t,e),ua(e)}}function ua(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(by(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=_d(e);tu(e,c,o);break;case 5:var m=a.stateNode;a.flags&32&&(Sl(m,""),a.flags&=-33);var g=_d(e);tu(e,g,m);break;case 3:case 4:var S=a.stateNode.containerInfo,k=_d(e);Nd(e,k,S);break;default:throw Error(s(161))}}catch(V){Ke(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ty(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ty(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Rn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Sy(e,t.alternate,t),t=t.sibling}function Qr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ar(4,t,t.return),Qr(t);break;case 1:ln(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&yy(t,t.return,a),Qr(t);break;case 27:ps(t.stateNode);case 26:case 5:ln(t,t.return),Qr(t);break;case 22:t.memoizedState===null&&Qr(t);break;case 30:Qr(t);break;default:Qr(t)}e=e.sibling}}function On(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:On(o,c,a),ls(4,c);break;case 1:if(On(o,c,a),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){Ke(l,l.return,k)}if(l=c,o=l.updateQueue,o!==null){var g=l.stateNode;try{var S=o.shared.hiddenCallbacks;if(S!==null)for(o.shared.hiddenCallbacks=null,o=0;o<S.length;o++)lg(S[o],g)}catch(k){Ke(l,l.return,k)}}a&&m&64&&gy(c),is(c,c.return);break;case 27:_y(c);case 26:case 5:On(o,c,a),a&&l===null&&m&4&&vy(c),is(c,c.return);break;case 12:On(o,c,a);break;case 31:On(o,c,a),a&&m&4&&wy(o,c);break;case 13:On(o,c,a),a&&m&4&&Cy(o,c);break;case 22:c.memoizedState===null&&On(o,c,a),is(c,c.return);break;case 30:break;default:On(o,c,a)}t=t.sibling}}function xd(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Qi(a))}function Ed(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qi(e))}function Xa(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ry(e,t,a,l),t=t.sibling}function Ry(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Xa(e,t,a,l),o&2048&&ls(9,t);break;case 1:Xa(e,t,a,l);break;case 3:Xa(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qi(e)));break;case 12:if(o&2048){Xa(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,g=c.onPostCommit;typeof g=="function"&&g(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ke(t,t.return,S)}}else Xa(e,t,a,l);break;case 31:Xa(e,t,a,l);break;case 13:Xa(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?Xa(e,t,a,l):ss(e,t):c._visibility&2?Xa(e,t,a,l):(c._visibility|=2,Gl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&xd(m,t);break;case 24:Xa(e,t,a,l),o&2048&&Ed(t.alternate,t);break;default:Xa(e,t,a,l)}}function Gl(e,t,a,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,g=a,S=l,k=m.flags;switch(m.tag){case 0:case 11:case 15:Gl(c,m,g,S,o),ls(8,m);break;case 23:break;case 22:var V=m.stateNode;m.memoizedState!==null?V._visibility&2?Gl(c,m,g,S,o):ss(c,m):(V._visibility|=2,Gl(c,m,g,S,o)),o&&k&2048&&xd(m.alternate,m);break;case 24:Gl(c,m,g,S,o),o&&k&2048&&Ed(m.alternate,m);break;default:Gl(c,m,g,S,o)}t=t.sibling}}function ss(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:ss(a,l),o&2048&&xd(l.alternate,l);break;case 24:ss(a,l),o&2048&&Ed(l.alternate,l);break;default:ss(a,l)}t=t.sibling}}var os=8192;function Zl(e,t,a){if(e.subtreeFlags&os)for(e=e.child;e!==null;)Oy(e,t,a),e=e.sibling}function Oy(e,t,a){switch(e.tag){case 26:Zl(e,t,a),e.flags&os&&e.memoizedState!==null&&sE(a,Qa,e.memoizedState,e.memoizedProps);break;case 5:Zl(e,t,a);break;case 3:case 4:var l=Qa;Qa=gu(e.stateNode.containerInfo),Zl(e,t,a),Qa=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=os,os=16777216,Zl(e,t,a),os=l):Zl(e,t,a));break;default:Zl(e,t,a)}}function zy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function us(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Mt=l,Dy(l,e)}zy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ky(e),e=e.sibling}function ky(e){switch(e.tag){case 0:case 11:case 15:us(e),e.flags&2048&&ar(9,e,e.return);break;case 3:us(e);break;case 12:us(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nu(e)):us(e);break;default:us(e)}}function nu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Mt=l,Dy(l,e)}zy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ar(8,t,t.return),nu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,nu(t));break;default:nu(t)}e=e.sibling}}function Dy(e,t){for(;Mt!==null;){var a=Mt;switch(a.tag){case 0:case 11:case 15:ar(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Qi(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Mt=l;else e:for(a=e;Mt!==null;){l=Mt;var o=l.sibling,c=l.return;if(xy(l),l===a){Mt=null;break e}if(o!==null){o.return=c,Mt=o;break e}Mt=c}}}var S5={getCacheForType:function(e){var t=qt(Ct),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return qt(Ct).controller.signal}},x5=typeof WeakMap=="function"?WeakMap:Map,Ye=0,at=null,Re=null,ke=0,Fe=0,Na=null,nr=!1,Yl=!1,wd=!1,zn=0,gt=0,rr=0,Xr=0,Cd=0,Sa=0,$l=0,cs=null,ca=null,Ad=!1,ru=0,My=0,lu=1/0,iu=null,lr=null,kt=0,ir=null,Ql=null,kn=0,Td=0,Rd=null,Uy=null,fs=0,Od=null;function xa(){return(Ye&2)!==0&&ke!==0?ke&-ke:R.T!==null?jd():Pp()}function jy(){if(Sa===0)if((ke&536870912)===0||Me){var e=ho;ho<<=1,(ho&3932160)===0&&(ho=262144),Sa=e}else Sa=536870912;return e=ba.current,e!==null&&(e.flags|=32),Sa}function fa(e,t,a){(e===at&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Xl(e,0),sr(e,ke,Sa,!1)),ki(e,a),((Ye&2)===0||e!==at)&&(e===at&&((Ye&2)===0&&(Xr|=a),gt===4&&sr(e,ke,Sa,!1)),sn(e))}function By(e,t,a){if((Ye&6)!==0)throw Error(s(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||zi(e,t),o=l?C5(e,t):kd(e,t,!0),c=l;do{if(o===0){Yl&&!l&&sr(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!E5(a)){o=kd(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var g=e;o=cs;var S=g.current.memoizedState.isDehydrated;if(S&&(Xl(g,m).flags|=256),m=kd(g,m,!1),m!==2){if(wd&&!S){g.errorRecoveryDisabledLanes|=c,Xr|=c,o=4;break e}c=ca,ca=o,c!==null&&(ca===null?ca=c:ca.push.apply(ca,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){Xl(e,0),sr(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:sr(l,t,Sa,!nr);break e;case 2:ca=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=ru+300-D(),10<o)){if(sr(l,t,Sa,!nr),go(l,0,!0)!==0)break e;kn=t,l.timeoutHandle=hv(Ly.bind(null,l,a,ca,iu,Ad,t,Sa,Xr,$l,nr,c,"Throttled",-0,0),o);break e}Ly(l,a,ca,iu,Ad,t,Sa,Xr,$l,nr,c,null,-0,0)}}break}while(!0);sn(e)}function Ly(e,t,a,l,o,c,m,g,S,k,V,G,M,j){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Oy(t,c,G);var ce=(c&62914560)===c?ru-D():(c&4194048)===c?My-D():0;if(ce=oE(G,ce),ce!==null){kn=c,e.cancelPendingCommit=ce(Qy.bind(null,e,t,c,a,l,o,m,g,S,V,G,null,M,j)),sr(e,c,m,!k);return}}Qy(e,t,c,a,l,o,m,g,S)}function E5(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],c=o.getSnapshot;o=o.value;try{if(!ya(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sr(e,t,a,l){t&=~Cd,t&=~Xr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-Bt(o),m=1<<c;l[c]=-1,o&=~m}a!==0&&Fp(e,a,t)}function su(){return(Ye&6)===0?(ds(0),!1):!0}function zd(){if(Re!==null){if(Fe===0)var e=Re.return;else e=Re,Nn=Lr=null,Xf(e),Bl=null,Fi=0,e=Re;for(;e!==null;)py(e.alternate,e),e=e.return;Re=null}}function Xl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Y5(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),kn=0,zd(),at=e,Re=a=bn(e.current,null),ke=t,Fe=0,Na=null,nr=!1,Yl=zi(e,t),wd=!1,$l=Sa=Cd=Xr=rr=gt=0,ca=cs=null,Ad=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Bt(l),c=1<<o;t|=e[o],l&=~c}return zn=t,To(),a}function Vy(e,t){Ee=null,R.H=as,t===jl||t===jo?(t=tg(),Fe=3):t===Uf?(t=tg(),Fe=4):Fe=t===ud?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Na=t,Re===null&&(gt=1,Jo(e,Ma(t,e.current)))}function qy(){var e=ba.current;return e===null?!0:(ke&4194048)===ke?La===null:(ke&62914560)===ke||(ke&536870912)!==0?e===La:!1}function Hy(){var e=R.H;return R.H=as,e===null?as:e}function Gy(){var e=R.A;return R.A=S5,e}function ou(){gt=4,nr||(ke&4194048)!==ke&&ba.current!==null||(Yl=!0),(rr&134217727)===0&&(Xr&134217727)===0||at===null||sr(at,ke,Sa,!1)}function kd(e,t,a){var l=Ye;Ye|=2;var o=Hy(),c=Gy();(at!==e||ke!==t)&&(iu=null,Xl(e,t)),t=!1;var m=gt;e:do try{if(Fe!==0&&Re!==null){var g=Re,S=Na;switch(Fe){case 8:zd(),m=6;break e;case 3:case 2:case 9:case 6:ba.current===null&&(t=!0);var k=Fe;if(Fe=0,Na=null,Fl(e,g,S,k),a&&Yl){m=0;break e}break;default:k=Fe,Fe=0,Na=null,Fl(e,g,S,k)}}w5(),m=gt;break}catch(V){Vy(e,V)}while(!0);return t&&e.shellSuspendCounter++,Nn=Lr=null,Ye=l,R.H=o,R.A=c,Re===null&&(at=null,ke=0,To()),m}function w5(){for(;Re!==null;)Zy(Re)}function C5(e,t){var a=Ye;Ye|=2;var l=Hy(),o=Gy();at!==e||ke!==t?(iu=null,lu=D()+500,Xl(e,t)):Yl=zi(e,t);e:do try{if(Fe!==0&&Re!==null){t=Re;var c=Na;t:switch(Fe){case 1:Fe=0,Na=null,Fl(e,t,c,1);break;case 2:case 9:if(W0(c)){Fe=0,Na=null,Yy(t);break}t=function(){Fe!==2&&Fe!==9||at!==e||(Fe=7),sn(e)},c.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:W0(c)?(Fe=0,Na=null,Yy(t)):(Fe=0,Na=null,Fl(e,t,c,7));break;case 5:var m=null;switch(Re.tag){case 26:m=Re.memoizedState;case 5:case 27:var g=Re;if(m?Rv(m):g.stateNode.complete){Fe=0,Na=null;var S=g.sibling;if(S!==null)Re=S;else{var k=g.return;k!==null?(Re=k,uu(k)):Re=null}break t}}Fe=0,Na=null,Fl(e,t,c,5);break;case 6:Fe=0,Na=null,Fl(e,t,c,6);break;case 8:zd(),gt=6;break e;default:throw Error(s(462))}}A5();break}catch(V){Vy(e,V)}while(!0);return Nn=Lr=null,R.H=l,R.A=o,Ye=a,Re!==null?0:(at=null,ke=0,To(),gt)}function A5(){for(;Re!==null&&!x();)Zy(Re)}function Zy(e){var t=my(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?uu(e):Re=t}function Yy(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=sy(a,t,t.pendingProps,t.type,void 0,ke);break;case 11:t=sy(a,t,t.pendingProps,t.type.render,t.ref,ke);break;case 5:Xf(t);default:py(a,t),t=Re=G0(t,zn),t=my(a,t,zn)}e.memoizedProps=e.pendingProps,t===null?uu(e):Re=t}function Fl(e,t,a,l){Nn=Lr=null,Xf(t),Bl=null,Fi=0;var o=t.return;try{if(p5(e,o,t,a,ke)){gt=1,Jo(e,Ma(a,e.current)),Re=null;return}}catch(c){if(o!==null)throw Re=o,c;gt=1,Jo(e,Ma(a,e.current)),Re=null;return}t.flags&32768?(Me||l===1?e=!0:Yl||(ke&536870912)!==0?e=!1:(nr=e=!0,(l===2||l===9||l===3||l===6)&&(l=ba.current,l!==null&&l.tag===13&&(l.flags|=16384))),$y(t,e)):uu(t)}function uu(e){var t=e;do{if((t.flags&32768)!==0){$y(t,nr);return}e=t.return;var a=v5(t.alternate,t,zn);if(a!==null){Re=a;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);gt===0&&(gt=5)}function $y(e,t){do{var a=b5(e.alternate,e);if(a!==null){a.flags&=32767,Re=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=a}while(e!==null);gt=6,Re=null}function Qy(e,t,a,l,o,c,m,g,S){e.cancelPendingCommit=null;do cu();while(kt!==0);if((Ye&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=_f,i2(e,a,c,m,g,S),e===at&&(Re=at=null,ke=0),Ql=t,ir=e,kn=a,Td=c,Rd=o,Uy=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,z5(fe,function(){return Py(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,o=X.p,X.p=2,m=Ye,Ye|=4;try{_5(e,t,a)}finally{Ye=m,X.p=o,R.T=l}}kt=1,Xy(),Fy(),Ky()}}function Xy(){if(kt===1){kt=0;var e=ir,t=Ql,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var l=X.p;X.p=2;var o=Ye;Ye|=4;try{Ay(t,e);var c=Yd,m=D0(e.containerInfo),g=c.focusedElem,S=c.selectionRange;if(m!==g&&g&&g.ownerDocument&&k0(g.ownerDocument.documentElement,g)){if(S!==null&&pf(g)){var k=S.start,V=S.end;if(V===void 0&&(V=k),"selectionStart"in g)g.selectionStart=k,g.selectionEnd=Math.min(V,g.value.length);else{var G=g.ownerDocument||document,M=G&&G.defaultView||window;if(M.getSelection){var j=M.getSelection(),ce=g.textContent.length,ge=Math.min(S.start,ce),tt=S.end===void 0?ge:Math.min(S.end,ce);!j.extend&&ge>tt&&(m=tt,tt=ge,ge=m);var T=z0(g,ge),w=z0(g,tt);if(T&&w&&(j.rangeCount!==1||j.anchorNode!==T.node||j.anchorOffset!==T.offset||j.focusNode!==w.node||j.focusOffset!==w.offset)){var z=G.createRange();z.setStart(T.node,T.offset),j.removeAllRanges(),ge>tt?(j.addRange(z),j.extend(w.node,w.offset)):(z.setEnd(w.node,w.offset),j.addRange(z))}}}}for(G=[],j=g;j=j.parentNode;)j.nodeType===1&&G.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<G.length;g++){var H=G[g];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Su=!!Zd,Yd=Zd=null}finally{Ye=o,X.p=l,R.T=a}}e.current=t,kt=2}}function Fy(){if(kt===2){kt=0;var e=ir,t=Ql,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var l=X.p;X.p=2;var o=Ye;Ye|=4;try{Sy(e,t.alternate,t)}finally{Ye=o,X.p=l,R.T=a}}kt=3}}function Ky(){if(kt===4||kt===3){kt=0,O();var e=ir,t=Ql,a=kn,l=Uy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?kt=5:(kt=0,Ql=ir=null,Jy(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(lr=null),Kc(a),t=t.stateNode,Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(wt,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,o=X.p,X.p=2,R.T=null;try{for(var c=e.onRecoverableError,m=0;m<l.length;m++){var g=l[m];c(g.value,{componentStack:g.stack})}}finally{R.T=t,X.p=o}}(kn&3)!==0&&cu(),sn(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Od?fs++:(fs=0,Od=e):fs=0,ds(0)}}function Jy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Qi(t)))}function cu(){return Xy(),Fy(),Ky(),Py()}function Py(){if(kt!==5)return!1;var e=ir,t=Td;Td=0;var a=Kc(kn),l=R.T,o=X.p;try{X.p=32>a?32:a,R.T=null,a=Rd,Rd=null;var c=ir,m=kn;if(kt=0,Ql=ir=null,kn=0,(Ye&6)!==0)throw Error(s(331));var g=Ye;if(Ye|=4,ky(c.current),Ry(c,c.current,m,a),Ye=g,ds(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(wt,c)}catch{}return!0}finally{X.p=o,R.T=l,Jy(e,t)}}function Iy(e,t,a){t=Ma(a,t),t=od(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(ki(e,2),sn(e))}function Ke(e,t,a){if(e.tag===3)Iy(e,e,a);else for(;t!==null;){if(t.tag===3){Iy(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(lr===null||!lr.has(l))){e=Ma(a,e),a=Wg(2),l=Wn(t,a,2),l!==null&&(ey(a,l,t,e),ki(l,2),sn(l));break}}t=t.return}}function Dd(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new x5;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(wd=!0,o.add(a),e=T5.bind(null,e,t,a),t.then(e,e))}function T5(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,at===e&&(ke&a)===a&&(gt===4||gt===3&&(ke&62914560)===ke&&300>D()-ru?(Ye&2)===0&&Xl(e,0):Cd|=a,$l===ke&&($l=0)),sn(e)}function Wy(e,t){t===0&&(t=Xp()),e=Ur(e,t),e!==null&&(ki(e,t),sn(e))}function R5(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Wy(e,a)}function O5(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),Wy(e,a)}function z5(e,t){return fo(e,t)}var fu=null,Kl=null,Md=!1,du=!1,Ud=!1,or=0;function sn(e){e!==Kl&&e.next===null&&(Kl===null?fu=Kl=e:Kl=Kl.next=e),du=!0,Md||(Md=!0,D5())}function ds(e,t){if(!Ud&&du){Ud=!0;do for(var a=!1,l=fu;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var m=l.suspendedLanes,g=l.pingedLanes;c=(1<<31-Bt(42|e)+1)-1,c&=o&~(m&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,nv(l,c))}else c=ke,c=go(l,l===at?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||zi(l,c)||(a=!0,nv(l,c));l=l.next}while(a);Ud=!1}}function k5(){ev()}function ev(){du=Md=!1;var e=0;or!==0&&Z5()&&(e=or);for(var t=D(),a=null,l=fu;l!==null;){var o=l.next,c=tv(l,t);c===0?(l.next=null,a===null?fu=o:a.next=o,o===null&&(Kl=a)):(a=l,(e!==0||(c&3)!==0)&&(du=!0)),l=o}kt!==0&&kt!==5||ds(e),or!==0&&(or=0)}function tv(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Bt(c),g=1<<m,S=o[m];S===-1?((g&a)===0||(g&l)!==0)&&(o[m]=l2(g,t)):S<=t&&(e.expiredLanes|=g),c&=~g}if(t=at,a=ke,a=go(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&pl(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||zi(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&pl(l),Kc(a)){case 2:case 8:a=ee;break;case 32:a=fe;break;case 268435456:a=Ve;break;default:a=fe}return l=av.bind(null,e),a=fo(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&pl(l),e.callbackPriority=2,e.callbackNode=null,2}function av(e,t){if(kt!==0&&kt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(cu()&&e.callbackNode!==a)return null;var l=ke;return l=go(e,e===at?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(By(e,l,t),tv(e,D()),e.callbackNode!=null&&e.callbackNode===a?av.bind(null,e):null)}function nv(e,t){if(cu())return null;By(e,t,!0)}function D5(){$5(function(){(Ye&6)!==0?fo(I,k5):ev()})}function jd(){if(or===0){var e=Ml;e===0&&(e=Rr,Rr<<=1,(Rr&261888)===0&&(Rr=256)),or=e}return or}function rv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_o(""+e)}function lv(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function M5(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var c=rv((o[la]||null).action),m=l.submitter;m&&(t=(t=m[la]||null)?rv(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var g=new Eo("action","action",null,l,o);e.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(or!==0){var S=m?lv(o,m):new FormData(o);ad(a,{pending:!0,data:S,method:o.method,action:c},null,S)}}else typeof c=="function"&&(g.preventDefault(),S=m?lv(o,m):new FormData(o),ad(a,{pending:!0,data:S,method:o.method,action:c},c,S))},currentTarget:o}]})}}for(var Bd=0;Bd<bf.length;Bd++){var Ld=bf[Bd],U5=Ld.toLowerCase(),j5=Ld[0].toUpperCase()+Ld.slice(1);$a(U5,"on"+j5)}$a(j0,"onAnimationEnd"),$a(B0,"onAnimationIteration"),$a(L0,"onAnimationStart"),$a("dblclick","onDoubleClick"),$a("focusin","onFocus"),$a("focusout","onBlur"),$a(I2,"onTransitionRun"),$a(W2,"onTransitionStart"),$a(e5,"onTransitionCancel"),$a(V0,"onTransitionEnd"),_l("onMouseEnter",["mouseout","mouseover"]),_l("onMouseLeave",["mouseout","mouseover"]),_l("onPointerEnter",["pointerout","pointerover"]),_l("onPointerLeave",["pointerout","pointerover"]),zr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zr("onBeforeInput",["compositionend","keypress","textInput","paste"]),zr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),B5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ms));function iv(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var m=l.length-1;0<=m;m--){var g=l[m],S=g.instance,k=g.currentTarget;if(g=g.listener,S!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=k;try{c(o)}catch(V){Ao(V)}o.currentTarget=null,c=S}else for(m=0;m<l.length;m++){if(g=l[m],S=g.instance,k=g.currentTarget,g=g.listener,S!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=k;try{c(o)}catch(V){Ao(V)}o.currentTarget=null,c=S}}}}function Oe(e,t){var a=t[Jc];a===void 0&&(a=t[Jc]=new Set);var l=e+"__bubble";a.has(l)||(sv(t,e,2,!1),a.add(l))}function Vd(e,t,a){var l=0;t&&(l|=4),sv(a,e,l,t)}var mu="_reactListening"+Math.random().toString(36).slice(2);function qd(e){if(!e[mu]){e[mu]=!0,e0.forEach(function(a){a!=="selectionchange"&&(B5.has(a)||Vd(a,!1,e),Vd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mu]||(t[mu]=!0,Vd("selectionchange",!1,t))}}function sv(e,t,a,l){switch(jv(t)){case 2:var o=fE;break;case 8:o=dE;break;default:o=tm}a=o.bind(null,t,a,e),o=void 0,!lf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Hd(e,t,a,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var g=l.stateNode.containerInfo;if(g===o)break;if(m===4)for(m=l.return;m!==null;){var S=m.tag;if((S===3||S===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;g!==null;){if(m=yl(g),m===null)return;if(S=m.tag,S===5||S===6||S===26||S===27){l=c=m;continue e}g=g.parentNode}}l=l.return}d0(function(){var k=c,V=nf(a),G=[];e:{var M=q0.get(e);if(M!==void 0){var j=Eo,ce=e;switch(e){case"keypress":if(So(a)===0)break e;case"keydown":case"keyup":j=O2;break;case"focusin":ce="focus",j=cf;break;case"focusout":ce="blur",j=cf;break;case"beforeblur":case"afterblur":j=cf;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=p0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=v2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=D2;break;case j0:case B0:case L0:j=N2;break;case V0:j=U2;break;case"scroll":case"scrollend":j=g2;break;case"wheel":j=B2;break;case"copy":case"cut":case"paste":j=x2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=y0;break;case"toggle":case"beforetoggle":j=V2}var ge=(t&4)!==0,tt=!ge&&(e==="scroll"||e==="scrollend"),T=ge?M!==null?M+"Capture":null:M;ge=[];for(var w=k,z;w!==null;){var H=w;if(z=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||z===null||T===null||(H=Ui(w,T),H!=null&&ge.push(hs(w,H,z))),tt)break;w=w.return}0<ge.length&&(M=new j(M,ce,null,a,V),G.push({event:M,listeners:ge}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",M&&a!==af&&(ce=a.relatedTarget||a.fromElement)&&(yl(ce)||ce[gl]))break e;if((j||M)&&(M=V.window===V?V:(M=V.ownerDocument)?M.defaultView||M.parentWindow:window,j?(ce=a.relatedTarget||a.toElement,j=k,ce=ce?yl(ce):null,ce!==null&&(tt=f(ce),ge=ce.tag,ce!==tt||ge!==5&&ge!==27&&ge!==6)&&(ce=null)):(j=null,ce=k),j!==ce)){if(ge=p0,H="onMouseLeave",T="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ge=y0,H="onPointerLeave",T="onPointerEnter",w="pointer"),tt=j==null?M:Mi(j),z=ce==null?M:Mi(ce),M=new ge(H,w+"leave",j,a,V),M.target=tt,M.relatedTarget=z,H=null,yl(V)===k&&(ge=new ge(T,w+"enter",ce,a,V),ge.target=z,ge.relatedTarget=tt,H=ge),tt=H,j&&ce)t:{for(ge=L5,T=j,w=ce,z=0,H=T;H;H=ge(H))z++;H=0;for(var pe=w;pe;pe=ge(pe))H++;for(;0<z-H;)T=ge(T),z--;for(;0<H-z;)w=ge(w),H--;for(;z--;){if(T===w||w!==null&&T===w.alternate){ge=T;break t}T=ge(T),w=ge(w)}ge=null}else ge=null;j!==null&&ov(G,M,j,ge,!1),ce!==null&&tt!==null&&ov(G,tt,ce,ge,!0)}}e:{if(M=k?Mi(k):window,j=M.nodeName&&M.nodeName.toLowerCase(),j==="select"||j==="input"&&M.type==="file")var qe=w0;else if(x0(M))if(C0)qe=K2;else{qe=X2;var me=Q2}else j=M.nodeName,!j||j.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?k&&tf(k.elementType)&&(qe=w0):qe=F2;if(qe&&(qe=qe(e,k))){E0(G,qe,a,V);break e}me&&me(e,M,k),e==="focusout"&&k&&M.type==="number"&&k.memoizedProps.value!=null&&ef(M,"number",M.value)}switch(me=k?Mi(k):window,e){case"focusin":(x0(me)||me.contentEditable==="true")&&(Cl=me,gf=k,Zi=null);break;case"focusout":Zi=gf=Cl=null;break;case"mousedown":yf=!0;break;case"contextmenu":case"mouseup":case"dragend":yf=!1,M0(G,a,V);break;case"selectionchange":if(P2)break;case"keydown":case"keyup":M0(G,a,V)}var we;if(df)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else wl?N0(e,a)&&(De="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(De="onCompositionStart");De&&(v0&&a.locale!=="ko"&&(wl||De!=="onCompositionStart"?De==="onCompositionEnd"&&wl&&(we=m0()):(Qn=V,sf="value"in Qn?Qn.value:Qn.textContent,wl=!0)),me=hu(k,De),0<me.length&&(De=new g0(De,e,null,a,V),G.push({event:De,listeners:me}),we?De.data=we:(we=S0(a),we!==null&&(De.data=we)))),(we=H2?G2(e,a):Z2(e,a))&&(De=hu(k,"onBeforeInput"),0<De.length&&(me=new g0("onBeforeInput","beforeinput",null,a,V),G.push({event:me,listeners:De}),me.data=we)),M5(G,e,k,a,V)}iv(G,t)})}function hs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function hu(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=Ui(e,a),o!=null&&l.unshift(hs(e,o,c)),o=Ui(e,t),o!=null&&l.push(hs(e,o,c))),e.tag===3)return l;e=e.return}return[]}function L5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ov(e,t,a,l,o){for(var c=t._reactName,m=[];a!==null&&a!==l;){var g=a,S=g.alternate,k=g.stateNode;if(g=g.tag,S!==null&&S===l)break;g!==5&&g!==26&&g!==27||k===null||(S=k,o?(k=Ui(a,c),k!=null&&m.unshift(hs(a,k,S))):o||(k=Ui(a,c),k!=null&&m.push(hs(a,k,S)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var V5=/\r\n?/g,q5=/\u0000|\uFFFD/g;function uv(e){return(typeof e=="string"?e:""+e).replace(V5,`
41
- `).replace(q5,"")}function cv(e,t){return t=uv(t),uv(e)===t}function et(e,t,a,l,o,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Sl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Sl(e,""+l);break;case"className":vo(e,"class",l);break;case"tabIndex":vo(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":vo(e,a,l);break;case"style":c0(e,l,c);break;case"data":if(t!=="object"){vo(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=_o(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&et(e,t,"name",o.name,o,null),et(e,t,"formEncType",o.formEncType,o,null),et(e,t,"formMethod",o.formMethod,o,null),et(e,t,"formTarget",o.formTarget,o,null)):(et(e,t,"encType",o.encType,o,null),et(e,t,"method",o.method,o,null),et(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=_o(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=yn);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=_o(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),yo(e,"popover",l);break;case"xlinkActuate":gn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":gn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":gn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":gn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":gn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":gn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":gn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":gn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":gn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":yo(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=h2.get(a)||a,yo(e,a,l))}}function Gd(e,t,a,l,o,c){switch(a){case"style":c0(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Sl(e,l):(typeof l=="number"||typeof l=="bigint")&&Sl(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!t0.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[la]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):yo(e,a,l)}}}function Gt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var l=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:et(e,t,c,m,a,null)}}o&&et(e,t,"srcSet",a.srcSet,a,null),l&&et(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var g=c=m=o=null,S=null,k=null;for(l in a)if(a.hasOwnProperty(l)){var V=a[l];if(V!=null)switch(l){case"name":o=V;break;case"type":m=V;break;case"checked":S=V;break;case"defaultChecked":k=V;break;case"value":c=V;break;case"defaultValue":g=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,t));break;default:et(e,t,l,V,a,null)}}i0(e,c,g,S,k,m,o,!1);return;case"select":Oe("invalid",e),l=m=c=null;for(o in a)if(a.hasOwnProperty(o)&&(g=a[o],g!=null))switch(o){case"value":c=g;break;case"defaultValue":m=g;break;case"multiple":l=g;default:et(e,t,o,g,a,null)}t=c,a=m,e.multiple=!!l,t!=null?Nl(e,!!l,t,!1):a!=null&&Nl(e,!!l,a,!0);return;case"textarea":Oe("invalid",e),c=o=l=null;for(m in a)if(a.hasOwnProperty(m)&&(g=a[m],g!=null))switch(m){case"value":l=g;break;case"defaultValue":o=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:et(e,t,m,g,a,null)}o0(e,l,o,c);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(l=a[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:et(e,t,S,l,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(l=0;l<ms.length;l++)Oe(ms[l],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in a)if(a.hasOwnProperty(k)&&(l=a[k],l!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:et(e,t,k,l,a,null)}return;default:if(tf(t)){for(V in a)a.hasOwnProperty(V)&&(l=a[V],l!==void 0&&Gd(e,t,V,l,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(l=a[g],l!=null&&et(e,t,g,l,a,null))}function H5(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,g=null,S=null,k=null,V=null;for(j in a){var G=a[j];if(a.hasOwnProperty(j)&&G!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":S=G;default:l.hasOwnProperty(j)||et(e,t,j,null,l,G)}}for(var M in l){var j=l[M];if(G=a[M],l.hasOwnProperty(M)&&(j!=null||G!=null))switch(M){case"type":c=j;break;case"name":o=j;break;case"checked":k=j;break;case"defaultChecked":V=j;break;case"value":m=j;break;case"defaultValue":g=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==G&&et(e,t,M,j,l,G)}}Wc(e,m,g,S,k,V,c,o);return;case"select":j=m=g=M=null;for(c in a)if(S=a[c],a.hasOwnProperty(c)&&S!=null)switch(c){case"value":break;case"multiple":j=S;default:l.hasOwnProperty(c)||et(e,t,c,null,l,S)}for(o in l)if(c=l[o],S=a[o],l.hasOwnProperty(o)&&(c!=null||S!=null))switch(o){case"value":M=c;break;case"defaultValue":g=c;break;case"multiple":m=c;default:c!==S&&et(e,t,o,c,l,S)}t=g,a=m,l=j,M!=null?Nl(e,!!a,M,!1):!!l!=!!a&&(t!=null?Nl(e,!!a,t,!0):Nl(e,!!a,a?[]:"",!1));return;case"textarea":j=M=null;for(g in a)if(o=a[g],a.hasOwnProperty(g)&&o!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:et(e,t,g,null,l,o)}for(m in l)if(o=l[m],c=a[m],l.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":M=o;break;case"defaultValue":j=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&et(e,t,m,o,l,c)}s0(e,M,j);return;case"option":for(var ce in a)if(M=a[ce],a.hasOwnProperty(ce)&&M!=null&&!l.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:et(e,t,ce,null,l,M)}for(S in l)if(M=l[S],j=a[S],l.hasOwnProperty(S)&&M!==j&&(M!=null||j!=null))switch(S){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:et(e,t,S,M,l,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ge in a)M=a[ge],a.hasOwnProperty(ge)&&M!=null&&!l.hasOwnProperty(ge)&&et(e,t,ge,null,l,M);for(k in l)if(M=l[k],j=a[k],l.hasOwnProperty(k)&&M!==j&&(M!=null||j!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:et(e,t,k,M,l,j)}return;default:if(tf(t)){for(var tt in a)M=a[tt],a.hasOwnProperty(tt)&&M!==void 0&&!l.hasOwnProperty(tt)&&Gd(e,t,tt,void 0,l,M);for(V in l)M=l[V],j=a[V],!l.hasOwnProperty(V)||M===j||M===void 0&&j===void 0||Gd(e,t,V,M,l,j);return}}for(var T in a)M=a[T],a.hasOwnProperty(T)&&M!=null&&!l.hasOwnProperty(T)&&et(e,t,T,null,l,M);for(G in l)M=l[G],j=a[G],!l.hasOwnProperty(G)||M===j||M==null&&j==null||et(e,t,G,M,l,j)}function fv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function G5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var o=a[l],c=o.transferSize,m=o.initiatorType,g=o.duration;if(c&&g&&fv(m)){for(m=0,g=o.responseEnd,l+=1;l<a.length;l++){var S=a[l],k=S.startTime;if(k>g)break;var V=S.transferSize,G=S.initiatorType;V&&fv(G)&&(S=S.responseEnd,m+=V*(S<g?1:(g-k)/(S-k)))}if(--l,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Zd=null,Yd=null;function pu(e){return e.nodeType===9?e:e.ownerDocument}function dv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function mv(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function $d(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qd=null;function Z5(){var e=window.event;return e&&e.type==="popstate"?e===Qd?!1:(Qd=e,!0):(Qd=null,!1)}var hv=typeof setTimeout=="function"?setTimeout:void 0,Y5=typeof clearTimeout=="function"?clearTimeout:void 0,pv=typeof Promise=="function"?Promise:void 0,$5=typeof queueMicrotask=="function"?queueMicrotask:typeof pv<"u"?function(e){return pv.resolve(null).then(e).catch(Q5)}:hv;function Q5(e){setTimeout(function(){throw e})}function ur(e){return e==="head"}function gv(e,t){var a=t,l=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(o),Wl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ps(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ps(a);for(var c=a.firstChild;c;){var m=c.nextSibling,g=c.nodeName;c[Di]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&ps(e.ownerDocument.body);a=o}while(a);Wl(t)}function yv(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Xd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Xd(a),Pc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function X5(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Di])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Va(e.nextSibling),e===null)break}return null}function F5(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Va(e.nextSibling),e===null))return null;return e}function vv(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Va(e.nextSibling),e===null))return null;return e}function Fd(e){return e.data==="$?"||e.data==="$~"}function Kd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function K5(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Va(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jd=null;function bv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Va(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function _v(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Nv(e,t,a){switch(t=pu(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ps(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pc(e)}var qa=new Map,Sv=new Set;function gu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=X.d;X.d={f:J5,r:P5,D:I5,C:W5,L:eE,m:tE,X:nE,S:aE,M:rE};function J5(){var e=Dn.f(),t=su();return e||t}function P5(e){var t=vl(e);t!==null&&t.tag===5&&t.type==="form"?Vg(t):Dn.r(e)}var Jl=typeof document>"u"?null:document;function xv(e,t,a){var l=Jl;if(l&&typeof t=="string"&&t){var o=ka(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Sv.has(o)||(Sv.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),Gt(t,"link",e),Dt(t),l.head.appendChild(t)))}}function I5(e){Dn.D(e),xv("dns-prefetch",e,null)}function W5(e,t){Dn.C(e,t),xv("preconnect",e,t)}function eE(e,t,a){Dn.L(e,t,a);var l=Jl;if(l&&e&&t){var o='link[rel="preload"][as="'+ka(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+ka(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+ka(a.imageSizes)+'"]')):o+='[href="'+ka(e)+'"]';var c=o;switch(t){case"style":c=Pl(e);break;case"script":c=Il(e)}qa.has(c)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),qa.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(gs(c))||t==="script"&&l.querySelector(ys(c))||(t=l.createElement("link"),Gt(t,"link",e),Dt(t),l.head.appendChild(t)))}}function tE(e,t){Dn.m(e,t);var a=Jl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+ka(l)+'"][href="'+ka(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Il(e)}if(!qa.has(c)&&(e=b({rel:"modulepreload",href:e},t),qa.set(c,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ys(c)))return}l=a.createElement("link"),Gt(l,"link",e),Dt(l),a.head.appendChild(l)}}}function aE(e,t,a){Dn.S(e,t,a);var l=Jl;if(l&&e){var o=bl(l).hoistableStyles,c=Pl(e);t=t||"default";var m=o.get(c);if(!m){var g={loading:0,preload:null};if(m=l.querySelector(gs(c)))g.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=qa.get(c))&&Pd(e,a);var S=m=l.createElement("link");Dt(S),Gt(S,"link",e),S._p=new Promise(function(k,V){S.onload=k,S.onerror=V}),S.addEventListener("load",function(){g.loading|=1}),S.addEventListener("error",function(){g.loading|=2}),g.loading|=4,yu(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:g},o.set(c,m)}}}function nE(e,t){Dn.X(e,t);var a=Jl;if(a&&e){var l=bl(a).hoistableScripts,o=Il(e),c=l.get(o);c||(c=a.querySelector(ys(o)),c||(e=b({src:e,async:!0},t),(t=qa.get(o))&&Id(e,t),c=a.createElement("script"),Dt(c),Gt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function rE(e,t){Dn.M(e,t);var a=Jl;if(a&&e){var l=bl(a).hoistableScripts,o=Il(e),c=l.get(o);c||(c=a.querySelector(ys(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=qa.get(o))&&Id(e,t),c=a.createElement("script"),Dt(c),Gt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function Ev(e,t,a,l){var o=(o=Ce.current)?gu(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Pl(a.href),a=bl(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Pl(a.href);var c=bl(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector(gs(e)))&&!c._p&&(m.instance=c,m.state.loading=5),qa.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},qa.set(e,a),c||lE(o,e,a,m.state))),t&&l===null)throw Error(s(528,""));return m}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Il(a),a=bl(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Pl(e){return'href="'+ka(e)+'"'}function gs(e){return'link[rel="stylesheet"]['+e+"]"}function wv(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function lE(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Gt(t,"link",a),Dt(t),e.head.appendChild(t))}function Il(e){return'[src="'+ka(e)+'"]'}function ys(e){return"script[async]"+e}function Cv(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+ka(a.href)+'"]');if(l)return t.instance=l,Dt(l),l;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Dt(l),Gt(l,"style",o),yu(l,a.precedence,e),t.instance=l;case"stylesheet":o=Pl(a.href);var c=e.querySelector(gs(o));if(c)return t.state.loading|=4,t.instance=c,Dt(c),c;l=wv(a),(o=qa.get(o))&&Pd(l,o),c=(e.ownerDocument||e).createElement("link"),Dt(c);var m=c;return m._p=new Promise(function(g,S){m.onload=g,m.onerror=S}),Gt(c,"link",l),t.state.loading|=4,yu(c,a.precedence,e),t.instance=c;case"script":return c=Il(a.src),(o=e.querySelector(ys(c)))?(t.instance=o,Dt(o),o):(l=a,(o=qa.get(c))&&(l=b({},a),Id(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Dt(o),Gt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,yu(l,a.precedence,e));return t.instance}function yu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,m=0;m<l.length;m++){var g=l[m];if(g.dataset.precedence===t)c=g;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Pd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vu=null;function Av(e,t,a){if(vu===null){var l=new Map,o=vu=new Map;o.set(a,l)}else o=vu,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[Di]||c[Lt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var g=l.get(m);g?g.push(c):l.set(m,[c])}}return l}function Tv(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function iE(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Rv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function sE(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Pl(l.href),c=t.querySelector(gs(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,Dt(c);return}c=t.ownerDocument||t,l=wv(l),(o=qa.get(o))&&Pd(l,o),c=c.createElement("link"),Dt(c);var m=c;m._p=new Promise(function(g,S){m.onload=g,m.onerror=S}),Gt(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=bu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Wd=0;function oE(e,t){return e.stylesheets&&e.count===0&&Nu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Nu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Wd===0&&(Wd=62500*G5());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Nu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Wd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _u=null;function Nu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_u=new Map,t.forEach(uE,e),_u=null,bu.call(e))}function uE(e,t){if(!(t.state.loading&4)){var a=_u.get(e);if(a)var l=a.get(null);else{a=new Map,_u.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),l=m)}l&&a.set(null,l)}o=t.instance,m=o.getAttribute("data-precedence"),c=a.get(m)||l,c===l&&a.set(null,o),a.set(m,o),this.count++,l=bu.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var vs={$$typeof:ae,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function cE(e,t,a,l,o,c,m,g,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xc(0),this.hiddenUpdates=Xc(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Ov(e,t,a,l,o,c,m,g,S,k,V,G){return e=new cE(e,t,a,m,S,k,V,G,g),t=1,c===!0&&(t|=24),c=va(3,null,null,t),e.current=c,c.stateNode=e,t=kf(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},jf(c),e}function zv(e){return e?(e=Rl,e):Rl}function kv(e,t,a,l,o,c){o=zv(o),l.context===null?l.context=o:l.pendingContext=o,l=In(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Wn(e,l,t),a!==null&&(fa(a,e,t),Ji(a,e,t))}function Dv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function em(e,t){Dv(e,t),(e=e.alternate)&&Dv(e,t)}function Mv(e){if(e.tag===13||e.tag===31){var t=Ur(e,67108864);t!==null&&fa(t,e,67108864),em(e,67108864)}}function Uv(e){if(e.tag===13||e.tag===31){var t=xa();t=Fc(t);var a=Ur(e,t);a!==null&&fa(a,e,t),em(e,t)}}var Su=!0;function fE(e,t,a,l){var o=R.T;R.T=null;var c=X.p;try{X.p=2,tm(e,t,a,l)}finally{X.p=c,R.T=o}}function dE(e,t,a,l){var o=R.T;R.T=null;var c=X.p;try{X.p=8,tm(e,t,a,l)}finally{X.p=c,R.T=o}}function tm(e,t,a,l){if(Su){var o=am(l);if(o===null)Hd(e,t,l,xu,a),Bv(e,l);else if(hE(o,e,t,a,l))l.stopPropagation();else if(Bv(e,l),t&4&&-1<mE.indexOf(e)){for(;o!==null;){var c=vl(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Or(c.pendingLanes);if(m!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;m;){var S=1<<31-Bt(m);g.entanglements[1]|=S,m&=~S}sn(c),(Ye&6)===0&&(lu=D()+500,ds(0))}}break;case 31:case 13:g=Ur(c,2),g!==null&&fa(g,c,2),su(),em(c,2)}if(c=am(l),c===null&&Hd(e,t,l,xu,a),c===o)break;o=c}o!==null&&l.stopPropagation()}else Hd(e,t,l,null,a)}}function am(e){return e=nf(e),nm(e)}var xu=null;function nm(e){if(xu=null,e=yl(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xu=e,null}function jv(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(re()){case I:return 2;case ee:return 8;case fe:case xe:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var rm=!1,cr=null,fr=null,dr=null,bs=new Map,_s=new Map,mr=[],mE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Bv(e,t){switch(e){case"focusin":case"focusout":cr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":dr=null;break;case"pointerover":case"pointerout":bs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(t.pointerId)}}function Ns(e,t,a,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=vl(t),t!==null&&Mv(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function hE(e,t,a,l,o){switch(t){case"focusin":return cr=Ns(cr,e,t,a,l,o),!0;case"dragenter":return fr=Ns(fr,e,t,a,l,o),!0;case"mouseover":return dr=Ns(dr,e,t,a,l,o),!0;case"pointerover":var c=o.pointerId;return bs.set(c,Ns(bs.get(c)||null,e,t,a,l,o)),!0;case"gotpointercapture":return c=o.pointerId,_s.set(c,Ns(_s.get(c)||null,e,t,a,l,o)),!0}return!1}function Lv(e){var t=yl(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,Ip(e.priority,function(){Uv(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,Ip(e.priority,function(){Uv(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Eu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=am(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);af=l,a.target.dispatchEvent(l),af=null}else return t=vl(a),t!==null&&Mv(t),e.blockedOn=a,!1;t.shift()}return!0}function Vv(e,t,a){Eu(e)&&a.delete(t)}function pE(){rm=!1,cr!==null&&Eu(cr)&&(cr=null),fr!==null&&Eu(fr)&&(fr=null),dr!==null&&Eu(dr)&&(dr=null),bs.forEach(Vv),_s.forEach(Vv)}function wu(e,t){e.blockedOn===t&&(e.blockedOn=null,rm||(rm=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,pE)))}var Cu=null;function qv(e){Cu!==e&&(Cu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Cu===e&&(Cu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(nm(l||a)===null)continue;break}var c=vl(a);c!==null&&(e.splice(t,3),t-=3,ad(c,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Wl(e){function t(S){return wu(S,e)}cr!==null&&wu(cr,e),fr!==null&&wu(fr,e),dr!==null&&wu(dr,e),bs.forEach(t),_s.forEach(t);for(var a=0;a<mr.length;a++){var l=mr[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<mr.length&&(a=mr[0],a.blockedOn===null);)Lv(a),a.blockedOn===null&&mr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],c=a[l+1],m=o[la]||null;if(typeof c=="function")m||qv(a);else if(m){var g=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[la]||null)g=m.formAction;else if(nm(o)!==null)continue}else g=m.action;typeof g=="function"?a[l+1]=g:(a.splice(l,3),l-=3),qv(a)}}}function Hv(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function lm(e){this._internalRoot=e}Au.prototype.render=lm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,l=xa();kv(a,l,e,t,null,null)},Au.prototype.unmount=lm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kv(e.current,2,null,e,null,null),su(),t[gl]=null}};function Au(e){this._internalRoot=e}Au.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pp();e={blockedOn:null,target:e,priority:t};for(var a=0;a<mr.length&&t!==0&&t<mr[a].priority;a++);mr.splice(a,0,e),a===0&&Lv(e)}};var Gv=r.version;if(Gv!=="19.2.4")throw Error(s(527,Gv,"19.2.4"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var gE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tu.isDisabled&&Tu.supportsFiber)try{wt=Tu.inject(gE),Wt=Tu}catch{}}return ei.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,l="",o=Kg,c=Jg,m=Pg;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Ov(e,1,!1,null,null,a,l,null,o,c,m,Hv),e[gl]=t.current,qd(e),new lm(t)},ei.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var l=!1,o="",c=Kg,m=Jg,g=Pg,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Ov(e,1,!0,t,a??null,l,o,S,c,m,g,Hv),t.context=zv(null),a=t.current,l=xa(),l=Fc(l),o=In(l),o.callback=null,Wn(a,o,l),a=l,t.current.lanes=a,ki(t,a),sn(t),e[gl]=t.current,qd(e),new Au(t)},ei.version="19.2.4",ei}var pm;function Kv(){if(pm)return zu.exports;pm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),zu.exports=Fv(),zu.exports}var Jv=Kv(),Be;(function(n){n.assertEqual=u=>{};function r(u){}n.assertIs=r;function i(u){throw new Error}n.assertNever=i,n.arrayToEnum=u=>{const f={};for(const d of u)f[d]=d;return f},n.getValidEnumValues=u=>{const f=n.objectKeys(u).filter(h=>typeof u[u[h]]!="number"),d={};for(const h of f)d[h]=u[h];return n.objectValues(d)},n.objectValues=u=>n.objectKeys(u).map(function(f){return u[f]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const f=[];for(const d in u)Object.prototype.hasOwnProperty.call(u,d)&&f.push(d);return f},n.find=(u,f)=>{for(const d of u)if(f(d))return d},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function s(u,f=" | "){return u.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}n.joinValues=s,n.jsonStringifyReplacer=(u,f)=>typeof f=="bigint"?f.toString():f})(Be||(Be={}));var gm;(function(n){n.mergeShapes=(r,i)=>({...r,...i})})(gm||(gm={}));const de=Be.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Mn=n=>{switch(typeof n){case"undefined":return de.undefined;case"string":return de.string;case"number":return Number.isNaN(n)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(n)?de.array:n===null?de.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?de.promise:typeof Map<"u"&&n instanceof Map?de.map:typeof Set<"u"&&n instanceof Set?de.set:typeof Date<"u"&&n instanceof Date?de.date:de.object;default:return de.unknown}},J=Be.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class cn extends Error{get errors(){return this.issues}constructor(r){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=r}format(r){const i=r||function(f){return f.message},s={_errors:[]},u=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(u);else if(d.code==="invalid_return_type")u(d.returnTypeError);else if(d.code==="invalid_arguments")u(d.argumentsError);else if(d.path.length===0)s._errors.push(i(d));else{let h=s,y=0;for(;y<d.path.length;){const p=d.path[y];y===d.path.length-1?(h[p]=h[p]||{_errors:[]},h[p]._errors.push(i(d))):h[p]=h[p]||{_errors:[]},h=h[p],y++}}};return u(this),s}static assert(r){if(!(r instanceof cn))throw new Error(`Not a ZodError: ${r}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Be.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(r=i=>i.message){const i={},s=[];for(const u of this.issues)if(u.path.length>0){const f=u.path[0];i[f]=i[f]||[],i[f].push(r(u))}else s.push(r(u));return{formErrors:s,fieldErrors:i}}get formErrors(){return this.flatten()}}cn.create=n=>new cn(n);const Uu=(n,r)=>{let i;switch(n.code){case J.invalid_type:n.received===de.undefined?i="Required":i=`Expected ${n.expected}, received ${n.received}`;break;case J.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(n.expected,Be.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:i=`Unrecognized key(s) in object: ${Be.joinValues(n.keys,", ")}`;break;case J.invalid_union:i="Invalid input";break;case J.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${Be.joinValues(n.options)}`;break;case J.invalid_enum_value:i=`Invalid enum value. Expected ${Be.joinValues(n.options)}, received '${n.received}'`;break;case J.invalid_arguments:i="Invalid function arguments";break;case J.invalid_return_type:i="Invalid function return type";break;case J.invalid_date:i="Invalid date";break;case J.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(i=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?i=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?i=`Invalid input: must end with "${n.validation.endsWith}"`:Be.assertNever(n.validation):n.validation!=="regex"?i=`Invalid ${n.validation}`:i="Invalid";break;case J.too_small:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:i="Invalid input";break;case J.too_big:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?i=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:i="Invalid input";break;case J.custom:i="Invalid input";break;case J.invalid_intersection_types:i="Intersection results could not be merged";break;case J.not_multiple_of:i=`Number must be a multiple of ${n.multipleOf}`;break;case J.not_finite:i="Number must be finite";break;default:i=r.defaultError,Be.assertNever(n)}return{message:i}};let Pv=Uu;function Iv(){return Pv}const Wv=n=>{const{data:r,path:i,errorMaps:s,issueData:u}=n,f=[...i,...u.path||[]],d={...u,path:f};if(u.message!==void 0)return{...u,path:f,message:u.message};let h="";const y=s.filter(p=>!!p).slice().reverse();for(const p of y)h=p(d,{data:r,defaultError:h}).message;return{...u,path:f,message:h}};function le(n,r){const i=Iv(),s=Wv({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,i,i===Uu?void 0:Uu].filter(u=>!!u)});n.common.issues.push(s)}class da{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,i){const s=[];for(const u of i){if(u.status==="aborted")return _e;u.status==="dirty"&&r.dirty(),s.push(u.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,i){const s=[];for(const u of i){const f=await u.key,d=await u.value;s.push({key:f,value:d})}return da.mergeObjectSync(r,s)}static mergeObjectSync(r,i){const s={};for(const u of i){const{key:f,value:d}=u;if(f.status==="aborted"||d.status==="aborted")return _e;f.status==="dirty"&&r.dirty(),d.status==="dirty"&&r.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||u.alwaysSet)&&(s[f.value]=d.value)}return{status:r.value,value:s}}}const _e=Object.freeze({status:"aborted"}),ti=n=>({status:"dirty",value:n}),Ea=n=>({status:"valid",value:n}),ym=n=>n.status==="aborted",vm=n=>n.status==="dirty",Fr=n=>n.status==="valid",Ss=n=>typeof Promise<"u"&&n instanceof Promise;var he;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r==null?void 0:r.message})(he||(he={}));class Un{constructor(r,i,s,u){this._cachedPath=[],this.parent=r,this.data=i,this._path=s,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const bm=(n,r)=>{if(Fr(r))return{success:!0,data:r.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new cn(n.common.issues);return this._error=i,this._error}}};function Ae(n){if(!n)return{};const{errorMap:r,invalid_type_error:i,required_error:s,description:u}=n;if(r&&(i||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:u}:{errorMap:(d,h)=>{const{message:y}=n;return d.code==="invalid_enum_value"?{message:y??h.defaultError}:typeof h.data>"u"?{message:y??s??h.defaultError}:d.code!=="invalid_type"?{message:h.defaultError}:{message:y??i??h.defaultError}},description:u}}class Ue{get description(){return this._def.description}_getType(r){return Mn(r.data)}_getOrReturnCtx(r,i){return i||{common:r.parent.common,data:r.data,parsedType:Mn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new da,ctx:{common:r.parent.common,data:r.data,parsedType:Mn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const i=this._parse(r);if(Ss(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(r){const i=this._parse(r);return Promise.resolve(i)}parse(r,i){const s=this.safeParse(r,i);if(s.success)return s.data;throw s.error}safeParse(r,i){const s={common:{issues:[],async:(i==null?void 0:i.async)??!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Mn(r)},u=this._parseSync({data:r,path:s.path,parent:s});return bm(s,u)}"~validate"(r){var s,u;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Mn(r)};if(!this["~standard"].async)try{const f=this._parseSync({data:r,path:[],parent:i});return Fr(f)?{value:f.value}:{issues:i.common.issues}}catch(f){(u=(s=f==null?void 0:f.message)==null?void 0:s.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:i}).then(f=>Fr(f)?{value:f.value}:{issues:i.common.issues})}async parseAsync(r,i){const s=await this.safeParseAsync(r,i);if(s.success)return s.data;throw s.error}async safeParseAsync(r,i){const s={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Mn(r)},u=this._parse({data:r,path:s.path,parent:s}),f=await(Ss(u)?u:Promise.resolve(u));return bm(s,f)}refine(r,i){const s=u=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(u):i;return this._refinement((u,f)=>{const d=r(u),h=()=>f.addIssue({code:J.custom,...s(u)});return typeof Promise<"u"&&d instanceof Promise?d.then(y=>y?!0:(h(),!1)):d?!0:(h(),!1)})}refinement(r,i){return this._refinement((s,u)=>r(s)?!0:(u.addIssue(typeof i=="function"?i(s,u):i),!1))}_refinement(r){return new Pr({schema:this,typeName:Ne.ZodEffects,effect:{type:"refinement",refinement:r}})}superRefine(r){return this._refinement(r)}constructor(r){this.spa=this.safeParseAsync,this._def=r,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return Ln.create(this,this._def)}nullable(){return Ir.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Fa.create(this)}promise(){return Cs.create(this,this._def)}or(r){return Es.create([this,r],this._def)}and(r){return ws.create(this,r,this._def)}transform(r){return new Pr({...Ae(this._def),schema:this,typeName:Ne.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const i=typeof r=="function"?r:()=>r;return new Lu({...Ae(this._def),innerType:this,defaultValue:i,typeName:Ne.ZodDefault})}brand(){return new Sb({typeName:Ne.ZodBranded,type:this,...Ae(this._def)})}catch(r){const i=typeof r=="function"?r:()=>r;return new Vu({...Ae(this._def),innerType:this,catchValue:i,typeName:Ne.ZodCatch})}describe(r){const i=this.constructor;return new i({...this._def,description:r})}pipe(r){return qu.create(this,r)}readonly(){return Hu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const eb=/^c[^\s-]{8,}$/i,tb=/^[0-9a-z]+$/,ab=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nb=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rb=/^[a-z0-9_-]{21}$/i,lb=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ib=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sb=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ob="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ju;const ub=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,cb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,fb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,db=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,mb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,hb=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,_m="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",pb=new RegExp(`^${_m}$`);function Nm(n){let r="[0-5]\\d";n.precision?r=`${r}\\.\\d{${n.precision}}`:n.precision==null&&(r=`${r}(\\.\\d+)?`);const i=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${r})${i}`}function gb(n){return new RegExp(`^${Nm(n)}$`)}function yb(n){let r=`${_m}T${Nm(n)}`;const i=[];return i.push(n.local?"Z?":"Z"),n.offset&&i.push("([+-]\\d{2}:?\\d{2})"),r=`${r}(${i.join("|")})`,new RegExp(`^${r}$`)}function vb(n,r){return!!((r==="v4"||!r)&&ub.test(n)||(r==="v6"||!r)&&fb.test(n))}function bb(n,r){if(!lb.test(n))return!1;try{const[i]=n.split(".");if(!i)return!1;const s=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),u=JSON.parse(atob(s));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||r&&u.alg!==r)}catch{return!1}}function _b(n,r){return!!((r==="v4"||!r)&&cb.test(n)||(r==="v6"||!r)&&db.test(n))}class jn extends Ue{_parse(r){if(this._def.coerce&&(r.data=String(r.data)),this._getType(r)!==de.string){const f=this._getOrReturnCtx(r);return le(f,{code:J.invalid_type,expected:de.string,received:f.parsedType}),_e}const s=new da;let u;for(const f of this._def.checks)if(f.kind==="min")r.data.length<f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:J.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")r.data.length>f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:J.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const d=r.data.length>f.value,h=r.data.length<f.value;(d||h)&&(u=this._getOrReturnCtx(r,u),d?le(u,{code:J.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):h&&le(u,{code:J.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")sb.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"email",code:J.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")ju||(ju=new RegExp(ob,"u")),ju.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"emoji",code:J.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")nb.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"uuid",code:J.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")rb.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"nanoid",code:J.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")eb.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"cuid",code:J.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")tb.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"cuid2",code:J.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")ab.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"ulid",code:J.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(r.data)}catch{u=this._getOrReturnCtx(r,u),le(u,{validation:"url",code:J.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"regex",code:J.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?r.data=r.data.trim():f.kind==="includes"?r.data.includes(f.value,f.position)||(u=this._getOrReturnCtx(r,u),le(u,{code:J.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?r.data=r.data.toLowerCase():f.kind==="toUpperCase"?r.data=r.data.toUpperCase():f.kind==="startsWith"?r.data.startsWith(f.value)||(u=this._getOrReturnCtx(r,u),le(u,{code:J.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?r.data.endsWith(f.value)||(u=this._getOrReturnCtx(r,u),le(u,{code:J.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?yb(f).test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{code:J.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?pb.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{code:J.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?gb(f).test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{code:J.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?ib.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"duration",code:J.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?vb(r.data,f.version)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"ip",code:J.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?bb(r.data,f.alg)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"jwt",code:J.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?_b(r.data,f.version)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"cidr",code:J.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?mb.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"base64",code:J.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?hb.test(r.data)||(u=this._getOrReturnCtx(r,u),le(u,{validation:"base64url",code:J.invalid_string,message:f.message}),s.dirty()):Be.assertNever(f);return{status:s.value,value:r.data}}_regex(r,i,s){return this.refinement(u=>r.test(u),{validation:i,code:J.invalid_string,...he.errToObj(s)})}_addCheck(r){return new jn({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...he.errToObj(r)})}url(r){return this._addCheck({kind:"url",...he.errToObj(r)})}emoji(r){return this._addCheck({kind:"emoji",...he.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...he.errToObj(r)})}nanoid(r){return this._addCheck({kind:"nanoid",...he.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...he.errToObj(r)})}cuid2(r){return this._addCheck({kind:"cuid2",...he.errToObj(r)})}ulid(r){return this._addCheck({kind:"ulid",...he.errToObj(r)})}base64(r){return this._addCheck({kind:"base64",...he.errToObj(r)})}base64url(r){return this._addCheck({kind:"base64url",...he.errToObj(r)})}jwt(r){return this._addCheck({kind:"jwt",...he.errToObj(r)})}ip(r){return this._addCheck({kind:"ip",...he.errToObj(r)})}cidr(r){return this._addCheck({kind:"cidr",...he.errToObj(r)})}datetime(r){return typeof r=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:r}):this._addCheck({kind:"datetime",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,offset:(r==null?void 0:r.offset)??!1,local:(r==null?void 0:r.local)??!1,...he.errToObj(r==null?void 0:r.message)})}date(r){return this._addCheck({kind:"date",message:r})}time(r){return typeof r=="string"?this._addCheck({kind:"time",precision:null,message:r}):this._addCheck({kind:"time",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,...he.errToObj(r==null?void 0:r.message)})}duration(r){return this._addCheck({kind:"duration",...he.errToObj(r)})}regex(r,i){return this._addCheck({kind:"regex",regex:r,...he.errToObj(i)})}includes(r,i){return this._addCheck({kind:"includes",value:r,position:i==null?void 0:i.position,...he.errToObj(i==null?void 0:i.message)})}startsWith(r,i){return this._addCheck({kind:"startsWith",value:r,...he.errToObj(i)})}endsWith(r,i){return this._addCheck({kind:"endsWith",value:r,...he.errToObj(i)})}min(r,i){return this._addCheck({kind:"min",value:r,...he.errToObj(i)})}max(r,i){return this._addCheck({kind:"max",value:r,...he.errToObj(i)})}length(r,i){return this._addCheck({kind:"length",value:r,...he.errToObj(i)})}nonempty(r){return this.min(1,he.errToObj(r))}trim(){return new jn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new jn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new jn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(r=>r.kind==="datetime")}get isDate(){return!!this._def.checks.find(r=>r.kind==="date")}get isTime(){return!!this._def.checks.find(r=>r.kind==="time")}get isDuration(){return!!this._def.checks.find(r=>r.kind==="duration")}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isEmoji(){return!!this._def.checks.find(r=>r.kind==="emoji")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(r=>r.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(r=>r.kind==="cuid2")}get isULID(){return!!this._def.checks.find(r=>r.kind==="ulid")}get isIP(){return!!this._def.checks.find(r=>r.kind==="ip")}get isCIDR(){return!!this._def.checks.find(r=>r.kind==="cidr")}get isBase64(){return!!this._def.checks.find(r=>r.kind==="base64")}get isBase64url(){return!!this._def.checks.find(r=>r.kind==="base64url")}get minLength(){let r=null;for(const i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r}get maxLength(){let r=null;for(const i of this._def.checks)i.kind==="max"&&(r===null||i.value<r)&&(r=i.value);return r}}jn.create=n=>new jn({checks:[],typeName:Ne.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...Ae(n)});function Nb(n,r){const i=(n.toString().split(".")[1]||"").length,s=(r.toString().split(".")[1]||"").length,u=i>s?i:s,f=Number.parseInt(n.toFixed(u).replace(".","")),d=Number.parseInt(r.toFixed(u).replace(".",""));return f%d/10**u}class ai extends Ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._def.coerce&&(r.data=Number(r.data)),this._getType(r)!==de.number){const f=this._getOrReturnCtx(r);return le(f,{code:J.invalid_type,expected:de.number,received:f.parsedType}),_e}let s;const u=new da;for(const f of this._def.checks)f.kind==="int"?Be.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),le(s,{code:J.invalid_type,expected:"integer",received:"float",message:f.message}),u.dirty()):f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:J.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:J.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="multipleOf"?Nb(r.data,f.value)!==0&&(s=this._getOrReturnCtx(r,s),le(s,{code:J.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):f.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),le(s,{code:J.not_finite,message:f.message}),u.dirty()):Be.assertNever(f);return{status:u.value,value:r.data}}gte(r,i){return this.setLimit("min",r,!0,he.toString(i))}gt(r,i){return this.setLimit("min",r,!1,he.toString(i))}lte(r,i){return this.setLimit("max",r,!0,he.toString(i))}lt(r,i){return this.setLimit("max",r,!1,he.toString(i))}setLimit(r,i,s,u){return new ai({...this._def,checks:[...this._def.checks,{kind:r,value:i,inclusive:s,message:he.toString(u)}]})}_addCheck(r){return new ai({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:he.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:he.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:he.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:he.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:he.toString(r)})}multipleOf(r,i){return this._addCheck({kind:"multipleOf",value:r,message:he.toString(i)})}finite(r){return this._addCheck({kind:"finite",message:he.toString(r)})}safe(r){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:he.toString(r)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:he.toString(r)})}get minValue(){let r=null;for(const i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r}get maxValue(){let r=null;for(const i of this._def.checks)i.kind==="max"&&(r===null||i.value<r)&&(r=i.value);return r}get isInt(){return!!this._def.checks.find(r=>r.kind==="int"||r.kind==="multipleOf"&&Be.isInteger(r.value))}get isFinite(){let r=null,i=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(i===null||s.value>i)&&(i=s.value):s.kind==="max"&&(r===null||s.value<r)&&(r=s.value)}return Number.isFinite(i)&&Number.isFinite(r)}}ai.create=n=>new ai({checks:[],typeName:Ne.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...Ae(n)});class ni extends Ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(r){if(this._def.coerce)try{r.data=BigInt(r.data)}catch{return this._getInvalidInput(r)}if(this._getType(r)!==de.bigint)return this._getInvalidInput(r);let s;const u=new da;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:J.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),le(s,{code:J.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="multipleOf"?r.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),le(s,{code:J.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):Be.assertNever(f);return{status:u.value,value:r.data}}_getInvalidInput(r){const i=this._getOrReturnCtx(r);return le(i,{code:J.invalid_type,expected:de.bigint,received:i.parsedType}),_e}gte(r,i){return this.setLimit("min",r,!0,he.toString(i))}gt(r,i){return this.setLimit("min",r,!1,he.toString(i))}lte(r,i){return this.setLimit("max",r,!0,he.toString(i))}lt(r,i){return this.setLimit("max",r,!1,he.toString(i))}setLimit(r,i,s,u){return new ni({...this._def,checks:[...this._def.checks,{kind:r,value:i,inclusive:s,message:he.toString(u)}]})}_addCheck(r){return new ni({...this._def,checks:[...this._def.checks,r]})}positive(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:he.toString(r)})}negative(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:he.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:he.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:he.toString(r)})}multipleOf(r,i){return this._addCheck({kind:"multipleOf",value:r,message:he.toString(i)})}get minValue(){let r=null;for(const i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r}get maxValue(){let r=null;for(const i of this._def.checks)i.kind==="max"&&(r===null||i.value<r)&&(r=i.value);return r}}ni.create=n=>new ni({checks:[],typeName:Ne.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...Ae(n)});class Sm extends Ue{_parse(r){if(this._def.coerce&&(r.data=!!r.data),this._getType(r)!==de.boolean){const s=this._getOrReturnCtx(r);return le(s,{code:J.invalid_type,expected:de.boolean,received:s.parsedType}),_e}return Ea(r.data)}}Sm.create=n=>new Sm({typeName:Ne.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...Ae(n)});class xs extends Ue{_parse(r){if(this._def.coerce&&(r.data=new Date(r.data)),this._getType(r)!==de.date){const f=this._getOrReturnCtx(r);return le(f,{code:J.invalid_type,expected:de.date,received:f.parsedType}),_e}if(Number.isNaN(r.data.getTime())){const f=this._getOrReturnCtx(r);return le(f,{code:J.invalid_date}),_e}const s=new da;let u;for(const f of this._def.checks)f.kind==="min"?r.data.getTime()<f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:J.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?r.data.getTime()>f.value&&(u=this._getOrReturnCtx(r,u),le(u,{code:J.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):Be.assertNever(f);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new xs({...this._def,checks:[...this._def.checks,r]})}min(r,i){return this._addCheck({kind:"min",value:r.getTime(),message:he.toString(i)})}max(r,i){return this._addCheck({kind:"max",value:r.getTime(),message:he.toString(i)})}get minDate(){let r=null;for(const i of this._def.checks)i.kind==="min"&&(r===null||i.value>r)&&(r=i.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(const i of this._def.checks)i.kind==="max"&&(r===null||i.value<r)&&(r=i.value);return r!=null?new Date(r):null}}xs.create=n=>new xs({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:Ne.ZodDate,...Ae(n)});class xm extends Ue{_parse(r){if(this._getType(r)!==de.symbol){const s=this._getOrReturnCtx(r);return le(s,{code:J.invalid_type,expected:de.symbol,received:s.parsedType}),_e}return Ea(r.data)}}xm.create=n=>new xm({typeName:Ne.ZodSymbol,...Ae(n)});class Em extends Ue{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return le(s,{code:J.invalid_type,expected:de.undefined,received:s.parsedType}),_e}return Ea(r.data)}}Em.create=n=>new Em({typeName:Ne.ZodUndefined,...Ae(n)});class wm extends Ue{_parse(r){if(this._getType(r)!==de.null){const s=this._getOrReturnCtx(r);return le(s,{code:J.invalid_type,expected:de.null,received:s.parsedType}),_e}return Ea(r.data)}}wm.create=n=>new wm({typeName:Ne.ZodNull,...Ae(n)});class Cm extends Ue{constructor(){super(...arguments),this._any=!0}_parse(r){return Ea(r.data)}}Cm.create=n=>new Cm({typeName:Ne.ZodAny,...Ae(n)});class Am extends Ue{constructor(){super(...arguments),this._unknown=!0}_parse(r){return Ea(r.data)}}Am.create=n=>new Am({typeName:Ne.ZodUnknown,...Ae(n)});class Bn extends Ue{_parse(r){const i=this._getOrReturnCtx(r);return le(i,{code:J.invalid_type,expected:de.never,received:i.parsedType}),_e}}Bn.create=n=>new Bn({typeName:Ne.ZodNever,...Ae(n)});class Tm extends Ue{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return le(s,{code:J.invalid_type,expected:de.void,received:s.parsedType}),_e}return Ea(r.data)}}Tm.create=n=>new Tm({typeName:Ne.ZodVoid,...Ae(n)});class Fa extends Ue{_parse(r){const{ctx:i,status:s}=this._processInputParams(r),u=this._def;if(i.parsedType!==de.array)return le(i,{code:J.invalid_type,expected:de.array,received:i.parsedType}),_e;if(u.exactLength!==null){const d=i.data.length>u.exactLength.value,h=i.data.length<u.exactLength.value;(d||h)&&(le(i,{code:d?J.too_big:J.too_small,minimum:h?u.exactLength.value:void 0,maximum:d?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),s.dirty())}if(u.minLength!==null&&i.data.length<u.minLength.value&&(le(i,{code:J.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),s.dirty()),u.maxLength!==null&&i.data.length>u.maxLength.value&&(le(i,{code:J.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),s.dirty()),i.common.async)return Promise.all([...i.data].map((d,h)=>u.type._parseAsync(new Un(i,d,i.path,h)))).then(d=>da.mergeArray(s,d));const f=[...i.data].map((d,h)=>u.type._parseSync(new Un(i,d,i.path,h)));return da.mergeArray(s,f)}get element(){return this._def.type}min(r,i){return new Fa({...this._def,minLength:{value:r,message:he.toString(i)}})}max(r,i){return new Fa({...this._def,maxLength:{value:r,message:he.toString(i)}})}length(r,i){return new Fa({...this._def,exactLength:{value:r,message:he.toString(i)}})}nonempty(r){return this.min(1,r)}}Fa.create=(n,r)=>new Fa({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Ne.ZodArray,...Ae(r)});function Kr(n){if(n instanceof Nt){const r={};for(const i in n.shape){const s=n.shape[i];r[i]=Ln.create(Kr(s))}return new Nt({...n._def,shape:()=>r})}else return n instanceof Fa?new Fa({...n._def,type:Kr(n.element)}):n instanceof Ln?Ln.create(Kr(n.unwrap())):n instanceof Ir?Ir.create(Kr(n.unwrap())):n instanceof gr?gr.create(n.items.map(r=>Kr(r))):n}class Nt extends Ue{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const r=this._def.shape(),i=Be.objectKeys(r);return this._cached={shape:r,keys:i},this._cached}_parse(r){if(this._getType(r)!==de.object){const p=this._getOrReturnCtx(r);return le(p,{code:J.invalid_type,expected:de.object,received:p.parsedType}),_e}const{status:s,ctx:u}=this._processInputParams(r),{shape:f,keys:d}=this._getCached(),h=[];if(!(this._def.catchall instanceof Bn&&this._def.unknownKeys==="strip"))for(const p in u.data)d.includes(p)||h.push(p);const y=[];for(const p of d){const _=f[p],b=u.data[p];y.push({key:{status:"valid",value:p},value:_._parse(new Un(u,b,u.path,p)),alwaysSet:p in u.data})}if(this._def.catchall instanceof Bn){const p=this._def.unknownKeys;if(p==="passthrough")for(const _ of h)y.push({key:{status:"valid",value:_},value:{status:"valid",value:u.data[_]}});else if(p==="strict")h.length>0&&(le(u,{code:J.unrecognized_keys,keys:h}),s.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const _ of h){const b=u.data[_];y.push({key:{status:"valid",value:_},value:p._parse(new Un(u,b,u.path,_)),alwaysSet:_ in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const p=[];for(const _ of y){const b=await _.key,C=await _.value;p.push({key:b,value:C,alwaysSet:_.alwaysSet})}return p}).then(p=>da.mergeObjectSync(s,p)):da.mergeObjectSync(s,y)}get shape(){return this._def.shape()}strict(r){return he.errToObj,new Nt({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(i,s)=>{var f,d;const u=((d=(f=this._def).errorMap)==null?void 0:d.call(f,i,s).message)??s.defaultError;return i.code==="unrecognized_keys"?{message:he.errToObj(r).message??u}:{message:u}}}:{}})}strip(){return new Nt({...this._def,unknownKeys:"strip"})}passthrough(){return new Nt({...this._def,unknownKeys:"passthrough"})}extend(r){return new Nt({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new Nt({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:Ne.ZodObject})}setKey(r,i){return this.augment({[r]:i})}catchall(r){return new Nt({...this._def,catchall:r})}pick(r){const i={};for(const s of Be.objectKeys(r))r[s]&&this.shape[s]&&(i[s]=this.shape[s]);return new Nt({...this._def,shape:()=>i})}omit(r){const i={};for(const s of Be.objectKeys(this.shape))r[s]||(i[s]=this.shape[s]);return new Nt({...this._def,shape:()=>i})}deepPartial(){return Kr(this)}partial(r){const i={};for(const s of Be.objectKeys(this.shape)){const u=this.shape[s];r&&!r[s]?i[s]=u:i[s]=u.optional()}return new Nt({...this._def,shape:()=>i})}required(r){const i={};for(const s of Be.objectKeys(this.shape))if(r&&!r[s])i[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof Ln;)f=f._def.innerType;i[s]=f}return new Nt({...this._def,shape:()=>i})}keyof(){return km(Be.objectKeys(this.shape))}}Nt.create=(n,r)=>new Nt({shape:()=>n,unknownKeys:"strip",catchall:Bn.create(),typeName:Ne.ZodObject,...Ae(r)}),Nt.strictCreate=(n,r)=>new Nt({shape:()=>n,unknownKeys:"strict",catchall:Bn.create(),typeName:Ne.ZodObject,...Ae(r)}),Nt.lazycreate=(n,r)=>new Nt({shape:n,unknownKeys:"strip",catchall:Bn.create(),typeName:Ne.ZodObject,...Ae(r)});class Es extends Ue{_parse(r){const{ctx:i}=this._processInputParams(r),s=this._def.options;function u(f){for(const h of f)if(h.result.status==="valid")return h.result;for(const h of f)if(h.result.status==="dirty")return i.common.issues.push(...h.ctx.common.issues),h.result;const d=f.map(h=>new cn(h.ctx.common.issues));return le(i,{code:J.invalid_union,unionErrors:d}),_e}if(i.common.async)return Promise.all(s.map(async f=>{const d={...i,common:{...i.common,issues:[]},parent:null};return{result:await f._parseAsync({data:i.data,path:i.path,parent:d}),ctx:d}})).then(u);{let f;const d=[];for(const y of s){const p={...i,common:{...i.common,issues:[]},parent:null},_=y._parseSync({data:i.data,path:i.path,parent:p});if(_.status==="valid")return _;_.status==="dirty"&&!f&&(f={result:_,ctx:p}),p.common.issues.length&&d.push(p.common.issues)}if(f)return i.common.issues.push(...f.ctx.common.issues),f.result;const h=d.map(y=>new cn(y));return le(i,{code:J.invalid_union,unionErrors:h}),_e}}get options(){return this._def.options}}Es.create=(n,r)=>new Es({options:n,typeName:Ne.ZodUnion,...Ae(r)});function Bu(n,r){const i=Mn(n),s=Mn(r);if(n===r)return{valid:!0,data:n};if(i===de.object&&s===de.object){const u=Be.objectKeys(r),f=Be.objectKeys(n).filter(h=>u.indexOf(h)!==-1),d={...n,...r};for(const h of f){const y=Bu(n[h],r[h]);if(!y.valid)return{valid:!1};d[h]=y.data}return{valid:!0,data:d}}else if(i===de.array&&s===de.array){if(n.length!==r.length)return{valid:!1};const u=[];for(let f=0;f<n.length;f++){const d=n[f],h=r[f],y=Bu(d,h);if(!y.valid)return{valid:!1};u.push(y.data)}return{valid:!0,data:u}}else return i===de.date&&s===de.date&&+n==+r?{valid:!0,data:n}:{valid:!1}}class ws extends Ue{_parse(r){const{status:i,ctx:s}=this._processInputParams(r),u=(f,d)=>{if(ym(f)||ym(d))return _e;const h=Bu(f.value,d.value);return h.valid?((vm(f)||vm(d))&&i.dirty(),{status:i.value,value:h.data}):(le(s,{code:J.invalid_intersection_types}),_e)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([f,d])=>u(f,d)):u(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ws.create=(n,r,i)=>new ws({left:n,right:r,typeName:Ne.ZodIntersection,...Ae(i)});class gr extends Ue{_parse(r){const{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.array)return le(s,{code:J.invalid_type,expected:de.array,received:s.parsedType}),_e;if(s.data.length<this._def.items.length)return le(s,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_e;!this._def.rest&&s.data.length>this._def.items.length&&(le(s,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const f=[...s.data].map((d,h)=>{const y=this._def.items[h]||this._def.rest;return y?y._parse(new Un(s,d,s.path,h)):null}).filter(d=>!!d);return s.common.async?Promise.all(f).then(d=>da.mergeArray(i,d)):da.mergeArray(i,f)}get items(){return this._def.items}rest(r){return new gr({...this._def,rest:r})}}gr.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new gr({items:n,typeName:Ne.ZodTuple,rest:null,...Ae(r)})};class Rm extends Ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.map)return le(s,{code:J.invalid_type,expected:de.map,received:s.parsedType}),_e;const u=this._def.keyType,f=this._def.valueType,d=[...s.data.entries()].map(([h,y],p)=>({key:u._parse(new Un(s,h,s.path,[p,"key"])),value:f._parse(new Un(s,y,s.path,[p,"value"]))}));if(s.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const y of d){const p=await y.key,_=await y.value;if(p.status==="aborted"||_.status==="aborted")return _e;(p.status==="dirty"||_.status==="dirty")&&i.dirty(),h.set(p.value,_.value)}return{status:i.value,value:h}})}else{const h=new Map;for(const y of d){const p=y.key,_=y.value;if(p.status==="aborted"||_.status==="aborted")return _e;(p.status==="dirty"||_.status==="dirty")&&i.dirty(),h.set(p.value,_.value)}return{status:i.value,value:h}}}}Rm.create=(n,r,i)=>new Rm({valueType:r,keyType:n,typeName:Ne.ZodMap,...Ae(i)});class ri extends Ue{_parse(r){const{status:i,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.set)return le(s,{code:J.invalid_type,expected:de.set,received:s.parsedType}),_e;const u=this._def;u.minSize!==null&&s.data.size<u.minSize.value&&(le(s,{code:J.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),i.dirty()),u.maxSize!==null&&s.data.size>u.maxSize.value&&(le(s,{code:J.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),i.dirty());const f=this._def.valueType;function d(y){const p=new Set;for(const _ of y){if(_.status==="aborted")return _e;_.status==="dirty"&&i.dirty(),p.add(_.value)}return{status:i.value,value:p}}const h=[...s.data.values()].map((y,p)=>f._parse(new Un(s,y,s.path,p)));return s.common.async?Promise.all(h).then(y=>d(y)):d(h)}min(r,i){return new ri({...this._def,minSize:{value:r,message:he.toString(i)}})}max(r,i){return new ri({...this._def,maxSize:{value:r,message:he.toString(i)}})}size(r,i){return this.min(r,i).max(r,i)}nonempty(r){return this.min(1,r)}}ri.create=(n,r)=>new ri({valueType:n,minSize:null,maxSize:null,typeName:Ne.ZodSet,...Ae(r)});class Om extends Ue{get schema(){return this._def.getter()}_parse(r){const{ctx:i}=this._processInputParams(r);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}Om.create=(n,r)=>new Om({getter:n,typeName:Ne.ZodLazy,...Ae(r)});class zm extends Ue{_parse(r){if(r.data!==this._def.value){const i=this._getOrReturnCtx(r);return le(i,{received:i.data,code:J.invalid_literal,expected:this._def.value}),_e}return{status:"valid",value:r.data}}get value(){return this._def.value}}zm.create=(n,r)=>new zm({value:n,typeName:Ne.ZodLiteral,...Ae(r)});function km(n,r){return new Jr({values:n,typeName:Ne.ZodEnum,...Ae(r)})}class Jr extends Ue{_parse(r){if(typeof r.data!="string"){const i=this._getOrReturnCtx(r),s=this._def.values;return le(i,{expected:Be.joinValues(s),received:i.parsedType,code:J.invalid_type}),_e}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(r.data)){const i=this._getOrReturnCtx(r),s=this._def.values;return le(i,{received:i.data,code:J.invalid_enum_value,options:s}),_e}return Ea(r.data)}get options(){return this._def.values}get enum(){const r={};for(const i of this._def.values)r[i]=i;return r}get Values(){const r={};for(const i of this._def.values)r[i]=i;return r}get Enum(){const r={};for(const i of this._def.values)r[i]=i;return r}extract(r,i=this._def){return Jr.create(r,{...this._def,...i})}exclude(r,i=this._def){return Jr.create(this.options.filter(s=>!r.includes(s)),{...this._def,...i})}}Jr.create=km;class Dm extends Ue{_parse(r){const i=Be.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==de.string&&s.parsedType!==de.number){const u=Be.objectValues(i);return le(s,{expected:Be.joinValues(u),received:s.parsedType,code:J.invalid_type}),_e}if(this._cache||(this._cache=new Set(Be.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){const u=Be.objectValues(i);return le(s,{received:s.data,code:J.invalid_enum_value,options:u}),_e}return Ea(r.data)}get enum(){return this._def.values}}Dm.create=(n,r)=>new Dm({values:n,typeName:Ne.ZodNativeEnum,...Ae(r)});class Cs extends Ue{unwrap(){return this._def.type}_parse(r){const{ctx:i}=this._processInputParams(r);if(i.parsedType!==de.promise&&i.common.async===!1)return le(i,{code:J.invalid_type,expected:de.promise,received:i.parsedType}),_e;const s=i.parsedType===de.promise?i.data:Promise.resolve(i.data);return Ea(s.then(u=>this._def.type.parseAsync(u,{path:i.path,errorMap:i.common.contextualErrorMap})))}}Cs.create=(n,r)=>new Cs({type:n,typeName:Ne.ZodPromise,...Ae(r)});class Pr extends Ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){const{status:i,ctx:s}=this._processInputParams(r),u=this._def.effect||null,f={addIssue:d=>{le(s,d),d.fatal?i.abort():i.dirty()},get path(){return s.path}};if(f.addIssue=f.addIssue.bind(f),u.type==="preprocess"){const d=u.transform(s.data,f);if(s.common.async)return Promise.resolve(d).then(async h=>{if(i.value==="aborted")return _e;const y=await this._def.schema._parseAsync({data:h,path:s.path,parent:s});return y.status==="aborted"?_e:y.status==="dirty"||i.value==="dirty"?ti(y.value):y});{if(i.value==="aborted")return _e;const h=this._def.schema._parseSync({data:d,path:s.path,parent:s});return h.status==="aborted"?_e:h.status==="dirty"||i.value==="dirty"?ti(h.value):h}}if(u.type==="refinement"){const d=h=>{const y=u.refinement(h,f);if(s.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(s.common.async===!1){const h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return h.status==="aborted"?_e:(h.status==="dirty"&&i.dirty(),d(h.value),{status:i.value,value:h.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>h.status==="aborted"?_e:(h.status==="dirty"&&i.dirty(),d(h.value).then(()=>({status:i.value,value:h.value}))))}if(u.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Fr(d))return _e;const h=u.transform(d.value,f);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:h}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>Fr(d)?Promise.resolve(u.transform(d.value,f)).then(h=>({status:i.value,value:h})):_e);Be.assertNever(u)}}Pr.create=(n,r,i)=>new Pr({schema:n,typeName:Ne.ZodEffects,effect:r,...Ae(i)}),Pr.createWithPreprocess=(n,r,i)=>new Pr({schema:r,effect:{type:"preprocess",transform:n},typeName:Ne.ZodEffects,...Ae(i)});class Ln extends Ue{_parse(r){return this._getType(r)===de.undefined?Ea(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Ln.create=(n,r)=>new Ln({innerType:n,typeName:Ne.ZodOptional,...Ae(r)});class Ir extends Ue{_parse(r){return this._getType(r)===de.null?Ea(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Ir.create=(n,r)=>new Ir({innerType:n,typeName:Ne.ZodNullable,...Ae(r)});class Lu extends Ue{_parse(r){const{ctx:i}=this._processInputParams(r);let s=i.data;return i.parsedType===de.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}Lu.create=(n,r)=>new Lu({innerType:n,typeName:Ne.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...Ae(r)});class Vu extends Ue{_parse(r){const{ctx:i}=this._processInputParams(r),s={...i,common:{...i.common,issues:[]}},u=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Ss(u)?u.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new cn(s.common.issues)},input:s.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new cn(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Vu.create=(n,r)=>new Vu({innerType:n,typeName:Ne.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...Ae(r)});class Mm extends Ue{_parse(r){if(this._getType(r)!==de.nan){const s=this._getOrReturnCtx(r);return le(s,{code:J.invalid_type,expected:de.nan,received:s.parsedType}),_e}return{status:"valid",value:r.data}}}Mm.create=n=>new Mm({typeName:Ne.ZodNaN,...Ae(n)});class Sb extends Ue{_parse(r){const{ctx:i}=this._processInputParams(r),s=i.data;return this._def.type._parse({data:s,path:i.path,parent:i})}unwrap(){return this._def.type}}class qu extends Ue{_parse(r){const{status:i,ctx:s}=this._processInputParams(r);if(s.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?_e:f.status==="dirty"?(i.dirty(),ti(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const u=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return u.status==="aborted"?_e:u.status==="dirty"?(i.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:s.path,parent:s})}}static create(r,i){return new qu({in:r,out:i,typeName:Ne.ZodPipeline})}}class Hu extends Ue{_parse(r){const i=this._def.innerType._parse(r),s=u=>(Fr(u)&&(u.value=Object.freeze(u.value)),u);return Ss(i)?i.then(u=>s(u)):s(i)}unwrap(){return this._def.innerType}}Hu.create=(n,r)=>new Hu({innerType:n,typeName:Ne.ZodReadonly,...Ae(r)});var Ne;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Ne||(Ne={}));const Um=jn.create;Bn.create,Fa.create;const xb=Nt.create;Es.create,ws.create,gr.create,Jr.create,Cs.create,Ln.create,Ir.create;const Eb=xb({securityNumber:Um({required_error:"CPF é obrigatório."}).refine(n=>n.replace(/\D/g,"").length>=11,"CPF deve conter no mínimo 11 caracteres.").refine(n=>{const r=n.replace(/\D/g,"");return!!Number(r)},"CPF deve conter apenas números."),coupon:Um({required_error:"Cupom / ID do Cartão obrigatório."}).optional()});var Gu={exports:{}};/*!
43
+ `+dl+e+ml}var In=!1;function Pn(e,t){if(!e||In)return"";In=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(V){var z=V}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(V){z=V}e.call(Y.prototype)}}else{try{throw Error()}catch(V){z=V}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(V){if(V&&z&&typeof V.stack=="string")return[V.stack,z.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),m=c[0],g=c[1];if(m&&g){var _=m.split(`
44
+ `),M=g.split(`
45
+ `);for(u=i=0;i<_.length&&!_[i].includes("DetermineComponentFrameRoot");)i++;for(;u<M.length&&!M[u].includes("DetermineComponentFrameRoot");)u++;if(i===_.length||u===M.length)for(i=_.length-1,u=M.length-1;1<=i&&0<=u&&_[i]!==M[u];)u--;for(;1<=i&&0<=u;i--,u--)if(_[i]!==M[u]){if(i!==1||u!==1)do if(i--,u--,0>u||_[i]!==M[u]){var L=`
46
+ `+_[i].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=i&&0<=u);break}}}finally{In=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?nr(a):""}function Ac(e,t){switch(e.tag){case 26:case 27:case 5:return nr(e.type);case 16:return nr("Lazy");case 13:return e.child!==t&&t!==null?nr("Suspense Fallback"):nr("Suspense");case 19:return nr("SuspenseList");case 0:case 15:return Pn(e.type,!1);case 11:return Pn(e.type.render,!1);case 1:return Pn(e.type,!0);case 31:return nr("Activity");default:return""}}function $s(e){try{var t="",a=null;do t+=Ac(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Fs=Object.prototype.hasOwnProperty,Wn=n.unstable_scheduleCallback,E=n.unstable_cancelCallback,O=n.unstable_shouldYield,j=n.unstable_requestPaint,W=n.unstable_now,ee=n.unstable_getCurrentPriorityLevel,ae=n.unstable_ImmediatePriority,me=n.unstable_UserBlockingPriority,ve=n.unstable_NormalPriority,Ye=n.unstable_LowPriority,Yt=n.unstable_IdlePriority,Na=n.log,$t=n.unstable_setDisableYieldValue,mn=null,jt=null;function Sa(e){if(typeof Na=="function"&&$t(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(mn,e)}catch{}}var Xt=Math.clz32?Math.clz32:Xs,Qs=Math.log,Tc=Math.LN2;function Xs(e){return e>>>=0,e===0?32:31-(Qs(e)/Tc|0)|0}var Ks=256,Js=262144,Is=4194304;function hn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ps(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var g=i&134217727;return g!==0?(i=g&~c,i!==0?u=hn(i):(m&=g,m!==0?u=hn(m):a||(a=g&~e,a!==0&&(u=hn(a))))):(g=i&~c,g!==0?u=hn(g):m!==0?u=hn(m):a||(a=i&~e,a!==0&&(u=hn(a)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:u}function hl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function H_(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Mp(){var e=Is;return Is<<=1,(Is&62914560)===0&&(Is=4194304),e}function Oc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function pl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function G_(e,t,a,i,u,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var g=e.entanglements,_=e.expirationTimes,M=e.hiddenUpdates;for(a=m&~a;0<a;){var L=31-Xt(a),Y=1<<L;g[L]=0,_[L]=-1;var z=M[L];if(z!==null)for(M[L]=null,L=0;L<z.length;L++){var V=z[L];V!==null&&(V.lane&=-536870913)}a&=~Y}i!==0&&zp(e,i,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function zp(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Xt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function kp(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Xt(a),u=1<<i;u&t|e[i]&t&&(e[i]|=t),a&=~u}}function jp(e,t){var a=t&-t;return a=(a&42)!==0?1:Rc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Rc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Mc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vp(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Nb(e.type))}function Bp(e,t){var a=J.p;try{return J.p=e,t()}finally{J.p=a}}var Rr=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Rr,Wt="__reactProps$"+Rr,ei="__reactContainer$"+Rr,zc="__reactEvents$"+Rr,Z_="__reactListeners$"+Rr,Y_="__reactHandles$"+Rr,Up="__reactResources$"+Rr,gl="__reactMarker$"+Rr;function kc(e){delete e[Vt],delete e[Wt],delete e[zc],delete e[Z_],delete e[Y_]}function ti(e){var t=e[Vt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ei]||a[Vt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ib(e);e!==null;){if(a=e[Vt])return a;e=ib(e)}return t}e=a,a=e.parentNode}return null}function ai(e){if(e=e[Vt]||e[ei]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ri(e){var t=e[Up];return t||(t=e[Up]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Rt(e){e[gl]=!0}var Lp=new Set,qp={};function pn(e,t){ni(e,t),ni(e+"Capture",t)}function ni(e,t){for(qp[e]=t,e=0;e<t.length;e++)Lp.add(t[e])}var $_=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]*$"),Hp={},Gp={};function F_(e){return Fs.call(Gp,e)?!0:Fs.call(Hp,e)?!1:$_.test(e)?Gp[e]=!0:(Hp[e]=!0,!1)}function Ws(e,t,a){if(F_(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function eo(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function ir(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function _a(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Q_(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jc(e){if(!e._valueTracker){var t=Zp(e)?"checked":"value";e._valueTracker=Q_(e,t,""+e[t])}}function Yp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=Zp(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function to(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var X_=/[\n"\\]/g;function Ca(e){return e.replace(X_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Vc(e,t,a,i,u,c,m,g){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_a(t)):e.value!==""+_a(t)&&(e.value=""+_a(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Bc(e,m,_a(t)):a!=null?Bc(e,m,_a(a)):i!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+_a(g):e.removeAttribute("name")}function $p(e,t,a,i,u,c,m,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){jc(e);return}a=a!=null?""+_a(a):"",t=t!=null?""+_a(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=g?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),jc(e)}function Bc(e,t,a){t==="number"&&to(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ii(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&i&&(e[a].defaultSelected=!0)}else{for(a=""+_a(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Fp(e,t,a){if(t!=null&&(t=""+_a(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+_a(a):""}function Qp(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(o(92));if(Z(i)){if(1<i.length)throw Error(o(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=_a(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),jc(e)}function li(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var K_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xp(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||K_.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Kp(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&a[u]!==i&&Xp(e,u,i)}else for(var c in t)t.hasOwnProperty(c)&&Xp(e,c,t[c])}function Uc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var J_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),I_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ao(e){return I_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function lr(){}var Lc=null;function qc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var si=null,oi=null;function Jp(e){var t=ai(e);if(t&&(e=t.stateNode)){var a=e[Wt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Vc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ca(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var u=i[Wt]||null;if(!u)throw Error(o(90));Vc(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Yp(i)}break e;case"textarea":Fp(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ii(e,!!a.multiple,t,!1)}}}var Hc=!1;function Ip(e,t,a){if(Hc)return e(t,a);Hc=!0;try{var i=e(t);return i}finally{if(Hc=!1,(si!==null||oi!==null)&&(Yo(),si&&(t=si,e=oi,oi=si=null,Jp(t),e)))for(t=0;t<e.length;t++)Jp(e[t])}}function bl(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Wt]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gc=!1;if(sr)try{var vl={};Object.defineProperty(vl,"passive",{get:function(){Gc=!0}}),window.addEventListener("test",vl,vl),window.removeEventListener("test",vl,vl)}catch{Gc=!1}var Mr=null,Zc=null,ro=null;function Pp(){if(ro)return ro;var e,t=Zc,a=t.length,i,u="value"in Mr?Mr.value:Mr.textContent,c=u.length;for(e=0;e<a&&t[e]===u[e];e++);var m=a-e;for(i=1;i<=m&&t[a-i]===u[c-i];i++);return ro=u.slice(e,1<i?1-i:void 0)}function no(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function io(){return!0}function Wp(){return!1}function ea(e){function t(a,i,u,c,m){this._reactName=a,this._targetInst=u,this.type=i,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?io:Wp,this.isPropagationStopped=Wp,this}return C(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=io)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=io)},persist:function(){},isPersistent:io}),t}var gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lo=ea(gn),xl=C({},gn,{view:0,detail:0}),P_=ea(xl),Yc,$c,Nl,so=C({},xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Nl&&(Nl&&e.type==="mousemove"?(Yc=e.screenX-Nl.screenX,$c=e.screenY-Nl.screenY):$c=Yc=0,Nl=e),Yc)},movementY:function(e){return"movementY"in e?e.movementY:$c}}),eg=ea(so),W_=C({},so,{dataTransfer:0}),eC=ea(W_),tC=C({},xl,{relatedTarget:0}),Fc=ea(tC),aC=C({},gn,{animationName:0,elapsedTime:0,pseudoElement:0}),rC=ea(aC),nC=C({},gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iC=ea(nC),lC=C({},gn,{data:0}),tg=ea(lC),sC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},uC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uC[e])?!!t[e]:!1}function Qc(){return cC}var fC=C({},xl,{key:function(e){if(e.key){var t=sC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=no(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qc,charCode:function(e){return e.type==="keypress"?no(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?no(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dC=ea(fC),mC=C({},so,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ag=ea(mC),hC=C({},xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qc}),pC=ea(hC),gC=C({},gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),yC=ea(gC),bC=C({},so,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vC=ea(bC),xC=C({},gn,{newState:0,oldState:0}),NC=ea(xC),SC=[9,13,27,32],Xc=sr&&"CompositionEvent"in window,Sl=null;sr&&"documentMode"in document&&(Sl=document.documentMode);var _C=sr&&"TextEvent"in window&&!Sl,rg=sr&&(!Xc||Sl&&8<Sl&&11>=Sl),ng=" ",ig=!1;function lg(e,t){switch(e){case"keyup":return SC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ui=!1;function CC(e,t){switch(e){case"compositionend":return sg(t);case"keypress":return t.which!==32?null:(ig=!0,ng);case"textInput":return e=t.data,e===ng&&ig?null:e;default:return null}}function EC(e,t){if(ui)return e==="compositionend"||!Xc&&lg(e,t)?(e=Pp(),ro=Zc=Mr=null,ui=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rg&&t.locale!=="ko"?null:t.data;default:return null}}var wC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function og(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wC[e.type]:t==="textarea"}function ug(e,t,a,i){si?oi?oi.push(i):oi=[i]:si=i,t=Io(t,"onChange"),0<t.length&&(a=new lo("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var _l=null,Cl=null;function DC(e){$y(e,0)}function oo(e){var t=yl(e);if(Yp(t))return e}function cg(e,t){if(e==="change")return t}var fg=!1;if(sr){var Kc;if(sr){var Jc="oninput"in document;if(!Jc){var dg=document.createElement("div");dg.setAttribute("oninput","return;"),Jc=typeof dg.oninput=="function"}Kc=Jc}else Kc=!1;fg=Kc&&(!document.documentMode||9<document.documentMode)}function mg(){_l&&(_l.detachEvent("onpropertychange",hg),Cl=_l=null)}function hg(e){if(e.propertyName==="value"&&oo(Cl)){var t=[];ug(t,Cl,e,qc(e)),Ip(DC,t)}}function AC(e,t,a){e==="focusin"?(mg(),_l=t,Cl=a,_l.attachEvent("onpropertychange",hg)):e==="focusout"&&mg()}function TC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oo(Cl)}function OC(e,t){if(e==="click")return oo(t)}function RC(e,t){if(e==="input"||e==="change")return oo(t)}function MC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ca=typeof Object.is=="function"?Object.is:MC;function El(e,t){if(ca(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var u=a[i];if(!Fs.call(t,u)||!ca(e[u],t[u]))return!1}return!0}function pg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gg(e,t){var a=pg(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=pg(a)}}function yg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=to(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=to(e.document)}return t}function Ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var zC=sr&&"documentMode"in document&&11>=document.documentMode,ci=null,Pc=null,wl=null,Wc=!1;function vg(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Wc||ci==null||ci!==to(i)||(i=ci,"selectionStart"in i&&Ic(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),wl&&El(wl,i)||(wl=i,i=Io(Pc,"onSelect"),0<i.length&&(t=new lo("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ci)))}function yn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var fi={animationend:yn("Animation","AnimationEnd"),animationiteration:yn("Animation","AnimationIteration"),animationstart:yn("Animation","AnimationStart"),transitionrun:yn("Transition","TransitionRun"),transitionstart:yn("Transition","TransitionStart"),transitioncancel:yn("Transition","TransitionCancel"),transitionend:yn("Transition","TransitionEnd")},ef={},xg={};sr&&(xg=document.createElement("div").style,"AnimationEvent"in window||(delete fi.animationend.animation,delete fi.animationiteration.animation,delete fi.animationstart.animation),"TransitionEvent"in window||delete fi.transitionend.transition);function bn(e){if(ef[e])return ef[e];if(!fi[e])return e;var t=fi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in xg)return ef[e]=t[a];return e}var Ng=bn("animationend"),Sg=bn("animationiteration"),_g=bn("animationstart"),kC=bn("transitionrun"),jC=bn("transitionstart"),VC=bn("transitioncancel"),Cg=bn("transitionend"),Eg=new Map,tf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");tf.push("scrollEnd");function Ba(e,t){Eg.set(e,t),pn(t,[e])}var uo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof r=="object"&&typeof r.emit=="function"){r.emit("uncaughtException",e);return}console.error(e)},Ea=[],di=0,af=0;function co(){for(var e=di,t=af=di=0;t<e;){var a=Ea[t];Ea[t++]=null;var i=Ea[t];Ea[t++]=null;var u=Ea[t];Ea[t++]=null;var c=Ea[t];if(Ea[t++]=null,i!==null&&u!==null){var m=i.pending;m===null?u.next=u:(u.next=m.next,m.next=u),i.pending=u}c!==0&&wg(a,u,c)}}function fo(e,t,a,i){Ea[di++]=e,Ea[di++]=t,Ea[di++]=a,Ea[di++]=i,af|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function rf(e,t,a,i){return fo(e,t,a,i),mo(e)}function vn(e,t){return fo(e,null,null,t),mo(e)}function wg(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-Xt(a),e=c.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=a|536870912),c):null}function mo(e){if(50<Xl)throw Xl=0,md=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var mi={};function BC(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fa(e,t,a,i){return new BC(e,t,a,i)}function nf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function or(e,t){var a=e.alternate;return a===null?(a=fa(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Dg(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ho(e,t,a,i,u,c){var m=0;if(i=e,typeof e=="function")nf(e)&&(m=1);else if(typeof e=="string")m=G5(e,a,ce.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ue:return e=fa(31,a,t,u),e.elementType=Ue,e.lanes=c,e;case q:return xn(a.children,u,c,t);case te:m=8,u|=24;break;case Q:return e=fa(12,a,t,u|2),e.elementType=Q,e.lanes=c,e;case K:return e=fa(13,a,t,u),e.elementType=K,e.lanes=c,e;case ne:return e=fa(19,a,t,u),e.elementType=ne,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I:m=10;break e;case le:m=9;break e;case B:m=11;break e;case de:m=14;break e;case we:m=16,i=null;break e}m=29,a=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=fa(m,a,t,u),t.elementType=e,t.type=i,t.lanes=c,t}function xn(e,t,a,i){return e=fa(7,e,i,t),e.lanes=a,e}function lf(e,t,a){return e=fa(6,e,null,t),e.lanes=a,e}function Ag(e){var t=fa(18,null,null,0);return t.stateNode=e,t}function sf(e,t,a){return t=fa(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Tg=new WeakMap;function wa(e,t){if(typeof e=="object"&&e!==null){var a=Tg.get(e);return a!==void 0?a:(t={value:e,source:t,stack:$s(t)},Tg.set(e,t),t)}return{value:e,source:t,stack:$s(t)}}var hi=[],pi=0,po=null,Dl=0,Da=[],Aa=0,zr=null,Fa=1,Qa="";function ur(e,t){hi[pi++]=Dl,hi[pi++]=po,po=e,Dl=t}function Og(e,t,a){Da[Aa++]=Fa,Da[Aa++]=Qa,Da[Aa++]=zr,zr=e;var i=Fa;e=Qa;var u=32-Xt(i)-1;i&=~(1<<u),a+=1;var c=32-Xt(t)+u;if(30<c){var m=u-u%5;c=(i&(1<<m)-1).toString(32),i>>=m,u-=m,Fa=1<<32-Xt(t)+u|a<<u|i,Qa=c+e}else Fa=1<<c|a<<u|i,Qa=e}function of(e){e.return!==null&&(ur(e,1),Og(e,1,0))}function uf(e){for(;e===po;)po=hi[--pi],hi[pi]=null,Dl=hi[--pi],hi[pi]=null;for(;e===zr;)zr=Da[--Aa],Da[Aa]=null,Qa=Da[--Aa],Da[Aa]=null,Fa=Da[--Aa],Da[Aa]=null}function Rg(e,t){Da[Aa++]=Fa,Da[Aa++]=Qa,Da[Aa++]=zr,Fa=t.id,Qa=t.overflow,zr=e}var Bt=null,it=null,je=!1,kr=null,Ta=!1,cf=Error(o(519));function jr(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Al(wa(t,e)),cf}function Mg(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Vt]=e,t[Wt]=i,a){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(a=0;a<Jl.length;a++)Me(Jl[a],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),$p(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),Qp(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||Ky(t.textContent,a)?(i.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),i.onScroll!=null&&Me("scroll",t),i.onScrollEnd!=null&&Me("scrollend",t),i.onClick!=null&&(t.onclick=lr),t=!0):t=!1,t||jr(e,!0)}function zg(e){for(Bt=e.return;Bt;)switch(Bt.tag){case 5:case 31:case 13:Ta=!1;return;case 27:case 3:Ta=!0;return;default:Bt=Bt.return}}function gi(e){if(e!==Bt)return!1;if(!je)return zg(e),je=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ad(e.type,e.memoizedProps)),a=!a),a&&it&&jr(e),zg(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));it=nb(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));it=nb(e)}else t===27?(t=it,Kr(e.type)?(e=zd,zd=null,it=e):it=t):it=Bt?Ra(e.stateNode.nextSibling):null;return!0}function Nn(){it=Bt=null,je=!1}function ff(){var e=kr;return e!==null&&(na===null?na=e:na.push.apply(na,e),kr=null),e}function Al(e){kr===null?kr=[e]:kr.push(e)}var df=A(null),Sn=null,cr=null;function Vr(e,t,a){re(df,t._currentValue),t._currentValue=a}function fr(e){e._currentValue=df.current,$(df)}function mf(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function hf(e,t,a,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var m=u.child;c=c.firstContext;e:for(;c!==null;){var g=c;c=u;for(var _=0;_<t.length;_++)if(g.context===t[_]){c.lanes|=a,g=c.alternate,g!==null&&(g.lanes|=a),mf(c.return,a,e),i||(m=null);break e}c=g.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(o(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),mf(m,a,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function yi(e,t,a,i){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var g=u.type;ca(u.pendingProps.value,m.value)||(e!==null?e.push(g):e=[g])}}else if(u===Le.current){if(m=u.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ts):e=[ts])}u=u.return}e!==null&&hf(t,e,a,i),t.flags|=262144}function go(e){for(e=e.firstContext;e!==null;){if(!ca(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _n(e){Sn=e,cr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return kg(Sn,e)}function yo(e,t){return Sn===null&&_n(e),kg(e,t)}function kg(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},cr===null){if(e===null)throw Error(o(308));cr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else cr=cr.next=t;return a}var UC=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},LC=n.unstable_scheduleCallback,qC=n.unstable_NormalPriority,Ct={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pf(){return{controller:new UC,data:new Map,refCount:0}}function Tl(e){e.refCount--,e.refCount===0&&LC(qC,function(){e.controller.abort()})}var Ol=null,gf=0,bi=0,xi=null;function HC(e,t){if(Ol===null){var a=Ol=[];gf=0,bi=vd(),xi={status:"pending",value:void 0,then:function(i){a.push(i)}}}return gf++,t.then(jg,jg),t}function jg(){if(--gf===0&&Ol!==null){xi!==null&&(xi.status="fulfilled");var e=Ol;Ol=null,bi=0,xi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function GC(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),i}var Vg=H.S;H.S=function(e,t){vy=W(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&HC(e,t),Vg!==null&&Vg(e,t)};var Cn=A(null);function yf(){var e=Cn.current;return e!==null?e:rt.pooledCache}function bo(e,t){t===null?re(Cn,Cn.current):re(Cn,t.pool)}function Bg(){var e=yf();return e===null?null:{parent:Ct._currentValue,pool:e}}var Ni=Error(o(460)),bf=Error(o(474)),vo=Error(o(542)),xo={then:function(){}};function Ug(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Lg(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(lr,lr),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hg(e),e;default:if(typeof t.status=="string")t.then(lr,lr);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hg(e),e}throw wn=t,Ni}}function En(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(wn=a,Ni):a}}var wn=null;function qg(){if(wn===null)throw Error(o(459));var e=wn;return wn=null,e}function Hg(e){if(e===Ni||e===vo)throw Error(o(483))}var Si=null,Rl=0;function No(e){var t=Rl;return Rl+=1,Si===null&&(Si=[]),Lg(Si,e,t)}function Ml(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function So(e,t){throw t.$$typeof===S?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Gg(e){function t(T,D){if(e){var R=T.deletions;R===null?(T.deletions=[D],T.flags|=16):R.push(D)}}function a(T,D){if(!e)return null;for(;D!==null;)t(T,D),D=D.sibling;return null}function i(T){for(var D=new Map;T!==null;)T.key!==null?D.set(T.key,T):D.set(T.index,T),T=T.sibling;return D}function u(T,D){return T=or(T,D),T.index=0,T.sibling=null,T}function c(T,D,R){return T.index=R,e?(R=T.alternate,R!==null?(R=R.index,R<D?(T.flags|=67108866,D):R):(T.flags|=67108866,D)):(T.flags|=1048576,D)}function m(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function g(T,D,R,G){return D===null||D.tag!==6?(D=lf(R,T.mode,G),D.return=T,D):(D=u(D,R),D.return=T,D)}function _(T,D,R,G){var ye=R.type;return ye===q?L(T,D,R.props.children,G,R.key):D!==null&&(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===we&&En(ye)===D.type)?(D=u(D,R.props),Ml(D,R),D.return=T,D):(D=ho(R.type,R.key,R.props,null,T.mode,G),Ml(D,R),D.return=T,D)}function M(T,D,R,G){return D===null||D.tag!==4||D.stateNode.containerInfo!==R.containerInfo||D.stateNode.implementation!==R.implementation?(D=sf(R,T.mode,G),D.return=T,D):(D=u(D,R.children||[]),D.return=T,D)}function L(T,D,R,G,ye){return D===null||D.tag!==7?(D=xn(R,T.mode,G,ye),D.return=T,D):(D=u(D,R),D.return=T,D)}function Y(T,D,R){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=lf(""+D,T.mode,R),D.return=T,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case k:return R=ho(D.type,D.key,D.props,null,T.mode,R),Ml(R,D),R.return=T,R;case w:return D=sf(D,T.mode,R),D.return=T,D;case we:return D=En(D),Y(T,D,R)}if(Z(D)||F(D))return D=xn(D,T.mode,R,null),D.return=T,D;if(typeof D.then=="function")return Y(T,No(D),R);if(D.$$typeof===I)return Y(T,yo(T,D),R);So(T,D)}return null}function z(T,D,R,G){var ye=D!==null?D.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ye!==null?null:g(T,D,""+R,G);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case k:return R.key===ye?_(T,D,R,G):null;case w:return R.key===ye?M(T,D,R,G):null;case we:return R=En(R),z(T,D,R,G)}if(Z(R)||F(R))return ye!==null?null:L(T,D,R,G,null);if(typeof R.then=="function")return z(T,D,No(R),G);if(R.$$typeof===I)return z(T,D,yo(T,R),G);So(T,R)}return null}function V(T,D,R,G,ye){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return T=T.get(R)||null,g(D,T,""+G,ye);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case k:return T=T.get(G.key===null?R:G.key)||null,_(D,T,G,ye);case w:return T=T.get(G.key===null?R:G.key)||null,M(D,T,G,ye);case we:return G=En(G),V(T,D,R,G,ye)}if(Z(G)||F(G))return T=T.get(R)||null,L(D,T,G,ye,null);if(typeof G.then=="function")return V(T,D,R,No(G),ye);if(G.$$typeof===I)return V(T,D,R,yo(D,G),ye);So(D,G)}return null}function ue(T,D,R,G){for(var ye=null,qe=null,he=D,Ee=D=0,ke=null;he!==null&&Ee<R.length;Ee++){he.index>Ee?(ke=he,he=null):ke=he.sibling;var He=z(T,he,R[Ee],G);if(He===null){he===null&&(he=ke);break}e&&he&&He.alternate===null&&t(T,he),D=c(He,D,Ee),qe===null?ye=He:qe.sibling=He,qe=He,he=ke}if(Ee===R.length)return a(T,he),je&&ur(T,Ee),ye;if(he===null){for(;Ee<R.length;Ee++)he=Y(T,R[Ee],G),he!==null&&(D=c(he,D,Ee),qe===null?ye=he:qe.sibling=he,qe=he);return je&&ur(T,Ee),ye}for(he=i(he);Ee<R.length;Ee++)ke=V(he,T,Ee,R[Ee],G),ke!==null&&(e&&ke.alternate!==null&&he.delete(ke.key===null?Ee:ke.key),D=c(ke,D,Ee),qe===null?ye=ke:qe.sibling=ke,qe=ke);return e&&he.forEach(function(en){return t(T,en)}),je&&ur(T,Ee),ye}function be(T,D,R,G){if(R==null)throw Error(o(151));for(var ye=null,qe=null,he=D,Ee=D=0,ke=null,He=R.next();he!==null&&!He.done;Ee++,He=R.next()){he.index>Ee?(ke=he,he=null):ke=he.sibling;var en=z(T,he,He.value,G);if(en===null){he===null&&(he=ke);break}e&&he&&en.alternate===null&&t(T,he),D=c(en,D,Ee),qe===null?ye=en:qe.sibling=en,qe=en,he=ke}if(He.done)return a(T,he),je&&ur(T,Ee),ye;if(he===null){for(;!He.done;Ee++,He=R.next())He=Y(T,He.value,G),He!==null&&(D=c(He,D,Ee),qe===null?ye=He:qe.sibling=He,qe=He);return je&&ur(T,Ee),ye}for(he=i(he);!He.done;Ee++,He=R.next())He=V(he,T,Ee,He.value,G),He!==null&&(e&&He.alternate!==null&&he.delete(He.key===null?Ee:He.key),D=c(He,D,Ee),qe===null?ye=He:qe.sibling=He,qe=He);return e&&he.forEach(function(W5){return t(T,W5)}),je&&ur(T,Ee),ye}function at(T,D,R,G){if(typeof R=="object"&&R!==null&&R.type===q&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case k:e:{for(var ye=R.key;D!==null;){if(D.key===ye){if(ye=R.type,ye===q){if(D.tag===7){a(T,D.sibling),G=u(D,R.props.children),G.return=T,T=G;break e}}else if(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===we&&En(ye)===D.type){a(T,D.sibling),G=u(D,R.props),Ml(G,R),G.return=T,T=G;break e}a(T,D);break}else t(T,D);D=D.sibling}R.type===q?(G=xn(R.props.children,T.mode,G,R.key),G.return=T,T=G):(G=ho(R.type,R.key,R.props,null,T.mode,G),Ml(G,R),G.return=T,T=G)}return m(T);case w:e:{for(ye=R.key;D!==null;){if(D.key===ye)if(D.tag===4&&D.stateNode.containerInfo===R.containerInfo&&D.stateNode.implementation===R.implementation){a(T,D.sibling),G=u(D,R.children||[]),G.return=T,T=G;break e}else{a(T,D);break}else t(T,D);D=D.sibling}G=sf(R,T.mode,G),G.return=T,T=G}return m(T);case we:return R=En(R),at(T,D,R,G)}if(Z(R))return ue(T,D,R,G);if(F(R)){if(ye=F(R),typeof ye!="function")throw Error(o(150));return R=ye.call(R),be(T,D,R,G)}if(typeof R.then=="function")return at(T,D,No(R),G);if(R.$$typeof===I)return at(T,D,yo(T,R),G);So(T,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,D!==null&&D.tag===6?(a(T,D.sibling),G=u(D,R),G.return=T,T=G):(a(T,D),G=lf(R,T.mode,G),G.return=T,T=G),m(T)):a(T,D)}return function(T,D,R,G){try{Rl=0;var ye=at(T,D,R,G);return Si=null,ye}catch(he){if(he===Ni||he===vo)throw he;var qe=fa(29,he,null,T.mode);return qe.lanes=G,qe.return=T,qe}finally{}}}var Dn=Gg(!0),Zg=Gg(!1),Br=!1;function vf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ur(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Lr(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,($e&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=mo(e),wg(e,null,a),t}return fo(e,i,t,a),mo(e)}function zl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,kp(e,a)}}function Nf(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?u=c=t:c=c.next=t}else u=c=t;a={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Sf=!1;function kl(){if(Sf){var e=xi;if(e!==null)throw e}}function jl(e,t,a,i){Sf=!1;var u=e.updateQueue;Br=!1;var c=u.firstBaseUpdate,m=u.lastBaseUpdate,g=u.shared.pending;if(g!==null){u.shared.pending=null;var _=g,M=_.next;_.next=null,m===null?c=M:m.next=M,m=_;var L=e.alternate;L!==null&&(L=L.updateQueue,g=L.lastBaseUpdate,g!==m&&(g===null?L.firstBaseUpdate=M:g.next=M,L.lastBaseUpdate=_))}if(c!==null){var Y=u.baseState;m=0,L=M=_=null,g=c;do{var z=g.lane&-536870913,V=z!==g.lane;if(V?(ze&z)===z:(i&z)===z){z!==0&&z===bi&&(Sf=!0),L!==null&&(L=L.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var ue=e,be=g;z=t;var at=a;switch(be.tag){case 1:if(ue=be.payload,typeof ue=="function"){Y=ue.call(at,Y,z);break e}Y=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=be.payload,z=typeof ue=="function"?ue.call(at,Y,z):ue,z==null)break e;Y=C({},Y,z);break e;case 2:Br=!0}}z=g.callback,z!==null&&(e.flags|=64,V&&(e.flags|=8192),V=u.callbacks,V===null?u.callbacks=[z]:V.push(z))}else V={lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},L===null?(M=L=V,_=Y):L=L.next=V,m|=z;if(g=g.next,g===null){if(g=u.shared.pending,g===null)break;V=g,g=V.next,V.next=null,u.lastBaseUpdate=V,u.shared.pending=null}}while(!0);L===null&&(_=Y),u.baseState=_,u.firstBaseUpdate=M,u.lastBaseUpdate=L,c===null&&(u.shared.lanes=0),Yr|=m,e.lanes=m,e.memoizedState=Y}}function Yg(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function $g(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Yg(a[e],t)}var _i=A(null),_o=A(0);function Fg(e,t){e=xr,re(_o,e),re(_i,t),xr=e|t.baseLanes}function _f(){re(_o,xr),re(_i,_i.current)}function Cf(){xr=_o.current,$(_i),$(_o)}var da=A(null),Oa=null;function qr(e){var t=e.alternate;re(bt,bt.current&1),re(da,e),Oa===null&&(t===null||_i.current!==null||t.memoizedState!==null)&&(Oa=e)}function Ef(e){re(bt,bt.current),re(da,e),Oa===null&&(Oa=e)}function Qg(e){e.tag===22?(re(bt,bt.current),re(da,e),Oa===null&&(Oa=e)):Hr()}function Hr(){re(bt,bt.current),re(da,da.current)}function ma(e){$(da),Oa===e&&(Oa=null),$(bt)}var bt=A(0);function Co(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rd(a)||Md(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dr=0,Ce=null,et=null,Et=null,Eo=!1,Ci=!1,An=!1,wo=0,Vl=0,Ei=null,ZC=0;function ht(){throw Error(o(321))}function wf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ca(e[a],t[a]))return!1;return!0}function Df(e,t,a,i,u,c){return dr=c,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?O0:Gf,An=!1,c=a(i,u),An=!1,Ci&&(c=Kg(t,a,i,u)),Xg(e),c}function Xg(e){H.H=Ll;var t=et!==null&&et.next!==null;if(dr=0,Et=et=Ce=null,Eo=!1,Vl=0,Ei=null,t)throw Error(o(300));e===null||wt||(e=e.dependencies,e!==null&&go(e)&&(wt=!0))}function Kg(e,t,a,i){Ce=e;var u=0;do{if(Ci&&(Ei=null),Vl=0,Ci=!1,25<=u)throw Error(o(301));if(u+=1,Et=et=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}H.H=R0,c=t(a,i)}while(Ci);return c}function YC(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?Bl(t):t,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Af(){var e=wo!==0;return wo=0,e}function Tf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Of(e){if(Eo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Eo=!1}dr=0,Et=et=Ce=null,Ci=!1,Vl=wo=0,Ei=null}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Ce.memoizedState=Et=e:Et=Et.next=e,Et}function vt(){if(et===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=Et===null?Ce.memoizedState:Et.next;if(t!==null)Et=t,et=e;else{if(e===null)throw Ce.alternate===null?Error(o(467)):Error(o(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},Et===null?Ce.memoizedState=Et=e:Et=Et.next=e}return Et}function Do(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bl(e){var t=Vl;return Vl+=1,Ei===null&&(Ei=[]),e=Lg(Ei,e,t),t=Ce,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?O0:Gf),e}function Ao(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bl(e);if(e.$$typeof===I)return Ut(e)}throw Error(o(438,String(e)))}function Rf(e){var t=null,a=Ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Do(),Ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=_e;return t.index++,a}function mr(e,t){return typeof t=="function"?t(e):t}function To(e){var t=vt();return Mf(t,et,e)}function Mf(e,t,a){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=a;var u=e.baseQueue,c=i.pending;if(c!==null){if(u!==null){var m=u.next;u.next=c.next,c.next=m}t.baseQueue=u=c,i.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var g=m=null,_=null,M=t,L=!1;do{var Y=M.lane&-536870913;if(Y!==M.lane?(ze&Y)===Y:(dr&Y)===Y){var z=M.revertLane;if(z===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Y===bi&&(L=!0);else if((dr&z)===z){M=M.next,z===bi&&(L=!0);continue}else Y={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},_===null?(g=_=Y,m=c):_=_.next=Y,Ce.lanes|=z,Yr|=z;Y=M.action,An&&a(c,Y),c=M.hasEagerState?M.eagerState:a(c,Y)}else z={lane:Y,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},_===null?(g=_=z,m=c):_=_.next=z,Ce.lanes|=Y,Yr|=Y;M=M.next}while(M!==null&&M!==t);if(_===null?m=c:_.next=g,!ca(c,e.memoizedState)&&(wt=!0,L&&(a=xi,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=_,i.lastRenderedState=c}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function zf(e){var t=vt(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var i=a.dispatch,u=a.pending,c=t.memoizedState;if(u!==null){a.pending=null;var m=u=u.next;do c=e(c,m.action),m=m.next;while(m!==u);ca(c,t.memoizedState)||(wt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function Jg(e,t,a){var i=Ce,u=vt(),c=je;if(c){if(a===void 0)throw Error(o(407));a=a()}else a=t();var m=!ca((et||u).memoizedState,a);if(m&&(u.memoizedState=a,wt=!0),u=u.queue,Vf(Wg.bind(null,i,u,e),[e]),u.getSnapshot!==t||m||Et!==null&&Et.memoizedState.tag&1){if(i.flags|=2048,wi(9,{destroy:void 0},Pg.bind(null,i,u,a,t),null),rt===null)throw Error(o(349));c||(dr&127)!==0||Ig(i,t,a)}return a}function Ig(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ce.updateQueue,t===null?(t=Do(),Ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Pg(e,t,a,i){t.value=a,t.getSnapshot=i,e0(t)&&t0(e)}function Wg(e,t,a){return a(function(){e0(t)&&t0(e)})}function e0(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ca(e,a)}catch{return!0}}function t0(e){var t=vn(e,2);t!==null&&ia(t,e,2)}function kf(e){var t=Kt();if(typeof e=="function"){var a=e;if(e=a(),An){Sa(!0);try{a()}finally{Sa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:e},t}function a0(e,t,a,i){return e.baseState=a,Mf(e,et,typeof i=="function"?i:mr)}function $C(e,t,a,i,u){if(Mo(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};H.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,r0(t,c)):(c.next=a.next,t.pending=a.next=c)}}function r0(e,t){var a=t.action,i=t.payload,u=e.state;if(t.isTransition){var c=H.T,m={};H.T=m;try{var g=a(u,i),_=H.S;_!==null&&_(m,g),n0(e,t,g)}catch(M){jf(e,t,M)}finally{c!==null&&m.types!==null&&(c.types=m.types),H.T=c}}else try{c=a(u,i),n0(e,t,c)}catch(M){jf(e,t,M)}}function n0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){i0(e,t,i)},function(i){return jf(e,t,i)}):i0(e,t,a)}function i0(e,t,a){t.status="fulfilled",t.value=a,l0(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,r0(e,a)))}function jf(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,l0(t),t=t.next;while(t!==i)}e.action=null}function l0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function s0(e,t){return t}function o0(e,t){if(je){var a=rt.formState;if(a!==null){e:{var i=Ce;if(je){if(it){t:{for(var u=it,c=Ta;u.nodeType!==8;){if(!c){u=null;break t}if(u=Ra(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){it=Ra(u.nextSibling),i=u.data==="F!";break e}}jr(i)}i=!1}i&&(t=a[0])}}return a=Kt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s0,lastRenderedState:t},a.queue=i,a=D0.bind(null,Ce,i),i.dispatch=a,i=kf(!1),c=Hf.bind(null,Ce,!1,i.queue),i=Kt(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,a=$C.bind(null,Ce,u,c,a),u.dispatch=a,i.memoizedState=e,[t,a,!1]}function u0(e){var t=vt();return c0(t,et,e)}function c0(e,t,a){if(t=Mf(e,t,s0)[0],e=To(mr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Bl(t)}catch(m){throw m===Ni?vo:m}else i=t;t=vt();var u=t.queue,c=u.dispatch;return a!==t.memoizedState&&(Ce.flags|=2048,wi(9,{destroy:void 0},FC.bind(null,u,a),null)),[i,c,e]}function FC(e,t){e.action=t}function f0(e){var t=vt(),a=et;if(a!==null)return c0(t,a,e);vt(),t=t.memoizedState,a=vt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function wi(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Do(),Ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function d0(){return vt().memoizedState}function Oo(e,t,a,i){var u=Kt();Ce.flags|=e,u.memoizedState=wi(1|t,{destroy:void 0},a,i===void 0?null:i)}function Ro(e,t,a,i){var u=vt();i=i===void 0?null:i;var c=u.memoizedState.inst;et!==null&&i!==null&&wf(i,et.memoizedState.deps)?u.memoizedState=wi(t,c,a,i):(Ce.flags|=e,u.memoizedState=wi(1|t,c,a,i))}function m0(e,t){Oo(8390656,8,e,t)}function Vf(e,t){Ro(2048,8,e,t)}function QC(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Do(),Ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function h0(e){var t=vt().memoizedState;return QC({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function p0(e,t){return Ro(4,2,e,t)}function g0(e,t){return Ro(4,4,e,t)}function y0(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function b0(e,t,a){a=a!=null?a.concat([e]):null,Ro(4,4,y0.bind(null,t,e),a)}function Bf(){}function v0(e,t){var a=vt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&wf(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function x0(e,t){var a=vt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&wf(t,i[1]))return i[0];if(i=e(),An){Sa(!0);try{e()}finally{Sa(!1)}}return a.memoizedState=[i,t],i}function Uf(e,t,a){return a===void 0||(dr&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Ny(),Ce.lanes|=e,Yr|=e,a)}function N0(e,t,a,i){return ca(a,t)?a:_i.current!==null?(e=Uf(e,a,i),ca(e,t)||(wt=!0),e):(dr&42)===0||(dr&1073741824)!==0&&(ze&261930)===0?(wt=!0,e.memoizedState=a):(e=Ny(),Ce.lanes|=e,Yr|=e,t)}function S0(e,t,a,i,u){var c=J.p;J.p=c!==0&&8>c?c:8;var m=H.T,g={};H.T=g,Hf(e,!1,t,a);try{var _=u(),M=H.S;if(M!==null&&M(g,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var L=GC(_,i);Ul(e,t,L,ga(e))}else Ul(e,t,i,ga(e))}catch(Y){Ul(e,t,{then:function(){},status:"rejected",reason:Y},ga())}finally{J.p=c,m!==null&&g.types!==null&&(m.types=g.types),H.T=m}}function XC(){}function Lf(e,t,a,i){if(e.tag!==5)throw Error(o(476));var u=_0(e).queue;S0(e,u,t,De,a===null?XC:function(){return C0(e),a(i)})}function _0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:De,baseState:De,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:De},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function C0(e){var t=_0(e);t.next===null&&(t=e.alternate.memoizedState),Ul(e,t.next.queue,{},ga())}function qf(){return Ut(ts)}function E0(){return vt().memoizedState}function w0(){return vt().memoizedState}function KC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=ga();e=Ur(a);var i=Lr(t,e,a);i!==null&&(ia(i,t,a),zl(i,t,a)),t={cache:pf()},e.payload=t;return}t=t.return}}function JC(e,t,a){var i=ga();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mo(e)?A0(t,a):(a=rf(e,t,a,i),a!==null&&(ia(a,e,i),T0(a,t,i)))}function D0(e,t,a){var i=ga();Ul(e,t,a,i)}function Ul(e,t,a,i){var u={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Mo(e))A0(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,g=c(m,a);if(u.hasEagerState=!0,u.eagerState=g,ca(g,m))return fo(e,t,u,0),rt===null&&co(),!1}catch{}finally{}if(a=rf(e,t,u,i),a!==null)return ia(a,e,i),T0(a,t,i),!0}return!1}function Hf(e,t,a,i){if(i={lane:2,revertLane:vd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Mo(e)){if(t)throw Error(o(479))}else t=rf(e,a,i,2),t!==null&&ia(t,e,2)}function Mo(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function A0(e,t){Ci=Eo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function T0(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,kp(e,a)}}var Ll={readContext:Ut,use:Ao,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht,useHostTransitionStatus:ht,useFormState:ht,useActionState:ht,useOptimistic:ht,useMemoCache:ht,useCacheRefresh:ht};Ll.useEffectEvent=ht;var O0={readContext:Ut,use:Ao,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:m0,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Oo(4194308,4,y0.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Oo(4194308,4,e,t)},useInsertionEffect:function(e,t){Oo(4,2,e,t)},useMemo:function(e,t){var a=Kt();t=t===void 0?null:t;var i=e();if(An){Sa(!0);try{e()}finally{Sa(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Kt();if(a!==void 0){var u=a(t);if(An){Sa(!0);try{a(t)}finally{Sa(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=JC.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:function(e){e=kf(e);var t=e.queue,a=D0.bind(null,Ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Bf,useDeferredValue:function(e,t){var a=Kt();return Uf(a,e,t)},useTransition:function(){var e=kf(!1);return e=S0.bind(null,Ce,e.queue,!0,!1),Kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ce,u=Kt();if(je){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),rt===null)throw Error(o(349));(ze&127)!==0||Ig(i,t,a)}u.memoizedState=a;var c={value:a,getSnapshot:t};return u.queue=c,m0(Wg.bind(null,i,c,e),[e]),i.flags|=2048,wi(9,{destroy:void 0},Pg.bind(null,i,c,a,t),null),a},useId:function(){var e=Kt(),t=rt.identifierPrefix;if(je){var a=Qa,i=Fa;a=(i&~(1<<32-Xt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=wo++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=ZC++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qf,useFormState:o0,useActionState:o0,useOptimistic:function(e){var t=Kt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Hf.bind(null,Ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:Rf,useCacheRefresh:function(){return Kt().memoizedState=KC.bind(null,Ce)},useEffectEvent:function(e){var t=Kt(),a={impl:e};return t.memoizedState=a,function(){if(($e&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},Gf={readContext:Ut,use:Ao,useCallback:v0,useContext:Ut,useEffect:Vf,useImperativeHandle:b0,useInsertionEffect:p0,useLayoutEffect:g0,useMemo:x0,useReducer:To,useRef:d0,useState:function(){return To(mr)},useDebugValue:Bf,useDeferredValue:function(e,t){var a=vt();return N0(a,et.memoizedState,e,t)},useTransition:function(){var e=To(mr)[0],t=vt().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:Jg,useId:E0,useHostTransitionStatus:qf,useFormState:u0,useActionState:u0,useOptimistic:function(e,t){var a=vt();return a0(a,et,e,t)},useMemoCache:Rf,useCacheRefresh:w0};Gf.useEffectEvent=h0;var R0={readContext:Ut,use:Ao,useCallback:v0,useContext:Ut,useEffect:Vf,useImperativeHandle:b0,useInsertionEffect:p0,useLayoutEffect:g0,useMemo:x0,useReducer:zf,useRef:d0,useState:function(){return zf(mr)},useDebugValue:Bf,useDeferredValue:function(e,t){var a=vt();return et===null?Uf(a,e,t):N0(a,et.memoizedState,e,t)},useTransition:function(){var e=zf(mr)[0],t=vt().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:Jg,useId:E0,useHostTransitionStatus:qf,useFormState:f0,useActionState:f0,useOptimistic:function(e,t){var a=vt();return et!==null?a0(a,et,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Rf,useCacheRefresh:w0};R0.useEffectEvent=h0;function Zf(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:C({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Yf={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=ga(),u=Ur(i);u.payload=t,a!=null&&(u.callback=a),t=Lr(e,u,i),t!==null&&(ia(t,e,i),zl(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=ga(),u=Ur(i);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Lr(e,u,i),t!==null&&(ia(t,e,i),zl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ga(),i=Ur(a);i.tag=2,t!=null&&(i.callback=t),t=Lr(e,i,a),t!==null&&(ia(t,e,a),zl(t,e,a))}};function M0(e,t,a,i,u,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,m):t.prototype&&t.prototype.isPureReactComponent?!El(a,i)||!El(u,c):!0}function z0(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Yf.enqueueReplaceState(t,t.state,null)}function Tn(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=C({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function k0(e){uo(e)}function j0(e){console.error(e)}function V0(e){uo(e)}function zo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function B0(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function $f(e,t,a){return a=Ur(a),a.tag=3,a.payload={element:null},a.callback=function(){zo(e,t)},a}function U0(e){return e=Ur(e),e.tag=3,e}function L0(e,t,a,i){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=i.value;e.payload=function(){return u(c)},e.callback=function(){B0(t,a,i)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){B0(t,a,i),typeof u!="function"&&($r===null?$r=new Set([this]):$r.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function IC(e,t,a,i,u){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&yi(t,a,u,!0),a=da.current,a!==null){switch(a.tag){case 31:case 13:return Oa===null?$o():a.alternate===null&&pt===0&&(pt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,i===xo?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),gd(e,i,u)),!1;case 22:return a.flags|=65536,i===xo?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),gd(e,i,u)),!1}throw Error(o(435,a.tag))}return gd(e,i,u),$o(),!1}if(je)return t=da.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==cf&&(e=Error(o(422),{cause:i}),Al(wa(e,a)))):(i!==cf&&(t=Error(o(423),{cause:i}),Al(wa(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=wa(i,a),u=$f(e.stateNode,i,u),Nf(e,u),pt!==4&&(pt=2)),!1;var c=Error(o(520),{cause:i});if(c=wa(c,a),Ql===null?Ql=[c]:Ql.push(c),pt!==4&&(pt=2),t===null)return!0;i=wa(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=$f(a.stateNode,i,e),Nf(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&($r===null||!$r.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=U0(u),L0(u,e,a,i),Nf(a,u),!1}a=a.return}while(a!==null);return!1}var Ff=Error(o(461)),wt=!1;function Lt(e,t,a,i){t.child=e===null?Zg(t,null,a,i):Dn(t,e.child,a,i)}function q0(e,t,a,i,u){a=a.render;var c=t.ref;if("ref"in i){var m={};for(var g in i)g!=="ref"&&(m[g]=i[g])}else m=i;return _n(t),i=Df(e,t,a,m,c,u),g=Af(),e!==null&&!wt?(Tf(e,t,u),hr(e,t,u)):(je&&g&&of(t),t.flags|=1,Lt(e,t,i,u),t.child)}function H0(e,t,a,i,u){if(e===null){var c=a.type;return typeof c=="function"&&!nf(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,G0(e,t,c,i,u)):(e=ho(a.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!ed(e,u)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:El,a(m,i)&&e.ref===t.ref)return hr(e,t,u)}return t.flags|=1,e=or(c,i),e.ref=t.ref,e.return=t,t.child=e}function G0(e,t,a,i,u){if(e!==null){var c=e.memoizedProps;if(El(c,i)&&e.ref===t.ref)if(wt=!1,t.pendingProps=i=c,ed(e,u))(e.flags&131072)!==0&&(wt=!0);else return t.lanes=e.lanes,hr(e,t,u)}return Qf(e,t,a,i,u)}function Z0(e,t,a,i){var u=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~c}else i=0,t.child=null;return Y0(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bo(t,c!==null?c.cachePool:null),c!==null?Fg(t,c):_f(),Qg(t);else return i=t.lanes=536870912,Y0(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(bo(t,c.cachePool),Fg(t,c),Hr(),t.memoizedState=null):(e!==null&&bo(t,null),_f(),Hr());return Lt(e,t,u,a),t.child}function ql(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Y0(e,t,a,i,u){var c=yf();return c=c===null?null:{parent:Ct._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&bo(t,null),_f(),Qg(t),e!==null&&yi(e,t,i,!0),t.childLanes=u,null}function ko(e,t){return t=Vo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function $0(e,t,a){return Dn(t,e.child,null,a),e=ko(t,t.pendingProps),e.flags|=2,ma(t),t.memoizedState=null,e}function PC(e,t,a){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(i.mode==="hidden")return e=ko(t,i),t.lanes=536870912,ql(null,e);if(Ef(t),(e=it)?(e=rb(e,Ta),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zr!==null?{id:Fa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},a=Ag(e),a.return=t,t.child=a,Bt=t,it=null)):e=null,e===null)throw jr(t);return t.lanes=536870912,null}return ko(t,i)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(Ef(t),u)if(t.flags&256)t.flags&=-257,t=$0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(wt||yi(e,t,a,!1),u=(a&e.childLanes)!==0,wt||u){if(i=rt,i!==null&&(m=jp(i,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,vn(e,m),ia(i,e,m),Ff;$o(),t=$0(e,t,a)}else e=c.treeContext,it=Ra(m.nextSibling),Bt=t,je=!0,kr=null,Ta=!1,e!==null&&Rg(t,e),t=ko(t,i),t.flags|=4096;return t}return e=or(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function jo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Qf(e,t,a,i,u){return _n(t),a=Df(e,t,a,i,void 0,u),i=Af(),e!==null&&!wt?(Tf(e,t,u),hr(e,t,u)):(je&&i&&of(t),t.flags|=1,Lt(e,t,a,u),t.child)}function F0(e,t,a,i,u,c){return _n(t),t.updateQueue=null,a=Kg(t,i,a,u),Xg(e),i=Af(),e!==null&&!wt?(Tf(e,t,c),hr(e,t,c)):(je&&i&&of(t),t.flags|=1,Lt(e,t,a,c),t.child)}function Q0(e,t,a,i,u){if(_n(t),t.stateNode===null){var c=mi,m=a.contextType;typeof m=="object"&&m!==null&&(c=Ut(m)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Yf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},vf(t),m=a.contextType,c.context=typeof m=="object"&&m!==null?Ut(m):mi,c.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Zf(t,a,m,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Yf.enqueueReplaceState(c,c.state,null),jl(t,i,c,u),kl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var g=t.memoizedProps,_=Tn(a,g);c.props=_;var M=c.context,L=a.contextType;m=mi,typeof L=="object"&&L!==null&&(m=Ut(L));var Y=a.getDerivedStateFromProps;L=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||M!==m)&&z0(t,c,i,m),Br=!1;var z=t.memoizedState;c.state=z,jl(t,i,c,u),kl(),M=t.memoizedState,g||z!==M||Br?(typeof Y=="function"&&(Zf(t,a,Y,i),M=t.memoizedState),(_=Br||M0(t,a,_,i,z,M,m))?(L||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=M),c.props=i,c.state=M,c.context=m,i=_):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,xf(e,t),m=t.memoizedProps,L=Tn(a,m),c.props=L,Y=t.pendingProps,z=c.context,M=a.contextType,_=mi,typeof M=="object"&&M!==null&&(_=Ut(M)),g=a.getDerivedStateFromProps,(M=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==Y||z!==_)&&z0(t,c,i,_),Br=!1,z=t.memoizedState,c.state=z,jl(t,i,c,u),kl();var V=t.memoizedState;m!==Y||z!==V||Br||e!==null&&e.dependencies!==null&&go(e.dependencies)?(typeof g=="function"&&(Zf(t,a,g,i),V=t.memoizedState),(L=Br||M0(t,a,L,i,z,V,_)||e!==null&&e.dependencies!==null&&go(e.dependencies))?(M||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,V,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,V,_)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),c.props=i,c.state=V,c.context=_,i=L):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,jo(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Dn(t,e.child,null,u),t.child=Dn(t,null,a,u)):Lt(e,t,a,u),t.memoizedState=c.state,e=t.child):e=hr(e,t,u),e}function X0(e,t,a,i){return Nn(),t.flags|=256,Lt(e,t,a,i),t.child}var Xf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kf(e){return{baseLanes:e,cachePool:Bg()}}function Jf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=pa),e}function K0(e,t,a){var i=t.pendingProps,u=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),m&&(u=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(u?qr(t):Hr(),(e=it)?(e=rb(e,Ta),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zr!==null?{id:Fa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},a=Ag(e),a.return=t,t.child=a,Bt=t,it=null)):e=null,e===null)throw jr(t);return Md(e)?t.lanes=32:t.lanes=536870912,null}var g=i.children;return i=i.fallback,u?(Hr(),u=t.mode,g=Vo({mode:"hidden",children:g},u),i=xn(i,u,a,null),g.return=t,i.return=t,g.sibling=i,t.child=g,i=t.child,i.memoizedState=Kf(a),i.childLanes=Jf(e,m,a),t.memoizedState=Xf,ql(null,i)):(qr(t),If(t,g))}var _=e.memoizedState;if(_!==null&&(g=_.dehydrated,g!==null)){if(c)t.flags&256?(qr(t),t.flags&=-257,t=Pf(e,t,a)):t.memoizedState!==null?(Hr(),t.child=e.child,t.flags|=128,t=null):(Hr(),g=i.fallback,u=t.mode,i=Vo({mode:"visible",children:i.children},u),g=xn(g,u,a,null),g.flags|=2,i.return=t,g.return=t,i.sibling=g,t.child=i,Dn(t,e.child,null,a),i=t.child,i.memoizedState=Kf(a),i.childLanes=Jf(e,m,a),t.memoizedState=Xf,t=ql(null,i));else if(qr(t),Md(g)){if(m=g.nextSibling&&g.nextSibling.dataset,m)var M=m.dgst;m=M,i=Error(o(419)),i.stack="",i.digest=m,Al({value:i,source:null,stack:null}),t=Pf(e,t,a)}else if(wt||yi(e,t,a,!1),m=(a&e.childLanes)!==0,wt||m){if(m=rt,m!==null&&(i=jp(m,a),i!==0&&i!==_.retryLane))throw _.retryLane=i,vn(e,i),ia(m,e,i),Ff;Rd(g)||$o(),t=Pf(e,t,a)}else Rd(g)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,it=Ra(g.nextSibling),Bt=t,je=!0,kr=null,Ta=!1,e!==null&&Rg(t,e),t=If(t,i.children),t.flags|=4096);return t}return u?(Hr(),g=i.fallback,u=t.mode,_=e.child,M=_.sibling,i=or(_,{mode:"hidden",children:i.children}),i.subtreeFlags=_.subtreeFlags&65011712,M!==null?g=or(M,g):(g=xn(g,u,a,null),g.flags|=2),g.return=t,i.return=t,i.sibling=g,t.child=i,ql(null,i),i=t.child,g=e.child.memoizedState,g===null?g=Kf(a):(u=g.cachePool,u!==null?(_=Ct._currentValue,u=u.parent!==_?{parent:_,pool:_}:u):u=Bg(),g={baseLanes:g.baseLanes|a,cachePool:u}),i.memoizedState=g,i.childLanes=Jf(e,m,a),t.memoizedState=Xf,ql(e.child,i)):(qr(t),a=e.child,e=a.sibling,a=or(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function If(e,t){return t=Vo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vo(e,t){return e=fa(22,e,null,t),e.lanes=0,e}function Pf(e,t,a){return Dn(t,e.child,null,a),e=If(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function J0(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),mf(e.return,t,a)}function Wf(e,t,a,i,u,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:u,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=a,m.tailMode=u,m.treeForkCount=c)}function I0(e,t,a){var i=t.pendingProps,u=i.revealOrder,c=i.tail;i=i.children;var m=bt.current,g=(m&2)!==0;if(g?(m=m&1|2,t.flags|=128):m&=1,re(bt,m),Lt(e,t,i,a),i=je?Dl:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&J0(e,a,t);else if(e.tag===19)J0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&Co(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Wf(t,!1,u,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Co(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Wf(t,!0,a,null,c,i);break;case"together":Wf(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function hr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Yr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(yi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=or(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=or(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ed(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&go(e)))}function WC(e,t,a){switch(t.tag){case 3:Tt(t,t.stateNode.containerInfo),Vr(t,Ct,e.memoizedState.cache),Nn();break;case 27:case 5:rr(t);break;case 4:Tt(t,t.stateNode.containerInfo);break;case 10:Vr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ef(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(qr(t),t.flags|=128,null):(a&t.child.childLanes)!==0?K0(e,t,a):(qr(t),e=hr(e,t,a),e!==null?e.sibling:null);qr(t);break;case 19:var u=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(yi(e,t,a,!1),i=(a&t.childLanes)!==0),u){if(i)return I0(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),re(bt,bt.current),i)break;return null;case 22:return t.lanes=0,Z0(e,t,a,t.pendingProps);case 24:Vr(t,Ct,e.memoizedState.cache)}return hr(e,t,a)}function P0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)wt=!0;else{if(!ed(e,a)&&(t.flags&128)===0)return wt=!1,WC(e,t,a);wt=(e.flags&131072)!==0}else wt=!1,je&&(t.flags&1048576)!==0&&Og(t,Dl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=En(t.elementType),t.type=e,typeof e=="function")nf(e)?(i=Tn(e,i),t.tag=1,t=Q0(null,t,e,i,a)):(t.tag=0,t=Qf(null,t,e,i,a));else{if(e!=null){var u=e.$$typeof;if(u===B){t.tag=11,t=q0(null,t,e,i,a);break e}else if(u===de){t.tag=14,t=H0(null,t,e,i,a);break e}}throw t=se(e)||e,Error(o(306,t,""))}}return t;case 0:return Qf(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,u=Tn(i,t.pendingProps),Q0(e,t,i,u,a);case 3:e:{if(Tt(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var c=t.memoizedState;u=c.element,xf(e,t),jl(t,i,null,a);var m=t.memoizedState;if(i=m.cache,Vr(t,Ct,i),i!==c.cache&&hf(t,[Ct],a,!0),kl(),i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=X0(e,t,i,a);break e}else if(i!==u){u=wa(Error(o(424)),t),Al(u),t=X0(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(it=Ra(e.firstChild),Bt=t,je=!0,kr=null,Ta=!0,a=Zg(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Nn(),i===u){t=hr(e,t,a);break e}Lt(e,t,i,a)}t=t.child}return t;case 26:return jo(e,t),e===null?(a=ub(t.type,null,t.pendingProps,null))?t.memoizedState=a:je||(a=t.type,e=t.pendingProps,i=Po(Ae.current).createElement(a),i[Vt]=t,i[Wt]=e,qt(i,a,e),Rt(i),t.stateNode=i):t.memoizedState=ub(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rr(t),e===null&&je&&(i=t.stateNode=lb(t.type,t.pendingProps,Ae.current),Bt=t,Ta=!0,u=it,Kr(t.type)?(zd=u,it=Ra(i.firstChild)):it=u),Lt(e,t,t.pendingProps.children,a),jo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((u=i=it)&&(i=T5(i,t.type,t.pendingProps,Ta),i!==null?(t.stateNode=i,Bt=t,it=Ra(i.firstChild),Ta=!1,u=!0):u=!1),u||jr(t)),rr(t),u=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,i=c.children,Ad(u,c)?i=null:m!==null&&Ad(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=Df(e,t,YC,null,null,a),ts._currentValue=u),jo(e,t),Lt(e,t,i,a),t.child;case 6:return e===null&&je&&((e=a=it)&&(a=O5(a,t.pendingProps,Ta),a!==null?(t.stateNode=a,Bt=t,it=null,e=!0):e=!1),e||jr(t)),null;case 13:return K0(e,t,a);case 4:return Tt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Dn(t,null,i,a):Lt(e,t,i,a),t.child;case 11:return q0(e,t,t.type,t.pendingProps,a);case 7:return Lt(e,t,t.pendingProps,a),t.child;case 8:return Lt(e,t,t.pendingProps.children,a),t.child;case 12:return Lt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Vr(t,t.type,i.value),Lt(e,t,i.children,a),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,_n(t),u=Ut(u),i=i(u),t.flags|=1,Lt(e,t,i,a),t.child;case 14:return H0(e,t,t.type,t.pendingProps,a);case 15:return G0(e,t,t.type,t.pendingProps,a);case 19:return I0(e,t,a);case 31:return PC(e,t,a);case 22:return Z0(e,t,a,t.pendingProps);case 24:return _n(t),i=Ut(Ct),e===null?(u=yf(),u===null&&(u=rt,c=pf(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),t.memoizedState={parent:i,cache:u},vf(t),Vr(t,Ct,u)):((e.lanes&a)!==0&&(xf(e,t),jl(t,null,null,a),kl()),u=e.memoizedState,c=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Vr(t,Ct,i)):(i=c.cache,Vr(t,Ct,i),i!==u.cache&&hf(t,[Ct],a,!0))),Lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function pr(e){e.flags|=4}function td(e,t,a,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Ey())e.flags|=8192;else throw wn=xo,bf}else e.flags&=-16777217}function W0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hb(t))if(Ey())e.flags|=8192;else throw wn=xo,bf}function Bo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mp():536870912,e.lanes|=t,Oi|=t)}function Hl(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function e5(e,t,a){var i=t.pendingProps;switch(uf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fr(Ct),ut(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(gi(t)?pr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ff())),lt(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(pr(t),c!==null?(lt(t),W0(t,c)):(lt(t),td(t,u,null,i,a))):c?c!==e.memoizedState?(pr(t),lt(t),W0(t,c)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&pr(t),lt(t),td(t,u,e,i,a)),null;case 27:if(Or(t),a=Ae.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pr(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return lt(t),null}e=ce.current,gi(t)?Mg(t):(e=lb(u,i,a),t.stateNode=e,pr(t))}return lt(t),null;case 5:if(Or(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&pr(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return lt(t),null}if(c=ce.current,gi(t))Mg(t);else{var m=Po(Ae.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?m.createElement(u,{is:i.is}):m.createElement(u)}}c[Vt]=t,c[Wt]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(qt(c,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&pr(t)}}return lt(t),td(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&pr(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=Ae.current,gi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,u=Bt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[Vt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Ky(e.nodeValue,a)),e||jr(t,!0)}else e=Po(e).createTextNode(i),e[Vt]=t,t.stateNode=e}return lt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=gi(t),a!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Vt]=t}else Nn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else a=ff(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(ma(t),t):(ma(t),null);if((t.flags&128)!==0)throw Error(o(558))}return lt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=gi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Vt]=t}else Nn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else u=ff(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(ma(t),t):(ma(t),null)}return ma(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Bo(t,t.updateQueue),lt(t),null);case 4:return ut(),e===null&&_d(t.stateNode.containerInfo),lt(t),null;case 10:return fr(t.type),lt(t),null;case 19:if($(bt),i=t.memoizedState,i===null)return lt(t),null;if(u=(t.flags&128)!==0,c=i.rendering,c===null)if(u)Hl(i,!1);else{if(pt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Co(e),c!==null){for(t.flags|=128,Hl(i,!1),e=c.updateQueue,t.updateQueue=e,Bo(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Dg(a,e),a=a.sibling;return re(bt,bt.current&1|2),je&&ur(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&W()>Go&&(t.flags|=128,u=!0,Hl(i,!1),t.lanes=4194304)}else{if(!u)if(e=Co(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Bo(t,e),Hl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!je)return lt(t),null}else 2*W()-i.renderingStartTime>Go&&a!==536870912&&(t.flags|=128,u=!0,Hl(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=W(),e.sibling=null,a=bt.current,re(bt,u?a&1|2:a&1),je&&ur(t,i.treeForkCount),e):(lt(t),null);case 22:case 23:return ma(t),Cf(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),a=t.updateQueue,a!==null&&Bo(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&$(Cn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fr(Ct),lt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function t5(e,t){switch(uf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(Ct),ut(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Or(t),null;case 31:if(t.memoizedState!==null){if(ma(t),t.alternate===null)throw Error(o(340));Nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ma(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $(bt),null;case 4:return ut(),null;case 10:return fr(t.type),null;case 22:case 23:return ma(t),Cf(),e!==null&&$(Cn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fr(Ct),null;case 25:return null;default:return null}}function ey(e,t){switch(uf(t),t.tag){case 3:fr(Ct),ut();break;case 26:case 27:case 5:Or(t);break;case 4:ut();break;case 31:t.memoizedState!==null&&ma(t);break;case 13:ma(t);break;case 19:$(bt);break;case 10:fr(t.type);break;case 22:case 23:ma(t),Cf(),e!==null&&$(Cn);break;case 24:fr(Ct)}}function Gl(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){i=void 0;var c=a.create,m=a.inst;i=c(),m.destroy=i}a=a.next}while(a!==u)}}catch(g){Ie(t,t.return,g)}}function Gr(e,t,a){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var c=u.next;i=c;do{if((i.tag&e)===e){var m=i.inst,g=m.destroy;if(g!==void 0){m.destroy=void 0,u=t;var _=a,M=g;try{M()}catch(L){Ie(u,_,L)}}}i=i.next}while(i!==c)}}catch(L){Ie(t,t.return,L)}}function ty(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{$g(t,a)}catch(i){Ie(e,e.return,i)}}}function ay(e,t,a){a.props=Tn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ie(e,t,i)}}function Zl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(u){Ie(e,t,u)}}function Xa(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(u){Ie(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Ie(e,t,u)}else a.current=null}function ry(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(u){Ie(e,e.return,u)}}function ad(e,t,a){try{var i=e.stateNode;_5(i,e.type,a,t),i[Wt]=t}catch(u){Ie(e,e.return,u)}}function ny(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kr(e.type)||e.tag===4}function rd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ny(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Kr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nd(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=lr));else if(i!==4&&(i===27&&Kr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(nd(e,t,a),e=e.sibling;e!==null;)nd(e,t,a),e=e.sibling}function Uo(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Kr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Uo(e,t,a),e=e.sibling;e!==null;)Uo(e,t,a),e=e.sibling}function iy(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);qt(t,i,a),t[Vt]=e,t[Wt]=a}catch(c){Ie(e,e.return,c)}}var gr=!1,Dt=!1,id=!1,ly=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function a5(e,t){if(e=e.containerInfo,wd=iu,e=bg(e),Ic(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,g=-1,_=-1,M=0,L=0,Y=e,z=null;t:for(;;){for(var V;Y!==a||u!==0&&Y.nodeType!==3||(g=m+u),Y!==c||i!==0&&Y.nodeType!==3||(_=m+i),Y.nodeType===3&&(m+=Y.nodeValue.length),(V=Y.firstChild)!==null;)z=Y,Y=V;for(;;){if(Y===e)break t;if(z===a&&++M===u&&(g=m),z===c&&++L===i&&(_=m),(V=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=V}a=g===-1||_===-1?null:{start:g,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(Dd={focusedElem:e,selectionRange:a},iu=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){switch(t=Mt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,u=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var ue=Tn(a.type,u);e=i.getSnapshotBeforeUpdate(ue,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(be){Ie(a,a.return,be)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Od(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Mt=e;break}Mt=t.return}}function sy(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:br(e,a),i&4&&Gl(5,a);break;case 1:if(br(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(m){Ie(a,a.return,m)}else{var u=Tn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ie(a,a.return,m)}}i&64&&ty(a),i&512&&Zl(a,a.return);break;case 3:if(br(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{$g(e,t)}catch(m){Ie(a,a.return,m)}}break;case 27:t===null&&i&4&&iy(a);case 26:case 5:br(e,a),t===null&&i&4&&ry(a),i&512&&Zl(a,a.return);break;case 12:br(e,a);break;case 31:br(e,a),i&4&&cy(e,a);break;case 13:br(e,a),i&4&&fy(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=f5.bind(null,a),R5(e,a))));break;case 22:if(i=a.memoizedState!==null||gr,!i){t=t!==null&&t.memoizedState!==null||Dt,u=gr;var c=Dt;gr=i,(Dt=t)&&!c?vr(e,a,(a.subtreeFlags&8772)!==0):br(e,a),gr=u,Dt=c}break;case 30:break;default:br(e,a)}}function oy(e){var t=e.alternate;t!==null&&(e.alternate=null,oy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&kc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,ta=!1;function yr(e,t,a){for(a=a.child;a!==null;)uy(e,t,a),a=a.sibling}function uy(e,t,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(mn,a)}catch{}switch(a.tag){case 26:Dt||Xa(a,t),yr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Dt||Xa(a,t);var i=ct,u=ta;Kr(a.type)&&(ct=a.stateNode,ta=!1),yr(e,t,a),Pl(a.stateNode),ct=i,ta=u;break;case 5:Dt||Xa(a,t);case 6:if(i=ct,u=ta,ct=null,yr(e,t,a),ct=i,ta=u,ct!==null)if(ta)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(a.stateNode)}catch(c){Ie(a,t,c)}else try{ct.removeChild(a.stateNode)}catch(c){Ie(a,t,c)}break;case 18:ct!==null&&(ta?(e=ct,tb(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ui(e)):tb(ct,a.stateNode));break;case 4:i=ct,u=ta,ct=a.stateNode.containerInfo,ta=!0,yr(e,t,a),ct=i,ta=u;break;case 0:case 11:case 14:case 15:Gr(2,a,t),Dt||Gr(4,a,t),yr(e,t,a);break;case 1:Dt||(Xa(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&ay(a,t,i)),yr(e,t,a);break;case 21:yr(e,t,a);break;case 22:Dt=(i=Dt)||a.memoizedState!==null,yr(e,t,a),Dt=i;break;default:yr(e,t,a)}}function cy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ui(e)}catch(a){Ie(t,t.return,a)}}}function fy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ui(e)}catch(a){Ie(t,t.return,a)}}function r5(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ly),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ly),t;default:throw Error(o(435,e.tag))}}function Lo(e,t){var a=r5(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var u=d5.bind(null,e,i);i.then(u,u)}})}function aa(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var u=a[i],c=e,m=t,g=m;e:for(;g!==null;){switch(g.tag){case 27:if(Kr(g.type)){ct=g.stateNode,ta=!1;break e}break;case 5:ct=g.stateNode,ta=!1;break e;case 3:case 4:ct=g.stateNode.containerInfo,ta=!0;break e}g=g.return}if(ct===null)throw Error(o(160));uy(c,m,u),ct=null,ta=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dy(t,e),t=t.sibling}var Ua=null;function dy(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:aa(t,e),ra(e),i&4&&(Gr(3,e,e.return),Gl(3,e),Gr(5,e,e.return));break;case 1:aa(t,e),ra(e),i&512&&(Dt||a===null||Xa(a,a.return)),i&64&&gr&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var u=Ua;if(aa(t,e),ra(e),i&512&&(Dt||a===null||Xa(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":c=u.getElementsByTagName("title")[0],(!c||c[gl]||c[Vt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(i),u.head.insertBefore(c,u.querySelector("head > title"))),qt(c,i,a),c[Vt]=e,Rt(c),i=c;break e;case"link":var m=db("link","href",u).get(i+(a.href||""));if(m){for(var g=0;g<m.length;g++)if(c=m[g],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(g,1);break t}}c=u.createElement(i),qt(c,i,a),u.head.appendChild(c);break;case"meta":if(m=db("meta","content",u).get(i+(a.content||""))){for(g=0;g<m.length;g++)if(c=m[g],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(g,1);break t}}c=u.createElement(i),qt(c,i,a),u.head.appendChild(c);break;default:throw Error(o(468,i))}c[Vt]=e,Rt(c),i=c}e.stateNode=i}else mb(u,e.type,e.stateNode);else e.stateNode=fb(u,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?mb(u,e.type,e.stateNode):fb(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&ad(e,e.memoizedProps,a.memoizedProps)}break;case 27:aa(t,e),ra(e),i&512&&(Dt||a===null||Xa(a,a.return)),a!==null&&i&4&&ad(e,e.memoizedProps,a.memoizedProps);break;case 5:if(aa(t,e),ra(e),i&512&&(Dt||a===null||Xa(a,a.return)),e.flags&32){u=e.stateNode;try{li(u,"")}catch(ue){Ie(e,e.return,ue)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,ad(e,u,a!==null?a.memoizedProps:u)),i&1024&&(id=!0);break;case 6:if(aa(t,e),ra(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(ue){Ie(e,e.return,ue)}}break;case 3:if(tu=null,u=Ua,Ua=Wo(t.containerInfo),aa(t,e),Ua=u,ra(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Ui(t.containerInfo)}catch(ue){Ie(e,e.return,ue)}id&&(id=!1,my(e));break;case 4:i=Ua,Ua=Wo(e.stateNode.containerInfo),aa(t,e),ra(e),Ua=i;break;case 12:aa(t,e),ra(e);break;case 31:aa(t,e),ra(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Lo(e,i)));break;case 13:aa(t,e),ra(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ho=W()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Lo(e,i)));break;case 22:u=e.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,M=gr,L=Dt;if(gr=M||u,Dt=L||_,aa(t,e),Dt=L,gr=M,ra(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||_||gr||Dt||On(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){_=a=t;try{if(c=_.stateNode,u)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{g=_.stateNode;var Y=_.memoizedProps.style,z=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;g.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(ue){Ie(_,_.return,ue)}}}else if(t.tag===6){if(a===null){_=t;try{_.stateNode.nodeValue=u?"":_.memoizedProps}catch(ue){Ie(_,_.return,ue)}}}else if(t.tag===18){if(a===null){_=t;try{var V=_.stateNode;u?ab(V,!0):ab(_.stateNode,!1)}catch(ue){Ie(_,_.return,ue)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,Lo(e,a))));break;case 19:aa(t,e),ra(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Lo(e,i)));break;case 30:break;case 21:break;default:aa(t,e),ra(e)}}function ra(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(ny(i)){a=i;break}i=i.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var u=a.stateNode,c=rd(e);Uo(e,c,u);break;case 5:var m=a.stateNode;a.flags&32&&(li(m,""),a.flags&=-33);var g=rd(e);Uo(e,g,m);break;case 3:case 4:var _=a.stateNode.containerInfo,M=rd(e);nd(e,M,_);break;default:throw Error(o(161))}}catch(L){Ie(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function my(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;my(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function br(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sy(e,t.alternate,t),t=t.sibling}function On(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gr(4,t,t.return),On(t);break;case 1:Xa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ay(t,t.return,a),On(t);break;case 27:Pl(t.stateNode);case 26:case 5:Xa(t,t.return),On(t);break;case 22:t.memoizedState===null&&On(t);break;case 30:On(t);break;default:On(t)}e=e.sibling}}function vr(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:vr(u,c,a),Gl(4,c);break;case 1:if(vr(u,c,a),i=c,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(M){Ie(i,i.return,M)}if(i=c,u=i.updateQueue,u!==null){var g=i.stateNode;try{var _=u.shared.hiddenCallbacks;if(_!==null)for(u.shared.hiddenCallbacks=null,u=0;u<_.length;u++)Yg(_[u],g)}catch(M){Ie(i,i.return,M)}}a&&m&64&&ty(c),Zl(c,c.return);break;case 27:iy(c);case 26:case 5:vr(u,c,a),a&&i===null&&m&4&&ry(c),Zl(c,c.return);break;case 12:vr(u,c,a);break;case 31:vr(u,c,a),a&&m&4&&cy(u,c);break;case 13:vr(u,c,a),a&&m&4&&fy(u,c);break;case 22:c.memoizedState===null&&vr(u,c,a),Zl(c,c.return);break;case 30:break;default:vr(u,c,a)}t=t.sibling}}function ld(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Tl(a))}function sd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tl(e))}function La(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hy(e,t,a,i),t=t.sibling}function hy(e,t,a,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:La(e,t,a,i),u&2048&&Gl(9,t);break;case 1:La(e,t,a,i);break;case 3:La(e,t,a,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tl(e)));break;case 12:if(u&2048){La(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,g=c.onPostCommit;typeof g=="function"&&g(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){Ie(t,t.return,_)}}else La(e,t,a,i);break;case 31:La(e,t,a,i);break;case 13:La(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?La(e,t,a,i):Yl(e,t):c._visibility&2?La(e,t,a,i):(c._visibility|=2,Di(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&ld(m,t);break;case 24:La(e,t,a,i),u&2048&&sd(t.alternate,t);break;default:La(e,t,a,i)}}function Di(e,t,a,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,g=a,_=i,M=m.flags;switch(m.tag){case 0:case 11:case 15:Di(c,m,g,_,u),Gl(8,m);break;case 23:break;case 22:var L=m.stateNode;m.memoizedState!==null?L._visibility&2?Di(c,m,g,_,u):Yl(c,m):(L._visibility|=2,Di(c,m,g,_,u)),u&&M&2048&&ld(m.alternate,m);break;case 24:Di(c,m,g,_,u),u&&M&2048&&sd(m.alternate,m);break;default:Di(c,m,g,_,u)}t=t.sibling}}function Yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,u=i.flags;switch(i.tag){case 22:Yl(a,i),u&2048&&ld(i.alternate,i);break;case 24:Yl(a,i),u&2048&&sd(i.alternate,i);break;default:Yl(a,i)}t=t.sibling}}var $l=8192;function Ai(e,t,a){if(e.subtreeFlags&$l)for(e=e.child;e!==null;)py(e,t,a),e=e.sibling}function py(e,t,a){switch(e.tag){case 26:Ai(e,t,a),e.flags&$l&&e.memoizedState!==null&&Z5(a,Ua,e.memoizedState,e.memoizedProps);break;case 5:Ai(e,t,a);break;case 3:case 4:var i=Ua;Ua=Wo(e.stateNode.containerInfo),Ai(e,t,a),Ua=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=$l,$l=16777216,Ai(e,t,a),$l=i):Ai(e,t,a));break;default:Ai(e,t,a)}}function gy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Fl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Mt=i,by(i,e)}gy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yy(e),e=e.sibling}function yy(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Gr(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qo(e)):Fl(e);break;default:Fl(e)}}function qo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Mt=i,by(i,e)}gy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gr(8,t,t.return),qo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,qo(t));break;default:qo(t)}e=e.sibling}}function by(e,t){for(;Mt!==null;){var a=Mt;switch(a.tag){case 0:case 11:case 15:Gr(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Tl(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Mt=i;else e:for(a=e;Mt!==null;){i=Mt;var u=i.sibling,c=i.return;if(oy(i),i===a){Mt=null;break e}if(u!==null){u.return=c,Mt=u;break e}Mt=c}}}var n5={getCacheForType:function(e){var t=Ut(Ct),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ut(Ct).controller.signal}},i5=typeof WeakMap=="function"?WeakMap:Map,$e=0,rt=null,Re=null,ze=0,Je=0,ha=null,Zr=!1,Ti=!1,od=!1,xr=0,pt=0,Yr=0,Rn=0,ud=0,pa=0,Oi=0,Ql=null,na=null,cd=!1,Ho=0,vy=0,Go=1/0,Zo=null,$r=null,Ot=0,Fr=null,Ri=null,Nr=0,fd=0,dd=null,xy=null,Xl=0,md=null;function ga(){return($e&2)!==0&&ze!==0?ze&-ze:H.T!==null?vd():Vp()}function Ny(){if(pa===0)if((ze&536870912)===0||je){var e=Js;Js<<=1,(Js&3932160)===0&&(Js=262144),pa=e}else pa=536870912;return e=da.current,e!==null&&(e.flags|=32),pa}function ia(e,t,a){(e===rt&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(Mi(e,0),Qr(e,ze,pa,!1)),pl(e,a),(($e&2)===0||e!==rt)&&(e===rt&&(($e&2)===0&&(Rn|=a),pt===4&&Qr(e,ze,pa,!1)),Ka(e))}function Sy(e,t,a){if(($e&6)!==0)throw Error(o(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||hl(e,t),u=i?o5(e,t):pd(e,t,!0),c=i;do{if(u===0){Ti&&!i&&Qr(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!l5(a)){u=pd(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var g=e;u=Ql;var _=g.current.memoizedState.isDehydrated;if(_&&(Mi(g,m).flags|=256),m=pd(g,m,!1),m!==2){if(od&&!_){g.errorRecoveryDisabledLanes|=c,Rn|=c,u=4;break e}c=na,na=u,c!==null&&(na===null?na=c:na.push.apply(na,c))}u=m}if(c=!1,u!==2)continue}}if(u===1){Mi(e,0),Qr(e,t,0,!0);break}e:{switch(i=e,c=u,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Qr(i,t,pa,!Zr);break e;case 2:na=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=Ho+300-W(),10<u)){if(Qr(i,t,pa,!Zr),Ps(i,0,!0)!==0)break e;Nr=t,i.timeoutHandle=Wy(_y.bind(null,i,a,na,Zo,cd,t,pa,Rn,Oi,Zr,c,"Throttled",-0,0),u);break e}_y(i,a,na,Zo,cd,t,pa,Rn,Oi,Zr,c,null,-0,0)}}break}while(!0);Ka(e)}function _y(e,t,a,i,u,c,m,g,_,M,L,Y,z,V){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:lr},py(t,c,Y);var ue=(c&62914560)===c?Ho-W():(c&4194048)===c?vy-W():0;if(ue=Y5(Y,ue),ue!==null){Nr=c,e.cancelPendingCommit=ue(Ry.bind(null,e,t,c,a,i,u,m,g,_,L,Y,null,z,V)),Qr(e,c,m,!M);return}}Ry(e,t,c,a,i,u,m,g,_)}function l5(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var u=a[i],c=u.getSnapshot;u=u.value;try{if(!ca(c(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qr(e,t,a,i){t&=~ud,t&=~Rn,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var c=31-Xt(u),m=1<<c;i[c]=-1,u&=~m}a!==0&&zp(e,a,t)}function Yo(){return($e&6)===0?(Kl(0),!1):!0}function hd(){if(Re!==null){if(Je===0)var e=Re.return;else e=Re,cr=Sn=null,Of(e),Si=null,Rl=0,e=Re;for(;e!==null;)ey(e.alternate,e),e=e.return;Re=null}}function Mi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,w5(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Nr=0,hd(),rt=e,Re=a=or(e.current,null),ze=t,Je=0,ha=null,Zr=!1,Ti=hl(e,t),od=!1,Oi=pa=ud=Rn=Yr=pt=0,na=Ql=null,cd=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-Xt(i),c=1<<u;t|=e[u],i&=~c}return xr=t,co(),a}function Cy(e,t){Ce=null,H.H=Ll,t===Ni||t===vo?(t=qg(),Je=3):t===bf?(t=qg(),Je=4):Je=t===Ff?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ha=t,Re===null&&(pt=1,zo(e,wa(t,e.current)))}function Ey(){var e=da.current;return e===null?!0:(ze&4194048)===ze?Oa===null:(ze&62914560)===ze||(ze&536870912)!==0?e===Oa:!1}function wy(){var e=H.H;return H.H=Ll,e===null?Ll:e}function Dy(){var e=H.A;return H.A=n5,e}function $o(){pt=4,Zr||(ze&4194048)!==ze&&da.current!==null||(Ti=!0),(Yr&134217727)===0&&(Rn&134217727)===0||rt===null||Qr(rt,ze,pa,!1)}function pd(e,t,a){var i=$e;$e|=2;var u=wy(),c=Dy();(rt!==e||ze!==t)&&(Zo=null,Mi(e,t)),t=!1;var m=pt;e:do try{if(Je!==0&&Re!==null){var g=Re,_=ha;switch(Je){case 8:hd(),m=6;break e;case 3:case 2:case 9:case 6:da.current===null&&(t=!0);var M=Je;if(Je=0,ha=null,zi(e,g,_,M),a&&Ti){m=0;break e}break;default:M=Je,Je=0,ha=null,zi(e,g,_,M)}}s5(),m=pt;break}catch(L){Cy(e,L)}while(!0);return t&&e.shellSuspendCounter++,cr=Sn=null,$e=i,H.H=u,H.A=c,Re===null&&(rt=null,ze=0,co()),m}function s5(){for(;Re!==null;)Ay(Re)}function o5(e,t){var a=$e;$e|=2;var i=wy(),u=Dy();rt!==e||ze!==t?(Zo=null,Go=W()+500,Mi(e,t)):Ti=hl(e,t);e:do try{if(Je!==0&&Re!==null){t=Re;var c=ha;t:switch(Je){case 1:Je=0,ha=null,zi(e,t,c,1);break;case 2:case 9:if(Ug(c)){Je=0,ha=null,Ty(t);break}t=function(){Je!==2&&Je!==9||rt!==e||(Je=7),Ka(e)},c.then(t,t);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:Ug(c)?(Je=0,ha=null,Ty(t)):(Je=0,ha=null,zi(e,t,c,7));break;case 5:var m=null;switch(Re.tag){case 26:m=Re.memoizedState;case 5:case 27:var g=Re;if(m?hb(m):g.stateNode.complete){Je=0,ha=null;var _=g.sibling;if(_!==null)Re=_;else{var M=g.return;M!==null?(Re=M,Fo(M)):Re=null}break t}}Je=0,ha=null,zi(e,t,c,5);break;case 6:Je=0,ha=null,zi(e,t,c,6);break;case 8:hd(),pt=6;break e;default:throw Error(o(462))}}u5();break}catch(L){Cy(e,L)}while(!0);return cr=Sn=null,H.H=i,H.A=u,$e=a,Re!==null?0:(rt=null,ze=0,co(),pt)}function u5(){for(;Re!==null&&!O();)Ay(Re)}function Ay(e){var t=P0(e.alternate,e,xr);e.memoizedProps=e.pendingProps,t===null?Fo(e):Re=t}function Ty(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=F0(a,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=F0(a,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Of(t);default:ey(a,t),t=Re=Dg(t,xr),t=P0(a,t,xr)}e.memoizedProps=e.pendingProps,t===null?Fo(e):Re=t}function zi(e,t,a,i){cr=Sn=null,Of(t),Si=null,Rl=0;var u=t.return;try{if(IC(e,u,t,a,ze)){pt=1,zo(e,wa(a,e.current)),Re=null;return}}catch(c){if(u!==null)throw Re=u,c;pt=1,zo(e,wa(a,e.current)),Re=null;return}t.flags&32768?(je||i===1?e=!0:Ti||(ze&536870912)!==0?e=!1:(Zr=e=!0,(i===2||i===9||i===3||i===6)&&(i=da.current,i!==null&&i.tag===13&&(i.flags|=16384))),Oy(t,e)):Fo(t)}function Fo(e){var t=e;do{if((t.flags&32768)!==0){Oy(t,Zr);return}e=t.return;var a=e5(t.alternate,t,xr);if(a!==null){Re=a;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);pt===0&&(pt=5)}function Oy(e,t){do{var a=t5(e.alternate,e);if(a!==null){a.flags&=32767,Re=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=a}while(e!==null);pt=6,Re=null}function Ry(e,t,a,i,u,c,m,g,_){e.cancelPendingCommit=null;do Qo();while(Ot!==0);if(($e&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=af,G_(e,a,c,m,g,_),e===rt&&(Re=rt=null,ze=0),Ri=t,Fr=e,Nr=a,fd=c,dd=u,xy=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,m5(ve,function(){return Vy(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=H.T,H.T=null,u=J.p,J.p=2,m=$e,$e|=4;try{a5(e,t,a)}finally{$e=m,J.p=u,H.T=i}}Ot=1,My(),zy(),ky()}}function My(){if(Ot===1){Ot=0;var e=Fr,t=Ri,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=H.T,H.T=null;var i=J.p;J.p=2;var u=$e;$e|=4;try{dy(t,e);var c=Dd,m=bg(e.containerInfo),g=c.focusedElem,_=c.selectionRange;if(m!==g&&g&&g.ownerDocument&&yg(g.ownerDocument.documentElement,g)){if(_!==null&&Ic(g)){var M=_.start,L=_.end;if(L===void 0&&(L=M),"selectionStart"in g)g.selectionStart=M,g.selectionEnd=Math.min(L,g.value.length);else{var Y=g.ownerDocument||document,z=Y&&Y.defaultView||window;if(z.getSelection){var V=z.getSelection(),ue=g.textContent.length,be=Math.min(_.start,ue),at=_.end===void 0?be:Math.min(_.end,ue);!V.extend&&be>at&&(m=at,at=be,be=m);var T=gg(g,be),D=gg(g,at);if(T&&D&&(V.rangeCount!==1||V.anchorNode!==T.node||V.anchorOffset!==T.offset||V.focusNode!==D.node||V.focusOffset!==D.offset)){var R=Y.createRange();R.setStart(T.node,T.offset),V.removeAllRanges(),be>at?(V.addRange(R),V.extend(D.node,D.offset)):(R.setEnd(D.node,D.offset),V.addRange(R))}}}}for(Y=[],V=g;V=V.parentNode;)V.nodeType===1&&Y.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Y.length;g++){var G=Y[g];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}iu=!!wd,Dd=wd=null}finally{$e=u,J.p=i,H.T=a}}e.current=t,Ot=2}}function zy(){if(Ot===2){Ot=0;var e=Fr,t=Ri,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=H.T,H.T=null;var i=J.p;J.p=2;var u=$e;$e|=4;try{sy(e,t.alternate,t)}finally{$e=u,J.p=i,H.T=a}}Ot=3}}function ky(){if(Ot===4||Ot===3){Ot=0,j();var e=Fr,t=Ri,a=Nr,i=xy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ot=5:(Ot=0,Ri=Fr=null,jy(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&($r=null),Mc(a),t=t.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(mn,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=H.T,u=J.p,J.p=2,H.T=null;try{for(var c=e.onRecoverableError,m=0;m<i.length;m++){var g=i[m];c(g.value,{componentStack:g.stack})}}finally{H.T=t,J.p=u}}(Nr&3)!==0&&Qo(),Ka(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===md?Xl++:(Xl=0,md=e):Xl=0,Kl(0)}}function jy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tl(t)))}function Qo(){return My(),zy(),ky(),Vy()}function Vy(){if(Ot!==5)return!1;var e=Fr,t=fd;fd=0;var a=Mc(Nr),i=H.T,u=J.p;try{J.p=32>a?32:a,H.T=null,a=dd,dd=null;var c=Fr,m=Nr;if(Ot=0,Ri=Fr=null,Nr=0,($e&6)!==0)throw Error(o(331));var g=$e;if($e|=4,yy(c.current),hy(c,c.current,m,a),$e=g,Kl(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(mn,c)}catch{}return!0}finally{J.p=u,H.T=i,jy(e,t)}}function By(e,t,a){t=wa(a,t),t=$f(e.stateNode,t,2),e=Lr(e,t,2),e!==null&&(pl(e,2),Ka(e))}function Ie(e,t,a){if(e.tag===3)By(e,e,a);else for(;t!==null;){if(t.tag===3){By(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&($r===null||!$r.has(i))){e=wa(a,e),a=U0(2),i=Lr(t,a,2),i!==null&&(L0(a,i,t,e),pl(i,2),Ka(i));break}}t=t.return}}function gd(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new i5;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(a)||(od=!0,u.add(a),e=c5.bind(null,e,t,a),t.then(e,e))}function c5(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,rt===e&&(ze&a)===a&&(pt===4||pt===3&&(ze&62914560)===ze&&300>W()-Ho?($e&2)===0&&Mi(e,0):ud|=a,Oi===ze&&(Oi=0)),Ka(e)}function Uy(e,t){t===0&&(t=Mp()),e=vn(e,t),e!==null&&(pl(e,t),Ka(e))}function f5(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Uy(e,a)}function d5(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),Uy(e,a)}function m5(e,t){return Wn(e,t)}var Xo=null,ki=null,yd=!1,Ko=!1,bd=!1,Xr=0;function Ka(e){e!==ki&&e.next===null&&(ki===null?Xo=ki=e:ki=ki.next=e),Ko=!0,yd||(yd=!0,p5())}function Kl(e,t){if(!bd&&Ko){bd=!0;do for(var a=!1,i=Xo;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var c=0;else{var m=i.suspendedLanes,g=i.pingedLanes;c=(1<<31-Xt(42|e)+1)-1,c&=u&~(m&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Gy(i,c))}else c=ze,c=Ps(i,i===rt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||hl(i,c)||(a=!0,Gy(i,c));i=i.next}while(a);bd=!1}}function h5(){Ly()}function Ly(){Ko=yd=!1;var e=0;Xr!==0&&E5()&&(e=Xr);for(var t=W(),a=null,i=Xo;i!==null;){var u=i.next,c=qy(i,t);c===0?(i.next=null,a===null?Xo=u:a.next=u,u===null&&(ki=a)):(a=i,(e!==0||(c&3)!==0)&&(Ko=!0)),i=u}Ot!==0&&Ot!==5||Kl(e),Xr!==0&&(Xr=0)}function qy(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Xt(c),g=1<<m,_=u[m];_===-1?((g&a)===0||(g&i)!==0)&&(u[m]=H_(g,t)):_<=t&&(e.expiredLanes|=g),c&=~g}if(t=rt,a=ze,a=Ps(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&E(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||hl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&E(i),Mc(a)){case 2:case 8:a=me;break;case 32:a=ve;break;case 268435456:a=Yt;break;default:a=ve}return i=Hy.bind(null,e),a=Wn(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&E(i),e.callbackPriority=2,e.callbackNode=null,2}function Hy(e,t){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Qo()&&e.callbackNode!==a)return null;var i=ze;return i=Ps(e,e===rt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Sy(e,i,t),qy(e,W()),e.callbackNode!=null&&e.callbackNode===a?Hy.bind(null,e):null)}function Gy(e,t){if(Qo())return null;Sy(e,t,!0)}function p5(){D5(function(){($e&6)!==0?Wn(ae,h5):Ly()})}function vd(){if(Xr===0){var e=bi;e===0&&(e=Ks,Ks<<=1,(Ks&261888)===0&&(Ks=256)),Xr=e}return Xr}function Zy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ao(""+e)}function Yy(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function g5(e,t,a,i,u){if(t==="submit"&&a&&a.stateNode===u){var c=Zy((u[Wt]||null).action),m=i.submitter;m&&(t=(t=m[Wt]||null)?Zy(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var g=new lo("action","action",null,i,u);e.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Xr!==0){var _=m?Yy(u,m):new FormData(u);Lf(a,{pending:!0,data:_,method:u.method,action:c},null,_)}}else typeof c=="function"&&(g.preventDefault(),_=m?Yy(u,m):new FormData(u),Lf(a,{pending:!0,data:_,method:u.method,action:c},c,_))},currentTarget:u}]})}}for(var xd=0;xd<tf.length;xd++){var Nd=tf[xd],y5=Nd.toLowerCase(),b5=Nd[0].toUpperCase()+Nd.slice(1);Ba(y5,"on"+b5)}Ba(Ng,"onAnimationEnd"),Ba(Sg,"onAnimationIteration"),Ba(_g,"onAnimationStart"),Ba("dblclick","onDoubleClick"),Ba("focusin","onFocus"),Ba("focusout","onBlur"),Ba(kC,"onTransitionRun"),Ba(jC,"onTransitionStart"),Ba(VC,"onTransitionCancel"),Ba(Cg,"onTransitionEnd"),ni("onMouseEnter",["mouseout","mouseover"]),ni("onMouseLeave",["mouseout","mouseover"]),ni("onPointerEnter",["pointerout","pointerover"]),ni("onPointerLeave",["pointerout","pointerover"]),pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pn("onBeforeInput",["compositionend","keypress","textInput","paste"]),pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),v5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jl));function $y(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],u=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var m=i.length-1;0<=m;m--){var g=i[m],_=g.instance,M=g.currentTarget;if(g=g.listener,_!==c&&u.isPropagationStopped())break e;c=g,u.currentTarget=M;try{c(u)}catch(L){uo(L)}u.currentTarget=null,c=_}else for(m=0;m<i.length;m++){if(g=i[m],_=g.instance,M=g.currentTarget,g=g.listener,_!==c&&u.isPropagationStopped())break e;c=g,u.currentTarget=M;try{c(u)}catch(L){uo(L)}u.currentTarget=null,c=_}}}}function Me(e,t){var a=t[zc];a===void 0&&(a=t[zc]=new Set);var i=e+"__bubble";a.has(i)||(Fy(t,e,2,!1),a.add(i))}function Sd(e,t,a){var i=0;t&&(i|=4),Fy(a,e,i,t)}var Jo="_reactListening"+Math.random().toString(36).slice(2);function _d(e){if(!e[Jo]){e[Jo]=!0,Lp.forEach(function(a){a!=="selectionchange"&&(v5.has(a)||Sd(a,!1,e),Sd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jo]||(t[Jo]=!0,Sd("selectionchange",!1,t))}}function Fy(e,t,a,i){switch(Nb(t)){case 2:var u=Q5;break;case 8:u=X5;break;default:u=Ud}a=u.bind(null,t,a,e),u=void 0,!Gc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function Cd(e,t,a,i,u){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var g=i.stateNode.containerInfo;if(g===u)break;if(m===4)for(m=i.return;m!==null;){var _=m.tag;if((_===3||_===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;g!==null;){if(m=ti(g),m===null)return;if(_=m.tag,_===5||_===6||_===26||_===27){i=c=m;continue e}g=g.parentNode}}i=i.return}Ip(function(){var M=c,L=qc(a),Y=[];e:{var z=Eg.get(e);if(z!==void 0){var V=lo,ue=e;switch(e){case"keypress":if(no(a)===0)break e;case"keydown":case"keyup":V=dC;break;case"focusin":ue="focus",V=Fc;break;case"focusout":ue="blur",V=Fc;break;case"beforeblur":case"afterblur":V=Fc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=eg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=eC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=pC;break;case Ng:case Sg:case _g:V=rC;break;case Cg:V=yC;break;case"scroll":case"scrollend":V=P_;break;case"wheel":V=vC;break;case"copy":case"cut":case"paste":V=iC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=ag;break;case"toggle":case"beforetoggle":V=NC}var be=(t&4)!==0,at=!be&&(e==="scroll"||e==="scrollend"),T=be?z!==null?z+"Capture":null:z;be=[];for(var D=M,R;D!==null;){var G=D;if(R=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||R===null||T===null||(G=bl(D,T),G!=null&&be.push(Il(D,G,R))),at)break;D=D.return}0<be.length&&(z=new V(z,ue,null,a,L),Y.push({event:z,listeners:be}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",z&&a!==Lc&&(ue=a.relatedTarget||a.fromElement)&&(ti(ue)||ue[ei]))break e;if((V||z)&&(z=L.window===L?L:(z=L.ownerDocument)?z.defaultView||z.parentWindow:window,V?(ue=a.relatedTarget||a.toElement,V=M,ue=ue?ti(ue):null,ue!==null&&(at=d(ue),be=ue.tag,ue!==at||be!==5&&be!==27&&be!==6)&&(ue=null)):(V=null,ue=M),V!==ue)){if(be=eg,G="onMouseLeave",T="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(be=ag,G="onPointerLeave",T="onPointerEnter",D="pointer"),at=V==null?z:yl(V),R=ue==null?z:yl(ue),z=new be(G,D+"leave",V,a,L),z.target=at,z.relatedTarget=R,G=null,ti(L)===M&&(be=new be(T,D+"enter",ue,a,L),be.target=R,be.relatedTarget=at,G=be),at=G,V&&ue)t:{for(be=x5,T=V,D=ue,R=0,G=T;G;G=be(G))R++;G=0;for(var ye=D;ye;ye=be(ye))G++;for(;0<R-G;)T=be(T),R--;for(;0<G-R;)D=be(D),G--;for(;R--;){if(T===D||D!==null&&T===D.alternate){be=T;break t}T=be(T),D=be(D)}be=null}else be=null;V!==null&&Qy(Y,z,V,be,!1),ue!==null&&at!==null&&Qy(Y,at,ue,be,!0)}}e:{if(z=M?yl(M):window,V=z.nodeName&&z.nodeName.toLowerCase(),V==="select"||V==="input"&&z.type==="file")var qe=cg;else if(og(z))if(fg)qe=RC;else{qe=TC;var he=AC}else V=z.nodeName,!V||V.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?M&&Uc(M.elementType)&&(qe=cg):qe=OC;if(qe&&(qe=qe(e,M))){ug(Y,qe,a,L);break e}he&&he(e,z,M),e==="focusout"&&M&&z.type==="number"&&M.memoizedProps.value!=null&&Bc(z,"number",z.value)}switch(he=M?yl(M):window,e){case"focusin":(og(he)||he.contentEditable==="true")&&(ci=he,Pc=M,wl=null);break;case"focusout":wl=Pc=ci=null;break;case"mousedown":Wc=!0;break;case"contextmenu":case"mouseup":case"dragend":Wc=!1,vg(Y,a,L);break;case"selectionchange":if(zC)break;case"keydown":case"keyup":vg(Y,a,L)}var Ee;if(Xc)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else ui?lg(e,a)&&(ke="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(rg&&a.locale!=="ko"&&(ui||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&ui&&(Ee=Pp()):(Mr=L,Zc="value"in Mr?Mr.value:Mr.textContent,ui=!0)),he=Io(M,ke),0<he.length&&(ke=new tg(ke,e,null,a,L),Y.push({event:ke,listeners:he}),Ee?ke.data=Ee:(Ee=sg(a),Ee!==null&&(ke.data=Ee)))),(Ee=_C?CC(e,a):EC(e,a))&&(ke=Io(M,"onBeforeInput"),0<ke.length&&(he=new tg("onBeforeInput","beforeinput",null,a,L),Y.push({event:he,listeners:ke}),he.data=Ee)),g5(Y,e,M,a,L)}$y(Y,t)})}function Il(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Io(e,t){for(var a=t+"Capture",i=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=bl(e,a),u!=null&&i.unshift(Il(e,u,c)),u=bl(e,t),u!=null&&i.push(Il(e,u,c))),e.tag===3)return i;e=e.return}return[]}function x5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Qy(e,t,a,i,u){for(var c=t._reactName,m=[];a!==null&&a!==i;){var g=a,_=g.alternate,M=g.stateNode;if(g=g.tag,_!==null&&_===i)break;g!==5&&g!==26&&g!==27||M===null||(_=M,u?(M=bl(a,c),M!=null&&m.unshift(Il(a,M,_))):u||(M=bl(a,c),M!=null&&m.push(Il(a,M,_)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var N5=/\r\n?/g,S5=/\u0000|\uFFFD/g;function Xy(e){return(typeof e=="string"?e:""+e).replace(N5,`
49
+ `).replace(S5,"")}function Ky(e,t){return t=Xy(t),Xy(e)===t}function tt(e,t,a,i,u,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||li(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&li(e,""+i);break;case"className":eo(e,"class",i);break;case"tabIndex":eo(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":eo(e,a,i);break;case"style":Kp(e,i,c);break;case"data":if(t!=="object"){eo(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=ao(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&tt(e,t,"name",u.name,u,null),tt(e,t,"formEncType",u.formEncType,u,null),tt(e,t,"formMethod",u.formMethod,u,null),tt(e,t,"formTarget",u.formTarget,u,null)):(tt(e,t,"encType",u.encType,u,null),tt(e,t,"method",u.method,u,null),tt(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=ao(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=lr);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=ao(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Ws(e,"popover",i);break;case"xlinkActuate":ir(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ir(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ir(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ir(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ir(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ir(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ir(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ir(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ir(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ws(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=J_.get(a)||a,Ws(e,a,i))}}function Ed(e,t,a,i,u,c){switch(a){case"style":Kp(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(a=i.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof i=="string"?li(e,i):(typeof i=="number"||typeof i=="bigint")&&li(e,""+i);break;case"onScroll":i!=null&&Me("scroll",e);break;case"onScrollEnd":i!=null&&Me("scrollend",e);break;case"onClick":i!=null&&(e.onclick=lr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),c=e[Wt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,u);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Ws(e,a,i)}}}function qt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var i=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:tt(e,t,c,m,a,null)}}u&&tt(e,t,"srcSet",a.srcSet,a,null),i&&tt(e,t,"src",a.src,a,null);return;case"input":Me("invalid",e);var g=c=m=u=null,_=null,M=null;for(i in a)if(a.hasOwnProperty(i)){var L=a[i];if(L!=null)switch(i){case"name":u=L;break;case"type":m=L;break;case"checked":_=L;break;case"defaultChecked":M=L;break;case"value":c=L;break;case"defaultValue":g=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:tt(e,t,i,L,a,null)}}$p(e,c,g,_,M,m,u,!1);return;case"select":Me("invalid",e),i=m=c=null;for(u in a)if(a.hasOwnProperty(u)&&(g=a[u],g!=null))switch(u){case"value":c=g;break;case"defaultValue":m=g;break;case"multiple":i=g;default:tt(e,t,u,g,a,null)}t=c,a=m,e.multiple=!!i,t!=null?ii(e,!!i,t,!1):a!=null&&ii(e,!!i,a,!0);return;case"textarea":Me("invalid",e),c=u=i=null;for(m in a)if(a.hasOwnProperty(m)&&(g=a[m],g!=null))switch(m){case"value":i=g;break;case"defaultValue":u=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:tt(e,t,m,g,a,null)}Qp(e,i,u,c);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(i=a[_],i!=null))switch(_){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:tt(e,t,_,i,a,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(i=0;i<Jl.length;i++)Me(Jl[i],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(i=a[M],i!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:tt(e,t,M,i,a,null)}return;default:if(Uc(t)){for(L in a)a.hasOwnProperty(L)&&(i=a[L],i!==void 0&&Ed(e,t,L,i,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(i=a[g],i!=null&&tt(e,t,g,i,a,null))}function _5(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,m=null,g=null,_=null,M=null,L=null;for(V in a){var Y=a[V];if(a.hasOwnProperty(V)&&Y!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":_=Y;default:i.hasOwnProperty(V)||tt(e,t,V,null,i,Y)}}for(var z in i){var V=i[z];if(Y=a[z],i.hasOwnProperty(z)&&(V!=null||Y!=null))switch(z){case"type":c=V;break;case"name":u=V;break;case"checked":M=V;break;case"defaultChecked":L=V;break;case"value":m=V;break;case"defaultValue":g=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,t));break;default:V!==Y&&tt(e,t,z,V,i,Y)}}Vc(e,m,g,_,M,L,c,u);return;case"select":V=m=g=z=null;for(c in a)if(_=a[c],a.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":V=_;default:i.hasOwnProperty(c)||tt(e,t,c,null,i,_)}for(u in i)if(c=i[u],_=a[u],i.hasOwnProperty(u)&&(c!=null||_!=null))switch(u){case"value":z=c;break;case"defaultValue":g=c;break;case"multiple":m=c;default:c!==_&&tt(e,t,u,c,i,_)}t=g,a=m,i=V,z!=null?ii(e,!!a,z,!1):!!i!=!!a&&(t!=null?ii(e,!!a,t,!0):ii(e,!!a,a?[]:"",!1));return;case"textarea":V=z=null;for(g in a)if(u=a[g],a.hasOwnProperty(g)&&u!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:tt(e,t,g,null,i,u)}for(m in i)if(u=i[m],c=a[m],i.hasOwnProperty(m)&&(u!=null||c!=null))switch(m){case"value":z=u;break;case"defaultValue":V=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&tt(e,t,m,u,i,c)}Fp(e,z,V);return;case"option":for(var ue in a)if(z=a[ue],a.hasOwnProperty(ue)&&z!=null&&!i.hasOwnProperty(ue))switch(ue){case"selected":e.selected=!1;break;default:tt(e,t,ue,null,i,z)}for(_ in i)if(z=i[_],V=a[_],i.hasOwnProperty(_)&&z!==V&&(z!=null||V!=null))switch(_){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:tt(e,t,_,z,i,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var be in a)z=a[be],a.hasOwnProperty(be)&&z!=null&&!i.hasOwnProperty(be)&&tt(e,t,be,null,i,z);for(M in i)if(z=i[M],V=a[M],i.hasOwnProperty(M)&&z!==V&&(z!=null||V!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:tt(e,t,M,z,i,V)}return;default:if(Uc(t)){for(var at in a)z=a[at],a.hasOwnProperty(at)&&z!==void 0&&!i.hasOwnProperty(at)&&Ed(e,t,at,void 0,i,z);for(L in i)z=i[L],V=a[L],!i.hasOwnProperty(L)||z===V||z===void 0&&V===void 0||Ed(e,t,L,z,i,V);return}}for(var T in a)z=a[T],a.hasOwnProperty(T)&&z!=null&&!i.hasOwnProperty(T)&&tt(e,t,T,null,i,z);for(Y in i)z=i[Y],V=a[Y],!i.hasOwnProperty(Y)||z===V||z==null&&V==null||tt(e,t,Y,z,i,V)}function Jy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function C5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var u=a[i],c=u.transferSize,m=u.initiatorType,g=u.duration;if(c&&g&&Jy(m)){for(m=0,g=u.responseEnd,i+=1;i<a.length;i++){var _=a[i],M=_.startTime;if(M>g)break;var L=_.transferSize,Y=_.initiatorType;L&&Jy(Y)&&(_=_.responseEnd,m+=L*(_<g?1:(g-M)/(_-M)))}if(--i,t+=8*(c+m)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var wd=null,Dd=null;function Po(e){return e.nodeType===9?e:e.ownerDocument}function Iy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Py(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ad(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Td=null;function E5(){var e=window.event;return e&&e.type==="popstate"?e===Td?!1:(Td=e,!0):(Td=null,!1)}var Wy=typeof setTimeout=="function"?setTimeout:void 0,w5=typeof clearTimeout=="function"?clearTimeout:void 0,eb=typeof Promise=="function"?Promise:void 0,D5=typeof queueMicrotask=="function"?queueMicrotask:typeof eb<"u"?function(e){return eb.resolve(null).then(e).catch(A5)}:Wy;function A5(e){setTimeout(function(){throw e})}function Kr(e){return e==="head"}function tb(e,t){var a=t,i=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(u),Ui(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Pl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Pl(a);for(var c=a.firstChild;c;){var m=c.nextSibling,g=c.nodeName;c[gl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&Pl(e.ownerDocument.body);a=u}while(a);Ui(t)}function ab(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function Od(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Od(a),kc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function T5(e,t,a,i){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[gl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Ra(e.nextSibling),e===null)break}return null}function O5(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ra(e.nextSibling),e===null))return null;return e}function rb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ra(e.nextSibling),e===null))return null;return e}function Rd(e){return e.data==="$?"||e.data==="$~"}function Md(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function R5(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Ra(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zd=null;function nb(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ra(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function ib(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function lb(e,t,a){switch(t=Po(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Pl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);kc(e)}var Ma=new Map,sb=new Set;function Wo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sr=J.d;J.d={f:M5,r:z5,D:k5,C:j5,L:V5,m:B5,X:L5,S:U5,M:q5};function M5(){var e=Sr.f(),t=Yo();return e||t}function z5(e){var t=ai(e);t!==null&&t.tag===5&&t.type==="form"?C0(t):Sr.r(e)}var ji=typeof document>"u"?null:document;function ob(e,t,a){var i=ji;if(i&&typeof t=="string"&&t){var u=Ca(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),sb.has(u)||(sb.add(u),e={rel:e,crossOrigin:a,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),qt(t,"link",e),Rt(t),i.head.appendChild(t)))}}function k5(e){Sr.D(e),ob("dns-prefetch",e,null)}function j5(e,t){Sr.C(e,t),ob("preconnect",e,t)}function V5(e,t,a){Sr.L(e,t,a);var i=ji;if(i&&e&&t){var u='link[rel="preload"][as="'+Ca(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Ca(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Ca(a.imageSizes)+'"]')):u+='[href="'+Ca(e)+'"]';var c=u;switch(t){case"style":c=Vi(e);break;case"script":c=Bi(e)}Ma.has(c)||(e=C({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ma.set(c,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(Wl(c))||t==="script"&&i.querySelector(es(c))||(t=i.createElement("link"),qt(t,"link",e),Rt(t),i.head.appendChild(t)))}}function B5(e,t){Sr.m(e,t);var a=ji;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Ca(i)+'"][href="'+Ca(e)+'"]',c=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Bi(e)}if(!Ma.has(c)&&(e=C({rel:"modulepreload",href:e},t),Ma.set(c,e),a.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(es(c)))return}i=a.createElement("link"),qt(i,"link",e),Rt(i),a.head.appendChild(i)}}}function U5(e,t,a){Sr.S(e,t,a);var i=ji;if(i&&e){var u=ri(i).hoistableStyles,c=Vi(e);t=t||"default";var m=u.get(c);if(!m){var g={loading:0,preload:null};if(m=i.querySelector(Wl(c)))g.loading=5;else{e=C({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ma.get(c))&&kd(e,a);var _=m=i.createElement("link");Rt(_),qt(_,"link",e),_._p=new Promise(function(M,L){_.onload=M,_.onerror=L}),_.addEventListener("load",function(){g.loading|=1}),_.addEventListener("error",function(){g.loading|=2}),g.loading|=4,eu(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:g},u.set(c,m)}}}function L5(e,t){Sr.X(e,t);var a=ji;if(a&&e){var i=ri(a).hoistableScripts,u=Bi(e),c=i.get(u);c||(c=a.querySelector(es(u)),c||(e=C({src:e,async:!0},t),(t=Ma.get(u))&&jd(e,t),c=a.createElement("script"),Rt(c),qt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function q5(e,t){Sr.M(e,t);var a=ji;if(a&&e){var i=ri(a).hoistableScripts,u=Bi(e),c=i.get(u);c||(c=a.querySelector(es(u)),c||(e=C({src:e,async:!0,type:"module"},t),(t=Ma.get(u))&&jd(e,t),c=a.createElement("script"),Rt(c),qt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function ub(e,t,a,i){var u=(u=Ae.current)?Wo(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Vi(a.href),a=ri(u).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Vi(a.href);var c=ri(u).hoistableStyles,m=c.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=u.querySelector(Wl(e)))&&!c._p&&(m.instance=c,m.state.loading=5),Ma.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ma.set(e,a),c||H5(u,e,a,m.state))),t&&i===null)throw Error(o(528,""));return m}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Bi(a),a=ri(u).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Vi(e){return'href="'+Ca(e)+'"'}function Wl(e){return'link[rel="stylesheet"]['+e+"]"}function cb(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function H5(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),qt(t,"link",a),Rt(t),e.head.appendChild(t))}function Bi(e){return'[src="'+Ca(e)+'"]'}function es(e){return"script[async]"+e}function fb(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Ca(a.href)+'"]');if(i)return t.instance=i,Rt(i),i;var u=C({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Rt(i),qt(i,"style",u),eu(i,a.precedence,e),t.instance=i;case"stylesheet":u=Vi(a.href);var c=e.querySelector(Wl(u));if(c)return t.state.loading|=4,t.instance=c,Rt(c),c;i=cb(a),(u=Ma.get(u))&&kd(i,u),c=(e.ownerDocument||e).createElement("link"),Rt(c);var m=c;return m._p=new Promise(function(g,_){m.onload=g,m.onerror=_}),qt(c,"link",i),t.state.loading|=4,eu(c,a.precedence,e),t.instance=c;case"script":return c=Bi(a.src),(u=e.querySelector(es(c)))?(t.instance=u,Rt(u),u):(i=a,(u=Ma.get(c))&&(i=C({},a),jd(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),Rt(u),qt(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,eu(i,a.precedence,e));return t.instance}function eu(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,c=u,m=0;m<i.length;m++){var g=i[m];if(g.dataset.precedence===t)c=g;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function kd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var tu=null;function db(e,t,a){if(tu===null){var i=new Map,u=tu=new Map;u.set(a,i)}else u=tu,i=u.get(a),i||(i=new Map,u.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[gl]||c[Vt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var g=i.get(m);g?g.push(c):i.set(m,[c])}}return i}function mb(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function G5(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function hb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Z5(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Vi(i.href),c=t.querySelector(Wl(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=au.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,Rt(c);return}c=t.ownerDocument||t,i=cb(i),(u=Ma.get(u))&&kd(i,u),c=c.createElement("link"),Rt(c);var m=c;m._p=new Promise(function(g,_){m.onload=g,m.onerror=_}),qt(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=au.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Vd=0;function Y5(e,t){return e.stylesheets&&e.count===0&&nu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Vd===0&&(Vd=62500*C5());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Vd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ru=null;function nu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ru=new Map,t.forEach($5,e),ru=null,au.call(e))}function $5(e,t){if(!(t.state.loading&4)){var a=ru.get(e);if(a)var i=a.get(null);else{a=new Map,ru.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var m=u[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),i=m)}i&&a.set(null,i)}u=t.instance,m=u.getAttribute("data-precedence"),c=a.get(m)||i,c===i&&a.set(null,u),a.set(m,u),this.count++,i=au.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var ts={$$typeof:I,Provider:null,Consumer:null,_currentValue:De,_currentValue2:De,_threadCount:0};function F5(e,t,a,i,u,c,m,g,_){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oc(0),this.hiddenUpdates=Oc(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function pb(e,t,a,i,u,c,m,g,_,M,L,Y){return e=new F5(e,t,a,m,_,M,L,Y,g),t=1,c===!0&&(t|=24),c=fa(3,null,null,t),e.current=c,c.stateNode=e,t=pf(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},vf(c),e}function gb(e){return e?(e=mi,e):mi}function yb(e,t,a,i,u,c){u=gb(u),i.context===null?i.context=u:i.pendingContext=u,i=Ur(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Lr(e,i,t),a!==null&&(ia(a,e,t),zl(a,e,t))}function bb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Bd(e,t){bb(e,t),(e=e.alternate)&&bb(e,t)}function vb(e){if(e.tag===13||e.tag===31){var t=vn(e,67108864);t!==null&&ia(t,e,67108864),Bd(e,67108864)}}function xb(e){if(e.tag===13||e.tag===31){var t=ga();t=Rc(t);var a=vn(e,t);a!==null&&ia(a,e,t),Bd(e,t)}}var iu=!0;function Q5(e,t,a,i){var u=H.T;H.T=null;var c=J.p;try{J.p=2,Ud(e,t,a,i)}finally{J.p=c,H.T=u}}function X5(e,t,a,i){var u=H.T;H.T=null;var c=J.p;try{J.p=8,Ud(e,t,a,i)}finally{J.p=c,H.T=u}}function Ud(e,t,a,i){if(iu){var u=Ld(i);if(u===null)Cd(e,t,i,lu,a),Sb(e,i);else if(J5(u,e,t,a,i))i.stopPropagation();else if(Sb(e,i),t&4&&-1<K5.indexOf(e)){for(;u!==null;){var c=ai(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=hn(c.pendingLanes);if(m!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;m;){var _=1<<31-Xt(m);g.entanglements[1]|=_,m&=~_}Ka(c),($e&6)===0&&(Go=W()+500,Kl(0))}}break;case 31:case 13:g=vn(c,2),g!==null&&ia(g,c,2),Yo(),Bd(c,2)}if(c=Ld(i),c===null&&Cd(e,t,i,lu,a),c===u)break;u=c}u!==null&&i.stopPropagation()}else Cd(e,t,i,null,a)}}function Ld(e){return e=qc(e),qd(e)}var lu=null;function qd(e){if(lu=null,e=ti(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=y(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return lu=e,null}function Nb(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ee()){case ae:return 2;case me:return 8;case ve:case Ye:return 32;case Yt:return 268435456;default:return 32}default:return 32}}var Hd=!1,Jr=null,Ir=null,Pr=null,as=new Map,rs=new Map,Wr=[],K5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Sb(e,t){switch(e){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":Ir=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":as.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(t.pointerId)}}function ns(e,t,a,i,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[u]},t!==null&&(t=ai(t),t!==null&&vb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function J5(e,t,a,i,u){switch(t){case"focusin":return Jr=ns(Jr,e,t,a,i,u),!0;case"dragenter":return Ir=ns(Ir,e,t,a,i,u),!0;case"mouseover":return Pr=ns(Pr,e,t,a,i,u),!0;case"pointerover":var c=u.pointerId;return as.set(c,ns(as.get(c)||null,e,t,a,i,u)),!0;case"gotpointercapture":return c=u.pointerId,rs.set(c,ns(rs.get(c)||null,e,t,a,i,u)),!0}return!1}function _b(e){var t=ti(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Bp(e.priority,function(){xb(a)});return}}else if(t===31){if(t=y(a),t!==null){e.blockedOn=t,Bp(e.priority,function(){xb(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ld(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);Lc=i,a.target.dispatchEvent(i),Lc=null}else return t=ai(a),t!==null&&vb(t),e.blockedOn=a,!1;t.shift()}return!0}function Cb(e,t,a){su(e)&&a.delete(t)}function I5(){Hd=!1,Jr!==null&&su(Jr)&&(Jr=null),Ir!==null&&su(Ir)&&(Ir=null),Pr!==null&&su(Pr)&&(Pr=null),as.forEach(Cb),rs.forEach(Cb)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,Hd||(Hd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,I5)))}var uu=null;function Eb(e){uu!==e&&(uu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){uu===e&&(uu=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(qd(i||a)===null)continue;break}var c=ai(a);c!==null&&(e.splice(t,3),t-=3,Lf(c,{pending:!0,data:u,method:a.method,action:i},i,u))}}))}function Ui(e){function t(_){return ou(_,e)}Jr!==null&&ou(Jr,e),Ir!==null&&ou(Ir,e),Pr!==null&&ou(Pr,e),as.forEach(t),rs.forEach(t);for(var a=0;a<Wr.length;a++){var i=Wr[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Wr.length&&(a=Wr[0],a.blockedOn===null);)_b(a),a.blockedOn===null&&Wr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var u=a[i],c=a[i+1],m=u[Wt]||null;if(typeof c=="function")m||Eb(a);else if(m){var g=null;if(c&&c.hasAttribute("formAction")){if(u=c,m=c[Wt]||null)g=m.formAction;else if(qd(u)!==null)continue}else g=m.action;typeof g=="function"?a[i+1]=g:(a.splice(i,3),i-=3),Eb(a)}}}function wb(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Gd(e){this._internalRoot=e}cu.prototype.render=Gd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,i=ga();yb(a,i,e,t,null,null)},cu.prototype.unmount=Gd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yb(e.current,2,null,e,null,null),Yo(),t[ei]=null}};function cu(e){this._internalRoot=e}cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vp();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Wr.length&&t!==0&&t<Wr[a].priority;a++);Wr.splice(a,0,e),a===0&&_b(e)}};var Db=l.version;if(Db!=="19.2.4")throw Error(o(527,Db,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var P5={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fu.isDisabled&&fu.supportsFiber)try{mn=fu.inject(P5),jt=fu}catch{}}return Li.createRoot=function(e,t){if(!f(e))throw Error(o(299));var a=!1,i="",u=k0,c=j0,m=V0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=pb(e,1,!1,null,null,a,i,null,u,c,m,wb),e[ei]=t.current,_d(e),new Gd(t)},Li.hydrateRoot=function(e,t,a){if(!f(e))throw Error(o(299));var i=!1,u="",c=k0,m=j0,g=V0,_=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),t=pb(e,1,!0,t,a??null,i,u,_,c,m,g,wb),t.context=gb(null),a=t.current,i=ga(),i=Rc(i),u=Ur(i),u.callback=null,Lr(a,u,i),a=i,t.current.lanes=a,pl(t,a),Ka(t),e[ei]=t.current,_d(e),new cu(t)},Li.version="19.2.4",Li}var Wd;function Vb(){if(Wd)return mu.exports;Wd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(n){console.error(n)}}return r(),mu.exports=jb(),mu.exports}var Bb=Vb(),Be;(function(r){r.assertEqual=o=>{};function n(o){}r.assertIs=n;function l(o){throw new Error}r.assertNever=l,r.arrayToEnum=o=>{const f={};for(const d of o)f[d]=d;return f},r.getValidEnumValues=o=>{const f=r.objectKeys(o).filter(h=>typeof o[o[h]]!="number"),d={};for(const h of f)d[h]=o[h];return r.objectValues(d)},r.objectValues=o=>r.objectKeys(o).map(function(f){return o[f]}),r.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const f=[];for(const d in o)Object.prototype.hasOwnProperty.call(o,d)&&f.push(d);return f},r.find=(o,f)=>{for(const d of o)if(f(d))return d},r.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function s(o,f=" | "){return o.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}r.joinValues=s,r.jsonStringifyReplacer=(o,f)=>typeof f=="bigint"?f.toString():f})(Be||(Be={}));var em;(function(r){r.mergeShapes=(n,l)=>({...n,...l})})(em||(em={}));const fe=Be.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_r=r=>{switch(typeof r){case"undefined":return fe.undefined;case"string":return fe.string;case"number":return Number.isNaN(r)?fe.nan:fe.number;case"boolean":return fe.boolean;case"function":return fe.function;case"bigint":return fe.bigint;case"symbol":return fe.symbol;case"object":return Array.isArray(r)?fe.array:r===null?fe.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?fe.promise:typeof Map<"u"&&r instanceof Map?fe.map:typeof Set<"u"&&r instanceof Set?fe.set:typeof Date<"u"&&r instanceof Date?fe.date:fe.object;default:return fe.unknown}},P=Be.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Pa extends Error{get errors(){return this.issues}constructor(n){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=n}format(n){const l=n||function(f){return f.message},s={_errors:[]},o=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(o);else if(d.code==="invalid_return_type")o(d.returnTypeError);else if(d.code==="invalid_arguments")o(d.argumentsError);else if(d.path.length===0)s._errors.push(l(d));else{let h=s,y=0;for(;y<d.path.length;){const p=d.path[y];y===d.path.length-1?(h[p]=h[p]||{_errors:[]},h[p]._errors.push(l(d))):h[p]=h[p]||{_errors:[]},h=h[p],y++}}};return o(this),s}static assert(n){if(!(n instanceof Pa))throw new Error(`Not a ZodError: ${n}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Be.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(n=l=>l.message){const l={},s=[];for(const o of this.issues)if(o.path.length>0){const f=o.path[0];l[f]=l[f]||[],l[f].push(n(o))}else s.push(n(o));return{formErrors:s,fieldErrors:l}}get formErrors(){return this.flatten()}}Pa.create=r=>new Pa(r);const vu=(r,n)=>{let l;switch(r.code){case P.invalid_type:r.received===fe.undefined?l="Required":l=`Expected ${r.expected}, received ${r.received}`;break;case P.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(r.expected,Be.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:l=`Unrecognized key(s) in object: ${Be.joinValues(r.keys,", ")}`;break;case P.invalid_union:l="Invalid input";break;case P.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${Be.joinValues(r.options)}`;break;case P.invalid_enum_value:l=`Invalid enum value. Expected ${Be.joinValues(r.options)}, received '${r.received}'`;break;case P.invalid_arguments:l="Invalid function arguments";break;case P.invalid_return_type:l="Invalid function return type";break;case P.invalid_date:l="Invalid date";break;case P.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(l=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?l=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?l=`Invalid input: must end with "${r.validation.endsWith}"`:Be.assertNever(r.validation):r.validation!=="regex"?l=`Invalid ${r.validation}`:l="Invalid";break;case P.too_small:r.type==="array"?l=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?l=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?l=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?l=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?l=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:l="Invalid input";break;case P.too_big:r.type==="array"?l=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?l=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?l=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?l=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?l=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:l="Invalid input";break;case P.custom:l="Invalid input";break;case P.invalid_intersection_types:l="Intersection results could not be merged";break;case P.not_multiple_of:l=`Number must be a multiple of ${r.multipleOf}`;break;case P.not_finite:l="Number must be finite";break;default:l=n.defaultError,Be.assertNever(r)}return{message:l}};let Ub=vu;function Lb(){return Ub}const qb=r=>{const{data:n,path:l,errorMaps:s,issueData:o}=r,f=[...l,...o.path||[]],d={...o,path:f};if(o.message!==void 0)return{...o,path:f,message:o.message};let h="";const y=s.filter(p=>!!p).slice().reverse();for(const p of y)h=p(d,{data:n,defaultError:h}).message;return{...o,path:f,message:h}};function ie(r,n){const l=Lb(),s=qb({issueData:n,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,l,l===vu?void 0:vu].filter(o=>!!o)});r.common.issues.push(s)}class la{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(n,l){const s=[];for(const o of l){if(o.status==="aborted")return Ne;o.status==="dirty"&&n.dirty(),s.push(o.value)}return{status:n.value,value:s}}static async mergeObjectAsync(n,l){const s=[];for(const o of l){const f=await o.key,d=await o.value;s.push({key:f,value:d})}return la.mergeObjectSync(n,s)}static mergeObjectSync(n,l){const s={};for(const o of l){const{key:f,value:d}=o;if(f.status==="aborted"||d.status==="aborted")return Ne;f.status==="dirty"&&n.dirty(),d.status==="dirty"&&n.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||o.alwaysSet)&&(s[f.value]=d.value)}return{status:n.value,value:s}}}const Ne=Object.freeze({status:"aborted"}),qi=r=>({status:"dirty",value:r}),ya=r=>({status:"valid",value:r}),tm=r=>r.status==="aborted",am=r=>r.status==="dirty",Mn=r=>r.status==="valid",ls=r=>typeof Promise<"u"&&r instanceof Promise;var pe;(function(r){r.errToObj=n=>typeof n=="string"?{message:n}:n||{},r.toString=n=>typeof n=="string"?n:n==null?void 0:n.message})(pe||(pe={}));class Cr{constructor(n,l,s,o){this._cachedPath=[],this.parent=n,this.data=l,this._path=s,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const rm=(r,n)=>{if(Mn(n))return{success:!0,data:n.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new Pa(r.common.issues);return this._error=l,this._error}}};function Oe(r){if(!r)return{};const{errorMap:n,invalid_type_error:l,required_error:s,description:o}=r;if(n&&(l||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:o}:{errorMap:(d,h)=>{const{message:y}=r;return d.code==="invalid_enum_value"?{message:y??h.defaultError}:typeof h.data>"u"?{message:y??s??h.defaultError}:d.code!=="invalid_type"?{message:h.defaultError}:{message:y??l??h.defaultError}},description:o}}class Ve{get description(){return this._def.description}_getType(n){return _r(n.data)}_getOrReturnCtx(n,l){return l||{common:n.parent.common,data:n.data,parsedType:_r(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new la,ctx:{common:n.parent.common,data:n.data,parsedType:_r(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const l=this._parse(n);if(ls(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(n){const l=this._parse(n);return Promise.resolve(l)}parse(n,l){const s=this.safeParse(n,l);if(s.success)return s.data;throw s.error}safeParse(n,l){const s={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:_r(n)},o=this._parseSync({data:n,path:s.path,parent:s});return rm(s,o)}"~validate"(n){var s,o;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:_r(n)};if(!this["~standard"].async)try{const f=this._parseSync({data:n,path:[],parent:l});return Mn(f)?{value:f.value}:{issues:l.common.issues}}catch(f){(o=(s=f==null?void 0:f.message)==null?void 0:s.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:n,path:[],parent:l}).then(f=>Mn(f)?{value:f.value}:{issues:l.common.issues})}async parseAsync(n,l){const s=await this.safeParseAsync(n,l);if(s.success)return s.data;throw s.error}async safeParseAsync(n,l){const s={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:_r(n)},o=this._parse({data:n,path:s.path,parent:s}),f=await(ls(o)?o:Promise.resolve(o));return rm(s,f)}refine(n,l){const s=o=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(o):l;return this._refinement((o,f)=>{const d=n(o),h=()=>f.addIssue({code:P.custom,...s(o)});return typeof Promise<"u"&&d instanceof Promise?d.then(y=>y?!0:(h(),!1)):d?!0:(h(),!1)})}refinement(n,l){return this._refinement((s,o)=>n(s)?!0:(o.addIssue(typeof l=="function"?l(s,o):l),!1))}_refinement(n){return new jn({schema:this,typeName:Se.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}constructor(n){this.spa=this.safeParseAsync,this._def=n,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return Dr.create(this,this._def)}nullable(){return Vn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qa.create(this)}promise(){return cs.create(this,this._def)}or(n){return os.create([this,n],this._def)}and(n){return us.create(this,n,this._def)}transform(n){return new jn({...Oe(this._def),schema:this,typeName:Se.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const l=typeof n=="function"?n:()=>n;return new Su({...Oe(this._def),innerType:this,defaultValue:l,typeName:Se.ZodDefault})}brand(){return new uv({typeName:Se.ZodBranded,type:this,...Oe(this._def)})}catch(n){const l=typeof n=="function"?n:()=>n;return new _u({...Oe(this._def),innerType:this,catchValue:l,typeName:Se.ZodCatch})}describe(n){const l=this.constructor;return new l({...this._def,description:n})}pipe(n){return Cu.create(this,n)}readonly(){return Eu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Hb=/^c[^\s-]{8,}$/i,Gb=/^[0-9a-z]+$/,Zb=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Yb=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$b=/^[a-z0-9_-]{21}$/i,Fb=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Qb=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Xb=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Kb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let xu;const Jb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ib=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Pb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Wb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ev=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,tv=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nm="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",av=new RegExp(`^${nm}$`);function im(r){let n="[0-5]\\d";r.precision?n=`${n}\\.\\d{${r.precision}}`:r.precision==null&&(n=`${n}(\\.\\d+)?`);const l=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${n})${l}`}function rv(r){return new RegExp(`^${im(r)}$`)}function nv(r){let n=`${nm}T${im(r)}`;const l=[];return l.push(r.local?"Z?":"Z"),r.offset&&l.push("([+-]\\d{2}:?\\d{2})"),n=`${n}(${l.join("|")})`,new RegExp(`^${n}$`)}function iv(r,n){return!!((n==="v4"||!n)&&Jb.test(r)||(n==="v6"||!n)&&Pb.test(r))}function lv(r,n){if(!Fb.test(r))return!1;try{const[l]=r.split(".");if(!l)return!1;const s=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),o=JSON.parse(atob(s));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||n&&o.alg!==n)}catch{return!1}}function sv(r,n){return!!((n==="v4"||!n)&&Ib.test(r)||(n==="v6"||!n)&&Wb.test(r))}class Er extends Ve{_parse(n){if(this._def.coerce&&(n.data=String(n.data)),this._getType(n)!==fe.string){const f=this._getOrReturnCtx(n);return ie(f,{code:P.invalid_type,expected:fe.string,received:f.parsedType}),Ne}const s=new la;let o;for(const f of this._def.checks)if(f.kind==="min")n.data.length<f.value&&(o=this._getOrReturnCtx(n,o),ie(o,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")n.data.length>f.value&&(o=this._getOrReturnCtx(n,o),ie(o,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const d=n.data.length>f.value,h=n.data.length<f.value;(d||h)&&(o=this._getOrReturnCtx(n,o),d?ie(o,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):h&&ie(o,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")Xb.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"email",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")xu||(xu=new RegExp(Kb,"u")),xu.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"emoji",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")Yb.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"uuid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")$b.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"nanoid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")Hb.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"cuid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")Gb.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"cuid2",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")Zb.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"ulid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(n.data)}catch{o=this._getOrReturnCtx(n,o),ie(o,{validation:"url",code:P.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"regex",code:P.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?n.data=n.data.trim():f.kind==="includes"?n.data.includes(f.value,f.position)||(o=this._getOrReturnCtx(n,o),ie(o,{code:P.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?n.data=n.data.toLowerCase():f.kind==="toUpperCase"?n.data=n.data.toUpperCase():f.kind==="startsWith"?n.data.startsWith(f.value)||(o=this._getOrReturnCtx(n,o),ie(o,{code:P.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?n.data.endsWith(f.value)||(o=this._getOrReturnCtx(n,o),ie(o,{code:P.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?nv(f).test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{code:P.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?av.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{code:P.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?rv(f).test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{code:P.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?Qb.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"duration",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?iv(n.data,f.version)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"ip",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?lv(n.data,f.alg)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"jwt",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?sv(n.data,f.version)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"cidr",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?ev.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"base64",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?tv.test(n.data)||(o=this._getOrReturnCtx(n,o),ie(o,{validation:"base64url",code:P.invalid_string,message:f.message}),s.dirty()):Be.assertNever(f);return{status:s.value,value:n.data}}_regex(n,l,s){return this.refinement(o=>n.test(o),{validation:l,code:P.invalid_string,...pe.errToObj(s)})}_addCheck(n){return new Er({...this._def,checks:[...this._def.checks,n]})}email(n){return this._addCheck({kind:"email",...pe.errToObj(n)})}url(n){return this._addCheck({kind:"url",...pe.errToObj(n)})}emoji(n){return this._addCheck({kind:"emoji",...pe.errToObj(n)})}uuid(n){return this._addCheck({kind:"uuid",...pe.errToObj(n)})}nanoid(n){return this._addCheck({kind:"nanoid",...pe.errToObj(n)})}cuid(n){return this._addCheck({kind:"cuid",...pe.errToObj(n)})}cuid2(n){return this._addCheck({kind:"cuid2",...pe.errToObj(n)})}ulid(n){return this._addCheck({kind:"ulid",...pe.errToObj(n)})}base64(n){return this._addCheck({kind:"base64",...pe.errToObj(n)})}base64url(n){return this._addCheck({kind:"base64url",...pe.errToObj(n)})}jwt(n){return this._addCheck({kind:"jwt",...pe.errToObj(n)})}ip(n){return this._addCheck({kind:"ip",...pe.errToObj(n)})}cidr(n){return this._addCheck({kind:"cidr",...pe.errToObj(n)})}datetime(n){return typeof n=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:n}):this._addCheck({kind:"datetime",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,offset:(n==null?void 0:n.offset)??!1,local:(n==null?void 0:n.local)??!1,...pe.errToObj(n==null?void 0:n.message)})}date(n){return this._addCheck({kind:"date",message:n})}time(n){return typeof n=="string"?this._addCheck({kind:"time",precision:null,message:n}):this._addCheck({kind:"time",precision:typeof(n==null?void 0:n.precision)>"u"?null:n==null?void 0:n.precision,...pe.errToObj(n==null?void 0:n.message)})}duration(n){return this._addCheck({kind:"duration",...pe.errToObj(n)})}regex(n,l){return this._addCheck({kind:"regex",regex:n,...pe.errToObj(l)})}includes(n,l){return this._addCheck({kind:"includes",value:n,position:l==null?void 0:l.position,...pe.errToObj(l==null?void 0:l.message)})}startsWith(n,l){return this._addCheck({kind:"startsWith",value:n,...pe.errToObj(l)})}endsWith(n,l){return this._addCheck({kind:"endsWith",value:n,...pe.errToObj(l)})}min(n,l){return this._addCheck({kind:"min",value:n,...pe.errToObj(l)})}max(n,l){return this._addCheck({kind:"max",value:n,...pe.errToObj(l)})}length(n,l){return this._addCheck({kind:"length",value:n,...pe.errToObj(l)})}nonempty(n){return this.min(1,pe.errToObj(n))}trim(){return new Er({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Er({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Er({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(n=>n.kind==="datetime")}get isDate(){return!!this._def.checks.find(n=>n.kind==="date")}get isTime(){return!!this._def.checks.find(n=>n.kind==="time")}get isDuration(){return!!this._def.checks.find(n=>n.kind==="duration")}get isEmail(){return!!this._def.checks.find(n=>n.kind==="email")}get isURL(){return!!this._def.checks.find(n=>n.kind==="url")}get isEmoji(){return!!this._def.checks.find(n=>n.kind==="emoji")}get isUUID(){return!!this._def.checks.find(n=>n.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(n=>n.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(n=>n.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(n=>n.kind==="cuid2")}get isULID(){return!!this._def.checks.find(n=>n.kind==="ulid")}get isIP(){return!!this._def.checks.find(n=>n.kind==="ip")}get isCIDR(){return!!this._def.checks.find(n=>n.kind==="cidr")}get isBase64(){return!!this._def.checks.find(n=>n.kind==="base64")}get isBase64url(){return!!this._def.checks.find(n=>n.kind==="base64url")}get minLength(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n}get maxLength(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n}}Er.create=r=>new Er({checks:[],typeName:Se.ZodString,coerce:(r==null?void 0:r.coerce)??!1,...Oe(r)});function ov(r,n){const l=(r.toString().split(".")[1]||"").length,s=(n.toString().split(".")[1]||"").length,o=l>s?l:s,f=Number.parseInt(r.toFixed(o).replace(".","")),d=Number.parseInt(n.toFixed(o).replace(".",""));return f%d/10**o}class Hi extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(n){if(this._def.coerce&&(n.data=Number(n.data)),this._getType(n)!==fe.number){const f=this._getOrReturnCtx(n);return ie(f,{code:P.invalid_type,expected:fe.number,received:f.parsedType}),Ne}let s;const o=new la;for(const f of this._def.checks)f.kind==="int"?Be.isInteger(n.data)||(s=this._getOrReturnCtx(n,s),ie(s,{code:P.invalid_type,expected:"integer",received:"float",message:f.message}),o.dirty()):f.kind==="min"?(f.inclusive?n.data<f.value:n.data<=f.value)&&(s=this._getOrReturnCtx(n,s),ie(s,{code:P.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?n.data>f.value:n.data>=f.value)&&(s=this._getOrReturnCtx(n,s),ie(s,{code:P.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="multipleOf"?ov(n.data,f.value)!==0&&(s=this._getOrReturnCtx(n,s),ie(s,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):f.kind==="finite"?Number.isFinite(n.data)||(s=this._getOrReturnCtx(n,s),ie(s,{code:P.not_finite,message:f.message}),o.dirty()):Be.assertNever(f);return{status:o.value,value:n.data}}gte(n,l){return this.setLimit("min",n,!0,pe.toString(l))}gt(n,l){return this.setLimit("min",n,!1,pe.toString(l))}lte(n,l){return this.setLimit("max",n,!0,pe.toString(l))}lt(n,l){return this.setLimit("max",n,!1,pe.toString(l))}setLimit(n,l,s,o){return new Hi({...this._def,checks:[...this._def.checks,{kind:n,value:l,inclusive:s,message:pe.toString(o)}]})}_addCheck(n){return new Hi({...this._def,checks:[...this._def.checks,n]})}int(n){return this._addCheck({kind:"int",message:pe.toString(n)})}positive(n){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pe.toString(n)})}negative(n){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pe.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pe.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pe.toString(n)})}multipleOf(n,l){return this._addCheck({kind:"multipleOf",value:n,message:pe.toString(l)})}finite(n){return this._addCheck({kind:"finite",message:pe.toString(n)})}safe(n){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pe.toString(n)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pe.toString(n)})}get minValue(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n}get maxValue(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n}get isInt(){return!!this._def.checks.find(n=>n.kind==="int"||n.kind==="multipleOf"&&Be.isInteger(n.value))}get isFinite(){let n=null,l=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(l===null||s.value>l)&&(l=s.value):s.kind==="max"&&(n===null||s.value<n)&&(n=s.value)}return Number.isFinite(l)&&Number.isFinite(n)}}Hi.create=r=>new Hi({checks:[],typeName:Se.ZodNumber,coerce:(r==null?void 0:r.coerce)||!1,...Oe(r)});class Gi extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(n){if(this._def.coerce)try{n.data=BigInt(n.data)}catch{return this._getInvalidInput(n)}if(this._getType(n)!==fe.bigint)return this._getInvalidInput(n);let s;const o=new la;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?n.data<f.value:n.data<=f.value)&&(s=this._getOrReturnCtx(n,s),ie(s,{code:P.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?n.data>f.value:n.data>=f.value)&&(s=this._getOrReturnCtx(n,s),ie(s,{code:P.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="multipleOf"?n.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(n,s),ie(s,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):Be.assertNever(f);return{status:o.value,value:n.data}}_getInvalidInput(n){const l=this._getOrReturnCtx(n);return ie(l,{code:P.invalid_type,expected:fe.bigint,received:l.parsedType}),Ne}gte(n,l){return this.setLimit("min",n,!0,pe.toString(l))}gt(n,l){return this.setLimit("min",n,!1,pe.toString(l))}lte(n,l){return this.setLimit("max",n,!0,pe.toString(l))}lt(n,l){return this.setLimit("max",n,!1,pe.toString(l))}setLimit(n,l,s,o){return new Gi({...this._def,checks:[...this._def.checks,{kind:n,value:l,inclusive:s,message:pe.toString(o)}]})}_addCheck(n){return new Gi({...this._def,checks:[...this._def.checks,n]})}positive(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pe.toString(n)})}negative(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pe.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pe.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pe.toString(n)})}multipleOf(n,l){return this._addCheck({kind:"multipleOf",value:n,message:pe.toString(l)})}get minValue(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n}get maxValue(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n}}Gi.create=r=>new Gi({checks:[],typeName:Se.ZodBigInt,coerce:(r==null?void 0:r.coerce)??!1,...Oe(r)});class lm extends Ve{_parse(n){if(this._def.coerce&&(n.data=!!n.data),this._getType(n)!==fe.boolean){const s=this._getOrReturnCtx(n);return ie(s,{code:P.invalid_type,expected:fe.boolean,received:s.parsedType}),Ne}return ya(n.data)}}lm.create=r=>new lm({typeName:Se.ZodBoolean,coerce:(r==null?void 0:r.coerce)||!1,...Oe(r)});class ss extends Ve{_parse(n){if(this._def.coerce&&(n.data=new Date(n.data)),this._getType(n)!==fe.date){const f=this._getOrReturnCtx(n);return ie(f,{code:P.invalid_type,expected:fe.date,received:f.parsedType}),Ne}if(Number.isNaN(n.data.getTime())){const f=this._getOrReturnCtx(n);return ie(f,{code:P.invalid_date}),Ne}const s=new la;let o;for(const f of this._def.checks)f.kind==="min"?n.data.getTime()<f.value&&(o=this._getOrReturnCtx(n,o),ie(o,{code:P.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?n.data.getTime()>f.value&&(o=this._getOrReturnCtx(n,o),ie(o,{code:P.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):Be.assertNever(f);return{status:s.value,value:new Date(n.data.getTime())}}_addCheck(n){return new ss({...this._def,checks:[...this._def.checks,n]})}min(n,l){return this._addCheck({kind:"min",value:n.getTime(),message:pe.toString(l)})}max(n,l){return this._addCheck({kind:"max",value:n.getTime(),message:pe.toString(l)})}get minDate(){let n=null;for(const l of this._def.checks)l.kind==="min"&&(n===null||l.value>n)&&(n=l.value);return n!=null?new Date(n):null}get maxDate(){let n=null;for(const l of this._def.checks)l.kind==="max"&&(n===null||l.value<n)&&(n=l.value);return n!=null?new Date(n):null}}ss.create=r=>new ss({checks:[],coerce:(r==null?void 0:r.coerce)||!1,typeName:Se.ZodDate,...Oe(r)});class sm extends Ve{_parse(n){if(this._getType(n)!==fe.symbol){const s=this._getOrReturnCtx(n);return ie(s,{code:P.invalid_type,expected:fe.symbol,received:s.parsedType}),Ne}return ya(n.data)}}sm.create=r=>new sm({typeName:Se.ZodSymbol,...Oe(r)});class om extends Ve{_parse(n){if(this._getType(n)!==fe.undefined){const s=this._getOrReturnCtx(n);return ie(s,{code:P.invalid_type,expected:fe.undefined,received:s.parsedType}),Ne}return ya(n.data)}}om.create=r=>new om({typeName:Se.ZodUndefined,...Oe(r)});class um extends Ve{_parse(n){if(this._getType(n)!==fe.null){const s=this._getOrReturnCtx(n);return ie(s,{code:P.invalid_type,expected:fe.null,received:s.parsedType}),Ne}return ya(n.data)}}um.create=r=>new um({typeName:Se.ZodNull,...Oe(r)});class cm extends Ve{constructor(){super(...arguments),this._any=!0}_parse(n){return ya(n.data)}}cm.create=r=>new cm({typeName:Se.ZodAny,...Oe(r)});class fm extends Ve{constructor(){super(...arguments),this._unknown=!0}_parse(n){return ya(n.data)}}fm.create=r=>new fm({typeName:Se.ZodUnknown,...Oe(r)});class wr extends Ve{_parse(n){const l=this._getOrReturnCtx(n);return ie(l,{code:P.invalid_type,expected:fe.never,received:l.parsedType}),Ne}}wr.create=r=>new wr({typeName:Se.ZodNever,...Oe(r)});class dm extends Ve{_parse(n){if(this._getType(n)!==fe.undefined){const s=this._getOrReturnCtx(n);return ie(s,{code:P.invalid_type,expected:fe.void,received:s.parsedType}),Ne}return ya(n.data)}}dm.create=r=>new dm({typeName:Se.ZodVoid,...Oe(r)});class qa extends Ve{_parse(n){const{ctx:l,status:s}=this._processInputParams(n),o=this._def;if(l.parsedType!==fe.array)return ie(l,{code:P.invalid_type,expected:fe.array,received:l.parsedType}),Ne;if(o.exactLength!==null){const d=l.data.length>o.exactLength.value,h=l.data.length<o.exactLength.value;(d||h)&&(ie(l,{code:d?P.too_big:P.too_small,minimum:h?o.exactLength.value:void 0,maximum:d?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),s.dirty())}if(o.minLength!==null&&l.data.length<o.minLength.value&&(ie(l,{code:P.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&l.data.length>o.maxLength.value&&(ie(l,{code:P.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),l.common.async)return Promise.all([...l.data].map((d,h)=>o.type._parseAsync(new Cr(l,d,l.path,h)))).then(d=>la.mergeArray(s,d));const f=[...l.data].map((d,h)=>o.type._parseSync(new Cr(l,d,l.path,h)));return la.mergeArray(s,f)}get element(){return this._def.type}min(n,l){return new qa({...this._def,minLength:{value:n,message:pe.toString(l)}})}max(n,l){return new qa({...this._def,maxLength:{value:n,message:pe.toString(l)}})}length(n,l){return new qa({...this._def,exactLength:{value:n,message:pe.toString(l)}})}nonempty(n){return this.min(1,n)}}qa.create=(r,n)=>new qa({type:r,minLength:null,maxLength:null,exactLength:null,typeName:Se.ZodArray,...Oe(n)});function zn(r){if(r instanceof xt){const n={};for(const l in r.shape){const s=r.shape[l];n[l]=Dr.create(zn(s))}return new xt({...r._def,shape:()=>n})}else return r instanceof qa?new qa({...r._def,type:zn(r.element)}):r instanceof Dr?Dr.create(zn(r.unwrap())):r instanceof Vn?Vn.create(zn(r.unwrap())):r instanceof an?an.create(r.items.map(n=>zn(n))):r}class xt extends Ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const n=this._def.shape(),l=Be.objectKeys(n);return this._cached={shape:n,keys:l},this._cached}_parse(n){if(this._getType(n)!==fe.object){const p=this._getOrReturnCtx(n);return ie(p,{code:P.invalid_type,expected:fe.object,received:p.parsedType}),Ne}const{status:s,ctx:o}=this._processInputParams(n),{shape:f,keys:d}=this._getCached(),h=[];if(!(this._def.catchall instanceof wr&&this._def.unknownKeys==="strip"))for(const p in o.data)d.includes(p)||h.push(p);const y=[];for(const p of d){const x=f[p],N=o.data[p];y.push({key:{status:"valid",value:p},value:x._parse(new Cr(o,N,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof wr){const p=this._def.unknownKeys;if(p==="passthrough")for(const x of h)y.push({key:{status:"valid",value:x},value:{status:"valid",value:o.data[x]}});else if(p==="strict")h.length>0&&(ie(o,{code:P.unrecognized_keys,keys:h}),s.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const x of h){const N=o.data[x];y.push({key:{status:"valid",value:x},value:p._parse(new Cr(o,N,o.path,x)),alwaysSet:x in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const p=[];for(const x of y){const N=await x.key,C=await x.value;p.push({key:N,value:C,alwaysSet:x.alwaysSet})}return p}).then(p=>la.mergeObjectSync(s,p)):la.mergeObjectSync(s,y)}get shape(){return this._def.shape()}strict(n){return pe.errToObj,new xt({...this._def,unknownKeys:"strict",...n!==void 0?{errorMap:(l,s)=>{var f,d;const o=((d=(f=this._def).errorMap)==null?void 0:d.call(f,l,s).message)??s.defaultError;return l.code==="unrecognized_keys"?{message:pe.errToObj(n).message??o}:{message:o}}}:{}})}strip(){return new xt({...this._def,unknownKeys:"strip"})}passthrough(){return new xt({...this._def,unknownKeys:"passthrough"})}extend(n){return new xt({...this._def,shape:()=>({...this._def.shape(),...n})})}merge(n){return new xt({unknownKeys:n._def.unknownKeys,catchall:n._def.catchall,shape:()=>({...this._def.shape(),...n._def.shape()}),typeName:Se.ZodObject})}setKey(n,l){return this.augment({[n]:l})}catchall(n){return new xt({...this._def,catchall:n})}pick(n){const l={};for(const s of Be.objectKeys(n))n[s]&&this.shape[s]&&(l[s]=this.shape[s]);return new xt({...this._def,shape:()=>l})}omit(n){const l={};for(const s of Be.objectKeys(this.shape))n[s]||(l[s]=this.shape[s]);return new xt({...this._def,shape:()=>l})}deepPartial(){return zn(this)}partial(n){const l={};for(const s of Be.objectKeys(this.shape)){const o=this.shape[s];n&&!n[s]?l[s]=o:l[s]=o.optional()}return new xt({...this._def,shape:()=>l})}required(n){const l={};for(const s of Be.objectKeys(this.shape))if(n&&!n[s])l[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof Dr;)f=f._def.innerType;l[s]=f}return new xt({...this._def,shape:()=>l})}keyof(){return gm(Be.objectKeys(this.shape))}}xt.create=(r,n)=>new xt({shape:()=>r,unknownKeys:"strip",catchall:wr.create(),typeName:Se.ZodObject,...Oe(n)}),xt.strictCreate=(r,n)=>new xt({shape:()=>r,unknownKeys:"strict",catchall:wr.create(),typeName:Se.ZodObject,...Oe(n)}),xt.lazycreate=(r,n)=>new xt({shape:r,unknownKeys:"strip",catchall:wr.create(),typeName:Se.ZodObject,...Oe(n)});class os extends Ve{_parse(n){const{ctx:l}=this._processInputParams(n),s=this._def.options;function o(f){for(const h of f)if(h.result.status==="valid")return h.result;for(const h of f)if(h.result.status==="dirty")return l.common.issues.push(...h.ctx.common.issues),h.result;const d=f.map(h=>new Pa(h.ctx.common.issues));return ie(l,{code:P.invalid_union,unionErrors:d}),Ne}if(l.common.async)return Promise.all(s.map(async f=>{const d={...l,common:{...l.common,issues:[]},parent:null};return{result:await f._parseAsync({data:l.data,path:l.path,parent:d}),ctx:d}})).then(o);{let f;const d=[];for(const y of s){const p={...l,common:{...l.common,issues:[]},parent:null},x=y._parseSync({data:l.data,path:l.path,parent:p});if(x.status==="valid")return x;x.status==="dirty"&&!f&&(f={result:x,ctx:p}),p.common.issues.length&&d.push(p.common.issues)}if(f)return l.common.issues.push(...f.ctx.common.issues),f.result;const h=d.map(y=>new Pa(y));return ie(l,{code:P.invalid_union,unionErrors:h}),Ne}}get options(){return this._def.options}}os.create=(r,n)=>new os({options:r,typeName:Se.ZodUnion,...Oe(n)});function Nu(r,n){const l=_r(r),s=_r(n);if(r===n)return{valid:!0,data:r};if(l===fe.object&&s===fe.object){const o=Be.objectKeys(n),f=Be.objectKeys(r).filter(h=>o.indexOf(h)!==-1),d={...r,...n};for(const h of f){const y=Nu(r[h],n[h]);if(!y.valid)return{valid:!1};d[h]=y.data}return{valid:!0,data:d}}else if(l===fe.array&&s===fe.array){if(r.length!==n.length)return{valid:!1};const o=[];for(let f=0;f<r.length;f++){const d=r[f],h=n[f],y=Nu(d,h);if(!y.valid)return{valid:!1};o.push(y.data)}return{valid:!0,data:o}}else return l===fe.date&&s===fe.date&&+r==+n?{valid:!0,data:r}:{valid:!1}}class us extends Ve{_parse(n){const{status:l,ctx:s}=this._processInputParams(n),o=(f,d)=>{if(tm(f)||tm(d))return Ne;const h=Nu(f.value,d.value);return h.valid?((am(f)||am(d))&&l.dirty(),{status:l.value,value:h.data}):(ie(s,{code:P.invalid_intersection_types}),Ne)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([f,d])=>o(f,d)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}us.create=(r,n,l)=>new us({left:r,right:n,typeName:Se.ZodIntersection,...Oe(l)});class an extends Ve{_parse(n){const{status:l,ctx:s}=this._processInputParams(n);if(s.parsedType!==fe.array)return ie(s,{code:P.invalid_type,expected:fe.array,received:s.parsedType}),Ne;if(s.data.length<this._def.items.length)return ie(s,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ne;!this._def.rest&&s.data.length>this._def.items.length&&(ie(s,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const f=[...s.data].map((d,h)=>{const y=this._def.items[h]||this._def.rest;return y?y._parse(new Cr(s,d,s.path,h)):null}).filter(d=>!!d);return s.common.async?Promise.all(f).then(d=>la.mergeArray(l,d)):la.mergeArray(l,f)}get items(){return this._def.items}rest(n){return new an({...this._def,rest:n})}}an.create=(r,n)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new an({items:r,typeName:Se.ZodTuple,rest:null,...Oe(n)})};class mm extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:l,ctx:s}=this._processInputParams(n);if(s.parsedType!==fe.map)return ie(s,{code:P.invalid_type,expected:fe.map,received:s.parsedType}),Ne;const o=this._def.keyType,f=this._def.valueType,d=[...s.data.entries()].map(([h,y],p)=>({key:o._parse(new Cr(s,h,s.path,[p,"key"])),value:f._parse(new Cr(s,y,s.path,[p,"value"]))}));if(s.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const y of d){const p=await y.key,x=await y.value;if(p.status==="aborted"||x.status==="aborted")return Ne;(p.status==="dirty"||x.status==="dirty")&&l.dirty(),h.set(p.value,x.value)}return{status:l.value,value:h}})}else{const h=new Map;for(const y of d){const p=y.key,x=y.value;if(p.status==="aborted"||x.status==="aborted")return Ne;(p.status==="dirty"||x.status==="dirty")&&l.dirty(),h.set(p.value,x.value)}return{status:l.value,value:h}}}}mm.create=(r,n,l)=>new mm({valueType:n,keyType:r,typeName:Se.ZodMap,...Oe(l)});class Zi extends Ve{_parse(n){const{status:l,ctx:s}=this._processInputParams(n);if(s.parsedType!==fe.set)return ie(s,{code:P.invalid_type,expected:fe.set,received:s.parsedType}),Ne;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(ie(s,{code:P.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),l.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(ie(s,{code:P.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),l.dirty());const f=this._def.valueType;function d(y){const p=new Set;for(const x of y){if(x.status==="aborted")return Ne;x.status==="dirty"&&l.dirty(),p.add(x.value)}return{status:l.value,value:p}}const h=[...s.data.values()].map((y,p)=>f._parse(new Cr(s,y,s.path,p)));return s.common.async?Promise.all(h).then(y=>d(y)):d(h)}min(n,l){return new Zi({...this._def,minSize:{value:n,message:pe.toString(l)}})}max(n,l){return new Zi({...this._def,maxSize:{value:n,message:pe.toString(l)}})}size(n,l){return this.min(n,l).max(n,l)}nonempty(n){return this.min(1,n)}}Zi.create=(r,n)=>new Zi({valueType:r,minSize:null,maxSize:null,typeName:Se.ZodSet,...Oe(n)});class hm extends Ve{get schema(){return this._def.getter()}_parse(n){const{ctx:l}=this._processInputParams(n);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}hm.create=(r,n)=>new hm({getter:r,typeName:Se.ZodLazy,...Oe(n)});class pm extends Ve{_parse(n){if(n.data!==this._def.value){const l=this._getOrReturnCtx(n);return ie(l,{received:l.data,code:P.invalid_literal,expected:this._def.value}),Ne}return{status:"valid",value:n.data}}get value(){return this._def.value}}pm.create=(r,n)=>new pm({value:r,typeName:Se.ZodLiteral,...Oe(n)});function gm(r,n){return new kn({values:r,typeName:Se.ZodEnum,...Oe(n)})}class kn extends Ve{_parse(n){if(typeof n.data!="string"){const l=this._getOrReturnCtx(n),s=this._def.values;return ie(l,{expected:Be.joinValues(s),received:l.parsedType,code:P.invalid_type}),Ne}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(n.data)){const l=this._getOrReturnCtx(n),s=this._def.values;return ie(l,{received:l.data,code:P.invalid_enum_value,options:s}),Ne}return ya(n.data)}get options(){return this._def.values}get enum(){const n={};for(const l of this._def.values)n[l]=l;return n}get Values(){const n={};for(const l of this._def.values)n[l]=l;return n}get Enum(){const n={};for(const l of this._def.values)n[l]=l;return n}extract(n,l=this._def){return kn.create(n,{...this._def,...l})}exclude(n,l=this._def){return kn.create(this.options.filter(s=>!n.includes(s)),{...this._def,...l})}}kn.create=gm;class ym extends Ve{_parse(n){const l=Be.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(n);if(s.parsedType!==fe.string&&s.parsedType!==fe.number){const o=Be.objectValues(l);return ie(s,{expected:Be.joinValues(o),received:s.parsedType,code:P.invalid_type}),Ne}if(this._cache||(this._cache=new Set(Be.getValidEnumValues(this._def.values))),!this._cache.has(n.data)){const o=Be.objectValues(l);return ie(s,{received:s.data,code:P.invalid_enum_value,options:o}),Ne}return ya(n.data)}get enum(){return this._def.values}}ym.create=(r,n)=>new ym({values:r,typeName:Se.ZodNativeEnum,...Oe(n)});class cs extends Ve{unwrap(){return this._def.type}_parse(n){const{ctx:l}=this._processInputParams(n);if(l.parsedType!==fe.promise&&l.common.async===!1)return ie(l,{code:P.invalid_type,expected:fe.promise,received:l.parsedType}),Ne;const s=l.parsedType===fe.promise?l.data:Promise.resolve(l.data);return ya(s.then(o=>this._def.type.parseAsync(o,{path:l.path,errorMap:l.common.contextualErrorMap})))}}cs.create=(r,n)=>new cs({type:r,typeName:Se.ZodPromise,...Oe(n)});class jn extends Ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(n){const{status:l,ctx:s}=this._processInputParams(n),o=this._def.effect||null,f={addIssue:d=>{ie(s,d),d.fatal?l.abort():l.dirty()},get path(){return s.path}};if(f.addIssue=f.addIssue.bind(f),o.type==="preprocess"){const d=o.transform(s.data,f);if(s.common.async)return Promise.resolve(d).then(async h=>{if(l.value==="aborted")return Ne;const y=await this._def.schema._parseAsync({data:h,path:s.path,parent:s});return y.status==="aborted"?Ne:y.status==="dirty"||l.value==="dirty"?qi(y.value):y});{if(l.value==="aborted")return Ne;const h=this._def.schema._parseSync({data:d,path:s.path,parent:s});return h.status==="aborted"?Ne:h.status==="dirty"||l.value==="dirty"?qi(h.value):h}}if(o.type==="refinement"){const d=h=>{const y=o.refinement(h,f);if(s.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(s.common.async===!1){const h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return h.status==="aborted"?Ne:(h.status==="dirty"&&l.dirty(),d(h.value),{status:l.value,value:h.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>h.status==="aborted"?Ne:(h.status==="dirty"&&l.dirty(),d(h.value).then(()=>({status:l.value,value:h.value}))))}if(o.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Mn(d))return Ne;const h=o.transform(d.value,f);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:h}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>Mn(d)?Promise.resolve(o.transform(d.value,f)).then(h=>({status:l.value,value:h})):Ne);Be.assertNever(o)}}jn.create=(r,n,l)=>new jn({schema:r,typeName:Se.ZodEffects,effect:n,...Oe(l)}),jn.createWithPreprocess=(r,n,l)=>new jn({schema:n,effect:{type:"preprocess",transform:r},typeName:Se.ZodEffects,...Oe(l)});class Dr extends Ve{_parse(n){return this._getType(n)===fe.undefined?ya(void 0):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Dr.create=(r,n)=>new Dr({innerType:r,typeName:Se.ZodOptional,...Oe(n)});class Vn extends Ve{_parse(n){return this._getType(n)===fe.null?ya(null):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Vn.create=(r,n)=>new Vn({innerType:r,typeName:Se.ZodNullable,...Oe(n)});class Su extends Ve{_parse(n){const{ctx:l}=this._processInputParams(n);let s=l.data;return l.parsedType===fe.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}Su.create=(r,n)=>new Su({innerType:r,typeName:Se.ZodDefault,defaultValue:typeof n.default=="function"?n.default:()=>n.default,...Oe(n)});class _u extends Ve{_parse(n){const{ctx:l}=this._processInputParams(n),s={...l,common:{...l.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return ls(o)?o.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Pa(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Pa(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}_u.create=(r,n)=>new _u({innerType:r,typeName:Se.ZodCatch,catchValue:typeof n.catch=="function"?n.catch:()=>n.catch,...Oe(n)});class bm extends Ve{_parse(n){if(this._getType(n)!==fe.nan){const s=this._getOrReturnCtx(n);return ie(s,{code:P.invalid_type,expected:fe.nan,received:s.parsedType}),Ne}return{status:"valid",value:n.data}}}bm.create=r=>new bm({typeName:Se.ZodNaN,...Oe(r)});class uv extends Ve{_parse(n){const{ctx:l}=this._processInputParams(n),s=l.data;return this._def.type._parse({data:s,path:l.path,parent:l})}unwrap(){return this._def.type}}class Cu extends Ve{_parse(n){const{status:l,ctx:s}=this._processInputParams(n);if(s.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?Ne:f.status==="dirty"?(l.dirty(),qi(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?Ne:o.status==="dirty"?(l.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(n,l){return new Cu({in:n,out:l,typeName:Se.ZodPipeline})}}class Eu extends Ve{_parse(n){const l=this._def.innerType._parse(n),s=o=>(Mn(o)&&(o.value=Object.freeze(o.value)),o);return ls(l)?l.then(o=>s(o)):s(l)}unwrap(){return this._def.innerType}}Eu.create=(r,n)=>new Eu({innerType:r,typeName:Se.ZodReadonly,...Oe(n)});var Se;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(Se||(Se={}));const vm=Er.create;wr.create,qa.create;const cv=xt.create;os.create,us.create,an.create,kn.create,cs.create,Dr.create,Vn.create;const fv=cv({securityNumber:vm({required_error:"CPF é obrigatório."}).refine(r=>r.replace(/\D/g,"").length>=11,"CPF deve conter no mínimo 11 caracteres.").refine(r=>{const n=r.replace(/\D/g,"");return!!Number(n)},"CPF deve conter apenas números."),coupon:vm({required_error:"Cupom / ID do Cartão obrigatório."}).optional()});var wu={exports:{}};/*!
42
50
  Copyright (c) 2018 Jed Watson.
43
51
  Licensed under the MIT License (MIT), see
44
52
  http://jedwatson.github.io/classnames
45
- */var jm;function wb(){return jm||(jm=1,(function(n){(function(){var r={}.hasOwnProperty;function i(){for(var f="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(f=u(f,s(h)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return i.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var h in f)r.call(f,h)&&f[h]&&(d=u(d,h));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(i.default=i,n.exports=i):window.classNames=i})()})(Gu)),Gu.exports}var Cb=wb();const ot=pr(Cb);var Ab="C:\\Dev\\agrada\\library-pbm\\src\\components\\UI\\Button\\index.tsx";function fn(n){return nt.createElement("button",{...n,className:ot("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors",n.className),style:{...n.style},__self:this,__source:{fileName:Ab,lineNumber:10,columnNumber:5}},n.children)}const Bm=n=>{let r;const i=new Set,s=(p,_)=>{const b=typeof p=="function"?p(r):p;if(!Object.is(b,r)){const C=r;r=_??(typeof b!="object"||b===null)?b:Object.assign({},r,b),i.forEach(N=>N(r,C))}},u=()=>r,h={setState:s,getState:u,getInitialState:()=>y,subscribe:p=>(i.add(p),()=>i.delete(p))},y=r=n(s,u,h);return h},Zu=(n=>n?Bm(n):Bm),Tb=n=>n;function Yu(n,r=Tb){const i=nt.useSyncExternalStore(n.subscribe,nt.useCallback(()=>r(n.getState()),[n,r]),nt.useCallback(()=>r(n.getInitialState()),[n,r]));return nt.useDebugValue(i),i}const Lm=n=>{const r=Zu(n),i=s=>Yu(r,s);return Object.assign(i,r),i},$u=(n=>n?Lm(n):Lm),Rb={securityNumber:"",requestId:"",cardID:"",state:"isEmpty",availableDiscountSelected:{quantity:0,discount:{unit:0,total:0},totalPrice:0,grossPrice:0},benefitsEnabled:!0,benefitsList:null,targetProduct:null,campaign:"pbm_campaign",isAuthenticatedShopper:!1,customLoginUrl:"/login"},Vm=Zu(n=>({...Rb,setSecurityNumber:r=>n({securityNumber:r}),setRequestId:r=>n({requestId:r}),setState:r=>n({state:r}),setTargetProduct:r=>n({targetProduct:r}),setAvailableDiscountSelected:r=>n({availableDiscountSelected:r}),setUrlAcceptTerms:r=>n({urlAcceptTerms:r}),setUrlRegisterIndustry:r=>n({urlRegisterIndustry:r}),setIsAuthenticatedShopper:r=>n({isAuthenticatedShopper:r}),setCustomLoginUrl:r=>n({customLoginUrl:r}),setCardID:r=>n({cardID:r}),setBenefitsEnabled:r=>n({benefitsEnabled:r}),setBenefitsList:r=>n({benefitsList:r})})),Ob=()=>({getState:()=>{const n=Vm.getState(),{setSecurityNumber:r,setState:i,setAvailableDiscountSelected:s,setTargetProduct:u,setUrlAcceptTerms:f,setUrlRegisterIndustry:d,setIsAuthenticatedShopper:h,setCustomLoginUrl:y,setCardID:p,setBenefitsEnabled:_,setBenefitsList:b,setRequestId:C,requestId:N,benefitsEnabled:U,benefitsList:E,...q}=n;if(!n.targetProduct)return{...q,targetProduct:null};const{requestedQuantity:P,discountMaxNewPatient:F,allowsAdhesion:ae,comboId:W,discountValueIndustry:B,authorizer:Q,grossPrice:K,industryCompanyCode:Se,pointing:ze,productLink:Ie,requestCoupon:ye,requestHolderId:v,suggestedPrice:Y,suggestedPriceValue:$,status:ie,returnCode:R,...X}=n.targetProduct;return{...q,targetProduct:X}}});function ta(n){return Yu(Vm,(r=>r))}var li=n=>n.type==="checkbox",yr=n=>n instanceof Date,aa=n=>n==null;const qm=n=>typeof n=="object";var yt=n=>!aa(n)&&!Array.isArray(n)&&qm(n)&&!yr(n),zb=n=>yt(n)&&n.target?li(n.target)?n.target.checked:n.target.value:n,Hm=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,kb=(n,r)=>n.has(Hm(r)),Db=n=>{const r=n.constructor&&n.constructor.prototype;return yt(r)&&r.hasOwnProperty("isPrototypeOf")},Qu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ot(n){if(n instanceof Date)return new Date(n);const r=typeof FileList<"u"&&n instanceof FileList;if(Qu&&(n instanceof Blob||r))return n;const i=Array.isArray(n);if(!i&&!(yt(n)&&Db(n)))return n;const s=i?[]:Object.create(Object.getPrototypeOf(n));for(const u in n)Object.prototype.hasOwnProperty.call(n,u)&&(s[u]=Ot(n[u]));return s}var As=n=>/^\w*$/.test(n),dt=n=>n===void 0,Xu=n=>Array.isArray(n)?n.filter(Boolean):[],Fu=n=>Xu(n.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(n,r,i)=>{if(!r||!yt(n))return i;const s=(As(r)?[r]:Fu(r)).reduce((u,f)=>aa(u)?u:u[f],n);return dt(s)||s===n?dt(n[r])?i:n[r]:s},Ka=n=>typeof n=="boolean",Ha=n=>typeof n=="function",Je=(n,r,i)=>{let s=-1;const u=As(r)?[r]:Fu(r),f=u.length,d=f-1;for(;++s<f;){const h=u[s];let y=i;if(s!==d){const p=n[h];y=yt(p)||Array.isArray(p)?p:isNaN(+u[s+1])?{}:[]}if(h==="__proto__"||h==="constructor"||h==="prototype")return;n[h]=y,n=n[h]}};const Wr={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Ga={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Za={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ku="form",Gm="root",Mb=nt.createContext(null);Mb.displayName="HookFormControlContext";var Ub=(n,r,i,s=!0)=>{const u={defaultValues:r._defaultValues};for(const f in n)Object.defineProperty(u,f,{get:()=>{const d=f;return r._proxyFormState[d]!==Ga.all&&(r._proxyFormState[d]=!s||Ga.all),n[d]}});return u};const jb=typeof window<"u"?nt.useLayoutEffect:nt.useEffect;var Xt=n=>typeof n=="string",Bb=(n,r,i,s,u)=>Xt(n)?(s&&r.watch.add(n),oe(i,n,u)):Array.isArray(n)?n.map(f=>(s&&r.watch.add(f),oe(i,f))):(s&&(r.watchAll=!0),i),Ju=n=>aa(n)||!qm(n);function Vn(n,r,i=new WeakSet){if(Ju(n)||Ju(r))return Object.is(n,r);if(yr(n)&&yr(r))return Object.is(n.getTime(),r.getTime());const s=Object.keys(n),u=Object.keys(r);if(s.length!==u.length)return!1;if(i.has(n)||i.has(r))return!0;i.add(n),i.add(r);for(const f of s){const d=n[f];if(!u.includes(f))return!1;if(f!=="ref"){const h=r[f];if(yr(d)&&yr(h)||yt(d)&&yt(h)||Array.isArray(d)&&Array.isArray(h)?!Vn(d,h,i):!Object.is(d,h))return!1}}return!0}const Lb=nt.createContext(null);Lb.displayName="HookFormContext";var Pu=(n,r,i,s,u)=>r?{...i[n],types:{...i[n]&&i[n].types?i[n].types:{},[s]:u||!0}}:{},ii=n=>Array.isArray(n)?n:[n],Zm=()=>{let n=[];return{get observers(){return n},next:u=>{for(const f of n)f.next&&f.next(u)},subscribe:u=>(n.push(u),{unsubscribe:()=>{n=n.filter(f=>f!==u)}}),unsubscribe:()=>{n=[]}}};function Ym(n,r){const i={};for(const s in n)if(n.hasOwnProperty(s)){const u=n[s],f=r[s];if(u&&yt(u)&&f){const d=Ym(u,f);yt(d)&&(i[s]=d)}else n[s]&&(i[s]=f)}return i}var Ft=n=>yt(n)&&!Object.keys(n).length,Iu=n=>n.type==="file",Ts=n=>{if(!Qu)return!1;const r=n?n.ownerDocument:0;return n instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},$m=n=>n.type==="select-multiple",Wu=n=>n.type==="radio",Vb=n=>Wu(n)||li(n),ec=n=>Ts(n)&&n.isConnected;function qb(n,r){const i=r.slice(0,-1).length;let s=0;for(;s<i;)n=dt(n)?s++:n[r[s++]];return n}function Hb(n){for(const r in n)if(n.hasOwnProperty(r)&&!dt(n[r]))return!1;return!0}function St(n,r){const i=Array.isArray(r)?r:As(r)?[r]:Fu(r),s=i.length===1?n:qb(n,i),u=i.length-1,f=i[u];return s&&delete s[f],u!==0&&(yt(s)&&Ft(s)||Array.isArray(s)&&Hb(s))&&St(n,i.slice(0,-1)),n}var Gb=n=>{for(const r in n)if(Ha(n[r]))return!0;return!1};function Qm(n){return Array.isArray(n)||yt(n)&&!Gb(n)}function tc(n,r={}){for(const i in n){const s=n[i];Qm(s)?(r[i]=Array.isArray(s)?[]:{},tc(s,r[i])):dt(s)||(r[i]=!0)}return r}function el(n,r,i){i||(i=tc(r));for(const s in n){const u=n[s];if(Qm(u))dt(r)||Ju(i[s])?i[s]=tc(u,Array.isArray(u)?[]:{}):el(u,aa(r)?{}:r[s],i[s]);else{const f=r[s];i[s]=!Vn(u,f)}}return i}const Xm={value:!1,isValid:!1},Fm={value:!0,isValid:!0};var Km=n=>{if(Array.isArray(n)){if(n.length>1){const r=n.filter(i=>i&&i.checked&&!i.disabled).map(i=>i.value);return{value:r,isValid:!!r.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!dt(n[0].attributes.value)?dt(n[0].value)||n[0].value===""?Fm:{value:n[0].value,isValid:!0}:Fm:Xm}return Xm},Jm=(n,{valueAsNumber:r,valueAsDate:i,setValueAs:s})=>dt(n)?n:r?n===""?NaN:n&&+n:i&&Xt(n)?new Date(n):s?s(n):n;const Pm={isValid:!1,value:null};var Im=n=>Array.isArray(n)?n.reduce((r,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:r,Pm):Pm;function Wm(n){const r=n.ref;return Iu(r)?r.files:Wu(r)?Im(n.refs).value:$m(r)?[...r.selectedOptions].map(({value:i})=>i):li(r)?Km(n.refs).value:Jm(dt(r.value)?n.ref.value:r.value,n)}var Zb=(n,r,i,s)=>{const u={};for(const f of n){const d=oe(r,f);d&&Je(u,f,d._f)}return{criteriaMode:i,names:[...n],fields:u,shouldUseNativeValidation:s}},Rs=n=>n instanceof RegExp,si=n=>dt(n)?n:Rs(n)?n.source:yt(n)?Rs(n.value)?n.value.source:n.value:n,eh=n=>({isOnSubmit:!n||n===Ga.onSubmit,isOnBlur:n===Ga.onBlur,isOnChange:n===Ga.onChange,isOnAll:n===Ga.all,isOnTouch:n===Ga.onTouched});const th="AsyncFunction";var Yb=n=>!!n&&!!n.validate&&!!(Ha(n.validate)&&n.validate.constructor.name===th||yt(n.validate)&&Object.values(n.validate).find(r=>r.constructor.name===th)),$b=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),ah=(n,r,i)=>!i&&(r.watchAll||r.watch.has(n)||[...r.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const oi=(n,r,i,s)=>{for(const u of i||Object.keys(n)){const f=oe(n,u);if(f){const{_f:d,...h}=f;if(d){if(d.refs&&d.refs[0]&&r(d.refs[0],u)&&!s)return!0;if(d.ref&&r(d.ref,d.name)&&!s)return!0;if(oi(h,r))break}else if(yt(h)&&oi(h,r))break}}};function nh(n,r,i){const s=oe(n,i);if(s||As(i))return{error:s,name:i};const u=i.split(".");for(;u.length;){const f=u.join("."),d=oe(r,f),h=oe(n,f);if(d&&!Array.isArray(d)&&i!==f)return{name:i};if(h&&h.type)return{name:f,error:h};if(h&&h.root&&h.root.type)return{name:`${f}.root`,error:h.root};u.pop()}return{name:i}}var Qb=(n,r,i,s)=>{i(n);const{name:u,...f}=n;return Ft(f)||Object.keys(f).length>=Object.keys(r).length||Object.keys(f).find(d=>r[d]===(!s||Ga.all))},Xb=(n,r,i)=>!n||!r||n===r||ii(n).some(s=>s&&(i?s===r:s.startsWith(r)||r.startsWith(s))),Fb=(n,r,i,s,u)=>u.isOnAll?!1:!i&&u.isOnTouch?!(r||n):(i?s.isOnBlur:u.isOnBlur)?!n:(i?s.isOnChange:u.isOnChange)?n:!0,Kb=(n,r)=>!Xu(oe(n,r)).length&&St(n,r),Jb=(n,r,i)=>{const s=ii(oe(n,i));return Je(s,Gm,r[i]),Je(n,i,s),n};function rh(n,r,i="validate"){if(Xt(n)||Array.isArray(n)&&n.every(Xt)||Ka(n)&&!n)return{type:i,message:Xt(n)?n:"",ref:r}}var tl=n=>yt(n)&&!Rs(n)?n:{value:n,message:""},lh=async(n,r,i,s,u,f)=>{const{ref:d,refs:h,required:y,maxLength:p,minLength:_,min:b,max:C,pattern:N,validate:U,name:E,valueAsNumber:q,mount:P}=n._f,F=oe(i,E);if(!P||r.has(E))return{};const ae=h?h[0]:d,W=v=>{u&&ae.reportValidity&&(ae.setCustomValidity(Ka(v)?"":v||""),ae.reportValidity())},B={},Q=Wu(d),K=li(d),Se=Q||K,ze=(q||Iu(d))&&dt(d.value)&&dt(F)||Ts(d)&&d.value===""||F===""||Array.isArray(F)&&!F.length,Ie=Pu.bind(null,E,s,B),ye=(v,Y,$,ie=Za.maxLength,R=Za.minLength)=>{const X=v?Y:$;B[E]={type:v?ie:R,message:X,ref:d,...Ie(v?ie:R,X)}};if(f?!Array.isArray(F)||!F.length:y&&(!Se&&(ze||aa(F))||Ka(F)&&!F||K&&!Km(h).isValid||Q&&!Im(h).isValid)){const{value:v,message:Y}=Xt(y)?{value:!!y,message:y}:tl(y);if(v&&(B[E]={type:Za.required,message:Y,ref:ae,...Ie(Za.required,Y)},!s))return W(Y),B}if(!ze&&(!aa(b)||!aa(C))){let v,Y;const $=tl(C),ie=tl(b);if(!aa(F)&&!isNaN(F)){const R=d.valueAsNumber||F&&+F;aa($.value)||(v=R>$.value),aa(ie.value)||(Y=R<ie.value)}else{const R=d.valueAsDate||new Date(F),X=Le=>new Date(new Date().toDateString()+" "+Le),se=d.type=="time",Te=d.type=="week";Xt($.value)&&F&&(v=se?X(F)>X($.value):Te?F>$.value:R>new Date($.value)),Xt(ie.value)&&F&&(Y=se?X(F)<X(ie.value):Te?F<ie.value:R<new Date(ie.value))}if((v||Y)&&(ye(!!v,$.message,ie.message,Za.max,Za.min),!s))return W(B[E].message),B}if((p||_)&&!ze&&(Xt(F)||f&&Array.isArray(F))){const v=tl(p),Y=tl(_),$=!aa(v.value)&&F.length>+v.value,ie=!aa(Y.value)&&F.length<+Y.value;if(($||ie)&&(ye($,v.message,Y.message),!s))return W(B[E].message),B}if(N&&!ze&&Xt(F)){const{value:v,message:Y}=tl(N);if(Rs(v)&&!F.match(v)&&(B[E]={type:Za.pattern,message:Y,ref:d,...Ie(Za.pattern,Y)},!s))return W(Y),B}if(U){if(Ha(U)){const v=await U(F,i),Y=rh(v,ae);if(Y&&(B[E]={...Y,...Ie(Za.validate,Y.message)},!s))return W(Y.message),B}else if(yt(U)){let v={};for(const Y in U){if(!Ft(v)&&!s)break;const $=rh(await U[Y](F,i),ae,Y);$&&(v={...$,...Ie(Y,$.message)},W($.message),s&&(B[E]=v))}if(!Ft(v)&&(B[E]={ref:ae,...v},!s))return B}}return W(!0),B};const Pb={mode:Ga.onSubmit,reValidateMode:Ga.onChange,shouldFocusError:!0};function Ib(n={}){let r={...Pb,...n},i={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ha(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},u=yt(r.defaultValues)||yt(r.values)?Ot(r.defaultValues||r.values)||{}:{},f=r.shouldUnregister?{}:Ot(u),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},h={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},y,p=0;const _={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},b={..._};let C={...b};const N={array:Zm(),state:Zm()},U=r.criteriaMode===Ga.all,E=x=>O=>{clearTimeout(p),p=setTimeout(x,O)},q=async x=>{if(!d.keepIsValid&&!r.disabled&&(b.isValid||C.isValid||x)){let O;r.resolver?(O=Ft((await Se()).errors),P()):O=await ye({fields:s,onlyCheckValid:!0,eventType:Wr.VALID}),O!==i.isValid&&N.state.next({isValid:O})}},P=(x,O)=>{!r.disabled&&(b.isValidating||b.validatingFields||C.isValidating||C.validatingFields)&&((x||Array.from(h.mount)).forEach(D=>{D&&(O?Je(i.validatingFields,D,O):St(i.validatingFields,D))}),N.state.next({validatingFields:i.validatingFields,isValidating:!Ft(i.validatingFields)}))},F=(x,O=[],D,re,I=!0,ee=!0)=>{if(re&&D&&!r.disabled){if(d.action=!0,ee&&Array.isArray(oe(s,x))){const fe=D(oe(s,x),re.argA,re.argB);I&&Je(s,x,fe)}if(ee&&Array.isArray(oe(i.errors,x))){const fe=D(oe(i.errors,x),re.argA,re.argB);I&&Je(i.errors,x,fe),Kb(i.errors,x)}if((b.touchedFields||C.touchedFields)&&ee&&Array.isArray(oe(i.touchedFields,x))){const fe=D(oe(i.touchedFields,x),re.argA,re.argB);I&&Je(i.touchedFields,x,fe)}if(b.dirtyFields||C.dirtyFields){const fe=el(u,f),xe=Hm(x);Je(i.dirtyFields,xe,oe(fe,xe))}N.state.next({name:x,isDirty:Y(x,O),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else Je(f,x,O)},ae=(x,O)=>{Je(i.errors,x,O),N.state.next({errors:i.errors})},W=x=>{i.errors=x,N.state.next({errors:i.errors,isValid:!1})},B=(x,O,D,re)=>{const I=oe(s,x);if(I){const ee=oe(f,x,dt(D)?oe(u,x):D);dt(ee)||re&&re.defaultChecked||O?Je(f,x,O?ee:Wm(I._f)):R(x,ee),d.mount&&!d.action&&q()}},Q=(x,O,D,re,I)=>{let ee=!1,fe=!1;const xe={name:x};if(!r.disabled){if(!D||re){(b.isDirty||C.isDirty)&&(fe=i.isDirty,i.isDirty=xe.isDirty=Y(),ee=fe!==xe.isDirty);const Ve=Vn(oe(u,x),O);fe=!!oe(i.dirtyFields,x),Ve?St(i.dirtyFields,x):Je(i.dirtyFields,x,!0),xe.dirtyFields=i.dirtyFields,ee=ee||(b.dirtyFields||C.dirtyFields)&&fe!==!Ve}if(D){const Ve=oe(i.touchedFields,x);Ve||(Je(i.touchedFields,x,D),xe.touchedFields=i.touchedFields,ee=ee||(b.touchedFields||C.touchedFields)&&Ve!==D)}ee&&I&&N.state.next(xe)}return ee?xe:{}},K=(x,O,D,re)=>{const I=oe(i.errors,x),ee=(b.isValid||C.isValid)&&Ka(O)&&i.isValid!==O;if(r.delayError&&D?(y=E(()=>ae(x,D)),y(r.delayError)):(clearTimeout(p),y=null,D?Je(i.errors,x,D):St(i.errors,x)),(D?!Vn(I,D):I)||!Ft(re)||ee){const fe={...re,...ee&&Ka(O)?{isValid:O}:{},errors:i.errors,name:x};i={...i,...fe},N.state.next(fe)}},Se=async x=>(P(x,!0),await r.resolver(f,r.context,Zb(x||h.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),ze=async x=>{const{errors:O}=await Se(x);if(P(x),x)for(const D of x){const re=oe(O,D);re?Je(i.errors,D,re):St(i.errors,D)}else i.errors=O;return O},Ie=async({name:x,eventType:O})=>{if(n.validate){const D=await n.validate({formValues:f,formState:i,name:x,eventType:O});if(yt(D))for(const re in D)D[re]&&ve(`${Ku}.${re}`,{message:Xt(D.message)?D.message:"",type:Za.validate});else Xt(D)||!D?ve(Ku,{message:D||"",type:Za.validate}):ue(Ku);return D}return!0},ye=async({fields:x,onlyCheckValid:O,name:D,eventType:re,context:I={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(I.runRootValidation=!0,!await Ie({name:D,eventType:re})&&(I.valid=!1,O)))return I.valid;for(const ee in x){const fe=x[ee];if(fe){const{_f:xe,...Ve}=fe;if(xe){const It=h.array.has(xe.name),Ra=fe._f&&Yb(fe._f);Ra&&b.validatingFields&&P([xe.name],!0);const wt=await lh(fe,h.disabled,f,U,r.shouldUseNativeValidation&&!O,It);if(Ra&&b.validatingFields&&P([xe.name]),wt[xe.name]&&(I.valid=!1,O)||(!O&&(oe(wt,xe.name)?It?Jb(i.errors,wt,xe.name):Je(i.errors,xe.name,wt[xe.name]):St(i.errors,xe.name)),n.shouldUseNativeValidation&&wt[xe.name]))break}!Ft(Ve)&&await ye({context:I,onlyCheckValid:O,fields:Ve,name:ee,eventType:re})}}return I.valid},v=()=>{for(const x of h.unMount){const O=oe(s,x);O&&(O._f.refs?O._f.refs.every(D=>!ec(D)):!ec(O._f.ref))&&lt(x)}h.unMount=new Set},Y=(x,O)=>!r.disabled&&(x&&O&&Je(f,x,O),!Vn(Z(),u)),$=(x,O,D)=>Bb(x,h,{...d.mount?f:dt(O)?u:Xt(x)?{[x]:O}:O},D,O),ie=x=>Xu(oe(d.mount?f:u,x,r.shouldUnregister?oe(u,x,[]):[])),R=(x,O,D={})=>{const re=oe(s,x);let I=O;if(re){const ee=re._f;ee&&(!ee.disabled&&Je(f,x,Jm(O,ee)),I=Ts(ee.ref)&&aa(O)?"":O,$m(ee.ref)?[...ee.ref.options].forEach(fe=>fe.selected=I.includes(fe.value)):ee.refs?li(ee.ref)?ee.refs.forEach(fe=>{(!fe.defaultChecked||!fe.disabled)&&(Array.isArray(I)?fe.checked=!!I.find(xe=>xe===fe.value):fe.checked=I===fe.value||!!I)}):ee.refs.forEach(fe=>fe.checked=fe.value===I):Iu(ee.ref)?ee.ref.value="":(ee.ref.value=I,ee.ref.type||N.state.next({name:x,values:Ot(f)})))}(D.shouldDirty||D.shouldTouch)&&Q(x,I,D.shouldTouch,D.shouldDirty,!0),D.shouldValidate&&A(x)},X=(x,O,D)=>{for(const re in O){if(!O.hasOwnProperty(re))return;const I=O[re],ee=x+"."+re,fe=oe(s,ee);(h.array.has(x)||yt(I)||fe&&!fe._f)&&!yr(I)?X(ee,I,D):R(ee,I,D)}},se=(x,O,D={})=>{const re=oe(s,x),I=h.array.has(x),ee=Ot(O);Je(f,x,ee),I?(N.array.next({name:x,values:Ot(f)}),(b.isDirty||b.dirtyFields||C.isDirty||C.dirtyFields)&&D.shouldDirty&&N.state.next({name:x,dirtyFields:el(u,f),isDirty:Y(x,ee)})):re&&!re._f&&!aa(ee)?X(x,ee,D):R(x,ee,D),ah(x,h)?N.state.next({...i,name:x,values:Ot(f)}):N.state.next({name:d.mount?x:void 0,values:Ot(f)})},Te=async x=>{d.mount=!0;const O=x.target;let D=O.name,re=!0;const I=oe(s,D),ee=Ve=>{re=Number.isNaN(Ve)||yr(Ve)&&isNaN(Ve.getTime())||Vn(Ve,oe(f,D,Ve))},fe=eh(r.mode),xe=eh(r.reValidateMode);if(I){let Ve,It;const Ra=O.type?Wm(I._f):zb(x),wt=x.type===Wr.BLUR||x.type===Wr.FOCUS_OUT,Wt=!$b(I._f)&&!n.validate&&!r.resolver&&!oe(i.errors,D)&&!I._f.deps||Fb(wt,oe(i.touchedFields,D),i.isSubmitted,xe,fe),Oa=ah(D,h,wt);Je(f,D,Ra),wt?(!O||!O.readOnly)&&(I._f.onBlur&&I._f.onBlur(x),y&&y(0)):I._f.onChange&&I._f.onChange(x);const Bt=Q(D,Ra,wt),$c=!Ft(Bt)||Oa;if(!wt&&N.state.next({name:D,type:x.type,values:Ot(f)}),Wt)return(b.isValid||C.isValid)&&(r.mode==="onBlur"?wt&&q():wt||q()),$c&&N.state.next({name:D,...Oa?{}:Bt});if(!r.resolver&&n.validate&&await Ie({name:D,eventType:x.type}),!wt&&Oa&&N.state.next({...i}),r.resolver){const{errors:mo}=await Se([D]);if(P([D]),ee(Ra),re){const Qc=nh(i.errors,s,D),Rr=nh(mo,s,Qc.name||D);Ve=Rr.error,D=Rr.name,It=Ft(mo)}}else P([D],!0),Ve=(await lh(I,h.disabled,f,U,r.shouldUseNativeValidation))[D],P([D]),ee(Ra),re&&(Ve?It=!1:(b.isValid||C.isValid)&&(It=await ye({fields:s,onlyCheckValid:!0,name:D,eventType:x.type})));re&&(I._f.deps&&(!Array.isArray(I._f.deps)||I._f.deps.length>0)&&A(I._f.deps),K(D,It,Ve,Bt))}},Le=(x,O)=>{if(oe(i.errors,O)&&x.focus)return x.focus(),1},A=async(x,O={})=>{let D,re;const I=ii(x);if(r.resolver){const ee=await ze(dt(x)?x:I);D=Ft(ee),re=x?!I.some(fe=>oe(ee,fe)):D}else x?(re=(await Promise.all(I.map(async ee=>{const fe=oe(s,ee);return await ye({fields:fe&&fe._f?{[ee]:fe}:fe,eventType:Wr.TRIGGER})}))).every(Boolean),!(!re&&!i.isValid)&&q()):re=D=await ye({fields:s,name:x,eventType:Wr.TRIGGER});return N.state.next({...!Xt(x)||(b.isValid||C.isValid)&&D!==i.isValid?{}:{name:x},...r.resolver||!x?{isValid:D}:{},errors:i.errors}),O.shouldFocus&&!re&&oi(s,Le,x?I:h.mount),re},Z=(x,O)=>{let D={...d.mount?f:u};return O&&(D=Ym(O.dirtyFields?i.dirtyFields:i.touchedFields,D)),dt(x)?D:Xt(x)?oe(D,x):x.map(re=>oe(D,re))},ne=(x,O)=>({invalid:!!oe((O||i).errors,x),isDirty:!!oe((O||i).dirtyFields,x),error:oe((O||i).errors,x),isValidating:!!oe(i.validatingFields,x),isTouched:!!oe((O||i).touchedFields,x)}),ue=x=>{const O=x?ii(x):void 0;O==null||O.forEach(D=>St(i.errors,D)),O?O.forEach(D=>{N.state.next({name:D,errors:i.errors})}):N.state.next({errors:{}})},ve=(x,O,D)=>{const re=(oe(s,x,{_f:{}})._f||{}).ref,I=oe(i.errors,x)||{},{ref:ee,message:fe,type:xe,...Ve}=I;Je(i.errors,x,{...Ve,...O,ref:re}),N.state.next({name:x,errors:i.errors,isValid:!1}),D&&D.shouldFocus&&re&&re.focus&&re.focus()},Ce=(x,O)=>Ha(x)?N.state.subscribe({next:D=>"values"in D&&x($(void 0,O),D)}):$(x,O,!0),je=x=>N.state.subscribe({next:O=>{Xb(x.name,O.name,x.exact)&&Qb(O,x.formState||b,Oi,x.reRenderRoot)&&x.callback({values:{...f},...i,...O,defaultValues:u})}}).unsubscribe,jt=x=>(d.mount=!0,C={...C,...x.formState},je({...x,formState:{..._,...x.formState}})),lt=(x,O={})=>{for(const D of x?ii(x):h.mount)h.mount.delete(D),h.array.delete(D),O.keepValue||(St(s,D),St(f,D)),!O.keepError&&St(i.errors,D),!O.keepDirty&&St(i.dirtyFields,D),!O.keepTouched&&St(i.touchedFields,D),!O.keepIsValidating&&St(i.validatingFields,D),!r.shouldUnregister&&!O.keepDefaultValue&&St(u,D);N.state.next({values:Ot(f)}),N.state.next({...i,...O.keepDirty?{isDirty:Y()}:{}}),!O.keepIsValid&&q()},Zn=({disabled:x,name:O})=>{if(Ka(x)&&d.mount||x||h.disabled.has(O)){const I=h.disabled.has(O)!==!!x;x?h.disabled.add(O):h.disabled.delete(O),I&&d.mount&&!d.action&&q()}},Yn=(x,O={})=>{let D=oe(s,x);const re=Ka(O.disabled)||Ka(r.disabled);return Je(s,x,{...D||{},_f:{...D&&D._f?D._f:{ref:{name:x}},name:x,mount:!0,...O}}),h.mount.add(x),D?Zn({disabled:Ka(O.disabled)?O.disabled:r.disabled,name:x}):B(x,!0,O.value),{...re?{disabled:O.disabled||r.disabled}:{},...r.progressive?{required:!!O.required,min:si(O.min),max:si(O.max),minLength:si(O.minLength),maxLength:si(O.maxLength),pattern:si(O.pattern)}:{},name:x,onChange:Te,onBlur:Te,ref:I=>{if(I){Yn(x,O),D=oe(s,x);const ee=dt(I.value)&&I.querySelectorAll&&I.querySelectorAll("input,select,textarea")[0]||I,fe=Vb(ee),xe=D._f.refs||[];if(fe?xe.find(Ve=>Ve===ee):ee===D._f.ref)return;Je(s,x,{_f:{...D._f,...fe?{refs:[...xe.filter(ec),ee,...Array.isArray(oe(u,x))?[{}]:[]],ref:{type:ee.type,name:x}}:{ref:ee}}}),B(x,!1,void 0,ee)}else D=oe(s,x,{}),D._f&&(D._f.mount=!1),(r.shouldUnregister||O.shouldUnregister)&&!(kb(h.array,x)&&d.action)&&h.unMount.add(x)}}},Tr=()=>r.shouldFocusError&&oi(s,Le,h.mount),oo=x=>{Ka(x)&&(N.state.next({disabled:x}),oi(s,(O,D)=>{const re=oe(s,D);re&&(O.disabled=re._f.disabled||x,Array.isArray(re._f.refs)&&re._f.refs.forEach(I=>{I.disabled=re._f.disabled||x}))},0,!1))},an=(x,O)=>async D=>{let re;D&&(D.preventDefault&&D.preventDefault(),D.persist&&D.persist());let I=Ot(f);if(N.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:fe}=await Se();P(),i.errors=ee,I=Ot(fe)}else await ye({fields:s,eventType:Wr.SUBMIT});if(h.disabled.size)for(const ee of h.disabled)St(I,ee);if(St(i.errors,Gm),Ft(i.errors)){N.state.next({errors:{}});try{await x(I,D)}catch(ee){re=ee}}else O&&await O({...i.errors},D),Tr(),setTimeout(Tr);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ft(i.errors)&&!re,submitCount:i.submitCount+1,errors:i.errors}),re)throw re},Ri=(x,O={})=>{oe(s,x)&&(dt(O.defaultValue)?se(x,Ot(oe(u,x))):(se(x,O.defaultValue),Je(u,x,Ot(O.defaultValue))),O.keepTouched||St(i.touchedFields,x),O.keepDirty||(St(i.dirtyFields,x),i.isDirty=O.defaultValue?Y(x,Ot(oe(u,x))):Y()),O.keepError||(St(i.errors,x),b.isValid&&q()),N.state.next({...i}))},hl=(x,O={})=>{const D=x?Ot(x):u,re=Ot(D),I=Ft(x),ee=I?u:re;if(O.keepDefaultValues||(u=D),!O.keepValues){if(O.keepDirtyValues){const fe=new Set([...h.mount,...Object.keys(el(u,f))]);for(const xe of Array.from(fe)){const Ve=oe(i.dirtyFields,xe),It=oe(f,xe),Ra=oe(ee,xe);Ve&&!dt(It)?Je(ee,xe,It):!Ve&&!dt(Ra)&&se(xe,Ra)}}else{if(Qu&&dt(x))for(const fe of h.mount){const xe=oe(s,fe);if(xe&&xe._f){const Ve=Array.isArray(xe._f.refs)?xe._f.refs[0]:xe._f.ref;if(Ts(Ve)){const It=Ve.closest("form");if(It){It.reset();break}}}}if(O.keepFieldsRef)for(const fe of h.mount)se(fe,oe(ee,fe));else s={}}f=r.shouldUnregister?O.keepDefaultValues?Ot(u):{}:Ot(ee),N.array.next({values:{...ee}}),N.state.next({values:{...ee}})}h={mount:O.keepDirtyValues?h.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!b.isValid||!!O.keepIsValid||!!O.keepDirtyValues||!r.shouldUnregister&&!Ft(ee),d.watch=!!r.shouldUnregister,d.keepIsValid=!!O.keepIsValid,d.action=!1,O.keepErrors||(i.errors={}),N.state.next({submitCount:O.keepSubmitCount?i.submitCount:0,isDirty:I?!1:O.keepDirty?i.isDirty:!!(O.keepDefaultValues&&!Vn(x,u)),isSubmitted:O.keepIsSubmitted?i.isSubmitted:!1,dirtyFields:I?{}:O.keepDirtyValues?O.keepDefaultValues&&f?el(u,f):i.dirtyFields:O.keepDefaultValues&&x?el(u,x):O.keepDirty?i.dirtyFields:{},touchedFields:O.keepTouched?i.touchedFields:{},errors:O.keepErrors?i.errors:{},isSubmitSuccessful:O.keepIsSubmitSuccessful?i.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:u})},uo=(x,O)=>hl(Ha(x)?x(f):x,{...r.resetOptions,...O}),co=(x,O={})=>{const D=oe(s,x),re=D&&D._f;if(re){const I=re.refs?re.refs[0]:re.ref;I.focus&&setTimeout(()=>{I.focus(),O.shouldSelect&&Ha(I.select)&&I.select()})}},Oi=x=>{i={...i,...x}},pl={control:{register:Yn,unregister:lt,getFieldState:ne,handleSubmit:an,setError:ve,_subscribe:je,_runSchema:Se,_updateIsValidating:P,_focusError:Tr,_getWatch:$,_getDirty:Y,_setValid:q,_setFieldArray:F,_setDisabledField:Zn,_setErrors:W,_getFieldArray:ie,_reset:hl,_resetDefaultValues:()=>Ha(r.defaultValues)&&r.defaultValues().then(x=>{uo(x,r.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:v,_disableForm:oo,_subjects:N,_proxyFormState:b,get _fields(){return s},get _formValues(){return f},get _state(){return d},set _state(x){d=x},get _defaultValues(){return u},get _names(){return h},set _names(x){h=x},get _formState(){return i},get _options(){return r},set _options(x){r={...r,...x}}},subscribe:jt,trigger:A,register:Yn,handleSubmit:an,watch:Ce,setValue:se,getValues:Z,reset:uo,resetField:Ri,clearErrors:ue,unregister:lt,setError:ve,setFocus:co,getFieldState:ne};return{...pl,formControl:pl}}function Wb(n={}){const r=nt.useRef(void 0),i=nt.useRef(void 0),[s,u]=nt.useState({isDirty:!1,isValidating:!1,isLoading:Ha(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1,isReady:!1,defaultValues:Ha(n.defaultValues)?void 0:n.defaultValues});if(!r.current)if(n.formControl)r.current={...n.formControl,formState:s},n.defaultValues&&!Ha(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...h}=Ib(n);r.current={...h,formState:s}}const f=r.current.control;return f._options=n,jb(()=>{const d=f._subscribe({formState:f._proxyFormState,callback:()=>u({...f._formState}),reRenderRoot:!0});return u(h=>({...h,isReady:!0})),f._formState.isReady=!0,d},[f]),nt.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),nt.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),nt.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),nt.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),nt.useEffect(()=>{if(f._proxyFormState.isDirty){const d=f._getDirty();d!==s.isDirty&&f._subjects.state.next({isDirty:d})}},[f,s.isDirty]),nt.useEffect(()=>{var d;n.values&&!Vn(n.values,i.current)?(f._reset(n.values,{keepFieldsRef:!0,...f._options.resetOptions}),!((d=f._options.resetOptions)===null||d===void 0)&&d.keepIsValid||f._setValid(),i.current=n.values,u(h=>({...h}))):f._resetDefaultValues()},[f,n.values]),nt.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),r.current.formState=nt.useMemo(()=>Ub(s,f),[f,s]),r.current}const ih=(n,r,i)=>{if(n&&"reportValidity"in n){const s=oe(i,r);n.setCustomValidity(s&&s.message||""),n.reportValidity()}},ac=(n,r)=>{for(const i in r.fields){const s=r.fields[i];s&&s.ref&&"reportValidity"in s.ref?ih(s.ref,i,n):s&&s.refs&&s.refs.forEach(u=>ih(u,i,n))}},sh=(n,r)=>{r.shouldUseNativeValidation&&ac(n,r);const i={};for(const s in n){const u=oe(r.fields,s),f=Object.assign(n[s]||{},{ref:u&&u.ref});if(e_(r.names||Object.keys(n),s)){const d=Object.assign({},oe(i,s));Je(d,"root",f),Je(i,s,d)}else Je(i,s,f)}return i},e_=(n,r)=>{const i=oh(r);return n.some(s=>oh(s).match(`^${i}\\.\\d+`))};function oh(n){return n.replace(/\]|\[/g,"")}function uh(n,r,i){function s(h,y){var p;Object.defineProperty(h,"_zod",{value:h._zod??{},enumerable:!1}),(p=h._zod).traits??(p.traits=new Set),h._zod.traits.add(n),r(h,y);for(const _ in d.prototype)_ in h||Object.defineProperty(h,_,{value:d.prototype[_].bind(h)});h._zod.constr=d,h._zod.def=y}const u=(i==null?void 0:i.Parent)??Object;class f extends u{}Object.defineProperty(f,"name",{value:n});function d(h){var y;const p=i!=null&&i.Parent?new f:this;s(p,h),(y=p._zod).deferred??(y.deferred=[]);for(const _ of p._zod.deferred)_();return p}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:h=>{var y,p;return i!=null&&i.Parent&&h instanceof i.Parent?!0:(p=(y=h==null?void 0:h._zod)==null?void 0:y.traits)==null?void 0:p.has(n)}}),Object.defineProperty(d,"name",{value:n}),d}class t_ extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const a_={};function ch(n){return a_}function n_(n,r){return typeof r=="bigint"?r.toString():r}const fh=Error.captureStackTrace?Error.captureStackTrace:(...n)=>{};function Os(n){return typeof n=="string"?n:n==null?void 0:n.message}function dh(n,r,i){var u,f,d,h,y,p;const s={...n,path:n.path??[]};if(!n.message){const _=Os((d=(f=(u=n.inst)==null?void 0:u._zod.def)==null?void 0:f.error)==null?void 0:d.call(f,n))??Os((h=r==null?void 0:r.error)==null?void 0:h.call(r,n))??Os((y=i.customError)==null?void 0:y.call(i,n))??Os((p=i.localeError)==null?void 0:p.call(i,n))??"Invalid input";s.message=_}return delete s.inst,delete s.continue,r!=null&&r.reportInput||delete s.input,s}const mh=(n,r)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:r,enumerable:!1}),Object.defineProperty(n,"message",{get(){return JSON.stringify(r,n_,2)},enumerable:!0}),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},r_=uh("$ZodError",mh),hh=uh("$ZodError",mh,{Parent:Error}),l_=(n=>(r,i,s,u)=>{const f=s?Object.assign(s,{async:!1}):{async:!1},d=r._zod.run({value:i,issues:[]},f);if(d instanceof Promise)throw new t_;if(d.issues.length){const h=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>dh(y,f,ch())));throw fh(h,u==null?void 0:u.callee),h}return d.value})(hh),i_=(n=>async(r,i,s,u)=>{const f=s?Object.assign(s,{async:!0}):{async:!0};let d=r._zod.run({value:i,issues:[]},f);if(d instanceof Promise&&(d=await d),d.issues.length){const h=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>dh(y,f,ch())));throw fh(h,u==null?void 0:u.callee),h}return d.value})(hh);function ph(n,r){try{var i=n()}catch(s){return r(s)}return i&&i.then?i.then(void 0,r):i}function s_(n,r){for(var i={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!i[d])if("unionErrors"in s){var h=s.unionErrors[0].errors[0];i[d]={message:h.message,type:h.code}}else i[d]={message:f,type:u};if("unionErrors"in s&&s.unionErrors.forEach(function(_){return _.errors.forEach(function(b){return n.push(b)})}),r){var y=i[d].types,p=y&&y[s.code];i[d]=Pu(d,r,i,u,p?[].concat(p,s.message):s.message)}n.shift()}return i}function o_(n,r){for(var i={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!i[d])if(s.code==="invalid_union"&&s.errors.length>0){var h=s.errors[0][0];i[d]={message:h.message,type:h.code}}else i[d]={message:f,type:u};if(s.code==="invalid_union"&&s.errors.forEach(function(_){return _.forEach(function(b){return n.push(b)})}),r){var y=i[d].types,p=y&&y[s.code];i[d]=Pu(d,r,i,u,p?[].concat(p,s.message):s.message)}n.shift()}return i}function u_(n,r,i){if(i===void 0&&(i={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(n))return function(s,u,f){try{return Promise.resolve(ph(function(){return Promise.resolve(n[i.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(d){return f.shouldUseNativeValidation&&ac({},f),{errors:{},values:i.raw?Object.assign({},s):d}})},function(d){if((function(h){return Array.isArray(h==null?void 0:h.issues)})(d))return{values:{},errors:sh(s_(d.errors,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(n))return function(s,u,f){try{return Promise.resolve(ph(function(){return Promise.resolve((i.mode==="sync"?l_:i_)(n,s,r)).then(function(d){return f.shouldUseNativeValidation&&ac({},f),{errors:{},values:i.raw?Object.assign({},s):d}})},function(d){if((function(h){return h instanceof r_})(d))return{values:{},errors:sh(o_(d.issues,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};throw new Error("Invalid input: not a Zod schema")}/**
53
+ */var xm;function dv(){return xm||(xm=1,(function(r){(function(){var n={}.hasOwnProperty;function l(){for(var f="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(f=o(f,s(h)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return l.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var h in f)n.call(f,h)&&f[h]&&(d=o(d,h));return d}function o(f,d){return d?f?f+" "+d:f+d:f}r.exports?(l.default=l,r.exports=l):window.classNames=l})()})(wu)),wu.exports}var mv=dv();const st=tn(mv);function Wa(r){return v.jsxDEV("button",{...r,className:st("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors",r.className),style:{...r.style},children:r.children},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Button/index.tsx",lineNumber:10,columnNumber:5},this)}const Nm=r=>{let n;const l=new Set,s=(p,x)=>{const N=typeof p=="function"?p(n):p;if(!Object.is(N,n)){const C=n;n=x??(typeof N!="object"||N===null)?N:Object.assign({},n,N),l.forEach(S=>S(n,C))}},o=()=>n,h={setState:s,getState:o,getInitialState:()=>y,subscribe:p=>(l.add(p),()=>l.delete(p))},y=n=r(s,o,h);return h},Du=(r=>r?Nm(r):Nm);var ge=yu();const Nt=tn(ge),Sm=Ia({__proto__:null,default:Nt},[ge]),hv=r=>r;function Au(r,n=hv){const l=Nt.useSyncExternalStore(r.subscribe,Nt.useCallback(()=>n(r.getState()),[r,n]),Nt.useCallback(()=>n(r.getInitialState()),[r,n]));return Nt.useDebugValue(l),l}const _m=r=>{const n=Du(r),l=s=>Au(n,s);return Object.assign(l,n),l},Tu=(r=>r?_m(r):_m),pv={securityNumber:"",requestId:"",cardID:"",state:"isEmpty",availableDiscountSelected:{quantity:0,discount:{unit:0,total:0},totalPrice:0,grossPrice:0},benefitsEnabled:!0,benefitsList:null,targetProduct:null,campaign:"pbm_campaign",isAuthenticatedShopper:!1,customLoginUrl:"/login"},Cm=Du(r=>({...pv,setSecurityNumber:n=>r({securityNumber:n}),setRequestId:n=>r({requestId:n}),setState:n=>r({state:n}),setTargetProduct:n=>r({targetProduct:n}),setAvailableDiscountSelected:n=>r({availableDiscountSelected:n}),setUrlAcceptTerms:n=>r({urlAcceptTerms:n}),setUrlRegisterIndustry:n=>r({urlRegisterIndustry:n}),setIsAuthenticatedShopper:n=>r({isAuthenticatedShopper:n}),setCustomLoginUrl:n=>r({customLoginUrl:n}),setCardID:n=>r({cardID:n}),setBenefitsEnabled:n=>r({benefitsEnabled:n}),setBenefitsList:n=>r({benefitsList:n})})),gv=()=>({getState:()=>{const r=Cm.getState(),{setSecurityNumber:n,setState:l,setAvailableDiscountSelected:s,setTargetProduct:o,setUrlAcceptTerms:f,setUrlRegisterIndustry:d,setIsAuthenticatedShopper:h,setCustomLoginUrl:y,setCardID:p,setBenefitsEnabled:x,setBenefitsList:N,setRequestId:C,requestId:S,benefitsEnabled:k,benefitsList:w,...q}=r;if(!r.targetProduct)return{...q,targetProduct:null};const{requestedQuantity:te,discountMaxNewPatient:Q,allowsAdhesion:le,comboId:I,discountValueIndustry:B,authorizer:K,grossPrice:ne,industryCompanyCode:de,pointing:we,productLink:Ue,requestCoupon:_e,requestHolderId:b,suggestedPrice:F,suggestedPriceValue:X,status:se,returnCode:Z,...H}=r.targetProduct;return{...q,targetProduct:H}}});function Jt(r){return Au(Cm,(n=>n))}var Yi=r=>r.type==="checkbox",rn=r=>r instanceof Date,It=r=>r==null;const Em=r=>typeof r=="object";var gt=r=>!It(r)&&!Array.isArray(r)&&Em(r)&&!rn(r),yv=r=>gt(r)&&r.target?Yi(r.target)?r.target.checked:r.target.value:r,wm=r=>r.substring(0,r.search(/\.\d+(\.|$)/))||r,bv=(r,n)=>r.has(wm(n)),vv=r=>{const n=r.constructor&&r.constructor.prototype;return gt(n)&&n.hasOwnProperty("isPrototypeOf")},Ou=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function At(r){if(r instanceof Date)return new Date(r);const n=typeof FileList<"u"&&r instanceof FileList;if(Ou&&(r instanceof Blob||n))return r;const l=Array.isArray(r);if(!l&&!(gt(r)&&vv(r)))return r;const s=l?[]:Object.create(Object.getPrototypeOf(r));for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=At(r[o]));return s}var fs=r=>/^\w*$/.test(r),ft=r=>r===void 0,Ru=r=>Array.isArray(r)?r.filter(Boolean):[],Mu=r=>Ru(r.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(r,n,l)=>{if(!n||!gt(r))return l;const s=(fs(n)?[n]:Mu(n)).reduce((o,f)=>It(o)?o:o[f],r);return ft(s)||s===r?ft(r[n])?l:r[n]:s},Ha=r=>typeof r=="boolean",za=r=>typeof r=="function",Pe=(r,n,l)=>{let s=-1;const o=fs(n)?[n]:Mu(n),f=o.length,d=f-1;for(;++s<f;){const h=o[s];let y=l;if(s!==d){const p=r[h];y=gt(p)||Array.isArray(p)?p:isNaN(+o[s+1])?{}:[]}if(h==="__proto__"||h==="constructor"||h==="prototype")return;r[h]=y,r=r[h]}};const Bn={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},ka={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ja={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},zu="form",Dm="root",xv=Nt.createContext(null);xv.displayName="HookFormControlContext";var Nv=(r,n,l,s=!0)=>{const o={defaultValues:n._defaultValues};for(const f in r)Object.defineProperty(o,f,{get:()=>{const d=f;return n._proxyFormState[d]!==ka.all&&(n._proxyFormState[d]=!s||ka.all),r[d]}});return o};const Sv=typeof window<"u"?Nt.useLayoutEffect:Nt.useEffect;var Ft=r=>typeof r=="string",_v=(r,n,l,s,o)=>Ft(r)?(s&&n.watch.add(r),oe(l,r,o)):Array.isArray(r)?r.map(f=>(s&&n.watch.add(f),oe(l,f))):(s&&(n.watchAll=!0),l),ku=r=>It(r)||!Em(r);function Ar(r,n,l=new WeakSet){if(ku(r)||ku(n))return Object.is(r,n);if(rn(r)&&rn(n))return Object.is(r.getTime(),n.getTime());const s=Object.keys(r),o=Object.keys(n);if(s.length!==o.length)return!1;if(l.has(r)||l.has(n))return!0;l.add(r),l.add(n);for(const f of s){const d=r[f];if(!o.includes(f))return!1;if(f!=="ref"){const h=n[f];if(rn(d)&&rn(h)||gt(d)&&gt(h)||Array.isArray(d)&&Array.isArray(h)?!Ar(d,h,l):!Object.is(d,h))return!1}}return!0}const Cv=Nt.createContext(null);Cv.displayName="HookFormContext";var ju=(r,n,l,s,o)=>n?{...l[r],types:{...l[r]&&l[r].types?l[r].types:{},[s]:o||!0}}:{},$i=r=>Array.isArray(r)?r:[r],Am=()=>{let r=[];return{get observers(){return r},next:o=>{for(const f of r)f.next&&f.next(o)},subscribe:o=>(r.push(o),{unsubscribe:()=>{r=r.filter(f=>f!==o)}}),unsubscribe:()=>{r=[]}}};function Tm(r,n){const l={};for(const s in r)if(r.hasOwnProperty(s)){const o=r[s],f=n[s];if(o&&gt(o)&&f){const d=Tm(o,f);gt(d)&&(l[s]=d)}else r[s]&&(l[s]=f)}return l}var Qt=r=>gt(r)&&!Object.keys(r).length,Vu=r=>r.type==="file",ds=r=>{if(!Ou)return!1;const n=r?r.ownerDocument:0;return r instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},Om=r=>r.type==="select-multiple",Bu=r=>r.type==="radio",Ev=r=>Bu(r)||Yi(r),Uu=r=>ds(r)&&r.isConnected;function wv(r,n){const l=n.slice(0,-1).length;let s=0;for(;s<l;)r=ft(r)?s++:r[n[s++]];return r}function Dv(r){for(const n in r)if(r.hasOwnProperty(n)&&!ft(r[n]))return!1;return!0}function St(r,n){const l=Array.isArray(n)?n:fs(n)?[n]:Mu(n),s=l.length===1?r:wv(r,l),o=l.length-1,f=l[o];return s&&delete s[f],o!==0&&(gt(s)&&Qt(s)||Array.isArray(s)&&Dv(s))&&St(r,l.slice(0,-1)),r}var Av=r=>{for(const n in r)if(za(r[n]))return!0;return!1};function Rm(r){return Array.isArray(r)||gt(r)&&!Av(r)}function Lu(r,n={}){for(const l in r){const s=r[l];Rm(s)?(n[l]=Array.isArray(s)?[]:{},Lu(s,n[l])):ft(s)||(n[l]=!0)}return n}function Un(r,n,l){l||(l=Lu(n));for(const s in r){const o=r[s];if(Rm(o))ft(n)||ku(l[s])?l[s]=Lu(o,Array.isArray(o)?[]:{}):Un(o,It(n)?{}:n[s],l[s]);else{const f=n[s];l[s]=!Ar(o,f)}}return l}const Mm={value:!1,isValid:!1},zm={value:!0,isValid:!0};var km=r=>{if(Array.isArray(r)){if(r.length>1){const n=r.filter(l=>l&&l.checked&&!l.disabled).map(l=>l.value);return{value:n,isValid:!!n.length}}return r[0].checked&&!r[0].disabled?r[0].attributes&&!ft(r[0].attributes.value)?ft(r[0].value)||r[0].value===""?zm:{value:r[0].value,isValid:!0}:zm:Mm}return Mm},jm=(r,{valueAsNumber:n,valueAsDate:l,setValueAs:s})=>ft(r)?r:n?r===""?NaN:r&&+r:l&&Ft(r)?new Date(r):s?s(r):r;const Vm={isValid:!1,value:null};var Bm=r=>Array.isArray(r)?r.reduce((n,l)=>l&&l.checked&&!l.disabled?{isValid:!0,value:l.value}:n,Vm):Vm;function Um(r){const n=r.ref;return Vu(n)?n.files:Bu(n)?Bm(r.refs).value:Om(n)?[...n.selectedOptions].map(({value:l})=>l):Yi(n)?km(r.refs).value:jm(ft(n.value)?r.ref.value:n.value,r)}var Tv=(r,n,l,s)=>{const o={};for(const f of r){const d=oe(n,f);d&&Pe(o,f,d._f)}return{criteriaMode:l,names:[...r],fields:o,shouldUseNativeValidation:s}},ms=r=>r instanceof RegExp,Fi=r=>ft(r)?r:ms(r)?r.source:gt(r)?ms(r.value)?r.value.source:r.value:r,Lm=r=>({isOnSubmit:!r||r===ka.onSubmit,isOnBlur:r===ka.onBlur,isOnChange:r===ka.onChange,isOnAll:r===ka.all,isOnTouch:r===ka.onTouched});const qm="AsyncFunction";var Ov=r=>!!r&&!!r.validate&&!!(za(r.validate)&&r.validate.constructor.name===qm||gt(r.validate)&&Object.values(r.validate).find(n=>n.constructor.name===qm)),Rv=r=>r.mount&&(r.required||r.min||r.max||r.maxLength||r.minLength||r.pattern||r.validate),Hm=(r,n,l)=>!l&&(n.watchAll||n.watch.has(r)||[...n.watch].some(s=>r.startsWith(s)&&/^\.\w+/.test(r.slice(s.length))));const Qi=(r,n,l,s)=>{for(const o of l||Object.keys(r)){const f=oe(r,o);if(f){const{_f:d,...h}=f;if(d){if(d.refs&&d.refs[0]&&n(d.refs[0],o)&&!s)return!0;if(d.ref&&n(d.ref,d.name)&&!s)return!0;if(Qi(h,n))break}else if(gt(h)&&Qi(h,n))break}}};function Gm(r,n,l){const s=oe(r,l);if(s||fs(l))return{error:s,name:l};const o=l.split(".");for(;o.length;){const f=o.join("."),d=oe(n,f),h=oe(r,f);if(d&&!Array.isArray(d)&&l!==f)return{name:l};if(h&&h.type)return{name:f,error:h};if(h&&h.root&&h.root.type)return{name:`${f}.root`,error:h.root};o.pop()}return{name:l}}var Mv=(r,n,l,s)=>{l(r);const{name:o,...f}=r;return Qt(f)||Object.keys(f).length>=Object.keys(n).length||Object.keys(f).find(d=>n[d]===(!s||ka.all))},zv=(r,n,l)=>!r||!n||r===n||$i(r).some(s=>s&&(l?s===n:s.startsWith(n)||n.startsWith(s))),kv=(r,n,l,s,o)=>o.isOnAll?!1:!l&&o.isOnTouch?!(n||r):(l?s.isOnBlur:o.isOnBlur)?!r:(l?s.isOnChange:o.isOnChange)?r:!0,jv=(r,n)=>!Ru(oe(r,n)).length&&St(r,n),Vv=(r,n,l)=>{const s=$i(oe(r,l));return Pe(s,Dm,n[l]),Pe(r,l,s),r};function Zm(r,n,l="validate"){if(Ft(r)||Array.isArray(r)&&r.every(Ft)||Ha(r)&&!r)return{type:l,message:Ft(r)?r:"",ref:n}}var Ln=r=>gt(r)&&!ms(r)?r:{value:r,message:""},Ym=async(r,n,l,s,o,f)=>{const{ref:d,refs:h,required:y,maxLength:p,minLength:x,min:N,max:C,pattern:S,validate:k,name:w,valueAsNumber:q,mount:te}=r._f,Q=oe(l,w);if(!te||n.has(w))return{};const le=h?h[0]:d,I=b=>{o&&le.reportValidity&&(le.setCustomValidity(Ha(b)?"":b||""),le.reportValidity())},B={},K=Bu(d),ne=Yi(d),de=K||ne,we=(q||Vu(d))&&ft(d.value)&&ft(Q)||ds(d)&&d.value===""||Q===""||Array.isArray(Q)&&!Q.length,Ue=ju.bind(null,w,s,B),_e=(b,F,X,se=ja.maxLength,Z=ja.minLength)=>{const H=b?F:X;B[w]={type:b?se:Z,message:H,ref:d,...Ue(b?se:Z,H)}};if(f?!Array.isArray(Q)||!Q.length:y&&(!de&&(we||It(Q))||Ha(Q)&&!Q||ne&&!km(h).isValid||K&&!Bm(h).isValid)){const{value:b,message:F}=Ft(y)?{value:!!y,message:y}:Ln(y);if(b&&(B[w]={type:ja.required,message:F,ref:le,...Ue(ja.required,F)},!s))return I(F),B}if(!we&&(!It(N)||!It(C))){let b,F;const X=Ln(C),se=Ln(N);if(!It(Q)&&!isNaN(Q)){const Z=d.valueAsNumber||Q&&+Q;It(X.value)||(b=Z>X.value),It(se.value)||(F=Z<se.value)}else{const Z=d.valueAsDate||new Date(Q),H=Qe=>new Date(new Date().toDateString()+" "+Qe),J=d.type=="time",De=d.type=="week";Ft(X.value)&&Q&&(b=J?H(Q)>H(X.value):De?Q>X.value:Z>new Date(X.value)),Ft(se.value)&&Q&&(F=J?H(Q)<H(se.value):De?Q<se.value:Z<new Date(se.value))}if((b||F)&&(_e(!!b,X.message,se.message,ja.max,ja.min),!s))return I(B[w].message),B}if((p||x)&&!we&&(Ft(Q)||f&&Array.isArray(Q))){const b=Ln(p),F=Ln(x),X=!It(b.value)&&Q.length>+b.value,se=!It(F.value)&&Q.length<+F.value;if((X||se)&&(_e(X,b.message,F.message),!s))return I(B[w].message),B}if(S&&!we&&Ft(Q)){const{value:b,message:F}=Ln(S);if(ms(b)&&!Q.match(b)&&(B[w]={type:ja.pattern,message:F,ref:d,...Ue(ja.pattern,F)},!s))return I(F),B}if(k){if(za(k)){const b=await k(Q,l),F=Zm(b,le);if(F&&(B[w]={...F,...Ue(ja.validate,F.message)},!s))return I(F.message),B}else if(gt(k)){let b={};for(const F in k){if(!Qt(b)&&!s)break;const X=Zm(await k[F](Q,l),le,F);X&&(b={...X,...Ue(F,X.message)},I(X.message),s&&(B[w]=b))}if(!Qt(b)&&(B[w]={ref:le,...b},!s))return B}}return I(!0),B};const Bv={mode:ka.onSubmit,reValidateMode:ka.onChange,shouldFocusError:!0};function Uv(r={}){let n={...Bv,...r},l={submitCount:0,isDirty:!1,isReady:!1,isLoading:za(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},o=gt(n.defaultValues)||gt(n.values)?At(n.defaultValues||n.values)||{}:{},f=n.shouldUnregister?{}:At(o),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},h={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},y,p=0;const x={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},N={...x};let C={...N};const S={array:Am(),state:Am()},k=n.criteriaMode===ka.all,w=E=>O=>{clearTimeout(p),p=setTimeout(E,O)},q=async E=>{if(!d.keepIsValid&&!n.disabled&&(N.isValid||C.isValid||E)){let O;n.resolver?(O=Qt((await de()).errors),te()):O=await _e({fields:s,onlyCheckValid:!0,eventType:Bn.VALID}),O!==l.isValid&&S.state.next({isValid:O})}},te=(E,O)=>{!n.disabled&&(N.isValidating||N.validatingFields||C.isValidating||C.validatingFields)&&((E||Array.from(h.mount)).forEach(j=>{j&&(O?Pe(l.validatingFields,j,O):St(l.validatingFields,j))}),S.state.next({validatingFields:l.validatingFields,isValidating:!Qt(l.validatingFields)}))},Q=(E,O=[],j,W,ee=!0,ae=!0)=>{if(W&&j&&!n.disabled){if(d.action=!0,ae&&Array.isArray(oe(s,E))){const me=j(oe(s,E),W.argA,W.argB);ee&&Pe(s,E,me)}if(ae&&Array.isArray(oe(l.errors,E))){const me=j(oe(l.errors,E),W.argA,W.argB);ee&&Pe(l.errors,E,me),jv(l.errors,E)}if((N.touchedFields||C.touchedFields)&&ae&&Array.isArray(oe(l.touchedFields,E))){const me=j(oe(l.touchedFields,E),W.argA,W.argB);ee&&Pe(l.touchedFields,E,me)}if(N.dirtyFields||C.dirtyFields){const me=Un(o,f),ve=wm(E);Pe(l.dirtyFields,ve,oe(me,ve))}S.state.next({name:E,isDirty:F(E,O),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else Pe(f,E,O)},le=(E,O)=>{Pe(l.errors,E,O),S.state.next({errors:l.errors})},I=E=>{l.errors=E,S.state.next({errors:l.errors,isValid:!1})},B=(E,O,j,W)=>{const ee=oe(s,E);if(ee){const ae=oe(f,E,ft(j)?oe(o,E):j);ft(ae)||W&&W.defaultChecked||O?Pe(f,E,O?ae:Um(ee._f)):Z(E,ae),d.mount&&!d.action&&q()}},K=(E,O,j,W,ee)=>{let ae=!1,me=!1;const ve={name:E};if(!n.disabled){if(!j||W){(N.isDirty||C.isDirty)&&(me=l.isDirty,l.isDirty=ve.isDirty=F(),ae=me!==ve.isDirty);const Ye=Ar(oe(o,E),O);me=!!oe(l.dirtyFields,E),Ye?St(l.dirtyFields,E):Pe(l.dirtyFields,E,!0),ve.dirtyFields=l.dirtyFields,ae=ae||(N.dirtyFields||C.dirtyFields)&&me!==!Ye}if(j){const Ye=oe(l.touchedFields,E);Ye||(Pe(l.touchedFields,E,j),ve.touchedFields=l.touchedFields,ae=ae||(N.touchedFields||C.touchedFields)&&Ye!==j)}ae&&ee&&S.state.next(ve)}return ae?ve:{}},ne=(E,O,j,W)=>{const ee=oe(l.errors,E),ae=(N.isValid||C.isValid)&&Ha(O)&&l.isValid!==O;if(n.delayError&&j?(y=w(()=>le(E,j)),y(n.delayError)):(clearTimeout(p),y=null,j?Pe(l.errors,E,j):St(l.errors,E)),(j?!Ar(ee,j):ee)||!Qt(W)||ae){const me={...W,...ae&&Ha(O)?{isValid:O}:{},errors:l.errors,name:E};l={...l,...me},S.state.next(me)}},de=async E=>(te(E,!0),await n.resolver(f,n.context,Tv(E||h.mount,s,n.criteriaMode,n.shouldUseNativeValidation))),we=async E=>{const{errors:O}=await de(E);if(te(E),E)for(const j of E){const W=oe(O,j);W?Pe(l.errors,j,W):St(l.errors,j)}else l.errors=O;return O},Ue=async({name:E,eventType:O})=>{if(r.validate){const j=await r.validate({formValues:f,formState:l,name:E,eventType:O});if(gt(j))for(const W in j)j[W]&&ce(`${zu}.${W}`,{message:Ft(j.message)?j.message:"",type:ja.validate});else Ft(j)||!j?ce(zu,{message:j||"",type:ja.validate}):re(zu);return j}return!0},_e=async({fields:E,onlyCheckValid:O,name:j,eventType:W,context:ee={valid:!0,runRootValidation:!1}})=>{if(r.validate&&(ee.runRootValidation=!0,!await Ue({name:j,eventType:W})&&(ee.valid=!1,O)))return ee.valid;for(const ae in E){const me=E[ae];if(me){const{_f:ve,...Ye}=me;if(ve){const Yt=h.array.has(ve.name),Na=me._f&&Ov(me._f);Na&&N.validatingFields&&te([ve.name],!0);const $t=await Ym(me,h.disabled,f,k,n.shouldUseNativeValidation&&!O,Yt);if(Na&&N.validatingFields&&te([ve.name]),$t[ve.name]&&(ee.valid=!1,O)||(!O&&(oe($t,ve.name)?Yt?Vv(l.errors,$t,ve.name):Pe(l.errors,ve.name,$t[ve.name]):St(l.errors,ve.name)),r.shouldUseNativeValidation&&$t[ve.name]))break}!Qt(Ye)&&await _e({context:ee,onlyCheckValid:O,fields:Ye,name:ae,eventType:W})}}return ee.valid},b=()=>{for(const E of h.unMount){const O=oe(s,E);O&&(O._f.refs?O._f.refs.every(j=>!Uu(j)):!Uu(O._f.ref))&&Tt(E)}h.unMount=new Set},F=(E,O)=>!n.disabled&&(E&&O&&Pe(f,E,O),!Ar(A(),o)),X=(E,O,j)=>_v(E,h,{...d.mount?f:ft(O)?o:Ft(E)?{[E]:O}:O},j,O),se=E=>Ru(oe(d.mount?f:o,E,n.shouldUnregister?oe(o,E,[]):[])),Z=(E,O,j={})=>{const W=oe(s,E);let ee=O;if(W){const ae=W._f;ae&&(!ae.disabled&&Pe(f,E,jm(O,ae)),ee=ds(ae.ref)&&It(O)?"":O,Om(ae.ref)?[...ae.ref.options].forEach(me=>me.selected=ee.includes(me.value)):ae.refs?Yi(ae.ref)?ae.refs.forEach(me=>{(!me.defaultChecked||!me.disabled)&&(Array.isArray(ee)?me.checked=!!ee.find(ve=>ve===me.value):me.checked=ee===me.value||!!ee)}):ae.refs.forEach(me=>me.checked=me.value===ee):Vu(ae.ref)?ae.ref.value="":(ae.ref.value=ee,ae.ref.type||S.state.next({name:E,values:At(f)})))}(j.shouldDirty||j.shouldTouch)&&K(E,ee,j.shouldTouch,j.shouldDirty,!0),j.shouldValidate&&kt(E)},H=(E,O,j)=>{for(const W in O){if(!O.hasOwnProperty(W))return;const ee=O[W],ae=E+"."+W,me=oe(s,ae);(h.array.has(E)||gt(ee)||me&&!me._f)&&!rn(ee)?H(ae,ee,j):Z(ae,ee,j)}},J=(E,O,j={})=>{const W=oe(s,E),ee=h.array.has(E),ae=At(O);Pe(f,E,ae),ee?(S.array.next({name:E,values:At(f)}),(N.isDirty||N.dirtyFields||C.isDirty||C.dirtyFields)&&j.shouldDirty&&S.state.next({name:E,dirtyFields:Un(o,f),isDirty:F(E,ae)})):W&&!W._f&&!It(ae)?H(E,ae,j):Z(E,ae,j),Hm(E,h)?S.state.next({...l,name:E,values:At(f)}):S.state.next({name:d.mount?E:void 0,values:At(f)})},De=async E=>{d.mount=!0;const O=E.target;let j=O.name,W=!0;const ee=oe(s,j),ae=Ye=>{W=Number.isNaN(Ye)||rn(Ye)&&isNaN(Ye.getTime())||Ar(Ye,oe(f,j,Ye))},me=Lm(n.mode),ve=Lm(n.reValidateMode);if(ee){let Ye,Yt;const Na=O.type?Um(ee._f):yv(E),$t=E.type===Bn.BLUR||E.type===Bn.FOCUS_OUT,mn=!Rv(ee._f)&&!r.validate&&!n.resolver&&!oe(l.errors,j)&&!ee._f.deps||kv($t,oe(l.touchedFields,j),l.isSubmitted,ve,me),jt=Hm(j,h,$t);Pe(f,j,Na),$t?(!O||!O.readOnly)&&(ee._f.onBlur&&ee._f.onBlur(E),y&&y(0)):ee._f.onChange&&ee._f.onChange(E);const Sa=K(j,Na,$t),Xt=!Qt(Sa)||jt;if(!$t&&S.state.next({name:j,type:E.type,values:At(f)}),mn)return(N.isValid||C.isValid)&&(n.mode==="onBlur"?$t&&q():$t||q()),Xt&&S.state.next({name:j,...jt?{}:Sa});if(!n.resolver&&r.validate&&await Ue({name:j,eventType:E.type}),!$t&&jt&&S.state.next({...l}),n.resolver){const{errors:Qs}=await de([j]);if(te([j]),ae(Na),W){const Tc=Gm(l.errors,s,j),Xs=Gm(Qs,s,Tc.name||j);Ye=Xs.error,j=Xs.name,Yt=Qt(Qs)}}else te([j],!0),Ye=(await Ym(ee,h.disabled,f,k,n.shouldUseNativeValidation))[j],te([j]),ae(Na),W&&(Ye?Yt=!1:(N.isValid||C.isValid)&&(Yt=await _e({fields:s,onlyCheckValid:!0,name:j,eventType:E.type})));W&&(ee._f.deps&&(!Array.isArray(ee._f.deps)||ee._f.deps.length>0)&&kt(ee._f.deps),ne(j,Yt,Ye,Sa))}},Qe=(E,O)=>{if(oe(l.errors,O)&&E.focus)return E.focus(),1},kt=async(E,O={})=>{let j,W;const ee=$i(E);if(n.resolver){const ae=await we(ft(E)?E:ee);j=Qt(ae),W=E?!ee.some(me=>oe(ae,me)):j}else E?(W=(await Promise.all(ee.map(async ae=>{const me=oe(s,ae);return await _e({fields:me&&me._f?{[ae]:me}:me,eventType:Bn.TRIGGER})}))).every(Boolean),!(!W&&!l.isValid)&&q()):W=j=await _e({fields:s,name:E,eventType:Bn.TRIGGER});return S.state.next({...!Ft(E)||(N.isValid||C.isValid)&&j!==l.isValid?{}:{name:E},...n.resolver||!E?{isValid:j}:{},errors:l.errors}),O.shouldFocus&&!W&&Qi(s,Qe,E?ee:h.mount),W},A=(E,O)=>{let j={...d.mount?f:o};return O&&(j=Tm(O.dirtyFields?l.dirtyFields:l.touchedFields,j)),ft(E)?j:Ft(E)?oe(j,E):E.map(W=>oe(j,W))},$=(E,O)=>({invalid:!!oe((O||l).errors,E),isDirty:!!oe((O||l).dirtyFields,E),error:oe((O||l).errors,E),isValidating:!!oe(l.validatingFields,E),isTouched:!!oe((O||l).touchedFields,E)}),re=E=>{const O=E?$i(E):void 0;O==null||O.forEach(j=>St(l.errors,j)),O?O.forEach(j=>{S.state.next({name:j,errors:l.errors})}):S.state.next({errors:{}})},ce=(E,O,j)=>{const W=(oe(s,E,{_f:{}})._f||{}).ref,ee=oe(l.errors,E)||{},{ref:ae,message:me,type:ve,...Ye}=ee;Pe(l.errors,E,{...Ye,...O,ref:W}),S.state.next({name:E,errors:l.errors,isValid:!1}),j&&j.shouldFocus&&W&&W.focus&&W.focus()},Te=(E,O)=>za(E)?S.state.subscribe({next:j=>"values"in j&&E(X(void 0,O),j)}):X(E,O,!0),Ae=E=>S.state.subscribe({next:O=>{zv(E.name,O.name,E.exact)&&Mv(O,E.formState||N,$s,E.reRenderRoot)&&E.callback({values:{...f},...l,...O,defaultValues:o})}}).unsubscribe,Le=E=>(d.mount=!0,C={...C,...E.formState},Ae({...E,formState:{...x,...E.formState}})),Tt=(E,O={})=>{for(const j of E?$i(E):h.mount)h.mount.delete(j),h.array.delete(j),O.keepValue||(St(s,j),St(f,j)),!O.keepError&&St(l.errors,j),!O.keepDirty&&St(l.dirtyFields,j),!O.keepTouched&&St(l.touchedFields,j),!O.keepIsValidating&&St(l.validatingFields,j),!n.shouldUnregister&&!O.keepDefaultValue&&St(o,j);S.state.next({values:At(f)}),S.state.next({...l,...O.keepDirty?{isDirty:F()}:{}}),!O.keepIsValid&&q()},ut=({disabled:E,name:O})=>{if(Ha(E)&&d.mount||E||h.disabled.has(O)){const ee=h.disabled.has(O)!==!!E;E?h.disabled.add(O):h.disabled.delete(O),ee&&d.mount&&!d.action&&q()}},rr=(E,O={})=>{let j=oe(s,E);const W=Ha(O.disabled)||Ha(n.disabled);return Pe(s,E,{...j||{},_f:{...j&&j._f?j._f:{ref:{name:E}},name:E,mount:!0,...O}}),h.mount.add(E),j?ut({disabled:Ha(O.disabled)?O.disabled:n.disabled,name:E}):B(E,!0,O.value),{...W?{disabled:O.disabled||n.disabled}:{},...n.progressive?{required:!!O.required,min:Fi(O.min),max:Fi(O.max),minLength:Fi(O.minLength),maxLength:Fi(O.maxLength),pattern:Fi(O.pattern)}:{},name:E,onChange:De,onBlur:De,ref:ee=>{if(ee){rr(E,O),j=oe(s,E);const ae=ft(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,me=Ev(ae),ve=j._f.refs||[];if(me?ve.find(Ye=>Ye===ae):ae===j._f.ref)return;Pe(s,E,{_f:{...j._f,...me?{refs:[...ve.filter(Uu),ae,...Array.isArray(oe(o,E))?[{}]:[]],ref:{type:ae.type,name:E}}:{ref:ae}}}),B(E,!1,void 0,ae)}else j=oe(s,E,{}),j._f&&(j._f.mount=!1),(n.shouldUnregister||O.shouldUnregister)&&!(bv(h.array,E)&&d.action)&&h.unMount.add(E)}}},Or=()=>n.shouldFocusError&&Qi(s,Qe,h.mount),dl=E=>{Ha(E)&&(S.state.next({disabled:E}),Qi(s,(O,j)=>{const W=oe(s,j);W&&(O.disabled=W._f.disabled||E,Array.isArray(W._f.refs)&&W._f.refs.forEach(ee=>{ee.disabled=W._f.disabled||E}))},0,!1))},ml=(E,O)=>async j=>{let W;j&&(j.preventDefault&&j.preventDefault(),j.persist&&j.persist());let ee=At(f);if(S.state.next({isSubmitting:!0}),n.resolver){const{errors:ae,values:me}=await de();te(),l.errors=ae,ee=At(me)}else await _e({fields:s,eventType:Bn.SUBMIT});if(h.disabled.size)for(const ae of h.disabled)St(ee,ae);if(St(l.errors,Dm),Qt(l.errors)){S.state.next({errors:{}});try{await E(ee,j)}catch(ae){W=ae}}else O&&await O({...l.errors},j),Or(),setTimeout(Or);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qt(l.errors)&&!W,submitCount:l.submitCount+1,errors:l.errors}),W)throw W},nr=(E,O={})=>{oe(s,E)&&(ft(O.defaultValue)?J(E,At(oe(o,E))):(J(E,O.defaultValue),Pe(o,E,At(O.defaultValue))),O.keepTouched||St(l.touchedFields,E),O.keepDirty||(St(l.dirtyFields,E),l.isDirty=O.defaultValue?F(E,At(oe(o,E))):F()),O.keepError||(St(l.errors,E),N.isValid&&q()),S.state.next({...l}))},In=(E,O={})=>{const j=E?At(E):o,W=At(j),ee=Qt(E),ae=ee?o:W;if(O.keepDefaultValues||(o=j),!O.keepValues){if(O.keepDirtyValues){const me=new Set([...h.mount,...Object.keys(Un(o,f))]);for(const ve of Array.from(me)){const Ye=oe(l.dirtyFields,ve),Yt=oe(f,ve),Na=oe(ae,ve);Ye&&!ft(Yt)?Pe(ae,ve,Yt):!Ye&&!ft(Na)&&J(ve,Na)}}else{if(Ou&&ft(E))for(const me of h.mount){const ve=oe(s,me);if(ve&&ve._f){const Ye=Array.isArray(ve._f.refs)?ve._f.refs[0]:ve._f.ref;if(ds(Ye)){const Yt=Ye.closest("form");if(Yt){Yt.reset();break}}}}if(O.keepFieldsRef)for(const me of h.mount)J(me,oe(ae,me));else s={}}f=n.shouldUnregister?O.keepDefaultValues?At(o):{}:At(ae),S.array.next({values:{...ae}}),S.state.next({values:{...ae}})}h={mount:O.keepDirtyValues?h.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!N.isValid||!!O.keepIsValid||!!O.keepDirtyValues||!n.shouldUnregister&&!Qt(ae),d.watch=!!n.shouldUnregister,d.keepIsValid=!!O.keepIsValid,d.action=!1,O.keepErrors||(l.errors={}),S.state.next({submitCount:O.keepSubmitCount?l.submitCount:0,isDirty:ee?!1:O.keepDirty?l.isDirty:!!(O.keepDefaultValues&&!Ar(E,o)),isSubmitted:O.keepIsSubmitted?l.isSubmitted:!1,dirtyFields:ee?{}:O.keepDirtyValues?O.keepDefaultValues&&f?Un(o,f):l.dirtyFields:O.keepDefaultValues&&E?Un(o,E):O.keepDirty?l.dirtyFields:{},touchedFields:O.keepTouched?l.touchedFields:{},errors:O.keepErrors?l.errors:{},isSubmitSuccessful:O.keepIsSubmitSuccessful?l.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Pn=(E,O)=>In(za(E)?E(f):E,{...n.resetOptions,...O}),Ac=(E,O={})=>{const j=oe(s,E),W=j&&j._f;if(W){const ee=W.refs?W.refs[0]:W.ref;ee.focus&&setTimeout(()=>{ee.focus(),O.shouldSelect&&za(ee.select)&&ee.select()})}},$s=E=>{l={...l,...E}},Wn={control:{register:rr,unregister:Tt,getFieldState:$,handleSubmit:ml,setError:ce,_subscribe:Ae,_runSchema:de,_updateIsValidating:te,_focusError:Or,_getWatch:X,_getDirty:F,_setValid:q,_setFieldArray:Q,_setDisabledField:ut,_setErrors:I,_getFieldArray:se,_reset:In,_resetDefaultValues:()=>za(n.defaultValues)&&n.defaultValues().then(E=>{Pn(E,n.resetOptions),S.state.next({isLoading:!1})}),_removeUnmounted:b,_disableForm:dl,_subjects:S,_proxyFormState:N,get _fields(){return s},get _formValues(){return f},get _state(){return d},set _state(E){d=E},get _defaultValues(){return o},get _names(){return h},set _names(E){h=E},get _formState(){return l},get _options(){return n},set _options(E){n={...n,...E}}},subscribe:Le,trigger:kt,register:rr,handleSubmit:ml,watch:Te,setValue:J,getValues:A,reset:Pn,resetField:nr,clearErrors:re,unregister:Tt,setError:ce,setFocus:Ac,getFieldState:$};return{...Wn,formControl:Wn}}function Lv(r={}){const n=Nt.useRef(void 0),l=Nt.useRef(void 0),[s,o]=Nt.useState({isDirty:!1,isValidating:!1,isLoading:za(r.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1,isReady:!1,defaultValues:za(r.defaultValues)?void 0:r.defaultValues});if(!n.current)if(r.formControl)n.current={...r.formControl,formState:s},r.defaultValues&&!za(r.defaultValues)&&r.formControl.reset(r.defaultValues,r.resetOptions);else{const{formControl:d,...h}=Uv(r);n.current={...h,formState:s}}const f=n.current.control;return f._options=r,Sv(()=>{const d=f._subscribe({formState:f._proxyFormState,callback:()=>o({...f._formState}),reRenderRoot:!0});return o(h=>({...h,isReady:!0})),f._formState.isReady=!0,d},[f]),Nt.useEffect(()=>f._disableForm(r.disabled),[f,r.disabled]),Nt.useEffect(()=>{r.mode&&(f._options.mode=r.mode),r.reValidateMode&&(f._options.reValidateMode=r.reValidateMode)},[f,r.mode,r.reValidateMode]),Nt.useEffect(()=>{r.errors&&(f._setErrors(r.errors),f._focusError())},[f,r.errors]),Nt.useEffect(()=>{r.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,r.shouldUnregister]),Nt.useEffect(()=>{if(f._proxyFormState.isDirty){const d=f._getDirty();d!==s.isDirty&&f._subjects.state.next({isDirty:d})}},[f,s.isDirty]),Nt.useEffect(()=>{var d;r.values&&!Ar(r.values,l.current)?(f._reset(r.values,{keepFieldsRef:!0,...f._options.resetOptions}),!((d=f._options.resetOptions)===null||d===void 0)&&d.keepIsValid||f._setValid(),l.current=r.values,o(h=>({...h}))):f._resetDefaultValues()},[f,r.values]),Nt.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),n.current.formState=Nt.useMemo(()=>Nv(s,f),[f,s]),n.current}const $m=(r,n,l)=>{if(r&&"reportValidity"in r){const s=oe(l,n);r.setCustomValidity(s&&s.message||""),r.reportValidity()}},qu=(r,n)=>{for(const l in n.fields){const s=n.fields[l];s&&s.ref&&"reportValidity"in s.ref?$m(s.ref,l,r):s&&s.refs&&s.refs.forEach(o=>$m(o,l,r))}},Fm=(r,n)=>{n.shouldUseNativeValidation&&qu(r,n);const l={};for(const s in r){const o=oe(n.fields,s),f=Object.assign(r[s]||{},{ref:o&&o.ref});if(qv(n.names||Object.keys(r),s)){const d=Object.assign({},oe(l,s));Pe(d,"root",f),Pe(l,s,d)}else Pe(l,s,f)}return l},qv=(r,n)=>{const l=Qm(n);return r.some(s=>Qm(s).match(`^${l}\\.\\d+`))};function Qm(r){return r.replace(/\]|\[/g,"")}function Xm(r,n,l){function s(h,y){var p;Object.defineProperty(h,"_zod",{value:h._zod??{},enumerable:!1}),(p=h._zod).traits??(p.traits=new Set),h._zod.traits.add(r),n(h,y);for(const x in d.prototype)x in h||Object.defineProperty(h,x,{value:d.prototype[x].bind(h)});h._zod.constr=d,h._zod.def=y}const o=(l==null?void 0:l.Parent)??Object;class f extends o{}Object.defineProperty(f,"name",{value:r});function d(h){var y;const p=l!=null&&l.Parent?new f:this;s(p,h),(y=p._zod).deferred??(y.deferred=[]);for(const x of p._zod.deferred)x();return p}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:h=>{var y,p;return l!=null&&l.Parent&&h instanceof l.Parent?!0:(p=(y=h==null?void 0:h._zod)==null?void 0:y.traits)==null?void 0:p.has(r)}}),Object.defineProperty(d,"name",{value:r}),d}class Hv extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Gv={};function Km(r){return Gv}function Zv(r,n){return typeof n=="bigint"?n.toString():n}const Jm=Error.captureStackTrace?Error.captureStackTrace:(...r)=>{};function hs(r){return typeof r=="string"?r:r==null?void 0:r.message}function Im(r,n,l){var o,f,d,h,y,p;const s={...r,path:r.path??[]};if(!r.message){const x=hs((d=(f=(o=r.inst)==null?void 0:o._zod.def)==null?void 0:f.error)==null?void 0:d.call(f,r))??hs((h=n==null?void 0:n.error)==null?void 0:h.call(n,r))??hs((y=l.customError)==null?void 0:y.call(l,r))??hs((p=l.localeError)==null?void 0:p.call(l,r))??"Invalid input";s.message=x}return delete s.inst,delete s.continue,n!=null&&n.reportInput||delete s.input,s}const Pm=(r,n)=>{r.name="$ZodError",Object.defineProperty(r,"_zod",{value:r._zod,enumerable:!1}),Object.defineProperty(r,"issues",{value:n,enumerable:!1}),Object.defineProperty(r,"message",{get(){return JSON.stringify(n,Zv,2)},enumerable:!0}),Object.defineProperty(r,"toString",{value:()=>r.message,enumerable:!1})},Yv=Xm("$ZodError",Pm),Wm=Xm("$ZodError",Pm,{Parent:Error}),$v=(r=>(n,l,s,o)=>{const f=s?Object.assign(s,{async:!1}):{async:!1},d=n._zod.run({value:l,issues:[]},f);if(d instanceof Promise)throw new Hv;if(d.issues.length){const h=new((o==null?void 0:o.Err)??r)(d.issues.map(y=>Im(y,f,Km())));throw Jm(h,o==null?void 0:o.callee),h}return d.value})(Wm),Fv=(r=>async(n,l,s,o)=>{const f=s?Object.assign(s,{async:!0}):{async:!0};let d=n._zod.run({value:l,issues:[]},f);if(d instanceof Promise&&(d=await d),d.issues.length){const h=new((o==null?void 0:o.Err)??r)(d.issues.map(y=>Im(y,f,Km())));throw Jm(h,o==null?void 0:o.callee),h}return d.value})(Wm);function eh(r,n){try{var l=r()}catch(s){return n(s)}return l&&l.then?l.then(void 0,n):l}function Qv(r,n){for(var l={};r.length;){var s=r[0],o=s.code,f=s.message,d=s.path.join(".");if(!l[d])if("unionErrors"in s){var h=s.unionErrors[0].errors[0];l[d]={message:h.message,type:h.code}}else l[d]={message:f,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(x){return x.errors.forEach(function(N){return r.push(N)})}),n){var y=l[d].types,p=y&&y[s.code];l[d]=ju(d,n,l,o,p?[].concat(p,s.message):s.message)}r.shift()}return l}function Xv(r,n){for(var l={};r.length;){var s=r[0],o=s.code,f=s.message,d=s.path.join(".");if(!l[d])if(s.code==="invalid_union"&&s.errors.length>0){var h=s.errors[0][0];l[d]={message:h.message,type:h.code}}else l[d]={message:f,type:o};if(s.code==="invalid_union"&&s.errors.forEach(function(x){return x.forEach(function(N){return r.push(N)})}),n){var y=l[d].types,p=y&&y[s.code];l[d]=ju(d,n,l,o,p?[].concat(p,s.message):s.message)}r.shift()}return l}function Kv(r,n,l){if(l===void 0&&(l={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(r))return function(s,o,f){try{return Promise.resolve(eh(function(){return Promise.resolve(r[l.mode==="sync"?"parse":"parseAsync"](s,n)).then(function(d){return f.shouldUseNativeValidation&&qu({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(h){return Array.isArray(h==null?void 0:h.issues)})(d))return{values:{},errors:Fm(Qv(d.errors,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(r))return function(s,o,f){try{return Promise.resolve(eh(function(){return Promise.resolve((l.mode==="sync"?$v:Fv)(r,s,n)).then(function(d){return f.shouldUseNativeValidation&&qu({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(h){return h instanceof Yv})(d))return{values:{},errors:Fm(Xv(d.issues,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};throw new Error("Invalid input: not a Zod schema")}/**
46
54
  * @license lucide-react v0.518.0 - ISC
47
55
  *
48
56
  * This source code is licensed under the ISC license.
49
57
  * See the LICENSE file in the root directory of this source tree.
50
- */const c_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),f_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,i,s)=>s?s.toUpperCase():i.toLowerCase()),gh=n=>{const r=f_(n);return r.charAt(0).toUpperCase()+r.slice(1)},yh=(...n)=>n.filter((r,i,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===i).join(" ").trim(),d_=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
58
+ */const Jv=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Iv=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,l,s)=>s?s.toUpperCase():l.toLowerCase()),th=r=>{const n=Iv(r);return n.charAt(0).toUpperCase()+n.slice(1)},ah=(...r)=>r.filter((n,l,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===l).join(" ").trim(),Pv=r=>{for(const n in r)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
51
59
  * @license lucide-react v0.518.0 - ISC
52
60
  *
53
61
  * This source code is licensed under the ISC license.
54
62
  * See the LICENSE file in the root directory of this source tree.
55
- */var m_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
63
+ */var Wv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
56
64
  * @license lucide-react v0.518.0 - ISC
57
65
  *
58
66
  * This source code is licensed under the ISC license.
59
67
  * See the LICENSE file in the root directory of this source tree.
60
- */const h_=te.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:d,...h},y)=>te.createElement("svg",{ref:y,...m_,width:r,height:r,stroke:n,strokeWidth:s?Number(i)*24/Number(r):i,className:yh("lucide",u),...!f&&!d_(h)&&{"aria-hidden":"true"},...h},[...d.map(([p,_])=>te.createElement(p,_)),...Array.isArray(f)?f:[f]]));/**
68
+ */const e1=ge.forwardRef(({color:r="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:o="",children:f,iconNode:d,...h},y)=>ge.createElement("svg",{ref:y,...Wv,width:n,height:n,stroke:r,strokeWidth:s?Number(l)*24/Number(n):l,className:ah("lucide",o),...!f&&!Pv(h)&&{"aria-hidden":"true"},...h},[...d.map(([p,x])=>ge.createElement(p,x)),...Array.isArray(f)?f:[f]]));/**
61
69
  * @license lucide-react v0.518.0 - ISC
62
70
  *
63
71
  * This source code is licensed under the ISC license.
64
72
  * See the LICENSE file in the root directory of this source tree.
65
- */const vh=(n,r)=>{const i=te.forwardRef(({className:s,...u},f)=>te.createElement(h_,{ref:f,iconNode:r,className:yh(`lucide-${c_(gh(n))}`,`lucide-${n}`,s),...u}));return i.displayName=gh(n),i};/**
73
+ */const rh=(r,n)=>{const l=ge.forwardRef(({className:s,...o},f)=>ge.createElement(e1,{ref:f,iconNode:n,className:ah(`lucide-${Jv(th(r))}`,`lucide-${r}`,s),...o}));return l.displayName=th(r),l};/**
66
74
  * @license lucide-react v0.518.0 - ISC
67
75
  *
68
76
  * This source code is licensed under the ISC license.
69
77
  * See the LICENSE file in the root directory of this source tree.
70
- */const bh=vh("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
78
+ */const nh=rh("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
71
79
  * @license lucide-react v0.518.0 - ISC
72
80
  *
73
81
  * This source code is licensed under the ISC license.
74
82
  * See the LICENSE file in the root directory of this source tree.
75
- */const p_=vh("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),_h={modal:{id:"",open:!1,label:"",url:""}},vr=$u(n=>({..._h,setModal:r=>n({modal:r}),resetModal:()=>n({modal:_h.modal})})),g_=n=>n.replace(/\D/g,"").slice(0,11).replace(/^(\d{2})(\d{5})(\d{0,4})/,"($1) $2-$3").trim(),y_=n=>n.replace(/\D/g,"").slice(0,8).replace(/^(\d{5})(\d{0,3})/,"$1-$2"),v_=n=>n.replace(/\D/g,"").replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"),Nh=n=>Number(String(n).replace(",",".")),b_=n=>{const r=String(n);if(r.includes(".")||r.includes(","))return Nh(n);const i=r.slice(-2);return+`${r.slice(0,-2)||"0"}.${i}`},__=n=>{const r=n.slice(-2);return+`${n.slice(0,-2)||"0"}.${r}`};function N_(n){return String(n).replace(/[.,]/g,"")}const wa={phone:n=>g_(n),cep:n=>y_(n),cpf:n=>v_(n),priceToInteger:n=>N_(n),price:n=>Nh(n),transformPrice:n=>b_(n),transformPorcent:n=>__(n)};/*! js-cookie v3.0.5 | MIT */function zs(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)n[s]=i[s]}return n}var S_={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function nc(n,r){function i(u,f,d){if(!(typeof document>"u")){d=zs({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var y in d)d[y]&&(h+="; "+y,d[y]!==!0&&(h+="="+d[y].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},h=0;h<f.length;h++){var y=f[h].split("="),p=y.slice(1).join("=");try{var _=decodeURIComponent(y[0]);if(d[_]=n.read(p,_),u===_)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,f){i(u,"",zs({},f,{expires:-1}))},withAttributes:function(u){return nc(this.converter,zs({},this.attributes,u))},withConverter:function(u){return nc(zs({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var rt=nc(S_,{path:"/"});const rc={BASE_URL:"/",DEV:!0,MODE:"production",PROD:!1,SSR:!1,VITE_API_URL:"https://serverless-pbm.vercel.app",VITE_CLIENT_ID_SANTOREMEDIO:"fff909d6-a77e-4ffc-a4bb-47a1cde99621",VITE_CLIENT_SECRET_SANTOREMEDIO:"ZTK8Q~gqjOkbBmH3vN1AIsKUbwkhUYOkzfvIUb18",VITE_CORREIOS_API_URL:"https://viacep.com.br/ws",VITE_GRANT_TYPE_SANTOREMEDIO:"client_credentials",VITE_SCOPE_SANTOREMEDIO:"https://interplayersdevb2c.onmicrosoft.com/services/varejo-api-pre/.default",VITE_USERNAME_SANTOREMEDIO:"147de435-fac6-4c57-95d8-bb06feb0496b"},br=n=>{var r;if(typeof{url:on&&on.tagName.toUpperCase()==="SCRIPT"&&on.src||new URL("vanilla.js",document.baseURI).href}<"u")return rc==null?void 0:rc[n];if(typeof process<"u")return(r=process.env)==null?void 0:r[n]},x_=async({product:n,consumer:r})=>{const i=rt.get("tenant_id");if(!i)throw new Error(`No configuration found for tenant: ${i}`);if(!r||!r.holderId)throw new Error("Consumer holderId information is required");if(!n)throw new Error("Product information is required");const s={id:n.id,ean:n.ean,requestedQuantity:n.requestedQuantity,listPrice:n.listPrice,netPrice:n.netPrice};try{const f=await(await fetch(`${br("VITE_API_URL")}/api/lookup-consumer.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:i,product:s,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour"),consumer:r})})).json();if(!f.success)throw new Error("PBMLOG: Enable Discount Failed!");return f}catch(u){return console.error("Error during enable discount:",u),{success:!1,error:"Authorization failed"}}};var Yt="C:\\Dev\\agrada\\library-pbm\\src\\components\\Form\\index.tsx";function E_({startTransition:n}){const r=ta(),[i,s]=te.useState(!1),{setModal:u}=vr(),{handleSubmit:f,register:d,setValue:h,clearErrors:y,unregister:p,formState:{errors:_}}=Wb({resolver:u_(Eb),mode:"onSubmit",defaultValues:{securityNumber:r.securityNumber||"",coupon:""}}),b=async N=>{if(r.targetProduct===null){console.error("PBMLOG: Product is not defined!");return}if(!r.targetProduct.id){console.error("PBMLOG: Product ID is not defined!");return}if(!r.targetProduct.listPrice){console.error("PBMLOG: List Price is not defined!");return}r.setSecurityNumber(N.securityNumber.replace(/\D/g,""));const U=await x_({product:r.targetProduct,consumer:{holderId:N.securityNumber.replace(/\D/g,"")}});if(!U.success){u({id:"CustomerNotRegistered",open:!0});return}r.setBenefitsList(U.product),r.setState("isActivated")},C=async N=>{if(!r.isAuthenticatedShopper){u({id:"ShopperIsNotAuthenticated",open:!0});return}i||h("coupon",void 0,{shouldValidate:!1}),i&&N.coupon!=null&&r.setCardID(N.coupon),n(async()=>{await b(N)})};return React.createElement(React.Fragment,null,React.createElement("form",{onSubmit:f(C),className:ot("w-full h-auto flex items-start justify-center flex-col mb-2 transition-all duration-150"),id:"form_security_number_pbm",__self:this,__source:{fileName:Yt,lineNumber:107,columnNumber:7}},React.createElement("label",{htmlFor:"input_security_number_pbm",className:ot("w-full h-auto flex items-start flex-col justify-center relative py-2 transition-all duration-100",{"mb-4":_.securityNumber&&!i}),id:"label_security_number_pbm",__self:this,__source:{fileName:Yt,lineNumber:114,columnNumber:9}},React.createElement("input",{type:"text",className:ot("w-full h-10 bg-(--pbm-input-background) rounded-lg text-sm font-semibold outline-(--pbm-outline-color) focus:outline focus:bg-(--pbm-input-focus) focus:outline-(--pbm-outline-focus-color) text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":_.securityNumber,"rounded-lg":i}),style:{"--tw-outline-color":_.securityNumber?void 0:"var(--pbm-secondary)"},placeholder:"Digite seu CPF aqui...",required:!0,maxLength:14,...d("securityNumber",{onChange:N=>{const U=wa.cpf(N.target.value);h("securityNumber",U,{shouldValidate:!0})}}),defaultValue:r.securityNumber||"",id:"input_security_number_pbm",__self:this,__source:{fileName:Yt,lineNumber:124,columnNumber:11}}),_.securityNumber&&React.createElement("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"security_number_form_error",__self:this,__source:{fileName:Yt,lineNumber:155,columnNumber:13}},_.securityNumber.message)),React.createElement(te.Activity,{mode:i?"visible":"hidden",__self:this,__source:{fileName:Yt,lineNumber:164,columnNumber:9}},React.createElement("label",{htmlFor:"input_coupon_pbm",className:ot("w-full h-auto flex items-start flex-col justify-center relative py-2",{"mt-2":_.securityNumber}),id:"label_coupon_pbm",__self:this,__source:{fileName:Yt,lineNumber:165,columnNumber:11}},React.createElement("input",{type:"text",className:ot("w-full h-10 bg-gray-100 rounded-s-lg text-sm font-semibold focus:outline focus:bg-white text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":_.coupon,"rounded-lg":i}),style:{"--tw-outline-color":_.coupon?void 0:"var(--pbm-secondary)"},placeholder:"Cupom / ID do Cartão",...d("coupon",{required:i?"Cupom / ID do Cartão obrigatório.":!1,shouldUnregister:!i,onChange:N=>{h("coupon",N.target.value,{shouldValidate:i})}}),id:"input_coupon_pbm",__self:this,__source:{fileName:Yt,lineNumber:175,columnNumber:13}}),_.coupon&&React.createElement("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"coupon_form_error",__self:this,__source:{fileName:Yt,lineNumber:206,columnNumber:15}},_.coupon.message))),React.createElement("button",{type:"submit",className:ot("w-full h-10 rounded-lg flex items-center justify-center cursor-pointer text-sm text-white font-semibold transition-all duration-150",{"rounded-lg":i}),style:{backgroundColor:"var(--pbm-primary)"},id:"button_submit_security_number_pbm",__self:this,__source:{fileName:Yt,lineNumber:216,columnNumber:9}},"Comprar com desconto")),React.createElement("section",{className:"flex items-start flex-col gap-2",__self:this,__source:{fileName:Yt,lineNumber:231,columnNumber:7}},React.createElement(fn,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:N=>N.currentTarget.style.filter="brightness(0.8)",onMouseOut:N=>N.currentTarget.style.filter="none",onClick:()=>{const N=!i;s(N),N||(p("coupon"),y("coupon"))},id:"check_benefits_button",__self:this,__source:{fileName:Yt,lineNumber:232,columnNumber:9}},React.createElement("span",{className:"text-start",__self:this,__source:{fileName:Yt,lineNumber:250,columnNumber:11}},i?"Não possui Cupom / ID do Cartão?":"Possui Cupom / ID do Cartão?"),React.createElement(bh,{size:16,className:ot({"rotate-0":!i,"rotate-180":i}),__self:this,__source:{fileName:Yt,lineNumber:255,columnNumber:11}})),React.createElement(fn,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:N=>N.currentTarget.style.filter="brightness(0.8)",onMouseOut:N=>N.currentTarget.style.filter="none",onClick:()=>r.setState("isPreview"),id:"check_benefits_button",__self:this,__source:{fileName:Yt,lineNumber:263,columnNumber:9}},React.createElement("span",{__self:this,__source:{fileName:Yt,lineNumber:273,columnNumber:11}},"Consultar Benefícios"),React.createElement(bh,{size:16,__self:this,__source:{fileName:Yt,lineNumber:274,columnNumber:11}}))))}var xt="C:\\Dev\\agrada\\library-pbm\\src\\components\\UI\\Icons\\index.tsx";function w_({size:n}){return te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,__self:this,__source:{fileName:xt,lineNumber:6,columnNumber:5}},te.createElement("path",{d:"M421.44 78.56C375.64 32.77 314.76 7.55 250 7.55S124.36 32.77 78.56 78.56C32.77 124.36 7.55 185.24 7.55 250s25.22 125.64 71.01 171.44c45.8 45.79 106.68 71.01 171.44 71.01s125.64-25.22 171.44-71.01c45.79-45.8 71.01-106.68 71.01-171.44s-25.22-125.64-71.01-171.44zm-49.17 121.7L242.88 334.63c-8.98 9.29-23.57 10.17-33.59 2.02l-79.63-64.7c-10.69-8.67-12.33-24.38-3.66-35.07 8.67-10.69 24.38-12.33 35.07-3.65l61.9 50.39L336.5 165.74c4.4-4.75 10.48-7.59 16.95-7.93a24.88 24.88 0 0118.83 7.26c9.72 9.72 9.71 25.48 0 35.19z",fill:"#229b00",__self:this,__source:{fileName:xt,lineNumber:13,columnNumber:7}}))}function C_({size:n}){return te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,__self:this,__source:{fileName:xt,lineNumber:22,columnNumber:5}},te.createElement("circle",{cx:250,cy:250,r:237.45,fill:"#fff",__self:this,__source:{fileName:xt,lineNumber:29,columnNumber:7}}),te.createElement("path",{d:"M250 492.45c-64.76 0-125.64-25.22-171.44-71.01C32.77 375.64 7.55 314.76 7.55 250S32.77 124.36 78.56 78.56C124.36 32.77 185.24 7.55 250 7.55s125.64 25.22 171.44 71.01c45.79 45.79 71.01 106.68 71.01 171.44s-25.22 125.64-71.01 171.44c-45.79 45.79-106.68 71.01-171.44 71.01zm0-474.9C121.83 17.55 17.55 121.83 17.55 250S121.83 482.45 250 482.45 482.45 378.17 482.45 250 378.17 17.55 250 17.55z",fill:"#d8d8d8",__self:this,__source:{fileName:xt,lineNumber:30,columnNumber:7}}))}function A_({size:n,color:r}){return te.createElement("svg",{viewBox:"-0.003 0 99.979 99.979",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:n,height:n,__self:this,__source:{fileName:xt,lineNumber:40,columnNumber:5}},te.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0",__self:this,__source:{fileName:xt,lineNumber:47,columnNumber:7}}),te.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",__self:this,__source:{fileName:xt,lineNumber:48,columnNumber:7}}),te.createElement("g",{id:"SVGRepo_iconCarrier",__self:this,__source:{fileName:xt,lineNumber:53,columnNumber:7}},te.createElement("path",{fill:"#ffe700",d:"M92.869 7.105c9.478 9.476 9.478 24.832 0 34.308L41.411 92.869c-9.475 9.474-24.833 9.474-34.307 0-9.476-9.475-9.476-24.832 0-34.308L58.562 7.105c9.475-9.473 24.834-9.473 34.307 0z",__self:this,__source:{fileName:xt,lineNumber:54,columnNumber:9}}),te.createElement("path",{fill:r,d:"M32.548 33.122L7.105 58.563c-9.476 9.476-9.476 24.833 0 34.308 9.474 9.475 24.832 9.475 34.307 0L66.85 67.43 32.548 33.122z",__self:this,__source:{fileName:xt,lineNumber:58,columnNumber:9}}),te.createElement("path",{fill:r,d:"M65.43 68.862L31.134 34.568l1.414-1.414 34.294 34.294z",__self:this,__source:{fileName:xt,lineNumber:62,columnNumber:9}}),te.createElement("path",{fill:r,d:"M38.096 41.51L12.7 66.906a5.894 5.894 0 0 0 0 8.339 5.896 5.896 0 0 0 8.339 0l25.396-25.396-8.339-8.339z",__self:this,__source:{fileName:xt,lineNumber:66,columnNumber:9}}),te.createElement("path",{fill:"#ffe700",d:"M75.244 12.7a5.897 5.897 0 0 0-8.343 0L39.51 40.096l8.339 8.339 27.396-27.396a5.899 5.899 0 0 0-.001-8.339z",__self:this,__source:{fileName:xt,lineNumber:70,columnNumber:9}}),te.createElement("path",{fill:r,d:"M47.862 48.444l-1.414 1.414-8.335-8.336 1.414-1.414z",__self:this,__source:{fileName:xt,lineNumber:74,columnNumber:9}})))}function T_({size:n,color:r}){return te.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,__self:this,__source:{fileName:xt,lineNumber:85,columnNumber:5}},te.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0",__self:this,__source:{fileName:xt,lineNumber:92,columnNumber:7}}),te.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",__self:this,__source:{fileName:xt,lineNumber:93,columnNumber:7}}),te.createElement("g",{id:"SVGRepo_iconCarrier",__self:this,__source:{fileName:xt,lineNumber:98,columnNumber:7}},te.createElement("path",{d:"M7.33199 16.3154C6.94146 15.9248 6.3083 15.9248 5.91777 16.3154C5.52725 16.7059 5.52725 17.339 5.91777 17.7296L10.5834 22.3952C11.3644 23.1762 12.6308 23.1762 13.4118 22.3952L18.0802 17.7267C18.4707 17.3362 18.4707 16.703 18.0802 16.3125C17.6897 15.922 17.0565 15.922 16.666 16.3125L13 19.9786V2.0001C13 1.44781 12.5523 1.0001 12 1.0001C11.4477 1.0001 11 1.44781 11 2.0001V19.9833L7.33199 16.3154Z",fill:r,__self:this,__source:{fileName:xt,lineNumber:99,columnNumber:9}})))}const ks={CheckON:w_,CheckOFF:C_,Pills:A_,ArrowDown:T_};var na="C:\\Dev\\agrada\\library-pbm\\src\\components\\Header\\index.tsx";function R_(){var y;const{targetProduct:n,benefitsEnabled:r,setBenefitsEnabled:i}=ta(),s=wa.transformPrice(Number(n==null?void 0:n.listPrice)),u=wa.transformPrice(Number(n==null?void 0:n.discountValue)||0),f=wa.transformPorcent((n==null?void 0:n.discountPercentual)||"0"),d=s*f/100,h=s-u||s-d;return React.createElement("header",{className:"flex items-start justify-start flex-col gap-4 w-full p-0.5 rounded-xl mt-5",id:"header_pbm",__self:this,__source:{fileName:na,lineNumber:24,columnNumber:5}},React.createElement("label",{className:"flex items-center gap-2 cursor-pointer",htmlFor:"enable_benefits_checkbox",__self:this,__source:{fileName:na,lineNumber:28,columnNumber:7}},React.createElement("input",{id:"enable_benefits_checkbox",type:"checkbox",name:"option",className:"peer hidden",checked:r,onChange:p=>i(p.target.checked),__self:this,__source:{fileName:na,lineNumber:32,columnNumber:9}}),React.createElement("div",{className:"w-5 h-5 border border-(--pbm-primary) rounded-full flex items-center justify-center transition-all duration-300 after:content-[''] after:w-2 after:h-2 after:rounded-full after:bg-(--pbm-primary) after:scale-0 after:transition-transform after:duration-200 peer-checked:after:scale-100",__self:this,__source:{fileName:na,lineNumber:42,columnNumber:9}}),React.createElement("p",{className:"font-medium text-(--pbm-primary) select-none text-sm",__self:this,__source:{fileName:na,lineNumber:43,columnNumber:9}},"Desconto de Laboratório"),React.createElement(ks.Pills,{size:16,color:"var(--pbm-primary)",__self:this,__source:{fileName:na,lineNumber:46,columnNumber:9}})),React.createElement("span",{className:"py-1 rounded-xl shrink-0 text-white text-xl font-bold flex items-center justify-start gap-2 relative","data-testid":"test_id_header_price",id:"header_price",__self:this,__source:{fileName:na,lineNumber:49,columnNumber:7}},React.createElement("section",{className:"flex items-start gap-2 justify-center-safe flex-col",__self:this,__source:{fileName:na,lineNumber:54,columnNumber:9}},React.createElement("div",{className:"flex items-center-safe justify-start gap-1",__self:this,__source:{fileName:na,lineNumber:55,columnNumber:11}},React.createElement("span",{className:"line-through text-sm font-light text-zinc-600",__self:this,__source:{fileName:na,lineNumber:56,columnNumber:13}},(y=Number(s))==null?void 0:y.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})),React.createElement(ks.ArrowDown,{size:14,color:"var(--pbm-primary)",__self:this,__source:{fileName:na,lineNumber:65,columnNumber:13}}),React.createElement("span",{className:"font-semibold text-sm text-(--pbm-primary)",__self:this,__source:{fileName:na,lineNumber:67,columnNumber:13}},f.toFixed(2),"%")),React.createElement("span",{className:"text-lg text-zinc-700 font-bold",__self:this,__source:{fileName:na,lineNumber:72,columnNumber:11}},h==null?void 0:h.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})),(n==null?void 0:n.informativeMessage)&&React.createElement("span",{className:"text-xs text-zinc-600 font-medium",__self:this,__source:{fileName:na,lineNumber:82,columnNumber:13}},n==null?void 0:n.informativeMessage))))}var lc="C:\\Dev\\agrada\\library-pbm\\src\\components\\UI\\Loading\\index.tsx";function O_({textColor:n}){return React.createElement("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",__self:this,__source:{fileName:lc,lineNumber:7,columnNumber:5}},React.createElement("div",{"data-testid":"test_id_spin",className:"w-8 h-8 border-4 shrink-0 border-gray-300 rounded-full animate-spin",style:{borderTopColor:"var(--pbm-secondary)"},id:"loading_spin",__self:this,__source:{fileName:lc,lineNumber:8,columnNumber:7}}),React.createElement("p",{className:"text-sm font-semibold text-start",style:{color:n||"var(--pbm-text)"},id:"loading_label",__self:this,__source:{fileName:lc,lineNumber:14,columnNumber:7}},"Um momento... estamos verificando seus dados."))}var z_="C:\\Dev\\agrada\\library-pbm\\src\\components\\UI\\Container\\index.tsx";function ic({children:n,variant:r}){const{benefitsEnabled:i}=ta();return nt.createElement("main",{className:ot({"border-3 border-(--pbm-border) overflow-hidden flex flex-col items-center justify-center min-w-(--min-container) max-w-(--max-container) w-full h-auto rounded-xl p-4 bg-white gap-4 relative":r==="main","w-full relative":r==="simple","h-0 overflow-hidden":!i&&r==="simple"}),"data-testid":"test_id_container","data-variant":r,id:"container_pbm",__self:this,__source:{fileName:z_,lineNumber:15,columnNumber:5}},n)}var k_="C:\\Dev\\agrada\\library-pbm\\src\\components\\UI\\Title\\index.tsx";function al(n){return nt.createElement("h2",{className:ot("text-start font-semibold text-sm",n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_title",id:"title_pbm",__self:this,__source:{fileName:k_,lineNumber:13,columnNumber:5}},n.children)}var dn="C:\\Dev\\agrada\\library-pbm\\src\\components\\BenefitsTable\\Item.tsx";function D_({data:n,onChange:r,checked:i}){const{setAvailableDiscountSelected:s,state:u,isAuthenticatedShopper:f}=ta(),{setModal:d}=vr(),h=n.id+"_"+n.requestedQuantity,y=wa.transformPrice(Number(n==null?void 0:n.grossPrice)||Number(n==null?void 0:n.listPrice)||0),p=wa.transformPrice(Number(n==null?void 0:n.discountValue)||0),_=wa.transformPorcent((n==null?void 0:n.discountPercentual)||"0"),b=p*Number(n.requestedQuantity),C=y*Number(n.requestedQuantity),N=C*_/100,U=C-b||C-N,E=te.useCallback(()=>{if(i){const P=F=>Math.round(F*100)/100;s({discount:{total:P(b),unit:P(p)},quantity:Number(n.requestedQuantity),totalPrice:P(U),grossPrice:n.grossPrice})}},[i,n.requestedQuantity,n.grossPrice,s,b,p,U]);te.useEffect(()=>{E()},[E]);const q=()=>{if(!f&&u==="isActivated"){d({id:"ShopperIsNotAuthenticated",open:!0});return}r()};return React.createElement("label",{htmlFor:h,className:ot("label_benefits w-full flex items-center justify-start bg-zinc-300/60 border border-zinc-400/50 px-4 py-2 transition-colors rounded-lg gap-1",{"cursor-not-allowed":u==="isPreview","cursor-pointer":u==="isActivated"}),style:{borderColor:i?"var(--pbm-primary)":void 0,backgroundColor:i?"color-mix(in srgb, var(--pbm-primary), transparent 90%)":void 0},id:"label_benefits_"+h,__self:this,__source:{fileName:dn,lineNumber:89,columnNumber:5}},React.createElement("input",{type:"radio",name:"benefits_discount",id:h,className:"hidden",checked:i,onChange:q,disabled:u==="isPreview",__self:this,__source:{fileName:dn,lineNumber:106,columnNumber:7}}),React.createElement("span",{style:{color:"var(--pbm-primary)"},__self:this,__source:{fileName:dn,lineNumber:116,columnNumber:7}},i?React.createElement(ks.CheckON,{size:20,__self:this,__source:{fileName:dn,lineNumber:117,columnNumber:52}}):React.createElement(ks.CheckOFF,{size:20,__self:this,__source:{fileName:dn,lineNumber:117,columnNumber:21}})),React.createElement("span",{className:"font-semibold text-sm",style:{color:"var(--pbm-text)"},__self:this,__source:{fileName:dn,lineNumber:120,columnNumber:7}},n.requestedQuantity,"un"),React.createElement("section",{className:"ml-auto relative gap-2 flex items-center-safe justify-end-safe",__self:this,__source:{fileName:dn,lineNumber:127,columnNumber:7}},React.createElement("span",{className:"text-white -top-4 py-0.5 font-semibold text-xs px-2 w-auto text-nowrap rounded-2xl -right-3",style:{backgroundColor:"var(--pbm-primary)"},__self:this,__source:{fileName:dn,lineNumber:128,columnNumber:9}},b.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})," ","OFF"),React.createElement("strong",{className:"font-semibold text-sm text-center",style:{color:"var(--pbm-text)"},__self:this,__source:{fileName:dn,lineNumber:140,columnNumber:9}},U.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"}))))}const M_="N000";var ma="C:\\Dev\\agrada\\library-pbm\\src\\components\\BenefitsTable\\index.tsx";function U_(){var y;const{setState:n,state:r,customLoginUrl:i,isAuthenticatedShopper:s,benefitsList:u}=ta(),[f,d]=te.useState(null),[h]=te.useState(u);return h!=null&&h.length&&((y=h[0])==null?void 0:y.returnCode)!==M_&&r==="isActivated"?React.createElement("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",__self:this,__source:{fileName:ma,lineNumber:30,columnNumber:7}},React.createElement("p",{className:"text-sm font-semibold text-start",style:{color:"var(--pbm-text)"},id:"benefits_error_handle",__self:this,__source:{fileName:ma,lineNumber:31,columnNumber:9}},h[0].informativeText)):React.createElement("section",{className:"flex items-start justify-center gap-4 w-full h-auto flex-col",id:"benefits_table_pbm",__self:this,__source:{fileName:ma,lineNumber:43,columnNumber:5}},React.createElement(al,{__self:this,__source:{fileName:ma,lineNumber:47,columnNumber:7}},"Descontos disponíveis:"),React.createElement("form",{className:"flex flex-col items-center justify-start w-full gap-4.5",id:"form_benefits_table_pbm",onSubmit:p=>p.preventDefault(),__self:this,__source:{fileName:ma,lineNumber:49,columnNumber:7}},!h&&React.createElement("p",{className:"text-sm font-semibold text-start text-zinc-900",id:"benefits_empty_pbm",__self:this,__source:{fileName:ma,lineNumber:55,columnNumber:11}},"Não foi possível encontrar benefícios para esse produto."),h&&h.map(p=>{const _=p.id+"_"+p.requestedQuantity;return React.createElement(D_,{key:_,data:p,checked:f===_,onChange:()=>d(_),__self:this,__source:{fileName:ma,lineNumber:68,columnNumber:15}})})),r==="isPreview"&&React.createElement(fn,{onClick:()=>n("isEmpty"),className:"bg-transparent p-0 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"unauthorized_benefits_button",__self:this,__source:{fileName:ma,lineNumber:79,columnNumber:9}},"Atenção: Não é possível utilizar os benefícos sem realizar a consulta do CPF e o Login, por favor"," ",React.createElement("span",{className:"underline",__self:this,__source:{fileName:ma,lineNumber:86,columnNumber:11}},"insira seu cpf para utilizar os benefícios")),r==="isActivated"&&React.createElement(React.Fragment,null,!s&&React.createElement(fn,{type:"button",onClick:()=>window.location.assign(i||"/login"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"login",__self:this,__source:{fileName:ma,lineNumber:95,columnNumber:13}},React.createElement("span",{className:"underline",__self:this,__source:{fileName:ma,lineNumber:101,columnNumber:15}},"Por favor, faça o Login para aproveitar os benefícios!")),React.createElement(fn,{onClick:()=>n("isEmpty"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"change_security_number",__self:this,__source:{fileName:ma,lineNumber:107,columnNumber:11}},React.createElement("span",{className:"underline",__self:this,__source:{fileName:ma,lineNumber:112,columnNumber:13}},"Deseja editar o cpf digitado?"))))}var j_="C:\\Dev\\agrada\\library-pbm\\src\\components\\UI\\Text\\index.tsx";function Ds(n){return nt.createElement("p",{className:ot("font-normal text-sm",n.textAlign&&`text-${n.textAlign}`,n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_text",id:"text_pbm",__self:this,__source:{fileName:j_,lineNumber:13,columnNumber:5}},n.children)}var ui="C:\\Dev\\agrada\\library-pbm\\src\\components\\SecurityNumberInvalid\\index.tsx";function B_({textColor:n}){const{urlAcceptTerms:r}=ta(),{setModal:i}=vr(),s=()=>{r&&i({open:!0,id:"iframe_pbm",label:"Aceitar os termos",url:r})};return React.createElement("section",{"data-testid":"test_id_invalid",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_invalid_container_pbm",__self:this,__source:{fileName:ui,lineNumber:19,columnNumber:5}},React.createElement(al,{className:"w-full",textColor:n,__self:this,__source:{fileName:ui,lineNumber:25,columnNumber:7}},"CPF não cadastrado."),React.createElement(Ds,{className:"w-full",textColor:n,__self:this,__source:{fileName:ui,lineNumber:28,columnNumber:7}},"Conclua seu cadastro para habilitar o benefício. ",React.createElement("br",{__self:this,__source:{fileName:ui,lineNumber:29,columnNumber:58}}),"Ao clicar em “Aceitar os termos”, você irá para uma página externa. Aceite os termos e volte para continuar."),React.createElement(fn,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},__self:this,__source:{fileName:ui,lineNumber:33,columnNumber:7}},"Aceitar os termos"))}var Ms="C:\\Dev\\agrada\\library-pbm\\src\\components\\SecurityNumberRegitered\\index.tsx";function L_({textColor:n}){const{urlRegisterIndustry:r}=ta(),{setModal:i}=vr(),s=()=>{r&&i({open:!0,id:"iframe_pbm",label:"Ativar CPF",url:r})};return React.createElement("section",{"data-testid":"test_id_registered",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_registered_container_pbm",__self:this,__source:{fileName:Ms,lineNumber:19,columnNumber:5}},React.createElement(al,{className:"w-full",textColor:n,__self:this,__source:{fileName:Ms,lineNumber:25,columnNumber:7}},"Ops, seu CPF ainda não está habilitado para este produto."),React.createElement(Ds,{className:"w-full",textColor:n,__self:this,__source:{fileName:Ms,lineNumber:28,columnNumber:7}},"Para ativar o benefício, clique em “Ativar CPF” e conclua a etapa na página externa. Depois, é só voltar para continuar — vamos aguardar você aqui."),React.createElement(fn,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},__self:this,__source:{fileName:Ms,lineNumber:31,columnNumber:7}},"Ativar CPF"))}const Sh={ErrorMessage:"Erro ao aplicar o benefício"},xh=$u(n=>({...Sh,setErrorMessage:r=>n({ErrorMessage:r}),resetErrorMessage:()=>n({ErrorMessage:Sh.ErrorMessage})}));var nl="C:\\Dev\\agrada\\library-pbm\\src\\components\\Errors\\ErrorToApplyBenefits.tsx";const Eh=()=>{const{ErrorMessage:n}=xh(),{setState:r}=ta();return React.createElement(ic,{variant:"main",__self:void 0,__source:{fileName:nl,lineNumber:14,columnNumber:9}},React.createElement(al,{__self:void 0,__source:{fileName:nl,lineNumber:15,columnNumber:13}},"Erro ao Aplicar o Benefício"),React.createElement(Ds,{textAlign:"center",__self:void 0,__source:{fileName:nl,lineNumber:16,columnNumber:13}},n),React.createElement(fn,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:i=>i.currentTarget.style.filter="brightness(0.8)",onMouseOut:i=>i.currentTarget.style.filter="none",onClick:()=>r("isEmpty"),id:"check_benefits_button",__self:void 0,__source:{fileName:nl,lineNumber:17,columnNumber:13}},React.createElement("span",{__self:void 0,__source:{fileName:nl,lineNumber:25,columnNumber:17}},"Tentar novamente"),React.createElement(p_,{size:16,__self:void 0,__source:{fileName:nl,lineNumber:26,columnNumber:17}})))},wh={personalData:{name:"",phone:"",birthday:"",email:""},address:{postalcode:"",number:"",complement:"",street:"",neighborhood:"",city:"",uf:"",stateAddress:""},genderResponsibility:{gender:"",patient:null},doctor:{typeCredential:"CRM",register:"",state:"",doctorName:""},acceptances:{acceptPhone:!1,acceptsSms:!1,acceptsEmail:!1,acceptsMail:!1,acceptsPrivacyTermsLGPD:!1},step:0},_r=$u(n=>({...wh,setPersonalData:r=>n(i=>({personalData:{...i.personalData,...r}})),setAddress:r=>n(i=>({address:{...i.address,...r}})),setGenderResponsibility:r=>n(i=>({genderResponsibility:{...i.genderResponsibility,...r}})),setDoctor:r=>n(i=>({doctor:{...i.doctor,...r}})),setAcceptances:r=>n(i=>({acceptances:{...i.acceptances,...r}})),setStep:r=>n({step:r}),resetForm:()=>n(wh)}));var sc="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\Shared\\FieldWrapper.tsx";const $t=({label:n,error:r,children:i})=>React.createElement("div",{className:"flex flex-col gap-1",__self:void 0,__source:{fileName:sc,lineNumber:10,columnNumber:3}},React.createElement("label",{className:"text-xs font-medium text-zinc-500 uppercase tracking-wide",__self:void 0,__source:{fileName:sc,lineNumber:11,columnNumber:5}},n),i,r&&React.createElement("span",{className:"text-xs text-red-500 mt-0.5",__self:void 0,__source:{fileName:sc,lineNumber:15,columnNumber:15}},r)),ci="w-full rounded-lg border border-gray-200 bg-gray-100 px-3 py-2.5 text-sm text-gray-400 cursor-not-allowed",Ya=n=>ot("w-full rounded-lg border px-3 py-2.5 text-sm text-gray-800 outline-none transition-all","focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500",n?"border-red-400 bg-red-50":"border-gray-200 bg-gray-50 hover:border-gray-300");var Nr="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\Shared\\StepActions.tsx";const fi=({onNext:n,onBack:r,loading:i,nextLabel:s="Continuar",isLast:u=!1})=>React.createElement("div",{className:"flex gap-2 mt-2 pt-4 border-t border-gray-100",__self:void 0,__source:{fileName:Nr,lineNumber:16,columnNumber:3}},r&&React.createElement("button",{type:"button",onClick:r,className:"flex-1 rounded-lg border border-gray-200 py-2.5 text-sm font-medium text-zinc-600 hover:bg-zinc-600/10 transition-all cursor-pointer",__self:void 0,__source:{fileName:Nr,lineNumber:18,columnNumber:7}},"Voltar"),React.createElement("button",{type:"button",onClick:n,disabled:i,className:ot("flex-2 rounded-lg py-2.5 text-sm font-semibold text-white transition-all cursor-pointer",u?"bg-emerald-600 hover:bg-emerald-500":"bg-(--pbm-primary) hover:bg-(--pbm-primary)/60",i&&"opacity-60 cursor-not-allowed"),__self:void 0,__source:{fileName:Nr,lineNumber:26,columnNumber:5}},i?React.createElement("span",{className:"flex items-center justify-center gap-2",__self:void 0,__source:{fileName:Nr,lineNumber:39,columnNumber:9}},React.createElement("svg",{className:"h-4 w-4 animate-spin",viewBox:"0 0 24 24",fill:"none",__self:void 0,__source:{fileName:Nr,lineNumber:40,columnNumber:11}},React.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",__self:void 0,__source:{fileName:Nr,lineNumber:41,columnNumber:13}}),React.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z",__self:void 0,__source:{fileName:Nr,lineNumber:49,columnNumber:13}})),"Enviando..."):s)),Us={PersonalData:0,Address:1,GenderResponsibility:2,Doctor:3,Acceptances:4};var Kt="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\StepPersonalDataForm.tsx";const V_=({securityNumber:n,onNext:r})=>{const{personalData:i,setPersonalData:s,setStep:u}=_r(),{setModal:f}=vr(),[d,h]=te.useState({}),[y,p]=te.useState(!1),_=()=>{const C={};return(!i.name.trim()||i.name.trim().split(" ").length<2)&&(C.name="Informe o nome completo."),/^\(\d{2}\) \d{5}-\d{4}$/.test(i.phone)||(C.phone="Telefone inválido."),i.birthday||(C.birthday="Data de nascimento obrigatória."),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i.email)||(C.email="E-mail inválido."),h(C),Object.keys(C).length===0},b=async()=>{if(_()){p(!0);try{u(Us.Address),r()}catch{console.error("An error occurred while setting personal data form.")}finally{p(!1)}}};return React.createElement("div",{className:"flex flex-col gap-4",__self:void 0,__source:{fileName:Kt,lineNumber:56,columnNumber:5}},React.createElement($t,{label:"CPF",__self:void 0,__source:{fileName:Kt,lineNumber:57,columnNumber:7}},React.createElement("input",{className:ci,value:wa.cpf(n),disabled:!0,readOnly:!0,__self:void 0,__source:{fileName:Kt,lineNumber:58,columnNumber:9}}),React.createElement("p",{className:"text-xs text-gray-400 mt-1",__self:void 0,__source:{fileName:Kt,lineNumber:64,columnNumber:9}},React.createElement("button",{type:"button",className:"text-(--pbm-primary) hover:text-(--pbm-primary)/60 cursor-pointer underline underline-offset-2 transition-colors",onClick:()=>f({id:"",open:!1}),__self:void 0,__source:{fileName:Kt,lineNumber:65,columnNumber:11}},"Deseja alterar o CPF? Clique aqui."))),React.createElement($t,{label:"Nome completo",error:d.name,__self:void 0,__source:{fileName:Kt,lineNumber:75,columnNumber:7}},React.createElement("input",{className:Ya(d.name),placeholder:"Ex: João da Silva",value:i.name,onChange:C=>{s({name:C.target.value}),h(N=>({...N,name:void 0}))},__self:void 0,__source:{fileName:Kt,lineNumber:76,columnNumber:9}})),React.createElement("div",{className:"grid grid-cols-2 gap-3",__self:void 0,__source:{fileName:Kt,lineNumber:87,columnNumber:7}},React.createElement($t,{label:"Telefone",error:d.phone,__self:void 0,__source:{fileName:Kt,lineNumber:88,columnNumber:9}},React.createElement("input",{className:Ya(d.phone),placeholder:"(11) 99999-8888",value:i.phone,onChange:C=>{s({phone:wa.phone(C.target.value)}),h(N=>({...N,phone:void 0}))},__self:void 0,__source:{fileName:Kt,lineNumber:89,columnNumber:11}})),React.createElement($t,{label:"Data de nascimento",error:d.birthday,__self:void 0,__source:{fileName:Kt,lineNumber:100,columnNumber:9}},React.createElement("input",{type:"date",className:Ya(d.birthday),value:i.birthday,onChange:C=>{s({birthday:C.target.value}),h(N=>({...N,birthday:void 0}))},__self:void 0,__source:{fileName:Kt,lineNumber:101,columnNumber:11}}))),React.createElement($t,{label:"E-mail",error:d.email,__self:void 0,__source:{fileName:Kt,lineNumber:113,columnNumber:7}},React.createElement("input",{type:"email",className:Ya(d.email),placeholder:"joao@email.com",value:i.email,onChange:C=>{s({email:C.target.value}),h(N=>({...N,email:void 0}))},__self:void 0,__source:{fileName:Kt,lineNumber:114,columnNumber:9}})),React.createElement(fi,{onNext:b,loading:y,__self:void 0,__source:{fileName:Kt,lineNumber:126,columnNumber:7}}))};async function q_({postal_code:n}){const r=await fetch(`${br("VITE_CORREIOS_API_URL")}/${n}/json/`);if(!r.ok)throw new Error("Erro ao consultar CEP");return{...await r.json(),success:!0}}var ut="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\StepAddressForm.tsx";const H_=({onNext:n,onBack:r})=>{const{address:i,setAddress:s,setStep:u}=_r(),[f,d]=te.useState({}),[h,y]=te.useState(!1),[p,_]=te.useState(!1),b=te.useCallback(async U=>{const E=U.replace(/\D/g,"");if(E.length===8){y(!0);try{const q=await q_({postal_code:E});if(!q.success){console.error("Failed to lookup postal code");return}s({street:q.logradouro,neighborhood:q.bairro,uf:q.uf,city:q.localidade,stateAddress:q.estado,postalcode:q.cep,complement:q.complemento||""})}catch{console.error("Failed to fetch address for CEP:",U)}finally{y(!1)}}},[s]),C=()=>{const U={};return/^\d{5}-\d{3}$/.test(i.postalcode)||(U.postalcode="CEP inválido."),i.number.trim()||(U.number="Número obrigatório."),d(U),Object.keys(U).length===0},N=async()=>{if(C()){_(!0);try{u(Us.GenderResponsibility),n()}catch{console.log("An error occurred while submitting address form.")}finally{_(!1)}}};return React.createElement("div",{className:"flex flex-col gap-4",__self:void 0,__source:{fileName:ut,lineNumber:84,columnNumber:5}},React.createElement($t,{label:"CEP",error:f.postalcode,__self:void 0,__source:{fileName:ut,lineNumber:85,columnNumber:7}},React.createElement("div",{className:"relative",__self:void 0,__source:{fileName:ut,lineNumber:86,columnNumber:9}},React.createElement("input",{className:Ya(f.postalcode),placeholder:"00000-000",value:i.postalcode,onChange:U=>{const E=wa.cep(U.target.value);s({postalcode:E}),d(q=>({...q,postalcode:void 0})),E.replace(/\D/g,"").length===8&&b(E)},__self:void 0,__source:{fileName:ut,lineNumber:87,columnNumber:11}}),h&&React.createElement("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",__self:void 0,__source:{fileName:ut,lineNumber:103,columnNumber:13}},React.createElement("svg",{className:"h-4 w-4 animate-spin text-blue-500",viewBox:"0 0 24 24",fill:"none",__self:void 0,__source:{fileName:ut,lineNumber:104,columnNumber:15}},React.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",__self:void 0,__source:{fileName:ut,lineNumber:109,columnNumber:17}}),React.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z",__self:void 0,__source:{fileName:ut,lineNumber:117,columnNumber:17}}))))),React.createElement("div",{className:"grid grid-cols-2 gap-3",__self:void 0,__source:{fileName:ut,lineNumber:128,columnNumber:7}},React.createElement($t,{label:"Rua",__self:void 0,__source:{fileName:ut,lineNumber:129,columnNumber:9}},React.createElement("input",{className:ci,value:i.street||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP",__self:void 0,__source:{fileName:ut,lineNumber:130,columnNumber:11}})),React.createElement($t,{label:"Bairro",__self:void 0,__source:{fileName:ut,lineNumber:138,columnNumber:9}},React.createElement("input",{className:ci,value:i.neighborhood||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP",__self:void 0,__source:{fileName:ut,lineNumber:139,columnNumber:11}}))),React.createElement("div",{className:"grid grid-cols-2 gap-3",__self:void 0,__source:{fileName:ut,lineNumber:149,columnNumber:7}},React.createElement($t,{label:"Cidade",__self:void 0,__source:{fileName:ut,lineNumber:150,columnNumber:9}},React.createElement("input",{className:ci,value:i.city||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP",__self:void 0,__source:{fileName:ut,lineNumber:151,columnNumber:11}})),React.createElement($t,{label:"Estado",__self:void 0,__source:{fileName:ut,lineNumber:159,columnNumber:9}},React.createElement("input",{className:ci,value:i.stateAddress||"",disabled:!0,readOnly:!0,placeholder:"UF",__self:void 0,__source:{fileName:ut,lineNumber:160,columnNumber:11}}))),React.createElement("div",{className:"grid grid-cols-2 gap-3",__self:void 0,__source:{fileName:ut,lineNumber:170,columnNumber:7}},React.createElement($t,{label:"Número",error:f.number,__self:void 0,__source:{fileName:ut,lineNumber:171,columnNumber:9}},React.createElement("input",{className:Ya(f.number),placeholder:"Ex: 100",value:i.number,onChange:U=>{s({number:U.target.value}),d(E=>({...E,number:void 0}))},__self:void 0,__source:{fileName:ut,lineNumber:172,columnNumber:11}})),React.createElement($t,{label:"Complemento",__self:void 0,__source:{fileName:ut,lineNumber:182,columnNumber:9}},React.createElement("input",{className:Ya(),placeholder:"Apto, bloco...",value:i.complement,onChange:U=>s({complement:U.target.value}),__self:void 0,__source:{fileName:ut,lineNumber:183,columnNumber:11}}))),React.createElement(fi,{onNext:N,onBack:r,loading:p,__self:void 0,__source:{fileName:ut,lineNumber:192,columnNumber:7}}))};var Ca="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\StepGenderForm.tsx";const G_=({onNext:n,onBack:r})=>{const{genderResponsibility:i,setGenderResponsibility:s,setStep:u}=_r(),[f,d]=te.useState({}),[h,y]=te.useState(!1),p=()=>{const C={};return i.gender||(C.gender="Selecione o gênero."),i.patient===null&&(C.patient="Informe se é o paciente."),d(C),Object.keys(C).length===0},_=async()=>{if(p()){y(!0);try{u(Us.Doctor),n()}catch{console.error("An error occurred while submitting gender responsibility data.")}finally{y(!1)}}},b=[{value:"M",label:"Masculino"},{value:"F",label:"Feminino"},{value:"O",label:"Outro"}];return React.createElement("div",{className:"flex flex-col gap-5",__self:void 0,__source:{fileName:Ca,lineNumber:54,columnNumber:5}},React.createElement("div",{__self:void 0,__source:{fileName:Ca,lineNumber:55,columnNumber:7}},React.createElement("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",__self:void 0,__source:{fileName:Ca,lineNumber:56,columnNumber:9}},"Gênero"),React.createElement("div",{className:"flex gap-2",__self:void 0,__source:{fileName:Ca,lineNumber:59,columnNumber:9}},b.map(C=>React.createElement("button",{key:C.value,type:"button",onClick:()=>{s({gender:C.value}),d(N=>({...N,gender:void 0}))},className:ot("flex-1 py-2.5 cursor-pointer px-2.5 rounded-lg border text-sm font-medium transition-all",i.gender===C.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),__self:void 0,__source:{fileName:Ca,lineNumber:61,columnNumber:13}},C.label))),f.gender&&React.createElement("span",{className:"text-xs text-red-500 mt-1 block",__self:void 0,__source:{fileName:Ca,lineNumber:80,columnNumber:11}},f.gender)),React.createElement("div",{__self:void 0,__source:{fileName:Ca,lineNumber:86,columnNumber:7}},React.createElement("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",__self:void 0,__source:{fileName:Ca,lineNumber:87,columnNumber:9}},"Você é o paciente?"),React.createElement("div",{className:"flex gap-2",__self:void 0,__source:{fileName:Ca,lineNumber:90,columnNumber:9}},[{label:"Sim, sou o paciente",value:!0},{label:"Não, sou responsável",value:!1}].map(C=>React.createElement("button",{key:String(C.value),type:"button",onClick:()=>{s({patient:C.value}),d(N=>({...N,patient:void 0}))},className:ot("flex-1 py-2.5 px-2.5 text-nowrap cursor-pointer rounded-lg border text-sm font-medium transition-all",i.patient===C.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),__self:void 0,__source:{fileName:Ca,lineNumber:95,columnNumber:13}},C.label))),f.patient&&React.createElement("span",{className:"text-xs text-red-500 mt-1 block",__self:void 0,__source:{fileName:Ca,lineNumber:114,columnNumber:11}},f.patient)),React.createElement(fi,{onNext:_,onBack:r,loading:h,__self:void 0,__source:{fileName:Ca,lineNumber:120,columnNumber:7}}))},Z_=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"];var zt="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\StepDoctorForm.tsx";const Y_=({onNext:n,onBack:r})=>{const{doctor:i,setDoctor:s,setStep:u}=_r(),[f,d]=te.useState({}),[h,y]=te.useState(!1),p=()=>{const b={};return i.typeCredential||(b.typeCredential="Tipo de credencial obrigatório."),i.register.trim()||(b.register="Número do registro obrigatório."),i.state||(b.state="Estado obrigatório."),i.doctorName.trim()||(b.doctorName="Nome do médico obrigatório."),d(b),Object.keys(b).length===0},_=async()=>{if(p()){y(!0);try{u(Us.Acceptances),n()}catch{console.error("An error occurred while submitting doctor data.")}finally{y(!1)}}};return React.createElement("div",{className:"flex flex-col gap-4",__self:void 0,__source:{fileName:zt,lineNumber:49,columnNumber:5}},React.createElement("div",{className:"grid grid-cols-3 gap-3",__self:void 0,__source:{fileName:zt,lineNumber:50,columnNumber:7}},React.createElement($t,{label:"Tipo credencial",error:f.typeCredential,__self:void 0,__source:{fileName:zt,lineNumber:51,columnNumber:9}},React.createElement("select",{className:Ya(f.typeCredential),value:i.typeCredential,onChange:b=>{s({typeCredential:b.target.value}),d(C=>({...C,typeCredential:void 0}))},__self:void 0,__source:{fileName:zt,lineNumber:52,columnNumber:11}},React.createElement("option",{value:"CRM",__self:void 0,__source:{fileName:zt,lineNumber:63,columnNumber:13}},"CRM"),React.createElement("option",{value:"CRO",__self:void 0,__source:{fileName:zt,lineNumber:64,columnNumber:13}},"CRO"),React.createElement("option",{value:"CRF",__self:void 0,__source:{fileName:zt,lineNumber:65,columnNumber:13}},"CRF"))),React.createElement($t,{label:"Estado (UF)",error:f.state,__self:void 0,__source:{fileName:zt,lineNumber:69,columnNumber:9}},React.createElement("select",{className:Ya(f.state),value:i.state,onChange:b=>{s({state:b.target.value}),d(C=>({...C,state:void 0}))},__self:void 0,__source:{fileName:zt,lineNumber:70,columnNumber:11}},React.createElement("option",{value:"",__self:void 0,__source:{fileName:zt,lineNumber:78,columnNumber:13}},"UF"),Z_.map(b=>React.createElement("option",{key:b,value:b,__self:void 0,__source:{fileName:zt,lineNumber:80,columnNumber:15}},b)))),React.createElement($t,{label:"Nº registro",error:f.register,__self:void 0,__source:{fileName:zt,lineNumber:87,columnNumber:9}},React.createElement("div",{className:"relative",__self:void 0,__source:{fileName:zt,lineNumber:88,columnNumber:11}},React.createElement("input",{className:Ya(f.register),placeholder:"Ex: 123456",value:i.register,onChange:b=>{s({register:b.target.value.replace(/\D/g,"")}),d(C=>({...C,register:void 0}))},__self:void 0,__source:{fileName:zt,lineNumber:89,columnNumber:13}})))),React.createElement($t,{label:"Nome do médico",error:f.doctorName,__self:void 0,__source:{fileName:zt,lineNumber:105,columnNumber:7}},React.createElement("div",{className:"relative",__self:void 0,__source:{fileName:zt,lineNumber:106,columnNumber:9}},React.createElement("input",{className:Ya(f.doctorName),placeholder:"Nome Completo do Profissional",value:i.doctorName,onChange:b=>{s({doctorName:b.target.value}),d(C=>({...C,doctorName:void 0}))},__self:void 0,__source:{fileName:zt,lineNumber:107,columnNumber:11}})),React.createElement("p",{className:"text-xs text-gray-400 mt-0.5",__self:void 0,__source:{fileName:zt,lineNumber:120,columnNumber:9}},"Preenchido automaticamente ao informar registro + UF.")),React.createElement(fi,{onNext:_,onBack:r,loading:h,__self:void 0,__source:{fileName:zt,lineNumber:125,columnNumber:7}}))};var Sr="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\Shared\\CheckRow.tsx";const di=({label:n,checked:r,onChange:i,required:s,error:u})=>React.createElement("label",{className:ot("flex items-start gap-3 cursor-pointer group p-3 rounded-lg border transition-all",r?"border-emerald-200 bg-emerald-50/60":"border-zinc-100 hover:border-zinc-200 bg-zinc-50/40",u?"border-red-300 bg-red-50/40":""),__self:void 0,__source:{fileName:Sr,lineNumber:16,columnNumber:3}},React.createElement("div",{className:ot("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border transition-all",r?"border-(--pbm-primary) bg-(--pbm-primary)":"border-zinc-300 bg-white"),__self:void 0,__source:{fileName:Sr,lineNumber:25,columnNumber:5}},r&&React.createElement("svg",{className:"h-2.5 w-2.5 text-white",viewBox:"0 0 10 8",fill:"none",__self:void 0,__source:{fileName:Sr,lineNumber:34,columnNumber:9}},React.createElement("path",{d:"M1 4l3 3 5-6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",__self:void 0,__source:{fileName:Sr,lineNumber:35,columnNumber:11}}))),React.createElement("span",{className:"text-sm text-zinc-700 leading-snug",__self:void 0,__source:{fileName:Sr,lineNumber:45,columnNumber:5}},n,s&&React.createElement("span",{className:"text-red-400 ml-1",__self:void 0,__source:{fileName:Sr,lineNumber:47,columnNumber:20}},"*")),React.createElement("input",{type:"checkbox",className:"sr-only",checked:r,onChange:f=>i(f.target.checked),__self:void 0,__source:{fileName:Sr,lineNumber:49,columnNumber:5}})),$_=async({product:n,consumer:r,healthProfessional:i})=>{const s=rt.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!i)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${br("VITE_API_URL")}/api/discount.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour"),consumer:r,healthProfessional:i})})).json();if(!f.success)throw new Error("PBMLOG: Enable Discount Failed!");return rt.set("current-central-number",f.product[0].centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),rt.set("current-term-code",f.product[0].activationFields.acceptLgpd.termCode.value.toString(),{secure:!0,sameSite:"Strict",expires:1}),f}catch(u){return console.error("Error during enable discount:",u),{success:!1,error:"Authorization failed"}}},Q_=async({product:n,consumer:r,healthProfessional:i})=>{const s=rt.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!i)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${br("VITE_API_URL")}/api/activate.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour"),central_number:rt.get("current-central-number"),consumer:r,healthProfessional:i,acceptLgpd:{evidenceType:"SITE",evidence:"VSTOSITE",termCode:rt.get("current-term-code")}})})).json();if(!f.success)throw new Error("PBMLOG: Activate Failed!");return f}catch(u){return console.error("Error during activate:",u),{success:!1,error:"Authorization failed"}}};var Ja="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\StepAcceptancesForm.tsx";const X_=({onBack:n,onDone:r,securityNumber:i})=>{const{acceptances:s,setAcceptances:u}=_r(),{targetProduct:f,cardID:d}=ta(),[h,y]=te.useState({}),[p,_]=te.useState(!1),b=_r.getState(),C=()=>{const E={};return s.acceptsPrivacyTermsLGPD||(E.lgpd="É obrigatório aceitar os termos de privacidade (LGPD)."),y(E),Object.keys(E).length===0},N=async E=>{try{const q=await Q_(E);console.log("Activate response:",q)}catch(q){console.error("Error during consumer activation:",q)}},U=async()=>{if(!C())return;if(_(!0),!f){console.error("No target product found in PBM store."),_(!1);return}const E=b.personalData.phone.replace(/\D/g,""),q=E.slice(0,2),P=E.slice(2),F={consumer:{holderId:i,cardId:d||"",name:b.personalData.name,email:b.personalData.email,birthdate:b.personalData.birthday,genre:b.genderResponsibility.gender,postalCode:b.address.postalcode.replace(/\D/g,""),stateCode:b.address.uf||"",cityName:b.address.city||"",cityRegion:b.address.neighborhood||"",addressType:"casa",streetAddress:b.address.street||"",addressNumber:b.address.number||"",addressAdditionalInformation:b.address.complement||"",DDDcellPhone:q,cellphone:P,acceptInformativeMaterial:s.acceptsMail?"S":"N",acceptMail:s.acceptsMail?"S":"N",acceptEmail:s.acceptsEmail?"S":"N",acceptCalls:s.acceptPhone?"S":"N",acceptSMS:s.acceptsSms?"S":"N",acceptTerm:s.acceptsPrivacyTermsLGPD?"S":"N",acceptWhatsApp:"N"},healthProfessional:{id:b.doctor.register,stateCode:b.doctor.state,type:b.doctor.typeCredential,name:b.doctor.doctorName},product:{id:f.id,ean:f.ean,requestedQuantity:f.requestedQuantity,listPrice:f.listPrice,netPrice:f.netPrice}};try{const ae=await $_(F);ae.success?await N(F):console.error("Failed to enable discount:",ae),r()}catch{console.error("An error occurred while submitting acceptances data.")}finally{_(!1)}};return React.createElement("div",{className:"flex flex-col gap-3",__self:void 0,__source:{fileName:Ja,lineNumber:118,columnNumber:5}},React.createElement("p",{className:"text-xs text-gray-500 mb-1",__self:void 0,__source:{fileName:Ja,lineNumber:119,columnNumber:7}},"Selecione como deseja receber comunicações:"),React.createElement(di,{label:"Aceito receber contato por telefone",checked:s.acceptPhone,onChange:E=>u({acceptPhone:E}),__self:void 0,__source:{fileName:Ja,lineNumber:123,columnNumber:7}}),React.createElement(di,{label:"Aceito receber SMS",checked:s.acceptsSms,onChange:E=>u({acceptsSms:E}),__self:void 0,__source:{fileName:Ja,lineNumber:128,columnNumber:7}}),React.createElement(di,{label:"Aceito receber e-mails",checked:s.acceptsEmail,onChange:E=>u({acceptsEmail:E}),__self:void 0,__source:{fileName:Ja,lineNumber:133,columnNumber:7}}),React.createElement(di,{label:"Aceito receber correspondências por correio",checked:s.acceptsMail,onChange:E=>u({acceptsMail:E}),__self:void 0,__source:{fileName:Ja,lineNumber:138,columnNumber:7}}),React.createElement("div",{className:"mt-1",__self:void 0,__source:{fileName:Ja,lineNumber:144,columnNumber:7}},React.createElement(di,{label:"Li e aceito os Termos de Privacidade (LGPD)",checked:s.acceptsPrivacyTermsLGPD,onChange:E=>{u({acceptsPrivacyTermsLGPD:E}),y({})},required:!0,error:h.lgpd,__self:void 0,__source:{fileName:Ja,lineNumber:145,columnNumber:9}}),h.lgpd&&React.createElement("span",{className:"text-xs text-red-500 mt-1 block pl-1",__self:void 0,__source:{fileName:Ja,lineNumber:156,columnNumber:11}},h.lgpd)),React.createElement(fi,{onNext:U,onBack:n,loading:p,nextLabel:"Concluir cadastro",isLast:!0,__self:void 0,__source:{fileName:Ja,lineNumber:162,columnNumber:7}}))};var qn="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\Shared\\StepProgress.tsx";const Ch=["Dados Pessoais","Endereço","Perfil","Médico","Aceites"],F_=({current:n})=>React.createElement("div",{className:"flex items-center w-full justify-center mb-6",__self:void 0,__source:{fileName:qn,lineNumber:12,columnNumber:3}},Ch.map((r,i)=>{const s=i<n,u=i===n;return React.createElement("div",{key:i,className:"flex items-center w-full min-w-0 justify-center relative",__self:void 0,__source:{fileName:qn,lineNumber:17,columnNumber:9}},React.createElement("div",{className:"flex flex-col items-center justify-center gap-1 shrink-0 z-10",__self:void 0,__source:{fileName:qn,lineNumber:21,columnNumber:11}},React.createElement("div",{className:ot("flex h-7 w-7 items-center justify-center rounded-full text-xs font-semibold transition-all",s?"bg-emerald-600 text-white":u?"bg-(--pbm-primary) text-white ring-4 ring-(--pbm-primary)/15":"bg-zinc-100 text-zinc-400"),__self:void 0,__source:{fileName:qn,lineNumber:22,columnNumber:13}},s?React.createElement("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 12 10",fill:"none",__self:void 0,__source:{fileName:qn,lineNumber:33,columnNumber:17}},React.createElement("path",{d:"M1 5l4 4 6-8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",__self:void 0,__source:{fileName:qn,lineNumber:34,columnNumber:19}})):i+1),React.createElement("span",{className:ot("text-[10px] font-medium whitespace-nowrap hidden sm:block",u?"text-(--pbm-primary)":s?"text-emerald-600":"text-zinc-400"),__self:void 0,__source:{fileName:qn,lineNumber:46,columnNumber:13}},r)),i<Ch.length-1&&React.createElement("div",{className:ot("h-0.5 w-full rounded transition-all absolute top-3.5 left-10","bg-zinc-200"),__self:void 0,__source:{fileName:qn,lineNumber:60,columnNumber:13}}))}));var Hn="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\Shared\\SuccessScreen.tsx";const K_=({onClose:n})=>React.createElement("div",{className:"flex flex-col items-center gap-4 py-4 text-center",__self:void 0,__source:{fileName:Hn,lineNumber:2,columnNumber:3}},React.createElement("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-100",__self:void 0,__source:{fileName:Hn,lineNumber:3,columnNumber:5}},React.createElement("svg",{className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",__self:void 0,__source:{fileName:Hn,lineNumber:4,columnNumber:7}},React.createElement("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",__self:void 0,__source:{fileName:Hn,lineNumber:5,columnNumber:9}}))),React.createElement("div",{__self:void 0,__source:{fileName:Hn,lineNumber:14,columnNumber:5}},React.createElement("h3",{className:"text-base font-semibold text-gray-800",__self:void 0,__source:{fileName:Hn,lineNumber:15,columnNumber:7}},"Cadastro concluído!"),React.createElement("p",{className:"text-sm text-zinc-500 mt-1",__self:void 0,__source:{fileName:Hn,lineNumber:18,columnNumber:7}},"Você já pode aproveitar os benefícios de farmácia.")),React.createElement("button",{onClick:n,className:"cursor-pointer mt-2 rounded-lg bg-(--primary-color) px-6 py-2.5 text-sm font-semibold text-white hover:bg-(--primary-color)/80 transition-all",__self:void 0,__source:{fileName:Hn,lineNumber:22,columnNumber:5}},"Fechar"));var Jt="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\CustomerNotRegistered\\index.tsx";const J_=({ID:n})=>{const{modal:r,setModal:i}=vr(),{securityNumber:s}=ta(),{resetForm:u,step:f,setStep:d}=_r(),[h,y]=te.useState(!1),p=()=>{i({id:"",open:!1}),setTimeout(()=>{d(0),y(!1),u()},300)},_=()=>d(f+1),b=()=>d(f-1),C=s.replace(/\D/g,""),N=[React.createElement(V_,{securityNumber:C,onNext:_,__self:void 0,__source:{fileName:Jt,lineNumber:36,columnNumber:5}}),React.createElement(H_,{securityNumber:C,onNext:_,onBack:b,__self:void 0,__source:{fileName:Jt,lineNumber:37,columnNumber:5}}),React.createElement(G_,{securityNumber:C,onNext:_,onBack:b,__self:void 0,__source:{fileName:Jt,lineNumber:42,columnNumber:5}}),React.createElement(Y_,{securityNumber:C,onNext:_,onBack:b,__self:void 0,__source:{fileName:Jt,lineNumber:47,columnNumber:5}}),React.createElement(X_,{securityNumber:C,onBack:b,onDone:()=>y(!0),__self:void 0,__source:{fileName:Jt,lineNumber:52,columnNumber:5}})];return React.createElement("main",{className:ot("fixed inset-0 flex items-center justify-end z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":r.id===n&&r.open,"opacity-0 pointer-events-none":r.id!==n||!r.open}),__self:void 0,__source:{fileName:Jt,lineNumber:60,columnNumber:5}},React.createElement("div",{className:"absolute inset-0",onClick:p,__self:void 0,__source:{fileName:Jt,lineNumber:69,columnNumber:7}}),React.createElement("section",{className:"z-10 bg-white flex flex-col p-6 rounded-2xl w-full max-w-125 min-w-125 mx-4 shadow-xl max-h-[90vh] overflow-y-auto",__self:void 0,__source:{fileName:Jt,lineNumber:71,columnNumber:7}},React.createElement("div",{className:"flex items-center justify-between mb-4",__self:void 0,__source:{fileName:Jt,lineNumber:72,columnNumber:9}},React.createElement(al,{textSize:"18px",textAlign:"start",__self:void 0,__source:{fileName:Jt,lineNumber:73,columnNumber:11}},h?"Tudo pronto!":"Benefício de Farmácia"),React.createElement("button",{onClick:p,className:"flex h-7 w-7 cursor-pointer items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-all",__self:void 0,__source:{fileName:Jt,lineNumber:76,columnNumber:11}},React.createElement("svg",{className:"h-4 w-4",viewBox:"0 0 14 14",fill:"none",__self:void 0,__source:{fileName:Jt,lineNumber:80,columnNumber:13}},React.createElement("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",__self:void 0,__source:{fileName:Jt,lineNumber:81,columnNumber:15}})))),!h&&React.createElement(F_,{current:f,__self:void 0,__source:{fileName:Jt,lineNumber:91,columnNumber:19}}),h?React.createElement(K_,{onClose:p,__self:void 0,__source:{fileName:Jt,lineNumber:93,columnNumber:17}}):N[f]))},P_=n=>n===void 0?"":"?"+Object.keys(n).map(r=>r+"="+n[r]).join("&");var I_="C:\\Dev\\agrada\\library-pbm\\src\\components\\UI\\Link\\index.tsx";function W_(n){const{setState:r}=ta();return nt.createElement("a",{...n,target:n.target||"_self",href:typeof n.href=="string"?n.href:n.href.pathname+P_(n.href.param),className:ot("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors flex items-center justify-center",n.className),style:{backgroundColor:"var(--pbm-primary)"},onMouseOver:i=>i.currentTarget.style.backgroundColor="var(--pbm-secondary)",onMouseOut:i=>i.currentTarget.style.backgroundColor="var(--pbm-primary)","data-testid":"test_id_link",id:"link_pbm",onClick:()=>r("isEmpty"),__self:this,__source:{fileName:I_,lineNumber:18,columnNumber:5}},n.children)}var Pa="C:\\Dev\\agrada\\library-pbm\\src\\components\\Modals\\ShopperIsNotAuthenticated.tsx";const e1=({ID:n})=>{const{customLoginUrl:r}=ta(),{modal:i,setModal:s}=vr();return React.createElement("main",{className:ot("fixed inset-0 flex items-center justify-center z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":i.id===n&&i.open,"opacity-0 pointer-events-none":i.id!=n||!i.open}),__self:void 0,__source:{fileName:Pa,lineNumber:14,columnNumber:5}},React.createElement("div",{className:"absolute inset-0",onClick:()=>s({id:"",open:!1}),__self:void 0,__source:{fileName:Pa,lineNumber:23,columnNumber:7}}),React.createElement("section",{className:"z-10 bg-white gap-2 flex-col items-center-safe justify-center-safe p-8 rounded-xl",__self:void 0,__source:{fileName:Pa,lineNumber:27,columnNumber:7}},React.createElement(al,{textColor:"tomato",textSize:"18px",textAlign:"center",className:"mb-2",__self:void 0,__source:{fileName:Pa,lineNumber:28,columnNumber:9}},"Opa! Parece que você não está Logado"),React.createElement(Ds,{className:"mb-2",textAlign:"center",__self:void 0,__source:{fileName:Pa,lineNumber:36,columnNumber:9}},"Para aproveitar os benefícios é necessário realizar o"," ",React.createElement("strong",{__self:void 0,__source:{fileName:Pa,lineNumber:38,columnNumber:11}},"Login")," ou ",React.createElement("strong",{__self:void 0,__source:{fileName:Pa,lineNumber:38,columnNumber:37}},"Cadastro")," no site!"),React.createElement("section",{className:"flex items-center-safe justify-center-safe gap-4",__self:void 0,__source:{fileName:Pa,lineNumber:40,columnNumber:9}},React.createElement(fn,{className:"bg-gray-600 hover:bg-gray-500",onClick:()=>s({id:"",open:!1}),__self:void 0,__source:{fileName:Pa,lineNumber:41,columnNumber:11}},"Seguir sem Benefícios"),React.createElement(W_,{href:r||"/login",__self:void 0,__source:{fileName:Pa,lineNumber:47,columnNumber:11}},"Aproveitar Benefícios"))))};function Ah(n){var r,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r<u;r++)n[r]&&(i=Ah(n[r]))&&(s&&(s+=" "),s+=i)}else for(i in n)n[i]&&(s&&(s+=" "),s+=i);return s}function Th(){for(var n,r,i=0,s="",u=arguments.length;i<u;i++)(n=arguments[i])&&(r=Ah(n))&&(s&&(s+=" "),s+=r);return s}function t1(n,r,i=void 0){const s={};for(const u in n){const f=n[u];let d="",h=!0;for(let y=0;y<f.length;y+=1){const p=f[y];p&&(d+=(h===!0?"":" ")+r(p),h=!1,i&&i[p]&&(d+=" "+i[p]))}s[u]=d}return s}function xr(n,...r){const i=new URL(`https://mui.com/production-error/?code=${n}`);return r.forEach(s=>i.searchParams.append("args[]",s)),`Minified MUI error #${n}; visit ${i} for the full message.`}const a1="$$material";function oc(){return oc=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)({}).hasOwnProperty.call(i,s)&&(n[s]=i[s])}return n},oc.apply(null,arguments)}function n1(n){if(n.sheet)return n.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===n)return document.styleSheets[r]}function r1(n){var r=document.createElement("style");return r.setAttribute("data-emotion",n.key),n.nonce!==void 0&&r.setAttribute("nonce",n.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var l1=(function(){function n(i){var s=this;this._insertTag=function(u){var f;s.tags.length===0?s.insertionPoint?f=s.insertionPoint.nextSibling:s.prepend?f=s.container.firstChild:f=s.before:f=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(u,f),s.tags.push(u)},this.isSpeedy=i.speedy===void 0?!1:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var r=n.prototype;return r.hydrate=function(s){s.forEach(this._insertTag)},r.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(r1(this));var u=this.tags[this.tags.length-1];{var f=s.charCodeAt(0)===64&&s.charCodeAt(1)===105;f&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
76
- `+s+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!f}if(this.isSpeedy){var d=n1(u);try{d.insertRule(s,d.cssRules.length)}catch(h){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(s)||console.error('There was a problem inserting the following rule: "'+s+'"',h)}}else u.appendChild(document.createTextNode(s));this.ctr++},r.flush=function(){this.tags.forEach(function(s){var u;return(u=s.parentNode)==null?void 0:u.removeChild(s)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},n})(),Qt="-ms-",js="-moz-",Ge="-webkit-",uc="comm",cc="rule",fc="decl",i1="@import",Rh="@keyframes",s1="@layer",o1=Math.abs,Bs=String.fromCharCode,u1=Object.assign;function c1(n,r){return Ut(n,0)^45?(((r<<2^Ut(n,0))<<2^Ut(n,1))<<2^Ut(n,2))<<2^Ut(n,3):0}function Oh(n){return n.trim()}function f1(n,r){return(n=r.exec(n))?n[0]:n}function Ze(n,r,i){return n.replace(r,i)}function dc(n,r){return n.indexOf(r)}function Ut(n,r){return n.charCodeAt(r)|0}function mi(n,r,i){return n.slice(r,i)}function Ia(n){return n.length}function mc(n){return n.length}function Ls(n,r){return r.push(n),n}function d1(n,r){return n.map(r).join("")}var Vs=1,rl=1,zh=0,ra=0,Et=0,ll="";function qs(n,r,i,s,u,f,d){return{value:n,root:r,parent:i,type:s,props:u,children:f,line:Vs,column:rl,length:d,return:""}}function hi(n,r){return u1(qs("",null,null,"",null,null,0),n,{length:-n.length},r)}function m1(){return Et}function h1(){return Et=ra>0?Ut(ll,--ra):0,rl--,Et===10&&(rl=1,Vs--),Et}function ha(){return Et=ra<zh?Ut(ll,ra++):0,rl++,Et===10&&(rl=1,Vs++),Et}function Wa(){return Ut(ll,ra)}function Hs(){return ra}function pi(n,r){return mi(ll,n,r)}function gi(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kh(n){return Vs=rl=1,zh=Ia(ll=n),ra=0,[]}function Dh(n){return ll="",n}function Gs(n){return Oh(pi(ra-1,hc(n===91?n+2:n===40?n+1:n)))}function p1(n){for(;(Et=Wa())&&Et<33;)ha();return gi(n)>2||gi(Et)>3?"":" "}function g1(n,r){for(;--r&&ha()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return pi(n,Hs()+(r<6&&Wa()==32&&ha()==32))}function hc(n){for(;ha();)switch(Et){case n:return ra;case 34:case 39:n!==34&&n!==39&&hc(Et);break;case 40:n===41&&hc(n);break;case 92:ha();break}return ra}function y1(n,r){for(;ha()&&n+Et!==57;)if(n+Et===84&&Wa()===47)break;return"/*"+pi(r,ra-1)+"*"+Bs(n===47?n:ha())}function v1(n){for(;!gi(Wa());)ha();return pi(n,ra)}function b1(n){return Dh(Zs("",null,null,null,[""],n=kh(n),0,[0],n))}function Zs(n,r,i,s,u,f,d,h,y){for(var p=0,_=0,b=d,C=0,N=0,U=0,E=1,q=1,P=1,F=0,ae="",W=u,B=f,Q=s,K=ae;q;)switch(U=F,F=ha()){case 40:if(U!=108&&Ut(K,b-1)==58){dc(K+=Ze(Gs(F),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:K+=Gs(F);break;case 9:case 10:case 13:case 32:K+=p1(U);break;case 92:K+=g1(Hs()-1,7);continue;case 47:switch(Wa()){case 42:case 47:Ls(_1(y1(ha(),Hs()),r,i),y);break;default:K+="/"}break;case 123*E:h[p++]=Ia(K)*P;case 125*E:case 59:case 0:switch(F){case 0:case 125:q=0;case 59+_:P==-1&&(K=Ze(K,/\f/g,"")),N>0&&Ia(K)-b&&Ls(N>32?Uh(K+";",s,i,b-1):Uh(Ze(K," ","")+";",s,i,b-2),y);break;case 59:K+=";";default:if(Ls(Q=Mh(K,r,i,p,_,u,h,ae,W=[],B=[],b),f),F===123)if(_===0)Zs(K,r,Q,Q,W,f,b,h,B);else switch(C===99&&Ut(K,3)===110?100:C){case 100:case 108:case 109:case 115:Zs(n,Q,Q,s&&Ls(Mh(n,Q,Q,0,0,u,h,ae,u,W=[],b),B),u,B,b,h,s?W:B);break;default:Zs(K,Q,Q,Q,[""],B,0,h,B)}}p=_=N=0,E=P=1,ae=K="",b=d;break;case 58:b=1+Ia(K),N=U;default:if(E<1){if(F==123)--E;else if(F==125&&E++==0&&h1()==125)continue}switch(K+=Bs(F),F*E){case 38:P=_>0?1:(K+="\f",-1);break;case 44:h[p++]=(Ia(K)-1)*P,P=1;break;case 64:Wa()===45&&(K+=Gs(ha())),C=Wa(),_=b=Ia(ae=K+=v1(Hs())),F++;break;case 45:U===45&&Ia(K)==2&&(E=0)}}return f}function Mh(n,r,i,s,u,f,d,h,y,p,_){for(var b=u-1,C=u===0?f:[""],N=mc(C),U=0,E=0,q=0;U<s;++U)for(var P=0,F=mi(n,b+1,b=o1(E=d[U])),ae=n;P<N;++P)(ae=Oh(E>0?C[P]+" "+F:Ze(F,/&\f/g,C[P])))&&(y[q++]=ae);return qs(n,r,i,u===0?cc:h,y,p,_)}function _1(n,r,i){return qs(n,r,i,uc,Bs(m1()),mi(n,2,-2),0)}function Uh(n,r,i,s){return qs(n,r,i,fc,mi(n,0,s),mi(n,s+1,-1),s)}function il(n,r){for(var i="",s=mc(n),u=0;u<s;u++)i+=r(n[u],u,n,r)||"";return i}function N1(n,r,i,s){switch(n.type){case s1:if(n.children.length)break;case i1:case fc:return n.return=n.return||n.value;case uc:return"";case Rh:return n.return=n.value+"{"+il(n.children,s)+"}";case cc:n.value=n.props.join(",")}return Ia(i=il(n.children,s))?n.return=n.value+"{"+i+"}":""}function S1(n){var r=mc(n);return function(i,s,u,f){for(var d="",h=0;h<r;h++)d+=n[h](i,s,u,f)||"";return d}}function jh(n){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=n(i)),r[i]}}var x1=function(r,i,s){for(var u=0,f=0;u=f,f=Wa(),u===38&&f===12&&(i[s]=1),!gi(f);)ha();return pi(r,ra)},E1=function(r,i){var s=-1,u=44;do switch(gi(u)){case 0:u===38&&Wa()===12&&(i[s]=1),r[s]+=x1(ra-1,i,s);break;case 2:r[s]+=Gs(u);break;case 4:if(u===44){r[++s]=Wa()===58?"&\f":"",i[s]=r[s].length;break}default:r[s]+=Bs(u)}while(u=ha());return r},w1=function(r,i){return Dh(E1(kh(r),i))},Bh=new WeakMap,C1=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,s=r.parent,u=r.column===s.column&&r.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!Bh.get(s))&&!u){Bh.set(r,!0);for(var f=[],d=w1(i,f),h=s.props,y=0,p=0;y<d.length;y++)for(var _=0;_<h.length;_++,p++)r.props[p]=f[y]?d[y].replace(/&\f/g,h[_]):h[_]+" "+d[y]}}},A1=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}},T1="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",R1=function(r){return r.type==="comm"&&r.children.indexOf(T1)>-1},O1=function(r){return function(i,s,u){if(!(i.type!=="rule"||r.compat)){var f=i.value.match(/(:first|:nth|:nth-last)-child/g);if(f){for(var d=!!i.parent,h=d?i.parent.children:u,y=h.length-1;y>=0;y--){var p=h[y];if(p.line<i.line)break;if(p.column<i.column){if(R1(p))return;break}}f.forEach(function(_){console.error('The pseudo class "'+_+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+_.split("-child")[0]+'-of-type".')})}}}},Lh=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},z1=function(r,i){for(var s=r-1;s>=0;s--)if(!Lh(i[s]))return!0;return!1},Vh=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},k1=function(r,i,s){Lh(r)&&(r.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Vh(r)):z1(i,s)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Vh(r)))};function qh(n,r){switch(c1(n,r)){case 5103:return Ge+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ge+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+n+js+n+Qt+n+n;case 6828:case 4268:return Ge+n+Qt+n+n;case 6165:return Ge+n+Qt+"flex-"+n+n;case 5187:return Ge+n+Ze(n,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+Qt+"flex-$1$2")+n;case 5443:return Ge+n+Qt+"flex-item-"+Ze(n,/flex-|-self/,"")+n;case 4675:return Ge+n+Qt+"flex-line-pack"+Ze(n,/align-content|flex-|-self/,"")+n;case 5548:return Ge+n+Qt+Ze(n,"shrink","negative")+n;case 5292:return Ge+n+Qt+Ze(n,"basis","preferred-size")+n;case 6060:return Ge+"box-"+Ze(n,"-grow","")+Ge+n+Qt+Ze(n,"grow","positive")+n;case 4554:return Ge+Ze(n,/([^-])(transform)/g,"$1"+Ge+"$2")+n;case 6187:return Ze(Ze(Ze(n,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),n,"")+n;case 5495:case 3959:return Ze(n,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return Ze(Ze(n,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+Qt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+n+n;case 4095:case 3583:case 4068:case 2532:return Ze(n,/(.+)-inline(.+)/,Ge+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ia(n)-1-r>6)switch(Ut(n,r+1)){case 109:if(Ut(n,r+4)!==45)break;case 102:return Ze(n,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+js+(Ut(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~dc(n,"stretch")?qh(Ze(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(Ut(n,r+1)!==115)break;case 6444:switch(Ut(n,Ia(n)-3-(~dc(n,"!important")&&10))){case 107:return Ze(n,":",":"+Ge)+n;case 101:return Ze(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(Ut(n,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+Qt+"$2box$3")+n}break;case 5936:switch(Ut(n,r+11)){case 114:return Ge+n+Qt+Ze(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ge+n+Qt+Ze(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ge+n+Qt+Ze(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Ge+n+Qt+n+n}return n}var D1=function(r,i,s,u){if(r.length>-1&&!r.return)switch(r.type){case fc:r.return=qh(r.value,r.length);break;case Rh:return il([hi(r,{value:Ze(r.value,"@","@"+Ge)})],u);case cc:if(r.length)return d1(r.props,function(f){switch(f1(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return il([hi(r,{props:[Ze(f,/:(read-\w+)/,":"+js+"$1")]})],u);case"::placeholder":return il([hi(r,{props:[Ze(f,/:(plac\w+)/,":"+Ge+"input-$1")]}),hi(r,{props:[Ze(f,/:(plac\w+)/,":"+js+"$1")]}),hi(r,{props:[Ze(f,/:(plac\w+)/,Qt+"input-$1")]})],u)}return""})}},M1=[D1],pc;{var U1=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;pc=function(r){var i=r.match(U1);if(i)return i[i.length-1]}}var j1=function(r){var i=r.key;if(!i)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
77
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(i==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(E){var q=E.getAttribute("data-emotion");q.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var u=r.stylisPlugins||M1;if(/[^a-z-]/.test(i))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+i+'" was passed');var f={},d,h=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(E){for(var q=E.getAttribute("data-emotion").split(" "),P=1;P<q.length;P++)f[q[P]]=!0;h.push(E)});var y,p=[C1,A1];p.push(O1({get compat(){return U.compat}}),k1);{var _,b=[N1,function(E){E.root||(E.return?_.insert(E.return):E.value&&E.type!==uc&&_.insert(E.value+"{}"))}],C=S1(p.concat(u,b)),N=function(q){return il(b1(q),C)};y=function(q,P,F,ae){if(_=F,pc){var W=pc(P.styles);W&&(_={insert:function(Q){F.insert(Q+W)}})}N(q?q+"{"+P.styles+"}":P.styles),ae&&(U.inserted[P.name]=!0)}}var U={key:i,sheet:new l1({key:i,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:f,registered:{},insert:y};return U.sheet.hydrate(h),U},gc={exports:{}},$e={};/** @license React v16.13.1
83
+ */const t1=rh("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),ih={modal:{id:"",open:!1,label:"",url:""}},nn=Tu(r=>({...ih,setModal:n=>r({modal:n}),resetModal:()=>r({modal:ih.modal})})),a1=r=>r.replace(/\D/g,"").slice(0,11).replace(/^(\d{2})(\d{5})(\d{0,4})/,"($1) $2-$3").trim(),r1=r=>r.replace(/\D/g,"").slice(0,8).replace(/^(\d{5})(\d{0,3})/,"$1-$2"),n1=r=>r.replace(/\D/g,"").replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"),lh=r=>Number(String(r).replace(",",".")),i1=r=>{const n=String(r);if(n.includes(".")||n.includes(","))return lh(r);const l=n.slice(-2);return+`${n.slice(0,-2)||"0"}.${l}`},l1=r=>{const n=r.slice(-2);return+`${r.slice(0,-2)||"0"}.${n}`};function s1(r){return String(r).replace(/[.,]/g,"")}const ba={phone:r=>a1(r),cep:r=>r1(r),cpf:r=>n1(r),priceToInteger:r=>s1(r),price:r=>lh(r),transformPrice:r=>i1(r),transformPorcent:r=>l1(r)};/*! js-cookie v3.0.5 | MIT */function ps(r){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var s in l)r[s]=l[s]}return r}var o1={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Hu(r,n){function l(o,f,d){if(!(typeof document>"u")){d=ps({},n,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var y in d)d[y]&&(h+="; "+y,d[y]!==!0&&(h+="="+d[y].split(";")[0]));return document.cookie=o+"="+r.write(f,o)+h}}function s(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var f=document.cookie?document.cookie.split("; "):[],d={},h=0;h<f.length;h++){var y=f[h].split("="),p=y.slice(1).join("=");try{var x=decodeURIComponent(y[0]);if(d[x]=r.read(p,x),o===x)break}catch{}}return o?d[o]:d}}return Object.create({set:l,get:s,remove:function(o,f){l(o,"",ps({},f,{expires:-1}))},withAttributes:function(o){return Hu(this.converter,ps({},this.attributes,o))},withConverter:function(o){return Hu(ps({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}var nt=Hu(o1,{path:"/"});const Gu={BASE_URL:"/",DEV:!0,MODE:"production",PROD:!1,SSR:!1,VITE_API_URL:"https://serverless-pbm.vercel.app",VITE_CLIENT_ID_SANTOREMEDIO:"fff909d6-a77e-4ffc-a4bb-47a1cde99621",VITE_CLIENT_SECRET_SANTOREMEDIO:"ZTK8Q~gqjOkbBmH3vN1AIsKUbwkhUYOkzfvIUb18",VITE_CORREIOS_API_URL:"https://viacep.com.br/ws",VITE_GRANT_TYPE_SANTOREMEDIO:"client_credentials",VITE_SCOPE_SANTOREMEDIO:"https://interplayersdevb2c.onmicrosoft.com/services/varejo-api-pre/.default",VITE_USERNAME_SANTOREMEDIO:"147de435-fac6-4c57-95d8-bb06feb0496b"};var u1={},Zu={};const ln=r=>{if(typeof{url:Ja&&Ja.tagName.toUpperCase()==="SCRIPT"&&Ja.src||new URL("vanilla.js",document.baseURI).href}<"u")return Gu==null?void 0:Gu[r];if(typeof u1<"u")return Zu==null?void 0:Zu[r]},c1=async({product:r,consumer:n})=>{const l=nt.get("tenant_id");if(!l)throw new Error(`No configuration found for tenant: ${l}`);if(!n||!n.holderId)throw new Error("Consumer holderId information is required");if(!r)throw new Error("Product information is required");const s={id:r.id,ean:r.ean,requestedQuantity:r.requestedQuantity,listPrice:r.listPrice,netPrice:r.netPrice};try{const f=await(await fetch(`${ln("VITE_API_URL")}/api/lookup-consumer.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${nt.get("pbm-token")}`},body:JSON.stringify({tenant_id:l,product:s,table_id:nt.get("current-table-id"),local_hour:nt.get("current-local-hour"),consumer:n})})).json();if(!f.success)throw new Error("PBMLOG: Enable Discount Failed!");return f}catch(o){return console.error("Error during enable discount:",o),{success:!1,error:"Authorization failed"}}};function f1({startTransition:r}){const n=Jt(),[l,s]=ge.useState(!1),{setModal:o}=nn(),{handleSubmit:f,register:d,setValue:h,clearErrors:y,unregister:p,formState:{errors:x}}=Lv({resolver:Kv(fv),mode:"onSubmit",defaultValues:{securityNumber:n.securityNumber||"",coupon:""}}),N=async S=>{if(n.targetProduct===null){console.error("PBMLOG: Product is not defined!");return}if(!n.targetProduct.id){console.error("PBMLOG: Product ID is not defined!");return}if(!n.targetProduct.listPrice){console.error("PBMLOG: List Price is not defined!");return}n.setSecurityNumber(S.securityNumber.replace(/\D/g,""));const k=await c1({product:n.targetProduct,consumer:{holderId:S.securityNumber.replace(/\D/g,"")}});if(!k.success){o({id:"CustomerNotRegistered",open:!0});return}n.setBenefitsList(k.product),n.setState("isActivated")},C=async S=>{if(!n.isAuthenticatedShopper){o({id:"ShopperIsNotAuthenticated",open:!0});return}l||h("coupon",void 0,{shouldValidate:!1}),l&&S.coupon!=null&&n.setCardID(S.coupon),r(async()=>{await N(S)})};return v.jsxDEV(v.Fragment,{children:[v.jsxDEV("form",{onSubmit:f(C),className:st("w-full h-auto flex items-start justify-center flex-col mb-2 transition-all duration-150"),id:"form_security_number_pbm",children:[v.jsxDEV("label",{htmlFor:"input_security_number_pbm",className:st("w-full h-auto flex items-start flex-col justify-center relative py-2 transition-all duration-100",{"mb-4":x.securityNumber&&!l}),id:"label_security_number_pbm",children:[v.jsxDEV("input",{type:"text",className:st("w-full h-10 bg-(--pbm-input-background) rounded-lg text-sm font-semibold outline-(--pbm-outline-color) focus:outline focus:bg-(--pbm-input-focus) focus:outline-(--pbm-outline-focus-color) text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":x.securityNumber,"rounded-lg":l}),style:{"--tw-outline-color":x.securityNumber?void 0:"var(--pbm-secondary)"},placeholder:"Digite seu CPF aqui...",required:!0,maxLength:14,...d("securityNumber",{onChange:S=>{const k=ba.cpf(S.target.value);h("securityNumber",k,{shouldValidate:!0})}}),defaultValue:n.securityNumber||"",id:"input_security_number_pbm"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:124,columnNumber:11},this),x.securityNumber&&v.jsxDEV("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"security_number_form_error",children:x.securityNumber.message},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:155,columnNumber:13},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:114,columnNumber:9},this),v.jsxDEV(ge.Activity,{mode:l?"visible":"hidden",children:v.jsxDEV("label",{htmlFor:"input_coupon_pbm",className:st("w-full h-auto flex items-start flex-col justify-center relative py-2",{"mt-2":x.securityNumber}),id:"label_coupon_pbm",children:[v.jsxDEV("input",{type:"text",className:st("w-full h-10 bg-gray-100 rounded-s-lg text-sm font-semibold focus:outline focus:bg-white text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":x.coupon,"rounded-lg":l}),style:{"--tw-outline-color":x.coupon?void 0:"var(--pbm-secondary)"},placeholder:"Cupom / ID do Cartão",...d("coupon",{required:l?"Cupom / ID do Cartão obrigatório.":!1,shouldUnregister:!l,onChange:S=>{h("coupon",S.target.value,{shouldValidate:l})}}),id:"input_coupon_pbm"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:175,columnNumber:13},this),x.coupon&&v.jsxDEV("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"coupon_form_error",children:x.coupon.message},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:206,columnNumber:15},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:165,columnNumber:11},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:164,columnNumber:9},this),v.jsxDEV("button",{type:"submit",className:st("w-full h-10 rounded-lg flex items-center justify-center cursor-pointer text-sm text-white font-semibold transition-all duration-150",{"rounded-lg":l}),style:{backgroundColor:"var(--pbm-primary)"},id:"button_submit_security_number_pbm",children:"Comprar com desconto"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:216,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:107,columnNumber:7},this),v.jsxDEV("section",{className:"flex items-start flex-col gap-2",children:[v.jsxDEV(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>{const S=!l;s(S),S||(p("coupon"),y("coupon"))},id:"check_benefits_button",children:[v.jsxDEV("span",{className:"text-start",children:l?"Não possui Cupom / ID do Cartão?":"Possui Cupom / ID do Cartão?"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:250,columnNumber:11},this),v.jsxDEV(nh,{size:16,className:st({"rotate-0":!l,"rotate-180":l})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:255,columnNumber:11},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:232,columnNumber:9},this),v.jsxDEV(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>n.setState("isPreview"),id:"check_benefits_button",children:[v.jsxDEV("span",{children:"Consultar Benefícios"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:273,columnNumber:11},this),v.jsxDEV(nh,{size:16},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:274,columnNumber:11},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:263,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:231,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:106,columnNumber:5},this)}function d1({size:r}){return v.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:r,height:r,children:v.jsxDEV("path",{d:"M421.44 78.56C375.64 32.77 314.76 7.55 250 7.55S124.36 32.77 78.56 78.56C32.77 124.36 7.55 185.24 7.55 250s25.22 125.64 71.01 171.44c45.8 45.79 106.68 71.01 171.44 71.01s125.64-25.22 171.44-71.01c45.79-45.8 71.01-106.68 71.01-171.44s-25.22-125.64-71.01-171.44zm-49.17 121.7L242.88 334.63c-8.98 9.29-23.57 10.17-33.59 2.02l-79.63-64.7c-10.69-8.67-12.33-24.38-3.66-35.07 8.67-10.69 24.38-12.33 35.07-3.65l61.9 50.39L336.5 165.74c4.4-4.75 10.48-7.59 16.95-7.93a24.88 24.88 0 0118.83 7.26c9.72 9.72 9.71 25.48 0 35.19z",fill:"#229b00"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:13,columnNumber:7},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:6,columnNumber:5},this)}function m1({size:r}){return v.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:r,height:r,children:[v.jsxDEV("circle",{cx:250,cy:250,r:237.45,fill:"#fff"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:29,columnNumber:7},this),v.jsxDEV("path",{d:"M250 492.45c-64.76 0-125.64-25.22-171.44-71.01C32.77 375.64 7.55 314.76 7.55 250S32.77 124.36 78.56 78.56C124.36 32.77 185.24 7.55 250 7.55s125.64 25.22 171.44 71.01c45.79 45.79 71.01 106.68 71.01 171.44s-25.22 125.64-71.01 171.44c-45.79 45.79-106.68 71.01-171.44 71.01zm0-474.9C121.83 17.55 17.55 121.83 17.55 250S121.83 482.45 250 482.45 482.45 378.17 482.45 250 378.17 17.55 250 17.55z",fill:"#d8d8d8"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:30,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:22,columnNumber:5},this)}function h1({size:r,color:n}){return v.jsxDEV("svg",{viewBox:"-0.003 0 99.979 99.979",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:r,height:r,children:[v.jsxDEV("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:47,columnNumber:7},this),v.jsxDEV("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:48,columnNumber:7},this),v.jsxDEV("g",{id:"SVGRepo_iconCarrier",children:[v.jsxDEV("path",{fill:"#ffe700",d:"M92.869 7.105c9.478 9.476 9.478 24.832 0 34.308L41.411 92.869c-9.475 9.474-24.833 9.474-34.307 0-9.476-9.475-9.476-24.832 0-34.308L58.562 7.105c9.475-9.473 24.834-9.473 34.307 0z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:54,columnNumber:9},this),v.jsxDEV("path",{fill:n,d:"M32.548 33.122L7.105 58.563c-9.476 9.476-9.476 24.833 0 34.308 9.474 9.475 24.832 9.475 34.307 0L66.85 67.43 32.548 33.122z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:58,columnNumber:9},this),v.jsxDEV("path",{fill:n,d:"M65.43 68.862L31.134 34.568l1.414-1.414 34.294 34.294z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:62,columnNumber:9},this),v.jsxDEV("path",{fill:n,d:"M38.096 41.51L12.7 66.906a5.894 5.894 0 0 0 0 8.339 5.896 5.896 0 0 0 8.339 0l25.396-25.396-8.339-8.339z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:66,columnNumber:9},this),v.jsxDEV("path",{fill:"#ffe700",d:"M75.244 12.7a5.897 5.897 0 0 0-8.343 0L39.51 40.096l8.339 8.339 27.396-27.396a5.899 5.899 0 0 0-.001-8.339z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:70,columnNumber:9},this),v.jsxDEV("path",{fill:n,d:"M47.862 48.444l-1.414 1.414-8.335-8.336 1.414-1.414z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:74,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:53,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:40,columnNumber:5},this)}function p1({size:r,color:n}){return v.jsxDEV("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,children:[v.jsxDEV("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:92,columnNumber:7},this),v.jsxDEV("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:93,columnNumber:7},this),v.jsxDEV("g",{id:"SVGRepo_iconCarrier",children:v.jsxDEV("path",{d:"M7.33199 16.3154C6.94146 15.9248 6.3083 15.9248 5.91777 16.3154C5.52725 16.7059 5.52725 17.339 5.91777 17.7296L10.5834 22.3952C11.3644 23.1762 12.6308 23.1762 13.4118 22.3952L18.0802 17.7267C18.4707 17.3362 18.4707 16.703 18.0802 16.3125C17.6897 15.922 17.0565 15.922 16.666 16.3125L13 19.9786V2.0001C13 1.44781 12.5523 1.0001 12 1.0001C11.4477 1.0001 11 1.44781 11 2.0001V19.9833L7.33199 16.3154Z",fill:n},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:99,columnNumber:9},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:98,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:85,columnNumber:5},this)}const gs={CheckON:d1,CheckOFF:m1,Pills:h1,ArrowDown:p1};function g1(){var y;const{targetProduct:r,benefitsEnabled:n,setBenefitsEnabled:l}=Jt(),s=ba.transformPrice(Number(r==null?void 0:r.listPrice)),o=ba.transformPrice(Number(r==null?void 0:r.discountValue)||0),f=ba.transformPorcent((r==null?void 0:r.discountPercentual)||"0"),d=s*f/100,h=s-o||s-d;return v.jsxDEV("header",{className:"flex items-start justify-start flex-col gap-4 w-full p-0.5 rounded-xl mt-5",id:"header_pbm",children:[v.jsxDEV("label",{className:"flex items-center gap-2 cursor-pointer",htmlFor:"enable_benefits_checkbox",children:[v.jsxDEV("input",{id:"enable_benefits_checkbox",type:"checkbox",name:"option",className:"peer hidden",checked:n,onChange:p=>l(p.target.checked)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:32,columnNumber:9},this),v.jsxDEV("div",{className:"w-5 h-5 border border-(--pbm-primary) rounded-full flex items-center justify-center transition-all duration-300 after:content-[''] after:w-2 after:h-2 after:rounded-full after:bg-(--pbm-primary) after:scale-0 after:transition-transform after:duration-200 peer-checked:after:scale-100"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:42,columnNumber:9},this),v.jsxDEV("p",{className:"font-medium text-(--pbm-primary) select-none text-sm",children:"Desconto de Laboratório"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:43,columnNumber:9},this),v.jsxDEV(gs.Pills,{size:16,color:"var(--pbm-primary)"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:46,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:28,columnNumber:7},this),v.jsxDEV("span",{className:"py-1 rounded-xl shrink-0 text-white text-xl font-bold flex items-center justify-start gap-2 relative","data-testid":"test_id_header_price",id:"header_price",children:v.jsxDEV("section",{className:"flex items-start gap-2 justify-center-safe flex-col",children:[v.jsxDEV("div",{className:"flex items-center-safe justify-start gap-1",children:[v.jsxDEV("span",{className:"line-through text-sm font-light text-zinc-600",children:(y=Number(s))==null?void 0:y.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:56,columnNumber:13},this),v.jsxDEV(gs.ArrowDown,{size:14,color:"var(--pbm-primary)"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:65,columnNumber:13},this),v.jsxDEV("span",{className:"font-semibold text-sm text-(--pbm-primary)",children:[f.toFixed(2),"%"]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:67,columnNumber:13},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:55,columnNumber:11},this),v.jsxDEV("span",{className:"text-lg text-zinc-700 font-bold",children:h==null?void 0:h.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:72,columnNumber:11},this),(r==null?void 0:r.informativeMessage)&&v.jsxDEV("span",{className:"text-xs text-zinc-600 font-medium",children:r==null?void 0:r.informativeMessage},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:82,columnNumber:13},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:54,columnNumber:9},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:49,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:24,columnNumber:5},this)}function y1({textColor:r}){return v.jsxDEV("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:[v.jsxDEV("div",{"data-testid":"test_id_spin",className:"w-8 h-8 border-4 shrink-0 border-gray-300 rounded-full animate-spin",style:{borderTopColor:"var(--pbm-secondary)"},id:"loading_spin"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Loading/index.tsx",lineNumber:8,columnNumber:7},this),v.jsxDEV("p",{className:"text-sm font-semibold text-start",style:{color:r||"var(--pbm-text)"},id:"loading_label",children:"Um momento... estamos verificando seus dados."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Loading/index.tsx",lineNumber:14,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Loading/index.tsx",lineNumber:7,columnNumber:5},this)}function Yu({children:r,variant:n}){const{benefitsEnabled:l}=Jt();return v.jsxDEV("main",{className:st({"border-3 border-(--pbm-border) overflow-hidden flex flex-col items-center justify-center min-w-(--min-container) max-w-(--max-container) w-full h-auto rounded-xl p-4 bg-white gap-4 relative":n==="main","w-full relative":n==="simple","h-0 overflow-hidden":!l&&n==="simple"}),"data-testid":"test_id_container","data-variant":n,id:"container_pbm",children:r},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Container/index.tsx",lineNumber:15,columnNumber:5},this)}function qn(r){return v.jsxDEV("h2",{className:st("text-start font-semibold text-sm",r.className),style:{color:r.textColor||"var(--pbm-text)",fontSize:r.textSize,textAlign:r.textAlign},"data-testid":"test_id_title",id:"title_pbm",children:r.children},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Title/index.tsx",lineNumber:13,columnNumber:5},this)}function b1({data:r,onChange:n,checked:l}){const{setAvailableDiscountSelected:s,state:o,isAuthenticatedShopper:f}=Jt(),{setModal:d}=nn(),h=r.id+"_"+r.requestedQuantity,y=ba.transformPrice(Number(r==null?void 0:r.grossPrice)||Number(r==null?void 0:r.listPrice)||0),p=ba.transformPrice(Number(r==null?void 0:r.discountValue)||0),x=ba.transformPorcent((r==null?void 0:r.discountPercentual)||"0"),N=p*Number(r.requestedQuantity),C=y*Number(r.requestedQuantity),S=C*x/100,k=C-N||C-S,w=ge.useCallback(()=>{if(l){const te=Q=>Math.round(Q*100)/100;s({discount:{total:te(N),unit:te(p)},quantity:Number(r.requestedQuantity),totalPrice:te(k),grossPrice:r.grossPrice})}},[l,r.requestedQuantity,r.grossPrice,s,N,p,k]);ge.useEffect(()=>{w()},[w]);const q=()=>{if(!f&&o==="isActivated"){d({id:"ShopperIsNotAuthenticated",open:!0});return}n()};return v.jsxDEV("label",{htmlFor:h,className:st("label_benefits w-full flex items-center justify-start bg-zinc-300/60 border border-zinc-400/50 px-4 py-2 transition-colors rounded-lg gap-1",{"cursor-not-allowed":o==="isPreview","cursor-pointer":o==="isActivated"}),style:{borderColor:l?"var(--pbm-primary)":void 0,backgroundColor:l?"color-mix(in srgb, var(--pbm-primary), transparent 90%)":void 0},id:"label_benefits_"+h,children:[v.jsxDEV("input",{type:"radio",name:"benefits_discount",id:h,className:"hidden",checked:l,onChange:q,disabled:o==="isPreview"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:106,columnNumber:7},this),v.jsxDEV("span",{style:{color:"var(--pbm-primary)"},children:l?v.jsxDEV(gs.CheckON,{size:20},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:117,columnNumber:52},this):v.jsxDEV(gs.CheckOFF,{size:20},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:117,columnNumber:21},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:116,columnNumber:7},this),v.jsxDEV("span",{className:"font-semibold text-sm",style:{color:"var(--pbm-text)"},children:[r.requestedQuantity,"un"]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:120,columnNumber:7},this),v.jsxDEV("section",{className:"ml-auto relative gap-2 flex items-center-safe justify-end-safe",children:[v.jsxDEV("span",{className:"text-white -top-4 py-0.5 font-semibold text-xs px-2 w-auto text-nowrap rounded-2xl -right-3",style:{backgroundColor:"var(--pbm-primary)"},children:[N.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})," ","OFF"]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:128,columnNumber:9},this),v.jsxDEV("strong",{className:"font-semibold text-sm text-center",style:{color:"var(--pbm-text)"},children:k.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:140,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:127,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:89,columnNumber:5},this)}const v1="N000";function x1(){var y;const{setState:r,state:n,customLoginUrl:l,isAuthenticatedShopper:s,benefitsList:o}=Jt(),[f,d]=ge.useState(null),[h]=ge.useState(o);return h!=null&&h.length&&((y=h[0])==null?void 0:y.returnCode)!==v1&&n==="isActivated"?v.jsxDEV("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:v.jsxDEV("p",{className:"text-sm font-semibold text-start",style:{color:"var(--pbm-text)"},id:"benefits_error_handle",children:h[0].informativeText},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:31,columnNumber:9},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:30,columnNumber:7},this):v.jsxDEV("section",{className:"flex items-start justify-center gap-4 w-full h-auto flex-col",id:"benefits_table_pbm",children:[v.jsxDEV(qn,{children:"Descontos disponíveis:"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:47,columnNumber:7},this),v.jsxDEV("form",{className:"flex flex-col items-center justify-start w-full gap-4.5",id:"form_benefits_table_pbm",onSubmit:p=>p.preventDefault(),children:[!h&&v.jsxDEV("p",{className:"text-sm font-semibold text-start text-zinc-900",id:"benefits_empty_pbm",children:"Não foi possível encontrar benefícios para esse produto."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:55,columnNumber:11},this),h&&h.map(p=>{const x=p.id+"_"+p.requestedQuantity;return v.jsxDEV(b1,{data:p,checked:f===x,onChange:()=>d(x)},x,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:68,columnNumber:15},this)})]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:49,columnNumber:7},this),n==="isPreview"&&v.jsxDEV(Wa,{onClick:()=>r("isEmpty"),className:"bg-transparent p-0 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"unauthorized_benefits_button",children:["Atenção: Não é possível utilizar os benefícos sem realizar a consulta do CPF e o Login, por favor"," ",v.jsxDEV("span",{className:"underline",children:"insira seu cpf para utilizar os benefícios"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:79,columnNumber:9},this),n==="isActivated"&&v.jsxDEV(v.Fragment,{children:[!s&&v.jsxDEV(Wa,{type:"button",onClick:()=>window.location.assign(l||"/login"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"login",children:v.jsxDEV("span",{className:"underline",children:"Por favor, faça o Login para aproveitar os benefícios!"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:101,columnNumber:15},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:95,columnNumber:13},this),v.jsxDEV(Wa,{onClick:()=>r("isEmpty"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"change_security_number",children:v.jsxDEV("span",{className:"underline",children:"Deseja editar o cpf digitado?"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:112,columnNumber:13},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:107,columnNumber:11},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:93,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:43,columnNumber:5},this)}function ys(r){return v.jsxDEV("p",{className:st("font-normal text-sm",r.textAlign&&`text-${r.textAlign}`,r.className),style:{color:r.textColor||"var(--pbm-text)",fontSize:r.textSize,textAlign:r.textAlign},"data-testid":"test_id_text",id:"text_pbm",children:r.children},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Text/index.tsx",lineNumber:13,columnNumber:5},this)}function N1({textColor:r}){const{urlAcceptTerms:n}=Jt(),{setModal:l}=nn(),s=()=>{n&&l({open:!0,id:"iframe_pbm",label:"Aceitar os termos",url:n})};return v.jsxDEV("section",{"data-testid":"test_id_invalid",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_invalid_container_pbm",children:[v.jsxDEV(qn,{className:"w-full",textColor:r,children:"CPF não cadastrado."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:25,columnNumber:7},this),v.jsxDEV(ys,{className:"w-full",textColor:r,children:["Conclua seu cadastro para habilitar o benefício. ",v.jsxDEV("br",{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:29,columnNumber:58},this),"Ao clicar em “Aceitar os termos”, você irá para uma página externa. Aceite os termos e volte para continuar."]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:28,columnNumber:7},this),v.jsxDEV(Wa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Aceitar os termos"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:19,columnNumber:5},this)}function S1({textColor:r}){const{urlRegisterIndustry:n}=Jt(),{setModal:l}=nn(),s=()=>{n&&l({open:!0,id:"iframe_pbm",label:"Ativar CPF",url:n})};return v.jsxDEV("section",{"data-testid":"test_id_registered",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_registered_container_pbm",children:[v.jsxDEV(qn,{className:"w-full",textColor:r,children:"Ops, seu CPF ainda não está habilitado para este produto."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberRegitered/index.tsx",lineNumber:25,columnNumber:7},this),v.jsxDEV(ys,{className:"w-full",textColor:r,children:"Para ativar o benefício, clique em “Ativar CPF” e conclua a etapa na página externa. Depois, é só voltar para continuar — vamos aguardar você aqui."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberRegitered/index.tsx",lineNumber:28,columnNumber:7},this),v.jsxDEV(Wa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Ativar CPF"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberRegitered/index.tsx",lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberRegitered/index.tsx",lineNumber:19,columnNumber:5},this)}const sh={ErrorMessage:"Erro ao aplicar o benefício"},oh=Tu(r=>({...sh,setErrorMessage:n=>r({ErrorMessage:n}),resetErrorMessage:()=>r({ErrorMessage:sh.ErrorMessage})})),uh=()=>{const{ErrorMessage:r}=oh(),{setState:n}=Jt();return v.jsxDEV(Yu,{variant:"main",children:[v.jsxDEV(qn,{children:"Erro ao Aplicar o Benefício"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:15,columnNumber:13},void 0),v.jsxDEV(ys,{textAlign:"center",children:r},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:16,columnNumber:13},void 0),v.jsxDEV(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:l=>l.currentTarget.style.filter="brightness(0.8)",onMouseOut:l=>l.currentTarget.style.filter="none",onClick:()=>n("isEmpty"),id:"check_benefits_button",children:[v.jsxDEV("span",{children:"Tentar novamente"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:25,columnNumber:17},void 0),v.jsxDEV(t1,{size:16},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:26,columnNumber:17},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:17,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:14,columnNumber:9},void 0)},ch={personalData:{name:"",phone:"",birthday:"",email:""},address:{postalcode:"",number:"",complement:"",street:"",neighborhood:"",city:"",uf:"",stateAddress:""},genderResponsibility:{gender:"",patient:null},doctor:{typeCredential:"CRM",register:"",state:"",doctorName:""},acceptances:{acceptPhone:!1,acceptsSms:!1,acceptsEmail:!1,acceptsMail:!1,acceptsPrivacyTermsLGPD:!1},step:0},sn=Tu(r=>({...ch,setPersonalData:n=>r(l=>({personalData:{...l.personalData,...n}})),setAddress:n=>r(l=>({address:{...l.address,...n}})),setGenderResponsibility:n=>r(l=>({genderResponsibility:{...l.genderResponsibility,...n}})),setDoctor:n=>r(l=>({doctor:{...l.doctor,...n}})),setAcceptances:n=>r(l=>({acceptances:{...l.acceptances,...n}})),setStep:n=>r({step:n}),resetForm:()=>r(ch)})),Gt=({label:r,error:n,children:l})=>v.jsxDEV("div",{className:"flex flex-col gap-1",children:[v.jsxDEV("label",{className:"text-xs font-medium text-zinc-500 uppercase tracking-wide",children:r},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/FieldWrapper.tsx",lineNumber:11,columnNumber:5},void 0),l,n&&v.jsxDEV("span",{className:"text-xs text-red-500 mt-0.5",children:n},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/FieldWrapper.tsx",lineNumber:15,columnNumber:15},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/FieldWrapper.tsx",lineNumber:10,columnNumber:3},void 0),Xi="w-full rounded-lg border border-gray-200 bg-gray-100 px-3 py-2.5 text-sm text-gray-400 cursor-not-allowed",Va=r=>st("w-full rounded-lg border px-3 py-2.5 text-sm text-gray-800 outline-none transition-all","focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500",r?"border-red-400 bg-red-50":"border-gray-200 bg-gray-50 hover:border-gray-300"),Ki=({onNext:r,onBack:n,loading:l,nextLabel:s="Continuar",isLast:o=!1})=>v.jsxDEV("div",{className:"flex gap-2 mt-2 pt-4 border-t border-gray-100",children:[n&&v.jsxDEV("button",{type:"button",onClick:n,className:"flex-1 rounded-lg border border-gray-200 py-2.5 text-sm font-medium text-zinc-600 hover:bg-zinc-600/10 transition-all cursor-pointer",children:"Voltar"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:18,columnNumber:7},void 0),v.jsxDEV("button",{type:"button",onClick:r,disabled:l,className:st("flex-2 rounded-lg py-2.5 text-sm font-semibold text-white transition-all cursor-pointer",o?"bg-emerald-600 hover:bg-emerald-500":"bg-(--pbm-primary) hover:bg-(--pbm-primary)/60",l&&"opacity-60 cursor-not-allowed"),children:l?v.jsxDEV("span",{className:"flex items-center justify-center gap-2",children:[v.jsxDEV("svg",{className:"h-4 w-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[v.jsxDEV("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:41,columnNumber:13},void 0),v.jsxDEV("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:49,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:40,columnNumber:11},void 0),"Enviando..."]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:39,columnNumber:9},void 0):s},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:26,columnNumber:5},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:16,columnNumber:3},void 0),bs={PersonalData:0,Address:1,GenderResponsibility:2,Doctor:3,Acceptances:4},_1=({securityNumber:r,onNext:n})=>{const{personalData:l,setPersonalData:s,setStep:o}=sn(),{setModal:f}=nn(),[d,h]=ge.useState({}),[y,p]=ge.useState(!1),x=()=>{const C={};return(!l.name.trim()||l.name.trim().split(" ").length<2)&&(C.name="Informe o nome completo."),/^\(\d{2}\) \d{5}-\d{4}$/.test(l.phone)||(C.phone="Telefone inválido."),l.birthday||(C.birthday="Data de nascimento obrigatória."),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.email)||(C.email="E-mail inválido."),h(C),Object.keys(C).length===0},N=async()=>{if(x()){p(!0);try{o(bs.Address),n()}catch{console.error("An error occurred while setting personal data form.")}finally{p(!1)}}};return v.jsxDEV("div",{className:"flex flex-col gap-4",children:[v.jsxDEV(Gt,{label:"CPF",children:[v.jsxDEV("input",{className:Xi,value:ba.cpf(r),disabled:!0,readOnly:!0},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:58,columnNumber:9},void 0),v.jsxDEV("p",{className:"text-xs text-gray-400 mt-1",children:v.jsxDEV("button",{type:"button",className:"text-(--pbm-primary) hover:text-(--pbm-primary)/60 cursor-pointer underline underline-offset-2 transition-colors",onClick:()=>f({id:"",open:!1}),children:"Deseja alterar o CPF? Clique aqui."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:65,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:64,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:57,columnNumber:7},void 0),v.jsxDEV(Gt,{label:"Nome completo",error:d.name,children:v.jsxDEV("input",{className:Va(d.name),placeholder:"Ex: João da Silva",value:l.name,onChange:C=>{s({name:C.target.value}),h(S=>({...S,name:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:76,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:75,columnNumber:7},void 0),v.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[v.jsxDEV(Gt,{label:"Telefone",error:d.phone,children:v.jsxDEV("input",{className:Va(d.phone),placeholder:"(11) 99999-8888",value:l.phone,onChange:C=>{s({phone:ba.phone(C.target.value)}),h(S=>({...S,phone:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:89,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:88,columnNumber:9},void 0),v.jsxDEV(Gt,{label:"Data de nascimento",error:d.birthday,children:v.jsxDEV("input",{type:"date",className:Va(d.birthday),value:l.birthday,onChange:C=>{s({birthday:C.target.value}),h(S=>({...S,birthday:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:101,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:100,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:87,columnNumber:7},void 0),v.jsxDEV(Gt,{label:"E-mail",error:d.email,children:v.jsxDEV("input",{type:"email",className:Va(d.email),placeholder:"joao@email.com",value:l.email,onChange:C=>{s({email:C.target.value}),h(S=>({...S,email:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:114,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:113,columnNumber:7},void 0),v.jsxDEV(Ki,{onNext:N,loading:y},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:126,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:56,columnNumber:5},void 0)};async function C1({postal_code:r}){const n=await fetch(`${ln("VITE_CORREIOS_API_URL")}/${r}/json/`);if(!n.ok)throw new Error("Erro ao consultar CEP");return{...await n.json(),success:!0}}const E1=({onNext:r,onBack:n})=>{const{address:l,setAddress:s,setStep:o}=sn(),[f,d]=ge.useState({}),[h,y]=ge.useState(!1),[p,x]=ge.useState(!1),N=ge.useCallback(async k=>{const w=k.replace(/\D/g,"");if(w.length===8){y(!0);try{const q=await C1({postal_code:w});if(!q.success){console.error("Failed to lookup postal code");return}s({street:q.logradouro,neighborhood:q.bairro,uf:q.uf,city:q.localidade,stateAddress:q.estado,postalcode:q.cep,complement:q.complemento||""})}catch{console.error("Failed to fetch address for CEP:",k)}finally{y(!1)}}},[s]),C=()=>{const k={};return/^\d{5}-\d{3}$/.test(l.postalcode)||(k.postalcode="CEP inválido."),l.number.trim()||(k.number="Número obrigatório."),d(k),Object.keys(k).length===0},S=async()=>{if(C()){x(!0);try{o(bs.GenderResponsibility),r()}catch{console.log("An error occurred while submitting address form.")}finally{x(!1)}}};return v.jsxDEV("div",{className:"flex flex-col gap-4",children:[v.jsxDEV(Gt,{label:"CEP",error:f.postalcode,children:v.jsxDEV("div",{className:"relative",children:[v.jsxDEV("input",{className:Va(f.postalcode),placeholder:"00000-000",value:l.postalcode,onChange:k=>{const w=ba.cep(k.target.value);s({postalcode:w}),d(q=>({...q,postalcode:void 0})),w.replace(/\D/g,"").length===8&&N(w)}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:87,columnNumber:11},void 0),h&&v.jsxDEV("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:v.jsxDEV("svg",{className:"h-4 w-4 animate-spin text-blue-500",viewBox:"0 0 24 24",fill:"none",children:[v.jsxDEV("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:109,columnNumber:17},void 0),v.jsxDEV("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:117,columnNumber:17},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:104,columnNumber:15},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:103,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:86,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:85,columnNumber:7},void 0),v.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[v.jsxDEV(Gt,{label:"Rua",children:v.jsxDEV("input",{className:Xi,value:l.street||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:130,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:129,columnNumber:9},void 0),v.jsxDEV(Gt,{label:"Bairro",children:v.jsxDEV("input",{className:Xi,value:l.neighborhood||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:139,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:138,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:128,columnNumber:7},void 0),v.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[v.jsxDEV(Gt,{label:"Cidade",children:v.jsxDEV("input",{className:Xi,value:l.city||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:151,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:150,columnNumber:9},void 0),v.jsxDEV(Gt,{label:"Estado",children:v.jsxDEV("input",{className:Xi,value:l.stateAddress||"",disabled:!0,readOnly:!0,placeholder:"UF"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:160,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:159,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:149,columnNumber:7},void 0),v.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[v.jsxDEV(Gt,{label:"Número",error:f.number,children:v.jsxDEV("input",{className:Va(f.number),placeholder:"Ex: 100",value:l.number,onChange:k=>{s({number:k.target.value}),d(w=>({...w,number:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:172,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:171,columnNumber:9},void 0),v.jsxDEV(Gt,{label:"Complemento",children:v.jsxDEV("input",{className:Va(),placeholder:"Apto, bloco...",value:l.complement,onChange:k=>s({complement:k.target.value})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:183,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:182,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:170,columnNumber:7},void 0),v.jsxDEV(Ki,{onNext:S,onBack:n,loading:p},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:192,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:84,columnNumber:5},void 0)},w1=({onNext:r,onBack:n})=>{const{genderResponsibility:l,setGenderResponsibility:s,setStep:o}=sn(),[f,d]=ge.useState({}),[h,y]=ge.useState(!1),p=()=>{const C={};return l.gender||(C.gender="Selecione o gênero."),l.patient===null&&(C.patient="Informe se é o paciente."),d(C),Object.keys(C).length===0},x=async()=>{if(p()){y(!0);try{o(bs.Doctor),r()}catch{console.error("An error occurred while submitting gender responsibility data.")}finally{y(!1)}}},N=[{value:"M",label:"Masculino"},{value:"F",label:"Feminino"},{value:"O",label:"Outro"}];return v.jsxDEV("div",{className:"flex flex-col gap-5",children:[v.jsxDEV("div",{children:[v.jsxDEV("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Gênero"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:56,columnNumber:9},void 0),v.jsxDEV("div",{className:"flex gap-2",children:N.map(C=>v.jsxDEV("button",{type:"button",onClick:()=>{s({gender:C.value}),d(S=>({...S,gender:void 0}))},className:st("flex-1 py-2.5 cursor-pointer px-2.5 rounded-lg border text-sm font-medium transition-all",l.gender===C.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:C.label},C.value,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:61,columnNumber:13},void 0))},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:59,columnNumber:9},void 0),f.gender&&v.jsxDEV("span",{className:"text-xs text-red-500 mt-1 block",children:f.gender},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:80,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:55,columnNumber:7},void 0),v.jsxDEV("div",{children:[v.jsxDEV("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Você é o paciente?"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:87,columnNumber:9},void 0),v.jsxDEV("div",{className:"flex gap-2",children:[{label:"Sim, sou o paciente",value:!0},{label:"Não, sou responsável",value:!1}].map(C=>v.jsxDEV("button",{type:"button",onClick:()=>{s({patient:C.value}),d(S=>({...S,patient:void 0}))},className:st("flex-1 py-2.5 px-2.5 text-nowrap cursor-pointer rounded-lg border text-sm font-medium transition-all",l.patient===C.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:C.label},String(C.value),!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:95,columnNumber:13},void 0))},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:90,columnNumber:9},void 0),f.patient&&v.jsxDEV("span",{className:"text-xs text-red-500 mt-1 block",children:f.patient},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:114,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:86,columnNumber:7},void 0),v.jsxDEV(Ki,{onNext:x,onBack:n,loading:h},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:120,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:54,columnNumber:5},void 0)},D1=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],A1=({onNext:r,onBack:n})=>{const{doctor:l,setDoctor:s,setStep:o}=sn(),[f,d]=ge.useState({}),[h,y]=ge.useState(!1),p=()=>{const N={};return l.typeCredential||(N.typeCredential="Tipo de credencial obrigatório."),l.register.trim()||(N.register="Número do registro obrigatório."),l.state||(N.state="Estado obrigatório."),l.doctorName.trim()||(N.doctorName="Nome do médico obrigatório."),d(N),Object.keys(N).length===0},x=async()=>{if(p()){y(!0);try{o(bs.Acceptances),r()}catch{console.error("An error occurred while submitting doctor data.")}finally{y(!1)}}};return v.jsxDEV("div",{className:"flex flex-col gap-4",children:[v.jsxDEV("div",{className:"grid grid-cols-3 gap-3",children:[v.jsxDEV(Gt,{label:"Tipo credencial",error:f.typeCredential,children:v.jsxDEV("select",{className:Va(f.typeCredential),value:l.typeCredential,onChange:N=>{s({typeCredential:N.target.value}),d(C=>({...C,typeCredential:void 0}))},children:[v.jsxDEV("option",{value:"CRM",children:"CRM"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:63,columnNumber:13},void 0),v.jsxDEV("option",{value:"CRO",children:"CRO"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:64,columnNumber:13},void 0),v.jsxDEV("option",{value:"CRF",children:"CRF"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:65,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:52,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:51,columnNumber:9},void 0),v.jsxDEV(Gt,{label:"Estado (UF)",error:f.state,children:v.jsxDEV("select",{className:Va(f.state),value:l.state,onChange:N=>{s({state:N.target.value}),d(C=>({...C,state:void 0}))},children:[v.jsxDEV("option",{value:"",children:"UF"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:78,columnNumber:13},void 0),D1.map(N=>v.jsxDEV("option",{value:N,children:N},N,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:80,columnNumber:15},void 0))]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:70,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:69,columnNumber:9},void 0),v.jsxDEV(Gt,{label:"Nº registro",error:f.register,children:v.jsxDEV("div",{className:"relative",children:v.jsxDEV("input",{className:Va(f.register),placeholder:"Ex: 123456",value:l.register,onChange:N=>{s({register:N.target.value.replace(/\D/g,"")}),d(C=>({...C,register:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:89,columnNumber:13},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:88,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:87,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:50,columnNumber:7},void 0),v.jsxDEV(Gt,{label:"Nome do médico",error:f.doctorName,children:[v.jsxDEV("div",{className:"relative",children:v.jsxDEV("input",{className:Va(f.doctorName),placeholder:"Nome Completo do Profissional",value:l.doctorName,onChange:N=>{s({doctorName:N.target.value}),d(C=>({...C,doctorName:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:107,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:106,columnNumber:9},void 0),v.jsxDEV("p",{className:"text-xs text-gray-400 mt-0.5",children:"Preenchido automaticamente ao informar registro + UF."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:120,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:105,columnNumber:7},void 0),v.jsxDEV(Ki,{onNext:x,onBack:n,loading:h},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:125,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:49,columnNumber:5},void 0)},Ji=({label:r,checked:n,onChange:l,required:s,error:o})=>v.jsxDEV("label",{className:st("flex items-start gap-3 cursor-pointer group p-3 rounded-lg border transition-all",n?"border-emerald-200 bg-emerald-50/60":"border-zinc-100 hover:border-zinc-200 bg-zinc-50/40",o?"border-red-300 bg-red-50/40":""),children:[v.jsxDEV("div",{className:st("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border transition-all",n?"border-(--pbm-primary) bg-(--pbm-primary)":"border-zinc-300 bg-white"),children:n&&v.jsxDEV("svg",{className:"h-2.5 w-2.5 text-white",viewBox:"0 0 10 8",fill:"none",children:v.jsxDEV("path",{d:"M1 4l3 3 5-6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:35,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:34,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:25,columnNumber:5},void 0),v.jsxDEV("span",{className:"text-sm text-zinc-700 leading-snug",children:[r,s&&v.jsxDEV("span",{className:"text-red-400 ml-1",children:"*"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:47,columnNumber:20},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:45,columnNumber:5},void 0),v.jsxDEV("input",{type:"checkbox",className:"sr-only",checked:n,onChange:f=>l(f.target.checked)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:49,columnNumber:5},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:16,columnNumber:3},void 0),T1=async({product:r,consumer:n,healthProfessional:l})=>{const s=nt.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!n)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!r)throw new Error("Product information is required");try{const f=await(await fetch(`${ln("VITE_API_URL")}/api/discount.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${nt.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:r,table_id:nt.get("current-table-id"),local_hour:nt.get("current-local-hour"),consumer:n,healthProfessional:l})})).json();if(!f.success)throw new Error("PBMLOG: Enable Discount Failed!");return nt.set("current-central-number",f.product[0].centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),nt.set("current-term-code",f.product[0].activationFields.acceptLgpd.termCode.value.toString(),{secure:!0,sameSite:"Strict",expires:1}),f}catch(o){return console.error("Error during enable discount:",o),{success:!1,error:"Authorization failed"}}},O1=async({product:r,consumer:n,healthProfessional:l})=>{const s=nt.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!n)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!r)throw new Error("Product information is required");try{const f=await(await fetch(`${ln("VITE_API_URL")}/api/activate.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${nt.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:r,table_id:nt.get("current-table-id"),local_hour:nt.get("current-local-hour"),central_number:nt.get("current-central-number"),consumer:n,healthProfessional:l,acceptLgpd:{evidenceType:"SITE",evidence:"VSTOSITE",termCode:nt.get("current-term-code")}})})).json();if(!f.success)throw new Error("PBMLOG: Activate Failed!");return f}catch(o){return console.error("Error during activate:",o),{success:!1,error:"Authorization failed"}}},R1=({onBack:r,onDone:n,securityNumber:l})=>{const{acceptances:s,setAcceptances:o}=sn(),{targetProduct:f,cardID:d}=Jt(),[h,y]=ge.useState({}),[p,x]=ge.useState(!1),N=sn.getState(),C=()=>{const w={};return s.acceptsPrivacyTermsLGPD||(w.lgpd="É obrigatório aceitar os termos de privacidade (LGPD)."),y(w),Object.keys(w).length===0},S=async w=>{try{const q=await O1(w);console.log("Activate response:",q)}catch(q){console.error("Error during consumer activation:",q)}},k=async()=>{if(!C())return;if(x(!0),!f){console.error("No target product found in PBM store."),x(!1);return}const w=N.personalData.phone.replace(/\D/g,""),q=w.slice(0,2),te=w.slice(2),Q={consumer:{holderId:l,cardId:d||"",name:N.personalData.name,email:N.personalData.email,birthdate:N.personalData.birthday,genre:N.genderResponsibility.gender,postalCode:N.address.postalcode.replace(/\D/g,""),stateCode:N.address.uf||"",cityName:N.address.city||"",cityRegion:N.address.neighborhood||"",addressType:"casa",streetAddress:N.address.street||"",addressNumber:N.address.number||"",addressAdditionalInformation:N.address.complement||"",DDDcellPhone:q,cellphone:te,acceptInformativeMaterial:s.acceptsMail?"S":"N",acceptMail:s.acceptsMail?"S":"N",acceptEmail:s.acceptsEmail?"S":"N",acceptCalls:s.acceptPhone?"S":"N",acceptSMS:s.acceptsSms?"S":"N",acceptTerm:s.acceptsPrivacyTermsLGPD?"S":"N",acceptWhatsApp:"N"},healthProfessional:{id:N.doctor.register,stateCode:N.doctor.state,type:N.doctor.typeCredential,name:N.doctor.doctorName},product:{id:f.id,ean:f.ean,requestedQuantity:f.requestedQuantity,listPrice:f.listPrice,netPrice:f.netPrice}};try{const le=await T1(Q);le.success?await S(Q):console.error("Failed to enable discount:",le),n()}catch{console.error("An error occurred while submitting acceptances data.")}finally{x(!1)}};return v.jsxDEV("div",{className:"flex flex-col gap-3",children:[v.jsxDEV("p",{className:"text-xs text-gray-500 mb-1",children:"Selecione como deseja receber comunicações:"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:119,columnNumber:7},void 0),v.jsxDEV(Ji,{label:"Aceito receber contato por telefone",checked:s.acceptPhone,onChange:w=>o({acceptPhone:w})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:123,columnNumber:7},void 0),v.jsxDEV(Ji,{label:"Aceito receber SMS",checked:s.acceptsSms,onChange:w=>o({acceptsSms:w})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:128,columnNumber:7},void 0),v.jsxDEV(Ji,{label:"Aceito receber e-mails",checked:s.acceptsEmail,onChange:w=>o({acceptsEmail:w})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:133,columnNumber:7},void 0),v.jsxDEV(Ji,{label:"Aceito receber correspondências por correio",checked:s.acceptsMail,onChange:w=>o({acceptsMail:w})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:138,columnNumber:7},void 0),v.jsxDEV("div",{className:"mt-1",children:[v.jsxDEV(Ji,{label:"Li e aceito os Termos de Privacidade (LGPD)",checked:s.acceptsPrivacyTermsLGPD,onChange:w=>{o({acceptsPrivacyTermsLGPD:w}),y({})},required:!0,error:h.lgpd},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:145,columnNumber:9},void 0),h.lgpd&&v.jsxDEV("span",{className:"text-xs text-red-500 mt-1 block pl-1",children:h.lgpd},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:156,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:144,columnNumber:7},void 0),v.jsxDEV(Ki,{onNext:k,onBack:r,loading:p,nextLabel:"Concluir cadastro",isLast:!0},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:162,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:118,columnNumber:5},void 0)},fh=["Dados Pessoais","Endereço","Perfil","Médico","Aceites"],M1=({current:r})=>v.jsxDEV("div",{className:"flex items-center w-full justify-center mb-6",children:fh.map((n,l)=>{const s=l<r,o=l===r;return v.jsxDEV("div",{className:"flex items-center w-full min-w-0 justify-center relative",children:[v.jsxDEV("div",{className:"flex flex-col items-center justify-center gap-1 shrink-0 z-10",children:[v.jsxDEV("div",{className:st("flex h-7 w-7 items-center justify-center rounded-full text-xs font-semibold transition-all",s?"bg-emerald-600 text-white":o?"bg-(--pbm-primary) text-white ring-4 ring-(--pbm-primary)/15":"bg-zinc-100 text-zinc-400"),children:s?v.jsxDEV("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 12 10",fill:"none",children:v.jsxDEV("path",{d:"M1 5l4 4 6-8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:34,columnNumber:19},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:33,columnNumber:17},void 0):l+1},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:22,columnNumber:13},void 0),v.jsxDEV("span",{className:st("text-[10px] font-medium whitespace-nowrap hidden sm:block",o?"text-(--pbm-primary)":s?"text-emerald-600":"text-zinc-400"),children:n},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:46,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:21,columnNumber:11},void 0),l<fh.length-1&&v.jsxDEV("div",{className:st("h-0.5 w-full rounded transition-all absolute top-3.5 left-10","bg-zinc-200")},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:60,columnNumber:13},void 0)]},l,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:17,columnNumber:9},void 0)})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:12,columnNumber:3},void 0),z1=({onClose:r})=>v.jsxDEV("div",{className:"flex flex-col items-center gap-4 py-4 text-center",children:[v.jsxDEV("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:v.jsxDEV("svg",{className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",children:v.jsxDEV("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:5,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:4,columnNumber:7},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:3,columnNumber:5},void 0),v.jsxDEV("div",{children:[v.jsxDEV("h3",{className:"text-base font-semibold text-gray-800",children:"Cadastro concluído!"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:15,columnNumber:7},void 0),v.jsxDEV("p",{className:"text-sm text-zinc-500 mt-1",children:"Você já pode aproveitar os benefícios de farmácia."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:18,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:14,columnNumber:5},void 0),v.jsxDEV("button",{onClick:r,className:"cursor-pointer mt-2 rounded-lg bg-(--primary-color) px-6 py-2.5 text-sm font-semibold text-white hover:bg-(--primary-color)/80 transition-all",children:"Fechar"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:22,columnNumber:5},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:2,columnNumber:3},void 0),k1=({ID:r})=>{const{modal:n,setModal:l}=nn(),{securityNumber:s}=Jt(),{resetForm:o,step:f,setStep:d}=sn(),[h,y]=ge.useState(!1),p=()=>{l({id:"",open:!1}),setTimeout(()=>{d(0),y(!1),o()},300)},x=()=>d(f+1),N=()=>d(f-1),C=s.replace(/\D/g,""),S=[v.jsxDEV(_1,{securityNumber:C,onNext:x},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:36,columnNumber:5},void 0),v.jsxDEV(E1,{securityNumber:C,onNext:x,onBack:N},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:37,columnNumber:5},void 0),v.jsxDEV(w1,{securityNumber:C,onNext:x,onBack:N},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:42,columnNumber:5},void 0),v.jsxDEV(A1,{securityNumber:C,onNext:x,onBack:N},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:47,columnNumber:5},void 0),v.jsxDEV(R1,{securityNumber:C,onBack:N,onDone:()=>y(!0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:52,columnNumber:5},void 0)];return v.jsxDEV("main",{className:st("fixed inset-0 flex items-center justify-end z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":n.id===r&&n.open,"opacity-0 pointer-events-none":n.id!==r||!n.open}),children:[v.jsxDEV("div",{className:"absolute inset-0",onClick:p},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:69,columnNumber:7},void 0),v.jsxDEV("section",{className:"z-10 bg-white flex flex-col p-6 rounded-2xl w-full max-w-125 min-w-125 mx-4 shadow-xl max-h-[90vh] overflow-y-auto",children:[v.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[v.jsxDEV(qn,{textSize:"18px",textAlign:"start",children:h?"Tudo pronto!":"Benefício de Farmácia"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:73,columnNumber:11},void 0),v.jsxDEV("button",{onClick:p,className:"flex h-7 w-7 cursor-pointer items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-all",children:v.jsxDEV("svg",{className:"h-4 w-4",viewBox:"0 0 14 14",fill:"none",children:v.jsxDEV("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:81,columnNumber:15},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:80,columnNumber:13},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:76,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:72,columnNumber:9},void 0),!h&&v.jsxDEV(M1,{current:f},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:91,columnNumber:19},void 0),h?v.jsxDEV(z1,{onClose:p},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:93,columnNumber:17},void 0):S[f]]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:71,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:60,columnNumber:5},void 0)},j1=r=>r===void 0?"":"?"+Object.keys(r).map(n=>n+"="+r[n]).join("&");function V1(r){const{setState:n}=Jt();return v.jsxDEV("a",{...r,target:r.target||"_self",href:typeof r.href=="string"?r.href:r.href.pathname+j1(r.href.param),className:st("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors flex items-center justify-center",r.className),style:{backgroundColor:"var(--pbm-primary)"},onMouseOver:l=>l.currentTarget.style.backgroundColor="var(--pbm-secondary)",onMouseOut:l=>l.currentTarget.style.backgroundColor="var(--pbm-primary)","data-testid":"test_id_link",id:"link_pbm",onClick:()=>n("isEmpty"),children:r.children},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Link/index.tsx",lineNumber:18,columnNumber:5},this)}const B1=({ID:r})=>{const{customLoginUrl:n}=Jt(),{modal:l,setModal:s}=nn();return v.jsxDEV("main",{className:st("fixed inset-0 flex items-center justify-center z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":l.id===r&&l.open,"opacity-0 pointer-events-none":l.id!=r||!l.open}),children:[v.jsxDEV("div",{className:"absolute inset-0",onClick:()=>s({id:"",open:!1})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:23,columnNumber:7},void 0),v.jsxDEV("section",{className:"z-10 bg-white gap-2 flex-col items-center-safe justify-center-safe p-8 rounded-xl",children:[v.jsxDEV(qn,{textColor:"tomato",textSize:"18px",textAlign:"center",className:"mb-2",children:"Opa! Parece que você não está Logado"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:28,columnNumber:9},void 0),v.jsxDEV(ys,{className:"mb-2",textAlign:"center",children:["Para aproveitar os benefícios é necessário realizar o"," ",v.jsxDEV("strong",{children:"Login"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:38,columnNumber:11},void 0)," ou ",v.jsxDEV("strong",{children:"Cadastro"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:38,columnNumber:37},void 0)," no site!"]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:36,columnNumber:9},void 0),v.jsxDEV("section",{className:"flex items-center-safe justify-center-safe gap-4",children:[v.jsxDEV(Wa,{className:"bg-gray-600 hover:bg-gray-500",onClick:()=>s({id:"",open:!1}),children:"Seguir sem Benefícios"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:41,columnNumber:11},void 0),v.jsxDEV(V1,{href:n||"/login",children:"Aproveitar Benefícios"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:47,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:40,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:27,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:14,columnNumber:5},void 0)};function dh(r){var n,l,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(n=0;n<o;n++)r[n]&&(l=dh(r[n]))&&(s&&(s+=" "),s+=l)}else for(l in r)r[l]&&(s&&(s+=" "),s+=l);return s}function mh(){for(var r,n,l=0,s="",o=arguments.length;l<o;l++)(r=arguments[l])&&(n=dh(r))&&(s&&(s+=" "),s+=n);return s}function U1(r,n,l=void 0){const s={};for(const o in r){const f=r[o];let d="",h=!0;for(let y=0;y<f.length;y+=1){const p=f[y];p&&(d+=(h===!0?"":" ")+n(p),h=!1,l&&l[p]&&(d+=" "+l[p]))}s[o]=d}return s}function on(r,...n){const l=new URL(`https://mui.com/production-error/?code=${r}`);return n.forEach(s=>l.searchParams.append("args[]",s)),`Minified MUI error #${r}; visit ${l} for the full message.`}const L1="$$material";function $u(){return $u=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var l=arguments[n];for(var s in l)({}).hasOwnProperty.call(l,s)&&(r[s]=l[s])}return r},$u.apply(null,arguments)}function q1(r){if(r.sheet)return r.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===r)return document.styleSheets[n]}function H1(r){var n=document.createElement("style");return n.setAttribute("data-emotion",r.key),r.nonce!==void 0&&n.setAttribute("nonce",r.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var G1=(function(){function r(l){var s=this;this._insertTag=function(o){var f;s.tags.length===0?s.insertionPoint?f=s.insertionPoint.nextSibling:s.prepend?f=s.container.firstChild:f=s.before:f=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(o,f),s.tags.push(o)},this.isSpeedy=l.speedy===void 0?!1:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var n=r.prototype;return n.hydrate=function(s){s.forEach(this._insertTag)},n.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(H1(this));var o=this.tags[this.tags.length-1];{var f=s.charCodeAt(0)===64&&s.charCodeAt(1)===105;f&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
84
+ `+s+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!f}if(this.isSpeedy){var d=q1(o);try{d.insertRule(s,d.cssRules.length)}catch(h){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(s)||console.error('There was a problem inserting the following rule: "'+s+'"',h)}}else o.appendChild(document.createTextNode(s));this.ctr++},n.flush=function(){this.tags.forEach(function(s){var o;return(o=s.parentNode)==null?void 0:o.removeChild(s)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},r})(),Zt="-ms-",vs="-moz-",Ge="-webkit-",Fu="comm",Qu="rule",Xu="decl",Z1="@import",hh="@keyframes",Y1="@layer",$1=Math.abs,xs=String.fromCharCode,F1=Object.assign;function Q1(r,n){return zt(r,0)^45?(((n<<2^zt(r,0))<<2^zt(r,1))<<2^zt(r,2))<<2^zt(r,3):0}function ph(r){return r.trim()}function X1(r,n){return(r=n.exec(r))?r[0]:r}function Ze(r,n,l){return r.replace(n,l)}function Ku(r,n){return r.indexOf(n)}function zt(r,n){return r.charCodeAt(n)|0}function Ii(r,n,l){return r.slice(n,l)}function Ga(r){return r.length}function Ju(r){return r.length}function Ns(r,n){return n.push(r),r}function K1(r,n){return r.map(n).join("")}var Ss=1,Hn=1,gh=0,Pt=0,_t=0,Gn="";function _s(r,n,l,s,o,f,d){return{value:r,root:n,parent:l,type:s,props:o,children:f,line:Ss,column:Hn,length:d,return:""}}function Pi(r,n){return F1(_s("",null,null,"",null,null,0),r,{length:-r.length},n)}function J1(){return _t}function I1(){return _t=Pt>0?zt(Gn,--Pt):0,Hn--,_t===10&&(Hn=1,Ss--),_t}function sa(){return _t=Pt<gh?zt(Gn,Pt++):0,Hn++,_t===10&&(Hn=1,Ss++),_t}function Za(){return zt(Gn,Pt)}function Cs(){return Pt}function Wi(r,n){return Ii(Gn,r,n)}function el(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function yh(r){return Ss=Hn=1,gh=Ga(Gn=r),Pt=0,[]}function bh(r){return Gn="",r}function Es(r){return ph(Wi(Pt-1,Iu(r===91?r+2:r===40?r+1:r)))}function P1(r){for(;(_t=Za())&&_t<33;)sa();return el(r)>2||el(_t)>3?"":" "}function W1(r,n){for(;--n&&sa()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return Wi(r,Cs()+(n<6&&Za()==32&&sa()==32))}function Iu(r){for(;sa();)switch(_t){case r:return Pt;case 34:case 39:r!==34&&r!==39&&Iu(_t);break;case 40:r===41&&Iu(r);break;case 92:sa();break}return Pt}function ex(r,n){for(;sa()&&r+_t!==57;)if(r+_t===84&&Za()===47)break;return"/*"+Wi(n,Pt-1)+"*"+xs(r===47?r:sa())}function tx(r){for(;!el(Za());)sa();return Wi(r,Pt)}function ax(r){return bh(ws("",null,null,null,[""],r=yh(r),0,[0],r))}function ws(r,n,l,s,o,f,d,h,y){for(var p=0,x=0,N=d,C=0,S=0,k=0,w=1,q=1,te=1,Q=0,le="",I=o,B=f,K=s,ne=le;q;)switch(k=Q,Q=sa()){case 40:if(k!=108&&zt(ne,N-1)==58){Ku(ne+=Ze(Es(Q),"&","&\f"),"&\f")!=-1&&(te=-1);break}case 34:case 39:case 91:ne+=Es(Q);break;case 9:case 10:case 13:case 32:ne+=P1(k);break;case 92:ne+=W1(Cs()-1,7);continue;case 47:switch(Za()){case 42:case 47:Ns(rx(ex(sa(),Cs()),n,l),y);break;default:ne+="/"}break;case 123*w:h[p++]=Ga(ne)*te;case 125*w:case 59:case 0:switch(Q){case 0:case 125:q=0;case 59+x:te==-1&&(ne=Ze(ne,/\f/g,"")),S>0&&Ga(ne)-N&&Ns(S>32?xh(ne+";",s,l,N-1):xh(Ze(ne," ","")+";",s,l,N-2),y);break;case 59:ne+=";";default:if(Ns(K=vh(ne,n,l,p,x,o,h,le,I=[],B=[],N),f),Q===123)if(x===0)ws(ne,n,K,K,I,f,N,h,B);else switch(C===99&&zt(ne,3)===110?100:C){case 100:case 108:case 109:case 115:ws(r,K,K,s&&Ns(vh(r,K,K,0,0,o,h,le,o,I=[],N),B),o,B,N,h,s?I:B);break;default:ws(ne,K,K,K,[""],B,0,h,B)}}p=x=S=0,w=te=1,le=ne="",N=d;break;case 58:N=1+Ga(ne),S=k;default:if(w<1){if(Q==123)--w;else if(Q==125&&w++==0&&I1()==125)continue}switch(ne+=xs(Q),Q*w){case 38:te=x>0?1:(ne+="\f",-1);break;case 44:h[p++]=(Ga(ne)-1)*te,te=1;break;case 64:Za()===45&&(ne+=Es(sa())),C=Za(),x=N=Ga(le=ne+=tx(Cs())),Q++;break;case 45:k===45&&Ga(ne)==2&&(w=0)}}return f}function vh(r,n,l,s,o,f,d,h,y,p,x){for(var N=o-1,C=o===0?f:[""],S=Ju(C),k=0,w=0,q=0;k<s;++k)for(var te=0,Q=Ii(r,N+1,N=$1(w=d[k])),le=r;te<S;++te)(le=ph(w>0?C[te]+" "+Q:Ze(Q,/&\f/g,C[te])))&&(y[q++]=le);return _s(r,n,l,o===0?Qu:h,y,p,x)}function rx(r,n,l){return _s(r,n,l,Fu,xs(J1()),Ii(r,2,-2),0)}function xh(r,n,l,s){return _s(r,n,l,Xu,Ii(r,0,s),Ii(r,s+1,-1),s)}function Zn(r,n){for(var l="",s=Ju(r),o=0;o<s;o++)l+=n(r[o],o,r,n)||"";return l}function nx(r,n,l,s){switch(r.type){case Y1:if(r.children.length)break;case Z1:case Xu:return r.return=r.return||r.value;case Fu:return"";case hh:return r.return=r.value+"{"+Zn(r.children,s)+"}";case Qu:r.value=r.props.join(",")}return Ga(l=Zn(r.children,s))?r.return=r.value+"{"+l+"}":""}function ix(r){var n=Ju(r);return function(l,s,o,f){for(var d="",h=0;h<n;h++)d+=r[h](l,s,o,f)||"";return d}}function Nh(r){var n=Object.create(null);return function(l){return n[l]===void 0&&(n[l]=r(l)),n[l]}}var lx=function(n,l,s){for(var o=0,f=0;o=f,f=Za(),o===38&&f===12&&(l[s]=1),!el(f);)sa();return Wi(n,Pt)},sx=function(n,l){var s=-1,o=44;do switch(el(o)){case 0:o===38&&Za()===12&&(l[s]=1),n[s]+=lx(Pt-1,l,s);break;case 2:n[s]+=Es(o);break;case 4:if(o===44){n[++s]=Za()===58?"&\f":"",l[s]=n[s].length;break}default:n[s]+=xs(o)}while(o=sa());return n},ox=function(n,l){return bh(sx(yh(n),l))},Sh=new WeakMap,ux=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var l=n.value,s=n.parent,o=n.column===s.column&&n.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(n.props.length===1&&l.charCodeAt(0)!==58&&!Sh.get(s))&&!o){Sh.set(n,!0);for(var f=[],d=ox(l,f),h=s.props,y=0,p=0;y<d.length;y++)for(var x=0;x<h.length;x++,p++)n.props[p]=f[y]?d[y].replace(/&\f/g,h[x]):h[x]+" "+d[y]}}},cx=function(n){if(n.type==="decl"){var l=n.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(n.return="",n.value="")}},fx="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",dx=function(n){return n.type==="comm"&&n.children.indexOf(fx)>-1},mx=function(n){return function(l,s,o){if(!(l.type!=="rule"||n.compat)){var f=l.value.match(/(:first|:nth|:nth-last)-child/g);if(f){for(var d=!!l.parent,h=d?l.parent.children:o,y=h.length-1;y>=0;y--){var p=h[y];if(p.line<l.line)break;if(p.column<l.column){if(dx(p))return;break}}f.forEach(function(x){console.error('The pseudo class "'+x+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+x.split("-child")[0]+'-of-type".')})}}}},_h=function(n){return n.type.charCodeAt(1)===105&&n.type.charCodeAt(0)===64},hx=function(n,l){for(var s=n-1;s>=0;s--)if(!_h(l[s]))return!0;return!1},Ch=function(n){n.type="",n.value="",n.return="",n.children="",n.props=""},px=function(n,l,s){_h(n)&&(n.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ch(n)):hx(l,s)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ch(n)))};function Eh(r,n){switch(Q1(r,n)){case 5103:return Ge+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ge+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+r+vs+r+Zt+r+r;case 6828:case 4268:return Ge+r+Zt+r+r;case 6165:return Ge+r+Zt+"flex-"+r+r;case 5187:return Ge+r+Ze(r,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+Zt+"flex-$1$2")+r;case 5443:return Ge+r+Zt+"flex-item-"+Ze(r,/flex-|-self/,"")+r;case 4675:return Ge+r+Zt+"flex-line-pack"+Ze(r,/align-content|flex-|-self/,"")+r;case 5548:return Ge+r+Zt+Ze(r,"shrink","negative")+r;case 5292:return Ge+r+Zt+Ze(r,"basis","preferred-size")+r;case 6060:return Ge+"box-"+Ze(r,"-grow","")+Ge+r+Zt+Ze(r,"grow","positive")+r;case 4554:return Ge+Ze(r,/([^-])(transform)/g,"$1"+Ge+"$2")+r;case 6187:return Ze(Ze(Ze(r,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),r,"")+r;case 5495:case 3959:return Ze(r,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return Ze(Ze(r,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+Zt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+r+r;case 4095:case 3583:case 4068:case 2532:return Ze(r,/(.+)-inline(.+)/,Ge+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ga(r)-1-n>6)switch(zt(r,n+1)){case 109:if(zt(r,n+4)!==45)break;case 102:return Ze(r,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+vs+(zt(r,n+3)==108?"$3":"$2-$3"))+r;case 115:return~Ku(r,"stretch")?Eh(Ze(r,"stretch","fill-available"),n)+r:r}break;case 4949:if(zt(r,n+1)!==115)break;case 6444:switch(zt(r,Ga(r)-3-(~Ku(r,"!important")&&10))){case 107:return Ze(r,":",":"+Ge)+r;case 101:return Ze(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(zt(r,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+Zt+"$2box$3")+r}break;case 5936:switch(zt(r,n+11)){case 114:return Ge+r+Zt+Ze(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return Ge+r+Zt+Ze(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return Ge+r+Zt+Ze(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return Ge+r+Zt+r+r}return r}var gx=function(n,l,s,o){if(n.length>-1&&!n.return)switch(n.type){case Xu:n.return=Eh(n.value,n.length);break;case hh:return Zn([Pi(n,{value:Ze(n.value,"@","@"+Ge)})],o);case Qu:if(n.length)return K1(n.props,function(f){switch(X1(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zn([Pi(n,{props:[Ze(f,/:(read-\w+)/,":"+vs+"$1")]})],o);case"::placeholder":return Zn([Pi(n,{props:[Ze(f,/:(plac\w+)/,":"+Ge+"input-$1")]}),Pi(n,{props:[Ze(f,/:(plac\w+)/,":"+vs+"$1")]}),Pi(n,{props:[Ze(f,/:(plac\w+)/,Zt+"input-$1")]})],o)}return""})}},yx=[gx],Pu;{var bx=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Pu=function(n){var l=n.match(bx);if(l)return l[l.length-1]}}var vx=function(n){var l=n.key;if(!l)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
85
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(l==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(w){var q=w.getAttribute("data-emotion");q.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=n.stylisPlugins||yx;if(/[^a-z-]/.test(l))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+l+'" was passed');var f={},d,h=[];d=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(w){for(var q=w.getAttribute("data-emotion").split(" "),te=1;te<q.length;te++)f[q[te]]=!0;h.push(w)});var y,p=[ux,cx];p.push(mx({get compat(){return k.compat}}),px);{var x,N=[nx,function(w){w.root||(w.return?x.insert(w.return):w.value&&w.type!==Fu&&x.insert(w.value+"{}"))}],C=ix(p.concat(o,N)),S=function(q){return Zn(ax(q),C)};y=function(q,te,Q,le){if(x=Q,Pu){var I=Pu(te.styles);I&&(x={insert:function(K){Q.insert(K+I)}})}S(q?q+"{"+te.styles+"}":te.styles),le&&(k.inserted[te.name]=!0)}}var k={key:l,sheet:new G1({key:l,container:d,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:f,registered:{},insert:y};return k.sheet.hydrate(h),k},Wu={exports:{}},Fe={};/** @license React v16.13.1
78
86
  * react-is.production.min.js
79
87
  *
80
88
  * Copyright (c) Facebook, Inc. and its affiliates.
81
89
  *
82
90
  * This source code is licensed under the MIT license found in the
83
91
  * LICENSE file in the root directory of this source tree.
84
- */var Hh;function B1(){if(Hh)return $e;Hh=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,_=n?Symbol.for("react.forward_ref"):60112,b=n?Symbol.for("react.suspense"):60113,C=n?Symbol.for("react.suspense_list"):60120,N=n?Symbol.for("react.memo"):60115,U=n?Symbol.for("react.lazy"):60116,E=n?Symbol.for("react.block"):60121,q=n?Symbol.for("react.fundamental"):60117,P=n?Symbol.for("react.responder"):60118,F=n?Symbol.for("react.scope"):60119;function ae(B){if(typeof B=="object"&&B!==null){var Q=B.$$typeof;switch(Q){case r:switch(B=B.type,B){case y:case p:case s:case f:case u:case b:return B;default:switch(B=B&&B.$$typeof,B){case h:case _:case U:case N:case d:return B;default:return Q}}case i:return Q}}}function W(B){return ae(B)===p}return $e.AsyncMode=y,$e.ConcurrentMode=p,$e.ContextConsumer=h,$e.ContextProvider=d,$e.Element=r,$e.ForwardRef=_,$e.Fragment=s,$e.Lazy=U,$e.Memo=N,$e.Portal=i,$e.Profiler=f,$e.StrictMode=u,$e.Suspense=b,$e.isAsyncMode=function(B){return W(B)||ae(B)===y},$e.isConcurrentMode=W,$e.isContextConsumer=function(B){return ae(B)===h},$e.isContextProvider=function(B){return ae(B)===d},$e.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===r},$e.isForwardRef=function(B){return ae(B)===_},$e.isFragment=function(B){return ae(B)===s},$e.isLazy=function(B){return ae(B)===U},$e.isMemo=function(B){return ae(B)===N},$e.isPortal=function(B){return ae(B)===i},$e.isProfiler=function(B){return ae(B)===f},$e.isStrictMode=function(B){return ae(B)===u},$e.isSuspense=function(B){return ae(B)===b},$e.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===s||B===p||B===f||B===u||B===b||B===C||typeof B=="object"&&B!==null&&(B.$$typeof===U||B.$$typeof===N||B.$$typeof===d||B.$$typeof===h||B.$$typeof===_||B.$$typeof===q||B.$$typeof===P||B.$$typeof===F||B.$$typeof===E)},$e.typeOf=ae,$e}var Gh;function L1(){return Gh||(Gh=1,gc.exports=B1()),gc.exports}var yc,Zh;function V1(){if(Zh)return yc;Zh=1;var n=L1(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=s,f[n.Memo]=u;function d(U){return n.isMemo(U)?u:f[U.$$typeof]||r}var h=Object.defineProperty,y=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,_=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,C=Object.prototype;function N(U,E,q){if(typeof E!="string"){if(C){var P=b(E);P&&P!==C&&N(U,P,q)}var F=y(E);p&&(F=F.concat(p(E)));for(var ae=d(U),W=d(E),B=0;B<F.length;++B){var Q=F[B];if(!i[Q]&&!(q&&q[Q])&&!(W&&W[Q])&&!(ae&&ae[Q])){var K=_(E,Q);try{h(U,Q,K)}catch{}}}}return U}return yc=N,yc}V1();var q1=!0;function vc(n,r,i){var s="";return i.split(" ").forEach(function(u){n[u]!==void 0?r.push(n[u]+";"):u&&(s+=u+" ")}),s}var Ys=function(r,i,s){var u=r.key+"-"+i.name;(s===!1||q1===!1)&&r.registered[u]===void 0&&(r.registered[u]=i.styles)},$s=function(r,i,s){Ys(r,i,s);var u=r.key+"-"+i.name;if(r.inserted[i.name]===void 0){var f=i;do r.insert(i===f?"."+u:"",f,r.sheet,!0),f=f.next;while(f!==void 0)}};function H1(n){for(var r=0,i,s=0,u=n.length;u>=4;++s,u-=4)i=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(n.charCodeAt(s+2)&255)<<16;case 2:r^=(n.charCodeAt(s+1)&255)<<8;case 1:r^=n.charCodeAt(s)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var G1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Z1=!0,Yh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
92
+ */var wh;function xx(){if(wh)return Fe;wh=1;var r=typeof Symbol=="function"&&Symbol.for,n=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,f=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,h=r?Symbol.for("react.context"):60110,y=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,x=r?Symbol.for("react.forward_ref"):60112,N=r?Symbol.for("react.suspense"):60113,C=r?Symbol.for("react.suspense_list"):60120,S=r?Symbol.for("react.memo"):60115,k=r?Symbol.for("react.lazy"):60116,w=r?Symbol.for("react.block"):60121,q=r?Symbol.for("react.fundamental"):60117,te=r?Symbol.for("react.responder"):60118,Q=r?Symbol.for("react.scope"):60119;function le(B){if(typeof B=="object"&&B!==null){var K=B.$$typeof;switch(K){case n:switch(B=B.type,B){case y:case p:case s:case f:case o:case N:return B;default:switch(B=B&&B.$$typeof,B){case h:case x:case k:case S:case d:return B;default:return K}}case l:return K}}}function I(B){return le(B)===p}return Fe.AsyncMode=y,Fe.ConcurrentMode=p,Fe.ContextConsumer=h,Fe.ContextProvider=d,Fe.Element=n,Fe.ForwardRef=x,Fe.Fragment=s,Fe.Lazy=k,Fe.Memo=S,Fe.Portal=l,Fe.Profiler=f,Fe.StrictMode=o,Fe.Suspense=N,Fe.isAsyncMode=function(B){return I(B)||le(B)===y},Fe.isConcurrentMode=I,Fe.isContextConsumer=function(B){return le(B)===h},Fe.isContextProvider=function(B){return le(B)===d},Fe.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===n},Fe.isForwardRef=function(B){return le(B)===x},Fe.isFragment=function(B){return le(B)===s},Fe.isLazy=function(B){return le(B)===k},Fe.isMemo=function(B){return le(B)===S},Fe.isPortal=function(B){return le(B)===l},Fe.isProfiler=function(B){return le(B)===f},Fe.isStrictMode=function(B){return le(B)===o},Fe.isSuspense=function(B){return le(B)===N},Fe.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===s||B===p||B===f||B===o||B===N||B===C||typeof B=="object"&&B!==null&&(B.$$typeof===k||B.$$typeof===S||B.$$typeof===d||B.$$typeof===h||B.$$typeof===x||B.$$typeof===q||B.$$typeof===te||B.$$typeof===Q||B.$$typeof===w)},Fe.typeOf=le,Fe}var Dh;function Nx(){return Dh||(Dh=1,Wu.exports=xx()),Wu.exports}var ec,Ah;function Sx(){if(Ah)return ec;Ah=1;var r=Nx(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[r.ForwardRef]=s,f[r.Memo]=o;function d(k){return r.isMemo(k)?o:f[k.$$typeof]||n}var h=Object.defineProperty,y=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,x=Object.getOwnPropertyDescriptor,N=Object.getPrototypeOf,C=Object.prototype;function S(k,w,q){if(typeof w!="string"){if(C){var te=N(w);te&&te!==C&&S(k,te,q)}var Q=y(w);p&&(Q=Q.concat(p(w)));for(var le=d(k),I=d(w),B=0;B<Q.length;++B){var K=Q[B];if(!l[K]&&!(q&&q[K])&&!(I&&I[K])&&!(le&&le[K])){var ne=x(w,K);try{h(k,K,ne)}catch{}}}}return k}return ec=S,ec}Sx();var _x=!0;function tc(r,n,l){var s="";return l.split(" ").forEach(function(o){r[o]!==void 0?n.push(r[o]+";"):o&&(s+=o+" ")}),s}var Ds=function(n,l,s){var o=n.key+"-"+l.name;(s===!1||_x===!1)&&n.registered[o]===void 0&&(n.registered[o]=l.styles)},As=function(n,l,s){Ds(n,l,s);var o=n.key+"-"+l.name;if(n.inserted[l.name]===void 0){var f=l;do n.insert(l===f?"."+o:"",f,n.sheet,!0),f=f.next;while(f!==void 0)}};function Cx(r){for(var n=0,l,s=0,o=r.length;o>=4;++s,o-=4)l=r.charCodeAt(s)&255|(r.charCodeAt(++s)&255)<<8|(r.charCodeAt(++s)&255)<<16|(r.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,n=(l&65535)*1540483477+((l>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(r.charCodeAt(s+2)&255)<<16;case 2:n^=(r.charCodeAt(s+1)&255)<<8;case 1:n^=r.charCodeAt(s)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var Ex={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},wx=!0,Th=`You have illegal escape sequence in your template literal, most likely inside content's property value.
85
93
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
86
94
  You can read more about this here:
87
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Y1="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",$1=/[A-Z]|^ms/g,$h=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bc=function(r){return r.charCodeAt(1)===45},Qh=function(r){return r!=null&&typeof r!="boolean"},_c=jh(function(n){return bc(n)?n:n.replace($1,"-$&").toLowerCase()}),Qs=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace($h,function(s,u,f){return en={name:u,styles:f,next:en},u})}return G1[r]!==1&&!bc(r)&&typeof i=="number"&&i!==0?i+"px":i};{var Q1=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,X1=["normal","none","initial","inherit","unset"],F1=Qs,K1=/^-ms-/,J1=/-(.)/g,Xh={};Qs=function(r,i){if(r==="content"&&(typeof i!="string"||X1.indexOf(i)===-1&&!Q1.test(i)&&(i.charAt(0)!==i.charAt(i.length-1)||i.charAt(0)!=='"'&&i.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+i+"\"'`");var s=F1(r,i);return s!==""&&!bc(r)&&r.indexOf("-")!==-1&&Xh[r]===void 0&&(Xh[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(K1,"ms-").replace(J1,function(u,f){return f.toUpperCase()})+"?")),s}}var Fh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function yi(n,r,i){if(i==null)return"";var s=i;if(s.__emotion_styles!==void 0){if(String(s)==="NO_COMPONENT_SELECTOR")throw new Error(Fh);return s}switch(typeof i){case"boolean":return"";case"object":{var u=i;if(u.anim===1)return en={name:u.name,styles:u.styles,next:en},u.name;var f=i;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)en={name:d.name,styles:d.styles,next:en},d=d.next;var h=f.styles+";";return h}return P1(n,r,i)}case"function":{if(n!==void 0){var y=en,p=i(n);return en=y,yi(n,r,p)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":{var _=[],b=i.replace($h,function(U,E,q){var P="animation"+_.length;return _.push("const "+P+" = keyframes`"+q.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+P+"}"});_.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(_,["`"+b+"`"]).join(`
95
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Dx="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ax=/[A-Z]|^ms/g,Oh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ac=function(n){return n.charCodeAt(1)===45},Rh=function(n){return n!=null&&typeof n!="boolean"},rc=Nh(function(r){return ac(r)?r:r.replace(Ax,"-$&").toLowerCase()}),Ts=function(n,l){switch(n){case"animation":case"animationName":if(typeof l=="string")return l.replace(Oh,function(s,o,f){return Ya={name:o,styles:f,next:Ya},o})}return Ex[n]!==1&&!ac(n)&&typeof l=="number"&&l!==0?l+"px":l};{var Tx=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Ox=["normal","none","initial","inherit","unset"],Rx=Ts,Mx=/^-ms-/,zx=/-(.)/g,Mh={};Ts=function(n,l){if(n==="content"&&(typeof l!="string"||Ox.indexOf(l)===-1&&!Tx.test(l)&&(l.charAt(0)!==l.charAt(l.length-1)||l.charAt(0)!=='"'&&l.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+l+"\"'`");var s=Rx(n,l);return s!==""&&!ac(n)&&n.indexOf("-")!==-1&&Mh[n]===void 0&&(Mh[n]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+n.replace(Mx,"ms-").replace(zx,function(o,f){return f.toUpperCase()})+"?")),s}}var zh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function tl(r,n,l){if(l==null)return"";var s=l;if(s.__emotion_styles!==void 0){if(String(s)==="NO_COMPONENT_SELECTOR")throw new Error(zh);return s}switch(typeof l){case"boolean":return"";case"object":{var o=l;if(o.anim===1)return Ya={name:o.name,styles:o.styles,next:Ya},o.name;var f=l;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)Ya={name:d.name,styles:d.styles,next:Ya},d=d.next;var h=f.styles+";";return h}return kx(r,n,l)}case"function":{if(r!==void 0){var y=Ya,p=l(r);return Ya=y,tl(r,n,p)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":{var x=[],N=l.replace(Oh,function(k,w,q){var te="animation"+x.length;return x.push("const "+te+" = keyframes`"+q.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+te+"}"});x.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(x,["`"+N+"`"]).join(`
88
96
  `)+`
89
97
 
90
98
  You should wrap it with \`css\` like this:
91
99
 
92
- css\``+b+"`")}break}var C=i;if(r==null)return C;var N=r[C];return N!==void 0?N:C}function P1(n,r,i){var s="";if(Array.isArray(i))for(var u=0;u<i.length;u++)s+=yi(n,r,i[u])+";";else for(var f in i){var d=i[f];if(typeof d!="object"){var h=d;r!=null&&r[h]!==void 0?s+=f+"{"+r[h]+"}":Qh(h)&&(s+=_c(f)+":"+Qs(f,h)+";")}else{if(f==="NO_COMPONENT_SELECTOR"&&Z1)throw new Error(Fh);if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var y=0;y<d.length;y++)Qh(d[y])&&(s+=_c(f)+":"+Qs(f,d[y])+";");else{var p=yi(n,r,d);switch(f){case"animation":case"animationName":{s+=_c(f)+":"+p+";";break}default:f==="undefined"&&console.error(Y1),s+=f+"{"+p+"}"}}}}return s}var Kh=/label:\s*([^\s;{]+)\s*(;|$)/g,en;function Er(n,r,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var s=!0,u="";en=void 0;var f=n[0];if(f==null||f.raw===void 0)s=!1,u+=yi(i,r,f);else{var d=f;d[0]===void 0&&console.error(Yh),u+=d[0]}for(var h=1;h<n.length;h++)if(u+=yi(i,r,n[h]),s){var y=f;y[h]===void 0&&console.error(Yh),u+=y[h]}Kh.lastIndex=0;for(var p="",_;(_=Kh.exec(u))!==null;)p+="-"+_[1];var b=H1(u)+p;{var C={name:b,styles:u,next:en,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};return C}}var I1=function(r){return r()},Jh=um.useInsertionEffect?um.useInsertionEffect:!1,Nc=Jh||I1,Ph=Jh||te.useLayoutEffect,Sc=te.createContext(typeof HTMLElement<"u"?j1({key:"css"}):null);Sc.displayName="EmotionCacheContext",Sc.Provider;var Xs=function(r){return te.forwardRef(function(i,s){var u=te.useContext(Sc);return r(i,u,s)})},bi=te.createContext({});bi.displayName="EmotionThemeContext";var xc={}.hasOwnProperty,Ih=function(r){var i=r.split(".");return i[i.length-1]},W1=function(r){var i=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);if(i||(i=/^([A-Za-z0-9$.]+)@/.exec(r),i))return Ih(i[1])},eN=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),tN=function(r){return r.replace(/\$/g,"-")},aN=function(r){if(r)for(var i=r.split(`
93
- `),s=0;s<i.length;s++){var u=W1(i[s]);if(u){if(eN.has(u))break;if(/^[A-Z]/.test(u))return tN(u)}}},Ec="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",nN=function(r,i){if(typeof i.css=="string"&&i.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+i.css+"`");var s={};for(var u in i)xc.call(i,u)&&(s[u]=i[u]);if(s[Ec]=r,typeof globalThis<"u"&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&i.css&&(typeof i.css!="object"||!("name"in i.css)||typeof i.css.name!="string"||i.css.name.indexOf("-")===-1)){var f=aN(new Error().stack);f&&(s[wc]=f)}return s},rN=function(r){var i=r.cache,s=r.serialized,u=r.isStringTag;return Ys(i,s,u),Nc(function(){return $s(i,s,u)}),null},Wh=Xs(function(n,r,i){var s=n.css;typeof s=="string"&&r.registered[s]!==void 0&&(s=r.registered[s]);var u=n[Ec],f=[s],d="";typeof n.className=="string"?d=vc(r.registered,f,n.className):n.className!=null&&(d=n.className+" ");var h=Er(f,void 0,te.useContext(bi));if(h.name.indexOf("-")===-1){var y=n[wc];y&&(h=Er([h,"label:"+y+";"]))}d+=r.key+"-"+h.name;var p={};for(var _ in n)xc.call(n,_)&&_!=="css"&&_!==Ec&&_!==wc&&(p[_]=n[_]);return p.className=d,i&&(p.ref=i),te.createElement(te.Fragment,null,te.createElement(rN,{cache:r,serialized:h,isStringTag:typeof u=="string"}),te.createElement(u,p))});Wh.displayName="EmotionCssPropInternal";var lN=Wh,ep=!0,iN={version:"11.14.0"},tp=function(r,i){var s=arguments;if(i==null||!xc.call(i,"css"))return te.createElement.apply(void 0,s);var u=s.length,f=new Array(u);f[0]=lN,f[1]=nN(r,i);for(var d=2;d<u;d++)f[d]=s[d];return te.createElement.apply(null,f)};(function(n){var r;r||(r=n.JSX||(n.JSX={}))})(tp||(tp={}));var ap=!1,sN=Xs(function(n,r){!ap&&("className"in n&&n.className||"css"in n&&n.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),ap=!0);var i=n.styles,s=Er([i],void 0,te.useContext(bi)),u=te.useRef();return Ph(function(){var f=r.key+"-global",d=new r.sheet.constructor({key:f,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),h=!1,y=document.querySelector('style[data-emotion="'+f+" "+s.name+'"]');return r.sheet.tags.length&&(d.before=r.sheet.tags[0]),y!==null&&(h=!0,y.setAttribute("data-emotion",f),d.hydrate([y])),u.current=[d,h],function(){d.flush()}},[r]),Ph(function(){var f=u.current,d=f[0],h=f[1];if(h){f[1]=!1;return}if(s.next!==void 0&&$s(r,s.next,!0),d.tags.length){var y=d.tags[d.tags.length-1].nextElementSibling;d.before=y,d.flush()}r.insert("",s,d,!1)},[r,s.name]),null});sN.displayName="EmotionGlobal";function Cc(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Er(r)}function np(){var n=Cc.apply(void 0,arguments),r="animation-"+n.name;return{name:r,styles:"@keyframes "+r+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var oN=function n(r){for(var i=r.length,s=0,u="";s<i;s++){var f=r[s];if(f!=null){var d=void 0;switch(typeof f){case"boolean":break;case"object":{if(Array.isArray(f))d=n(f);else{f.styles!==void 0&&f.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),d="";for(var h in f)f[h]&&h&&(d&&(d+=" "),d+=h)}break}default:d=f}d&&(u&&(u+=" "),u+=d)}}return u};function uN(n,r,i){var s=[],u=vc(n,s,i);return s.length<2?i:u+r(s)}var cN=function(r){var i=r.cache,s=r.serializedArr;return Nc(function(){for(var u=0;u<s.length;u++)$s(i,s[u],!1)}),null},fN=Xs(function(n,r){var i=!1,s=[],u=function(){if(i&&ep)throw new Error("css can only be used during render");for(var p=arguments.length,_=new Array(p),b=0;b<p;b++)_[b]=arguments[b];var C=Er(_,r.registered);return s.push(C),Ys(r,C,!1),r.key+"-"+C.name},f=function(){if(i&&ep)throw new Error("cx can only be used during render");for(var p=arguments.length,_=new Array(p),b=0;b<p;b++)_[b]=arguments[b];return uN(r.registered,u,oN(_))},d={css:u,cx:f,theme:te.useContext(bi)},h=n.children(d);return i=!0,te.createElement(te.Fragment,null,te.createElement(cN,{cache:r,serializedArr:s}),h)});fN.displayName="EmotionClassNames";{var rp=typeof document<"u",dN=typeof jest<"u"||typeof vi<"u";if(rp&&!dN){var lp=typeof globalThis<"u"?globalThis:rp?window:global,ip="__EMOTION_REACT_"+iN.version.split(".")[0]+"__";lp[ip]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),lp[ip]=!0}}var mN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hN=jh(function(n){return mN.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),pN=!0,gN=hN,yN=function(r){return r!=="theme"},sp=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?gN:yN},op=function(r,i,s){var u;if(i){var f=i.shouldForwardProp;u=r.__emotion_forwardProp&&f?function(d){return r.__emotion_forwardProp(d)&&f(d)}:f}return typeof u!="function"&&s&&(u=r.__emotion_forwardProp),u},up=`You have illegal escape sequence in your template literal, most likely inside content's property value.
100
+ css\``+N+"`")}break}var C=l;if(n==null)return C;var S=n[C];return S!==void 0?S:C}function kx(r,n,l){var s="";if(Array.isArray(l))for(var o=0;o<l.length;o++)s+=tl(r,n,l[o])+";";else for(var f in l){var d=l[f];if(typeof d!="object"){var h=d;n!=null&&n[h]!==void 0?s+=f+"{"+n[h]+"}":Rh(h)&&(s+=rc(f)+":"+Ts(f,h)+";")}else{if(f==="NO_COMPONENT_SELECTOR"&&wx)throw new Error(zh);if(Array.isArray(d)&&typeof d[0]=="string"&&(n==null||n[d[0]]===void 0))for(var y=0;y<d.length;y++)Rh(d[y])&&(s+=rc(f)+":"+Ts(f,d[y])+";");else{var p=tl(r,n,d);switch(f){case"animation":case"animationName":{s+=rc(f)+":"+p+";";break}default:f==="undefined"&&console.error(Dx),s+=f+"{"+p+"}"}}}}return s}var kh=/label:\s*([^\s;{]+)\s*(;|$)/g,Ya;function un(r,n,l){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var s=!0,o="";Ya=void 0;var f=r[0];if(f==null||f.raw===void 0)s=!1,o+=tl(l,n,f);else{var d=f;d[0]===void 0&&console.error(Th),o+=d[0]}for(var h=1;h<r.length;h++)if(o+=tl(l,n,r[h]),s){var y=f;y[h]===void 0&&console.error(Th),o+=y[h]}kh.lastIndex=0;for(var p="",x;(x=kh.exec(o))!==null;)p+="-"+x[1];var N=Cx(o)+p;{var C={name:N,styles:o,next:Ya,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};return C}}var jx=function(n){return n()},jh=Sm.useInsertionEffect?Sm.useInsertionEffect:!1,nc=jh||jx,Vh=jh||ge.useLayoutEffect,ic=ge.createContext(typeof HTMLElement<"u"?vx({key:"css"}):null);ic.displayName="EmotionCacheContext",ic.Provider;var Os=function(n){return ge.forwardRef(function(l,s){var o=ge.useContext(ic);return n(l,o,s)})},al=ge.createContext({});al.displayName="EmotionThemeContext";var lc={}.hasOwnProperty,Bh=function(n){var l=n.split(".");return l[l.length-1]},Vx=function(n){var l=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(n);if(l||(l=/^([A-Za-z0-9$.]+)@/.exec(n),l))return Bh(l[1])},Bx=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Ux=function(n){return n.replace(/\$/g,"-")},Lx=function(n){if(n)for(var l=n.split(`
101
+ `),s=0;s<l.length;s++){var o=Vx(l[s]);if(o){if(Bx.has(o))break;if(/^[A-Z]/.test(o))return Ux(o)}}},sc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",oc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",qx=function(n,l){if(typeof l.css=="string"&&l.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+l.css+"`");var s={};for(var o in l)lc.call(l,o)&&(s[o]=l[o]);if(s[sc]=n,typeof globalThis<"u"&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&l.css&&(typeof l.css!="object"||!("name"in l.css)||typeof l.css.name!="string"||l.css.name.indexOf("-")===-1)){var f=Lx(new Error().stack);f&&(s[oc]=f)}return s},Hx=function(n){var l=n.cache,s=n.serialized,o=n.isStringTag;return Ds(l,s,o),nc(function(){return As(l,s,o)}),null},Uh=Os(function(r,n,l){var s=r.css;typeof s=="string"&&n.registered[s]!==void 0&&(s=n.registered[s]);var o=r[sc],f=[s],d="";typeof r.className=="string"?d=tc(n.registered,f,r.className):r.className!=null&&(d=r.className+" ");var h=un(f,void 0,ge.useContext(al));if(h.name.indexOf("-")===-1){var y=r[oc];y&&(h=un([h,"label:"+y+";"]))}d+=n.key+"-"+h.name;var p={};for(var x in r)lc.call(r,x)&&x!=="css"&&x!==sc&&x!==oc&&(p[x]=r[x]);return p.className=d,l&&(p.ref=l),ge.createElement(ge.Fragment,null,ge.createElement(Hx,{cache:n,serialized:h,isStringTag:typeof o=="string"}),ge.createElement(o,p))});Uh.displayName="EmotionCssPropInternal";var Gx=Uh,Lh=!0,Zx={version:"11.14.0"},qh=function(n,l){var s=arguments;if(l==null||!lc.call(l,"css"))return ge.createElement.apply(void 0,s);var o=s.length,f=new Array(o);f[0]=Gx,f[1]=qx(n,l);for(var d=2;d<o;d++)f[d]=s[d];return ge.createElement.apply(null,f)};(function(r){var n;n||(n=r.JSX||(r.JSX={}))})(qh||(qh={}));var Hh=!1,Yx=Os(function(r,n){!Hh&&("className"in r&&r.className||"css"in r&&r.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Hh=!0);var l=r.styles,s=un([l],void 0,ge.useContext(al)),o=ge.useRef();return Vh(function(){var f=n.key+"-global",d=new n.sheet.constructor({key:f,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),h=!1,y=document.querySelector('style[data-emotion="'+f+" "+s.name+'"]');return n.sheet.tags.length&&(d.before=n.sheet.tags[0]),y!==null&&(h=!0,y.setAttribute("data-emotion",f),d.hydrate([y])),o.current=[d,h],function(){d.flush()}},[n]),Vh(function(){var f=o.current,d=f[0],h=f[1];if(h){f[1]=!1;return}if(s.next!==void 0&&As(n,s.next,!0),d.tags.length){var y=d.tags[d.tags.length-1].nextElementSibling;d.before=y,d.flush()}n.insert("",s,d,!1)},[n,s.name]),null});Yx.displayName="EmotionGlobal";function uc(){for(var r=arguments.length,n=new Array(r),l=0;l<r;l++)n[l]=arguments[l];return un(n)}function Gh(){var r=uc.apply(void 0,arguments),n="animation-"+r.name;return{name:n,styles:"@keyframes "+n+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var $x=function r(n){for(var l=n.length,s=0,o="";s<l;s++){var f=n[s];if(f!=null){var d=void 0;switch(typeof f){case"boolean":break;case"object":{if(Array.isArray(f))d=r(f);else{f.styles!==void 0&&f.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),d="";for(var h in f)f[h]&&h&&(d&&(d+=" "),d+=h)}break}default:d=f}d&&(o&&(o+=" "),o+=d)}}return o};function Fx(r,n,l){var s=[],o=tc(r,s,l);return s.length<2?l:o+n(s)}var Qx=function(n){var l=n.cache,s=n.serializedArr;return nc(function(){for(var o=0;o<s.length;o++)As(l,s[o],!1)}),null},Xx=Os(function(r,n){var l=!1,s=[],o=function(){if(l&&Lh)throw new Error("css can only be used during render");for(var p=arguments.length,x=new Array(p),N=0;N<p;N++)x[N]=arguments[N];var C=un(x,n.registered);return s.push(C),Ds(n,C,!1),n.key+"-"+C.name},f=function(){if(l&&Lh)throw new Error("cx can only be used during render");for(var p=arguments.length,x=new Array(p),N=0;N<p;N++)x[N]=arguments[N];return Fx(n.registered,o,$x(x))},d={css:o,cx:f,theme:ge.useContext(al)},h=r.children(d);return l=!0,ge.createElement(ge.Fragment,null,ge.createElement(Qx,{cache:n,serializedArr:s}),h)});Xx.displayName="EmotionClassNames";{var Zh=typeof document<"u",Kx=typeof jest<"u"||typeof vi<"u";if(Zh&&!Kx){var Yh=typeof globalThis<"u"?globalThis:Zh?window:global,$h="__EMOTION_REACT_"+Zx.version.split(".")[0]+"__";Yh[$h]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Yh[$h]=!0}}var Jx=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ix=Nh(function(r){return Jx.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),Px=!0,Wx=Ix,eN=function(n){return n!=="theme"},Fh=function(n){return typeof n=="string"&&n.charCodeAt(0)>96?Wx:eN},Qh=function(n,l,s){var o;if(l){var f=l.shouldForwardProp;o=n.__emotion_forwardProp&&f?function(d){return n.__emotion_forwardProp(d)&&f(d)}:f}return typeof o!="function"&&s&&(o=n.__emotion_forwardProp),o},Xh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
94
102
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
95
103
  You can read more about this here:
96
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,vN=function(r){var i=r.cache,s=r.serialized,u=r.isStringTag;return Ys(i,s,u),Nc(function(){return $s(i,s,u)}),null},bN=function n(r,i){if(r===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
97
- You may have forgotten to import it.`);var s=r.__emotion_real===r,u=s&&r.__emotion_base||r,f,d;i!==void 0&&(f=i.label,d=i.target);var h=op(r,i,s),y=h||sp(u),p=!y("as");return function(){var _=arguments,b=s&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(f!==void 0&&b.push("label:"+f+";"),_[0]==null||_[0].raw===void 0)b.push.apply(b,_);else{var C=_[0];C[0]===void 0&&console.error(up),b.push(C[0]);for(var N=_.length,U=1;U<N;U++)C[U]===void 0&&console.error(up),b.push(_[U],C[U])}var E=Xs(function(q,P,F){var ae=p&&q.as||u,W="",B=[],Q=q;if(q.theme==null){Q={};for(var K in q)Q[K]=q[K];Q.theme=te.useContext(bi)}typeof q.className=="string"?W=vc(P.registered,B,q.className):q.className!=null&&(W=q.className+" ");var Se=Er(b.concat(B),P.registered,Q);W+=P.key+"-"+Se.name,d!==void 0&&(W+=" "+d);var ze=p&&h===void 0?sp(ae):y,Ie={};for(var ye in q)p&&ye==="as"||ze(ye)&&(Ie[ye]=q[ye]);return Ie.className=W,F&&(Ie.ref=F),te.createElement(te.Fragment,null,te.createElement(vN,{cache:P,serialized:Se,isStringTag:typeof ae=="string"}),te.createElement(ae,Ie))});return E.displayName=f!==void 0?f:"Styled("+(typeof u=="string"?u:u.displayName||u.name||"Component")+")",E.defaultProps=r.defaultProps,E.__emotion_real=E,E.__emotion_base=u,E.__emotion_styles=b,E.__emotion_forwardProp=h,Object.defineProperty(E,"toString",{value:function(){return d===void 0&&pN?"NO_COMPONENT_SELECTOR":"."+d}}),E.withComponent=function(q,P){var F=n(q,oc({},i,P,{shouldForwardProp:op(E,P,!0)}));return F.apply(void 0,b)},E}},_N=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ac=bN.bind(null);_N.forEach(function(n){Ac[n]=Ac(n)});var Tc={exports:{}},_i={};/**
104
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,tN=function(n){var l=n.cache,s=n.serialized,o=n.isStringTag;return Ds(l,s,o),nc(function(){return As(l,s,o)}),null},aN=function r(n,l){if(n===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
105
+ You may have forgotten to import it.`);var s=n.__emotion_real===n,o=s&&n.__emotion_base||n,f,d;l!==void 0&&(f=l.label,d=l.target);var h=Qh(n,l,s),y=h||Fh(o),p=!y("as");return function(){var x=arguments,N=s&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(f!==void 0&&N.push("label:"+f+";"),x[0]==null||x[0].raw===void 0)N.push.apply(N,x);else{var C=x[0];C[0]===void 0&&console.error(Xh),N.push(C[0]);for(var S=x.length,k=1;k<S;k++)C[k]===void 0&&console.error(Xh),N.push(x[k],C[k])}var w=Os(function(q,te,Q){var le=p&&q.as||o,I="",B=[],K=q;if(q.theme==null){K={};for(var ne in q)K[ne]=q[ne];K.theme=ge.useContext(al)}typeof q.className=="string"?I=tc(te.registered,B,q.className):q.className!=null&&(I=q.className+" ");var de=un(N.concat(B),te.registered,K);I+=te.key+"-"+de.name,d!==void 0&&(I+=" "+d);var we=p&&h===void 0?Fh(le):y,Ue={};for(var _e in q)p&&_e==="as"||we(_e)&&(Ue[_e]=q[_e]);return Ue.className=I,Q&&(Ue.ref=Q),ge.createElement(ge.Fragment,null,ge.createElement(tN,{cache:te,serialized:de,isStringTag:typeof le=="string"}),ge.createElement(le,Ue))});return w.displayName=f!==void 0?f:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",w.defaultProps=n.defaultProps,w.__emotion_real=w,w.__emotion_base=o,w.__emotion_styles=N,w.__emotion_forwardProp=h,Object.defineProperty(w,"toString",{value:function(){return d===void 0&&Px?"NO_COMPONENT_SELECTOR":"."+d}}),w.withComponent=function(q,te){var Q=r(q,$u({},l,te,{shouldForwardProp:Qh(w,te,!0)}));return Q.apply(void 0,N)},w}},rN=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],cc=aN.bind(null);rN.forEach(function(r){cc[r]=cc(r)});var fc={exports:{}},rl={};/**
98
106
  * @license React
99
107
  * react-jsx-runtime.production.js
100
108
  *
@@ -102,7 +110,7 @@ You may have forgotten to import it.`);var s=r.__emotion_real===r,u=s&&r.__emoti
102
110
  *
103
111
  * This source code is licensed under the MIT license found in the
104
112
  * LICENSE file in the root directory of this source tree.
105
- */var cp;function NN(){if(cp)return _i;cp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return _i.Fragment=r,_i.jsx=i,_i.jsxs=i,_i}var fp;function SN(){return fp||(fp=1,Tc.exports=NN()),Tc.exports}var xN=SN();function EN(n,r){return Ac(n,r)}function wN(n,r){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=r(n.__emotion_styles))}const dp=[];function wr(n){return dp[0]=n,Er(dp)}var Rc={exports:{}},Pe={};/**
113
+ */var Kh;function nN(){if(Kh)return rl;Kh=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function l(s,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var h in o)h!=="key"&&(f[h]=o[h])}else f=o;return o=f.ref,{$$typeof:r,type:s,key:d,ref:o!==void 0?o:null,props:f}}return rl.Fragment=n,rl.jsx=l,rl.jsxs=l,rl}var Jh;function iN(){return Jh||(Jh=1,fc.exports=nN()),fc.exports}var lN=iN();function sN(r,n){return cc(r,n)}function oN(r,n){Array.isArray(r.__emotion_styles)&&(r.__emotion_styles=n(r.__emotion_styles))}const Ih=[];function cn(r){return Ih[0]=r,un(Ih)}var dc={exports:{}},We={};/**
106
114
  * @license React
107
115
  * react-is.production.js
108
116
  *
@@ -110,14 +118,14 @@ You may have forgotten to import it.`);var s=r.__emotion_real===r,u=s&&r.__emoti
110
118
  *
111
119
  * This source code is licensed under the MIT license found in the
112
120
  * LICENSE file in the root directory of this source tree.
113
- */var mp;function CN(){if(mp)return Pe;mp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),N=Symbol.for("react.client.reference");function U(E){if(typeof E=="object"&&E!==null){var q=E.$$typeof;switch(q){case n:switch(E=E.type,E){case i:case u:case s:case y:case p:case C:return E;default:switch(E=E&&E.$$typeof,E){case d:case h:case b:case _:return E;case f:return E;default:return q}}case r:return q}}}return Pe.ContextConsumer=f,Pe.ContextProvider=d,Pe.Element=n,Pe.ForwardRef=h,Pe.Fragment=i,Pe.Lazy=b,Pe.Memo=_,Pe.Portal=r,Pe.Profiler=u,Pe.StrictMode=s,Pe.Suspense=y,Pe.SuspenseList=p,Pe.isContextConsumer=function(E){return U(E)===f},Pe.isContextProvider=function(E){return U(E)===d},Pe.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===n},Pe.isForwardRef=function(E){return U(E)===h},Pe.isFragment=function(E){return U(E)===i},Pe.isLazy=function(E){return U(E)===b},Pe.isMemo=function(E){return U(E)===_},Pe.isPortal=function(E){return U(E)===r},Pe.isProfiler=function(E){return U(E)===u},Pe.isStrictMode=function(E){return U(E)===s},Pe.isSuspense=function(E){return U(E)===y},Pe.isSuspenseList=function(E){return U(E)===p},Pe.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===i||E===u||E===s||E===y||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===b||E.$$typeof===_||E.$$typeof===d||E.$$typeof===f||E.$$typeof===h||E.$$typeof===N||E.getModuleId!==void 0)},Pe.typeOf=U,Pe}var hp;function AN(){return hp||(hp=1,Rc.exports=CN()),Rc.exports}var pp=AN();function mn(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function gp(n){if(te.isValidElement(n)||pp.isValidElementType(n)||!mn(n))return n;const r={};return Object.keys(n).forEach(i=>{r[i]=gp(n[i])}),r}function pa(n,r,i={clone:!0}){const s=i.clone?{...n}:n;return mn(n)&&mn(r)&&Object.keys(r).forEach(u=>{te.isValidElement(r[u])||pp.isValidElementType(r[u])?s[u]=r[u]:mn(r[u])&&Object.prototype.hasOwnProperty.call(n,u)&&mn(n[u])?s[u]=pa(n[u],r[u],i):i.clone?s[u]=mn(r[u])?gp(r[u]):r[u]:s[u]=r[u]}),s}const TN=n=>{const r=Object.keys(n).map(i=>({key:i,val:n[i]}))||[];return r.sort((i,s)=>i.val-s.val),r.reduce((i,s)=>({...i,[s.key]:s.val}),{})};function RN(n){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:s=5,...u}=n,f=TN(r),d=Object.keys(f);function h(C){return`@media (min-width:${typeof r[C]=="number"?r[C]:C}${i})`}function y(C){return`@media (max-width:${(typeof r[C]=="number"?r[C]:C)-s/100}${i})`}function p(C,N){const U=d.indexOf(N);return`@media (min-width:${typeof r[C]=="number"?r[C]:C}${i}) and (max-width:${(U!==-1&&typeof r[d[U]]=="number"?r[d[U]]:N)-s/100}${i})`}function _(C){return d.indexOf(C)+1<d.length?p(C,d[d.indexOf(C)+1]):h(C)}function b(C){const N=d.indexOf(C);return N===0?h(d[1]):N===d.length-1?y(d[N]):p(C,d[d.indexOf(C)+1]).replace("@media","@media not all and")}return{keys:d,values:f,up:h,down:y,between:p,only:_,not:b,unit:i,...u}}function yp(n,r){if(!n.containerQueries)return r;const i=Object.keys(r).filter(s=>s.startsWith("@container")).sort((s,u)=>{var d,h;const f=/min-width:\s*([0-9.]+)/;return+(((d=s.match(f))==null?void 0:d[1])||0)-+(((h=u.match(f))==null?void 0:h[1])||0)});return i.length?i.reduce((s,u)=>{const f=r[u];return delete s[u],s[u]=f,s},{...r}):r}function ON(n,r){return r==="@"||r.startsWith("@")&&(n.some(i=>r.startsWith(`@${i}`))||!!r.match(/^@\d/))}function zN(n,r){const i=r.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,s,u]=i,f=Number.isNaN(+s)?s||0:+s;return n.containerQueries(u).up(f)}function kN(n){const r=(f,d)=>f.replace("@media",d?`@container ${d}`:"@container");function i(f,d){f.up=(...h)=>r(n.breakpoints.up(...h),d),f.down=(...h)=>r(n.breakpoints.down(...h),d),f.between=(...h)=>r(n.breakpoints.between(...h),d),f.only=(...h)=>r(n.breakpoints.only(...h),d),f.not=(...h)=>{const y=r(n.breakpoints.not(...h),d);return y.includes("not all and")?y.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):y}}const s={},u=f=>(i(s,f),s);return i(u),{...n,containerQueries:u}}const DN={borderRadius:4};function Ni(n,r){return r?pa(n,r,{clone:!1}):n}const Fs={xs:0,sm:600,md:900,lg:1200,xl:1536},vp={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${Fs[n]}px)`},MN={containerQueries:n=>({up:r=>{let i=typeof r=="number"?r:Fs[r]||r;return typeof i=="number"&&(i=`${i}px`),n?`@container ${n} (min-width:${i})`:`@container (min-width:${i})`}})};function hn(n,r,i){const s=n.theme||{};if(Array.isArray(r)){const f=s.breakpoints||vp;return r.reduce((d,h,y)=>(d[f.up(f.keys[y])]=i(r[y]),d),{})}if(typeof r=="object"){const f=s.breakpoints||vp;return Object.keys(r).reduce((d,h)=>{if(ON(f.keys,h)){const y=zN(s.containerQueries?s:MN,h);y&&(d[y]=i(r[h],h))}else if(Object.keys(f.values||Fs).includes(h)){const y=f.up(h);d[y]=i(r[h],h)}else{const y=h;d[y]=r[y]}return d},{})}return i(r)}function UN(n={}){var i;return((i=n.keys)==null?void 0:i.reduce((s,u)=>{const f=n.up(u);return s[f]={},s},{}))||{}}function bp(n,r){return n.reduce((i,s)=>{const u=i[s];return(!u||Object.keys(u).length===0)&&delete i[s],i},r)}function _p(n){if(typeof n!="string")throw new Error(xr(7));return n.charAt(0).toUpperCase()+n.slice(1)}function Ks(n,r,i=!0){if(!r||typeof r!="string")return null;if(n&&n.vars&&i){const s=`vars.${r}`.split(".").reduce((u,f)=>u&&u[f]?u[f]:null,n);if(s!=null)return s}return r.split(".").reduce((s,u)=>s&&s[u]!=null?s[u]:null,n)}function Js(n,r,i,s=i){let u;return typeof n=="function"?u=n(i):Array.isArray(n)?u=n[i]||s:u=Ks(n,i)||s,r&&(u=r(u,s,n)),u}function vt(n){const{prop:r,cssProperty:i=n.prop,themeKey:s,transform:u}=n,f=d=>{if(d[r]==null)return null;const h=d[r],y=d.theme,p=Ks(y,s)||{};return hn(d,h,b=>{let C=Js(p,u,b);return b===C&&typeof b=="string"&&(C=Js(p,u,`${r}${b==="default"?"":_p(b)}`,b)),i===!1?C:{[i]:C}})};return f.propTypes={},f.filterProps=[r],f}function jN(n){const r={};return i=>(r[i]===void 0&&(r[i]=n(i)),r[i])}const BN={m:"margin",p:"padding"},LN={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Np={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},VN=jN(n=>{if(n.length>2)if(Np[n])n=Np[n];else return[n];const[r,i]=n.split(""),s=BN[r],u=LN[i]||"";return Array.isArray(u)?u.map(f=>s+f):[s+u]}),Oc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Oc,...zc];function Si(n,r,i,s){const u=Ks(n,r,!0)??i;return typeof u=="number"||typeof u=="string"?f=>typeof f=="string"?f:typeof u=="string"?u.startsWith("var(")&&f===0?0:u.startsWith("var(")&&f===1?u:`calc(${f} * ${u})`:u*f:Array.isArray(u)?f=>{if(typeof f=="string")return f;const d=Math.abs(f),h=u[d];return f>=0?h:typeof h=="number"?-h:typeof h=="string"&&h.startsWith("var(")?`calc(-1 * ${h})`:`-${h}`}:typeof u=="function"?u:()=>{}}function kc(n){return Si(n,"spacing",8)}function xi(n,r){return typeof r=="string"||r==null?r:n(r)}function qN(n,r){return i=>n.reduce((s,u)=>(s[u]=xi(r,i),s),{})}function HN(n,r,i,s){if(!r.includes(i))return null;const u=VN(i),f=qN(u,s),d=n[i];return hn(n,d,f)}function Sp(n,r){const i=kc(n.theme);return Object.keys(n).map(s=>HN(n,r,s,i)).reduce(Ni,{})}function mt(n){return Sp(n,Oc)}mt.propTypes={},mt.filterProps=Oc;function ht(n){return Sp(n,zc)}ht.propTypes={},ht.filterProps=zc;function xp(n=8,r=kc({spacing:n})){if(n.mui)return n;const i=(...s)=>(s.length===0?[1]:s).map(f=>{const d=r(f);return typeof d=="number"?`${d}px`:d}).join(" ");return i.mui=!0,i}function Ps(...n){const r=n.reduce((s,u)=>(u.filterProps.forEach(f=>{s[f]=u}),s),{}),i=s=>Object.keys(s).reduce((u,f)=>r[f]?Ni(u,r[f](s)):u,{});return i.propTypes={},i.filterProps=n.reduce((s,u)=>s.concat(u.filterProps),[]),i}function Aa(n){return typeof n!="number"?n:`${n}px solid`}function Ta(n,r){return vt({prop:n,themeKey:"borders",transform:r})}const GN=Ta("border",Aa),ZN=Ta("borderTop",Aa),YN=Ta("borderRight",Aa),$N=Ta("borderBottom",Aa),QN=Ta("borderLeft",Aa),XN=Ta("borderColor"),FN=Ta("borderTopColor"),KN=Ta("borderRightColor"),JN=Ta("borderBottomColor"),PN=Ta("borderLeftColor"),IN=Ta("outline",Aa),WN=Ta("outlineColor"),Is=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const r=Si(n.theme,"shape.borderRadius",4),i=s=>({borderRadius:xi(r,s)});return hn(n,n.borderRadius,i)}return null};Is.propTypes={},Is.filterProps=["borderRadius"],Ps(GN,ZN,YN,$N,QN,XN,FN,KN,JN,PN,Is,IN,WN);const Ws=n=>{if(n.gap!==void 0&&n.gap!==null){const r=Si(n.theme,"spacing",8),i=s=>({gap:xi(r,s)});return hn(n,n.gap,i)}return null};Ws.propTypes={},Ws.filterProps=["gap"];const eo=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const r=Si(n.theme,"spacing",8),i=s=>({columnGap:xi(r,s)});return hn(n,n.columnGap,i)}return null};eo.propTypes={},eo.filterProps=["columnGap"];const to=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const r=Si(n.theme,"spacing",8),i=s=>({rowGap:xi(r,s)});return hn(n,n.rowGap,i)}return null};to.propTypes={},to.filterProps=["rowGap"];const eS=vt({prop:"gridColumn"}),tS=vt({prop:"gridRow"}),aS=vt({prop:"gridAutoFlow"}),nS=vt({prop:"gridAutoColumns"}),rS=vt({prop:"gridAutoRows"}),lS=vt({prop:"gridTemplateColumns"}),iS=vt({prop:"gridTemplateRows"}),sS=vt({prop:"gridTemplateAreas"}),oS=vt({prop:"gridArea"});Ps(Ws,eo,to,eS,tS,aS,nS,rS,lS,iS,sS,oS);function sl(n,r){return r==="grey"?r:n}const uS=vt({prop:"color",themeKey:"palette",transform:sl}),cS=vt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sl}),fS=vt({prop:"backgroundColor",themeKey:"palette",transform:sl});Ps(uS,cS,fS);function ga(n){return n<=1&&n!==0?`${n*100}%`:n}const dS=vt({prop:"width",transform:ga}),Dc=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const r=i=>{var u,f,d,h,y;const s=((d=(f=(u=n.theme)==null?void 0:u.breakpoints)==null?void 0:f.values)==null?void 0:d[i])||Fs[i];return s?((y=(h=n.theme)==null?void 0:h.breakpoints)==null?void 0:y.unit)!=="px"?{maxWidth:`${s}${n.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:ga(i)}};return hn(n,n.maxWidth,r)}return null};Dc.filterProps=["maxWidth"];const mS=vt({prop:"minWidth",transform:ga}),hS=vt({prop:"height",transform:ga}),pS=vt({prop:"maxHeight",transform:ga}),gS=vt({prop:"minHeight",transform:ga});vt({prop:"size",cssProperty:"width",transform:ga}),vt({prop:"size",cssProperty:"height",transform:ga});const yS=vt({prop:"boxSizing"});Ps(dS,Dc,mS,hS,pS,gS,yS);const ao={border:{themeKey:"borders",transform:Aa},borderTop:{themeKey:"borders",transform:Aa},borderRight:{themeKey:"borders",transform:Aa},borderBottom:{themeKey:"borders",transform:Aa},borderLeft:{themeKey:"borders",transform:Aa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Aa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Is},color:{themeKey:"palette",transform:sl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sl},backgroundColor:{themeKey:"palette",transform:sl},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:mt},mt:{style:mt},mr:{style:mt},mb:{style:mt},ml:{style:mt},mx:{style:mt},my:{style:mt},margin:{style:mt},marginTop:{style:mt},marginRight:{style:mt},marginBottom:{style:mt},marginLeft:{style:mt},marginX:{style:mt},marginY:{style:mt},marginInline:{style:mt},marginInlineStart:{style:mt},marginInlineEnd:{style:mt},marginBlock:{style:mt},marginBlockStart:{style:mt},marginBlockEnd:{style:mt},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ws},rowGap:{style:to},columnGap:{style:eo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ga},maxWidth:{style:Dc},minWidth:{transform:ga},height:{transform:ga},maxHeight:{transform:ga},minHeight:{transform:ga},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vS(...n){const r=n.reduce((s,u)=>s.concat(Object.keys(u)),[]),i=new Set(r);return n.every(s=>i.size===Object.keys(s).length)}function bS(n,r){return typeof n=="function"?n(r):n}function _S(){function n(i,s,u,f){const d={[i]:s,theme:u},h=f[i];if(!h)return{[i]:s};const{cssProperty:y=i,themeKey:p,transform:_,style:b}=h;if(s==null)return null;if(p==="typography"&&s==="inherit")return{[i]:s};const C=Ks(u,p)||{};return b?b(d):hn(d,s,U=>{let E=Js(C,_,U);return U===E&&typeof U=="string"&&(E=Js(C,_,`${i}${U==="default"?"":_p(U)}`,U)),y===!1?E:{[y]:E}})}function r(i){const{sx:s,theme:u={},nested:f}=i||{};if(!s)return null;const d=u.unstable_sxConfig??ao;function h(y){let p=y;if(typeof y=="function")p=y(u);else if(typeof y!="object")return y;if(!p)return null;const _=UN(u.breakpoints),b=Object.keys(_);let C=_;return Object.keys(p).forEach(N=>{const U=bS(p[N],u);if(U!=null)if(typeof U=="object")if(d[N])C=Ni(C,n(N,U,u,d));else{const E=hn({theme:u},U,q=>({[N]:q}));vS(E,U)?C[N]=r({sx:U,theme:u,nested:!0}):C=Ni(C,E)}else C=Ni(C,n(N,U,u,d))}),!f&&u.modularCssLayers?{"@layer sx":yp(u,bp(b,C))}:yp(u,bp(b,C))}return Array.isArray(s)?s.map(h):h(s)}return r}const ol=_S();ol.filterProps=["sx"];function NS(n,r){var s;const i=this;if(i.vars){if(!((s=i.colorSchemes)!=null&&s[n])||typeof i.getColorSchemeSelector!="function")return{};let u=i.getColorSchemeSelector(n);return u==="&"?r:((u.includes("data-")||u.includes("."))&&(u=`*:where(${u.replace(/\s*&$/,"")}) &`),{[u]:r})}return i.palette.mode===n?r:{}}function Ep(n={},...r){const{breakpoints:i={},palette:s={},spacing:u,shape:f={},...d}=n,h=RN(i),y=xp(u);let p=pa({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:y,shape:{...DN,...f}},d);return p=kN(p),p.applyStyles=NS,p=r.reduce((_,b)=>pa(_,b),p),p.unstable_sxConfig={...ao,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(b){return ol({sx:b,theme:this})},p}const wp=n=>n,SS=(()=>{let n=wp;return{configure(r){n=r},generate(r){return n(r)},reset(){n=wp}}})(),xS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Cp(n,r,i="Mui"){const s=xS[r];return s?`${i}-${s}`:`${SS.generate(n)}-${r}`}function ES(n,r,i="Mui"){const s={};return r.forEach(u=>{s[u]=Cp(n,u,i)}),s}function Ap(n){const{variants:r,...i}=n,s={variants:r,style:wr(i),isProcessed:!0};return s.style===i||r&&r.forEach(u=>{typeof u.style!="function"&&(u.style=wr(u.style))}),s}const wS=Ep();function Mc(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function Cr(n,r){return r&&n&&typeof n=="object"&&n.styles&&!n.styles.startsWith("@layer")&&(n.styles=`@layer ${r}{${String(n.styles)}}`),n}function CS(n){return n?(r,i)=>i[n]:null}function AS(n,r,i){n.theme=OS(n.theme)?i:n.theme[r]||n.theme}function no(n,r,i){const s=typeof r=="function"?r(n):r;if(Array.isArray(s))return s.flatMap(u=>no(n,u,i));if(Array.isArray(s==null?void 0:s.variants)){let u;if(s.isProcessed)u=i?Cr(s.style,i):s.style;else{const{variants:f,...d}=s;u=i?Cr(wr(d),i):d}return Tp(n,s.variants,[u],i)}return s!=null&&s.isProcessed?i?Cr(wr(s.style),i):s.style:i?Cr(wr(s),i):s}function Tp(n,r,i=[],s=void 0){var f;let u;e:for(let d=0;d<r.length;d+=1){const h=r[d];if(typeof h.props=="function"){if(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),!h.props(u))continue}else for(const y in h.props)if(n[y]!==h.props[y]&&((f=n.ownerState)==null?void 0:f[y])!==h.props[y])continue e;typeof h.style=="function"?(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),i.push(s?Cr(wr(h.style(u)),s):h.style(u))):i.push(s?Cr(wr(h.style),s):h.style)}return i}function TS(n={}){const{themeId:r,defaultTheme:i=wS,rootShouldForwardProp:s=Mc,slotShouldForwardProp:u=Mc}=n;function f(h){AS(h,r,i)}return(h,y={})=>{wN(h,Q=>Q.filter(K=>K!==ol));const{name:p,slot:_,skipVariantsResolver:b,skipSx:C,overridesResolver:N=CS(kS(_)),...U}=y,E=p&&p.startsWith("Mui")||_?"components":"custom",q=b!==void 0?b:_&&_!=="Root"&&_!=="root"||!1,P=C||!1;let F=Mc;_==="Root"||_==="root"?F=s:_?F=u:zS(h)&&(F=void 0);const ae=EN(h,{shouldForwardProp:F,label:RS(),...U}),W=Q=>{if(Q.__emotion_real===Q)return Q;if(typeof Q=="function")return function(Se){return no(Se,Q,Se.theme.modularCssLayers?E:void 0)};if(mn(Q)){const K=Ap(Q);return function(ze){return K.variants?no(ze,K,ze.theme.modularCssLayers?E:void 0):ze.theme.modularCssLayers?Cr(K.style,E):K.style}}return Q},B=(...Q)=>{const K=[],Se=Q.map(W),ze=[];if(K.push(f),p&&N&&ze.push(function(Y){var X,se;const ie=(se=(X=Y.theme.components)==null?void 0:X[p])==null?void 0:se.styleOverrides;if(!ie)return null;const R={};for(const Te in ie)R[Te]=no(Y,ie[Te],Y.theme.modularCssLayers?"theme":void 0);return N(Y,R)}),p&&!q&&ze.push(function(Y){var R,X;const $=Y.theme,ie=(X=(R=$==null?void 0:$.components)==null?void 0:R[p])==null?void 0:X.variants;return ie?Tp(Y,ie,[],Y.theme.modularCssLayers?"theme":void 0):null}),P||ze.push(ol),Array.isArray(Se[0])){const v=Se.shift(),Y=new Array(K.length).fill(""),$=new Array(ze.length).fill("");let ie;ie=[...Y,...v,...$],ie.raw=[...Y,...v.raw,...$],K.unshift(ie)}const Ie=[...K,...Se,...ze],ye=ae(...Ie);return h.muiName&&(ye.muiName=h.muiName),ye};return ae.withConfig&&(B.withConfig=ae.withConfig),B}}function RS(n,r){return void 0}function OS(n){for(const r in n)return!1;return!0}function zS(n){return typeof n=="string"&&n.charCodeAt(0)>96}function kS(n){return n&&n.charAt(0).toLowerCase()+n.slice(1)}function Uc(n,r,i=!1){const s={...r};for(const u in n)if(Object.prototype.hasOwnProperty.call(n,u)){const f=u;if(f==="components"||f==="slots")s[f]={...n[f],...s[f]};else if(f==="componentsProps"||f==="slotProps"){const d=n[f],h=r[f];if(!h)s[f]=d||{};else if(!d)s[f]=h;else{s[f]={...h};for(const y in d)if(Object.prototype.hasOwnProperty.call(d,y)){const p=y;s[f][p]=Uc(d[p],h[p],i)}}}else f==="className"&&i&&r.className?s.className=Th(n==null?void 0:n.className,r==null?void 0:r.className):f==="style"&&i&&r.style?s.style={...n==null?void 0:n.style,...r==null?void 0:r.style}:s[f]===void 0&&(s[f]=n[f])}return s}function DS(n,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(n,i))}function jc(n,r=0,i=1){return DS(n,r,i)}function MS(n){n=n.slice(1);const r=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let i=n.match(r);return i&&i[0].length===1&&(i=i.map(s=>s+s)),i?`rgb${i.length===4?"a":""}(${i.map((s,u)=>u<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function Gn(n){if(n.type)return n;if(n.charAt(0)==="#")return Gn(MS(n));const r=n.indexOf("("),i=n.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(xr(9,n));let s=n.substring(r+1,n.length-1),u;if(i==="color"){if(s=s.split(" "),u=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(u))throw new Error(xr(10,u))}else s=s.split(",");return s=s.map(f=>parseFloat(f)),{type:i,values:s,colorSpace:u}}const US=n=>{const r=Gn(n);return r.values.slice(0,3).map((i,s)=>r.type.includes("hsl")&&s!==0?`${i}%`:i).join(" ")},Ei=(n,r)=>{try{return US(n)}catch{return n}};function ro(n){const{type:r,colorSpace:i}=n;let{values:s}=n;return r.includes("rgb")?s=s.map((u,f)=>f<3?parseInt(u,10):u):r.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),r.includes("color")?s=`${i} ${s.join(" ")}`:s=`${s.join(", ")}`,`${r}(${s})`}function Rp(n){n=Gn(n);const{values:r}=n,i=r[0],s=r[1]/100,u=r[2]/100,f=s*Math.min(u,1-u),d=(p,_=(p+i/30)%12)=>u-f*Math.max(Math.min(_-3,9-_,1),-1);let h="rgb";const y=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return n.type==="hsla"&&(h+="a",y.push(r[3])),ro({type:h,values:y})}function Bc(n){n=Gn(n);let r=n.type==="hsl"||n.type==="hsla"?Gn(Rp(n)).values:n.values;return r=r.map(i=>(n.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function jS(n,r){const i=Bc(n),s=Bc(r);return(Math.max(i,s)+.05)/(Math.min(i,s)+.05)}function Op(n,r){return n=Gn(n),r=jc(r),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${r}`:n.values[3]=r,ro(n)}function Ar(n,r,i){try{return Op(n,r)}catch{return n}}function lo(n,r){if(n=Gn(n),r=jc(r),n.type.includes("hsl"))n.values[2]*=1-r;else if(n.type.includes("rgb")||n.type.includes("color"))for(let i=0;i<3;i+=1)n.values[i]*=1-r;return ro(n)}function Qe(n,r,i){try{return lo(n,r)}catch{return n}}function io(n,r){if(n=Gn(n),r=jc(r),n.type.includes("hsl"))n.values[2]+=(100-n.values[2])*r;else if(n.type.includes("rgb"))for(let i=0;i<3;i+=1)n.values[i]+=(255-n.values[i])*r;else if(n.type.includes("color"))for(let i=0;i<3;i+=1)n.values[i]+=(1-n.values[i])*r;return ro(n)}function Xe(n,r,i){try{return io(n,r)}catch{return n}}function BS(n,r=.15){return Bc(n)>.5?lo(n,r):io(n,r)}function so(n,r,i){try{return BS(n,r)}catch{return n}}const LS=te.createContext(void 0);function VS(n){const{theme:r,name:i,props:s}=n;if(!r||!r.components||!r.components[i])return s;const u=r.components[i];return u.defaultProps?Uc(u.defaultProps,s,r.components.mergeClassNameAndStyle):!u.styleOverrides&&!u.variants?Uc(u,s,r.components.mergeClassNameAndStyle):s}function qS({props:n,name:r}){const i=te.useContext(LS);return VS({props:n,name:r,theme:{components:i}})}const zp={theme:void 0};function HS(n){let r,i;return function(u){let f=r;return(f===void 0||u.theme!==i)&&(zp.theme=u.theme,f=Ap(n(zp)),r=f,i=u.theme),f}}function GS(n=""){function r(...s){if(!s.length)return"";const u=s[0];return typeof u=="string"&&!u.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${n?`${n}-`:""}${u}${r(...s.slice(1))})`:`, ${u}`}return(s,...u)=>`var(--${n?`${n}-`:""}${s}${r(...u)})`}const kp=(n,r,i,s=[])=>{let u=n;r.forEach((f,d)=>{d===r.length-1?Array.isArray(u)?u[Number(f)]=i:u&&typeof u=="object"&&(u[f]=i):u&&typeof u=="object"&&(u[f]||(u[f]=s.includes(f)?[]:{}),u=u[f])})},ZS=(n,r,i)=>{function s(u,f=[],d=[]){Object.entries(u).forEach(([h,y])=>{(!i||i&&!i([...f,h]))&&y!=null&&(typeof y=="object"&&Object.keys(y).length>0?s(y,[...f,h],Array.isArray(y)?[...d,h]:d):r([...f,h],y,d))})}s(n)},YS=(n,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>n.includes(s))||n[n.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function Lc(n,r){const{prefix:i,shouldSkipGeneratingVar:s}=r||{},u={},f={},d={};return ZS(n,(h,y,p)=>{if((typeof y=="string"||typeof y=="number")&&(!s||!s(h,y))){const _=`--${i?`${i}-`:""}${h.join("-")}`,b=YS(h,y);Object.assign(u,{[_]:b}),kp(f,h,`var(${_})`,p),kp(d,h,`var(${_}, ${b})`,p)}},h=>h[0]==="vars"),{css:u,vars:f,varsWithDefaults:d}}function $S(n,r={}){const{getSelector:i=P,disableCssColorScheme:s,colorSchemeSelector:u,enableContrastVars:f}=r,{colorSchemes:d={},components:h,defaultColorScheme:y="light",...p}=n,{vars:_,css:b,varsWithDefaults:C}=Lc(p,r);let N=C;const U={},{[y]:E,...q}=d;if(Object.entries(q||{}).forEach(([W,B])=>{const{vars:Q,css:K,varsWithDefaults:Se}=Lc(B,r);N=pa(N,Se),U[W]={css:K,vars:Q}}),E){const{css:W,vars:B,varsWithDefaults:Q}=Lc(E,r);N=pa(N,Q),U[y]={css:W,vars:B}}function P(W,B){var K,Se;let Q=u;if(u==="class"&&(Q=".%s"),u==="data"&&(Q="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(Q=`[${u}="%s"]`),W){if(Q==="media")return n.defaultColorScheme===W?":root":{[`@media (prefers-color-scheme: ${((Se=(K=d[W])==null?void 0:K.palette)==null?void 0:Se.mode)||W})`]:{":root":B}};if(Q)return n.defaultColorScheme===W?`:root, ${Q.replace("%s",String(W))}`:Q.replace("%s",String(W))}return":root"}return{vars:N,generateThemeVars:()=>{let W={..._};return Object.entries(U).forEach(([,{vars:B}])=>{W=pa(W,B)}),W},generateStyleSheets:()=>{var ze,Ie;const W=[],B=n.defaultColorScheme||"light";function Q(ye,v){Object.keys(v).length&&W.push(typeof ye=="string"?{[ye]:{...v}}:ye)}Q(i(void 0,{...b}),b);const{[B]:K,...Se}=U;if(K){const{css:ye}=K,v=(Ie=(ze=d[B])==null?void 0:ze.palette)==null?void 0:Ie.mode,Y=!s&&v?{colorScheme:v,...ye}:{...ye};Q(i(B,{...Y}),Y)}return Object.entries(Se).forEach(([ye,{css:v}])=>{var ie,R;const Y=(R=(ie=d[ye])==null?void 0:ie.palette)==null?void 0:R.mode,$=!s&&Y?{colorScheme:Y,...v}:{...v};Q(i(ye,{...$}),$)}),f&&W.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),W}}}function QS(n){return function(i){return n==="media"?`@media (prefers-color-scheme: ${i})`:n?n.startsWith("data-")&&!n.includes("%s")?`[${n}="${i}"] &`:n==="class"?`.${i} &`:n==="data"?`[data-${i}] &`:`${n.replace("%s",i)} &`:"&"}}const wi={black:"#000",white:"#fff"},XS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ul={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},cl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ci={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},fl={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},dl={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ml={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Dp(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:wi.white,default:wi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Mp=Dp();function Up(){return{text:{primary:wi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:wi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Vc=Up();function jp(n,r,i,s){const u=s.light||s,f=s.dark||s*1.5;n[r]||(n.hasOwnProperty(i)?n[r]=n[i]:r==="light"?n.light=io(n.main,u):r==="dark"&&(n.dark=lo(n.main,f)))}function Bp(n,r,i,s,u){const f=u.light||u,d=u.dark||u*1.5;r[i]||(r.hasOwnProperty(s)?r[i]=r[s]:i==="light"?r.light=`color-mix(in ${n}, ${r.main}, #fff ${(f*100).toFixed(0)}%)`:i==="dark"&&(r.dark=`color-mix(in ${n}, ${r.main}, #000 ${(d*100).toFixed(0)}%)`))}function FS(n="light"){return n==="dark"?{main:fl[200],light:fl[50],dark:fl[400]}:{main:fl[700],light:fl[400],dark:fl[800]}}function KS(n="light"){return n==="dark"?{main:ul[200],light:ul[50],dark:ul[400]}:{main:ul[500],light:ul[300],dark:ul[700]}}function JS(n="light"){return n==="dark"?{main:cl[500],light:cl[300],dark:cl[700]}:{main:cl[700],light:cl[400],dark:cl[800]}}function PS(n="light"){return n==="dark"?{main:dl[400],light:dl[300],dark:dl[700]}:{main:dl[700],light:dl[500],dark:dl[900]}}function IS(n="light"){return n==="dark"?{main:ml[400],light:ml[300],dark:ml[700]}:{main:ml[800],light:ml[500],dark:ml[900]}}function WS(n="light"){return n==="dark"?{main:Ci[400],light:Ci[300],dark:Ci[700]}:{main:"#ed6c02",light:Ci[500],dark:Ci[900]}}function ex(n){return`oklch(from ${n} var(--__l) 0 h / var(--__a))`}function qc(n){const{mode:r="light",contrastThreshold:i=3,tonalOffset:s=.2,colorSpace:u,...f}=n,d=n.primary||FS(r),h=n.secondary||KS(r),y=n.error||JS(r),p=n.info||PS(r),_=n.success||IS(r),b=n.warning||WS(r);function C(q){return u?ex(q):jS(q,Vc.text.primary)>=i?Vc.text.primary:Mp.text.primary}const N=({color:q,name:P,mainShade:F=500,lightShade:ae=300,darkShade:W=700})=>{if(q={...q},!q.main&&q[F]&&(q.main=q[F]),!q.hasOwnProperty("main"))throw new Error(xr(11,P?` (${P})`:"",F));if(typeof q.main!="string")throw new Error(xr(12,P?` (${P})`:"",JSON.stringify(q.main)));return u?(Bp(u,q,"light",ae,s),Bp(u,q,"dark",W,s)):(jp(q,"light",ae,s),jp(q,"dark",W,s)),q.contrastText||(q.contrastText=C(q.main)),q};let U;return r==="light"?U=Dp():r==="dark"&&(U=Up()),pa({common:{...wi},mode:r,primary:N({color:d,name:"primary"}),secondary:N({color:h,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:N({color:y,name:"error"}),warning:N({color:b,name:"warning"}),info:N({color:p,name:"info"}),success:N({color:_,name:"success"}),grey:XS,contrastThreshold:i,getContrastText:C,augmentColor:N,tonalOffset:s,...U},f)}function tx(n){const r={};return Object.entries(n).forEach(s=>{const[u,f]=s;typeof f=="object"&&(r[u]=`${f.fontStyle?`${f.fontStyle} `:""}${f.fontVariant?`${f.fontVariant} `:""}${f.fontWeight?`${f.fontWeight} `:""}${f.fontStretch?`${f.fontStretch} `:""}${f.fontSize||""}${f.lineHeight?`/${f.lineHeight} `:""}${f.fontFamily||""}`)}),r}function ax(n,r){return{toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}},...r}}function nx(n){return Math.round(n*1e5)/1e5}const Lp={textTransform:"uppercase"},Vp='"Roboto", "Helvetica", "Arial", sans-serif';function rx(n,r){const{fontFamily:i=Vp,fontSize:s=14,fontWeightLight:u=300,fontWeightRegular:f=400,fontWeightMedium:d=500,fontWeightBold:h=700,htmlFontSize:y=16,allVariants:p,pxToRem:_,...b}=typeof r=="function"?r(n):r,C=s/14,N=_||(q=>`${q/y*C}rem`),U=(q,P,F,ae,W)=>({fontFamily:i,fontWeight:q,fontSize:N(P),lineHeight:F,...i===Vp?{letterSpacing:`${nx(ae/P)}em`}:{},...W,...p}),E={h1:U(u,96,1.167,-1.5),h2:U(u,60,1.2,-.5),h3:U(f,48,1.167,0),h4:U(f,34,1.235,.25),h5:U(f,24,1.334,0),h6:U(d,20,1.6,.15),subtitle1:U(f,16,1.75,.15),subtitle2:U(d,14,1.57,.1),body1:U(f,16,1.5,.15),body2:U(f,14,1.43,.15),button:U(d,14,1.75,.4,Lp),caption:U(f,12,1.66,.4),overline:U(f,12,2.66,1,Lp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pa({htmlFontSize:y,pxToRem:N,fontFamily:i,fontSize:s,fontWeightLight:u,fontWeightRegular:f,fontWeightMedium:d,fontWeightBold:h,...E},b,{clone:!1})}const lx=.2,ix=.14,sx=.12;function ct(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${lx})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${ix})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${sx})`].join(",")}const ox=["none",ct(0,2,1,-1,0,1,1,0,0,1,3,0),ct(0,3,1,-2,0,2,2,0,0,1,5,0),ct(0,3,3,-2,0,3,4,0,0,1,8,0),ct(0,2,4,-1,0,4,5,0,0,1,10,0),ct(0,3,5,-1,0,5,8,0,0,1,14,0),ct(0,3,5,-1,0,6,10,0,0,1,18,0),ct(0,4,5,-2,0,7,10,1,0,2,16,1),ct(0,5,5,-3,0,8,10,1,0,3,14,2),ct(0,5,6,-3,0,9,12,1,0,3,16,2),ct(0,6,6,-3,0,10,14,1,0,4,18,3),ct(0,6,7,-4,0,11,15,1,0,4,20,3),ct(0,7,8,-4,0,12,17,2,0,5,22,4),ct(0,7,8,-4,0,13,19,2,0,5,24,4),ct(0,7,9,-4,0,14,21,2,0,5,26,4),ct(0,8,9,-5,0,15,22,2,0,6,28,5),ct(0,8,10,-5,0,16,24,2,0,6,30,5),ct(0,8,11,-5,0,17,26,2,0,6,32,5),ct(0,9,11,-5,0,18,28,2,0,7,34,6),ct(0,9,12,-6,0,19,29,2,0,7,36,6),ct(0,10,13,-6,0,20,31,3,0,8,38,7),ct(0,10,13,-6,0,21,33,3,0,8,40,7),ct(0,10,14,-6,0,22,35,3,0,8,42,7),ct(0,11,14,-7,0,23,36,3,0,9,44,8),ct(0,11,15,-7,0,24,38,3,0,9,46,8)],ux={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},cx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qp(n){return`${Math.round(n)}ms`}function fx(n){if(!n)return 0;const r=n/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function dx(n){const r={...ux,...n.easing},i={...cx,...n.duration};return{getAutoHeightDuration:fx,create:(u=["all"],f={})=>{const{duration:d=i.standard,easing:h=r.easeInOut,delay:y=0,...p}=f;return(Array.isArray(u)?u:[u]).map(_=>`${_} ${typeof d=="string"?d:qp(d)} ${h} ${typeof y=="string"?y:qp(y)}`).join(",")},...n,easing:r,duration:i}}const mx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hx(n){return mn(n)||typeof n>"u"||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||Array.isArray(n)}function Hp(n={}){const r={...n};function i(s){const u=Object.entries(s);for(let f=0;f<u.length;f++){const[d,h]=u[f];!hx(h)||d.startsWith("unstable_")?delete s[d]:mn(h)&&(s[d]={...h},i(s[d]))}}return i(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
121
+ */var Ph;function uN(){if(Ph)return We;Ph=1;var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function k(w){if(typeof w=="object"&&w!==null){var q=w.$$typeof;switch(q){case r:switch(w=w.type,w){case l:case o:case s:case y:case p:case C:return w;default:switch(w=w&&w.$$typeof,w){case d:case h:case N:case x:return w;case f:return w;default:return q}}case n:return q}}}return We.ContextConsumer=f,We.ContextProvider=d,We.Element=r,We.ForwardRef=h,We.Fragment=l,We.Lazy=N,We.Memo=x,We.Portal=n,We.Profiler=o,We.StrictMode=s,We.Suspense=y,We.SuspenseList=p,We.isContextConsumer=function(w){return k(w)===f},We.isContextProvider=function(w){return k(w)===d},We.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===r},We.isForwardRef=function(w){return k(w)===h},We.isFragment=function(w){return k(w)===l},We.isLazy=function(w){return k(w)===N},We.isMemo=function(w){return k(w)===x},We.isPortal=function(w){return k(w)===n},We.isProfiler=function(w){return k(w)===o},We.isStrictMode=function(w){return k(w)===s},We.isSuspense=function(w){return k(w)===y},We.isSuspenseList=function(w){return k(w)===p},We.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===l||w===o||w===s||w===y||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===N||w.$$typeof===x||w.$$typeof===d||w.$$typeof===f||w.$$typeof===h||w.$$typeof===S||w.getModuleId!==void 0)},We.typeOf=k,We}var Wh;function cN(){return Wh||(Wh=1,dc.exports=uN()),dc.exports}var ep=cN();function er(r){if(typeof r!="object"||r===null)return!1;const n=Object.getPrototypeOf(r);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function tp(r){if(ge.isValidElement(r)||ep.isValidElementType(r)||!er(r))return r;const n={};return Object.keys(r).forEach(l=>{n[l]=tp(r[l])}),n}function oa(r,n,l={clone:!0}){const s=l.clone?{...r}:r;return er(r)&&er(n)&&Object.keys(n).forEach(o=>{ge.isValidElement(n[o])||ep.isValidElementType(n[o])?s[o]=n[o]:er(n[o])&&Object.prototype.hasOwnProperty.call(r,o)&&er(r[o])?s[o]=oa(r[o],n[o],l):l.clone?s[o]=er(n[o])?tp(n[o]):n[o]:s[o]=n[o]}),s}const fN=r=>{const n=Object.keys(r).map(l=>({key:l,val:r[l]}))||[];return n.sort((l,s)=>l.val-s.val),n.reduce((l,s)=>({...l,[s.key]:s.val}),{})};function dN(r){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:l="px",step:s=5,...o}=r,f=fN(n),d=Object.keys(f);function h(C){return`@media (min-width:${typeof n[C]=="number"?n[C]:C}${l})`}function y(C){return`@media (max-width:${(typeof n[C]=="number"?n[C]:C)-s/100}${l})`}function p(C,S){const k=d.indexOf(S);return`@media (min-width:${typeof n[C]=="number"?n[C]:C}${l}) and (max-width:${(k!==-1&&typeof n[d[k]]=="number"?n[d[k]]:S)-s/100}${l})`}function x(C){return d.indexOf(C)+1<d.length?p(C,d[d.indexOf(C)+1]):h(C)}function N(C){const S=d.indexOf(C);return S===0?h(d[1]):S===d.length-1?y(d[S]):p(C,d[d.indexOf(C)+1]).replace("@media","@media not all and")}return{keys:d,values:f,up:h,down:y,between:p,only:x,not:N,unit:l,...o}}function ap(r,n){if(!r.containerQueries)return n;const l=Object.keys(n).filter(s=>s.startsWith("@container")).sort((s,o)=>{var d,h;const f=/min-width:\s*([0-9.]+)/;return+(((d=s.match(f))==null?void 0:d[1])||0)-+(((h=o.match(f))==null?void 0:h[1])||0)});return l.length?l.reduce((s,o)=>{const f=n[o];return delete s[o],s[o]=f,s},{...n}):n}function mN(r,n){return n==="@"||n.startsWith("@")&&(r.some(l=>n.startsWith(`@${l}`))||!!n.match(/^@\d/))}function hN(r,n){const l=n.match(/^@([^/]+)?\/?(.+)?$/);if(!l)return null;const[,s,o]=l,f=Number.isNaN(+s)?s||0:+s;return r.containerQueries(o).up(f)}function pN(r){const n=(f,d)=>f.replace("@media",d?`@container ${d}`:"@container");function l(f,d){f.up=(...h)=>n(r.breakpoints.up(...h),d),f.down=(...h)=>n(r.breakpoints.down(...h),d),f.between=(...h)=>n(r.breakpoints.between(...h),d),f.only=(...h)=>n(r.breakpoints.only(...h),d),f.not=(...h)=>{const y=n(r.breakpoints.not(...h),d);return y.includes("not all and")?y.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):y}}const s={},o=f=>(l(s,f),s);return l(o),{...r,containerQueries:o}}const gN={borderRadius:4};function nl(r,n){return n?oa(r,n,{clone:!1}):r}const Rs={xs:0,sm:600,md:900,lg:1200,xl:1536},rp={keys:["xs","sm","md","lg","xl"],up:r=>`@media (min-width:${Rs[r]}px)`},yN={containerQueries:r=>({up:n=>{let l=typeof n=="number"?n:Rs[n]||n;return typeof l=="number"&&(l=`${l}px`),r?`@container ${r} (min-width:${l})`:`@container (min-width:${l})`}})};function tr(r,n,l){const s=r.theme||{};if(Array.isArray(n)){const f=s.breakpoints||rp;return n.reduce((d,h,y)=>(d[f.up(f.keys[y])]=l(n[y]),d),{})}if(typeof n=="object"){const f=s.breakpoints||rp;return Object.keys(n).reduce((d,h)=>{if(mN(f.keys,h)){const y=hN(s.containerQueries?s:yN,h);y&&(d[y]=l(n[h],h))}else if(Object.keys(f.values||Rs).includes(h)){const y=f.up(h);d[y]=l(n[h],h)}else{const y=h;d[y]=n[y]}return d},{})}return l(n)}function bN(r={}){var l;return((l=r.keys)==null?void 0:l.reduce((s,o)=>{const f=r.up(o);return s[f]={},s},{}))||{}}function np(r,n){return r.reduce((l,s)=>{const o=l[s];return(!o||Object.keys(o).length===0)&&delete l[s],l},n)}function ip(r){if(typeof r!="string")throw new Error(on(7));return r.charAt(0).toUpperCase()+r.slice(1)}function Ms(r,n,l=!0){if(!n||typeof n!="string")return null;if(r&&r.vars&&l){const s=`vars.${n}`.split(".").reduce((o,f)=>o&&o[f]?o[f]:null,r);if(s!=null)return s}return n.split(".").reduce((s,o)=>s&&s[o]!=null?s[o]:null,r)}function zs(r,n,l,s=l){let o;return typeof r=="function"?o=r(l):Array.isArray(r)?o=r[l]||s:o=Ms(r,l)||s,n&&(o=n(o,s,r)),o}function yt(r){const{prop:n,cssProperty:l=r.prop,themeKey:s,transform:o}=r,f=d=>{if(d[n]==null)return null;const h=d[n],y=d.theme,p=Ms(y,s)||{};return tr(d,h,N=>{let C=zs(p,o,N);return N===C&&typeof N=="string"&&(C=zs(p,o,`${n}${N==="default"?"":ip(N)}`,N)),l===!1?C:{[l]:C}})};return f.propTypes={},f.filterProps=[n],f}function vN(r){const n={};return l=>(n[l]===void 0&&(n[l]=r(l)),n[l])}const xN={m:"margin",p:"padding"},NN={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},SN=vN(r=>{if(r.length>2)if(lp[r])r=lp[r];else return[r];const[n,l]=r.split(""),s=xN[n],o=NN[l]||"";return Array.isArray(o)?o.map(f=>s+f):[s+o]}),mc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...mc,...hc];function il(r,n,l,s){const o=Ms(r,n,!0)??l;return typeof o=="number"||typeof o=="string"?f=>typeof f=="string"?f:typeof o=="string"?o.startsWith("var(")&&f===0?0:o.startsWith("var(")&&f===1?o:`calc(${f} * ${o})`:o*f:Array.isArray(o)?f=>{if(typeof f=="string")return f;const d=Math.abs(f),h=o[d];return f>=0?h:typeof h=="number"?-h:typeof h=="string"&&h.startsWith("var(")?`calc(-1 * ${h})`:`-${h}`}:typeof o=="function"?o:()=>{}}function pc(r){return il(r,"spacing",8)}function ll(r,n){return typeof n=="string"||n==null?n:r(n)}function _N(r,n){return l=>r.reduce((s,o)=>(s[o]=ll(n,l),s),{})}function CN(r,n,l,s){if(!n.includes(l))return null;const o=SN(l),f=_N(o,s),d=r[l];return tr(r,d,f)}function sp(r,n){const l=pc(r.theme);return Object.keys(r).map(s=>CN(r,n,s,l)).reduce(nl,{})}function dt(r){return sp(r,mc)}dt.propTypes={},dt.filterProps=mc;function mt(r){return sp(r,hc)}mt.propTypes={},mt.filterProps=hc;function op(r=8,n=pc({spacing:r})){if(r.mui)return r;const l=(...s)=>(s.length===0?[1]:s).map(f=>{const d=n(f);return typeof d=="number"?`${d}px`:d}).join(" ");return l.mui=!0,l}function ks(...r){const n=r.reduce((s,o)=>(o.filterProps.forEach(f=>{s[f]=o}),s),{}),l=s=>Object.keys(s).reduce((o,f)=>n[f]?nl(o,n[f](s)):o,{});return l.propTypes={},l.filterProps=r.reduce((s,o)=>s.concat(o.filterProps),[]),l}function va(r){return typeof r!="number"?r:`${r}px solid`}function xa(r,n){return yt({prop:r,themeKey:"borders",transform:n})}const EN=xa("border",va),wN=xa("borderTop",va),DN=xa("borderRight",va),AN=xa("borderBottom",va),TN=xa("borderLeft",va),ON=xa("borderColor"),RN=xa("borderTopColor"),MN=xa("borderRightColor"),zN=xa("borderBottomColor"),kN=xa("borderLeftColor"),jN=xa("outline",va),VN=xa("outlineColor"),js=r=>{if(r.borderRadius!==void 0&&r.borderRadius!==null){const n=il(r.theme,"shape.borderRadius",4),l=s=>({borderRadius:ll(n,s)});return tr(r,r.borderRadius,l)}return null};js.propTypes={},js.filterProps=["borderRadius"],ks(EN,wN,DN,AN,TN,ON,RN,MN,zN,kN,js,jN,VN);const Vs=r=>{if(r.gap!==void 0&&r.gap!==null){const n=il(r.theme,"spacing",8),l=s=>({gap:ll(n,s)});return tr(r,r.gap,l)}return null};Vs.propTypes={},Vs.filterProps=["gap"];const Bs=r=>{if(r.columnGap!==void 0&&r.columnGap!==null){const n=il(r.theme,"spacing",8),l=s=>({columnGap:ll(n,s)});return tr(r,r.columnGap,l)}return null};Bs.propTypes={},Bs.filterProps=["columnGap"];const Us=r=>{if(r.rowGap!==void 0&&r.rowGap!==null){const n=il(r.theme,"spacing",8),l=s=>({rowGap:ll(n,s)});return tr(r,r.rowGap,l)}return null};Us.propTypes={},Us.filterProps=["rowGap"];const BN=yt({prop:"gridColumn"}),UN=yt({prop:"gridRow"}),LN=yt({prop:"gridAutoFlow"}),qN=yt({prop:"gridAutoColumns"}),HN=yt({prop:"gridAutoRows"}),GN=yt({prop:"gridTemplateColumns"}),ZN=yt({prop:"gridTemplateRows"}),YN=yt({prop:"gridTemplateAreas"}),$N=yt({prop:"gridArea"});ks(Vs,Bs,Us,BN,UN,LN,qN,HN,GN,ZN,YN,$N);function Yn(r,n){return n==="grey"?n:r}const FN=yt({prop:"color",themeKey:"palette",transform:Yn}),QN=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yn}),XN=yt({prop:"backgroundColor",themeKey:"palette",transform:Yn});ks(FN,QN,XN);function ua(r){return r<=1&&r!==0?`${r*100}%`:r}const KN=yt({prop:"width",transform:ua}),gc=r=>{if(r.maxWidth!==void 0&&r.maxWidth!==null){const n=l=>{var o,f,d,h,y;const s=((d=(f=(o=r.theme)==null?void 0:o.breakpoints)==null?void 0:f.values)==null?void 0:d[l])||Rs[l];return s?((y=(h=r.theme)==null?void 0:h.breakpoints)==null?void 0:y.unit)!=="px"?{maxWidth:`${s}${r.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:ua(l)}};return tr(r,r.maxWidth,n)}return null};gc.filterProps=["maxWidth"];const JN=yt({prop:"minWidth",transform:ua}),IN=yt({prop:"height",transform:ua}),PN=yt({prop:"maxHeight",transform:ua}),WN=yt({prop:"minHeight",transform:ua});yt({prop:"size",cssProperty:"width",transform:ua}),yt({prop:"size",cssProperty:"height",transform:ua});const eS=yt({prop:"boxSizing"});ks(KN,gc,JN,IN,PN,WN,eS);const Ls={border:{themeKey:"borders",transform:va},borderTop:{themeKey:"borders",transform:va},borderRight:{themeKey:"borders",transform:va},borderBottom:{themeKey:"borders",transform:va},borderLeft:{themeKey:"borders",transform:va},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:va},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:js},color:{themeKey:"palette",transform:Yn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yn},backgroundColor:{themeKey:"palette",transform:Yn},p:{style:mt},pt:{style:mt},pr:{style:mt},pb:{style:mt},pl:{style:mt},px:{style:mt},py:{style:mt},padding:{style:mt},paddingTop:{style:mt},paddingRight:{style:mt},paddingBottom:{style:mt},paddingLeft:{style:mt},paddingX:{style:mt},paddingY:{style:mt},paddingInline:{style:mt},paddingInlineStart:{style:mt},paddingInlineEnd:{style:mt},paddingBlock:{style:mt},paddingBlockStart:{style:mt},paddingBlockEnd:{style:mt},m:{style:dt},mt:{style:dt},mr:{style:dt},mb:{style:dt},ml:{style:dt},mx:{style:dt},my:{style:dt},margin:{style:dt},marginTop:{style:dt},marginRight:{style:dt},marginBottom:{style:dt},marginLeft:{style:dt},marginX:{style:dt},marginY:{style:dt},marginInline:{style:dt},marginInlineStart:{style:dt},marginInlineEnd:{style:dt},marginBlock:{style:dt},marginBlockStart:{style:dt},marginBlockEnd:{style:dt},displayPrint:{cssProperty:!1,transform:r=>({"@media print":{display:r}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Vs},rowGap:{style:Us},columnGap:{style:Bs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ua},maxWidth:{style:gc},minWidth:{transform:ua},height:{transform:ua},maxHeight:{transform:ua},minHeight:{transform:ua},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function tS(...r){const n=r.reduce((s,o)=>s.concat(Object.keys(o)),[]),l=new Set(n);return r.every(s=>l.size===Object.keys(s).length)}function aS(r,n){return typeof r=="function"?r(n):r}function rS(){function r(l,s,o,f){const d={[l]:s,theme:o},h=f[l];if(!h)return{[l]:s};const{cssProperty:y=l,themeKey:p,transform:x,style:N}=h;if(s==null)return null;if(p==="typography"&&s==="inherit")return{[l]:s};const C=Ms(o,p)||{};return N?N(d):tr(d,s,k=>{let w=zs(C,x,k);return k===w&&typeof k=="string"&&(w=zs(C,x,`${l}${k==="default"?"":ip(k)}`,k)),y===!1?w:{[y]:w}})}function n(l){const{sx:s,theme:o={},nested:f}=l||{};if(!s)return null;const d=o.unstable_sxConfig??Ls;function h(y){let p=y;if(typeof y=="function")p=y(o);else if(typeof y!="object")return y;if(!p)return null;const x=bN(o.breakpoints),N=Object.keys(x);let C=x;return Object.keys(p).forEach(S=>{const k=aS(p[S],o);if(k!=null)if(typeof k=="object")if(d[S])C=nl(C,r(S,k,o,d));else{const w=tr({theme:o},k,q=>({[S]:q}));tS(w,k)?C[S]=n({sx:k,theme:o,nested:!0}):C=nl(C,w)}else C=nl(C,r(S,k,o,d))}),!f&&o.modularCssLayers?{"@layer sx":ap(o,np(N,C))}:ap(o,np(N,C))}return Array.isArray(s)?s.map(h):h(s)}return n}const $n=rS();$n.filterProps=["sx"];function nS(r,n){var s;const l=this;if(l.vars){if(!((s=l.colorSchemes)!=null&&s[r])||typeof l.getColorSchemeSelector!="function")return{};let o=l.getColorSchemeSelector(r);return o==="&"?n:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:n})}return l.palette.mode===r?n:{}}function up(r={},...n){const{breakpoints:l={},palette:s={},spacing:o,shape:f={},...d}=r,h=dN(l),y=op(o);let p=oa({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:y,shape:{...gN,...f}},d);return p=pN(p),p.applyStyles=nS,p=n.reduce((x,N)=>oa(x,N),p),p.unstable_sxConfig={...Ls,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(N){return $n({sx:N,theme:this})},p}const cp=r=>r,iS=(()=>{let r=cp;return{configure(n){r=n},generate(n){return r(n)},reset(){r=cp}}})(),lS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function fp(r,n,l="Mui"){const s=lS[n];return s?`${l}-${s}`:`${iS.generate(r)}-${n}`}function sS(r,n,l="Mui"){const s={};return n.forEach(o=>{s[o]=fp(r,o,l)}),s}function dp(r){const{variants:n,...l}=r,s={variants:n,style:cn(l),isProcessed:!0};return s.style===l||n&&n.forEach(o=>{typeof o.style!="function"&&(o.style=cn(o.style))}),s}const oS=up();function yc(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}function fn(r,n){return n&&r&&typeof r=="object"&&r.styles&&!r.styles.startsWith("@layer")&&(r.styles=`@layer ${n}{${String(r.styles)}}`),r}function uS(r){return r?(n,l)=>l[r]:null}function cS(r,n,l){r.theme=mS(r.theme)?l:r.theme[n]||r.theme}function qs(r,n,l){const s=typeof n=="function"?n(r):n;if(Array.isArray(s))return s.flatMap(o=>qs(r,o,l));if(Array.isArray(s==null?void 0:s.variants)){let o;if(s.isProcessed)o=l?fn(s.style,l):s.style;else{const{variants:f,...d}=s;o=l?fn(cn(d),l):d}return mp(r,s.variants,[o],l)}return s!=null&&s.isProcessed?l?fn(cn(s.style),l):s.style:l?fn(cn(s),l):s}function mp(r,n,l=[],s=void 0){var f;let o;e:for(let d=0;d<n.length;d+=1){const h=n[d];if(typeof h.props=="function"){if(o??(o={...r,...r.ownerState,ownerState:r.ownerState}),!h.props(o))continue}else for(const y in h.props)if(r[y]!==h.props[y]&&((f=r.ownerState)==null?void 0:f[y])!==h.props[y])continue e;typeof h.style=="function"?(o??(o={...r,...r.ownerState,ownerState:r.ownerState}),l.push(s?fn(cn(h.style(o)),s):h.style(o))):l.push(s?fn(cn(h.style),s):h.style)}return l}function fS(r={}){const{themeId:n,defaultTheme:l=oS,rootShouldForwardProp:s=yc,slotShouldForwardProp:o=yc}=r;function f(h){cS(h,n,l)}return(h,y={})=>{oN(h,K=>K.filter(ne=>ne!==$n));const{name:p,slot:x,skipVariantsResolver:N,skipSx:C,overridesResolver:S=uS(pS(x)),...k}=y,w=p&&p.startsWith("Mui")||x?"components":"custom",q=N!==void 0?N:x&&x!=="Root"&&x!=="root"||!1,te=C||!1;let Q=yc;x==="Root"||x==="root"?Q=s:x?Q=o:hS(h)&&(Q=void 0);const le=sN(h,{shouldForwardProp:Q,label:dS(),...k}),I=K=>{if(K.__emotion_real===K)return K;if(typeof K=="function")return function(de){return qs(de,K,de.theme.modularCssLayers?w:void 0)};if(er(K)){const ne=dp(K);return function(we){return ne.variants?qs(we,ne,we.theme.modularCssLayers?w:void 0):we.theme.modularCssLayers?fn(ne.style,w):ne.style}}return K},B=(...K)=>{const ne=[],de=K.map(I),we=[];if(ne.push(f),p&&S&&we.push(function(F){var H,J;const se=(J=(H=F.theme.components)==null?void 0:H[p])==null?void 0:J.styleOverrides;if(!se)return null;const Z={};for(const De in se)Z[De]=qs(F,se[De],F.theme.modularCssLayers?"theme":void 0);return S(F,Z)}),p&&!q&&we.push(function(F){var Z,H;const X=F.theme,se=(H=(Z=X==null?void 0:X.components)==null?void 0:Z[p])==null?void 0:H.variants;return se?mp(F,se,[],F.theme.modularCssLayers?"theme":void 0):null}),te||we.push($n),Array.isArray(de[0])){const b=de.shift(),F=new Array(ne.length).fill(""),X=new Array(we.length).fill("");let se;se=[...F,...b,...X],se.raw=[...F,...b.raw,...X],ne.unshift(se)}const Ue=[...ne,...de,...we],_e=le(...Ue);return h.muiName&&(_e.muiName=h.muiName),_e};return le.withConfig&&(B.withConfig=le.withConfig),B}}function dS(r,n){return void 0}function mS(r){for(const n in r)return!1;return!0}function hS(r){return typeof r=="string"&&r.charCodeAt(0)>96}function pS(r){return r&&r.charAt(0).toLowerCase()+r.slice(1)}function bc(r,n,l=!1){const s={...n};for(const o in r)if(Object.prototype.hasOwnProperty.call(r,o)){const f=o;if(f==="components"||f==="slots")s[f]={...r[f],...s[f]};else if(f==="componentsProps"||f==="slotProps"){const d=r[f],h=n[f];if(!h)s[f]=d||{};else if(!d)s[f]=h;else{s[f]={...h};for(const y in d)if(Object.prototype.hasOwnProperty.call(d,y)){const p=y;s[f][p]=bc(d[p],h[p],l)}}}else f==="className"&&l&&n.className?s.className=mh(r==null?void 0:r.className,n==null?void 0:n.className):f==="style"&&l&&n.style?s.style={...r==null?void 0:r.style,...n==null?void 0:n.style}:s[f]===void 0&&(s[f]=r[f])}return s}function gS(r,n=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(r,l))}function vc(r,n=0,l=1){return gS(r,n,l)}function yS(r){r=r.slice(1);const n=new RegExp(`.{1,${r.length>=6?2:1}}`,"g");let l=r.match(n);return l&&l[0].length===1&&(l=l.map(s=>s+s)),l?`rgb${l.length===4?"a":""}(${l.map((s,o)=>o<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function Tr(r){if(r.type)return r;if(r.charAt(0)==="#")return Tr(yS(r));const n=r.indexOf("("),l=r.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(l))throw new Error(on(9,r));let s=r.substring(n+1,r.length-1),o;if(l==="color"){if(s=s.split(" "),o=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(on(10,o))}else s=s.split(",");return s=s.map(f=>parseFloat(f)),{type:l,values:s,colorSpace:o}}const bS=r=>{const n=Tr(r);return n.values.slice(0,3).map((l,s)=>n.type.includes("hsl")&&s!==0?`${l}%`:l).join(" ")},sl=(r,n)=>{try{return bS(r)}catch{return r}};function Hs(r){const{type:n,colorSpace:l}=r;let{values:s}=r;return n.includes("rgb")?s=s.map((o,f)=>f<3?parseInt(o,10):o):n.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),n.includes("color")?s=`${l} ${s.join(" ")}`:s=`${s.join(", ")}`,`${n}(${s})`}function hp(r){r=Tr(r);const{values:n}=r,l=n[0],s=n[1]/100,o=n[2]/100,f=s*Math.min(o,1-o),d=(p,x=(p+l/30)%12)=>o-f*Math.max(Math.min(x-3,9-x,1),-1);let h="rgb";const y=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return r.type==="hsla"&&(h+="a",y.push(n[3])),Hs({type:h,values:y})}function xc(r){r=Tr(r);let n=r.type==="hsl"||r.type==="hsla"?Tr(hp(r)).values:r.values;return n=n.map(l=>(r.type!=="color"&&(l/=255),l<=.03928?l/12.92:((l+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function vS(r,n){const l=xc(r),s=xc(n);return(Math.max(l,s)+.05)/(Math.min(l,s)+.05)}function pp(r,n){return r=Tr(r),n=vc(n),(r.type==="rgb"||r.type==="hsl")&&(r.type+="a"),r.type==="color"?r.values[3]=`/${n}`:r.values[3]=n,Hs(r)}function dn(r,n,l){try{return pp(r,n)}catch{return r}}function Gs(r,n){if(r=Tr(r),n=vc(n),r.type.includes("hsl"))r.values[2]*=1-n;else if(r.type.includes("rgb")||r.type.includes("color"))for(let l=0;l<3;l+=1)r.values[l]*=1-n;return Hs(r)}function Xe(r,n,l){try{return Gs(r,n)}catch{return r}}function Zs(r,n){if(r=Tr(r),n=vc(n),r.type.includes("hsl"))r.values[2]+=(100-r.values[2])*n;else if(r.type.includes("rgb"))for(let l=0;l<3;l+=1)r.values[l]+=(255-r.values[l])*n;else if(r.type.includes("color"))for(let l=0;l<3;l+=1)r.values[l]+=(1-r.values[l])*n;return Hs(r)}function Ke(r,n,l){try{return Zs(r,n)}catch{return r}}function xS(r,n=.15){return xc(r)>.5?Gs(r,n):Zs(r,n)}function Ys(r,n,l){try{return xS(r,n)}catch{return r}}const NS=ge.createContext(void 0);function SS(r){const{theme:n,name:l,props:s}=r;if(!n||!n.components||!n.components[l])return s;const o=n.components[l];return o.defaultProps?bc(o.defaultProps,s,n.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?bc(o,s,n.components.mergeClassNameAndStyle):s}function _S({props:r,name:n}){const l=ge.useContext(NS);return SS({props:r,name:n,theme:{components:l}})}const gp={theme:void 0};function CS(r){let n,l;return function(o){let f=n;return(f===void 0||o.theme!==l)&&(gp.theme=o.theme,f=dp(r(gp)),n=f,l=o.theme),f}}function ES(r=""){function n(...s){if(!s.length)return"";const o=s[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${r?`${r}-`:""}${o}${n(...s.slice(1))})`:`, ${o}`}return(s,...o)=>`var(--${r?`${r}-`:""}${s}${n(...o)})`}const yp=(r,n,l,s=[])=>{let o=r;n.forEach((f,d)=>{d===n.length-1?Array.isArray(o)?o[Number(f)]=l:o&&typeof o=="object"&&(o[f]=l):o&&typeof o=="object"&&(o[f]||(o[f]=s.includes(f)?[]:{}),o=o[f])})},wS=(r,n,l)=>{function s(o,f=[],d=[]){Object.entries(o).forEach(([h,y])=>{(!l||l&&!l([...f,h]))&&y!=null&&(typeof y=="object"&&Object.keys(y).length>0?s(y,[...f,h],Array.isArray(y)?[...d,h]:d):n([...f,h],y,d))})}s(r)},DS=(r,n)=>typeof n=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>r.includes(s))||r[r.length-1].toLowerCase().includes("opacity")?n:`${n}px`:n;function Nc(r,n){const{prefix:l,shouldSkipGeneratingVar:s}=n||{},o={},f={},d={};return wS(r,(h,y,p)=>{if((typeof y=="string"||typeof y=="number")&&(!s||!s(h,y))){const x=`--${l?`${l}-`:""}${h.join("-")}`,N=DS(h,y);Object.assign(o,{[x]:N}),yp(f,h,`var(${x})`,p),yp(d,h,`var(${x}, ${N})`,p)}},h=>h[0]==="vars"),{css:o,vars:f,varsWithDefaults:d}}function AS(r,n={}){const{getSelector:l=te,disableCssColorScheme:s,colorSchemeSelector:o,enableContrastVars:f}=n,{colorSchemes:d={},components:h,defaultColorScheme:y="light",...p}=r,{vars:x,css:N,varsWithDefaults:C}=Nc(p,n);let S=C;const k={},{[y]:w,...q}=d;if(Object.entries(q||{}).forEach(([I,B])=>{const{vars:K,css:ne,varsWithDefaults:de}=Nc(B,n);S=oa(S,de),k[I]={css:ne,vars:K}}),w){const{css:I,vars:B,varsWithDefaults:K}=Nc(w,n);S=oa(S,K),k[y]={css:I,vars:B}}function te(I,B){var ne,de;let K=o;if(o==="class"&&(K=".%s"),o==="data"&&(K="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(K=`[${o}="%s"]`),I){if(K==="media")return r.defaultColorScheme===I?":root":{[`@media (prefers-color-scheme: ${((de=(ne=d[I])==null?void 0:ne.palette)==null?void 0:de.mode)||I})`]:{":root":B}};if(K)return r.defaultColorScheme===I?`:root, ${K.replace("%s",String(I))}`:K.replace("%s",String(I))}return":root"}return{vars:S,generateThemeVars:()=>{let I={...x};return Object.entries(k).forEach(([,{vars:B}])=>{I=oa(I,B)}),I},generateStyleSheets:()=>{var we,Ue;const I=[],B=r.defaultColorScheme||"light";function K(_e,b){Object.keys(b).length&&I.push(typeof _e=="string"?{[_e]:{...b}}:_e)}K(l(void 0,{...N}),N);const{[B]:ne,...de}=k;if(ne){const{css:_e}=ne,b=(Ue=(we=d[B])==null?void 0:we.palette)==null?void 0:Ue.mode,F=!s&&b?{colorScheme:b,..._e}:{..._e};K(l(B,{...F}),F)}return Object.entries(de).forEach(([_e,{css:b}])=>{var se,Z;const F=(Z=(se=d[_e])==null?void 0:se.palette)==null?void 0:Z.mode,X=!s&&F?{colorScheme:F,...b}:{...b};K(l(_e,{...X}),X)}),f&&I.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),I}}}function TS(r){return function(l){return r==="media"?`@media (prefers-color-scheme: ${l})`:r?r.startsWith("data-")&&!r.includes("%s")?`[${r}="${l}"] &`:r==="class"?`.${l} &`:r==="data"?`[data-${l}] &`:`${r.replace("%s",l)} &`:"&"}}const ol={black:"#000",white:"#fff"},OS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Fn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Qn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ul={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Xn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Kn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Jn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function bp(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ol.white,default:ol.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const vp=bp();function xp(){return{text:{primary:ol.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ol.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Sc=xp();function Np(r,n,l,s){const o=s.light||s,f=s.dark||s*1.5;r[n]||(r.hasOwnProperty(l)?r[n]=r[l]:n==="light"?r.light=Zs(r.main,o):n==="dark"&&(r.dark=Gs(r.main,f)))}function Sp(r,n,l,s,o){const f=o.light||o,d=o.dark||o*1.5;n[l]||(n.hasOwnProperty(s)?n[l]=n[s]:l==="light"?n.light=`color-mix(in ${r}, ${n.main}, #fff ${(f*100).toFixed(0)}%)`:l==="dark"&&(n.dark=`color-mix(in ${r}, ${n.main}, #000 ${(d*100).toFixed(0)}%)`))}function RS(r="light"){return r==="dark"?{main:Xn[200],light:Xn[50],dark:Xn[400]}:{main:Xn[700],light:Xn[400],dark:Xn[800]}}function MS(r="light"){return r==="dark"?{main:Fn[200],light:Fn[50],dark:Fn[400]}:{main:Fn[500],light:Fn[300],dark:Fn[700]}}function zS(r="light"){return r==="dark"?{main:Qn[500],light:Qn[300],dark:Qn[700]}:{main:Qn[700],light:Qn[400],dark:Qn[800]}}function kS(r="light"){return r==="dark"?{main:Kn[400],light:Kn[300],dark:Kn[700]}:{main:Kn[700],light:Kn[500],dark:Kn[900]}}function jS(r="light"){return r==="dark"?{main:Jn[400],light:Jn[300],dark:Jn[700]}:{main:Jn[800],light:Jn[500],dark:Jn[900]}}function VS(r="light"){return r==="dark"?{main:ul[400],light:ul[300],dark:ul[700]}:{main:"#ed6c02",light:ul[500],dark:ul[900]}}function BS(r){return`oklch(from ${r} var(--__l) 0 h / var(--__a))`}function _c(r){const{mode:n="light",contrastThreshold:l=3,tonalOffset:s=.2,colorSpace:o,...f}=r,d=r.primary||RS(n),h=r.secondary||MS(n),y=r.error||zS(n),p=r.info||kS(n),x=r.success||jS(n),N=r.warning||VS(n);function C(q){return o?BS(q):vS(q,Sc.text.primary)>=l?Sc.text.primary:vp.text.primary}const S=({color:q,name:te,mainShade:Q=500,lightShade:le=300,darkShade:I=700})=>{if(q={...q},!q.main&&q[Q]&&(q.main=q[Q]),!q.hasOwnProperty("main"))throw new Error(on(11,te?` (${te})`:"",Q));if(typeof q.main!="string")throw new Error(on(12,te?` (${te})`:"",JSON.stringify(q.main)));return o?(Sp(o,q,"light",le,s),Sp(o,q,"dark",I,s)):(Np(q,"light",le,s),Np(q,"dark",I,s)),q.contrastText||(q.contrastText=C(q.main)),q};let k;return n==="light"?k=bp():n==="dark"&&(k=xp()),oa({common:{...ol},mode:n,primary:S({color:d,name:"primary"}),secondary:S({color:h,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:y,name:"error"}),warning:S({color:N,name:"warning"}),info:S({color:p,name:"info"}),success:S({color:x,name:"success"}),grey:OS,contrastThreshold:l,getContrastText:C,augmentColor:S,tonalOffset:s,...k},f)}function US(r){const n={};return Object.entries(r).forEach(s=>{const[o,f]=s;typeof f=="object"&&(n[o]=`${f.fontStyle?`${f.fontStyle} `:""}${f.fontVariant?`${f.fontVariant} `:""}${f.fontWeight?`${f.fontWeight} `:""}${f.fontStretch?`${f.fontStretch} `:""}${f.fontSize||""}${f.lineHeight?`/${f.lineHeight} `:""}${f.fontFamily||""}`)}),n}function LS(r,n){return{toolbar:{minHeight:56,[r.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[r.up("sm")]:{minHeight:64}},...n}}function qS(r){return Math.round(r*1e5)/1e5}const _p={textTransform:"uppercase"},Cp='"Roboto", "Helvetica", "Arial", sans-serif';function HS(r,n){const{fontFamily:l=Cp,fontSize:s=14,fontWeightLight:o=300,fontWeightRegular:f=400,fontWeightMedium:d=500,fontWeightBold:h=700,htmlFontSize:y=16,allVariants:p,pxToRem:x,...N}=typeof n=="function"?n(r):n,C=s/14,S=x||(q=>`${q/y*C}rem`),k=(q,te,Q,le,I)=>({fontFamily:l,fontWeight:q,fontSize:S(te),lineHeight:Q,...l===Cp?{letterSpacing:`${qS(le/te)}em`}:{},...I,...p}),w={h1:k(o,96,1.167,-1.5),h2:k(o,60,1.2,-.5),h3:k(f,48,1.167,0),h4:k(f,34,1.235,.25),h5:k(f,24,1.334,0),h6:k(d,20,1.6,.15),subtitle1:k(f,16,1.75,.15),subtitle2:k(d,14,1.57,.1),body1:k(f,16,1.5,.15),body2:k(f,14,1.43,.15),button:k(d,14,1.75,.4,_p),caption:k(f,12,1.66,.4),overline:k(f,12,2.66,1,_p),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return oa({htmlFontSize:y,pxToRem:S,fontFamily:l,fontSize:s,fontWeightLight:o,fontWeightRegular:f,fontWeightMedium:d,fontWeightBold:h,...w},N,{clone:!1})}const GS=.2,ZS=.14,YS=.12;function ot(...r){return[`${r[0]}px ${r[1]}px ${r[2]}px ${r[3]}px rgba(0,0,0,${GS})`,`${r[4]}px ${r[5]}px ${r[6]}px ${r[7]}px rgba(0,0,0,${ZS})`,`${r[8]}px ${r[9]}px ${r[10]}px ${r[11]}px rgba(0,0,0,${YS})`].join(",")}const $S=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],FS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},QS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ep(r){return`${Math.round(r)}ms`}function XS(r){if(!r)return 0;const n=r/36;return Math.min(Math.round((4+15*n**.25+n/5)*10),3e3)}function KS(r){const n={...FS,...r.easing},l={...QS,...r.duration};return{getAutoHeightDuration:XS,create:(o=["all"],f={})=>{const{duration:d=l.standard,easing:h=n.easeInOut,delay:y=0,...p}=f;return(Array.isArray(o)?o:[o]).map(x=>`${x} ${typeof d=="string"?d:Ep(d)} ${h} ${typeof y=="string"?y:Ep(y)}`).join(",")},...r,easing:n,duration:l}}const JS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function IS(r){return er(r)||typeof r>"u"||typeof r=="string"||typeof r=="boolean"||typeof r=="number"||Array.isArray(r)}function wp(r={}){const n={...r};function l(s){const o=Object.entries(s);for(let f=0;f<o.length;f++){const[d,h]=o[f];!IS(h)||d.startsWith("unstable_")?delete s[d]:er(h)&&(s[d]={...h},l(s[d]))}}return l(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
114
122
 
115
- const theme = ${JSON.stringify(r,null,2)};
123
+ const theme = ${JSON.stringify(n,null,2)};
116
124
 
117
125
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
118
126
  theme.transitions = createTransitions(theme.transitions || {});
119
127
 
120
- export default theme;`}function Gp(n){return typeof n=="number"?`${(n*100).toFixed(0)}%`:`calc((${n}) * 100%)`}const px=n=>{if(!Number.isNaN(+n))return+n;const r=n.match(/\d*\.?\d+/g);if(!r)return 0;let i=0;for(let s=0;s<r.length;s+=1)i+=+r[s];return i};function gx(n){Object.assign(n,{alpha(r,i){const s=this||n;return s.colorSpace?`oklch(from ${r} l c h / ${typeof i=="string"?`calc(${i})`:i})`:s.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof i=="string"?`calc(${i})`:i})`:Op(r,px(i))},lighten(r,i){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #fff ${Gp(i)})`:io(r,i)},darken(r,i){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #000 ${Gp(i)})`:lo(r,i)}})}function Hc(n={},...r){const{breakpoints:i,mixins:s={},spacing:u,palette:f={},transitions:d={},typography:h={},shape:y,colorSpace:p,..._}=n;if(n.vars&&n.generateThemeVars===void 0)throw new Error(xr(20));const b=qc({...f,colorSpace:p}),C=Ep(n);let N=pa(C,{mixins:ax(C.breakpoints,s),palette:b,shadows:ox.slice(),typography:rx(b,h),transitions:dx(d),zIndex:{...mx}});return N=pa(N,_),N=r.reduce((U,E)=>pa(U,E),N),N.unstable_sxConfig={...ao,..._==null?void 0:_.unstable_sxConfig},N.unstable_sx=function(E){return ol({sx:E,theme:this})},N.toRuntimeSource=Hp,gx(N),N}function yx(n){let r;return n<1?r=5.11916*n**2:r=4.5*Math.log(n+1)+2,Math.round(r*10)/1e3}const vx=[...Array(25)].map((n,r)=>{if(r===0)return"none";const i=yx(r);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function Zp(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function Yp(n){return n==="dark"?vx:[]}function bx(n){const{palette:r={mode:"light"},opacity:i,overlays:s,colorSpace:u,...f}=n,d=qc({...r,colorSpace:u});return{palette:d,opacity:{...Zp(d.mode),...i},overlays:s||Yp(d.mode),...f}}function _x(n){var r;return!!n[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!n[0].match(/sxConfig$/)||n[0]==="palette"&&!!((r=n[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const Nx=n=>[...[...Array(25)].map((r,i)=>`--${n?`${n}-`:""}overlays-${i}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],Sx=n=>(r,i)=>{const s=n.rootSelector||":root",u=n.colorSchemeSelector;let f=u;if(u==="class"&&(f=".%s"),u==="data"&&(f="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(f=`[${u}="%s"]`),n.defaultColorScheme===r){if(r==="dark"){const d={};return Nx(n.cssVarPrefix).forEach(h=>{d[h]=i[h],delete i[h]}),f==="media"?{[s]:i,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",r)]:d,[`${s}, ${f.replace("%s",r)}`]:i}:{[s]:{...i,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(r))}`}else if(r){if(f==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[s]:i}};if(f)return f.replace("%s",String(r))}return s};function xx(n,r){r.forEach(i=>{n[i]||(n[i]={})})}function L(n,r,i){!n[r]&&i&&(n[r]=i)}function Ai(n){return typeof n!="string"||!n.startsWith("hsl")?n:Rp(n)}function pn(n,r){`${r}Channel`in n||(n[`${r}Channel`]=Ei(Ai(n[r])))}function Ex(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const tn=n=>{try{return n()}catch{}},wx=(n="mui")=>GS(n);function Gc(n,r,i,s,u){if(!i)return;i=i===!0?{}:i;const f=u==="dark"?"dark":"light";if(!s){r[u]=bx({...i,palette:{mode:f,...i==null?void 0:i.palette},colorSpace:n});return}const{palette:d,...h}=Hc({...s,palette:{mode:f,...i==null?void 0:i.palette},colorSpace:n});return r[u]={...i,palette:d,opacity:{...Zp(f),...i==null?void 0:i.opacity},overlays:(i==null?void 0:i.overlays)||Yp(f)},h}function Cx(n={},...r){const{colorSchemes:i={light:!0},defaultColorScheme:s,disableCssColorScheme:u=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:h=_x,colorSchemeSelector:y=i.light&&i.dark?"media":void 0,rootSelector:p=":root",..._}=n,b=Object.keys(i)[0],C=s||(i.light&&b!=="light"?"light":b),N=wx(f),{[C]:U,light:E,dark:q,...P}=i,F={...P};let ae=U;if((C==="dark"&&!("dark"in i)||C==="light"&&!("light"in i))&&(ae=!0),!ae)throw new Error(xr(21,C));let W;d&&(W="oklch");const B=Gc(W,F,ae,_,C);E&&!F.light&&Gc(W,F,E,void 0,"light"),q&&!F.dark&&Gc(W,F,q,void 0,"dark");let Q={defaultColorScheme:C,...B,cssVarPrefix:f,colorSchemeSelector:y,rootSelector:p,getCssVar:N,colorSchemes:F,font:{...tx(B.typography),...B.font},spacing:Ex(_.spacing)};Object.keys(Q.colorSchemes).forEach(ye=>{const v=Q.colorSchemes[ye].palette,Y=ie=>{const R=ie.split("-"),X=R[1],se=R[2];return N(ie,v[X][se])};v.mode==="light"&&(L(v.common,"background","#fff"),L(v.common,"onBackground","#000")),v.mode==="dark"&&(L(v.common,"background","#000"),L(v.common,"onBackground","#fff"));function $(ie,R,X){if(W){let se;return ie===Ar&&(se=`transparent ${((1-X)*100).toFixed(0)}%`),ie===Qe&&(se=`#000 ${(X*100).toFixed(0)}%`),ie===Xe&&(se=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${W}, ${R}, ${se})`}return ie(R,X)}if(xx(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){L(v.Alert,"errorColor",$(Qe,d?N("palette-error-light"):v.error.light,.6)),L(v.Alert,"infoColor",$(Qe,d?N("palette-info-light"):v.info.light,.6)),L(v.Alert,"successColor",$(Qe,d?N("palette-success-light"):v.success.light,.6)),L(v.Alert,"warningColor",$(Qe,d?N("palette-warning-light"):v.warning.light,.6)),L(v.Alert,"errorFilledBg",Y("palette-error-main")),L(v.Alert,"infoFilledBg",Y("palette-info-main")),L(v.Alert,"successFilledBg",Y("palette-success-main")),L(v.Alert,"warningFilledBg",Y("palette-warning-main")),L(v.Alert,"errorFilledColor",tn(()=>v.getContrastText(v.error.main))),L(v.Alert,"infoFilledColor",tn(()=>v.getContrastText(v.info.main))),L(v.Alert,"successFilledColor",tn(()=>v.getContrastText(v.success.main))),L(v.Alert,"warningFilledColor",tn(()=>v.getContrastText(v.warning.main))),L(v.Alert,"errorStandardBg",$(Xe,d?N("palette-error-light"):v.error.light,.9)),L(v.Alert,"infoStandardBg",$(Xe,d?N("palette-info-light"):v.info.light,.9)),L(v.Alert,"successStandardBg",$(Xe,d?N("palette-success-light"):v.success.light,.9)),L(v.Alert,"warningStandardBg",$(Xe,d?N("palette-warning-light"):v.warning.light,.9)),L(v.Alert,"errorIconColor",Y("palette-error-main")),L(v.Alert,"infoIconColor",Y("palette-info-main")),L(v.Alert,"successIconColor",Y("palette-success-main")),L(v.Alert,"warningIconColor",Y("palette-warning-main")),L(v.AppBar,"defaultBg",Y("palette-grey-100")),L(v.Avatar,"defaultBg",Y("palette-grey-400")),L(v.Button,"inheritContainedBg",Y("palette-grey-300")),L(v.Button,"inheritContainedHoverBg",Y("palette-grey-A100")),L(v.Chip,"defaultBorder",Y("palette-grey-400")),L(v.Chip,"defaultAvatarColor",Y("palette-grey-700")),L(v.Chip,"defaultIconColor",Y("palette-grey-700")),L(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),L(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),L(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),L(v.LinearProgress,"primaryBg",$(Xe,d?N("palette-primary-main"):v.primary.main,.62)),L(v.LinearProgress,"secondaryBg",$(Xe,d?N("palette-secondary-main"):v.secondary.main,.62)),L(v.LinearProgress,"errorBg",$(Xe,d?N("palette-error-main"):v.error.main,.62)),L(v.LinearProgress,"infoBg",$(Xe,d?N("palette-info-main"):v.info.main,.62)),L(v.LinearProgress,"successBg",$(Xe,d?N("palette-success-main"):v.success.main,.62)),L(v.LinearProgress,"warningBg",$(Xe,d?N("palette-warning-light"):v.warning.main,.62)),L(v.Skeleton,"bg",W?$(Ar,d?N("palette-text-primary"):v.text.primary,.11):`rgba(${Y("palette-text-primaryChannel")} / 0.11)`),L(v.Slider,"primaryTrack",$(Xe,d?N("palette-primary-main"):v.primary.main,.62)),L(v.Slider,"secondaryTrack",$(Xe,d?N("palette-secondary-main"):v.secondary.main,.62)),L(v.Slider,"errorTrack",$(Xe,d?N("palette-error-main"):v.error.main,.62)),L(v.Slider,"infoTrack",$(Xe,d?N("palette-info-main"):v.info.main,.62)),L(v.Slider,"successTrack",$(Xe,d?N("palette-success-main"):v.success.main,.62)),L(v.Slider,"warningTrack",$(Xe,d?N("palette-warning-main"):v.warning.main,.62));const ie=W?$(Qe,d?N("palette-background-default"):v.background.default,.6825):so(v.background.default,.8);L(v.SnackbarContent,"bg",ie),L(v.SnackbarContent,"color",tn(()=>W?Vc.text.primary:v.getContrastText(ie))),L(v.SpeedDialAction,"fabHoverBg",so(v.background.paper,.15)),L(v.StepConnector,"border",Y("palette-grey-400")),L(v.StepContent,"border",Y("palette-grey-400")),L(v.Switch,"defaultColor",Y("palette-common-white")),L(v.Switch,"defaultDisabledColor",Y("palette-grey-100")),L(v.Switch,"primaryDisabledColor",$(Xe,d?N("palette-primary-main"):v.primary.main,.62)),L(v.Switch,"secondaryDisabledColor",$(Xe,d?N("palette-secondary-main"):v.secondary.main,.62)),L(v.Switch,"errorDisabledColor",$(Xe,d?N("palette-error-main"):v.error.main,.62)),L(v.Switch,"infoDisabledColor",$(Xe,d?N("palette-info-main"):v.info.main,.62)),L(v.Switch,"successDisabledColor",$(Xe,d?N("palette-success-main"):v.success.main,.62)),L(v.Switch,"warningDisabledColor",$(Xe,d?N("palette-warning-main"):v.warning.main,.62)),L(v.TableCell,"border",$(Xe,Ar(d?N("palette-divider"):v.divider,1),.88)),L(v.Tooltip,"bg",$(Ar,d?N("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){L(v.Alert,"errorColor",$(Xe,d?N("palette-error-light"):v.error.light,.6)),L(v.Alert,"infoColor",$(Xe,d?N("palette-info-light"):v.info.light,.6)),L(v.Alert,"successColor",$(Xe,d?N("palette-success-light"):v.success.light,.6)),L(v.Alert,"warningColor",$(Xe,d?N("palette-warning-light"):v.warning.light,.6)),L(v.Alert,"errorFilledBg",Y("palette-error-dark")),L(v.Alert,"infoFilledBg",Y("palette-info-dark")),L(v.Alert,"successFilledBg",Y("palette-success-dark")),L(v.Alert,"warningFilledBg",Y("palette-warning-dark")),L(v.Alert,"errorFilledColor",tn(()=>v.getContrastText(v.error.dark))),L(v.Alert,"infoFilledColor",tn(()=>v.getContrastText(v.info.dark))),L(v.Alert,"successFilledColor",tn(()=>v.getContrastText(v.success.dark))),L(v.Alert,"warningFilledColor",tn(()=>v.getContrastText(v.warning.dark))),L(v.Alert,"errorStandardBg",$(Qe,d?N("palette-error-light"):v.error.light,.9)),L(v.Alert,"infoStandardBg",$(Qe,d?N("palette-info-light"):v.info.light,.9)),L(v.Alert,"successStandardBg",$(Qe,d?N("palette-success-light"):v.success.light,.9)),L(v.Alert,"warningStandardBg",$(Qe,d?N("palette-warning-light"):v.warning.light,.9)),L(v.Alert,"errorIconColor",Y("palette-error-main")),L(v.Alert,"infoIconColor",Y("palette-info-main")),L(v.Alert,"successIconColor",Y("palette-success-main")),L(v.Alert,"warningIconColor",Y("palette-warning-main")),L(v.AppBar,"defaultBg",Y("palette-grey-900")),L(v.AppBar,"darkBg",Y("palette-background-paper")),L(v.AppBar,"darkColor",Y("palette-text-primary")),L(v.Avatar,"defaultBg",Y("palette-grey-600")),L(v.Button,"inheritContainedBg",Y("palette-grey-800")),L(v.Button,"inheritContainedHoverBg",Y("palette-grey-700")),L(v.Chip,"defaultBorder",Y("palette-grey-700")),L(v.Chip,"defaultAvatarColor",Y("palette-grey-300")),L(v.Chip,"defaultIconColor",Y("palette-grey-300")),L(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),L(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),L(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),L(v.LinearProgress,"primaryBg",$(Qe,d?N("palette-primary-main"):v.primary.main,.5)),L(v.LinearProgress,"secondaryBg",$(Qe,d?N("palette-secondary-main"):v.secondary.main,.5)),L(v.LinearProgress,"errorBg",$(Qe,d?N("palette-error-main"):v.error.main,.5)),L(v.LinearProgress,"infoBg",$(Qe,d?N("palette-info-main"):v.info.main,.5)),L(v.LinearProgress,"successBg",$(Qe,d?N("palette-success-main"):v.success.main,.5)),L(v.LinearProgress,"warningBg",$(Qe,d?N("palette-warning-main"):v.warning.main,.5)),L(v.Skeleton,"bg",W?$(Ar,d?N("palette-text-primary"):v.text.primary,.13):`rgba(${Y("palette-text-primaryChannel")} / 0.13)`),L(v.Slider,"primaryTrack",$(Qe,d?N("palette-primary-main"):v.primary.main,.5)),L(v.Slider,"secondaryTrack",$(Qe,d?N("palette-secondary-main"):v.secondary.main,.5)),L(v.Slider,"errorTrack",$(Qe,d?N("palette-error-main"):v.error.main,.5)),L(v.Slider,"infoTrack",$(Qe,d?N("palette-info-main"):v.info.main,.5)),L(v.Slider,"successTrack",$(Qe,d?N("palette-success-main"):v.success.main,.5)),L(v.Slider,"warningTrack",$(Qe,d?N("palette-warning-light"):v.warning.main,.5));const ie=W?$(Xe,d?N("palette-background-default"):v.background.default,.985):so(v.background.default,.98);L(v.SnackbarContent,"bg",ie),L(v.SnackbarContent,"color",tn(()=>W?Mp.text.primary:v.getContrastText(ie))),L(v.SpeedDialAction,"fabHoverBg",so(v.background.paper,.15)),L(v.StepConnector,"border",Y("palette-grey-600")),L(v.StepContent,"border",Y("palette-grey-600")),L(v.Switch,"defaultColor",Y("palette-grey-300")),L(v.Switch,"defaultDisabledColor",Y("palette-grey-600")),L(v.Switch,"primaryDisabledColor",$(Qe,d?N("palette-primary-main"):v.primary.main,.55)),L(v.Switch,"secondaryDisabledColor",$(Qe,d?N("palette-secondary-main"):v.secondary.main,.55)),L(v.Switch,"errorDisabledColor",$(Qe,d?N("palette-error-main"):v.error.main,.55)),L(v.Switch,"infoDisabledColor",$(Qe,d?N("palette-info-main"):v.info.main,.55)),L(v.Switch,"successDisabledColor",$(Qe,d?N("palette-success-main"):v.success.main,.55)),L(v.Switch,"warningDisabledColor",$(Qe,d?N("palette-warning-light"):v.warning.main,.55)),L(v.TableCell,"border",$(Qe,Ar(d?N("palette-divider"):v.divider,1),.68)),L(v.Tooltip,"bg",$(Ar,d?N("palette-grey-700"):v.grey[700],.92))}pn(v.background,"default"),pn(v.background,"paper"),pn(v.common,"background"),pn(v.common,"onBackground"),pn(v,"divider"),Object.keys(v).forEach(ie=>{const R=v[ie];ie!=="tonalOffset"&&R&&typeof R=="object"&&(R.main&&L(v[ie],"mainChannel",Ei(Ai(R.main))),R.light&&L(v[ie],"lightChannel",Ei(Ai(R.light))),R.dark&&L(v[ie],"darkChannel",Ei(Ai(R.dark))),R.contrastText&&L(v[ie],"contrastTextChannel",Ei(Ai(R.contrastText))),ie==="text"&&(pn(v[ie],"primary"),pn(v[ie],"secondary")),ie==="action"&&(R.active&&pn(v[ie],"active"),R.selected&&pn(v[ie],"selected")))})}),Q=r.reduce((ye,v)=>pa(ye,v),Q);const K={prefix:f,disableCssColorScheme:u,shouldSkipGeneratingVar:h,getSelector:Sx(Q),enableContrastVars:d},{vars:Se,generateThemeVars:ze,generateStyleSheets:Ie}=$S(Q,K);return Q.vars=Se,Object.entries(Q.colorSchemes[Q.defaultColorScheme]).forEach(([ye,v])=>{Q[ye]=v}),Q.generateThemeVars=ze,Q.generateStyleSheets=Ie,Q.generateSpacing=function(){return xp(_.spacing,kc(this))},Q.getColorSchemeSelector=QS(y),Q.spacing=Q.generateSpacing(),Q.shouldSkipGeneratingVar=h,Q.unstable_sxConfig={...ao,..._==null?void 0:_.unstable_sxConfig},Q.unstable_sx=function(v){return ol({sx:v,theme:this})},Q.toRuntimeSource=Hp,Q}function $p(n,r,i){n.colorSchemes&&i&&(n.colorSchemes[r]={...i!==!0&&i,palette:qc({...i===!0?{}:i.palette,mode:r})})}function Ax(n={},...r){const{palette:i,cssVariables:s=!1,colorSchemes:u=i?void 0:{light:!0},defaultColorScheme:f=i==null?void 0:i.mode,...d}=n,h=f||"light",y=u==null?void 0:u[h],p={...u,...i?{[h]:{...typeof y!="boolean"&&y,palette:i}}:void 0};if(s===!1){if(!("colorSchemes"in n))return Hc(n,...r);let _=i;"palette"in n||p[h]&&(p[h]!==!0?_=p[h].palette:h==="dark"&&(_={mode:"dark"}));const b=Hc({...n,palette:_},...r);return b.defaultColorScheme=h,b.colorSchemes=p,b.palette.mode==="light"&&(b.colorSchemes.light={...p.light!==!0&&p.light,palette:b.palette},$p(b,"dark",p.dark)),b.palette.mode==="dark"&&(b.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:b.palette},$p(b,"light",p.light)),b}return!i&&!("light"in p)&&h==="light"&&(p.light=!0),Cx({...d,colorSchemes:p,defaultColorScheme:h,...typeof s!="boolean"&&s},...r)}function Tx(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Rx(n){return parseFloat(n)}const Ox=Ax();function zx(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const kx=TS({themeId:a1,defaultTheme:Ox,rootShouldForwardProp:n=>zx(n)&&n!=="classes"}),Dx=HS;function Mx(n){return qS(n)}function Ux(n){return Cp("MuiSkeleton",n)}ES("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const jx=n=>{const{classes:r,variant:i,animation:s,hasChildren:u,width:f,height:d}=n;return t1({root:["root",i,s,u&&"withChildren",u&&!f&&"fitContent",u&&!d&&"heightAuto"]},Ux,r)},Zc=np`
128
+ export default theme;`}function Dp(r){return typeof r=="number"?`${(r*100).toFixed(0)}%`:`calc((${r}) * 100%)`}const PS=r=>{if(!Number.isNaN(+r))return+r;const n=r.match(/\d*\.?\d+/g);if(!n)return 0;let l=0;for(let s=0;s<n.length;s+=1)l+=+n[s];return l};function WS(r){Object.assign(r,{alpha(n,l){const s=this||r;return s.colorSpace?`oklch(from ${n} l c h / ${typeof l=="string"?`calc(${l})`:l})`:s.vars?`rgba(${n.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof l=="string"?`calc(${l})`:l})`:pp(n,PS(l))},lighten(n,l){const s=this||r;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${n}, #fff ${Dp(l)})`:Zs(n,l)},darken(n,l){const s=this||r;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${n}, #000 ${Dp(l)})`:Gs(n,l)}})}function Cc(r={},...n){const{breakpoints:l,mixins:s={},spacing:o,palette:f={},transitions:d={},typography:h={},shape:y,colorSpace:p,...x}=r;if(r.vars&&r.generateThemeVars===void 0)throw new Error(on(20));const N=_c({...f,colorSpace:p}),C=up(r);let S=oa(C,{mixins:LS(C.breakpoints,s),palette:N,shadows:$S.slice(),typography:HS(N,h),transitions:KS(d),zIndex:{...JS}});return S=oa(S,x),S=n.reduce((k,w)=>oa(k,w),S),S.unstable_sxConfig={...Ls,...x==null?void 0:x.unstable_sxConfig},S.unstable_sx=function(w){return $n({sx:w,theme:this})},S.toRuntimeSource=wp,WS(S),S}function e_(r){let n;return r<1?n=5.11916*r**2:n=4.5*Math.log(r+1)+2,Math.round(n*10)/1e3}const t_=[...Array(25)].map((r,n)=>{if(n===0)return"none";const l=e_(n);return`linear-gradient(rgba(255 255 255 / ${l}), rgba(255 255 255 / ${l}))`});function Ap(r){return{inputPlaceholder:r==="dark"?.5:.42,inputUnderline:r==="dark"?.7:.42,switchTrackDisabled:r==="dark"?.2:.12,switchTrack:r==="dark"?.3:.38}}function Tp(r){return r==="dark"?t_:[]}function a_(r){const{palette:n={mode:"light"},opacity:l,overlays:s,colorSpace:o,...f}=r,d=_c({...n,colorSpace:o});return{palette:d,opacity:{...Ap(d.mode),...l},overlays:s||Tp(d.mode),...f}}function r_(r){var n;return!!r[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!r[0].match(/sxConfig$/)||r[0]==="palette"&&!!((n=r[1])!=null&&n.match(/(mode|contrastThreshold|tonalOffset)/))}const n_=r=>[...[...Array(25)].map((n,l)=>`--${r?`${r}-`:""}overlays-${l}`),`--${r?`${r}-`:""}palette-AppBar-darkBg`,`--${r?`${r}-`:""}palette-AppBar-darkColor`],i_=r=>(n,l)=>{const s=r.rootSelector||":root",o=r.colorSchemeSelector;let f=o;if(o==="class"&&(f=".%s"),o==="data"&&(f="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(f=`[${o}="%s"]`),r.defaultColorScheme===n){if(n==="dark"){const d={};return n_(r.cssVarPrefix).forEach(h=>{d[h]=l[h],delete l[h]}),f==="media"?{[s]:l,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",n)]:d,[`${s}, ${f.replace("%s",n)}`]:l}:{[s]:{...l,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(n))}`}else if(n){if(f==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[s]:l}};if(f)return f.replace("%s",String(n))}return s};function l_(r,n){n.forEach(l=>{r[l]||(r[l]={})})}function U(r,n,l){!r[n]&&l&&(r[n]=l)}function cl(r){return typeof r!="string"||!r.startsWith("hsl")?r:hp(r)}function ar(r,n){`${n}Channel`in r||(r[`${n}Channel`]=sl(cl(r[n])))}function s_(r){return typeof r=="number"?`${r}px`:typeof r=="string"||typeof r=="function"||Array.isArray(r)?r:"8px"}const $a=r=>{try{return r()}catch{}},o_=(r="mui")=>ES(r);function Ec(r,n,l,s,o){if(!l)return;l=l===!0?{}:l;const f=o==="dark"?"dark":"light";if(!s){n[o]=a_({...l,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:r});return}const{palette:d,...h}=Cc({...s,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:r});return n[o]={...l,palette:d,opacity:{...Ap(f),...l==null?void 0:l.opacity},overlays:(l==null?void 0:l.overlays)||Tp(f)},h}function u_(r={},...n){const{colorSchemes:l={light:!0},defaultColorScheme:s,disableCssColorScheme:o=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:h=r_,colorSchemeSelector:y=l.light&&l.dark?"media":void 0,rootSelector:p=":root",...x}=r,N=Object.keys(l)[0],C=s||(l.light&&N!=="light"?"light":N),S=o_(f),{[C]:k,light:w,dark:q,...te}=l,Q={...te};let le=k;if((C==="dark"&&!("dark"in l)||C==="light"&&!("light"in l))&&(le=!0),!le)throw new Error(on(21,C));let I;d&&(I="oklch");const B=Ec(I,Q,le,x,C);w&&!Q.light&&Ec(I,Q,w,void 0,"light"),q&&!Q.dark&&Ec(I,Q,q,void 0,"dark");let K={defaultColorScheme:C,...B,cssVarPrefix:f,colorSchemeSelector:y,rootSelector:p,getCssVar:S,colorSchemes:Q,font:{...US(B.typography),...B.font},spacing:s_(x.spacing)};Object.keys(K.colorSchemes).forEach(_e=>{const b=K.colorSchemes[_e].palette,F=se=>{const Z=se.split("-"),H=Z[1],J=Z[2];return S(se,b[H][J])};b.mode==="light"&&(U(b.common,"background","#fff"),U(b.common,"onBackground","#000")),b.mode==="dark"&&(U(b.common,"background","#000"),U(b.common,"onBackground","#fff"));function X(se,Z,H){if(I){let J;return se===dn&&(J=`transparent ${((1-H)*100).toFixed(0)}%`),se===Xe&&(J=`#000 ${(H*100).toFixed(0)}%`),se===Ke&&(J=`#fff ${(H*100).toFixed(0)}%`),`color-mix(in ${I}, ${Z}, ${J})`}return se(Z,H)}if(l_(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){U(b.Alert,"errorColor",X(Xe,d?S("palette-error-light"):b.error.light,.6)),U(b.Alert,"infoColor",X(Xe,d?S("palette-info-light"):b.info.light,.6)),U(b.Alert,"successColor",X(Xe,d?S("palette-success-light"):b.success.light,.6)),U(b.Alert,"warningColor",X(Xe,d?S("palette-warning-light"):b.warning.light,.6)),U(b.Alert,"errorFilledBg",F("palette-error-main")),U(b.Alert,"infoFilledBg",F("palette-info-main")),U(b.Alert,"successFilledBg",F("palette-success-main")),U(b.Alert,"warningFilledBg",F("palette-warning-main")),U(b.Alert,"errorFilledColor",$a(()=>b.getContrastText(b.error.main))),U(b.Alert,"infoFilledColor",$a(()=>b.getContrastText(b.info.main))),U(b.Alert,"successFilledColor",$a(()=>b.getContrastText(b.success.main))),U(b.Alert,"warningFilledColor",$a(()=>b.getContrastText(b.warning.main))),U(b.Alert,"errorStandardBg",X(Ke,d?S("palette-error-light"):b.error.light,.9)),U(b.Alert,"infoStandardBg",X(Ke,d?S("palette-info-light"):b.info.light,.9)),U(b.Alert,"successStandardBg",X(Ke,d?S("palette-success-light"):b.success.light,.9)),U(b.Alert,"warningStandardBg",X(Ke,d?S("palette-warning-light"):b.warning.light,.9)),U(b.Alert,"errorIconColor",F("palette-error-main")),U(b.Alert,"infoIconColor",F("palette-info-main")),U(b.Alert,"successIconColor",F("palette-success-main")),U(b.Alert,"warningIconColor",F("palette-warning-main")),U(b.AppBar,"defaultBg",F("palette-grey-100")),U(b.Avatar,"defaultBg",F("palette-grey-400")),U(b.Button,"inheritContainedBg",F("palette-grey-300")),U(b.Button,"inheritContainedHoverBg",F("palette-grey-A100")),U(b.Chip,"defaultBorder",F("palette-grey-400")),U(b.Chip,"defaultAvatarColor",F("palette-grey-700")),U(b.Chip,"defaultIconColor",F("palette-grey-700")),U(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),U(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),U(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),U(b.LinearProgress,"primaryBg",X(Ke,d?S("palette-primary-main"):b.primary.main,.62)),U(b.LinearProgress,"secondaryBg",X(Ke,d?S("palette-secondary-main"):b.secondary.main,.62)),U(b.LinearProgress,"errorBg",X(Ke,d?S("palette-error-main"):b.error.main,.62)),U(b.LinearProgress,"infoBg",X(Ke,d?S("palette-info-main"):b.info.main,.62)),U(b.LinearProgress,"successBg",X(Ke,d?S("palette-success-main"):b.success.main,.62)),U(b.LinearProgress,"warningBg",X(Ke,d?S("palette-warning-light"):b.warning.main,.62)),U(b.Skeleton,"bg",I?X(dn,d?S("palette-text-primary"):b.text.primary,.11):`rgba(${F("palette-text-primaryChannel")} / 0.11)`),U(b.Slider,"primaryTrack",X(Ke,d?S("palette-primary-main"):b.primary.main,.62)),U(b.Slider,"secondaryTrack",X(Ke,d?S("palette-secondary-main"):b.secondary.main,.62)),U(b.Slider,"errorTrack",X(Ke,d?S("palette-error-main"):b.error.main,.62)),U(b.Slider,"infoTrack",X(Ke,d?S("palette-info-main"):b.info.main,.62)),U(b.Slider,"successTrack",X(Ke,d?S("palette-success-main"):b.success.main,.62)),U(b.Slider,"warningTrack",X(Ke,d?S("palette-warning-main"):b.warning.main,.62));const se=I?X(Xe,d?S("palette-background-default"):b.background.default,.6825):Ys(b.background.default,.8);U(b.SnackbarContent,"bg",se),U(b.SnackbarContent,"color",$a(()=>I?Sc.text.primary:b.getContrastText(se))),U(b.SpeedDialAction,"fabHoverBg",Ys(b.background.paper,.15)),U(b.StepConnector,"border",F("palette-grey-400")),U(b.StepContent,"border",F("palette-grey-400")),U(b.Switch,"defaultColor",F("palette-common-white")),U(b.Switch,"defaultDisabledColor",F("palette-grey-100")),U(b.Switch,"primaryDisabledColor",X(Ke,d?S("palette-primary-main"):b.primary.main,.62)),U(b.Switch,"secondaryDisabledColor",X(Ke,d?S("palette-secondary-main"):b.secondary.main,.62)),U(b.Switch,"errorDisabledColor",X(Ke,d?S("palette-error-main"):b.error.main,.62)),U(b.Switch,"infoDisabledColor",X(Ke,d?S("palette-info-main"):b.info.main,.62)),U(b.Switch,"successDisabledColor",X(Ke,d?S("palette-success-main"):b.success.main,.62)),U(b.Switch,"warningDisabledColor",X(Ke,d?S("palette-warning-main"):b.warning.main,.62)),U(b.TableCell,"border",X(Ke,dn(d?S("palette-divider"):b.divider,1),.88)),U(b.Tooltip,"bg",X(dn,d?S("palette-grey-700"):b.grey[700],.92))}if(b.mode==="dark"){U(b.Alert,"errorColor",X(Ke,d?S("palette-error-light"):b.error.light,.6)),U(b.Alert,"infoColor",X(Ke,d?S("palette-info-light"):b.info.light,.6)),U(b.Alert,"successColor",X(Ke,d?S("palette-success-light"):b.success.light,.6)),U(b.Alert,"warningColor",X(Ke,d?S("palette-warning-light"):b.warning.light,.6)),U(b.Alert,"errorFilledBg",F("palette-error-dark")),U(b.Alert,"infoFilledBg",F("palette-info-dark")),U(b.Alert,"successFilledBg",F("palette-success-dark")),U(b.Alert,"warningFilledBg",F("palette-warning-dark")),U(b.Alert,"errorFilledColor",$a(()=>b.getContrastText(b.error.dark))),U(b.Alert,"infoFilledColor",$a(()=>b.getContrastText(b.info.dark))),U(b.Alert,"successFilledColor",$a(()=>b.getContrastText(b.success.dark))),U(b.Alert,"warningFilledColor",$a(()=>b.getContrastText(b.warning.dark))),U(b.Alert,"errorStandardBg",X(Xe,d?S("palette-error-light"):b.error.light,.9)),U(b.Alert,"infoStandardBg",X(Xe,d?S("palette-info-light"):b.info.light,.9)),U(b.Alert,"successStandardBg",X(Xe,d?S("palette-success-light"):b.success.light,.9)),U(b.Alert,"warningStandardBg",X(Xe,d?S("palette-warning-light"):b.warning.light,.9)),U(b.Alert,"errorIconColor",F("palette-error-main")),U(b.Alert,"infoIconColor",F("palette-info-main")),U(b.Alert,"successIconColor",F("palette-success-main")),U(b.Alert,"warningIconColor",F("palette-warning-main")),U(b.AppBar,"defaultBg",F("palette-grey-900")),U(b.AppBar,"darkBg",F("palette-background-paper")),U(b.AppBar,"darkColor",F("palette-text-primary")),U(b.Avatar,"defaultBg",F("palette-grey-600")),U(b.Button,"inheritContainedBg",F("palette-grey-800")),U(b.Button,"inheritContainedHoverBg",F("palette-grey-700")),U(b.Chip,"defaultBorder",F("palette-grey-700")),U(b.Chip,"defaultAvatarColor",F("palette-grey-300")),U(b.Chip,"defaultIconColor",F("palette-grey-300")),U(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),U(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),U(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),U(b.LinearProgress,"primaryBg",X(Xe,d?S("palette-primary-main"):b.primary.main,.5)),U(b.LinearProgress,"secondaryBg",X(Xe,d?S("palette-secondary-main"):b.secondary.main,.5)),U(b.LinearProgress,"errorBg",X(Xe,d?S("palette-error-main"):b.error.main,.5)),U(b.LinearProgress,"infoBg",X(Xe,d?S("palette-info-main"):b.info.main,.5)),U(b.LinearProgress,"successBg",X(Xe,d?S("palette-success-main"):b.success.main,.5)),U(b.LinearProgress,"warningBg",X(Xe,d?S("palette-warning-main"):b.warning.main,.5)),U(b.Skeleton,"bg",I?X(dn,d?S("palette-text-primary"):b.text.primary,.13):`rgba(${F("palette-text-primaryChannel")} / 0.13)`),U(b.Slider,"primaryTrack",X(Xe,d?S("palette-primary-main"):b.primary.main,.5)),U(b.Slider,"secondaryTrack",X(Xe,d?S("palette-secondary-main"):b.secondary.main,.5)),U(b.Slider,"errorTrack",X(Xe,d?S("palette-error-main"):b.error.main,.5)),U(b.Slider,"infoTrack",X(Xe,d?S("palette-info-main"):b.info.main,.5)),U(b.Slider,"successTrack",X(Xe,d?S("palette-success-main"):b.success.main,.5)),U(b.Slider,"warningTrack",X(Xe,d?S("palette-warning-light"):b.warning.main,.5));const se=I?X(Ke,d?S("palette-background-default"):b.background.default,.985):Ys(b.background.default,.98);U(b.SnackbarContent,"bg",se),U(b.SnackbarContent,"color",$a(()=>I?vp.text.primary:b.getContrastText(se))),U(b.SpeedDialAction,"fabHoverBg",Ys(b.background.paper,.15)),U(b.StepConnector,"border",F("palette-grey-600")),U(b.StepContent,"border",F("palette-grey-600")),U(b.Switch,"defaultColor",F("palette-grey-300")),U(b.Switch,"defaultDisabledColor",F("palette-grey-600")),U(b.Switch,"primaryDisabledColor",X(Xe,d?S("palette-primary-main"):b.primary.main,.55)),U(b.Switch,"secondaryDisabledColor",X(Xe,d?S("palette-secondary-main"):b.secondary.main,.55)),U(b.Switch,"errorDisabledColor",X(Xe,d?S("palette-error-main"):b.error.main,.55)),U(b.Switch,"infoDisabledColor",X(Xe,d?S("palette-info-main"):b.info.main,.55)),U(b.Switch,"successDisabledColor",X(Xe,d?S("palette-success-main"):b.success.main,.55)),U(b.Switch,"warningDisabledColor",X(Xe,d?S("palette-warning-light"):b.warning.main,.55)),U(b.TableCell,"border",X(Xe,dn(d?S("palette-divider"):b.divider,1),.68)),U(b.Tooltip,"bg",X(dn,d?S("palette-grey-700"):b.grey[700],.92))}ar(b.background,"default"),ar(b.background,"paper"),ar(b.common,"background"),ar(b.common,"onBackground"),ar(b,"divider"),Object.keys(b).forEach(se=>{const Z=b[se];se!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&U(b[se],"mainChannel",sl(cl(Z.main))),Z.light&&U(b[se],"lightChannel",sl(cl(Z.light))),Z.dark&&U(b[se],"darkChannel",sl(cl(Z.dark))),Z.contrastText&&U(b[se],"contrastTextChannel",sl(cl(Z.contrastText))),se==="text"&&(ar(b[se],"primary"),ar(b[se],"secondary")),se==="action"&&(Z.active&&ar(b[se],"active"),Z.selected&&ar(b[se],"selected")))})}),K=n.reduce((_e,b)=>oa(_e,b),K);const ne={prefix:f,disableCssColorScheme:o,shouldSkipGeneratingVar:h,getSelector:i_(K),enableContrastVars:d},{vars:de,generateThemeVars:we,generateStyleSheets:Ue}=AS(K,ne);return K.vars=de,Object.entries(K.colorSchemes[K.defaultColorScheme]).forEach(([_e,b])=>{K[_e]=b}),K.generateThemeVars=we,K.generateStyleSheets=Ue,K.generateSpacing=function(){return op(x.spacing,pc(this))},K.getColorSchemeSelector=TS(y),K.spacing=K.generateSpacing(),K.shouldSkipGeneratingVar=h,K.unstable_sxConfig={...Ls,...x==null?void 0:x.unstable_sxConfig},K.unstable_sx=function(b){return $n({sx:b,theme:this})},K.toRuntimeSource=wp,K}function Op(r,n,l){r.colorSchemes&&l&&(r.colorSchemes[n]={...l!==!0&&l,palette:_c({...l===!0?{}:l.palette,mode:n})})}function c_(r={},...n){const{palette:l,cssVariables:s=!1,colorSchemes:o=l?void 0:{light:!0},defaultColorScheme:f=l==null?void 0:l.mode,...d}=r,h=f||"light",y=o==null?void 0:o[h],p={...o,...l?{[h]:{...typeof y!="boolean"&&y,palette:l}}:void 0};if(s===!1){if(!("colorSchemes"in r))return Cc(r,...n);let x=l;"palette"in r||p[h]&&(p[h]!==!0?x=p[h].palette:h==="dark"&&(x={mode:"dark"}));const N=Cc({...r,palette:x},...n);return N.defaultColorScheme=h,N.colorSchemes=p,N.palette.mode==="light"&&(N.colorSchemes.light={...p.light!==!0&&p.light,palette:N.palette},Op(N,"dark",p.dark)),N.palette.mode==="dark"&&(N.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:N.palette},Op(N,"light",p.light)),N}return!l&&!("light"in p)&&h==="light"&&(p.light=!0),u_({...d,colorSchemes:p,defaultColorScheme:h,...typeof s!="boolean"&&s},...n)}function f_(r){return String(r).match(/[\d.\-+]*\s*(.*)/)[1]||""}function d_(r){return parseFloat(r)}const m_=c_();function h_(r){return r!=="ownerState"&&r!=="theme"&&r!=="sx"&&r!=="as"}const p_=fS({themeId:L1,defaultTheme:m_,rootShouldForwardProp:r=>h_(r)&&r!=="classes"}),g_=CS;function y_(r){return _S(r)}function b_(r){return fp("MuiSkeleton",r)}sS("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const v_=r=>{const{classes:n,variant:l,animation:s,hasChildren:o,width:f,height:d}=r;return U1({root:["root",l,s,o&&"withChildren",o&&!f&&"fitContent",o&&!d&&"heightAuto"]},b_,n)},wc=Gh`
121
129
  0% {
122
130
  opacity: 1;
123
131
  }
@@ -129,7 +137,7 @@ export default theme;`}function Gp(n){return typeof n=="number"?`${(n*100).toFix
129
137
  100% {
130
138
  opacity: 1;
131
139
  }
132
- `,Yc=np`
140
+ `,Dc=Gh`
133
141
  0% {
134
142
  transform: translateX(-100%);
135
143
  }
@@ -142,15 +150,15 @@ export default theme;`}function Gp(n){return typeof n=="number"?`${(n*100).toFix
142
150
  100% {
143
151
  transform: translateX(100%);
144
152
  }
145
- `,Bx=typeof Zc!="string"?Cc`
146
- animation: ${Zc} 2s ease-in-out 0.5s infinite;
147
- `:null,Lx=typeof Yc!="string"?Cc`
153
+ `,x_=typeof wc!="string"?uc`
154
+ animation: ${wc} 2s ease-in-out 0.5s infinite;
155
+ `:null,N_=typeof Dc!="string"?uc`
148
156
  &::after {
149
- animation: ${Yc} 2s linear 0.5s infinite;
157
+ animation: ${Dc} 2s linear 0.5s infinite;
150
158
  }
151
- `:null,Vx=kx("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,r[i.variant],i.animation!==!1&&r[i.animation],i.hasChildren&&r.withChildren,i.hasChildren&&!i.width&&r.fitContent,i.hasChildren&&!i.height&&r.heightAuto]}})(Dx(({theme:n})=>{const r=Tx(n.shape.borderRadius)||"px",i=Rx(n.shape.borderRadius);return{display:"block",backgroundColor:n.vars?n.vars.palette.Skeleton.bg:n.alpha(n.palette.text.primary,n.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${r}/${Math.round(i/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(n.vars||n).shape.borderRadius}},{props:({ownerState:s})=>s.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:s})=>s.hasChildren&&!s.width,style:{maxWidth:"fit-content"}},{props:({ownerState:s})=>s.hasChildren&&!s.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Bx||{animation:`${Zc} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
159
+ `:null,S_=p_("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(r,n)=>{const{ownerState:l}=r;return[n.root,n[l.variant],l.animation!==!1&&n[l.animation],l.hasChildren&&n.withChildren,l.hasChildren&&!l.width&&n.fitContent,l.hasChildren&&!l.height&&n.heightAuto]}})(g_(({theme:r})=>{const n=f_(r.shape.borderRadius)||"px",l=d_(r.shape.borderRadius);return{display:"block",backgroundColor:r.vars?r.vars.palette.Skeleton.bg:r.alpha(r.palette.text.primary,r.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${l}${n}/${Math.round(l/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(r.vars||r).shape.borderRadius}},{props:({ownerState:s})=>s.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:s})=>s.hasChildren&&!s.width,style:{maxWidth:"fit-content"}},{props:({ownerState:s})=>s.hasChildren&&!s.height,style:{height:"auto"}},{props:{animation:"pulse"},style:x_||{animation:`${wc} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
152
160
  90deg,
153
161
  transparent,
154
- ${(n.vars||n).palette.action.hover},
162
+ ${(r.vars||r).palette.action.hover},
155
163
  transparent
156
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Lx||{"&::after":{animation:`${Yc} 2s linear 0.5s infinite`}}}]}})),qx=te.forwardRef(function(r,i){const s=Mx({props:r,name:"MuiSkeleton"}),{animation:u="pulse",className:f,component:d="span",height:h,style:y,variant:p="text",width:_,...b}=s,C={...s,animation:u,component:d,variant:p,hasChildren:!!b.children},N=jx(C);return xN.jsx(Vx,{as:d,ref:i,className:Th(N.root,f),ownerState:C,...b,style:{width:_,height:h,...y}})}),Hx=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);try{const i=await(await fetch(`${br("VITE_API_URL")}/api/token.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({tenant_id:n})})).json();if(!i.success)throw new Error("PBMLOG: Authorization failed!");return rt.set("pbm-token",i.access_token,{secure:!0,sameSite:"Strict",expires:i.expires_in/86400}),rt.set("tenant_id",n,{secure:!0,sameSite:"Strict",expires:7}),i}catch(r){return console.error("Error during authorization:",r),{success:!1,error:"Authorization failed"}}},Gx={primaryColor:"#44c2c0",secondaryColor:"#339c9b",backgroundColor:"#ffffff",textColor:"#52525b",borderColor:"#44c2c0",inputOutlineColor:"transparent",inputOutlineFocusColor:"#323232",inputBackgroundColor:"#EDEDED",inputFocusBackgroundColor:"#EDEDED"},Zx=Zu(n=>({...Gx,setTheme:r=>n(i=>({...i,...r}))}));function Qp(n){return Yu(Zx,(r=>r))}const Yx=2,$x=30,Qx=()=>{const n=new Date,r=new Date(n);return r.setHours(Yx,$x,0,0),r.getTime()<=n.getTime()&&r.setDate(r.getDate()+1),r.getTime()},Ti=new Map;function Xx(n){return`load-products-table:${n}`}function Fx(n){const r=Ti.get(n);if(r&&Date.now()<r.expiresAt)return r.data;try{const i=localStorage.getItem(n);if(!i)return null;const s=JSON.parse(i);return Date.now()>=s.expiresAt?(localStorage.removeItem(n),null):(Ti.set(n,s),s.data)}catch{return null}}function Kx(n,r){const i={data:r,expiresAt:Qx(),success:!0};Ti.set(n,i),localStorage.setItem(n,JSON.stringify(i))}const Jx=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);const r=Xx(n),i=Fx(r);if(i)return{data:i,expiresAt:Ti.get(r).expiresAt,success:!0};const u=await(await fetch(`${br("VITE_API_URL")}/api/load-tables.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:n})})).json();if(u.informativeText!=="Processamento aprovado")throw new Error("PBMLOG: Load Products Table Failed!");rt.set("current-table-id",u.control.tableId,{secure:!0,sameSite:"Strict",expires:1}),rt.set("current-central-number",u.control.centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),rt.set("current-local-hour",u.local_hour,{secure:!0,sameSite:"Strict",expires:1});const f=Px(u.control.tableImage);return Kx(r,f),{data:f,expiresAt:Ti.get(r).expiresAt,success:!0}};function Px(n){const r=n.map(d=>d.state),i=n.flatMap(d=>d.cities.map(h=>h.city)),s=n.flatMap(d=>d.cities.flatMap(h=>h.federalCodes.map(y=>y.federalCode))),u=n.flatMap(d=>d.cities.flatMap(h=>h.federalCodes.flatMap(y=>y.programNames.map(p=>p.programName)))),f=n.flatMap(d=>d.cities.flatMap(h=>h.federalCodes.flatMap(y=>y.programNames.flatMap(p=>p.products.map(_=>_.ean)))));return{states:r,cities:i,federalCodes:s,programNames:u,products:f}}const Ix=async({tenant_id:n,product:r})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);if(!r)throw new Error("Product information is required");try{const s=await(await fetch(`${br("VITE_API_URL")}/api/product.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:n,product:r,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour")})})).json();if(!s.success)throw new Error("PBMLOG: Get Product Failed!");return s}catch(i){return console.error("Error during get product:",i),{success:!1,error:"Get Product Failed"}}},Wx=n=>{const{setTargetProduct:r,setBenefitsList:i,setIsAuthenticatedShopper:s,setCustomLoginUrl:u}=ta(),{setTheme:f}=Qp(),[d,h]=te.useState(!1),[y,p]=te.useState(!1),[_,b]=te.useState(!0),C=async()=>{try{const E=await Hx({tenant_id:n.tenant_id});return E.success||console.error("PBMLOG: Authorization failed!"),E.success}catch(E){return console.error("Error fetching authorization:",E),!1}},N=async()=>{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),b(!1),!1;try{const E=await Jx({tenant_id:n.tenant_id});return E.success?E.data.products.includes(n.target_product.ean.toString())?(b(!0),!0):!1:(console.error("PBMLOG: Product validation failed!"),!1)}catch(E){console.error("Error fetching product validation:",E),b(!1)}return!1},U=async()=>{try{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),b(!1),!1;const E=await Ix({tenant_id:n.tenant_id,product:n.target_product});return E.success?!E.product||E.product.length===0?(console.error("PBMLOG: Product not found in discount check!"),b(!1),!1):(r({...E.product[0],requestedQuantity:"1",listPrice:wa.priceToInteger(n.target_product.listPrice),netPrice:wa.priceToInteger(n.target_product.netPrice)}),i(E.product.map(q=>({...q,listPrice:n.target_product.listPrice,netPrice:n.target_product.netPrice}))),s(n.is_authenticated_shopper),u(n.custom_login_url),b(!0),!0):(console.error("PBMLOG: Product discount check failed!"),b(!1),!1)}catch(E){return console.error(E),b(!1),!1}};return te.useEffect(()=>{let E=!0;return(async()=>{if(n.theme&&f(n.theme),!await C()||!E)return;const F=await Promise.all([N(),U()].filter(Boolean)).then(ae=>ae.every(Boolean));p(F),!(!F||!E)&&E&&h(!0)})(),()=>{E=!1}},[n.tenant_id]),{IsReady:d,IsValid:y,EanProductExist:_}};var Pt="C:\\Dev\\agrada\\library-pbm\\src\\PBM.tsx";function e2(n){const{state:r}=ta(),{IsReady:i,EanProductExist:s,IsValid:u}=Wx(n),{setErrorMessage:f}=xh(),d=Qp(),[h,y]=te.useTransition();if(u)return i?s?React.createElement("div",{id:"pbm-library-root",style:{"--pbm-primary":d.primaryColor,"--pbm-secondary":d.secondaryColor,"--pbm-bg":d.backgroundColor,"--pbm-text":d.textColor,"--pbm-border":d.borderColor,"--pbm-outline-color":d.inputOutlineColor,"--pbm-outline-focus-color":d.inputOutlineFocusColor,"--pbm-input-focus-background":d.inputFocusBackgroundColor,"--pbm-input-background":d.inputBackgroundColor},__self:this,__source:{fileName:Pt,lineNumber:57,columnNumber:5}},React.createElement(ic,{variant:"main",__self:this,__source:{fileName:Pt,lineNumber:73,columnNumber:7}},React.createElement(R_,{__self:this,__source:{fileName:Pt,lineNumber:74,columnNumber:9}}),React.createElement(ic,{variant:"simple",__self:this,__source:{fileName:Pt,lineNumber:76,columnNumber:9}},h?React.createElement(O_,{__self:this,__source:{fileName:Pt,lineNumber:78,columnNumber:13}}):React.createElement(React.Fragment,null,r==="isEmpty"&&React.createElement(E_,{startTransition:y,__self:this,__source:{fileName:Pt,lineNumber:82,columnNumber:17}}),r==="isInvalid"&&React.createElement(B_,{__self:this,__source:{fileName:Pt,lineNumber:84,columnNumber:41}}),r==="isRegistered"&&React.createElement(L_,{__self:this,__source:{fileName:Pt,lineNumber:85,columnNumber:44}}),(r==="isActivated"||r==="isPreview")&&React.createElement(U_,{__self:this,__source:{fileName:Pt,lineNumber:87,columnNumber:17}}),r==="isError"&&React.createElement(Eh,{__self:this,__source:{fileName:Pt,lineNumber:89,columnNumber:39}})))),React.createElement(e1,{ID:"ShopperIsNotAuthenticated",__self:this,__source:{fileName:Pt,lineNumber:95,columnNumber:7}}),React.createElement(J_,{ID:"CustomerNotRegistered",__self:this,__source:{fileName:Pt,lineNumber:96,columnNumber:7}})):(f("O produto não foi encontrado no sistema. Por favor, tente novamente mais tarde ou contate o suporte."),React.createElement("div",{id:"pbm-library-root",__self:this,__source:{fileName:Pt,lineNumber:50,columnNumber:7}},React.createElement(Eh,{__self:this,__source:{fileName:Pt,lineNumber:51,columnNumber:9}}))):React.createElement(qx,{variant:"rectangular",style:{borderRadius:"12px"},width:460,height:358,__self:this,__source:{fileName:Pt,lineNumber:35,columnNumber:7}})}const t2=`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;@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-50: oklch(97.1% .013 17.38);--color-red-300: oklch(80.8% .114 19.571);--color-red-400: oklch(70.4% .191 22.216);--color-red-500: oklch(63.7% .237 25.331);--color-red-600: oklch(57.7% .245 27.325);--color-green-100: oklch(96.2% .044 156.743);--color-green-400: oklch(79.2% .209 151.711);--color-green-500: oklch(72.3% .219 149.579);--color-emerald-50: oklch(97.9% .021 166.113);--color-emerald-200: oklch(90.5% .093 164.15);--color-emerald-500: oklch(69.6% .17 162.48);--color-emerald-600: oklch(59.6% .145 163.225);--color-emerald-700: oklch(50.8% .118 165.612);--color-blue-400: oklch(70.7% .165 254.624);--color-blue-500: oklch(62.3% .214 259.815);--color-gray-50: oklch(98.5% .002 247.839);--color-gray-100: oklch(96.7% .003 264.542);--color-gray-200: oklch(92.8% .006 264.531);--color-gray-300: oklch(87.2% .01 258.338);--color-gray-400: oklch(70.7% .022 261.325);--color-gray-500: oklch(55.1% .027 264.364);--color-gray-600: oklch(44.6% .03 256.802);--color-gray-800: oklch(27.8% .033 256.848);--color-zinc-50: oklch(98.5% 0 0);--color-zinc-100: oklch(96.7% .001 286.375);--color-zinc-200: oklch(92% .004 286.32);--color-zinc-300: oklch(87.1% .006 286.286);--color-zinc-400: oklch(70.5% .015 286.067);--color-zinc-500: oklch(55.2% .016 285.938);--color-zinc-600: oklch(44.2% .017 285.786);--color-zinc-700: oklch(37% .013 285.805);--color-zinc-800: oklch(27.4% .006 286.033);--color-zinc-900: oklch(21% .006 285.885);--color-black: #000;--color-white: #fff;--spacing: .25rem;--container-3xs: 16rem;--text-xs: .75rem;--text-xs--line-height: calc(1 / .75);--text-sm: .875rem;--text-sm--line-height: calc(1.25 / .875);--text-base: 1rem;--text-base--line-height: 1.5 ;--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);--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--tracking-wide: .025em;--leading-snug: 1.375;--radius-lg: .5rem;--radius-xl: .75rem;--radius-2xl: 1rem;--animate-spin: spin 1s linear infinite;--default-transition-duration: .15s;--default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);--default-font-family: var(--font-sans);--default-mono-font-family: var(--font-mono)}}@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;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}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{font-size:75%;line-height:0;position:relative;vertical-align:baseline}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{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}: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}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){::placeholder{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,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-4{top:calc(var(--spacing) * -4)}.top-1\\/2{top:50%}.top-3\\.5{top:calc(var(--spacing) * 3.5)}.-right-3{right:calc(var(--spacing) * -3)}.right-3{right:calc(var(--spacing) * 3)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.left-2{left:calc(var(--spacing) * 2)}.left-10{left:calc(var(--spacing) * 10)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-auto{aspect-ratio:auto}.h-0{height:calc(var(--spacing) * 0)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-auto{height:auto}.max-h-\\[90vh\\]{max-height:90vh}.w-1\\/5{width:20%}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-3xs{width:var(--container-3xs)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-16{width:calc(var(--spacing) * 16)}.w-auto{width:auto}.w-full{width:100%}.max-w-\\(--max-container\\){max-width:var(--max-container)}.max-w-125{max-width:calc(var(--spacing) * 125)}.max-w-\\[var\\(--max-container\\)\\]{max-width:var(--max-container)}.min-w-\\(--min-container\\){min-width:var(--min-container)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-125{min-width:calc(var(--spacing) * 125)}.min-w-\\[var\\(--min-container\\)\\]{min-width:var(--min-container)}.flex-1{flex:1}.flex-2{flex:2}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-0{rotate:0deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-center-safe{align-items:safe center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-center-safe{justify-content:safe center}.justify-end{justify-content:flex-end}.justify-end-safe{justify-content:safe 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-4\\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:calc(infinity * 1px)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\(--pbm-border\\){border-color:var(--pbm-border)}.border-\\(--pbm-primary\\){border-color:var(--pbm-primary)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-700{border-color:var(--color-emerald-700)}.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-red-300{border-color:var(--color-red-300)}.border-red-400{border-color:var(--color-red-400)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-300{border-color:var(--color-zinc-300)}.border-zinc-400\\/50{border-color:color-mix(in srgb,oklch(70.5% .015 286.067) 50%,transparent)}@supports (color: color-mix(in lab,red,red)){.border-zinc-400\\/50{border-color:color-mix(in oklab,var(--color-zinc-400) 50%,transparent)}}.bg-\\(--pbm-input-background\\){background-color:var(--pbm-input-background)}.bg-\\(--pbm-primary\\){background-color:var(--pbm-primary)}.bg-\\(--primary-color\\){background-color:var(--primary-color)}.bg-black\\/40{background-color:color-mix(in srgb,#000 40%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-emerald-50\\/60{background-color:color-mix(in srgb,oklch(97.9% .021 166.113) 60%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-emerald-50\\/60{background-color:color-mix(in oklab,var(--color-emerald-50) 60%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/40{background-color:color-mix(in srgb,oklch(97.1% .013 17.38) 40%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-red-50\\/40{background-color:color-mix(in oklab,var(--color-red-50) 40%,transparent)}}.bg-transparent{background-color:transparent}.bg-white{background-color:var(--color-white)}.bg-zinc-50\\/40{background-color:color-mix(in srgb,oklch(98.5% 0 0) 40%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-zinc-50\\/40{background-color:color-mix(in oklab,var(--color-zinc-50) 40%,transparent)}}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-300\\/60{background-color:color-mix(in srgb,oklch(87.1% .006 286.286) 60%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-zinc-300\\/60{background-color:color-mix(in oklab,var(--color-zinc-300) 60%,transparent)}}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-start{text-align:start}.text-base{font-size:var(--text-base);line-height:var(--tw-leading, var(--text-base--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-xs{font-size:var(--text-xs);line-height:var(--tw-leading, var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-snug{--tw-leading: var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight: var(--font-weight-bold);font-weight:var(--font-weight-bold)}.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)}.tracking-wide{--tw-tracking: var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-nowrap{text-wrap:nowrap}.whitespace-nowrap{white-space:nowrap}.text-\\(--pbm-primary\\){color:var(--pbm-primary)}.text-blue-500{color:var(--color-blue-500)}.text-emerald-600{color:var(--color-emerald-600)}.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-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-800{color:var(--color-zinc-800)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0%}.opacity-25{opacity:25%}.opacity-60{opacity:60%}.opacity-75{opacity:75%}.opacity-100{opacity:100%}.shadow{--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / .1));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, rgb(0 0 0 / .1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(4px + 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)}.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color: var(--pbm-primary)}@supports (color: color-mix(in lab,red,red)){.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color: color-mix(in oklab, var(--pbm-primary) 15%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-\\(--pbm-outline-color\\){outline-color:var(--pbm-outline-color)}.outline-red-600{outline-color:var(--color-red-600)}.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,)}.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))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function));transition-duration:var(--tw-duration, var(--default-transition-duration))}.duration-100{--tw-duration: .1s;transition-duration:.1s}.duration-150{--tw-duration: .15s;transition-duration:.15s}.duration-300{--tw-duration: .3s;transition-duration:.3s}.outline-none{--tw-outline-style: none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.placeholder\\:text-sm::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading, var(--text-sm--line-height))}.placeholder\\:font-semibold::placeholder{--tw-font-weight: var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.placeholder\\:text-zinc-600::placeholder{color:var(--color-zinc-600)}.after\\:h-2:after{content:var(--tw-content);height:calc(var(--spacing) * 2)}.after\\:w-2:after{content:var(--tw-content);width:calc(var(--spacing) * 2)}.after\\:scale-0:after{content:var(--tw-content);--tw-scale-x: 0%;--tw-scale-y: 0%;--tw-scale-z: 0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.after\\:rounded-full:after{content:var(--tw-content);border-radius:calc(infinity * 1px)}.after\\:bg-\\(--pbm-primary\\):after{content:var(--tw-content);background-color:var(--pbm-primary)}.after\\:transition-transform:after{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function));transition-duration:var(--tw-duration, var(--default-transition-duration))}.after\\:duration-200:after{content:var(--tw-content);--tw-duration: .2s;transition-duration:.2s}.after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.peer-checked\\:after\\:scale-100:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-scale-x: 100%;--tw-scale-y: 100%;--tw-scale-z: 100%;scale:var(--tw-scale-x) var(--tw-scale-y)}@media(hover:hover){.hover\\:border-\\(--pbm-primary\\):hover{border-color:var(--pbm-primary)}}@media(hover:hover){.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}}@media(hover:hover){.hover\\:border-zinc-200:hover{border-color:var(--color-zinc-200)}}@media(hover:hover){.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:var(--pbm-primary)}@supports (color: color-mix(in lab,red,red)){.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}}@media(hover:hover){.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:var(--primary-color)}@supports (color: color-mix(in lab,red,red)){.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:color-mix(in oklab,var(--primary-color) 80%,transparent)}}}@media(hover:hover){.hover\\:bg-blue-400:hover{background-color:var(--color-blue-400)}}@media(hover:hover){.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}}@media(hover:hover){.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}}@media(hover:hover){.hover\\:bg-gray-500:hover{background-color:var(--color-gray-500)}}@media(hover:hover){.hover\\:bg-green-400:hover{background-color:var(--color-green-400)}}@media(hover:hover){.hover\\:bg-transparent:hover{background-color:transparent}}@media(hover:hover){.hover\\:bg-zinc-600\\/10:hover{background-color:color-mix(in srgb,oklch(44.2% .017 285.786) 10%,transparent)}@supports (color: color-mix(in lab,red,red)){.hover\\:bg-zinc-600\\/10:hover{background-color:color-mix(in oklab,var(--color-zinc-600) 10%,transparent)}}}@media(hover:hover){.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:var(--pbm-primary)}@supports (color: color-mix(in lab,red,red)){.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}}@media(hover:hover){.hover\\:text-gray-600:hover{color:var(--color-gray-600)}}@media(hover:hover){.hover\\:text-zinc-400:hover{color:var(--color-zinc-400)}}@media(hover:hover){.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:bg-\\(--pbm-input-focus\\):focus{background-color:var(--pbm-input-focus)}.focus\\:bg-white:focus{background-color:var(--color-white)}.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-blue-500\\/30:focus{--tw-ring-color: color-mix(in srgb, oklch(62.3% .214 259.815) 30%, transparent)}@supports (color: color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/30:focus{--tw-ring-color: color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.focus\\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.focus\\:outline-\\(--pbm-outline-focus-color\\):focus{outline-color:var(--pbm-outline-focus-color)}@media(min-width:40rem){.sm\\:block{display:block}}}:root{--max-container: 556px;--min-container: 350px}@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;}@property --tw-rotate-y{syntax: "*"; inherits: false;}@property --tw-rotate-z{syntax: "*"; inherits: false;}@property --tw-skew-x{syntax: "*"; inherits: false;}@property --tw-skew-y{syntax: "*"; inherits: false;}@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-tracking{syntax: "*"; inherits: false;}@property --tw-shadow{syntax: "*"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: "*"; inherits: false;}@property --tw-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: "*"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: "*"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@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: "<length>"; inherits: false; initial-value: 0px;}@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-outline-style{syntax: "*"; inherits: false; initial-value: solid;}@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-drop-shadow-color{syntax: "*"; inherits: false;}@property --tw-drop-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@property --tw-drop-shadow-size{syntax: "*"; inherits: false;}@property --tw-duration{syntax: "*"; inherits: false;}@property --tw-content{syntax: "*"; initial-value: ""; inherits: false;}@property --tw-scale-x{syntax: "*"; inherits: false; initial-value: 1;}@property --tw-scale-y{syntax: "*"; inherits: false; initial-value: 1;}@property --tw-scale-z{syntax: "*"; inherits: false; initial-value: 1;}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x: 0;--tw-translate-y: 0;--tw-translate-z: 0;--tw-rotate-x: initial;--tw-rotate-y: initial;--tw-rotate-z: initial;--tw-skew-x: initial;--tw-skew-y: initial;--tw-border-style: solid;--tw-leading: initial;--tw-font-weight: initial;--tw-tracking: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-outline-style: solid;--tw-blur: initial;--tw-brightness: initial;--tw-contrast: initial;--tw-grayscale: initial;--tw-hue-rotate: initial;--tw-invert: initial;--tw-opacity: initial;--tw-saturate: initial;--tw-sepia: initial;--tw-drop-shadow: initial;--tw-drop-shadow-color: initial;--tw-drop-shadow-alpha: 100%;--tw-drop-shadow-size: initial;--tw-duration: initial;--tw-content: "";--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1}}}`,a2={id:"100282",ean:"7891142982513",requestedQuantity:"1",listPrice:"56579",netPrice:"56579"};var n2="C:\\Dev\\agrada\\library-pbm\\src\\web\\PBM-webcomponent.tsx";window.pbm=Ob();class r2 extends HTMLElement{constructor(){super();im(this,"root",null);im(this,"props",{tenant_id:"",target_product:a2,is_authenticated_shopper:!1,custom_login_url:"/login"});this.attachShadow({mode:"open"})}static get observedAttributes(){return["original_product_price","tenant_id","target_product","is_authenticated_shopper","custom_login_url","theme"]}updatePropsFromAttributes(){const i=this.getAttribute("tenant_id"),s=this.getAttribute("target_product"),u=this.getAttribute("is_authenticated_shopper"),f=this.getAttribute("custom_login_url"),d=this.getAttribute("theme");if(u!==null&&(this.props.is_authenticated_shopper=u==="true"),f!==null&&(this.props.custom_login_url=f===""?"/login":f),i!==null&&(this.props.tenant_id=i),s!==null&&(this.props.target_product=JSON.parse(s)),d!==null)try{this.props.theme=JSON.parse(d)}catch(h){console.error("PBMLOG: Error parsing theme attribute -",h)}}connectedCallback(){this.updatePropsFromAttributes(),this.mount()}attributeChangedCallback(i,s,u){if(i==="tenant_id"&&(this.props.tenant_id=u),i==="target_product"&&(this.props.target_product=JSON.parse(u)),i==="is_authenticated_shopper"&&(this.props.is_authenticated_shopper=u==="true"),i==="custom_login_url"&&(this.props.custom_login_url=u===""?"/login":u),i==="theme")try{this.props.theme=u?JSON.parse(u):void 0}catch(f){console.error("PBMLOG: Error parsing theme attribute -",f)}this.mount()}mount(){if(!this.isConnected)return;let i=this.shadowRoot;if(!(!i&&(this.attachShadow({mode:"open"}),i=this.shadowRoot,!i))){if(!i.querySelector("#pbm-shadow-root")){const s=document.createElement("div");s.id="pbm-shadow-root";const u=document.createElement("style");u.textContent=t2,i.appendChild(u),i.appendChild(s),this.root=Jv.createRoot(s)}this.root&&this.root.render(nt.createElement(e2,{...this.props,__self:this,__source:{fileName:n2,lineNumber:138,columnNumber:24}}))}}}customElements.define("pbm-component",r2)})();
164
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:N_||{"&::after":{animation:`${Dc} 2s linear 0.5s infinite`}}}]}})),__=ge.forwardRef(function(n,l){const s=y_({props:n,name:"MuiSkeleton"}),{animation:o="pulse",className:f,component:d="span",height:h,style:y,variant:p="text",width:x,...N}=s,C={...s,animation:o,component:d,variant:p,hasChildren:!!N.children},S=v_(C);return lN.jsx(S_,{as:d,ref:l,className:mh(S.root,f),ownerState:C,...N,style:{width:x,height:h,...y}})}),C_=async({tenant_id:r})=>{if(!r)throw new Error(`No configuration found for tenant: ${r}`);try{const l=await(await fetch(`${ln("VITE_API_URL")}/api/token.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({tenant_id:r})})).json();if(!l.success)throw new Error("PBMLOG: Authorization failed!");return nt.set("pbm-token",l.access_token,{secure:!0,sameSite:"Strict",expires:l.expires_in/86400}),nt.set("tenant_id",r,{secure:!0,sameSite:"Strict",expires:7}),l}catch(n){return console.error("Error during authorization:",n),{success:!1,error:"Authorization failed"}}},E_={primaryColor:"#44c2c0",secondaryColor:"#339c9b",backgroundColor:"#ffffff",textColor:"#52525b",borderColor:"#44c2c0",inputOutlineColor:"transparent",inputOutlineFocusColor:"#323232",inputBackgroundColor:"#EDEDED",inputFocusBackgroundColor:"#EDEDED"},w_=Du(r=>({...E_,setTheme:n=>r(l=>({...l,...n}))}));function Rp(r){return Au(w_,(n=>n))}const D_=2,A_=30,T_=()=>{const r=new Date,n=new Date(r);return n.setHours(D_,A_,0,0),n.getTime()<=r.getTime()&&n.setDate(n.getDate()+1),n.getTime()},fl=new Map;function O_(r){return`load-products-table:${r}`}function R_(r){const n=fl.get(r);if(n&&Date.now()<n.expiresAt)return n.data;try{const l=localStorage.getItem(r);if(!l)return null;const s=JSON.parse(l);return Date.now()>=s.expiresAt?(localStorage.removeItem(r),null):(fl.set(r,s),s.data)}catch{return null}}function M_(r,n){const l={data:n,expiresAt:T_(),success:!0};fl.set(r,l),localStorage.setItem(r,JSON.stringify(l))}const z_=async({tenant_id:r})=>{if(!r)throw new Error(`No configuration found for tenant: ${r}`);const n=O_(r),l=R_(n);if(l)return{data:l,expiresAt:fl.get(n).expiresAt,success:!0};const o=await(await fetch(`${ln("VITE_API_URL")}/api/load-tables.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${nt.get("pbm-token")}`},body:JSON.stringify({tenant_id:r})})).json();if(o.informativeText!=="Processamento aprovado")throw new Error("PBMLOG: Load Products Table Failed!");nt.set("current-table-id",o.control.tableId,{secure:!0,sameSite:"Strict",expires:1}),nt.set("current-central-number",o.control.centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),nt.set("current-local-hour",o.local_hour,{secure:!0,sameSite:"Strict",expires:1});const f=k_(o.control.tableImage);return M_(n,f),{data:f,expiresAt:fl.get(n).expiresAt,success:!0}};function k_(r){const n=r.map(d=>d.state),l=r.flatMap(d=>d.cities.map(h=>h.city)),s=r.flatMap(d=>d.cities.flatMap(h=>h.federalCodes.map(y=>y.federalCode))),o=r.flatMap(d=>d.cities.flatMap(h=>h.federalCodes.flatMap(y=>y.programNames.map(p=>p.programName)))),f=r.flatMap(d=>d.cities.flatMap(h=>h.federalCodes.flatMap(y=>y.programNames.flatMap(p=>p.products.map(x=>x.ean)))));return{states:n,cities:l,federalCodes:s,programNames:o,products:f}}const j_=async({tenant_id:r,product:n})=>{if(!r)throw new Error(`No configuration found for tenant: ${r}`);if(!n)throw new Error("Product information is required");try{const s=await(await fetch(`${ln("VITE_API_URL")}/api/product.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${nt.get("pbm-token")}`},body:JSON.stringify({tenant_id:r,product:n,table_id:nt.get("current-table-id"),local_hour:nt.get("current-local-hour")})})).json();if(!s.success)throw new Error("PBMLOG: Get Product Failed!");return s}catch(l){return console.error("Error during get product:",l),{success:!1,error:"Get Product Failed"}}},V_=r=>{const{setTargetProduct:n,setBenefitsList:l,setIsAuthenticatedShopper:s,setCustomLoginUrl:o}=Jt(),{setTheme:f}=Rp(),[d,h]=ge.useState(!1),[y,p]=ge.useState(!1),[x,N]=ge.useState(!0),C=async()=>{try{const w=await C_({tenant_id:r.tenant_id});return w.success||console.error("PBMLOG: Authorization failed!"),w.success}catch(w){return console.error("Error fetching authorization:",w),!1}},S=async()=>{if(!r.target_product)return console.error("PBMLOG: Target product is not defined."),N(!1),!1;try{const w=await z_({tenant_id:r.tenant_id});return w.success?w.data.products.includes(r.target_product.ean.toString())?(N(!0),!0):!1:(console.error("PBMLOG: Product validation failed!"),!1)}catch(w){console.error("Error fetching product validation:",w),N(!1)}return!1},k=async()=>{try{if(!r.target_product)return console.error("PBMLOG: Target product is not defined."),N(!1),!1;const w=await j_({tenant_id:r.tenant_id,product:r.target_product});return w.success?!w.product||w.product.length===0?(console.error("PBMLOG: Product not found in discount check!"),N(!1),!1):(n({...w.product[0],requestedQuantity:"1",listPrice:ba.priceToInteger(r.target_product.listPrice),netPrice:ba.priceToInteger(r.target_product.netPrice)}),l(w.product.map(q=>({...q,listPrice:r.target_product.listPrice,netPrice:r.target_product.netPrice}))),s(r.is_authenticated_shopper),o(r.custom_login_url),N(!0),!0):(console.error("PBMLOG: Product discount check failed!"),N(!1),!1)}catch(w){return console.error(w),N(!1),!1}};return ge.useEffect(()=>{let w=!0;return(async()=>{if(r.theme&&f(r.theme),!await C()||!w)return;const Q=await Promise.all([S(),k()].filter(Boolean)).then(le=>le.every(Boolean));p(Q),!(!Q||!w)&&w&&h(!0)})(),()=>{w=!1}},[r.tenant_id]),{IsReady:d,IsValid:y,EanProductExist:x}};function B_(r){const{state:n}=Jt(),{IsReady:l,EanProductExist:s,IsValid:o}=V_(r),{setErrorMessage:f}=oh(),d=Rp(),[h,y]=ge.useTransition();if(o)return l?s?v.jsxDEV("div",{id:"pbm-library-root",style:{"--pbm-primary":d.primaryColor,"--pbm-secondary":d.secondaryColor,"--pbm-bg":d.backgroundColor,"--pbm-text":d.textColor,"--pbm-border":d.borderColor,"--pbm-outline-color":d.inputOutlineColor,"--pbm-outline-focus-color":d.inputOutlineFocusColor,"--pbm-input-focus-background":d.inputFocusBackgroundColor,"--pbm-input-background":d.inputBackgroundColor},children:[v.jsxDEV(Yu,{variant:"main",children:[v.jsxDEV(g1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:74,columnNumber:9},this),v.jsxDEV(Yu,{variant:"simple",children:h?v.jsxDEV(y1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:78,columnNumber:13},this):v.jsxDEV(v.Fragment,{children:[n==="isEmpty"&&v.jsxDEV(f1,{startTransition:y},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:82,columnNumber:17},this),n==="isInvalid"&&v.jsxDEV(N1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:84,columnNumber:41},this),n==="isRegistered"&&v.jsxDEV(S1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:85,columnNumber:44},this),(n==="isActivated"||n==="isPreview")&&v.jsxDEV(x1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:87,columnNumber:17},this),n==="isError"&&v.jsxDEV(uh,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:89,columnNumber:39},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:80,columnNumber:13},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:76,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:73,columnNumber:7},this),v.jsxDEV(B1,{ID:"ShopperIsNotAuthenticated"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:95,columnNumber:7},this),v.jsxDEV(k1,{ID:"CustomerNotRegistered"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:96,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:57,columnNumber:5},this):(f("O produto não foi encontrado no sistema. Por favor, tente novamente mais tarde ou contate o suporte."),v.jsxDEV("div",{id:"pbm-library-root",children:v.jsxDEV(uh,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:51,columnNumber:9},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:50,columnNumber:7},this)):v.jsxDEV(__,{variant:"rectangular",style:{borderRadius:"12px"},width:460,height:358},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:35,columnNumber:7},this)}const U_=`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;@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-50: oklch(97.1% .013 17.38);--color-red-300: oklch(80.8% .114 19.571);--color-red-400: oklch(70.4% .191 22.216);--color-red-500: oklch(63.7% .237 25.331);--color-red-600: oklch(57.7% .245 27.325);--color-green-100: oklch(96.2% .044 156.743);--color-green-400: oklch(79.2% .209 151.711);--color-green-500: oklch(72.3% .219 149.579);--color-emerald-50: oklch(97.9% .021 166.113);--color-emerald-200: oklch(90.5% .093 164.15);--color-emerald-500: oklch(69.6% .17 162.48);--color-emerald-600: oklch(59.6% .145 163.225);--color-emerald-700: oklch(50.8% .118 165.612);--color-blue-400: oklch(70.7% .165 254.624);--color-blue-500: oklch(62.3% .214 259.815);--color-gray-50: oklch(98.5% .002 247.839);--color-gray-100: oklch(96.7% .003 264.542);--color-gray-200: oklch(92.8% .006 264.531);--color-gray-300: oklch(87.2% .01 258.338);--color-gray-400: oklch(70.7% .022 261.325);--color-gray-500: oklch(55.1% .027 264.364);--color-gray-600: oklch(44.6% .03 256.802);--color-gray-800: oklch(27.8% .033 256.848);--color-zinc-50: oklch(98.5% 0 0);--color-zinc-100: oklch(96.7% .001 286.375);--color-zinc-200: oklch(92% .004 286.32);--color-zinc-300: oklch(87.1% .006 286.286);--color-zinc-400: oklch(70.5% .015 286.067);--color-zinc-500: oklch(55.2% .016 285.938);--color-zinc-600: oklch(44.2% .017 285.786);--color-zinc-700: oklch(37% .013 285.805);--color-zinc-800: oklch(27.4% .006 286.033);--color-zinc-900: oklch(21% .006 285.885);--color-black: #000;--color-white: #fff;--spacing: .25rem;--container-3xs: 16rem;--text-xs: .75rem;--text-xs--line-height: calc(1 / .75);--text-sm: .875rem;--text-sm--line-height: calc(1.25 / .875);--text-base: 1rem;--text-base--line-height: 1.5 ;--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);--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--tracking-wide: .025em;--leading-snug: 1.375;--radius-lg: .5rem;--radius-xl: .75rem;--radius-2xl: 1rem;--animate-spin: spin 1s linear infinite;--default-transition-duration: .15s;--default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);--default-font-family: var(--font-sans);--default-mono-font-family: var(--font-mono)}}@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;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}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{font-size:75%;line-height:0;position:relative;vertical-align:baseline}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{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}: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}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){::placeholder{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,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-4{top:calc(var(--spacing) * -4)}.top-1\\/2{top:50%}.top-3\\.5{top:calc(var(--spacing) * 3.5)}.-right-3{right:calc(var(--spacing) * -3)}.right-3{right:calc(var(--spacing) * 3)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.left-2{left:calc(var(--spacing) * 2)}.left-10{left:calc(var(--spacing) * 10)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-auto{aspect-ratio:auto}.h-0{height:calc(var(--spacing) * 0)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-auto{height:auto}.max-h-\\[90vh\\]{max-height:90vh}.w-1\\/5{width:20%}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-3xs{width:var(--container-3xs)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-16{width:calc(var(--spacing) * 16)}.w-auto{width:auto}.w-full{width:100%}.max-w-\\(--max-container\\){max-width:var(--max-container)}.max-w-125{max-width:calc(var(--spacing) * 125)}.max-w-\\[var\\(--max-container\\)\\]{max-width:var(--max-container)}.min-w-\\(--min-container\\){min-width:var(--min-container)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-125{min-width:calc(var(--spacing) * 125)}.min-w-\\[var\\(--min-container\\)\\]{min-width:var(--min-container)}.flex-1{flex:1}.flex-2{flex:2}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-0{rotate:0deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-center-safe{align-items:safe center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-center-safe{justify-content:safe center}.justify-end{justify-content:flex-end}.justify-end-safe{justify-content:safe 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-4\\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:calc(infinity * 1px)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\(--pbm-border\\){border-color:var(--pbm-border)}.border-\\(--pbm-primary\\){border-color:var(--pbm-primary)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-700{border-color:var(--color-emerald-700)}.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-red-300{border-color:var(--color-red-300)}.border-red-400{border-color:var(--color-red-400)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-300{border-color:var(--color-zinc-300)}.border-zinc-400\\/50{border-color:color-mix(in srgb,oklch(70.5% .015 286.067) 50%,transparent)}@supports (color: color-mix(in lab,red,red)){.border-zinc-400\\/50{border-color:color-mix(in oklab,var(--color-zinc-400) 50%,transparent)}}.bg-\\(--pbm-input-background\\){background-color:var(--pbm-input-background)}.bg-\\(--pbm-primary\\){background-color:var(--pbm-primary)}.bg-\\(--primary-color\\){background-color:var(--primary-color)}.bg-black\\/40{background-color:color-mix(in srgb,#000 40%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-emerald-50\\/60{background-color:color-mix(in srgb,oklch(97.9% .021 166.113) 60%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-emerald-50\\/60{background-color:color-mix(in oklab,var(--color-emerald-50) 60%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/40{background-color:color-mix(in srgb,oklch(97.1% .013 17.38) 40%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-red-50\\/40{background-color:color-mix(in oklab,var(--color-red-50) 40%,transparent)}}.bg-transparent{background-color:transparent}.bg-white{background-color:var(--color-white)}.bg-zinc-50\\/40{background-color:color-mix(in srgb,oklch(98.5% 0 0) 40%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-zinc-50\\/40{background-color:color-mix(in oklab,var(--color-zinc-50) 40%,transparent)}}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-300\\/60{background-color:color-mix(in srgb,oklch(87.1% .006 286.286) 60%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-zinc-300\\/60{background-color:color-mix(in oklab,var(--color-zinc-300) 60%,transparent)}}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-start{text-align:start}.text-base{font-size:var(--text-base);line-height:var(--tw-leading, var(--text-base--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-xs{font-size:var(--text-xs);line-height:var(--tw-leading, var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-snug{--tw-leading: var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight: var(--font-weight-bold);font-weight:var(--font-weight-bold)}.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)}.tracking-wide{--tw-tracking: var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-nowrap{text-wrap:nowrap}.whitespace-nowrap{white-space:nowrap}.text-\\(--pbm-primary\\){color:var(--pbm-primary)}.text-blue-500{color:var(--color-blue-500)}.text-emerald-600{color:var(--color-emerald-600)}.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-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-800{color:var(--color-zinc-800)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0%}.opacity-25{opacity:25%}.opacity-60{opacity:60%}.opacity-75{opacity:75%}.opacity-100{opacity:100%}.shadow{--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / .1));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, rgb(0 0 0 / .1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(4px + 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)}.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color: var(--pbm-primary)}@supports (color: color-mix(in lab,red,red)){.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color: color-mix(in oklab, var(--pbm-primary) 15%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-\\(--pbm-outline-color\\){outline-color:var(--pbm-outline-color)}.outline-red-600{outline-color:var(--color-red-600)}.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,)}.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))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function));transition-duration:var(--tw-duration, var(--default-transition-duration))}.duration-100{--tw-duration: .1s;transition-duration:.1s}.duration-150{--tw-duration: .15s;transition-duration:.15s}.duration-300{--tw-duration: .3s;transition-duration:.3s}.outline-none{--tw-outline-style: none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.placeholder\\:text-sm::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading, var(--text-sm--line-height))}.placeholder\\:font-semibold::placeholder{--tw-font-weight: var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.placeholder\\:text-zinc-600::placeholder{color:var(--color-zinc-600)}.after\\:h-2:after{content:var(--tw-content);height:calc(var(--spacing) * 2)}.after\\:w-2:after{content:var(--tw-content);width:calc(var(--spacing) * 2)}.after\\:scale-0:after{content:var(--tw-content);--tw-scale-x: 0%;--tw-scale-y: 0%;--tw-scale-z: 0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.after\\:rounded-full:after{content:var(--tw-content);border-radius:calc(infinity * 1px)}.after\\:bg-\\(--pbm-primary\\):after{content:var(--tw-content);background-color:var(--pbm-primary)}.after\\:transition-transform:after{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function));transition-duration:var(--tw-duration, var(--default-transition-duration))}.after\\:duration-200:after{content:var(--tw-content);--tw-duration: .2s;transition-duration:.2s}.after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.peer-checked\\:after\\:scale-100:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-scale-x: 100%;--tw-scale-y: 100%;--tw-scale-z: 100%;scale:var(--tw-scale-x) var(--tw-scale-y)}@media(hover:hover){.hover\\:border-\\(--pbm-primary\\):hover{border-color:var(--pbm-primary)}}@media(hover:hover){.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}}@media(hover:hover){.hover\\:border-zinc-200:hover{border-color:var(--color-zinc-200)}}@media(hover:hover){.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:var(--pbm-primary)}@supports (color: color-mix(in lab,red,red)){.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}}@media(hover:hover){.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:var(--primary-color)}@supports (color: color-mix(in lab,red,red)){.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:color-mix(in oklab,var(--primary-color) 80%,transparent)}}}@media(hover:hover){.hover\\:bg-blue-400:hover{background-color:var(--color-blue-400)}}@media(hover:hover){.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}}@media(hover:hover){.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}}@media(hover:hover){.hover\\:bg-gray-500:hover{background-color:var(--color-gray-500)}}@media(hover:hover){.hover\\:bg-green-400:hover{background-color:var(--color-green-400)}}@media(hover:hover){.hover\\:bg-transparent:hover{background-color:transparent}}@media(hover:hover){.hover\\:bg-zinc-600\\/10:hover{background-color:color-mix(in srgb,oklch(44.2% .017 285.786) 10%,transparent)}@supports (color: color-mix(in lab,red,red)){.hover\\:bg-zinc-600\\/10:hover{background-color:color-mix(in oklab,var(--color-zinc-600) 10%,transparent)}}}@media(hover:hover){.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:var(--pbm-primary)}@supports (color: color-mix(in lab,red,red)){.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}}@media(hover:hover){.hover\\:text-gray-600:hover{color:var(--color-gray-600)}}@media(hover:hover){.hover\\:text-zinc-400:hover{color:var(--color-zinc-400)}}@media(hover:hover){.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:bg-\\(--pbm-input-focus\\):focus{background-color:var(--pbm-input-focus)}.focus\\:bg-white:focus{background-color:var(--color-white)}.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-blue-500\\/30:focus{--tw-ring-color: color-mix(in srgb, oklch(62.3% .214 259.815) 30%, transparent)}@supports (color: color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/30:focus{--tw-ring-color: color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.focus\\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.focus\\:outline-\\(--pbm-outline-focus-color\\):focus{outline-color:var(--pbm-outline-focus-color)}@media(min-width:40rem){.sm\\:block{display:block}}}:root{--max-container: 556px;--min-container: 350px}@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;}@property --tw-rotate-y{syntax: "*"; inherits: false;}@property --tw-rotate-z{syntax: "*"; inherits: false;}@property --tw-skew-x{syntax: "*"; inherits: false;}@property --tw-skew-y{syntax: "*"; inherits: false;}@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-tracking{syntax: "*"; inherits: false;}@property --tw-shadow{syntax: "*"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: "*"; inherits: false;}@property --tw-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: "*"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: "*"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@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: "<length>"; inherits: false; initial-value: 0px;}@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-outline-style{syntax: "*"; inherits: false; initial-value: solid;}@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-drop-shadow-color{syntax: "*"; inherits: false;}@property --tw-drop-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@property --tw-drop-shadow-size{syntax: "*"; inherits: false;}@property --tw-duration{syntax: "*"; inherits: false;}@property --tw-content{syntax: "*"; initial-value: ""; inherits: false;}@property --tw-scale-x{syntax: "*"; inherits: false; initial-value: 1;}@property --tw-scale-y{syntax: "*"; inherits: false; initial-value: 1;}@property --tw-scale-z{syntax: "*"; inherits: false; initial-value: 1;}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x: 0;--tw-translate-y: 0;--tw-translate-z: 0;--tw-rotate-x: initial;--tw-rotate-y: initial;--tw-rotate-z: initial;--tw-skew-x: initial;--tw-skew-y: initial;--tw-border-style: solid;--tw-leading: initial;--tw-font-weight: initial;--tw-tracking: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-outline-style: solid;--tw-blur: initial;--tw-brightness: initial;--tw-contrast: initial;--tw-grayscale: initial;--tw-hue-rotate: initial;--tw-invert: initial;--tw-opacity: initial;--tw-saturate: initial;--tw-sepia: initial;--tw-drop-shadow: initial;--tw-drop-shadow-color: initial;--tw-drop-shadow-alpha: 100%;--tw-drop-shadow-size: initial;--tw-duration: initial;--tw-content: "";--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1}}}`,L_={id:"100282",ean:"7891142982513",requestedQuantity:"1",listPrice:"56579",netPrice:"56579"};window.pbm=gv();class q_ extends HTMLElement{constructor(){super();Zd(this,"root",null);Zd(this,"props",{tenant_id:"",target_product:L_,is_authenticated_shopper:!1,custom_login_url:"/login"});this.attachShadow({mode:"open"})}static get observedAttributes(){return["original_product_price","tenant_id","target_product","is_authenticated_shopper","custom_login_url","theme"]}updatePropsFromAttributes(){const l=this.getAttribute("tenant_id"),s=this.getAttribute("target_product"),o=this.getAttribute("is_authenticated_shopper"),f=this.getAttribute("custom_login_url"),d=this.getAttribute("theme");if(o!==null&&(this.props.is_authenticated_shopper=o==="true"),f!==null&&(this.props.custom_login_url=f===""?"/login":f),l!==null&&(this.props.tenant_id=l),s!==null&&(this.props.target_product=JSON.parse(s)),d!==null)try{this.props.theme=JSON.parse(d)}catch(h){console.error("PBMLOG: Error parsing theme attribute -",h)}}connectedCallback(){this.updatePropsFromAttributes(),this.mount()}attributeChangedCallback(l,s,o){if(l==="tenant_id"&&(this.props.tenant_id=o),l==="target_product"&&(this.props.target_product=JSON.parse(o)),l==="is_authenticated_shopper"&&(this.props.is_authenticated_shopper=o==="true"),l==="custom_login_url"&&(this.props.custom_login_url=o===""?"/login":o),l==="theme")try{this.props.theme=o?JSON.parse(o):void 0}catch(f){console.error("PBMLOG: Error parsing theme attribute -",f)}this.mount()}mount(){if(!this.isConnected)return;let l=this.shadowRoot;if(!(!l&&(this.attachShadow({mode:"open"}),l=this.shadowRoot,!l))){if(!l.querySelector("#pbm-shadow-root")){const s=document.createElement("div");s.id="pbm-shadow-root";const o=document.createElement("style");o.textContent=U_,l.appendChild(o),l.appendChild(s),this.root=Bb.createRoot(s)}this.root&&this.root.render(v.jsxDEV(B_,{...this.props},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/web/PBM-webcomponent.tsx",lineNumber:138,columnNumber:24},this))}}}customElements.define("pbm-component",q_)})();