testempaquetado 3.0.0 → 3.1.2

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gl={exports:{}},fr={},yl={exports:{}},j={};/**
1
+ (function(){"use strict";function ad(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yl={exports:{}},fr={},Ml={exports:{}},C={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
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 Mn=Symbol.for("react.element"),lf=Symbol.for("react.portal"),uf=Symbol.for("react.fragment"),af=Symbol.for("react.strict_mode"),cf=Symbol.for("react.profiler"),ff=Symbol.for("react.provider"),df=Symbol.for("react.context"),pf=Symbol.for("react.forward_ref"),hf=Symbol.for("react.suspense"),gf=Symbol.for("react.memo"),yf=Symbol.for("react.lazy"),Ml=Symbol.iterator;function Mf(e){return e===null||typeof e!="object"?null:(e=Ml&&e[Ml]||e["@@iterator"],typeof e=="function"?e:null)}var ml={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xl=Object.assign,wl={};function Qt(e,t,n){this.props=e,this.context=t,this.refs=wl,this.updater=n||ml}Qt.prototype.isReactComponent={},Qt.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Qt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function vl(){}vl.prototype=Qt.prototype;function Pi(e,t,n){this.props=e,this.context=t,this.refs=wl,this.updater=n||ml}var Qi=Pi.prototype=new vl;Qi.constructor=Pi,xl(Qi,Qt.prototype),Qi.isPureReactComponent=!0;var Nl=Array.isArray,Tl=Object.prototype.hasOwnProperty,Yi={current:null},Il={key:!0,ref:!0,__self:!0,__source:!0};function Dl(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Tl.call(t,r)&&!Il.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Mn,type:e,key:o,ref:s,props:i,_owner:Yi.current}}function mf(e,t){return{$$typeof:Mn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bi(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mn}function xf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var El=/\/+/g;function Bi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xf(""+e.key):t.toString(36)}function dr(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Mn:case lf:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Bi(s,0):r,Nl(i)?(n="",e!=null&&(n=e.replace(El,"$&/")+"/"),dr(i,t,n,"",function(c){return c})):i!=null&&(bi(i)&&(i=mf(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(El,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Nl(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Bi(o,l);s+=dr(o,t,n,u,i)}else if(u=Mf(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Bi(o,l++),s+=dr(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function pr(e,t,n){if(e==null)return e;var r=[],i=0;return dr(e,r,"","",function(o){return t.call(n,o,i++)}),r}function wf(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ue={current:null},hr={transition:null},vf={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:hr,ReactCurrentOwner:Yi};function Sl(){throw Error("act(...) is not supported in production builds of React.")}j.Children={map:pr,forEach:function(e,t,n){pr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return pr(e,function(){t++}),t},toArray:function(e){return pr(e,function(t){return t})||[]},only:function(e){if(!bi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},j.Component=Qt,j.Fragment=uf,j.Profiler=cf,j.PureComponent=Pi,j.StrictMode=af,j.Suspense=hf,j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vf,j.act=Sl,j.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=xl({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Yi.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Tl.call(t,u)&&!Il.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:Mn,type:e.type,key:i,ref:o,props:r,_owner:s}},j.createContext=function(e){return e={$$typeof:df,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ff,_context:e},e.Consumer=e},j.createElement=Dl,j.createFactory=function(e){var t=Dl.bind(null,e);return t.type=e,t},j.createRef=function(){return{current:null}},j.forwardRef=function(e){return{$$typeof:pf,render:e}},j.isValidElement=bi,j.lazy=function(e){return{$$typeof:yf,_payload:{_status:-1,_result:e},_init:wf}},j.memo=function(e,t){return{$$typeof:gf,type:e,compare:t===void 0?null:t}},j.startTransition=function(e){var t=hr.transition;hr.transition={};try{e()}finally{hr.transition=t}},j.unstable_act=Sl,j.useCallback=function(e,t){return ue.current.useCallback(e,t)},j.useContext=function(e){return ue.current.useContext(e)},j.useDebugValue=function(){},j.useDeferredValue=function(e){return ue.current.useDeferredValue(e)},j.useEffect=function(e,t){return ue.current.useEffect(e,t)},j.useId=function(){return ue.current.useId()},j.useImperativeHandle=function(e,t,n){return ue.current.useImperativeHandle(e,t,n)},j.useInsertionEffect=function(e,t){return ue.current.useInsertionEffect(e,t)},j.useLayoutEffect=function(e,t){return ue.current.useLayoutEffect(e,t)},j.useMemo=function(e,t){return ue.current.useMemo(e,t)},j.useReducer=function(e,t,n){return ue.current.useReducer(e,t,n)},j.useRef=function(e){return ue.current.useRef(e)},j.useState=function(e){return ue.current.useState(e)},j.useSyncExternalStore=function(e,t,n){return ue.current.useSyncExternalStore(e,t,n)},j.useTransition=function(){return ue.current.useTransition()},j.version="18.3.1",yl.exports=j;var Q=yl.exports;const Nf=sf(Q);/**
9
+ */var mn=Symbol.for("react.element"),cd=Symbol.for("react.portal"),dd=Symbol.for("react.fragment"),fd=Symbol.for("react.strict_mode"),pd=Symbol.for("react.profiler"),hd=Symbol.for("react.provider"),gd=Symbol.for("react.context"),yd=Symbol.for("react.forward_ref"),Md=Symbol.for("react.suspense"),md=Symbol.for("react.memo"),xd=Symbol.for("react.lazy"),ml=Symbol.iterator;function wd(e){return e===null||typeof e!="object"?null:(e=ml&&e[ml]||e["@@iterator"],typeof e=="function"?e:null)}var xl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wl=Object.assign,Il={};function bt(e,t,n){this.props=e,this.context=t,this.refs=Il,this.updater=n||xl}bt.prototype.isReactComponent={},bt.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},bt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nl(){}Nl.prototype=bt.prototype;function Ri(e,t,n){this.props=e,this.context=t,this.refs=Il,this.updater=n||xl}var bi=Ri.prototype=new Nl;bi.constructor=Ri,wl(bi,bt.prototype),bi.isPureReactComponent=!0;var vl=Array.isArray,Tl=Object.prototype.hasOwnProperty,Yi={current:null},Dl={key:!0,ref:!0,__self:!0,__source:!0};function El(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Tl.call(t,r)&&!Dl.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:mn,type:e,key:o,ref:s,props:i,_owner:Yi.current}}function Id(e,t){return{$$typeof:mn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Bi(e){return typeof e=="object"&&e!==null&&e.$$typeof===mn}function Nd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sl=/\/+/g;function Fi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Nd(""+e.key):t.toString(36)}function pr(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case mn:case cd:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Fi(s,0):r,vl(i)?(n="",e!=null&&(n=e.replace(Sl,"$&/")+"/"),pr(i,t,n,"",function(c){return c})):i!=null&&(Bi(i)&&(i=Id(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Sl,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",vl(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Fi(o,l);s+=pr(o,t,n,u,i)}else if(u=wd(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Fi(o,l++),s+=pr(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function hr(e,t,n){if(e==null)return e;var r=[],i=0;return pr(e,r,"","",function(o){return t.call(n,o,i++)}),r}function vd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ue={current:null},gr={transition:null},Td={ReactCurrentDispatcher:ue,ReactCurrentBatchConfig:gr,ReactCurrentOwner:Yi};function kl(){throw Error("act(...) is not supported in production builds of React.")}C.Children={map:hr,forEach:function(e,t,n){hr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return hr(e,function(){t++}),t},toArray:function(e){return hr(e,function(t){return t})||[]},only:function(e){if(!Bi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},C.Component=bt,C.Fragment=dd,C.Profiler=pd,C.PureComponent=Ri,C.StrictMode=fd,C.Suspense=Md,C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Td,C.act=kl,C.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=wl({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Yi.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Tl.call(t,u)&&!Dl.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:mn,type:e.type,key:i,ref:o,props:r,_owner:s}},C.createContext=function(e){return e={$$typeof:gd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:hd,_context:e},e.Consumer=e},C.createElement=El,C.createFactory=function(e){var t=El.bind(null,e);return t.type=e,t},C.createRef=function(){return{current:null}},C.forwardRef=function(e){return{$$typeof:yd,render:e}},C.isValidElement=Bi,C.lazy=function(e){return{$$typeof:xd,_payload:{_status:-1,_result:e},_init:vd}},C.memo=function(e,t){return{$$typeof:md,type:e,compare:t===void 0?null:t}},C.startTransition=function(e){var t=gr.transition;gr.transition={};try{e()}finally{gr.transition=t}},C.unstable_act=kl,C.useCallback=function(e,t){return ue.current.useCallback(e,t)},C.useContext=function(e){return ue.current.useContext(e)},C.useDebugValue=function(){},C.useDeferredValue=function(e){return ue.current.useDeferredValue(e)},C.useEffect=function(e,t){return ue.current.useEffect(e,t)},C.useId=function(){return ue.current.useId()},C.useImperativeHandle=function(e,t,n){return ue.current.useImperativeHandle(e,t,n)},C.useInsertionEffect=function(e,t){return ue.current.useInsertionEffect(e,t)},C.useLayoutEffect=function(e,t){return ue.current.useLayoutEffect(e,t)},C.useMemo=function(e,t){return ue.current.useMemo(e,t)},C.useReducer=function(e,t,n){return ue.current.useReducer(e,t,n)},C.useRef=function(e){return ue.current.useRef(e)},C.useState=function(e){return ue.current.useState(e)},C.useSyncExternalStore=function(e,t,n){return ue.current.useSyncExternalStore(e,t,n)},C.useTransition=function(){return ue.current.useTransition()},C.version="18.3.1",Ml.exports=C;var R=Ml.exports;const Al=ad(R);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@
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 Tf=Q,If=Symbol.for("react.element"),Df=Symbol.for("react.fragment"),Ef=Object.prototype.hasOwnProperty,Sf=Tf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kf={key:!0,ref:!0,__self:!0,__source:!0};function kl(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Ef.call(t,r)&&!kf.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:If,type:e,key:o,ref:s,props:i,_owner:Sf.current}}fr.Fragment=Df,fr.jsx=kl,fr.jsxs=kl,gl.exports=fr;var N=gl.exports,Fi={},Al={exports:{}},Me={},Ll={exports:{}},jl={};/**
17
+ */var Dd=R,Ed=Symbol.for("react.element"),Sd=Symbol.for("react.fragment"),kd=Object.prototype.hasOwnProperty,Ad=Dd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jd={key:!0,ref:!0,__self:!0,__source:!0};function jl(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)kd.call(t,r)&&!jd.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Ed,type:e,key:o,ref:s,props:i,_owner:Ad.current}}fr.Fragment=Sd,fr.jsx=jl,fr.jsxs=jl,yl.exports=fr;var I=yl.exports,yr={},zl={exports:{}},Me={},Cl={exports:{}},Ll={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(D,A){var L=D.length;D.push(A);e:for(;0<L;){var Z=L-1>>>1,ee=D[Z];if(0<i(ee,A))D[Z]=A,D[L]=ee,L=Z;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var A=D[0],L=D.pop();if(L!==A){D[0]=L;e:for(var Z=0,ee=D.length,Ui=ee>>>1;Z<Ui;){var Rt=2*(Z+1)-1,hl=D[Rt],Pt=Rt+1,Ri=D[Pt];if(0>i(hl,L))Pt<ee&&0>i(Ri,hl)?(D[Z]=Ri,D[Pt]=L,Z=Pt):(D[Z]=hl,D[Rt]=L,Z=Rt);else if(Pt<ee&&0>i(Ri,L))D[Z]=Ri,D[Pt]=L,Z=Pt;else break e}}return A}function i(D,A){var L=D.sortIndex-A.sortIndex;return L!==0?L:D.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],c=[],h=1,g=null,p=3,w=!1,x=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(D){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=D)r(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function M(D){if(y=!1,d(D),!x)if(n(u)!==null)x=!0,dl(v);else{var A=n(c);A!==null&&pl(M,A.startTime-D)}}function v(D,A){x=!1,y&&(y=!1,f(S),S=-1),w=!0;var L=p;try{for(d(A),g=n(u);g!==null&&(!(g.expirationTime>A)||D&&!Pe());){var Z=g.callback;if(typeof Z=="function"){g.callback=null,p=g.priorityLevel;var ee=Z(g.expirationTime<=A);A=e.unstable_now(),typeof ee=="function"?g.callback=ee:g===n(u)&&r(u),d(A)}else r(u);g=n(u)}if(g!==null)var Ui=!0;else{var Rt=n(c);Rt!==null&&pl(M,Rt.startTime-A),Ui=!1}return Ui}finally{g=null,p=L,w=!1}}var T=!1,E=null,S=-1,b=5,z=-1;function Pe(){return!(e.unstable_now()-z<b)}function ar(){if(E!==null){var D=e.unstable_now();z=D;var A=!0;try{A=E(!0,D)}finally{A?cr():(T=!1,E=null)}}else T=!1}var cr;if(typeof a=="function")cr=function(){a(ar)};else if(typeof MessageChannel<"u"){var of=new MessageChannel,tg=of.port2;of.port1.onmessage=ar,cr=function(){tg.postMessage(null)}}else cr=function(){k(ar,0)};function dl(D){E=D,T||(T=!0,cr())}function pl(D,A){S=k(function(){D(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){x||w||(x=!0,dl(v))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(D){switch(p){case 1:case 2:case 3:var A=3;break;default:A=p}var L=p;p=A;try{return D()}finally{p=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,A){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var L=p;p=D;try{return A()}finally{p=L}},e.unstable_scheduleCallback=function(D,A,L){var Z=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?Z+L:Z):L=Z,D){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=L+ee,D={id:h++,callback:A,priorityLevel:D,startTime:L,expirationTime:ee,sortIndex:-1},L>Z?(D.sortIndex=L,t(c,D),n(u)===null&&D===n(c)&&(y?(f(S),S=-1):y=!0,pl(M,L-Z))):(D.sortIndex=ee,t(u,D),x||w||(x=!0,dl(v))),D},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(D){var A=p;return function(){var L=p;p=A;try{return D.apply(this,arguments)}finally{p=L}}}})(jl),Ll.exports=jl;var Af=Ll.exports;/**
25
+ */(function(e){function t(E,A){var z=E.length;E.push(A);e:for(;0<z;){var Z=z-1>>>1,ee=E[Z];if(0<i(ee,A))E[Z]=A,E[z]=ee,z=Z;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var A=E[0],z=E.pop();if(z!==A){E[0]=z;e:for(var Z=0,ee=E.length,Qi=ee>>>1;Z<Qi;){var Pt=2*(Z+1)-1,gl=E[Pt],Rt=Pt+1,Pi=E[Rt];if(0>i(gl,z))Rt<ee&&0>i(Pi,gl)?(E[Z]=Pi,E[Rt]=z,Z=Rt):(E[Z]=gl,E[Pt]=z,Z=Pt);else if(Rt<ee&&0>i(Pi,z))E[Z]=Pi,E[Rt]=z,Z=Rt;else break e}}return A}function i(E,A){var z=E.sortIndex-A.sortIndex;return z!==0?z:E.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],c=[],g=1,h=null,p=3,M=!1,w=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(E){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=E)r(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function y(E){if(x=!1,f(E),!w)if(n(u)!==null)w=!0,pl(v);else{var A=n(c);A!==null&&hl(y,A.startTime-E)}}function v(E,A){w=!1,x&&(x=!1,d(S),S=-1),M=!0;var z=p;try{for(f(A),h=n(u);h!==null&&(!(h.expirationTime>A)||E&&!Pe());){var Z=h.callback;if(typeof Z=="function"){h.callback=null,p=h.priorityLevel;var ee=Z(h.expirationTime<=A);A=e.unstable_now(),typeof ee=="function"?h.callback=ee:h===n(u)&&r(u),f(A)}else r(u);h=n(u)}if(h!==null)var Qi=!0;else{var Pt=n(c);Pt!==null&&hl(y,Pt.startTime-A),Qi=!1}return Qi}finally{h=null,p=z,M=!1}}var N=!1,T=null,S=-1,Y=5,j=-1;function Pe(){return!(e.unstable_now()-j<Y)}function cr(){if(T!==null){var E=e.unstable_now();j=E;var A=!0;try{A=T(!0,E)}finally{A?dr():(N=!1,T=null)}}else N=!1}var dr;if(typeof a=="function")dr=function(){a(cr)};else if(typeof MessageChannel<"u"){var ud=new MessageChannel,ig=ud.port2;ud.port1.onmessage=cr,dr=function(){ig.postMessage(null)}}else dr=function(){k(cr,0)};function pl(E){T=E,N||(N=!0,dr())}function hl(E,A){S=k(function(){E(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){w||M||(w=!0,pl(v))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(E){switch(p){case 1:case 2:case 3:var A=3;break;default:A=p}var z=p;p=A;try{return E()}finally{p=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,A){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var z=p;p=E;try{return A()}finally{p=z}},e.unstable_scheduleCallback=function(E,A,z){var Z=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?Z+z:Z):z=Z,E){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=z+ee,E={id:g++,callback:A,priorityLevel:E,startTime:z,expirationTime:ee,sortIndex:-1},z>Z?(E.sortIndex=z,t(c,E),n(u)===null&&E===n(c)&&(x?(d(S),S=-1):x=!0,hl(y,z-Z))):(E.sortIndex=ee,t(u,E),w||M||(w=!0,pl(v))),E},e.unstable_shouldYield=Pe,e.unstable_wrapCallback=function(E){var A=p;return function(){var z=p;p=A;try{return E.apply(this,arguments)}finally{p=z}}}})(Ll),Cl.exports=Ll;var zd=Cl.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,22 +30,22 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Lf=Q,me=Af;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Cl=new Set,mn={};function Tt(e,t){Yt(e,t),Yt(e+"Capture",t)}function Yt(e,t){for(mn[e]=t,e=0;e<t.length;e++)Cl.add(t[e])}var We=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vi=Object.prototype.hasOwnProperty,jf=/^[: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]*$/,zl={},Ol={};function Cf(e){return Vi.call(Ol,e)?!0:Vi.call(zl,e)?!1:jf.test(e)?Ol[e]=!0:(zl[e]=!0,!1)}function zf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Of(e,t,n,r){if(t===null||typeof t>"u"||zf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ae(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new ae(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new ae(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new ae(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){te[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){te[e]=new ae(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){te[e]=new ae(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){te[e]=new ae(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){te[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hi=/[\-:]([a-z])/g;function Wi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hi,Wi);te[t]=new ae(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hi,Wi);te[t]=new ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hi,Wi);te[t]=new ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)}),te.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zi(e,t,n,r){var i=te.hasOwnProperty(t)?te[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Of(t,n,i,r)&&(n=null),r||i===null?Cf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ze=Lf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gr=Symbol.for("react.element"),bt=Symbol.for("react.portal"),Bt=Symbol.for("react.fragment"),Gi=Symbol.for("react.strict_mode"),$i=Symbol.for("react.profiler"),_l=Symbol.for("react.provider"),Ul=Symbol.for("react.context"),Ji=Symbol.for("react.forward_ref"),Xi=Symbol.for("react.suspense"),Ki=Symbol.for("react.suspense_list"),qi=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Rl=Symbol.for("react.offscreen"),Pl=Symbol.iterator;function xn(e){return e===null||typeof e!="object"?null:(e=Pl&&e[Pl]||e["@@iterator"],typeof e=="function"?e:null)}var B=Object.assign,eo;function wn(e){if(eo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);eo=t&&t[1]||""}return`
33
+ */var Cd=R,me=zd;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Ol=new Set,xn={};function vt(e,t){Yt(e,t),Yt(e+"Capture",t)}function Yt(e,t){for(xn[e]=t,e=0;e<t.length;e++)Ol.add(t[e])}var We=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vi=Object.prototype.hasOwnProperty,Ld=/^[: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]*$/,_l={},Ul={};function Od(e){return Vi.call(Ul,e)?!0:Vi.call(_l,e)?!1:Ld.test(e)?Ul[e]=!0:(_l[e]=!0,!1)}function _d(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ud(e,t,n,r){if(t===null||typeof t>"u"||_d(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ae(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new ae(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];te[t]=new ae(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new ae(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new ae(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){te[e]=new ae(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){te[e]=new ae(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){te[e]=new ae(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){te[e]=new ae(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){te[e]=new ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hi=/[\-:]([a-z])/g;function Wi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hi,Wi);te[t]=new ae(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hi,Wi);te[t]=new ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hi,Wi);te[t]=new ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!1,!1)}),te.xlinkHref=new ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){te[e]=new ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zi(e,t,n,r){var i=te.hasOwnProperty(t)?te[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ud(t,n,i,r)&&(n=null),r||i===null?Od(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ze=Cd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mr=Symbol.for("react.element"),Bt=Symbol.for("react.portal"),Ft=Symbol.for("react.fragment"),Gi=Symbol.for("react.strict_mode"),$i=Symbol.for("react.profiler"),Ql=Symbol.for("react.provider"),Pl=Symbol.for("react.context"),Ji=Symbol.for("react.forward_ref"),Xi=Symbol.for("react.suspense"),Ki=Symbol.for("react.suspense_list"),qi=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Rl=Symbol.for("react.offscreen"),bl=Symbol.iterator;function wn(e){return e===null||typeof e!="object"?null:(e=bl&&e[bl]||e["@@iterator"],typeof e=="function"?e:null)}var B=Object.assign,eo;function In(e){if(eo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);eo=t&&t[1]||""}return`
34
34
  `+eo+e}var to=!1;function no(e,t){if(!e||to)return"";to=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
35
35
  `),o=r.stack.split(`
36
36
  `),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var u=`
37
- `+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{to=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wn(e):""}function _f(e){switch(e.tag){case 5:return wn(e.type);case 16:return wn("Lazy");case 13:return wn("Suspense");case 19:return wn("SuspenseList");case 0:case 2:case 15:return e=no(e.type,!1),e;case 11:return e=no(e.type.render,!1),e;case 1:return e=no(e.type,!0),e;default:return""}}function ro(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bt:return"Fragment";case bt:return"Portal";case $i:return"Profiler";case Gi:return"StrictMode";case Xi:return"Suspense";case Ki:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ul:return(e.displayName||"Context")+".Consumer";case _l:return(e._context.displayName||"Context")+".Provider";case Ji:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qi:return t=e.displayName||null,t!==null?t:ro(e.type)||"Memo";case nt:t=e._payload,e=e._init;try{return ro(e(t))}catch{}}return null}function Uf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ro(t);case 8:return t===Gi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ql(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rf(e){var t=Ql(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yr(e){e._valueTracker||(e._valueTracker=Rf(e))}function Yl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ql(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mr(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}}function io(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Bl(e,t){t=t.checked,t!=null&&Zi(e,"checked",t,!1)}function oo(e,t){Bl(e,t);var n=rt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?so(e,t.type,n):t.hasOwnProperty("defaultValue")&&so(e,t.type,rt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fl(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function so(e,t,n){(t!=="number"||Mr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vn=Array.isArray;function Ft(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+rt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function lo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(m(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vl(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(m(92));if(vn(n)){if(1<n.length)throw Error(m(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:rt(n)}}function Hl(e,t){var n=rt(t.value),r=rt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Wl(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zl(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function uo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zl(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var mr,Gl=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(mr=mr||document.createElement("div"),mr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=mr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Pf=["Webkit","ms","Moz","O"];Object.keys(Tn).forEach(function(e){Pf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tn[t]=Tn[e]})});function $l(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tn.hasOwnProperty(e)&&Tn[e]?(""+t).trim():t+"px"}function Jl(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=$l(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Qf=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ao(e,t){if(t){if(Qf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(m(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(m(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(m(61))}if(t.style!=null&&typeof t.style!="object")throw Error(m(62))}}function co(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 fo=null;function po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ho=null,Vt=null,Ht=null;function Xl(e){if(e=Hn(e)){if(typeof ho!="function")throw Error(m(280));var t=e.stateNode;t&&(t=br(t),ho(e.stateNode,e.type,t))}}function Kl(e){Vt?Ht?Ht.push(e):Ht=[e]:Vt=e}function ql(){if(Vt){var e=Vt,t=Ht;if(Ht=Vt=null,Xl(e),t)for(e=0;e<t.length;e++)Xl(t[e])}}function eu(e,t){return e(t)}function tu(){}var go=!1;function nu(e,t,n){if(go)return e(t,n);go=!0;try{return eu(e,t,n)}finally{go=!1,(Vt!==null||Ht!==null)&&(tu(),ql())}}function In(e,t){var n=e.stateNode;if(n===null)return null;var r=br(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(m(231,t,typeof n));return n}var yo=!1;if(We)try{var Dn={};Object.defineProperty(Dn,"passive",{get:function(){yo=!0}}),window.addEventListener("test",Dn,Dn),window.removeEventListener("test",Dn,Dn)}catch{yo=!1}function Yf(e,t,n,r,i,o,s,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(h){this.onError(h)}}var En=!1,xr=null,wr=!1,Mo=null,bf={onError:function(e){En=!0,xr=e}};function Bf(e,t,n,r,i,o,s,l,u){En=!1,xr=null,Yf.apply(bf,arguments)}function Ff(e,t,n,r,i,o,s,l,u){if(Bf.apply(this,arguments),En){if(En){var c=xr;En=!1,xr=null}else throw Error(m(198));wr||(wr=!0,Mo=c)}}function It(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ru(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 iu(e){if(It(e)!==e)throw Error(m(188))}function Vf(e){var t=e.alternate;if(!t){if(t=It(e),t===null)throw Error(m(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return iu(i),e;if(o===r)return iu(i),t;o=o.sibling}throw Error(m(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(m(189))}}if(n.alternate!==r)throw Error(m(190))}if(n.tag!==3)throw Error(m(188));return n.stateNode.current===n?e:t}function ou(e){return e=Vf(e),e!==null?su(e):null}function su(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=su(e);if(t!==null)return t;e=e.sibling}return null}var lu=me.unstable_scheduleCallback,uu=me.unstable_cancelCallback,Hf=me.unstable_shouldYield,Wf=me.unstable_requestPaint,W=me.unstable_now,Zf=me.unstable_getCurrentPriorityLevel,mo=me.unstable_ImmediatePriority,au=me.unstable_UserBlockingPriority,vr=me.unstable_NormalPriority,Gf=me.unstable_LowPriority,cu=me.unstable_IdlePriority,Nr=null,Qe=null;function $f(e){if(Qe&&typeof Qe.onCommitFiberRoot=="function")try{Qe.onCommitFiberRoot(Nr,e,void 0,(e.current.flags&128)===128)}catch{}}var Le=Math.clz32?Math.clz32:Kf,Jf=Math.log,Xf=Math.LN2;function Kf(e){return e>>>=0,e===0?32:31-(Jf(e)/Xf|0)|0}var Tr=64,Ir=4194304;function Sn(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Sn(l):(o&=s,o!==0&&(r=Sn(o)))}else s=n&~i,s!==0?r=Sn(s):o!==0&&(r=Sn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Le(t),i=1<<n,r|=e[n],t&=~i;return r}function qf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ed(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Le(o),l=1<<s,u=i[s];u===-1?(!(l&n)||l&r)&&(i[s]=qf(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}}function xo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fu(){var e=Tr;return Tr<<=1,!(Tr&4194240)&&(Tr=64),e}function wo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Le(t),e[t]=n}function td(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Le(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function vo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _=0;function du(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var pu,No,hu,gu,yu,To=!1,Er=[],it=null,ot=null,st=null,An=new Map,Ln=new Map,lt=[],nd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mu(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":An.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ln.delete(t.pointerId)}}function jn(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Hn(t),t!==null&&No(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function rd(e,t,n,r,i){switch(t){case"focusin":return it=jn(it,e,t,n,r,i),!0;case"dragenter":return ot=jn(ot,e,t,n,r,i),!0;case"mouseover":return st=jn(st,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return An.set(o,jn(An.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ln.set(o,jn(Ln.get(o)||null,e,t,n,r,i)),!0}return!1}function mu(e){var t=Dt(e.target);if(t!==null){var n=It(t);if(n!==null){if(t=n.tag,t===13){if(t=ru(n),t!==null){e.blockedOn=t,yu(e.priority,function(){hu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Sr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Do(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fo=r,n.target.dispatchEvent(r),fo=null}else return t=Hn(n),t!==null&&No(t),e.blockedOn=n,!1;t.shift()}return!0}function xu(e,t,n){Sr(e)&&n.delete(t)}function id(){To=!1,it!==null&&Sr(it)&&(it=null),ot!==null&&Sr(ot)&&(ot=null),st!==null&&Sr(st)&&(st=null),An.forEach(xu),Ln.forEach(xu)}function Cn(e,t){e.blockedOn===t&&(e.blockedOn=null,To||(To=!0,me.unstable_scheduleCallback(me.unstable_NormalPriority,id)))}function zn(e){function t(i){return Cn(i,e)}if(0<Er.length){Cn(Er[0],e);for(var n=1;n<Er.length;n++){var r=Er[n];r.blockedOn===e&&(r.blockedOn=null)}}for(it!==null&&Cn(it,e),ot!==null&&Cn(ot,e),st!==null&&Cn(st,e),An.forEach(t),Ln.forEach(t),n=0;n<lt.length;n++)r=lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<lt.length&&(n=lt[0],n.blockedOn===null);)mu(n),n.blockedOn===null&&lt.shift()}var Wt=Ze.ReactCurrentBatchConfig,kr=!0;function od(e,t,n,r){var i=_,o=Wt.transition;Wt.transition=null;try{_=1,Io(e,t,n,r)}finally{_=i,Wt.transition=o}}function sd(e,t,n,r){var i=_,o=Wt.transition;Wt.transition=null;try{_=4,Io(e,t,n,r)}finally{_=i,Wt.transition=o}}function Io(e,t,n,r){if(kr){var i=Do(e,t,n,r);if(i===null)Bo(e,t,r,Ar,n),Mu(e,r);else if(rd(i,e,t,n,r))r.stopPropagation();else if(Mu(e,r),t&4&&-1<nd.indexOf(e)){for(;i!==null;){var o=Hn(i);if(o!==null&&pu(o),o=Do(e,t,n,r),o===null&&Bo(e,t,r,Ar,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Bo(e,t,r,null,n)}}var Ar=null;function Do(e,t,n,r){if(Ar=null,e=po(r),e=Dt(e),e!==null)if(t=It(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ru(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ar=e,null}function wu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Zf()){case mo:return 1;case au:return 4;case vr:case Gf:return 16;case cu:return 536870912;default:return 16}default:return 16}}var ut=null,Eo=null,Lr=null;function vu(){if(Lr)return Lr;var e,t=Eo,n=t.length,r,i="value"in ut?ut.value:ut.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Lr=i.slice(e,1<r?1-r:void 0)}function jr(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 Cr(){return!0}function Nu(){return!1}function xe(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Cr:Nu,this.isPropagationStopped=Nu,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Cr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Cr)},persist:function(){},isPersistent:Cr}),t}var Zt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},So=xe(Zt),On=B({},Zt,{view:0,detail:0}),ld=xe(On),ko,Ao,_n,zr=B({},On,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jo,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!==_n&&(_n&&e.type==="mousemove"?(ko=e.screenX-_n.screenX,Ao=e.screenY-_n.screenY):Ao=ko=0,_n=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:Ao}}),Tu=xe(zr),ud=B({},zr,{dataTransfer:0}),ad=xe(ud),cd=B({},On,{relatedTarget:0}),Lo=xe(cd),fd=B({},Zt,{animationName:0,elapsedTime:0,pseudoElement:0}),dd=xe(fd),pd=B({},Zt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hd=xe(pd),gd=B({},Zt,{data:0}),Iu=xe(gd),yd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Md={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"},md={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=md[e])?!!t[e]:!1}function jo(){return xd}var wd=B({},On,{key:function(e){if(e.key){var t=yd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Md[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jo,charCode:function(e){return e.type==="keypress"?jr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vd=xe(wd),Nd=B({},zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Du=xe(Nd),Td=B({},On,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jo}),Id=xe(Td),Dd=B({},Zt,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ed=xe(Dd),Sd=B({},zr,{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}),kd=xe(Sd),Ad=[9,13,27,32],Co=We&&"CompositionEvent"in window,Un=null;We&&"documentMode"in document&&(Un=document.documentMode);var Ld=We&&"TextEvent"in window&&!Un,Eu=We&&(!Co||Un&&8<Un&&11>=Un),Su=String.fromCharCode(32),ku=!1;function Au(e,t){switch(e){case"keyup":return Ad.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gt=!1;function jd(e,t){switch(e){case"compositionend":return Lu(t);case"keypress":return t.which!==32?null:(ku=!0,Su);case"textInput":return e=t.data,e===Su&&ku?null:e;default:return null}}function Cd(e,t){if(Gt)return e==="compositionend"||!Co&&Au(e,t)?(e=vu(),Lr=Eo=ut=null,Gt=!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 Eu&&t.locale!=="ko"?null:t.data;default:return null}}var zd={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 ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zd[e.type]:t==="textarea"}function Cu(e,t,n,r){Kl(r),t=Pr(t,"onChange"),0<t.length&&(n=new So("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rn=null,Pn=null;function Od(e){Ju(e,0)}function Or(e){var t=qt(e);if(Yl(t))return e}function _d(e,t){if(e==="change")return t}var zu=!1;if(We){var zo;if(We){var Oo="oninput"in document;if(!Oo){var Ou=document.createElement("div");Ou.setAttribute("oninput","return;"),Oo=typeof Ou.oninput=="function"}zo=Oo}else zo=!1;zu=zo&&(!document.documentMode||9<document.documentMode)}function _u(){Rn&&(Rn.detachEvent("onpropertychange",Uu),Pn=Rn=null)}function Uu(e){if(e.propertyName==="value"&&Or(Pn)){var t=[];Cu(t,Pn,e,po(e)),nu(Od,t)}}function Ud(e,t,n){e==="focusin"?(_u(),Rn=t,Pn=n,Rn.attachEvent("onpropertychange",Uu)):e==="focusout"&&_u()}function Rd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Or(Pn)}function Pd(e,t){if(e==="click")return Or(t)}function Qd(e,t){if(e==="input"||e==="change")return Or(t)}function Yd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var je=typeof Object.is=="function"?Object.is:Yd;function Qn(e,t){if(je(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Vi.call(t,i)||!je(e[i],t[i]))return!1}return!0}function Ru(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pu(e,t){var n=Ru(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ru(n)}}function Qu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yu(){for(var e=window,t=Mr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mr(e.document)}return t}function _o(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")}function bd(e){var t=Yu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qu(n.ownerDocument.documentElement,n)){if(r!==null&&_o(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Pu(n,o);var s=Pu(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Bd=We&&"documentMode"in document&&11>=document.documentMode,$t=null,Uo=null,Yn=null,Ro=!1;function bu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ro||$t==null||$t!==Mr(r)||(r=$t,"selectionStart"in r&&_o(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yn&&Qn(Yn,r)||(Yn=r,r=Pr(Uo,"onSelect"),0<r.length&&(t=new So("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$t)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jt={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Po={},Bu={};We&&(Bu=document.createElement("div").style,"AnimationEvent"in window||(delete Jt.animationend.animation,delete Jt.animationiteration.animation,delete Jt.animationstart.animation),"TransitionEvent"in window||delete Jt.transitionend.transition);function Ur(e){if(Po[e])return Po[e];if(!Jt[e])return e;var t=Jt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bu)return Po[e]=t[n];return e}var Fu=Ur("animationend"),Vu=Ur("animationiteration"),Hu=Ur("animationstart"),Wu=Ur("transitionend"),Zu=new Map,Gu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function at(e,t){Zu.set(e,t),Tt(t,[e])}for(var Qo=0;Qo<Gu.length;Qo++){var Yo=Gu[Qo],Fd=Yo.toLowerCase(),Vd=Yo[0].toUpperCase()+Yo.slice(1);at(Fd,"on"+Vd)}at(Fu,"onAnimationEnd"),at(Vu,"onAnimationIteration"),at(Hu,"onAnimationStart"),at("dblclick","onDoubleClick"),at("focusin","onFocus"),at("focusout","onBlur"),at(Wu,"onTransitionEnd"),Yt("onMouseEnter",["mouseout","mouseover"]),Yt("onMouseLeave",["mouseout","mouseover"]),Yt("onPointerEnter",["pointerout","pointerover"]),Yt("onPointerLeave",["pointerout","pointerover"]),Tt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bn="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(" "),Hd=new Set("cancel close invalid load scroll toggle".split(" ").concat(bn));function $u(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ff(r,t,void 0,e),e.currentTarget=null}function Ju(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;$u(i,l,c),o=u}else for(s=0;s<r.length;s++){if(l=r[s],u=l.instance,c=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;$u(i,l,c),o=u}}}if(wr)throw e=Mo,wr=!1,Mo=null,e}function R(e,t){var n=t[Go];n===void 0&&(n=t[Go]=new Set);var r=e+"__bubble";n.has(r)||(Xu(t,e,2,!1),n.add(r))}function bo(e,t,n){var r=0;t&&(r|=4),Xu(n,e,r,t)}var Rr="_reactListening"+Math.random().toString(36).slice(2);function Bn(e){if(!e[Rr]){e[Rr]=!0,Cl.forEach(function(n){n!=="selectionchange"&&(Hd.has(n)||bo(n,!1,e),bo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Rr]||(t[Rr]=!0,bo("selectionchange",!1,t))}}function Xu(e,t,n,r){switch(wu(t)){case 1:var i=od;break;case 4:i=sd;break;default:i=Io}n=i.bind(null,t,n,e),i=void 0,!yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Bo(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Dt(l),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}l=l.parentNode}}r=r.return}nu(function(){var c=o,h=po(n),g=[];e:{var p=Zu.get(e);if(p!==void 0){var w=So,x=e;switch(e){case"keypress":if(jr(n)===0)break e;case"keydown":case"keyup":w=vd;break;case"focusin":x="focus",w=Lo;break;case"focusout":x="blur",w=Lo;break;case"beforeblur":case"afterblur":w=Lo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=Tu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=ad;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Id;break;case Fu:case Vu:case Hu:w=dd;break;case Wu:w=Ed;break;case"scroll":w=ld;break;case"wheel":w=kd;break;case"copy":case"cut":case"paste":w=hd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Du}var y=(t&4)!==0,k=!y&&e==="scroll",f=y?p!==null?p+"Capture":null:p;y=[];for(var a=c,d;a!==null;){d=a;var M=d.stateNode;if(d.tag===5&&M!==null&&(d=M,f!==null&&(M=In(a,f),M!=null&&y.push(Fn(a,M,d)))),k)break;a=a.return}0<y.length&&(p=new w(p,x,null,n,h),g.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",p&&n!==fo&&(x=n.relatedTarget||n.fromElement)&&(Dt(x)||x[Ge]))break e;if((w||p)&&(p=h.window===h?h:(p=h.ownerDocument)?p.defaultView||p.parentWindow:window,w?(x=n.relatedTarget||n.toElement,w=c,x=x?Dt(x):null,x!==null&&(k=It(x),x!==k||x.tag!==5&&x.tag!==6)&&(x=null)):(w=null,x=c),w!==x)){if(y=Tu,M="onMouseLeave",f="onMouseEnter",a="mouse",(e==="pointerout"||e==="pointerover")&&(y=Du,M="onPointerLeave",f="onPointerEnter",a="pointer"),k=w==null?p:qt(w),d=x==null?p:qt(x),p=new y(M,a+"leave",w,n,h),p.target=k,p.relatedTarget=d,M=null,Dt(h)===c&&(y=new y(f,a+"enter",x,n,h),y.target=d,y.relatedTarget=k,M=y),k=M,w&&x)t:{for(y=w,f=x,a=0,d=y;d;d=Xt(d))a++;for(d=0,M=f;M;M=Xt(M))d++;for(;0<a-d;)y=Xt(y),a--;for(;0<d-a;)f=Xt(f),d--;for(;a--;){if(y===f||f!==null&&y===f.alternate)break t;y=Xt(y),f=Xt(f)}y=null}else y=null;w!==null&&Ku(g,p,w,y,!1),x!==null&&k!==null&&Ku(g,k,x,y,!0)}}e:{if(p=c?qt(c):window,w=p.nodeName&&p.nodeName.toLowerCase(),w==="select"||w==="input"&&p.type==="file")var v=_d;else if(ju(p))if(zu)v=Qd;else{v=Rd;var T=Ud}else(w=p.nodeName)&&w.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(v=Pd);if(v&&(v=v(e,c))){Cu(g,v,n,h);break e}T&&T(e,p,c),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&so(p,"number",p.value)}switch(T=c?qt(c):window,e){case"focusin":(ju(T)||T.contentEditable==="true")&&($t=T,Uo=c,Yn=null);break;case"focusout":Yn=Uo=$t=null;break;case"mousedown":Ro=!0;break;case"contextmenu":case"mouseup":case"dragend":Ro=!1,bu(g,n,h);break;case"selectionchange":if(Bd)break;case"keydown":case"keyup":bu(g,n,h)}var E;if(Co)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else Gt?Au(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(Eu&&n.locale!=="ko"&&(Gt||S!=="onCompositionStart"?S==="onCompositionEnd"&&Gt&&(E=vu()):(ut=h,Eo="value"in ut?ut.value:ut.textContent,Gt=!0)),T=Pr(c,S),0<T.length&&(S=new Iu(S,e,null,n,h),g.push({event:S,listeners:T}),E?S.data=E:(E=Lu(n),E!==null&&(S.data=E)))),(E=Ld?jd(e,n):Cd(e,n))&&(c=Pr(c,"onBeforeInput"),0<c.length&&(h=new Iu("onBeforeInput","beforeinput",null,n,h),g.push({event:h,listeners:c}),h.data=E))}Ju(g,t)})}function Fn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pr(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=In(e,n),o!=null&&r.unshift(Fn(e,o,i)),o=In(e,t),o!=null&&r.push(Fn(e,o,i))),e=e.return}return r}function Xt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ku(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&c!==null&&(l=c,i?(u=In(n,o),u!=null&&s.unshift(Fn(n,u,l))):i||(u=In(n,o),u!=null&&s.push(Fn(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Wd=/\r\n?/g,Zd=/\u0000|\uFFFD/g;function qu(e){return(typeof e=="string"?e:""+e).replace(Wd,`
38
- `).replace(Zd,"")}function Qr(e,t,n){if(t=qu(t),qu(e)!==t&&n)throw Error(m(425))}function Yr(){}var Fo=null,Vo=null;function Ho(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wo=typeof setTimeout=="function"?setTimeout:void 0,Gd=typeof clearTimeout=="function"?clearTimeout:void 0,ea=typeof Promise=="function"?Promise:void 0,$d=typeof queueMicrotask=="function"?queueMicrotask:typeof ea<"u"?function(e){return ea.resolve(null).then(e).catch(Jd)}:Wo;function Jd(e){setTimeout(function(){throw e})}function Zo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),zn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);zn(t)}function ct(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==="$?")break;if(t==="/$")return null}}return e}function ta(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Kt=Math.random().toString(36).slice(2),Ye="__reactFiber$"+Kt,Vn="__reactProps$"+Kt,Ge="__reactContainer$"+Kt,Go="__reactEvents$"+Kt,Xd="__reactListeners$"+Kt,Kd="__reactHandles$"+Kt;function Dt(e){var t=e[Ye];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ge]||n[Ye]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ta(e);e!==null;){if(n=e[Ye])return n;e=ta(e)}return t}e=n,n=e.parentNode}return null}function Hn(e){return e=e[Ye]||e[Ge],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function br(e){return e[Vn]||null}var $o=[],en=-1;function ft(e){return{current:e}}function P(e){0>en||(e.current=$o[en],$o[en]=null,en--)}function U(e,t){en++,$o[en]=e.current,e.current=t}var dt={},ie=ft(dt),de=ft(!1),Et=dt;function tn(e,t){var n=e.type.contextTypes;if(!n)return dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function pe(e){return e=e.childContextTypes,e!=null}function Br(){P(de),P(ie)}function na(e,t,n){if(ie.current!==dt)throw Error(m(168));U(ie,t),U(de,n)}function ra(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(m(108,Uf(e)||"Unknown",i));return B({},n,r)}function Fr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dt,Et=ie.current,U(ie,e),U(de,de.current),!0}function ia(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=ra(e,t,Et),r.__reactInternalMemoizedMergedChildContext=e,P(de),P(ie),U(ie,e)):P(de),U(de,n)}var $e=null,Vr=!1,Jo=!1;function oa(e){$e===null?$e=[e]:$e.push(e)}function qd(e){Vr=!0,oa(e)}function pt(){if(!Jo&&$e!==null){Jo=!0;var e=0,t=_;try{var n=$e;for(_=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$e=null,Vr=!1}catch(i){throw $e!==null&&($e=$e.slice(e+1)),lu(mo,pt),i}finally{_=t,Jo=!1}}return null}var nn=[],rn=0,Hr=null,Wr=0,Te=[],Ie=0,St=null,Je=1,Xe="";function kt(e,t){nn[rn++]=Wr,nn[rn++]=Hr,Hr=e,Wr=t}function sa(e,t,n){Te[Ie++]=Je,Te[Ie++]=Xe,Te[Ie++]=St,St=e;var r=Je;e=Xe;var i=32-Le(r)-1;r&=~(1<<i),n+=1;var o=32-Le(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Je=1<<32-Le(t)+i|n<<i|r,Xe=o+e}else Je=1<<o|n<<i|r,Xe=e}function Xo(e){e.return!==null&&(kt(e,1),sa(e,1,0))}function Ko(e){for(;e===Hr;)Hr=nn[--rn],nn[rn]=null,Wr=nn[--rn],nn[rn]=null;for(;e===St;)St=Te[--Ie],Te[Ie]=null,Xe=Te[--Ie],Te[Ie]=null,Je=Te[--Ie],Te[Ie]=null}var we=null,ve=null,Y=!1,Ce=null;function la(e,t){var n=ke(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ua(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,we=e,ve=ct(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=St!==null?{id:Je,overflow:Xe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ke(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,ve=null,!0):!1;default:return!1}}function qo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function es(e){if(Y){var t=ve;if(t){var n=t;if(!ua(e,t)){if(qo(e))throw Error(m(418));t=ct(n.nextSibling);var r=we;t&&ua(e,t)?la(r,n):(e.flags=e.flags&-4097|2,Y=!1,we=e)}}else{if(qo(e))throw Error(m(418));e.flags=e.flags&-4097|2,Y=!1,we=e}}}function aa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function Zr(e){if(e!==we)return!1;if(!Y)return aa(e),Y=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ho(e.type,e.memoizedProps)),t&&(t=ve)){if(qo(e))throw ca(),Error(m(418));for(;t;)la(e,t),t=ct(t.nextSibling)}if(aa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(m(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ve=ct(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ve=null}}else ve=we?ct(e.stateNode.nextSibling):null;return!0}function ca(){for(var e=ve;e;)e=ct(e.nextSibling)}function on(){ve=we=null,Y=!1}function ts(e){Ce===null?Ce=[e]:Ce.push(e)}var ep=Ze.ReactCurrentBatchConfig;function Wn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(m(309));var r=n.stateNode}if(!r)throw Error(m(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(m(284));if(!n._owner)throw Error(m(290,e))}return e}function Gr(e,t){throw e=Object.prototype.toString.call(t),Error(m(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fa(e){var t=e._init;return t(e._payload)}function da(e){function t(f,a){if(e){var d=f.deletions;d===null?(f.deletions=[a],f.flags|=16):d.push(a)}}function n(f,a){if(!e)return null;for(;a!==null;)t(f,a),a=a.sibling;return null}function r(f,a){for(f=new Map;a!==null;)a.key!==null?f.set(a.key,a):f.set(a.index,a),a=a.sibling;return f}function i(f,a){return f=vt(f,a),f.index=0,f.sibling=null,f}function o(f,a,d){return f.index=d,e?(d=f.alternate,d!==null?(d=d.index,d<a?(f.flags|=2,a):d):(f.flags|=2,a)):(f.flags|=1048576,a)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function l(f,a,d,M){return a===null||a.tag!==6?(a=Ws(d,f.mode,M),a.return=f,a):(a=i(a,d),a.return=f,a)}function u(f,a,d,M){var v=d.type;return v===Bt?h(f,a,d.props.children,M,d.key):a!==null&&(a.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===nt&&fa(v)===a.type)?(M=i(a,d.props),M.ref=Wn(f,a,d),M.return=f,M):(M=mi(d.type,d.key,d.props,null,f.mode,M),M.ref=Wn(f,a,d),M.return=f,M)}function c(f,a,d,M){return a===null||a.tag!==4||a.stateNode.containerInfo!==d.containerInfo||a.stateNode.implementation!==d.implementation?(a=Zs(d,f.mode,M),a.return=f,a):(a=i(a,d.children||[]),a.return=f,a)}function h(f,a,d,M,v){return a===null||a.tag!==7?(a=Ut(d,f.mode,M,v),a.return=f,a):(a=i(a,d),a.return=f,a)}function g(f,a,d){if(typeof a=="string"&&a!==""||typeof a=="number")return a=Ws(""+a,f.mode,d),a.return=f,a;if(typeof a=="object"&&a!==null){switch(a.$$typeof){case gr:return d=mi(a.type,a.key,a.props,null,f.mode,d),d.ref=Wn(f,null,a),d.return=f,d;case bt:return a=Zs(a,f.mode,d),a.return=f,a;case nt:var M=a._init;return g(f,M(a._payload),d)}if(vn(a)||xn(a))return a=Ut(a,f.mode,d,null),a.return=f,a;Gr(f,a)}return null}function p(f,a,d,M){var v=a!==null?a.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return v!==null?null:l(f,a,""+d,M);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case gr:return d.key===v?u(f,a,d,M):null;case bt:return d.key===v?c(f,a,d,M):null;case nt:return v=d._init,p(f,a,v(d._payload),M)}if(vn(d)||xn(d))return v!==null?null:h(f,a,d,M,null);Gr(f,d)}return null}function w(f,a,d,M,v){if(typeof M=="string"&&M!==""||typeof M=="number")return f=f.get(d)||null,l(a,f,""+M,v);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case gr:return f=f.get(M.key===null?d:M.key)||null,u(a,f,M,v);case bt:return f=f.get(M.key===null?d:M.key)||null,c(a,f,M,v);case nt:var T=M._init;return w(f,a,d,T(M._payload),v)}if(vn(M)||xn(M))return f=f.get(d)||null,h(a,f,M,v,null);Gr(a,M)}return null}function x(f,a,d,M){for(var v=null,T=null,E=a,S=a=0,b=null;E!==null&&S<d.length;S++){E.index>S?(b=E,E=null):b=E.sibling;var z=p(f,E,d[S],M);if(z===null){E===null&&(E=b);break}e&&E&&z.alternate===null&&t(f,E),a=o(z,a,S),T===null?v=z:T.sibling=z,T=z,E=b}if(S===d.length)return n(f,E),Y&&kt(f,S),v;if(E===null){for(;S<d.length;S++)E=g(f,d[S],M),E!==null&&(a=o(E,a,S),T===null?v=E:T.sibling=E,T=E);return Y&&kt(f,S),v}for(E=r(f,E);S<d.length;S++)b=w(E,f,S,d[S],M),b!==null&&(e&&b.alternate!==null&&E.delete(b.key===null?S:b.key),a=o(b,a,S),T===null?v=b:T.sibling=b,T=b);return e&&E.forEach(function(Pe){return t(f,Pe)}),Y&&kt(f,S),v}function y(f,a,d,M){var v=xn(d);if(typeof v!="function")throw Error(m(150));if(d=v.call(d),d==null)throw Error(m(151));for(var T=v=null,E=a,S=a=0,b=null,z=d.next();E!==null&&!z.done;S++,z=d.next()){E.index>S?(b=E,E=null):b=E.sibling;var Pe=p(f,E,z.value,M);if(Pe===null){E===null&&(E=b);break}e&&E&&Pe.alternate===null&&t(f,E),a=o(Pe,a,S),T===null?v=Pe:T.sibling=Pe,T=Pe,E=b}if(z.done)return n(f,E),Y&&kt(f,S),v;if(E===null){for(;!z.done;S++,z=d.next())z=g(f,z.value,M),z!==null&&(a=o(z,a,S),T===null?v=z:T.sibling=z,T=z);return Y&&kt(f,S),v}for(E=r(f,E);!z.done;S++,z=d.next())z=w(E,f,S,z.value,M),z!==null&&(e&&z.alternate!==null&&E.delete(z.key===null?S:z.key),a=o(z,a,S),T===null?v=z:T.sibling=z,T=z);return e&&E.forEach(function(ar){return t(f,ar)}),Y&&kt(f,S),v}function k(f,a,d,M){if(typeof d=="object"&&d!==null&&d.type===Bt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case gr:e:{for(var v=d.key,T=a;T!==null;){if(T.key===v){if(v=d.type,v===Bt){if(T.tag===7){n(f,T.sibling),a=i(T,d.props.children),a.return=f,f=a;break e}}else if(T.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===nt&&fa(v)===T.type){n(f,T.sibling),a=i(T,d.props),a.ref=Wn(f,T,d),a.return=f,f=a;break e}n(f,T);break}else t(f,T);T=T.sibling}d.type===Bt?(a=Ut(d.props.children,f.mode,M,d.key),a.return=f,f=a):(M=mi(d.type,d.key,d.props,null,f.mode,M),M.ref=Wn(f,a,d),M.return=f,f=M)}return s(f);case bt:e:{for(T=d.key;a!==null;){if(a.key===T)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){n(f,a.sibling),a=i(a,d.children||[]),a.return=f,f=a;break e}else{n(f,a);break}else t(f,a);a=a.sibling}a=Zs(d,f.mode,M),a.return=f,f=a}return s(f);case nt:return T=d._init,k(f,a,T(d._payload),M)}if(vn(d))return x(f,a,d,M);if(xn(d))return y(f,a,d,M);Gr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(n(f,a.sibling),a=i(a,d),a.return=f,f=a):(n(f,a),a=Ws(d,f.mode,M),a.return=f,f=a),s(f)):n(f,a)}return k}var sn=da(!0),pa=da(!1),$r=ft(null),Jr=null,ln=null,ns=null;function rs(){ns=ln=Jr=null}function is(e){var t=$r.current;P($r),e._currentValue=t}function os(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function un(e,t){Jr=e,ns=ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(he=!0),e.firstContext=null)}function De(e){var t=e._currentValue;if(ns!==e)if(e={context:e,memoizedValue:t,next:null},ln===null){if(Jr===null)throw Error(m(308));ln=e,Jr.dependencies={lanes:0,firstContext:e}}else ln=ln.next=e;return t}var At=null;function ss(e){At===null?At=[e]:At.push(e)}function ha(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ss(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ke(e,r)}function Ke(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ht=!1;function ls(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ga(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ke(e,n)}return i=r.interleaved,i===null?(t.next=t,ss(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ke(e,n)}function Xr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vo(e,n)}}function ya(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kr(e,t,n,r){var i=e.updateQueue;ht=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,c=u.next;u.next=null,s===null?o=c:s.next=c,s=u;var h=e.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==s&&(l===null?h.firstBaseUpdate=c:l.next=c,h.lastBaseUpdate=u))}if(o!==null){var g=i.baseState;s=0,h=c=u=null,l=o;do{var p=l.lane,w=l.eventTime;if((r&p)===p){h!==null&&(h=h.next={eventTime:w,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,y=l;switch(p=t,w=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){g=x.call(w,g,p);break e}g=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,p=typeof x=="function"?x.call(w,g,p):x,p==null)break e;g=B({},g,p);break e;case 2:ht=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else w={eventTime:w,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(c=h=w,u=g):h=h.next=w,s|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(h===null&&(u=g),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ct|=s,e.lanes=s,e.memoizedState=g}}function Ma(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(m(191,i));i.call(r)}}}var Zn={},be=ft(Zn),Gn=ft(Zn),$n=ft(Zn);function Lt(e){if(e===Zn)throw Error(m(174));return e}function us(e,t){switch(U($n,t),U(Gn,e),U(be,Zn),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:uo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=uo(t,e)}P(be),U(be,t)}function an(){P(be),P(Gn),P($n)}function ma(e){Lt($n.current);var t=Lt(be.current),n=uo(t,e.type);t!==n&&(U(Gn,e),U(be,n))}function as(e){Gn.current===e&&(P(be),P(Gn))}var F=ft(0);function qr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 cs=[];function fs(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ei=Ze.ReactCurrentDispatcher,ds=Ze.ReactCurrentBatchConfig,jt=0,V=null,J=null,K=null,ti=!1,Jn=!1,Xn=0,tp=0;function oe(){throw Error(m(321))}function ps(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!je(e[n],t[n]))return!1;return!0}function hs(e,t,n,r,i,o){if(jt=o,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ei.current=e===null||e.memoizedState===null?op:sp,e=n(r,i),Jn){o=0;do{if(Jn=!1,Xn=0,25<=o)throw Error(m(301));o+=1,K=J=null,t.updateQueue=null,ei.current=lp,e=n(r,i)}while(Jn)}if(ei.current=ii,t=J!==null&&J.next!==null,jt=0,K=J=V=null,ti=!1,t)throw Error(m(300));return e}function gs(){var e=Xn!==0;return Xn=0,e}function Be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return K===null?V.memoizedState=K=e:K=K.next=e,K}function Ee(){if(J===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=J.next;var t=K===null?V.memoizedState:K.next;if(t!==null)K=t,J=e;else{if(e===null)throw Error(m(310));J=e,e={memoizedState:J.memoizedState,baseState:J.baseState,baseQueue:J.baseQueue,queue:J.queue,next:null},K===null?V.memoizedState=K=e:K=K.next=e}return K}function Kn(e,t){return typeof t=="function"?t(e):t}function ys(e){var t=Ee(),n=t.queue;if(n===null)throw Error(m(311));n.lastRenderedReducer=e;var r=J,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,u=null,c=o;do{var h=c.lane;if((jt&h)===h)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var g={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(l=u=g,s=r):u=u.next=g,V.lanes|=h,Ct|=h}c=c.next}while(c!==null&&c!==o);u===null?s=r:u.next=l,je(r,t.memoizedState)||(he=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,V.lanes|=o,Ct|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ms(e){var t=Ee(),n=t.queue;if(n===null)throw Error(m(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);je(o,t.memoizedState)||(he=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function xa(){}function wa(e,t){var n=V,r=Ee(),i=t(),o=!je(r.memoizedState,i);if(o&&(r.memoizedState=i,he=!0),r=r.queue,ms(Ta.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||K!==null&&K.memoizedState.tag&1){if(n.flags|=2048,qn(9,Na.bind(null,n,r,i,t),void 0,null),q===null)throw Error(m(349));jt&30||va(n,t,i)}return i}function va(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Na(e,t,n,r){t.value=n,t.getSnapshot=r,Ia(t)&&Da(e)}function Ta(e,t,n){return n(function(){Ia(t)&&Da(e)})}function Ia(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!je(e,n)}catch{return!0}}function Da(e){var t=Ke(e,1);t!==null&&Ue(t,e,1,-1)}function Ea(e){var t=Be();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Kn,lastRenderedState:e},t.queue=e,e=e.dispatch=ip.bind(null,V,e),[t.memoizedState,e]}function qn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Sa(){return Ee().memoizedState}function ni(e,t,n,r){var i=Be();V.flags|=e,i.memoizedState=qn(1|t,n,void 0,r===void 0?null:r)}function ri(e,t,n,r){var i=Ee();r=r===void 0?null:r;var o=void 0;if(J!==null){var s=J.memoizedState;if(o=s.destroy,r!==null&&ps(r,s.deps)){i.memoizedState=qn(t,n,o,r);return}}V.flags|=e,i.memoizedState=qn(1|t,n,o,r)}function ka(e,t){return ni(8390656,8,e,t)}function ms(e,t){return ri(2048,8,e,t)}function Aa(e,t){return ri(4,2,e,t)}function La(e,t){return ri(4,4,e,t)}function ja(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ca(e,t,n){return n=n!=null?n.concat([e]):null,ri(4,4,ja.bind(null,t,e),n)}function xs(){}function za(e,t){var n=Ee();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ps(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=Ee();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ps(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _a(e,t,n){return jt&21?(je(n,t)||(n=fu(),V.lanes|=n,Ct|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,he=!0),e.memoizedState=n)}function np(e,t){var n=_;_=n!==0&&4>n?n:4,e(!0);var r=ds.transition;ds.transition={};try{e(!1),t()}finally{_=n,ds.transition=r}}function Ua(){return Ee().memoizedState}function rp(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ra(e))Pa(t,n);else if(n=ha(e,t,n,r),n!==null){var i=fe();Ue(n,e,r,i),Qa(n,t,r)}}function ip(e,t,n){var r=xt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ra(e))Pa(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,je(l,s)){var u=t.interleaved;u===null?(i.next=i,ss(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=ha(e,t,i,r),n!==null&&(i=fe(),Ue(n,e,r,i),Qa(n,t,r))}}function Ra(e){var t=e.alternate;return e===V||t!==null&&t===V}function Pa(e,t){Jn=ti=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qa(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vo(e,n)}}var ii={readContext:De,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},op={readContext:De,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:ka,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ni(4194308,4,ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ni(4194308,4,e,t)},useInsertionEffect:function(e,t){return ni(4,2,e,t)},useMemo:function(e,t){var n=Be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Be();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rp.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:Ea,useDebugValue:xs,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=Ea(!1),t=e[0];return e=np.bind(null,e[1]),Be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,i=Be();if(Y){if(n===void 0)throw Error(m(407));n=n()}else{if(n=t(),q===null)throw Error(m(349));jt&30||va(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ka(Ta.bind(null,r,o,e),[e]),r.flags|=2048,qn(9,Na.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Be(),t=q.identifierPrefix;if(Y){var n=Xe,r=Je;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=tp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sp={readContext:De,useCallback:za,useContext:De,useEffect:ms,useImperativeHandle:Ca,useInsertionEffect:Aa,useLayoutEffect:La,useMemo:Oa,useReducer:ys,useRef:Sa,useState:function(){return ys(Kn)},useDebugValue:xs,useDeferredValue:function(e){var t=Ee();return _a(t,J.memoizedState,e)},useTransition:function(){var e=ys(Kn)[0],t=Ee().memoizedState;return[e,t]},useMutableSource:xa,useSyncExternalStore:wa,useId:Ua,unstable_isNewReconciler:!1},lp={readContext:De,useCallback:za,useContext:De,useEffect:ms,useImperativeHandle:Ca,useInsertionEffect:Aa,useLayoutEffect:La,useMemo:Oa,useReducer:Ms,useRef:Sa,useState:function(){return Ms(Kn)},useDebugValue:xs,useDeferredValue:function(e){var t=Ee();return J===null?t.memoizedState=e:_a(t,J.memoizedState,e)},useTransition:function(){var e=Ms(Kn)[0],t=Ee().memoizedState;return[e,t]},useMutableSource:xa,useSyncExternalStore:wa,useId:Ua,unstable_isNewReconciler:!1};function ze(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:B({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var oi={isMounted:function(e){return(e=e._reactInternals)?It(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fe(),i=xt(e),o=qe(r,i);o.payload=t,n!=null&&(o.callback=n),t=gt(e,o,i),t!==null&&(Ue(t,e,i,r),Xr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fe(),i=xt(e),o=qe(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gt(e,o,i),t!==null&&(Ue(t,e,i,r),Xr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fe(),r=xt(e),i=qe(n,r);i.tag=2,t!=null&&(i.callback=t),t=gt(e,i,r),t!==null&&(Ue(t,e,r,n),Xr(t,e,r))}};function Ya(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Qn(n,r)||!Qn(i,o):!0}function ba(e,t,n){var r=!1,i=dt,o=t.contextType;return typeof o=="object"&&o!==null?o=De(o):(i=pe(t)?Et:ie.current,r=t.contextTypes,o=(r=r!=null)?tn(e,i):dt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=oi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ba(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&oi.enqueueReplaceState(t,t.state,null)}function vs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ls(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=De(o):(o=pe(t)?Et:ie.current,i.context=tn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ws(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&oi.enqueueReplaceState(i,i.state,null),Kr(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function cn(e,t){try{var n="",r=t;do n+=_f(r),r=r.return;while(r);var i=n}catch(o){i=`
37
+ `+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{to=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?In(e):""}function Qd(e){switch(e.tag){case 5:return In(e.type);case 16:return In("Lazy");case 13:return In("Suspense");case 19:return In("SuspenseList");case 0:case 2:case 15:return e=no(e.type,!1),e;case 11:return e=no(e.type.render,!1),e;case 1:return e=no(e.type,!0),e;default:return""}}function ro(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ft:return"Fragment";case Bt:return"Portal";case $i:return"Profiler";case Gi:return"StrictMode";case Xi:return"Suspense";case Ki:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pl:return(e.displayName||"Context")+".Consumer";case Ql:return(e._context.displayName||"Context")+".Provider";case Ji:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qi:return t=e.displayName||null,t!==null?t:ro(e.type)||"Memo";case nt:t=e._payload,e=e._init;try{return ro(e(t))}catch{}}return null}function Pd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ro(t);case 8:return t===Gi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yl(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rd(e){var t=Yl(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mr(e){e._valueTracker||(e._valueTracker=Rd(e))}function Bl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yl(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xr(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}}function io(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vl(e,t){t=t.checked,t!=null&&Zi(e,"checked",t,!1)}function oo(e,t){Vl(e,t);var n=rt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?so(e,t.type,n):t.hasOwnProperty("defaultValue")&&so(e,t.type,rt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hl(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function so(e,t,n){(t!=="number"||xr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Nn=Array.isArray;function Vt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+rt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function lo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(m(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wl(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(m(92));if(Nn(n)){if(1<n.length)throw Error(m(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:rt(n)}}function Zl(e,t){var n=rt(t.value),r=rt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Gl(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function $l(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function uo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?$l(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wr,Jl=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wr=wr||document.createElement("div"),wr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bd=["Webkit","ms","Moz","O"];Object.keys(Tn).forEach(function(e){bd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tn[t]=Tn[e]})});function Xl(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tn.hasOwnProperty(e)&&Tn[e]?(""+t).trim():t+"px"}function Kl(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Xl(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Yd=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ao(e,t){if(t){if(Yd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(m(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(m(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(m(61))}if(t.style!=null&&typeof t.style!="object")throw Error(m(62))}}function co(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 fo=null;function po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ho=null,Ht=null,Wt=null;function ql(e){if(e=Wn(e)){if(typeof ho!="function")throw Error(m(280));var t=e.stateNode;t&&(t=Fr(t),ho(e.stateNode,e.type,t))}}function eu(e){Ht?Wt?Wt.push(e):Wt=[e]:Ht=e}function tu(){if(Ht){var e=Ht,t=Wt;if(Wt=Ht=null,ql(e),t)for(e=0;e<t.length;e++)ql(t[e])}}function nu(e,t){return e(t)}function ru(){}var go=!1;function iu(e,t,n){if(go)return e(t,n);go=!0;try{return nu(e,t,n)}finally{go=!1,(Ht!==null||Wt!==null)&&(ru(),tu())}}function Dn(e,t){var n=e.stateNode;if(n===null)return null;var r=Fr(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(m(231,t,typeof n));return n}var yo=!1;if(We)try{var En={};Object.defineProperty(En,"passive",{get:function(){yo=!0}}),window.addEventListener("test",En,En),window.removeEventListener("test",En,En)}catch{yo=!1}function Bd(e,t,n,r,i,o,s,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(g){this.onError(g)}}var Sn=!1,Ir=null,Nr=!1,Mo=null,Fd={onError:function(e){Sn=!0,Ir=e}};function Vd(e,t,n,r,i,o,s,l,u){Sn=!1,Ir=null,Bd.apply(Fd,arguments)}function Hd(e,t,n,r,i,o,s,l,u){if(Vd.apply(this,arguments),Sn){if(Sn){var c=Ir;Sn=!1,Ir=null}else throw Error(m(198));Nr||(Nr=!0,Mo=c)}}function Tt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ou(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 su(e){if(Tt(e)!==e)throw Error(m(188))}function Wd(e){var t=e.alternate;if(!t){if(t=Tt(e),t===null)throw Error(m(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return su(i),e;if(o===r)return su(i),t;o=o.sibling}throw Error(m(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(m(189))}}if(n.alternate!==r)throw Error(m(190))}if(n.tag!==3)throw Error(m(188));return n.stateNode.current===n?e:t}function lu(e){return e=Wd(e),e!==null?uu(e):null}function uu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=uu(e);if(t!==null)return t;e=e.sibling}return null}var au=me.unstable_scheduleCallback,cu=me.unstable_cancelCallback,Zd=me.unstable_shouldYield,Gd=me.unstable_requestPaint,W=me.unstable_now,$d=me.unstable_getCurrentPriorityLevel,mo=me.unstable_ImmediatePriority,du=me.unstable_UserBlockingPriority,vr=me.unstable_NormalPriority,Jd=me.unstable_LowPriority,fu=me.unstable_IdlePriority,Tr=null,Re=null;function Xd(e){if(Re&&typeof Re.onCommitFiberRoot=="function")try{Re.onCommitFiberRoot(Tr,e,void 0,(e.current.flags&128)===128)}catch{}}var je=Math.clz32?Math.clz32:ef,Kd=Math.log,qd=Math.LN2;function ef(e){return e>>>=0,e===0?32:31-(Kd(e)/qd|0)|0}var Dr=64,Er=4194304;function kn(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=kn(l):(o&=s,o!==0&&(r=kn(o)))}else s=n&~i,s!==0?r=kn(s):o!==0&&(r=kn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-je(t),i=1<<n,r|=e[n],t&=~i;return r}function tf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-je(o),l=1<<s,u=i[s];u===-1?(!(l&n)||l&r)&&(i[s]=tf(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}}function xo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pu(){var e=Dr;return Dr<<=1,!(Dr&4194240)&&(Dr=64),e}function wo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function An(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-je(t),e[t]=n}function rf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-je(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Io(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-je(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _=0;function hu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gu,No,yu,Mu,mu,vo=!1,kr=[],it=null,ot=null,st=null,jn=new Map,zn=new Map,lt=[],of="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function xu(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":ot=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zn.delete(t.pointerId)}}function Cn(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Wn(t),t!==null&&No(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function sf(e,t,n,r,i){switch(t){case"focusin":return it=Cn(it,e,t,n,r,i),!0;case"dragenter":return ot=Cn(ot,e,t,n,r,i),!0;case"mouseover":return st=Cn(st,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return jn.set(o,Cn(jn.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,zn.set(o,Cn(zn.get(o)||null,e,t,n,r,i)),!0}return!1}function wu(e){var t=Dt(e.target);if(t!==null){var n=Tt(t);if(n!==null){if(t=n.tag,t===13){if(t=ou(n),t!==null){e.blockedOn=t,mu(e.priority,function(){yu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ar(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Do(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fo=r,n.target.dispatchEvent(r),fo=null}else return t=Wn(n),t!==null&&No(t),e.blockedOn=n,!1;t.shift()}return!0}function Iu(e,t,n){Ar(e)&&n.delete(t)}function lf(){vo=!1,it!==null&&Ar(it)&&(it=null),ot!==null&&Ar(ot)&&(ot=null),st!==null&&Ar(st)&&(st=null),jn.forEach(Iu),zn.forEach(Iu)}function Ln(e,t){e.blockedOn===t&&(e.blockedOn=null,vo||(vo=!0,me.unstable_scheduleCallback(me.unstable_NormalPriority,lf)))}function On(e){function t(i){return Ln(i,e)}if(0<kr.length){Ln(kr[0],e);for(var n=1;n<kr.length;n++){var r=kr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(it!==null&&Ln(it,e),ot!==null&&Ln(ot,e),st!==null&&Ln(st,e),jn.forEach(t),zn.forEach(t),n=0;n<lt.length;n++)r=lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<lt.length&&(n=lt[0],n.blockedOn===null);)wu(n),n.blockedOn===null&&lt.shift()}var Zt=Ze.ReactCurrentBatchConfig,jr=!0;function uf(e,t,n,r){var i=_,o=Zt.transition;Zt.transition=null;try{_=1,To(e,t,n,r)}finally{_=i,Zt.transition=o}}function af(e,t,n,r){var i=_,o=Zt.transition;Zt.transition=null;try{_=4,To(e,t,n,r)}finally{_=i,Zt.transition=o}}function To(e,t,n,r){if(jr){var i=Do(e,t,n,r);if(i===null)Bo(e,t,r,zr,n),xu(e,r);else if(sf(i,e,t,n,r))r.stopPropagation();else if(xu(e,r),t&4&&-1<of.indexOf(e)){for(;i!==null;){var o=Wn(i);if(o!==null&&gu(o),o=Do(e,t,n,r),o===null&&Bo(e,t,r,zr,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Bo(e,t,r,null,n)}}var zr=null;function Do(e,t,n,r){if(zr=null,e=po(r),e=Dt(e),e!==null)if(t=Tt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ou(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zr=e,null}function Nu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($d()){case mo:return 1;case du:return 4;case vr:case Jd:return 16;case fu:return 536870912;default:return 16}default:return 16}}var ut=null,Eo=null,Cr=null;function vu(){if(Cr)return Cr;var e,t=Eo,n=t.length,r,i="value"in ut?ut.value:ut.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Cr=i.slice(e,1<r?1-r:void 0)}function Lr(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 Or(){return!0}function Tu(){return!1}function xe(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Or:Tu,this.isPropagationStopped=Tu,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Or)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Or)},persist:function(){},isPersistent:Or}),t}var Gt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},So=xe(Gt),_n=B({},Gt,{view:0,detail:0}),cf=xe(_n),ko,Ao,Un,_r=B({},_n,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zo,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!==Un&&(Un&&e.type==="mousemove"?(ko=e.screenX-Un.screenX,Ao=e.screenY-Un.screenY):Ao=ko=0,Un=e),ko)},movementY:function(e){return"movementY"in e?e.movementY:Ao}}),Du=xe(_r),df=B({},_r,{dataTransfer:0}),ff=xe(df),pf=B({},_n,{relatedTarget:0}),jo=xe(pf),hf=B({},Gt,{animationName:0,elapsedTime:0,pseudoElement:0}),gf=xe(hf),yf=B({},Gt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Mf=xe(yf),mf=B({},Gt,{data:0}),Eu=xe(mf),xf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wf={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"},If={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=If[e])?!!t[e]:!1}function zo(){return Nf}var vf=B({},_n,{key:function(e){if(e.key){var t=xf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zo,charCode:function(e){return e.type==="keypress"?Lr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Tf=xe(vf),Df=B({},_r,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Su=xe(Df),Ef=B({},_n,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zo}),Sf=xe(Ef),kf=B({},Gt,{propertyName:0,elapsedTime:0,pseudoElement:0}),Af=xe(kf),jf=B({},_r,{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}),zf=xe(jf),Cf=[9,13,27,32],Co=We&&"CompositionEvent"in window,Qn=null;We&&"documentMode"in document&&(Qn=document.documentMode);var Lf=We&&"TextEvent"in window&&!Qn,ku=We&&(!Co||Qn&&8<Qn&&11>=Qn),Au=String.fromCharCode(32),ju=!1;function zu(e,t){switch(e){case"keyup":return Cf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $t=!1;function Of(e,t){switch(e){case"compositionend":return Cu(t);case"keypress":return t.which!==32?null:(ju=!0,Au);case"textInput":return e=t.data,e===Au&&ju?null:e;default:return null}}function _f(e,t){if($t)return e==="compositionend"||!Co&&zu(e,t)?(e=vu(),Cr=Eo=ut=null,$t=!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 ku&&t.locale!=="ko"?null:t.data;default:return null}}var Uf={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 Lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uf[e.type]:t==="textarea"}function Ou(e,t,n,r){eu(r),t=br(t,"onChange"),0<t.length&&(n=new So("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Pn=null,Rn=null;function Qf(e){Ku(e,0)}function Ur(e){var t=en(e);if(Bl(t))return e}function Pf(e,t){if(e==="change")return t}var _u=!1;if(We){var Lo;if(We){var Oo="oninput"in document;if(!Oo){var Uu=document.createElement("div");Uu.setAttribute("oninput","return;"),Oo=typeof Uu.oninput=="function"}Lo=Oo}else Lo=!1;_u=Lo&&(!document.documentMode||9<document.documentMode)}function Qu(){Pn&&(Pn.detachEvent("onpropertychange",Pu),Rn=Pn=null)}function Pu(e){if(e.propertyName==="value"&&Ur(Rn)){var t=[];Ou(t,Rn,e,po(e)),iu(Qf,t)}}function Rf(e,t,n){e==="focusin"?(Qu(),Pn=t,Rn=n,Pn.attachEvent("onpropertychange",Pu)):e==="focusout"&&Qu()}function bf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ur(Rn)}function Yf(e,t){if(e==="click")return Ur(t)}function Bf(e,t){if(e==="input"||e==="change")return Ur(t)}function Ff(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ze=typeof Object.is=="function"?Object.is:Ff;function bn(e,t){if(ze(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Vi.call(t,i)||!ze(e[i],t[i]))return!1}return!0}function Ru(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bu(e,t){var n=Ru(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ru(n)}}function Yu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bu(){for(var e=window,t=xr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xr(e.document)}return t}function _o(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")}function Vf(e){var t=Bu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Yu(n.ownerDocument.documentElement,n)){if(r!==null&&_o(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=bu(n,o);var s=bu(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hf=We&&"documentMode"in document&&11>=document.documentMode,Jt=null,Uo=null,Yn=null,Qo=!1;function Fu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qo||Jt==null||Jt!==xr(r)||(r=Jt,"selectionStart"in r&&_o(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yn&&bn(Yn,r)||(Yn=r,r=br(Uo,"onSelect"),0<r.length&&(t=new So("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Jt)))}function Qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xt={animationend:Qr("Animation","AnimationEnd"),animationiteration:Qr("Animation","AnimationIteration"),animationstart:Qr("Animation","AnimationStart"),transitionend:Qr("Transition","TransitionEnd")},Po={},Vu={};We&&(Vu=document.createElement("div").style,"AnimationEvent"in window||(delete Xt.animationend.animation,delete Xt.animationiteration.animation,delete Xt.animationstart.animation),"TransitionEvent"in window||delete Xt.transitionend.transition);function Pr(e){if(Po[e])return Po[e];if(!Xt[e])return e;var t=Xt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Vu)return Po[e]=t[n];return e}var Hu=Pr("animationend"),Wu=Pr("animationiteration"),Zu=Pr("animationstart"),Gu=Pr("transitionend"),$u=new Map,Ju="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function at(e,t){$u.set(e,t),vt(t,[e])}for(var Ro=0;Ro<Ju.length;Ro++){var bo=Ju[Ro],Wf=bo.toLowerCase(),Zf=bo[0].toUpperCase()+bo.slice(1);at(Wf,"on"+Zf)}at(Hu,"onAnimationEnd"),at(Wu,"onAnimationIteration"),at(Zu,"onAnimationStart"),at("dblclick","onDoubleClick"),at("focusin","onFocus"),at("focusout","onBlur"),at(Gu,"onTransitionEnd"),Yt("onMouseEnter",["mouseout","mouseover"]),Yt("onMouseLeave",["mouseout","mouseover"]),Yt("onPointerEnter",["pointerout","pointerover"]),Yt("onPointerLeave",["pointerout","pointerover"]),vt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vt("onBeforeInput",["compositionend","keypress","textInput","paste"]),vt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bn="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(" "),Gf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bn));function Xu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Hd(r,t,void 0,e),e.currentTarget=null}function Ku(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;Xu(i,l,c),o=u}else for(s=0;s<r.length;s++){if(l=r[s],u=l.instance,c=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;Xu(i,l,c),o=u}}}if(Nr)throw e=Mo,Nr=!1,Mo=null,e}function Q(e,t){var n=t[Go];n===void 0&&(n=t[Go]=new Set);var r=e+"__bubble";n.has(r)||(qu(t,e,2,!1),n.add(r))}function Yo(e,t,n){var r=0;t&&(r|=4),qu(n,e,r,t)}var Rr="_reactListening"+Math.random().toString(36).slice(2);function Fn(e){if(!e[Rr]){e[Rr]=!0,Ol.forEach(function(n){n!=="selectionchange"&&(Gf.has(n)||Yo(n,!1,e),Yo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Rr]||(t[Rr]=!0,Yo("selectionchange",!1,t))}}function qu(e,t,n,r){switch(Nu(t)){case 1:var i=uf;break;case 4:i=af;break;default:i=To}n=i.bind(null,t,n,e),i=void 0,!yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Bo(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Dt(l),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}l=l.parentNode}}r=r.return}iu(function(){var c=o,g=po(n),h=[];e:{var p=$u.get(e);if(p!==void 0){var M=So,w=e;switch(e){case"keypress":if(Lr(n)===0)break e;case"keydown":case"keyup":M=Tf;break;case"focusin":w="focus",M=jo;break;case"focusout":w="blur",M=jo;break;case"beforeblur":case"afterblur":M=jo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Du;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=ff;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Sf;break;case Hu:case Wu:case Zu:M=gf;break;case Gu:M=Af;break;case"scroll":M=cf;break;case"wheel":M=zf;break;case"copy":case"cut":case"paste":M=Mf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Su}var x=(t&4)!==0,k=!x&&e==="scroll",d=x?p!==null?p+"Capture":null:p;x=[];for(var a=c,f;a!==null;){f=a;var y=f.stateNode;if(f.tag===5&&y!==null&&(f=y,d!==null&&(y=Dn(a,d),y!=null&&x.push(Vn(a,y,f)))),k)break;a=a.return}0<x.length&&(p=new M(p,w,null,n,g),h.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",p&&n!==fo&&(w=n.relatedTarget||n.fromElement)&&(Dt(w)||w[Ge]))break e;if((M||p)&&(p=g.window===g?g:(p=g.ownerDocument)?p.defaultView||p.parentWindow:window,M?(w=n.relatedTarget||n.toElement,M=c,w=w?Dt(w):null,w!==null&&(k=Tt(w),w!==k||w.tag!==5&&w.tag!==6)&&(w=null)):(M=null,w=c),M!==w)){if(x=Du,y="onMouseLeave",d="onMouseEnter",a="mouse",(e==="pointerout"||e==="pointerover")&&(x=Su,y="onPointerLeave",d="onPointerEnter",a="pointer"),k=M==null?p:en(M),f=w==null?p:en(w),p=new x(y,a+"leave",M,n,g),p.target=k,p.relatedTarget=f,y=null,Dt(g)===c&&(x=new x(d,a+"enter",w,n,g),x.target=f,x.relatedTarget=k,y=x),k=y,M&&w)t:{for(x=M,d=w,a=0,f=x;f;f=Kt(f))a++;for(f=0,y=d;y;y=Kt(y))f++;for(;0<a-f;)x=Kt(x),a--;for(;0<f-a;)d=Kt(d),f--;for(;a--;){if(x===d||d!==null&&x===d.alternate)break t;x=Kt(x),d=Kt(d)}x=null}else x=null;M!==null&&ea(h,p,M,x,!1),w!==null&&k!==null&&ea(h,k,w,x,!0)}}e:{if(p=c?en(c):window,M=p.nodeName&&p.nodeName.toLowerCase(),M==="select"||M==="input"&&p.type==="file")var v=Pf;else if(Lu(p))if(_u)v=Bf;else{v=bf;var N=Rf}else(M=p.nodeName)&&M.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(v=Yf);if(v&&(v=v(e,c))){Ou(h,v,n,g);break e}N&&N(e,p,c),e==="focusout"&&(N=p._wrapperState)&&N.controlled&&p.type==="number"&&so(p,"number",p.value)}switch(N=c?en(c):window,e){case"focusin":(Lu(N)||N.contentEditable==="true")&&(Jt=N,Uo=c,Yn=null);break;case"focusout":Yn=Uo=Jt=null;break;case"mousedown":Qo=!0;break;case"contextmenu":case"mouseup":case"dragend":Qo=!1,Fu(h,n,g);break;case"selectionchange":if(Hf)break;case"keydown":case"keyup":Fu(h,n,g)}var T;if(Co)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else $t?zu(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(ku&&n.locale!=="ko"&&($t||S!=="onCompositionStart"?S==="onCompositionEnd"&&$t&&(T=vu()):(ut=g,Eo="value"in ut?ut.value:ut.textContent,$t=!0)),N=br(c,S),0<N.length&&(S=new Eu(S,e,null,n,g),h.push({event:S,listeners:N}),T?S.data=T:(T=Cu(n),T!==null&&(S.data=T)))),(T=Lf?Of(e,n):_f(e,n))&&(c=br(c,"onBeforeInput"),0<c.length&&(g=new Eu("onBeforeInput","beforeinput",null,n,g),h.push({event:g,listeners:c}),g.data=T))}Ku(h,t)})}function Vn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function br(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Dn(e,n),o!=null&&r.unshift(Vn(e,o,i)),o=Dn(e,t),o!=null&&r.push(Vn(e,o,i))),e=e.return}return r}function Kt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ea(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&c!==null&&(l=c,i?(u=Dn(n,o),u!=null&&s.unshift(Vn(n,u,l))):i||(u=Dn(n,o),u!=null&&s.push(Vn(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var $f=/\r\n?/g,Jf=/\u0000|\uFFFD/g;function ta(e){return(typeof e=="string"?e:""+e).replace($f,`
38
+ `).replace(Jf,"")}function Yr(e,t,n){if(t=ta(t),ta(e)!==t&&n)throw Error(m(425))}function Br(){}var Fo=null,Vo=null;function Ho(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wo=typeof setTimeout=="function"?setTimeout:void 0,Xf=typeof clearTimeout=="function"?clearTimeout:void 0,na=typeof Promise=="function"?Promise:void 0,Kf=typeof queueMicrotask=="function"?queueMicrotask:typeof na<"u"?function(e){return na.resolve(null).then(e).catch(qf)}:Wo;function qf(e){setTimeout(function(){throw e})}function Zo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),On(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);On(t)}function ct(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==="$?")break;if(t==="/$")return null}}return e}function ra(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var qt=Math.random().toString(36).slice(2),be="__reactFiber$"+qt,Hn="__reactProps$"+qt,Ge="__reactContainer$"+qt,Go="__reactEvents$"+qt,ep="__reactListeners$"+qt,tp="__reactHandles$"+qt;function Dt(e){var t=e[be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ge]||n[be]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ra(e);e!==null;){if(n=e[be])return n;e=ra(e)}return t}e=n,n=e.parentNode}return null}function Wn(e){return e=e[be]||e[Ge],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function en(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(m(33))}function Fr(e){return e[Hn]||null}var $o=[],tn=-1;function dt(e){return{current:e}}function P(e){0>tn||(e.current=$o[tn],$o[tn]=null,tn--)}function U(e,t){tn++,$o[tn]=e.current,e.current=t}var ft={},ie=dt(ft),fe=dt(!1),Et=ft;function nn(e,t){var n=e.type.contextTypes;if(!n)return ft;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function pe(e){return e=e.childContextTypes,e!=null}function Vr(){P(fe),P(ie)}function ia(e,t,n){if(ie.current!==ft)throw Error(m(168));U(ie,t),U(fe,n)}function oa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(m(108,Pd(e)||"Unknown",i));return B({},n,r)}function Hr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ft,Et=ie.current,U(ie,e),U(fe,fe.current),!0}function sa(e,t,n){var r=e.stateNode;if(!r)throw Error(m(169));n?(e=oa(e,t,Et),r.__reactInternalMemoizedMergedChildContext=e,P(fe),P(ie),U(ie,e)):P(fe),U(fe,n)}var $e=null,Wr=!1,Jo=!1;function la(e){$e===null?$e=[e]:$e.push(e)}function np(e){Wr=!0,la(e)}function pt(){if(!Jo&&$e!==null){Jo=!0;var e=0,t=_;try{var n=$e;for(_=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$e=null,Wr=!1}catch(i){throw $e!==null&&($e=$e.slice(e+1)),au(mo,pt),i}finally{_=t,Jo=!1}}return null}var rn=[],on=0,Zr=null,Gr=0,ve=[],Te=0,St=null,Je=1,Xe="";function kt(e,t){rn[on++]=Gr,rn[on++]=Zr,Zr=e,Gr=t}function ua(e,t,n){ve[Te++]=Je,ve[Te++]=Xe,ve[Te++]=St,St=e;var r=Je;e=Xe;var i=32-je(r)-1;r&=~(1<<i),n+=1;var o=32-je(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Je=1<<32-je(t)+i|n<<i|r,Xe=o+e}else Je=1<<o|n<<i|r,Xe=e}function Xo(e){e.return!==null&&(kt(e,1),ua(e,1,0))}function Ko(e){for(;e===Zr;)Zr=rn[--on],rn[on]=null,Gr=rn[--on],rn[on]=null;for(;e===St;)St=ve[--Te],ve[Te]=null,Xe=ve[--Te],ve[Te]=null,Je=ve[--Te],ve[Te]=null}var we=null,Ie=null,b=!1,Ce=null;function aa(e,t){var n=ke(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ca(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,we=e,Ie=ct(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,Ie=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=St!==null?{id:Je,overflow:Xe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ke(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,Ie=null,!0):!1;default:return!1}}function qo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function es(e){if(b){var t=Ie;if(t){var n=t;if(!ca(e,t)){if(qo(e))throw Error(m(418));t=ct(n.nextSibling);var r=we;t&&ca(e,t)?aa(r,n):(e.flags=e.flags&-4097|2,b=!1,we=e)}}else{if(qo(e))throw Error(m(418));e.flags=e.flags&-4097|2,b=!1,we=e}}}function da(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function $r(e){if(e!==we)return!1;if(!b)return da(e),b=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ho(e.type,e.memoizedProps)),t&&(t=Ie)){if(qo(e))throw fa(),Error(m(418));for(;t;)aa(e,t),t=ct(t.nextSibling)}if(da(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(m(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ie=ct(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ie=null}}else Ie=we?ct(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=Ie;e;)e=ct(e.nextSibling)}function sn(){Ie=we=null,b=!1}function ts(e){Ce===null?Ce=[e]:Ce.push(e)}var rp=Ze.ReactCurrentBatchConfig;function Zn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(m(309));var r=n.stateNode}if(!r)throw Error(m(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(m(284));if(!n._owner)throw Error(m(290,e))}return e}function Jr(e,t){throw e=Object.prototype.toString.call(t),Error(m(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pa(e){var t=e._init;return t(e._payload)}function ha(e){function t(d,a){if(e){var f=d.deletions;f===null?(d.deletions=[a],d.flags|=16):f.push(a)}}function n(d,a){if(!e)return null;for(;a!==null;)t(d,a),a=a.sibling;return null}function r(d,a){for(d=new Map;a!==null;)a.key!==null?d.set(a.key,a):d.set(a.index,a),a=a.sibling;return d}function i(d,a){return d=It(d,a),d.index=0,d.sibling=null,d}function o(d,a,f){return d.index=f,e?(f=d.alternate,f!==null?(f=f.index,f<a?(d.flags|=2,a):f):(d.flags|=2,a)):(d.flags|=1048576,a)}function s(d){return e&&d.alternate===null&&(d.flags|=2),d}function l(d,a,f,y){return a===null||a.tag!==6?(a=Ws(f,d.mode,y),a.return=d,a):(a=i(a,f),a.return=d,a)}function u(d,a,f,y){var v=f.type;return v===Ft?g(d,a,f.props.children,y,f.key):a!==null&&(a.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===nt&&pa(v)===a.type)?(y=i(a,f.props),y.ref=Zn(d,a,f),y.return=d,y):(y=wi(f.type,f.key,f.props,null,d.mode,y),y.ref=Zn(d,a,f),y.return=d,y)}function c(d,a,f,y){return a===null||a.tag!==4||a.stateNode.containerInfo!==f.containerInfo||a.stateNode.implementation!==f.implementation?(a=Zs(f,d.mode,y),a.return=d,a):(a=i(a,f.children||[]),a.return=d,a)}function g(d,a,f,y,v){return a===null||a.tag!==7?(a=Ut(f,d.mode,y,v),a.return=d,a):(a=i(a,f),a.return=d,a)}function h(d,a,f){if(typeof a=="string"&&a!==""||typeof a=="number")return a=Ws(""+a,d.mode,f),a.return=d,a;if(typeof a=="object"&&a!==null){switch(a.$$typeof){case Mr:return f=wi(a.type,a.key,a.props,null,d.mode,f),f.ref=Zn(d,null,a),f.return=d,f;case Bt:return a=Zs(a,d.mode,f),a.return=d,a;case nt:var y=a._init;return h(d,y(a._payload),f)}if(Nn(a)||wn(a))return a=Ut(a,d.mode,f,null),a.return=d,a;Jr(d,a)}return null}function p(d,a,f,y){var v=a!==null?a.key:null;if(typeof f=="string"&&f!==""||typeof f=="number")return v!==null?null:l(d,a,""+f,y);if(typeof f=="object"&&f!==null){switch(f.$$typeof){case Mr:return f.key===v?u(d,a,f,y):null;case Bt:return f.key===v?c(d,a,f,y):null;case nt:return v=f._init,p(d,a,v(f._payload),y)}if(Nn(f)||wn(f))return v!==null?null:g(d,a,f,y,null);Jr(d,f)}return null}function M(d,a,f,y,v){if(typeof y=="string"&&y!==""||typeof y=="number")return d=d.get(f)||null,l(a,d,""+y,v);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Mr:return d=d.get(y.key===null?f:y.key)||null,u(a,d,y,v);case Bt:return d=d.get(y.key===null?f:y.key)||null,c(a,d,y,v);case nt:var N=y._init;return M(d,a,f,N(y._payload),v)}if(Nn(y)||wn(y))return d=d.get(f)||null,g(a,d,y,v,null);Jr(a,y)}return null}function w(d,a,f,y){for(var v=null,N=null,T=a,S=a=0,Y=null;T!==null&&S<f.length;S++){T.index>S?(Y=T,T=null):Y=T.sibling;var j=p(d,T,f[S],y);if(j===null){T===null&&(T=Y);break}e&&T&&j.alternate===null&&t(d,T),a=o(j,a,S),N===null?v=j:N.sibling=j,N=j,T=Y}if(S===f.length)return n(d,T),b&&kt(d,S),v;if(T===null){for(;S<f.length;S++)T=h(d,f[S],y),T!==null&&(a=o(T,a,S),N===null?v=T:N.sibling=T,N=T);return b&&kt(d,S),v}for(T=r(d,T);S<f.length;S++)Y=M(T,d,S,f[S],y),Y!==null&&(e&&Y.alternate!==null&&T.delete(Y.key===null?S:Y.key),a=o(Y,a,S),N===null?v=Y:N.sibling=Y,N=Y);return e&&T.forEach(function(Pe){return t(d,Pe)}),b&&kt(d,S),v}function x(d,a,f,y){var v=wn(f);if(typeof v!="function")throw Error(m(150));if(f=v.call(f),f==null)throw Error(m(151));for(var N=v=null,T=a,S=a=0,Y=null,j=f.next();T!==null&&!j.done;S++,j=f.next()){T.index>S?(Y=T,T=null):Y=T.sibling;var Pe=p(d,T,j.value,y);if(Pe===null){T===null&&(T=Y);break}e&&T&&Pe.alternate===null&&t(d,T),a=o(Pe,a,S),N===null?v=Pe:N.sibling=Pe,N=Pe,T=Y}if(j.done)return n(d,T),b&&kt(d,S),v;if(T===null){for(;!j.done;S++,j=f.next())j=h(d,j.value,y),j!==null&&(a=o(j,a,S),N===null?v=j:N.sibling=j,N=j);return b&&kt(d,S),v}for(T=r(d,T);!j.done;S++,j=f.next())j=M(T,d,S,j.value,y),j!==null&&(e&&j.alternate!==null&&T.delete(j.key===null?S:j.key),a=o(j,a,S),N===null?v=j:N.sibling=j,N=j);return e&&T.forEach(function(cr){return t(d,cr)}),b&&kt(d,S),v}function k(d,a,f,y){if(typeof f=="object"&&f!==null&&f.type===Ft&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Mr:e:{for(var v=f.key,N=a;N!==null;){if(N.key===v){if(v=f.type,v===Ft){if(N.tag===7){n(d,N.sibling),a=i(N,f.props.children),a.return=d,d=a;break e}}else if(N.elementType===v||typeof v=="object"&&v!==null&&v.$$typeof===nt&&pa(v)===N.type){n(d,N.sibling),a=i(N,f.props),a.ref=Zn(d,N,f),a.return=d,d=a;break e}n(d,N);break}else t(d,N);N=N.sibling}f.type===Ft?(a=Ut(f.props.children,d.mode,y,f.key),a.return=d,d=a):(y=wi(f.type,f.key,f.props,null,d.mode,y),y.ref=Zn(d,a,f),y.return=d,d=y)}return s(d);case Bt:e:{for(N=f.key;a!==null;){if(a.key===N)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){n(d,a.sibling),a=i(a,f.children||[]),a.return=d,d=a;break e}else{n(d,a);break}else t(d,a);a=a.sibling}a=Zs(f,d.mode,y),a.return=d,d=a}return s(d);case nt:return N=f._init,k(d,a,N(f._payload),y)}if(Nn(f))return w(d,a,f,y);if(wn(f))return x(d,a,f,y);Jr(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(n(d,a.sibling),a=i(a,f),a.return=d,d=a):(n(d,a),a=Ws(f,d.mode,y),a.return=d,d=a),s(d)):n(d,a)}return k}var ln=ha(!0),ga=ha(!1),Xr=dt(null),Kr=null,un=null,ns=null;function rs(){ns=un=Kr=null}function is(e){var t=Xr.current;P(Xr),e._currentValue=t}function os(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function an(e,t){Kr=e,ns=un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(he=!0),e.firstContext=null)}function De(e){var t=e._currentValue;if(ns!==e)if(e={context:e,memoizedValue:t,next:null},un===null){if(Kr===null)throw Error(m(308));un=e,Kr.dependencies={lanes:0,firstContext:e}}else un=un.next=e;return t}var At=null;function ss(e){At===null?At=[e]:At.push(e)}function ya(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ss(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ke(e,r)}function Ke(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ht=!1;function ls(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ma(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ke(e,n)}return i=r.interleaved,i===null?(t.next=t,ss(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ke(e,n)}function qr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Io(e,n)}}function ma(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ei(e,t,n,r){var i=e.updateQueue;ht=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,c=u.next;u.next=null,s===null?o=c:s.next=c,s=u;var g=e.alternate;g!==null&&(g=g.updateQueue,l=g.lastBaseUpdate,l!==s&&(l===null?g.firstBaseUpdate=c:l.next=c,g.lastBaseUpdate=u))}if(o!==null){var h=i.baseState;s=0,g=c=u=null,l=o;do{var p=l.lane,M=l.eventTime;if((r&p)===p){g!==null&&(g=g.next={eventTime:M,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,x=l;switch(p=t,M=n,x.tag){case 1:if(w=x.payload,typeof w=="function"){h=w.call(M,h,p);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=x.payload,p=typeof w=="function"?w.call(M,h,p):w,p==null)break e;h=B({},h,p);break e;case 2:ht=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else M={eventTime:M,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},g===null?(c=g=M,u=h):g=g.next=M,s|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(g===null&&(u=h),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=g,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ct|=s,e.lanes=s,e.memoizedState=h}}function xa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(m(191,i));i.call(r)}}}var Gn={},Ye=dt(Gn),$n=dt(Gn),Jn=dt(Gn);function jt(e){if(e===Gn)throw Error(m(174));return e}function us(e,t){switch(U(Jn,t),U($n,e),U(Ye,Gn),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:uo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=uo(t,e)}P(Ye),U(Ye,t)}function cn(){P(Ye),P($n),P(Jn)}function wa(e){jt(Jn.current);var t=jt(Ye.current),n=uo(t,e.type);t!==n&&(U($n,e),U(Ye,n))}function as(e){$n.current===e&&(P(Ye),P($n))}var F=dt(0);function ti(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 cs=[];function ds(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ni=Ze.ReactCurrentDispatcher,fs=Ze.ReactCurrentBatchConfig,zt=0,V=null,J=null,K=null,ri=!1,Xn=!1,Kn=0,ip=0;function oe(){throw Error(m(321))}function ps(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ze(e[n],t[n]))return!1;return!0}function hs(e,t,n,r,i,o){if(zt=o,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ni.current=e===null||e.memoizedState===null?up:ap,e=n(r,i),Xn){o=0;do{if(Xn=!1,Kn=0,25<=o)throw Error(m(301));o+=1,K=J=null,t.updateQueue=null,ni.current=cp,e=n(r,i)}while(Xn)}if(ni.current=si,t=J!==null&&J.next!==null,zt=0,K=J=V=null,ri=!1,t)throw Error(m(300));return e}function gs(){var e=Kn!==0;return Kn=0,e}function Be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return K===null?V.memoizedState=K=e:K=K.next=e,K}function Ee(){if(J===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=J.next;var t=K===null?V.memoizedState:K.next;if(t!==null)K=t,J=e;else{if(e===null)throw Error(m(310));J=e,e={memoizedState:J.memoizedState,baseState:J.baseState,baseQueue:J.baseQueue,queue:J.queue,next:null},K===null?V.memoizedState=K=e:K=K.next=e}return K}function qn(e,t){return typeof t=="function"?t(e):t}function ys(e){var t=Ee(),n=t.queue;if(n===null)throw Error(m(311));n.lastRenderedReducer=e;var r=J,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,u=null,c=o;do{var g=c.lane;if((zt&g)===g)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:g,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(l=u=h,s=r):u=u.next=h,V.lanes|=g,Ct|=g}c=c.next}while(c!==null&&c!==o);u===null?s=r:u.next=l,ze(r,t.memoizedState)||(he=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,V.lanes|=o,Ct|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ms(e){var t=Ee(),n=t.queue;if(n===null)throw Error(m(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);ze(o,t.memoizedState)||(he=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ia(){}function Na(e,t){var n=V,r=Ee(),i=t(),o=!ze(r.memoizedState,i);if(o&&(r.memoizedState=i,he=!0),r=r.queue,ms(Da.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||K!==null&&K.memoizedState.tag&1){if(n.flags|=2048,er(9,Ta.bind(null,n,r,i,t),void 0,null),q===null)throw Error(m(349));zt&30||va(n,t,i)}return i}function va(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ta(e,t,n,r){t.value=n,t.getSnapshot=r,Ea(t)&&Sa(e)}function Da(e,t,n){return n(function(){Ea(t)&&Sa(e)})}function Ea(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ze(e,n)}catch{return!0}}function Sa(e){var t=Ke(e,1);t!==null&&Ue(t,e,1,-1)}function ka(e){var t=Be();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qn,lastRenderedState:e},t.queue=e,e=e.dispatch=lp.bind(null,V,e),[t.memoizedState,e]}function er(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Aa(){return Ee().memoizedState}function ii(e,t,n,r){var i=Be();V.flags|=e,i.memoizedState=er(1|t,n,void 0,r===void 0?null:r)}function oi(e,t,n,r){var i=Ee();r=r===void 0?null:r;var o=void 0;if(J!==null){var s=J.memoizedState;if(o=s.destroy,r!==null&&ps(r,s.deps)){i.memoizedState=er(t,n,o,r);return}}V.flags|=e,i.memoizedState=er(1|t,n,o,r)}function ja(e,t){return ii(8390656,8,e,t)}function ms(e,t){return oi(2048,8,e,t)}function za(e,t){return oi(4,2,e,t)}function Ca(e,t){return oi(4,4,e,t)}function La(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Oa(e,t,n){return n=n!=null?n.concat([e]):null,oi(4,4,La.bind(null,t,e),n)}function xs(){}function _a(e,t){var n=Ee();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ps(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ua(e,t){var n=Ee();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ps(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return zt&21?(ze(n,t)||(n=pu(),V.lanes|=n,Ct|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,he=!0),e.memoizedState=n)}function op(e,t){var n=_;_=n!==0&&4>n?n:4,e(!0);var r=fs.transition;fs.transition={};try{e(!1),t()}finally{_=n,fs.transition=r}}function Pa(){return Ee().memoizedState}function sp(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ra(e))ba(t,n);else if(n=ya(e,t,n,r),n!==null){var i=de();Ue(n,e,r,i),Ya(n,t,r)}}function lp(e,t,n){var r=xt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ra(e))ba(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,ze(l,s)){var u=t.interleaved;u===null?(i.next=i,ss(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=ya(e,t,i,r),n!==null&&(i=de(),Ue(n,e,r,i),Ya(n,t,r))}}function Ra(e){var t=e.alternate;return e===V||t!==null&&t===V}function ba(e,t){Xn=ri=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ya(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Io(e,n)}}var si={readContext:De,useCallback:oe,useContext:oe,useEffect:oe,useImperativeHandle:oe,useInsertionEffect:oe,useLayoutEffect:oe,useMemo:oe,useReducer:oe,useRef:oe,useState:oe,useDebugValue:oe,useDeferredValue:oe,useTransition:oe,useMutableSource:oe,useSyncExternalStore:oe,useId:oe,unstable_isNewReconciler:!1},up={readContext:De,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:ja,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ii(4194308,4,La.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ii(4194308,4,e,t)},useInsertionEffect:function(e,t){return ii(4,2,e,t)},useMemo:function(e,t){var n=Be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Be();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sp.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:ka,useDebugValue:xs,useDeferredValue:function(e){return Be().memoizedState=e},useTransition:function(){var e=ka(!1),t=e[0];return e=op.bind(null,e[1]),Be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,i=Be();if(b){if(n===void 0)throw Error(m(407));n=n()}else{if(n=t(),q===null)throw Error(m(349));zt&30||va(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ja(Da.bind(null,r,o,e),[e]),r.flags|=2048,er(9,Ta.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Be(),t=q.identifierPrefix;if(b){var n=Xe,r=Je;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Kn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ip++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ap={readContext:De,useCallback:_a,useContext:De,useEffect:ms,useImperativeHandle:Oa,useInsertionEffect:za,useLayoutEffect:Ca,useMemo:Ua,useReducer:ys,useRef:Aa,useState:function(){return ys(qn)},useDebugValue:xs,useDeferredValue:function(e){var t=Ee();return Qa(t,J.memoizedState,e)},useTransition:function(){var e=ys(qn)[0],t=Ee().memoizedState;return[e,t]},useMutableSource:Ia,useSyncExternalStore:Na,useId:Pa,unstable_isNewReconciler:!1},cp={readContext:De,useCallback:_a,useContext:De,useEffect:ms,useImperativeHandle:Oa,useInsertionEffect:za,useLayoutEffect:Ca,useMemo:Ua,useReducer:Ms,useRef:Aa,useState:function(){return Ms(qn)},useDebugValue:xs,useDeferredValue:function(e){var t=Ee();return J===null?t.memoizedState=e:Qa(t,J.memoizedState,e)},useTransition:function(){var e=Ms(qn)[0],t=Ee().memoizedState;return[e,t]},useMutableSource:Ia,useSyncExternalStore:Na,useId:Pa,unstable_isNewReconciler:!1};function Le(e,t){if(e&&e.defaultProps){t=B({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:B({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var li={isMounted:function(e){return(e=e._reactInternals)?Tt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=de(),i=xt(e),o=qe(r,i);o.payload=t,n!=null&&(o.callback=n),t=gt(e,o,i),t!==null&&(Ue(t,e,i,r),qr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=de(),i=xt(e),o=qe(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gt(e,o,i),t!==null&&(Ue(t,e,i,r),qr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=de(),r=xt(e),i=qe(n,r);i.tag=2,t!=null&&(i.callback=t),t=gt(e,i,r),t!==null&&(Ue(t,e,r,n),qr(t,e,r))}};function Ba(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!bn(n,r)||!bn(i,o):!0}function Fa(e,t,n){var r=!1,i=ft,o=t.contextType;return typeof o=="object"&&o!==null?o=De(o):(i=pe(t)?Et:ie.current,r=t.contextTypes,o=(r=r!=null)?nn(e,i):ft),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=li,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Va(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&li.enqueueReplaceState(t,t.state,null)}function Is(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ls(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=De(o):(o=pe(t)?Et:ie.current,i.context=nn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ws(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&li.enqueueReplaceState(i,i.state,null),ei(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function dn(e,t){try{var n="",r=t;do n+=Qd(r),r=r.return;while(r);var i=n}catch(o){i=`
39
39
  Error generating stack: `+o.message+`
40
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ns(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ts(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var up=typeof WeakMap=="function"?WeakMap:Map;function Fa(e,t,n){n=qe(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){di||(di=!0,Ps=r),Ts(e,t)},n}function Va(e,t,n){n=qe(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ts(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ts(e,t),typeof r!="function"&&(Mt===null?Mt=new Set([this]):Mt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ha(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new up;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Np.bind(null,e,t,n),t.then(e,e))}function Wa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Za(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=qe(-1,1),t.tag=2,gt(n,t,1))),n.lanes|=1),e)}var ap=Ze.ReactCurrentOwner,he=!1;function ce(e,t,n,r){t.child=e===null?pa(t,null,n,r):sn(t,e.child,n,r)}function Ga(e,t,n,r,i){n=n.render;var o=t.ref;return un(t,i),r=hs(e,t,n,r,o,i),n=gs(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,et(e,t,i)):(Y&&n&&Xo(t),t.flags|=1,ce(e,t,r,i),t.child)}function $a(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Hs(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ja(e,t,o,r,i)):(e=mi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Qn,n(s,r)&&e.ref===t.ref)return et(e,t,i)}return t.flags|=1,e=vt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ja(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Qn(o,r)&&e.ref===t.ref)if(he=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(he=!0);else return t.lanes=e.lanes,et(e,t,i)}return Is(e,t,n,r,i)}function Xa(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(dn,Ne),Ne|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(dn,Ne),Ne|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(dn,Ne),Ne|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(dn,Ne),Ne|=r;return ce(e,t,i,n),t.child}function Ka(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Is(e,t,n,r,i){var o=pe(n)?Et:ie.current;return o=tn(t,o),un(t,i),n=hs(e,t,n,r,o,i),r=gs(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,et(e,t,i)):(Y&&r&&Xo(t),t.flags|=1,ce(e,t,n,i),t.child)}function qa(e,t,n,r,i){if(pe(n)){var o=!0;Fr(t)}else o=!1;if(un(t,i),t.stateNode===null)li(e,t),ba(t,n,r),vs(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=De(c):(c=pe(n)?Et:ie.current,c=tn(t,c));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";g||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==c)&&Ba(t,s,r,c),ht=!1;var p=t.memoizedState;s.state=p,Kr(t,r,s,i),u=t.memoizedState,l!==r||p!==u||de.current||ht?(typeof h=="function"&&(ws(t,n,h,r),u=t.memoizedState),(l=ht||Ya(t,n,l,r,p,u,c))?(g||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=c,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ga(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:ze(t.type,l),s.props=c,g=t.pendingProps,p=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=De(u):(u=pe(n)?Et:ie.current,u=tn(t,u));var w=n.getDerivedStateFromProps;(h=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==g||p!==u)&&Ba(t,s,r,u),ht=!1,p=t.memoizedState,s.state=p,Kr(t,r,s,i);var x=t.memoizedState;l!==g||p!==x||de.current||ht?(typeof w=="function"&&(ws(t,n,w,r),x=t.memoizedState),(c=ht||Ya(t,n,c,r,p,x,u)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=u,r=c):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ds(e,t,n,r,o,i)}function Ds(e,t,n,r,i,o){Ka(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&ia(t,n,!1),et(e,t,o);r=t.stateNode,ap.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=sn(t,e.child,null,o),t.child=sn(t,null,l,o)):ce(e,t,l,o),t.memoizedState=r.state,i&&ia(t,n,!0),t.child}function ec(e){var t=e.stateNode;t.pendingContext?na(e,t.pendingContext,t.pendingContext!==t.context):t.context&&na(e,t.context,!1),us(e,t.containerInfo)}function tc(e,t,n,r,i){return on(),ts(i),t.flags|=256,ce(e,t,n,r),t.child}var Es={dehydrated:null,treeContext:null,retryLane:0};function Ss(e){return{baseLanes:e,cachePool:null,transitions:null}}function nc(e,t,n){var r=t.pendingProps,i=F.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),U(F,i&1),e===null)return es(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=xi(s,r,0,null),e=Ut(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ss(n),t.memoizedState=Es,e):ks(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return cp(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=vt(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=vt(l,o):(o=Ut(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Ss(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Es,r}return o=e.child,e=o.sibling,r=vt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ks(e,t){return t=xi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function si(e,t,n,r){return r!==null&&ts(r),sn(t,e.child,null,n),e=ks(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cp(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Ns(Error(m(422))),si(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=xi({mode:"visible",children:r.children},i,0,null),o=Ut(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&sn(t,e.child,null,s),t.child.memoizedState=Ss(s),t.memoizedState=Es,o);if(!(t.mode&1))return si(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(m(419)),r=Ns(o,r,void 0),si(e,t,s,r)}if(l=(s&e.childLanes)!==0,he||l){if(r=q,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Ke(e,i),Ue(r,e,i,-1))}return Vs(),r=Ns(Error(m(421))),si(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Tp.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ve=ct(i.nextSibling),we=t,Y=!0,Ce=null,e!==null&&(Te[Ie++]=Je,Te[Ie++]=Xe,Te[Ie++]=St,Je=e.id,Xe=e.overflow,St=t),t=ks(t,r.children),t.flags|=4096,t)}function rc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),os(e.return,t,n)}function As(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function ic(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ce(e,t,r.children,n),r=F.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rc(e,n,t);else if(e.tag===19)rc(e,n,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}r&=1}if(U(F,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&qr(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),As(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&qr(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}As(t,!0,n,null,o);break;case"together":As(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function li(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ct|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(m(153));if(t.child!==null){for(e=t.child,n=vt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fp(e,t,n){switch(t.tag){case 3:ec(t),on();break;case 5:ma(t);break;case 1:pe(t.type)&&Fr(t);break;case 4:us(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;U($r,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(F,F.current&1),t.flags|=128,null):n&t.child.childLanes?nc(e,t,n):(U(F,F.current&1),e=et(e,t,n),e!==null?e.sibling:null);U(F,F.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ic(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(F,F.current),r)break;return null;case 22:case 23:return t.lanes=0,Xa(e,t,n)}return et(e,t,n)}var oc,Ls,sc,lc;oc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ls=function(){},sc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Lt(be.current);var o=null;switch(n){case"input":i=io(e,i),r=io(e,r),o=[];break;case"select":i=B({},i,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":i=lo(e,i),r=lo(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Yr)}ao(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(mn.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(mn.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&R("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},lc=function(e,t,n,r){n!==r&&(t.flags|=4)};function er(e,t){if(!Y)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dp(e,t,n){var r=t.pendingProps;switch(Ko(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(t),null;case 1:return pe(t.type)&&Br(),se(t),null;case 3:return r=t.stateNode,an(),P(de),P(ie),fs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Zr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ce!==null&&(bs(Ce),Ce=null))),Ls(e,t),se(t),null;case 5:as(t);var i=Lt($n.current);if(n=t.type,e!==null&&t.stateNode!=null)sc(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(m(166));return se(t),null}if(e=Lt(be.current),Zr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ye]=t,r[Vn]=o,e=(t.mode&1)!==0,n){case"dialog":R("cancel",r),R("close",r);break;case"iframe":case"object":case"embed":R("load",r);break;case"video":case"audio":for(i=0;i<bn.length;i++)R(bn[i],r);break;case"source":R("error",r);break;case"img":case"image":case"link":R("error",r),R("load",r);break;case"details":R("toggle",r);break;case"input":bl(r,o),R("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},R("invalid",r);break;case"textarea":Vl(r,o),R("invalid",r)}ao(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Qr(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Qr(r.textContent,l,e),i=["children",""+l]):mn.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&R("scroll",r)}switch(n){case"input":yr(r),Fl(r,o,!0);break;case"textarea":yr(r),Wl(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Yr)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Zl(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ye]=t,e[Vn]=r,oc(e,t,!1,!1),t.stateNode=e;e:{switch(s=co(n,r),n){case"dialog":R("cancel",e),R("close",e),i=r;break;case"iframe":case"object":case"embed":R("load",e),i=r;break;case"video":case"audio":for(i=0;i<bn.length;i++)R(bn[i],e);i=r;break;case"source":R("error",e),i=r;break;case"img":case"image":case"link":R("error",e),R("load",e),i=r;break;case"details":R("toggle",e),i=r;break;case"input":bl(e,r),i=io(e,r),R("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=B({},r,{value:void 0}),R("invalid",e);break;case"textarea":Vl(e,r),i=lo(e,r),R("invalid",e);break;default:i=r}ao(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?Jl(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Gl(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Nn(e,u):typeof u=="number"&&Nn(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(mn.hasOwnProperty(o)?u!=null&&o==="onScroll"&&R("scroll",e):u!=null&&Zi(e,o,u,s))}switch(n){case"input":yr(e),Fl(e,r,!1);break;case"textarea":yr(e),Wl(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ft(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ft(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Yr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return se(t),null;case 6:if(e&&t.stateNode!=null)lc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(m(166));if(n=Lt($n.current),Lt(be.current),Zr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ye]=t,(o=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:Qr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Qr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ye]=t,t.stateNode=r}return se(t),null;case 13:if(P(F),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Y&&ve!==null&&t.mode&1&&!(t.flags&128))ca(),on(),t.flags|=98560,o=!1;else if(o=Zr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(m(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(m(317));o[Ye]=t}else on(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),o=!1}else Ce!==null&&(bs(Ce),Ce=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||F.current&1?X===0&&(X=3):Vs())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return an(),Ls(e,t),e===null&&Bn(t.stateNode.containerInfo),se(t),null;case 10:return is(t.type._context),se(t),null;case 17:return pe(t.type)&&Br(),se(t),null;case 19:if(P(F),o=t.memoizedState,o===null)return se(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)er(o,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=qr(e),s!==null){for(t.flags|=128,er(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(F,F.current&1|2),t.child}e=e.sibling}o.tail!==null&&W()>pn&&(t.flags|=128,r=!0,er(o,!1),t.lanes=4194304)}else{if(!r)if(e=qr(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),er(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Y)return se(t),null}else 2*W()-o.renderingStartTime>pn&&n!==1073741824&&(t.flags|=128,r=!0,er(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=W(),t.sibling=null,n=F.current,U(F,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Fs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ne&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(m(156,t.tag))}function pp(e,t){switch(Ko(t),t.tag){case 1:return pe(t.type)&&Br(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),P(de),P(ie),fs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return as(t),null;case 13:if(P(F),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(m(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return P(F),null;case 4:return an(),null;case 10:return is(t.type._context),null;case 22:case 23:return Fs(),null;case 24:return null;default:return null}}var ui=!1,le=!1,hp=typeof WeakSet=="function"?WeakSet:Set,I=null;function fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function js(e,t,n){try{n()}catch(r){H(e,t,r)}}var uc=!1;function gp(e,t){if(Fo=kr,e=Yu(),_o(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,h=0,g=e,p=null;t:for(;;){for(var w;g!==n||i!==0&&g.nodeType!==3||(l=s+i),g!==o||r!==0&&g.nodeType!==3||(u=s+r),g.nodeType===3&&(s+=g.nodeValue.length),(w=g.firstChild)!==null;)p=g,g=w;for(;;){if(g===e)break t;if(p===n&&++c===i&&(l=s),p===o&&++h===r&&(u=s),(w=g.nextSibling)!==null)break;g=p,p=g.parentNode}g=w}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vo={focusedElem:e,selectionRange:n},kr=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,k=x.memoizedState,f=t.stateNode,a=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:ze(t.type,y),k);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(m(163))}}catch(M){H(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return x=uc,uc=!1,x}function tr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&js(t,n,o)}i=i.next}while(i!==r)}}function ai(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ac(e){var t=e.alternate;t!==null&&(e.alternate=null,ac(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ye],delete t[Vn],delete t[Go],delete t[Xd],delete t[Kd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function cc(e){return e.tag===5||e.tag===3||e.tag===4}function fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cc(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.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 zs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yr));else if(r!==4&&(e=e.child,e!==null))for(zs(e,t,n),e=e.sibling;e!==null;)zs(e,t,n),e=e.sibling}function Os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Os(e,t,n),e=e.sibling;e!==null;)Os(e,t,n),e=e.sibling}var ne=null,Oe=!1;function yt(e,t,n){for(n=n.child;n!==null;)dc(e,t,n),n=n.sibling}function dc(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(Nr,n)}catch{}switch(n.tag){case 5:le||fn(n,t);case 6:var r=ne,i=Oe;ne=null,yt(e,t,n),ne=r,Oe=i,ne!==null&&(Oe?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(Oe?(e=ne,n=n.stateNode,e.nodeType===8?Zo(e.parentNode,n):e.nodeType===1&&Zo(e,n),zn(e)):Zo(ne,n.stateNode));break;case 4:r=ne,i=Oe,ne=n.stateNode.containerInfo,Oe=!0,yt(e,t,n),ne=r,Oe=i;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&js(n,t,s),i=i.next}while(i!==r)}yt(e,t,n);break;case 1:if(!le&&(fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){H(n,t,l)}yt(e,t,n);break;case 21:yt(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,yt(e,t,n),le=r):yt(e,t,n);break;default:yt(e,t,n)}}function pc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new hp),t.forEach(function(r){var i=Ip.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _e(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:ne=l.stateNode,Oe=!1;break e;case 3:ne=l.stateNode.containerInfo,Oe=!0;break e;case 4:ne=l.stateNode.containerInfo,Oe=!0;break e}l=l.return}if(ne===null)throw Error(m(160));dc(o,s,i),ne=null,Oe=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(c){H(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)hc(t,e),t=t.sibling}function hc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_e(t,e),Fe(e),r&4){try{tr(3,e,e.return),ai(3,e)}catch(y){H(e,e.return,y)}try{tr(5,e,e.return)}catch(y){H(e,e.return,y)}}break;case 1:_e(t,e),Fe(e),r&512&&n!==null&&fn(n,n.return);break;case 5:if(_e(t,e),Fe(e),r&512&&n!==null&&fn(n,n.return),e.flags&32){var i=e.stateNode;try{Nn(i,"")}catch(y){H(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Bl(i,o),co(l,s);var c=co(l,o);for(s=0;s<u.length;s+=2){var h=u[s],g=u[s+1];h==="style"?Jl(i,g):h==="dangerouslySetInnerHTML"?Gl(i,g):h==="children"?Nn(i,g):Zi(i,h,g,c)}switch(l){case"input":oo(i,o);break;case"textarea":Hl(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var w=o.value;w!=null?Ft(i,!!o.multiple,w,!1):p!==!!o.multiple&&(o.defaultValue!=null?Ft(i,!!o.multiple,o.defaultValue,!0):Ft(i,!!o.multiple,o.multiple?[]:"",!1))}i[Vn]=o}catch(y){H(e,e.return,y)}}break;case 6:if(_e(t,e),Fe(e),r&4){if(e.stateNode===null)throw Error(m(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){H(e,e.return,y)}}break;case 3:if(_e(t,e),Fe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zn(t.containerInfo)}catch(y){H(e,e.return,y)}break;case 4:_e(t,e),Fe(e);break;case 13:_e(t,e),Fe(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Rs=W())),r&4&&pc(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(le=(c=le)||h,_e(t,e),le=c):_e(t,e),Fe(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!h&&e.mode&1)for(I=e,h=e.child;h!==null;){for(g=I=h;I!==null;){switch(p=I,w=p.child,p.tag){case 0:case 11:case 14:case 15:tr(4,p,p.return);break;case 1:fn(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){H(r,n,y)}}break;case 5:fn(p,p.return);break;case 22:if(p.memoizedState!==null){Mc(g);continue}}w!==null?(w.return=p,I=w):Mc(g)}h=h.sibling}e:for(h=null,g=e;;){if(g.tag===5){if(h===null){h=g;try{i=g.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=g.stateNode,u=g.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=$l("display",s))}catch(y){H(e,e.return,y)}}}else if(g.tag===6){if(h===null)try{g.stateNode.nodeValue=c?"":g.memoizedProps}catch(y){H(e,e.return,y)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;h===g&&(h=null),g=g.return}h===g&&(h=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:_e(t,e),Fe(e),r&4&&pc(e);break;case 21:break;default:_e(t,e),Fe(e)}}function Fe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(cc(n)){var r=n;break e}n=n.return}throw Error(m(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Nn(i,""),r.flags&=-33);var o=fc(e);Os(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=fc(e);zs(e,l,s);break;default:throw Error(m(161))}}catch(u){H(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yp(e,t,n){I=e,gc(e)}function gc(e,t,n){for(var r=(e.mode&1)!==0;I!==null;){var i=I,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ui;if(!s){var l=i.alternate,u=l!==null&&l.memoizedState!==null||le;l=ui;var c=le;if(ui=s,(le=u)&&!c)for(I=i;I!==null;)s=I,u=s.child,s.tag===22&&s.memoizedState!==null?mc(i):u!==null?(u.return=s,I=u):mc(i);for(;o!==null;)I=o,gc(o),o=o.sibling;I=i,ui=l,le=c}yc(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,I=o):yc(e)}}function yc(e){for(;I!==null;){var t=I;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:le||ai(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!le)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ze(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ma(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ma(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var h=c.memoizedState;if(h!==null){var g=h.dehydrated;g!==null&&zn(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(m(163))}le||t.flags&512&&Cs(t)}catch(p){H(t,t.return,p)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Mc(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function mc(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ai(4,t)}catch(u){H(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){H(t,i,u)}}var o=t.return;try{Cs(t)}catch(u){H(t,o,u)}break;case 5:var s=t.return;try{Cs(t)}catch(u){H(t,s,u)}}}catch(u){H(t,t.return,u)}if(t===e){I=null;break}var l=t.sibling;if(l!==null){l.return=t.return,I=l;break}I=t.return}}var Mp=Math.ceil,ci=Ze.ReactCurrentDispatcher,_s=Ze.ReactCurrentOwner,Se=Ze.ReactCurrentBatchConfig,O=0,q=null,G=null,re=0,Ne=0,dn=ft(0),X=0,nr=null,Ct=0,fi=0,Us=0,rr=null,ge=null,Rs=0,pn=1/0,tt=null,di=!1,Ps=null,Mt=null,pi=!1,mt=null,hi=0,ir=0,Qs=null,gi=-1,yi=0;function fe(){return O&6?W():gi!==-1?gi:gi=W()}function xt(e){return e.mode&1?O&2&&re!==0?re&-re:ep.transition!==null?(yi===0&&(yi=fu()),yi):(e=_,e!==0||(e=window.event,e=e===void 0?16:wu(e.type)),e):1}function Ue(e,t,n,r){if(50<ir)throw ir=0,Qs=null,Error(m(185));kn(e,n,r),(!(O&2)||e!==q)&&(e===q&&(!(O&2)&&(fi|=n),X===4&&wt(e,re)),ye(e,r),n===1&&O===0&&!(t.mode&1)&&(pn=W()+500,Vr&&pt()))}function ye(e,t){var n=e.callbackNode;ed(e,t);var r=Dr(e,e===q?re:0);if(r===0)n!==null&&uu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&uu(n),t===1)e.tag===0?qd(wc.bind(null,e)):oa(wc.bind(null,e)),$d(function(){!(O&6)&&pt()}),n=null;else{switch(du(r)){case 1:n=mo;break;case 4:n=au;break;case 16:n=vr;break;case 536870912:n=cu;break;default:n=vr}n=kc(n,xc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xc(e,t){if(gi=-1,yi=0,O&6)throw Error(m(327));var n=e.callbackNode;if(hn()&&e.callbackNode!==n)return null;var r=Dr(e,e===q?re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Mi(e,r);else{t=r;var i=O;O|=2;var o=Nc();(q!==e||re!==t)&&(tt=null,pn=W()+500,Ot(e,t));do try{wp();break}catch(l){vc(e,l)}while(1);rs(),ci.current=o,O=i,G!==null?t=0:(q=null,re=0,t=X)}if(t!==0){if(t===2&&(i=xo(e),i!==0&&(r=i,t=Ys(e,i))),t===1)throw n=nr,Ot(e,0),wt(e,r),ye(e,W()),n;if(t===6)wt(e,r);else{if(i=e.current.alternate,!(r&30)&&!mp(i)&&(t=Mi(e,r),t===2&&(o=xo(e),o!==0&&(r=o,t=Ys(e,o))),t===1))throw n=nr,Ot(e,0),wt(e,r),ye(e,W()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(m(345));case 2:_t(e,ge,tt);break;case 3:if(wt(e,r),(r&130023424)===r&&(t=Rs+500-W(),10<t)){if(Dr(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){fe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wo(_t.bind(null,e,ge,tt),t);break}_t(e,ge,tt);break;case 4:if(wt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Le(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mp(r/1960))-r,10<r){e.timeoutHandle=Wo(_t.bind(null,e,ge,tt),r);break}_t(e,ge,tt);break;case 5:_t(e,ge,tt);break;default:throw Error(m(329))}}}return ye(e,W()),e.callbackNode===n?xc.bind(null,e):null}function Ys(e,t){var n=rr;return e.current.memoizedState.isDehydrated&&(Ot(e,t).flags|=256),e=Mi(e,t),e!==2&&(t=ge,ge=n,t!==null&&bs(t)),e}function bs(e){ge===null?ge=e:ge.push.apply(ge,e)}function mp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!je(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 wt(e,t){for(t&=~Us,t&=~fi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Le(t),r=1<<n;e[n]=-1,t&=~r}}function wc(e){if(O&6)throw Error(m(327));hn();var t=Dr(e,0);if(!(t&1))return ye(e,W()),null;var n=Mi(e,t);if(e.tag!==0&&n===2){var r=xo(e);r!==0&&(t=r,n=Ys(e,r))}if(n===1)throw n=nr,Ot(e,0),wt(e,t),ye(e,W()),n;if(n===6)throw Error(m(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_t(e,ge,tt),ye(e,W()),null}function Bs(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(pn=W()+500,Vr&&pt())}}function zt(e){mt!==null&&mt.tag===0&&!(O&6)&&hn();var t=O;O|=1;var n=Se.transition,r=_;try{if(Se.transition=null,_=1,e)return e()}finally{_=r,Se.transition=n,O=t,!(O&6)&&pt()}}function Fs(){Ne=dn.current,P(dn)}function Ot(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Gd(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(Ko(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Br();break;case 3:an(),P(de),P(ie),fs();break;case 5:as(r);break;case 4:an();break;case 13:P(F);break;case 19:P(F);break;case 10:is(r.type._context);break;case 22:case 23:Fs()}n=n.return}if(q=e,G=e=vt(e.current,null),re=Ne=t,X=0,nr=null,Us=fi=Ct=0,ge=rr=null,At!==null){for(t=0;t<At.length;t++)if(n=At[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}At=null}return e}function vc(e,t){do{var n=G;try{if(rs(),ei.current=ii,ti){for(var r=V.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ti=!1}if(jt=0,K=J=V=null,Jn=!1,Xn=0,_s.current=null,n===null||n.return===null){X=1,nr=t,G=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=re,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,h=l,g=h.tag;if(!(h.mode&1)&&(g===0||g===11||g===15)){var p=h.alternate;p?(h.updateQueue=p.updateQueue,h.memoizedState=p.memoizedState,h.lanes=p.lanes):(h.updateQueue=null,h.memoizedState=null)}var w=Wa(s);if(w!==null){w.flags&=-257,Za(w,s,l,o,t),w.mode&1&&Ha(o,c,t),t=w,u=c;var x=t.updateQueue;if(x===null){var y=new Set;y.add(u),t.updateQueue=y}else x.add(u);break e}else{if(!(t&1)){Ha(o,c,t),Vs();break e}u=Error(m(426))}}else if(Y&&l.mode&1){var k=Wa(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Za(k,s,l,o,t),ts(cn(u,l));break e}}o=u=cn(u,l),X!==4&&(X=2),rr===null?rr=[o]:rr.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Fa(o,u,t);ya(o,f);break e;case 1:l=u;var a=o.type,d=o.stateNode;if(!(o.flags&128)&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Mt===null||!Mt.has(d)))){o.flags|=65536,t&=-t,o.lanes|=t;var M=Va(o,l,t);ya(o,M);break e}}o=o.return}while(o!==null)}Ic(n)}catch(v){t=v,G===n&&n!==null&&(G=n=n.return);continue}break}while(1)}function Nc(){var e=ci.current;return ci.current=ii,e===null?ii:e}function Vs(){(X===0||X===3||X===2)&&(X=4),q===null||!(Ct&268435455)&&!(fi&268435455)||wt(q,re)}function Mi(e,t){var n=O;O|=2;var r=Nc();(q!==e||re!==t)&&(tt=null,Ot(e,t));do try{xp();break}catch(i){vc(e,i)}while(1);if(rs(),O=n,ci.current=r,G!==null)throw Error(m(261));return q=null,re=0,X}function xp(){for(;G!==null;)Tc(G)}function wp(){for(;G!==null&&!Hf();)Tc(G)}function Tc(e){var t=Sc(e.alternate,e,Ne);e.memoizedProps=e.pendingProps,t===null?Ic(e):G=t,_s.current=null}function Ic(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=pp(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{X=6,G=null;return}}else if(n=dp(n,t,Ne),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);X===0&&(X=5)}function _t(e,t,n){var r=_,i=Se.transition;try{Se.transition=null,_=1,vp(e,t,n,r)}finally{Se.transition=i,_=r}return null}function vp(e,t,n,r){do hn();while(mt!==null);if(O&6)throw Error(m(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(m(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(td(e,o),e===q&&(G=q=null,re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||pi||(pi=!0,kc(vr,function(){return hn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Se.transition,Se.transition=null;var s=_;_=1;var l=O;O|=4,_s.current=null,gp(e,n),hc(n,e),bd(Vo),kr=!!Fo,Vo=Fo=null,e.current=n,yp(n),Wf(),O=l,_=s,Se.transition=o}else e.current=n;if(pi&&(pi=!1,mt=e,hi=i),o=e.pendingLanes,o===0&&(Mt=null),$f(n.stateNode),ye(e,W()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(di)throw di=!1,e=Ps,Ps=null,e;return hi&1&&e.tag!==0&&hn(),o=e.pendingLanes,o&1?e===Qs?ir++:(ir=0,Qs=e):ir=0,pt(),null}function hn(){if(mt!==null){var e=du(hi),t=Se.transition,n=_;try{if(Se.transition=null,_=16>e?16:e,mt===null)var r=!1;else{if(e=mt,mt=null,hi=0,O&6)throw Error(m(331));var i=O;for(O|=4,I=e.current;I!==null;){var o=I,s=o.child;if(I.flags&16){var l=o.deletions;if(l!==null){for(var u=0;u<l.length;u++){var c=l[u];for(I=c;I!==null;){var h=I;switch(h.tag){case 0:case 11:case 15:tr(8,h,o)}var g=h.child;if(g!==null)g.return=h,I=g;else for(;I!==null;){h=I;var p=h.sibling,w=h.return;if(ac(h),h===c){I=null;break}if(p!==null){p.return=w,I=p;break}I=w}}}var x=o.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var k=y.sibling;y.sibling=null,y=k}while(y!==null)}}I=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,I=s;else e:for(;I!==null;){if(o=I,o.flags&2048)switch(o.tag){case 0:case 11:case 15:tr(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,I=f;break e}I=o.return}}var a=e.current;for(I=a;I!==null;){s=I;var d=s.child;if(s.subtreeFlags&2064&&d!==null)d.return=s,I=d;else e:for(s=a;I!==null;){if(l=I,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ai(9,l)}}catch(v){H(l,l.return,v)}if(l===s){I=null;break e}var M=l.sibling;if(M!==null){M.return=l.return,I=M;break e}I=l.return}}if(O=i,pt(),Qe&&typeof Qe.onPostCommitFiberRoot=="function")try{Qe.onPostCommitFiberRoot(Nr,e)}catch{}r=!0}return r}finally{_=n,Se.transition=t}}return!1}function Dc(e,t,n){t=cn(n,t),t=Fa(e,t,1),e=gt(e,t,1),t=fe(),e!==null&&(kn(e,1,t),ye(e,t))}function H(e,t,n){if(e.tag===3)Dc(e,e,n);else for(;t!==null;){if(t.tag===3){Dc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mt===null||!Mt.has(r))){e=cn(n,e),e=Va(t,e,1),t=gt(t,e,1),e=fe(),t!==null&&(kn(t,1,e),ye(t,e));break}}t=t.return}}function Np(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fe(),e.pingedLanes|=e.suspendedLanes&n,q===e&&(re&n)===n&&(X===4||X===3&&(re&130023424)===re&&500>W()-Rs?Ot(e,0):Us|=n),ye(e,t)}function Ec(e,t){t===0&&(e.mode&1?(t=Ir,Ir<<=1,!(Ir&130023424)&&(Ir=4194304)):t=1);var n=fe();e=Ke(e,t),e!==null&&(kn(e,t,n),ye(e,n))}function Tp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ec(e,n)}function Ip(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(m(314))}r!==null&&r.delete(t),Ec(e,n)}var Sc;Sc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||de.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,fp(e,t,n);he=!!(e.flags&131072)}else he=!1,Y&&t.flags&1048576&&sa(t,Wr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;li(e,t),e=t.pendingProps;var i=tn(t,ie.current);un(t,n),i=hs(null,t,r,e,i,n);var o=gs();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pe(r)?(o=!0,Fr(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ls(t),i.updater=oi,t.stateNode=i,i._reactInternals=t,vs(t,r,e,n),t=Ds(null,t,r,!0,o,n)):(t.tag=0,Y&&o&&Xo(t),ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(li(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ep(r),e=ze(r,e),i){case 0:t=Is(null,t,r,e,n);break e;case 1:t=qa(null,t,r,e,n);break e;case 11:t=Ga(null,t,r,e,n);break e;case 14:t=$a(null,t,r,ze(r.type,e),n);break e}throw Error(m(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),Is(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),qa(e,t,r,i,n);case 3:e:{if(ec(t),e===null)throw Error(m(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ga(e,t),Kr(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=cn(Error(m(423)),t),t=tc(e,t,r,n,i);break e}else if(r!==i){i=cn(Error(m(424)),t),t=tc(e,t,r,n,i);break e}else for(ve=ct(t.stateNode.containerInfo.firstChild),we=t,Y=!0,Ce=null,n=pa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(on(),r===i){t=et(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return ma(t),e===null&&es(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ho(r,i)?s=null:o!==null&&Ho(r,o)&&(t.flags|=32),Ka(e,t),ce(e,t,s,n),t.child;case 6:return e===null&&es(t),null;case 13:return nc(e,t,n);case 4:return us(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sn(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),Ga(e,t,r,i,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,U($r,r._currentValue),r._currentValue=s,o!==null)if(je(o.value,s)){if(o.children===i.children&&!de.current){t=et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=qe(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),os(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(m(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),os(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,un(t,n),i=De(i),r=r(i),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,i=ze(r,t.pendingProps),i=ze(r.type,i),$a(e,t,r,i,n);case 15:return Ja(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ze(r,i),li(e,t),t.tag=1,pe(r)?(e=!0,Fr(t)):e=!1,un(t,n),ba(t,r,i),vs(t,r,i,n),Ds(null,t,r,!0,e,n);case 19:return ic(e,t,n);case 22:return Xa(e,t,n)}throw Error(m(156,t.tag))};function kc(e,t){return lu(e,t)}function Dp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ke(e,t,n,r){return new Dp(e,t,n,r)}function Hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ep(e){if(typeof e=="function")return Hs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ji)return 11;if(e===qi)return 14}return 2}function vt(e,t){var n=e.alternate;return n===null?(n=ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function mi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Hs(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Bt:return Ut(n.children,i,o,t);case Gi:s=8,i|=8;break;case $i:return e=ke(12,n,t,i|2),e.elementType=$i,e.lanes=o,e;case Xi:return e=ke(13,n,t,i),e.elementType=Xi,e.lanes=o,e;case Ki:return e=ke(19,n,t,i),e.elementType=Ki,e.lanes=o,e;case Rl:return xi(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _l:s=10;break e;case Ul:s=9;break e;case Ji:s=11;break e;case qi:s=14;break e;case nt:s=16,r=null;break e}throw Error(m(130,e==null?e:typeof e,""))}return t=ke(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ut(e,t,n,r){return e=ke(7,e,r,t),e.lanes=n,e}function xi(e,t,n,r){return e=ke(22,e,r,t),e.elementType=Rl,e.lanes=n,e.stateNode={isHidden:!1},e}function Ws(e,t,n){return e=ke(6,e,null,t),e.lanes=n,e}function Zs(e,t,n){return t=ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sp(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Gs(e,t,n,r,i,o,s,l,u){return e=new Sp(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ke(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ls(o),e}function kp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:bt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ac(e){if(!e)return dt;e=e._reactInternals;e:{if(It(e)!==e||e.tag!==1)throw Error(m(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(m(171))}if(e.tag===1){var n=e.type;if(pe(n))return ra(e,n,t)}return t}function Lc(e,t,n,r,i,o,s,l,u){return e=Gs(n,r,!0,e,i,o,s,l,u),e.context=Ac(null),n=e.current,r=fe(),i=xt(n),o=qe(r,i),o.callback=t??null,gt(n,o,i),e.current.lanes=i,kn(e,i,r),ye(e,r),e}function wi(e,t,n,r){var i=t.current,o=fe(),s=xt(i);return n=Ac(n),t.context===null?t.context=n:t.pendingContext=n,t=qe(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gt(i,t,s),e!==null&&(Ue(e,i,s,o),Xr(e,i,s)),s}function vi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function jc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $s(e,t){jc(e,t),(e=e.alternate)&&jc(e,t)}function Ap(){return null}var Cc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Js(e){this._internalRoot=e}Ni.prototype.render=Js.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(m(409));wi(e,t,null,null)},Ni.prototype.unmount=Js.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zt(function(){wi(null,e,null,null)}),t[Ge]=null}};function Ni(e){this._internalRoot=e}Ni.prototype.unstable_scheduleHydration=function(e){if(e){var t=gu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<lt.length&&t!==0&&t<lt[n].priority;n++);lt.splice(n,0,e),n===0&&mu(e)}};function Xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ti(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zc(){}function Lp(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=vi(s);o.call(c)}}var s=Lc(t,r,e,0,null,!1,!1,"",zc);return e._reactRootContainer=s,e[Ge]=s.current,Bn(e.nodeType===8?e.parentNode:e),zt(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var c=vi(u);l.call(c)}}var u=Gs(e,0,!1,null,null,!1,!1,"",zc);return e._reactRootContainer=u,e[Ge]=u.current,Bn(e.nodeType===8?e.parentNode:e),zt(function(){wi(t,u,n,r)}),u}function Ii(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var u=vi(s);l.call(u)}}wi(t,s,e,i)}else s=Lp(n,t,e,i,r);return vi(s)}pu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Sn(t.pendingLanes);n!==0&&(vo(t,n|1),ye(t,W()),!(O&6)&&(pn=W()+500,pt()))}break;case 13:zt(function(){var r=Ke(e,1);if(r!==null){var i=fe();Ue(r,e,1,i)}}),$s(e,1)}},No=function(e){if(e.tag===13){var t=Ke(e,134217728);if(t!==null){var n=fe();Ue(t,e,134217728,n)}$s(e,134217728)}},hu=function(e){if(e.tag===13){var t=xt(e),n=Ke(e,t);if(n!==null){var r=fe();Ue(n,e,t,r)}$s(e,t)}},gu=function(){return _},yu=function(e,t){var n=_;try{return _=e,t()}finally{_=n}},ho=function(e,t,n){switch(t){case"input":if(oo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=br(r);if(!i)throw Error(m(90));Yl(r),oo(r,i)}}}break;case"textarea":Hl(e,n);break;case"select":t=n.value,t!=null&&Ft(e,!!n.multiple,t,!1)}},eu=Bs,tu=zt;var jp={usingClientEntryPoint:!1,Events:[Hn,qt,br,Kl,ql,Bs]},or={findFiberByHostInstance:Dt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Cp={bundleType:or.bundleType,version:or.version,rendererPackageName:or.rendererPackageName,rendererConfig:or.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ze.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ou(e),e===null?null:e.stateNode},findFiberByHostInstance:or.findFiberByHostInstance||Ap,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Di=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Di.isDisabled&&Di.supportsFiber)try{Nr=Di.inject(Cp),Qe=Di}catch{}}Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jp,Me.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xs(t))throw Error(m(200));return kp(e,t,null,n)},Me.createRoot=function(e,t){if(!Xs(e))throw Error(m(299));var n=!1,r="",i=Cc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Gs(e,1,!1,null,null,n,!1,r,i),e[Ge]=t.current,Bn(e.nodeType===8?e.parentNode:e),new Js(t)},Me.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(m(188)):(e=Object.keys(e).join(","),Error(m(268,e)));return e=ou(t),e=e===null?null:e.stateNode,e},Me.flushSync=function(e){return zt(e)},Me.hydrate=function(e,t,n){if(!Ti(t))throw Error(m(200));return Ii(null,e,t,!0,n)},Me.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(m(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Cc;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Lc(t,null,e,1,n??null,i,!1,o,s),e[Ge]=t.current,Bn(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ni(t)},Me.render=function(e,t,n){if(!Ti(t))throw Error(m(200));return Ii(null,e,t,!1,n)},Me.unmountComponentAtNode=function(e){if(!Ti(e))throw Error(m(40));return e._reactRootContainer?(zt(function(){Ii(null,null,e,!1,function(){e._reactRootContainer=null,e[Ge]=null})}),!0):!1},Me.unstable_batchedUpdates=Bs,Me.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ti(n))throw Error(m(200));if(e==null||e._reactInternals===void 0)throw Error(m(38));return Ii(e,t,n,!1,r)},Me.version="18.3.1-next-f1338f8080-20240426";function Oc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Oc)}catch(e){console.error(e)}}Oc(),Al.exports=Me;var zp=Al.exports,_c=zp;Fi.createRoot=_c.createRoot,Fi.hydrateRoot=_c.hydrateRoot;const Op="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCA4MCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0xNy4zNjMxIDEuMjU5N0gxNi4wOTZDMTUuNjI5MyAxLjI1OTcgMTUuMjUxIDE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uODc4MyAxNi4yMDQgOS45NjgzMyAxNi4zODc4IDkgMTYuMzg3OFpNOSAxNC45ODc4QzEwLjU2MzMgMTQuOTg3OCAxMS44ODc1IDE0LjQ0NTMgMTIuOTcyNSAxMy4zNjAzQzE0LjA1NzUgMTIuMjc1MyAxNC42IDEwLjk1MTEgMTQuNiA5LjM4Nzc2QzE0LjYgNy44MjQ0MiAxNC4wNTc1IDYuNTAwMjYgMTIuOTcyNSA1LjQxNTI2QzExLjg4NzUgNC4zMzAyNiAxMC41NjMzIDMuNzg3NzYgOSAzLjc4Nzc2QzcuNDM2NjcgMy43ODc3NiA2LjExMjUgNC4zMzAyNiA1LjAyNzUgNS40MTUyNkMzLjk0MjUgNi41MDAyNiAzLjQgNy44MjQ0MiAzLjQgOS4zODc3NkMzLjQgMTAuOTUxMSAzLjk0MjUgMTIuMjc1MyA1LjAyNzUgMTMuMzYwM0M2LjExMjUgMTQuNDQ1MyA3LjQzNjY3IDE0Ljk4NzggOSAxNC45ODc4WiIgZmlsbD0iI0JEQkRCRCIvPg0KPC9nPg0KPC9zdmc+DQo=",Ei=({icon:e,description:t,iconStyle:n="default"})=>{const r={sm:"w-[19px] h-[18px] shrink-0",default:"w-[30px] h-[30px] shrink-0",md:"w-[80px] h-[19px] shrink-0",profile:"w-[51px] h-[40px] shrink-0"},i=r[n]||r.default;return N.jsx("img",{className:i,src:e,alt:t})},Up=()=>N.jsxs("div",{className:"flex justify-evenly items-center w-full h-full shrink-0 select-none",children:[N.jsx(Ei,{icon:Op,iconStyle:"md",description:"Logo Hi Fenix"}),N.jsxs("div",{className:"flex items-center",children:[N.jsx(Ei,{icon:_p,iconStyle:"sm",description:"Logo Hi Fenix"}),N.jsx("p",{className:"text-[#bdbdbd] font-[Manrope] text-[14px] not-italic font-medium leading-[111%] tracking-[0.2px]",children:"Todos los derechos reservados"})]})]}),Uc=({icon:e,styleImg:t="default",description:n="",styleBtn:r="",callback:i=()=>{},isActive:o=!0,className:s=""})=>N.jsx("button",{onClick:i,className:`flex justify-center items-center p-0 bg-transparent cursor-pointer border-0 ${r} ${s}`,"aria-label":n,title:n,disabled:!o,children:N.jsx(Ei,{icon:e,iconStyle:t,description:`Icono de ${n}`})}),Rp=({cancelarModal:e,reiniciarConversacion:t})=>N.jsxs("section",{className:"flex flex-col items-start gap-6 absolute top-[138px] left-1/2 transform -translate-x-1/2 z-[9999] w-full max-w-[416px] h-[187px] p-[30px] rounded-[16px] bg-grayFooter shadow-questionMark box-border",children:[N.jsx("h2",{className:"w-full text-center text-blackAyelen font-[Manrope] text-[20px] font-bold leading-[100%] m-0",children:"¿Seguro desea reiniciar la conversación?"}),N.jsx("p",{className:"w-full text-center text-gray3 font-[Manrope] text-[16px] font-semibold leading-[100%] m-0",children:"No podrá revertir esta acción."}),N.jsxs("div",{className:"flex flex-row justify-between w-full",children:[N.jsx("button",{className:"rounded-full border border-azulChatbot shadow-[0px_2px_2px_0px_rgba(0,0,0,0.1)] w-[150px] h-[40px] px-4 flex justify-center items-center gap-2 text-[16px] font-semibold text-azulChatbot font-[Manrope]",onClick:e,children:"Cancelar"}),N.jsx("button",{className:"rounded-full bg-azulChatbot text-white border-none shadow-[0px_2px_2px_0px_rgba(0,0,0,0.1)] w-[149px] h-[40px] px-4 flex justify-center items-center gap-2 text-[16px] font-semibold font-[Manrope]",onClick:t,children:"Reiniciar"})]})]}),Rc=Q.createContext({}),Si=()=>Q.useContext(Rc),Pc="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMjA0OCAxNjAyIiB3aWR0aD0iNTMzIiBoZWlnaHQ9IjQxNyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3MCwyKSIgZD0ibTAgMGgyMGwxNiA1IDE0IDkgOCA4IDggMTMg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zI1IDkuMzUxNDQgMTUuMDM2MUM5LjM1MTQ0IDE2LjU5OTcgOS44OTg2OSAxNy45Mjg3IDEwLjk5MzIgMTkuMDIzM0MxMi4wODc3IDIwLjExNzggMTMuNDE2OCAyMC42NjUgMTQuOTgwMyAyMC42NjVDMTYuMTg0MyAyMC42NjUgMTcuMjcxIDIwLjMyMSAxOC4yNDA0IDE5LjYzM0MxOS4yMDk4IDE4Ljk0NTEgMTkuODkgMTguMDM4MiAyMC4yODA5IDE2LjkxMjRIMjEuNzYzOUMyMS4zMzgxIDE4LjQ0MzUgMjAuNDk5NSAxOS42ODYyIDE5LjI0OCAyMC42NDA2QzE3Ljk5NjUgMjEuNTk1IDE2LjU3MzkgMjIuMDcyMiAxNC45ODAzIDIyLjA3MjJaIiBmaWxsPSIjQkVCRUJFIi8+DQo8L2c+DQo8L2c+DQo8L3N2Zz4NCg==",Yp=({closeChat:e=()=>{},onResetChat:t=()=>{}})=>{const[n,r]=Q.useState(!1),{profileSvg:i,titleSvg:o}=Si(),s=!!i,l=!!o,u=s?i:Pc;return N.jsxs("section",{className:"p-[20px] flex items-center justify-start relative w-full h-full gap-[15px] box-border select-none",children:[N.jsx("div",{className:"w-[78px] h-[78px] flex-shrink-0 flex items-center justify-center bg-[#e7e7e7] rounded-full",children:N.jsx(Ei,{icon:u,iconStyle:"profile",description:"Icono de enviar"})}),N.jsxs("div",{className:"flex flex-col justify-center gap-[2.64px] overflow-hidden",children:[l?N.jsx("img",{src:o,alt:"Custom Title",className:"object-contain",style:{maxWidth:"260px",maxHeight:"50px"}}):N.jsxs("h2",{className:"m-0 text-[#FAFAFA] text-[20.23px] leading-normal",style:{fontFamily:"Montserrat",fontWeight:300},children:[N.jsx("span",{style:{fontWeight:700},children:"HI CHAT"})," ASSISTANT"]}),N.jsx("p",{className:"text-grayFooter m-0 text-[16px] font-medium leading-[22px]",children:"¡Hola! 👋 Estoy aquí para ayudarte"})]}),N.jsx(Uc,{icon:Qp,styleImg:"default",description:"Reiniciar conversación",className:"absolute top-[10px] right-[50px]",callback:()=>r(!0)}),N.jsx(Uc,{icon:Pp,styleImg:"default",description:"Cerrar Hi chat Bot",styleBtn:"w-[30px] h-[30px]",className:"absolute top-[10px] right-[10px]",callback:e}),n&&N.jsx(Rp,{cancelarModal:()=>r(!1),reiniciarConversacion:()=>{t(),r(!1)}})]})},bp="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBjbGFzcz0ic2l6ZS02Ij4NCiAgPHBhdGggc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMTUuNjY2IDMuODg4QTIuMjUgMi4yNSAwIDAgMCAxMy41IDIuMjVoLTNjLTEuMDMgMC0xLjkuNjkzLTIuMTY2IDEuNjM4bTcuMzMyIDBjLjA1NS4xOTQuMDg0LjQuMDg0LjYxMnYwYS43NS43NSAwIDAgMS0uNzUuNzVIOWEuNzUuNzUgMCAwIDEtLjc1LS43NXYwYzAtLjIxMi4wMy0uNDE4LjA4NC0uNjEybTcuMzMyIDBjLjY0Ni4wNDkgMS4yODguMTEgMS45MjcuMTg0IDEuMS4xMjggMS45MDcgMS4wNzcgMS45MDcgMi4xODVWMTkuNWEyLjI1IDIuMjUgMCAwIDEtMi4yNSAyLjI1SDYuNzVBMi4yNSAyLjI1IDAgMCAxIDQuNSAxOS41VjYuMjU3YzAtMS4xMDguODA2LTIuMDU3IDEuOTA3LTIuMTg1YTQ4LjIwOCA0OC4yMDggMCAwIDEgMS45MjctLjE4NCIgLz4NCjwvc3ZnPg0K",Bp="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iYmx1ZSIgY2xhc3M9InNpemUtNiI+DQogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTMuNzUgMy43NXY0LjVtMC00LjVoNC41bS00LjUgMEw5IDlNMy43NSAyMC4yNXYtNC41bTAgNC41aDQuNW0tNC41IDBMOSAxNU0yMC4yNSAzLjc1aC00LjVtNC41IDB2NC41bTAtNC41TDE1IDltNS4yNSAxMS4yNWgtNC41bTQuNSAwdi00LjVtMCA0LjVMMTUgMTUiIC8+DQo8L3N2Zz4NCg0K",Fp=({image:e,onClose:t})=>N.jsxs("div",{className:"fixed top-0 left-0 w-screen h-screen bg-black/70 backdrop-blur-sm flex justify-center items-center z-[1000]",onClick:t,children:[N.jsx("button",{className:"absolute top-[20px] right-[20px] bg-azulChatbot text-white text-[18px] font-bold px-4 py-2 rounded-full",onClick:t,children:"x"}),N.jsx("img",{src:e,alt:"zoom",className:"max-w-[85vw] max-h-[85vh] rounded-[10px] shadow-[2px_3px_22px_rgba(255,255,255,0.2)]",onClick:n=>n.stopPropagation()})]}),Vp=({text:e="",userType:t="",loading:n=!1,images:r})=>{const[i,o]=Q.useState(!1),[s,l]=Q.useState(""),u=t==="assistant",c=async()=>{try{await navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)}catch{console.error("Error copiando al portapapeles")}},h=()=>e.split(/!?\[.*?\]\((.*?)\)/g).map((p,w)=>{const x=p.includes("amazonaws.com"),y=p.startsWith("https://")||p.startsWith("http://");if(x)return N.jsxs("div",{className:"relative w-fit h-fit max-w-[220px] max-h-[140px] m-[12px_auto] cursor-pointer",onClick:()=>l(p),children:[N.jsx("img",{src:Bp,alt:"Ver imagen ampliada",className:"absolute top-[5px] right-[5px] w-[17px] h-[17px] z-10"}),N.jsx("img",{src:p,alt:"preview",className:"max-w-[220px] max-h-[140px] rounded-[10px] object-cover"})]},`img-${w}`);if(y)return N.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"underline text-blue-600",children:p},`link-${w}`);const k=p.trim().split(`
41
- `).map((f,a)=>N.jsxs("span",{children:[f,N.jsx("br",{})]},a));return N.jsx("span",{children:k},w)}).filter(Boolean);return N.jsxs("div",{className:"relative inline-block",children:[N.jsx("p",{className:`m-0 text-start p-[20px] max-w-[342px] font-[Manrope] text-[16px] font-medium leading-[22px] break-words box-border ${t==="assistant"?"bg-grayChat text-blackAyelen rounded-tr-[10px] rounded-bl-[10px] rounded-br-[10px]":"bg-azulChatbot text-white rounded-tl-[10px] rounded-bl-[10px] rounded-br-[10px]"}`,children:n?N.jsx("span",{className:"block w-[5px] h-[5px] rounded-full bg-azulChatbot shadow-[8px_0_#1446ff,-8px_0_#1446ff] animate-pulse"}):h()}),u&&!n&&N.jsxs(N.Fragment,{children:[N.jsx("button",{className:"absolute top-[10px] left-full ml-[8px] w-[24px] h-[24px] opacity-70 hover:opacity-100",onClick:c,title:"Copiar texto",children:N.jsx("img",{src:bp,alt:"Copiar"})}),i&&N.jsx("div",{className:"absolute top-[-28px] right-0 bg-black text-white px-2 py-1 text-xs rounded animate-fadeInOut pointer-events-none",children:"Mensaje copiado"})]}),s&&N.jsx(Fp,{image:s,onClose:()=>l("")})]})},Hp=({messages:e=[]})=>N.jsx("div",{className:"flex flex-col gap-[22px] m-[18px] max-w-[416px] bg-white",children:e.length>0&&e.map((t,n)=>N.jsx("div",{className:`flex w-full items-center bg-white ${t.userType==="assistant"?"justify-start":"justify-end"}`,children:N.jsx(Vp,{text:t.text,userType:t.userType,loading:t.loading,images:t.images})},n))}),Wp="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMyAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxtYXNrIGlkPSJtYXNrMF8xMDIzXzQ1NzAiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyMyIgaGVpZ2h0PSIyMSI+DQo8cmVjdCB4PSIwLjQ0MTQwNiIgeT0iMC43MDU4ODciIHdpZHRoPSIyMi4wNTg4IiBoZWlnaHQ9IjE5LjMwMTUiIGZpbGw9IiNEOUQ5RDkiLz4NCjwvbWFzaz4NCjxnIG1hc2s9InVybCgjbWFzazBfMTAyM180NTcwKSI+DQo8cGF0aCBkPSJNMi4xODc1IDE5LjM0NThDMS43NzExNCAxOS41MTIxIDEuMzc2MDMgMTkuNDc2NyAxLjAwMjE4IDE5LjIzOTZDMC42MjgzMzIgMTkuMDAyNSAwLjQ0MTQwNiAxOC42NTcxIDAuNDQxNDA2IDE4LjIwMzVWMTIuMzgzOEw5Ljk4NTk4IDEwLjA3NzNMMC40NDE0MDYgNy43NzA3M1YxLjk1MDk5QzAuNDQxNDA2IDEuNDk3NDEgMC42MjgzMzIgMS4xNTIwNSAxLjAwMjE4IDAuOTE0OTE0QzEuMzc2MDMgMC42Nzc3ODIgMS43NzExNCAwLjY0MjM5OCAyLjE4NzUgMC44MDg3NThMMjEuNDI5IDguOTIxMjRDMjEuOTQxNiA5LjE1MDc4IDIyLjE5OCA5LjUzNjkzIDIyLjE5OCAxMC4wNzk3QzIyLjE5OCAxMC42MjI0IDIxLjk0MTYgMTEuMDA2OSAyMS40MjkgMTEuMjMzM0wyLjE4NzUgMTkuMzQ1OFoiIGZpbGw9IndoaXRlIi8+DQo8L2c+DQo8L3N2Zz4NCg==",Zp=({onSubmit:e=()=>{},inputDisabled:t=!1})=>{const[n,r]=Q.useState(""),i=Q.useRef(null),o=u=>{const c=u.target.value;r(c);const h=i.current;if(h){h.style.height="auto";const g=Math.min(h.scrollHeight,100);h.style.height=`${g}px`,h.style.overflowY=g>=100?"auto":"hidden"}},s=async()=>{if(n.trim().length!==0)try{await e(n.trim()),r(""),i.current&&(i.current.style.height="auto",i.current.style.overflowY="hidden")}catch(u){console.error("Error enviando mensaje:",u.message)}},l=u=>{u.key==="Enter"&&!u.shiftKey&&(u.preventDefault(),s())};return N.jsxs("div",{className:"flex justify-center items-end w-full h-auto min-h-[61px] max-h-[100px] relative bg-white",children:[N.jsx("div",{className:"absolute top-[1px] left-[1px] w-[calc(100%-90px)] h-[4px] bg-white z-[2] pointer-events-none"}),N.jsx("textarea",{ref:i,value:n,onChange:o,onKeyDown:l,placeholder:"Escribe tu mensaje...",rows:1,className:"flex-grow box-border p-[17px_24px_17px_22px] border border-gray-300 text-black font-[Manrope] text-[16px] font-medium leading-[20px] outline-none transition-all resize-none min-h-[61px] h-auto focus:border-azulChatbot overflow-hidden",disabled:t}),N.jsx("button",{className:"cursor-pointer flex justify-center items-center border-0 mx-[18px] mb-[4px] rounded-full w-[50px] h-[50px] flex-shrink-0 bg-azulChatbot shadow-[0px_2px_2px_0px_rgba(0,0,0,0.1)] text-white",onClick:s,disabled:t||n.trim().length===0,title:"Enviar mensaje","aria-label":"Enviar mensaje",children:N.jsx("img",{src:Wp,alt:"Enviar",className:"w-[22px] h-[19px] relative left-[2px]"})})]})},Gp=({messages:e=[],onSendMessage:t=()=>{},inputDisabled:n=!1})=>{const r=Q.useRef(null);return Q.useEffect(()=>{r.current&&requestAnimationFrame(()=>{r.current.scrollTop=r.current.scrollHeight})},[e]),N.jsxs("div",{className:"w-full h-full flex flex-col overflow-hidden box-border",children:[N.jsx("div",{ref:r,className:"max-w-full h-[361px] max-h-[361px] overflow-y-auto bg-white scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-transparent",children:N.jsx(Hp,{messages:e})}),N.jsx("div",{className:"max-w-[416px] min-h-[61px] max-h-[105px] pt-[5px] h-auto flex-shrink-0 bg-white box-border flex items-end",children:N.jsx(Zp,{onSubmit:t,inputDisabled:n})})]})};function $p({header:e,mainChat:t,footer:n}){const[r,i]=Q.useState(!1),{backOfficeBubble:o}=Si(),[s,l]=Q.useState("");return Q.useEffect(()=>{l(o?"relative":"block fixed bottom-[-600px] right-16 max-sm:px-[10px] max-sm:right-0 max-sm:rounded-[8px] max-[1370px]:animate-slide-up-xl"),setTimeout(()=>i(!0),10)},[]),N.jsx("div",{className:`
42
- ${s}
43
- w-full max-w-[416px] h-[calc(100vh-20px)] max-h-[620px]
40
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Ns(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function vs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var dp=typeof WeakMap=="function"?WeakMap:Map;function Ha(e,t,n){n=qe(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hi||(hi=!0,Ps=r),vs(e,t)},n}function Wa(e,t,n){n=qe(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){vs(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){vs(e,t),typeof r!="function"&&(Mt===null?Mt=new Set([this]):Mt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Za(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new dp;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Dp.bind(null,e,t,n),t.then(e,e))}function Ga(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function $a(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=qe(-1,1),t.tag=2,gt(n,t,1))),n.lanes|=1),e)}var fp=Ze.ReactCurrentOwner,he=!1;function ce(e,t,n,r){t.child=e===null?ga(t,null,n,r):ln(t,e.child,n,r)}function Ja(e,t,n,r,i){n=n.render;var o=t.ref;return an(t,i),r=hs(e,t,n,r,o,i),n=gs(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,et(e,t,i)):(b&&n&&Xo(t),t.flags|=1,ce(e,t,r,i),t.child)}function Xa(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Hs(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ka(e,t,o,r,i)):(e=wi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:bn,n(s,r)&&e.ref===t.ref)return et(e,t,i)}return t.flags|=1,e=It(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ka(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(bn(o,r)&&e.ref===t.ref)if(he=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(he=!0);else return t.lanes=e.lanes,et(e,t,i)}return Ts(e,t,n,r,i)}function qa(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(pn,Ne),Ne|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(pn,Ne),Ne|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(pn,Ne),Ne|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(pn,Ne),Ne|=r;return ce(e,t,i,n),t.child}function ec(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,i){var o=pe(n)?Et:ie.current;return o=nn(t,o),an(t,i),n=hs(e,t,n,r,o,i),r=gs(),e!==null&&!he?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,et(e,t,i)):(b&&r&&Xo(t),t.flags|=1,ce(e,t,n,i),t.child)}function tc(e,t,n,r,i){if(pe(n)){var o=!0;Hr(t)}else o=!1;if(an(t,i),t.stateNode===null)ai(e,t),Fa(t,n,r),Is(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=De(c):(c=pe(n)?Et:ie.current,c=nn(t,c));var g=n.getDerivedStateFromProps,h=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==c)&&Va(t,s,r,c),ht=!1;var p=t.memoizedState;s.state=p,ei(t,r,s,i),u=t.memoizedState,l!==r||p!==u||fe.current||ht?(typeof g=="function"&&(ws(t,n,g,r),u=t.memoizedState),(l=ht||Ba(t,n,l,r,p,u,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=c,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ma(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Le(t.type,l),s.props=c,h=t.pendingProps,p=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=De(u):(u=pe(n)?Et:ie.current,u=nn(t,u));var M=n.getDerivedStateFromProps;(g=typeof M=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==h||p!==u)&&Va(t,s,r,u),ht=!1,p=t.memoizedState,s.state=p,ei(t,r,s,i);var w=t.memoizedState;l!==h||p!==w||fe.current||ht?(typeof M=="function"&&(ws(t,n,M,r),w=t.memoizedState),(c=ht||Ba(t,n,c,r,p,w,u)||!1)?(g||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=u,r=c):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ds(e,t,n,r,o,i)}function Ds(e,t,n,r,i,o){ec(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&sa(t,n,!1),et(e,t,o);r=t.stateNode,fp.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ln(t,e.child,null,o),t.child=ln(t,null,l,o)):ce(e,t,l,o),t.memoizedState=r.state,i&&sa(t,n,!0),t.child}function nc(e){var t=e.stateNode;t.pendingContext?ia(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ia(e,t.context,!1),us(e,t.containerInfo)}function rc(e,t,n,r,i){return sn(),ts(i),t.flags|=256,ce(e,t,n,r),t.child}var Es={dehydrated:null,treeContext:null,retryLane:0};function Ss(e){return{baseLanes:e,cachePool:null,transitions:null}}function ic(e,t,n){var r=t.pendingProps,i=F.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),U(F,i&1),e===null)return es(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Ii(s,r,0,null),e=Ut(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ss(n),t.memoizedState=Es,e):ks(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return pp(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=It(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=It(l,o):(o=Ut(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Ss(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Es,r}return o=e.child,e=o.sibling,r=It(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ks(e,t){return t=Ii({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ui(e,t,n,r){return r!==null&&ts(r),ln(t,e.child,null,n),e=ks(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pp(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Ns(Error(m(422))),ui(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ii({mode:"visible",children:r.children},i,0,null),o=Ut(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ln(t,e.child,null,s),t.child.memoizedState=Ss(s),t.memoizedState=Es,o);if(!(t.mode&1))return ui(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(m(419)),r=Ns(o,r,void 0),ui(e,t,s,r)}if(l=(s&e.childLanes)!==0,he||l){if(r=q,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Ke(e,i),Ue(r,e,i,-1))}return Vs(),r=Ns(Error(m(421))),ui(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ep.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ie=ct(i.nextSibling),we=t,b=!0,Ce=null,e!==null&&(ve[Te++]=Je,ve[Te++]=Xe,ve[Te++]=St,Je=e.id,Xe=e.overflow,St=t),t=ks(t,r.children),t.flags|=4096,t)}function oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),os(e.return,t,n)}function As(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ce(e,t,r.children,n),r=F.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&oc(e,n,t);else if(e.tag===19)oc(e,n,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}r&=1}if(U(F,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ti(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),As(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ti(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}As(t,!0,n,null,o);break;case"together":As(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ai(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ct|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(m(153));if(t.child!==null){for(e=t.child,n=It(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=It(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hp(e,t,n){switch(t.tag){case 3:nc(t),sn();break;case 5:wa(t);break;case 1:pe(t.type)&&Hr(t);break;case 4:us(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;U(Xr,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(F,F.current&1),t.flags|=128,null):n&t.child.childLanes?ic(e,t,n):(U(F,F.current&1),e=et(e,t,n),e!==null?e.sibling:null);U(F,F.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(F,F.current),r)break;return null;case 22:case 23:return t.lanes=0,qa(e,t,n)}return et(e,t,n)}var lc,js,uc,ac;lc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(){},uc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,jt(Ye.current);var o=null;switch(n){case"input":i=io(e,i),r=io(e,r),o=[];break;case"select":i=B({},i,{value:void 0}),r=B({},r,{value:void 0}),o=[];break;case"textarea":i=lo(e,i),r=lo(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Br)}ao(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(xn.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(s in l)!l.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&l[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(xn.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Q("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},ac=function(e,t,n,r){n!==r&&(t.flags|=4)};function tr(e,t){if(!b)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gp(e,t,n){var r=t.pendingProps;switch(Ko(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(t),null;case 1:return pe(t.type)&&Vr(),se(t),null;case 3:return r=t.stateNode,cn(),P(fe),P(ie),ds(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($r(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ce!==null&&(Ys(Ce),Ce=null))),js(e,t),se(t),null;case 5:as(t);var i=jt(Jn.current);if(n=t.type,e!==null&&t.stateNode!=null)uc(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(m(166));return se(t),null}if(e=jt(Ye.current),$r(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[be]=t,r[Hn]=o,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(i=0;i<Bn.length;i++)Q(Bn[i],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":Fl(r,o),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Q("invalid",r);break;case"textarea":Wl(r,o),Q("invalid",r)}ao(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Yr(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Yr(r.textContent,l,e),i=["children",""+l]):xn.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Q("scroll",r)}switch(n){case"input":mr(r),Hl(r,o,!0);break;case"textarea":mr(r),Gl(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Br)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=$l(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[be]=t,e[Hn]=r,lc(e,t,!1,!1),t.stateNode=e;e:{switch(s=co(n,r),n){case"dialog":Q("cancel",e),Q("close",e),i=r;break;case"iframe":case"object":case"embed":Q("load",e),i=r;break;case"video":case"audio":for(i=0;i<Bn.length;i++)Q(Bn[i],e);i=r;break;case"source":Q("error",e),i=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),i=r;break;case"details":Q("toggle",e),i=r;break;case"input":Fl(e,r),i=io(e,r),Q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=B({},r,{value:void 0}),Q("invalid",e);break;case"textarea":Wl(e,r),i=lo(e,r),Q("invalid",e);break;default:i=r}ao(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?Kl(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Jl(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&vn(e,u):typeof u=="number"&&vn(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(xn.hasOwnProperty(o)?u!=null&&o==="onScroll"&&Q("scroll",e):u!=null&&Zi(e,o,u,s))}switch(n){case"input":mr(e),Hl(e,r,!1);break;case"textarea":mr(e),Gl(e);break;case"option":r.value!=null&&e.setAttribute("value",""+rt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Vt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Vt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Br)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return se(t),null;case 6:if(e&&t.stateNode!=null)ac(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(m(166));if(n=jt(Jn.current),jt(Ye.current),$r(t)){if(r=t.stateNode,n=t.memoizedProps,r[be]=t,(o=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:Yr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[be]=t,t.stateNode=r}return se(t),null;case 13:if(P(F),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(b&&Ie!==null&&t.mode&1&&!(t.flags&128))fa(),sn(),t.flags|=98560,o=!1;else if(o=$r(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(m(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(m(317));o[be]=t}else sn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),o=!1}else Ce!==null&&(Ys(Ce),Ce=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||F.current&1?X===0&&(X=3):Vs())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return cn(),js(e,t),e===null&&Fn(t.stateNode.containerInfo),se(t),null;case 10:return is(t.type._context),se(t),null;case 17:return pe(t.type)&&Vr(),se(t),null;case 19:if(P(F),o=t.memoizedState,o===null)return se(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)tr(o,!1);else{if(X!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ti(e),s!==null){for(t.flags|=128,tr(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(F,F.current&1|2),t.child}e=e.sibling}o.tail!==null&&W()>hn&&(t.flags|=128,r=!0,tr(o,!1),t.lanes=4194304)}else{if(!r)if(e=ti(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),tr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!b)return se(t),null}else 2*W()-o.renderingStartTime>hn&&n!==1073741824&&(t.flags|=128,r=!0,tr(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=W(),t.sibling=null,n=F.current,U(F,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return Fs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ne&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(m(156,t.tag))}function yp(e,t){switch(Ko(t),t.tag){case 1:return pe(t.type)&&Vr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(),P(fe),P(ie),ds(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return as(t),null;case 13:if(P(F),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(m(340));sn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return P(F),null;case 4:return cn(),null;case 10:return is(t.type._context),null;case 22:case 23:return Fs(),null;case 24:return null;default:return null}}var ci=!1,le=!1,Mp=typeof WeakSet=="function"?WeakSet:Set,D=null;function fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function zs(e,t,n){try{n()}catch(r){H(e,t,r)}}var cc=!1;function mp(e,t){if(Fo=jr,e=Bu(),_o(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,c=0,g=0,h=e,p=null;t:for(;;){for(var M;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(u=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(M=h.firstChild)!==null;)p=h,h=M;for(;;){if(h===e)break t;if(p===n&&++c===i&&(l=s),p===o&&++g===r&&(u=s),(M=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=M}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vo={focusedElem:e,selectionRange:n},jr=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,k=w.memoizedState,d=t.stateNode,a=d.getSnapshotBeforeUpdate(t.elementType===t.type?x:Le(t.type,x),k);d.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(m(163))}}catch(y){H(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return w=cc,cc=!1,w}function nr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&zs(t,n,o)}i=i.next}while(i!==r)}}function di(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dc(e){var t=e.alternate;t!==null&&(e.alternate=null,dc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[be],delete t[Hn],delete t[Go],delete t[ep],delete t[tp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fc(e){return e.tag===5||e.tag===3||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fc(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.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 Ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Br));else if(r!==4&&(e=e.child,e!==null))for(Ls(e,t,n),e=e.sibling;e!==null;)Ls(e,t,n),e=e.sibling}function Os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Os(e,t,n),e=e.sibling;e!==null;)Os(e,t,n),e=e.sibling}var ne=null,Oe=!1;function yt(e,t,n){for(n=n.child;n!==null;)hc(e,t,n),n=n.sibling}function hc(e,t,n){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(Tr,n)}catch{}switch(n.tag){case 5:le||fn(n,t);case 6:var r=ne,i=Oe;ne=null,yt(e,t,n),ne=r,Oe=i,ne!==null&&(Oe?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(Oe?(e=ne,n=n.stateNode,e.nodeType===8?Zo(e.parentNode,n):e.nodeType===1&&Zo(e,n),On(e)):Zo(ne,n.stateNode));break;case 4:r=ne,i=Oe,ne=n.stateNode.containerInfo,Oe=!0,yt(e,t,n),ne=r,Oe=i;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&zs(n,t,s),i=i.next}while(i!==r)}yt(e,t,n);break;case 1:if(!le&&(fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){H(n,t,l)}yt(e,t,n);break;case 21:yt(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,yt(e,t,n),le=r):yt(e,t,n);break;default:yt(e,t,n)}}function gc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Mp),t.forEach(function(r){var i=Sp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _e(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:ne=l.stateNode,Oe=!1;break e;case 3:ne=l.stateNode.containerInfo,Oe=!0;break e;case 4:ne=l.stateNode.containerInfo,Oe=!0;break e}l=l.return}if(ne===null)throw Error(m(160));hc(o,s,i),ne=null,Oe=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(c){H(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yc(t,e),t=t.sibling}function yc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_e(t,e),Fe(e),r&4){try{nr(3,e,e.return),di(3,e)}catch(x){H(e,e.return,x)}try{nr(5,e,e.return)}catch(x){H(e,e.return,x)}}break;case 1:_e(t,e),Fe(e),r&512&&n!==null&&fn(n,n.return);break;case 5:if(_e(t,e),Fe(e),r&512&&n!==null&&fn(n,n.return),e.flags&32){var i=e.stateNode;try{vn(i,"")}catch(x){H(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Vl(i,o),co(l,s);var c=co(l,o);for(s=0;s<u.length;s+=2){var g=u[s],h=u[s+1];g==="style"?Kl(i,h):g==="dangerouslySetInnerHTML"?Jl(i,h):g==="children"?vn(i,h):Zi(i,g,h,c)}switch(l){case"input":oo(i,o);break;case"textarea":Zl(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var M=o.value;M!=null?Vt(i,!!o.multiple,M,!1):p!==!!o.multiple&&(o.defaultValue!=null?Vt(i,!!o.multiple,o.defaultValue,!0):Vt(i,!!o.multiple,o.multiple?[]:"",!1))}i[Hn]=o}catch(x){H(e,e.return,x)}}break;case 6:if(_e(t,e),Fe(e),r&4){if(e.stateNode===null)throw Error(m(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){H(e,e.return,x)}}break;case 3:if(_e(t,e),Fe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{On(t.containerInfo)}catch(x){H(e,e.return,x)}break;case 4:_e(t,e),Fe(e);break;case 13:_e(t,e),Fe(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Qs=W())),r&4&&gc(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(le=(c=le)||g,_e(t,e),le=c):_e(t,e),Fe(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!g&&e.mode&1)for(D=e,g=e.child;g!==null;){for(h=D=g;D!==null;){switch(p=D,M=p.child,p.tag){case 0:case 11:case 14:case 15:nr(4,p,p.return);break;case 1:fn(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(x){H(r,n,x)}}break;case 5:fn(p,p.return);break;case 22:if(p.memoizedState!==null){xc(h);continue}}M!==null?(M.return=p,D=M):xc(h)}g=g.sibling}e:for(g=null,h=e;;){if(h.tag===5){if(g===null){g=h;try{i=h.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=Xl("display",s))}catch(x){H(e,e.return,x)}}}else if(h.tag===6){if(g===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(x){H(e,e.return,x)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;g===h&&(g=null),h=h.return}g===h&&(g=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:_e(t,e),Fe(e),r&4&&gc(e);break;case 21:break;default:_e(t,e),Fe(e)}}function Fe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(fc(n)){var r=n;break e}n=n.return}throw Error(m(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(vn(i,""),r.flags&=-33);var o=pc(e);Os(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=pc(e);Ls(e,l,s);break;default:throw Error(m(161))}}catch(u){H(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xp(e,t,n){D=e,Mc(e)}function Mc(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ci;if(!s){var l=i.alternate,u=l!==null&&l.memoizedState!==null||le;l=ci;var c=le;if(ci=s,(le=u)&&!c)for(D=i;D!==null;)s=D,u=s.child,s.tag===22&&s.memoizedState!==null?wc(i):u!==null?(u.return=s,D=u):wc(i);for(;o!==null;)D=o,Mc(o),o=o.sibling;D=i,ci=l,le=c}mc(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,D=o):mc(e)}}function mc(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:le||di(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!le)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&xa(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xa(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var g=c.memoizedState;if(g!==null){var h=g.dehydrated;h!==null&&On(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(m(163))}le||t.flags&512&&Cs(t)}catch(p){H(t,t.return,p)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function xc(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function wc(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{di(4,t)}catch(u){H(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){H(t,i,u)}}var o=t.return;try{Cs(t)}catch(u){H(t,o,u)}break;case 5:var s=t.return;try{Cs(t)}catch(u){H(t,s,u)}}}catch(u){H(t,t.return,u)}if(t===e){D=null;break}var l=t.sibling;if(l!==null){l.return=t.return,D=l;break}D=t.return}}var wp=Math.ceil,fi=Ze.ReactCurrentDispatcher,_s=Ze.ReactCurrentOwner,Se=Ze.ReactCurrentBatchConfig,O=0,q=null,G=null,re=0,Ne=0,pn=dt(0),X=0,rr=null,Ct=0,pi=0,Us=0,ir=null,ge=null,Qs=0,hn=1/0,tt=null,hi=!1,Ps=null,Mt=null,gi=!1,mt=null,yi=0,or=0,Rs=null,Mi=-1,mi=0;function de(){return O&6?W():Mi!==-1?Mi:Mi=W()}function xt(e){return e.mode&1?O&2&&re!==0?re&-re:rp.transition!==null?(mi===0&&(mi=pu()),mi):(e=_,e!==0||(e=window.event,e=e===void 0?16:Nu(e.type)),e):1}function Ue(e,t,n,r){if(50<or)throw or=0,Rs=null,Error(m(185));An(e,n,r),(!(O&2)||e!==q)&&(e===q&&(!(O&2)&&(pi|=n),X===4&&wt(e,re)),ye(e,r),n===1&&O===0&&!(t.mode&1)&&(hn=W()+500,Wr&&pt()))}function ye(e,t){var n=e.callbackNode;nf(e,t);var r=Sr(e,e===q?re:0);if(r===0)n!==null&&cu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&cu(n),t===1)e.tag===0?np(Nc.bind(null,e)):la(Nc.bind(null,e)),Kf(function(){!(O&6)&&pt()}),n=null;else{switch(hu(r)){case 1:n=mo;break;case 4:n=du;break;case 16:n=vr;break;case 536870912:n=fu;break;default:n=vr}n=jc(n,Ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ic(e,t){if(Mi=-1,mi=0,O&6)throw Error(m(327));var n=e.callbackNode;if(gn()&&e.callbackNode!==n)return null;var r=Sr(e,e===q?re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=xi(e,r);else{t=r;var i=O;O|=2;var o=Tc();(q!==e||re!==t)&&(tt=null,hn=W()+500,Ot(e,t));do try{vp();break}catch(l){vc(e,l)}while(1);rs(),fi.current=o,O=i,G!==null?t=0:(q=null,re=0,t=X)}if(t!==0){if(t===2&&(i=xo(e),i!==0&&(r=i,t=bs(e,i))),t===1)throw n=rr,Ot(e,0),wt(e,r),ye(e,W()),n;if(t===6)wt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Ip(i)&&(t=xi(e,r),t===2&&(o=xo(e),o!==0&&(r=o,t=bs(e,o))),t===1))throw n=rr,Ot(e,0),wt(e,r),ye(e,W()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(m(345));case 2:_t(e,ge,tt);break;case 3:if(wt(e,r),(r&130023424)===r&&(t=Qs+500-W(),10<t)){if(Sr(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){de(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wo(_t.bind(null,e,ge,tt),t);break}_t(e,ge,tt);break;case 4:if(wt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-je(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wp(r/1960))-r,10<r){e.timeoutHandle=Wo(_t.bind(null,e,ge,tt),r);break}_t(e,ge,tt);break;case 5:_t(e,ge,tt);break;default:throw Error(m(329))}}}return ye(e,W()),e.callbackNode===n?Ic.bind(null,e):null}function bs(e,t){var n=ir;return e.current.memoizedState.isDehydrated&&(Ot(e,t).flags|=256),e=xi(e,t),e!==2&&(t=ge,ge=n,t!==null&&Ys(t)),e}function Ys(e){ge===null?ge=e:ge.push.apply(ge,e)}function Ip(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ze(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 wt(e,t){for(t&=~Us,t&=~pi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-je(t),r=1<<n;e[n]=-1,t&=~r}}function Nc(e){if(O&6)throw Error(m(327));gn();var t=Sr(e,0);if(!(t&1))return ye(e,W()),null;var n=xi(e,t);if(e.tag!==0&&n===2){var r=xo(e);r!==0&&(t=r,n=bs(e,r))}if(n===1)throw n=rr,Ot(e,0),wt(e,t),ye(e,W()),n;if(n===6)throw Error(m(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_t(e,ge,tt),ye(e,W()),null}function Bs(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(hn=W()+500,Wr&&pt())}}function Lt(e){mt!==null&&mt.tag===0&&!(O&6)&&gn();var t=O;O|=1;var n=Se.transition,r=_;try{if(Se.transition=null,_=1,e)return e()}finally{_=r,Se.transition=n,O=t,!(O&6)&&pt()}}function Fs(){Ne=pn.current,P(pn)}function Ot(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xf(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(Ko(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Vr();break;case 3:cn(),P(fe),P(ie),ds();break;case 5:as(r);break;case 4:cn();break;case 13:P(F);break;case 19:P(F);break;case 10:is(r.type._context);break;case 22:case 23:Fs()}n=n.return}if(q=e,G=e=It(e.current,null),re=Ne=t,X=0,rr=null,Us=pi=Ct=0,ge=ir=null,At!==null){for(t=0;t<At.length;t++)if(n=At[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}At=null}return e}function vc(e,t){do{var n=G;try{if(rs(),ni.current=si,ri){for(var r=V.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ri=!1}if(zt=0,K=J=V=null,Xn=!1,Kn=0,_s.current=null,n===null||n.return===null){X=1,rr=t,G=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=re,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,g=l,h=g.tag;if(!(g.mode&1)&&(h===0||h===11||h===15)){var p=g.alternate;p?(g.updateQueue=p.updateQueue,g.memoizedState=p.memoizedState,g.lanes=p.lanes):(g.updateQueue=null,g.memoizedState=null)}var M=Ga(s);if(M!==null){M.flags&=-257,$a(M,s,l,o,t),M.mode&1&&Za(o,c,t),t=M,u=c;var w=t.updateQueue;if(w===null){var x=new Set;x.add(u),t.updateQueue=x}else w.add(u);break e}else{if(!(t&1)){Za(o,c,t),Vs();break e}u=Error(m(426))}}else if(b&&l.mode&1){var k=Ga(s);if(k!==null){!(k.flags&65536)&&(k.flags|=256),$a(k,s,l,o,t),ts(dn(u,l));break e}}o=u=dn(u,l),X!==4&&(X=2),ir===null?ir=[o]:ir.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var d=Ha(o,u,t);ma(o,d);break e;case 1:l=u;var a=o.type,f=o.stateNode;if(!(o.flags&128)&&(typeof a.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Mt===null||!Mt.has(f)))){o.flags|=65536,t&=-t,o.lanes|=t;var y=Wa(o,l,t);ma(o,y);break e}}o=o.return}while(o!==null)}Ec(n)}catch(v){t=v,G===n&&n!==null&&(G=n=n.return);continue}break}while(1)}function Tc(){var e=fi.current;return fi.current=si,e===null?si:e}function Vs(){(X===0||X===3||X===2)&&(X=4),q===null||!(Ct&268435455)&&!(pi&268435455)||wt(q,re)}function xi(e,t){var n=O;O|=2;var r=Tc();(q!==e||re!==t)&&(tt=null,Ot(e,t));do try{Np();break}catch(i){vc(e,i)}while(1);if(rs(),O=n,fi.current=r,G!==null)throw Error(m(261));return q=null,re=0,X}function Np(){for(;G!==null;)Dc(G)}function vp(){for(;G!==null&&!Zd();)Dc(G)}function Dc(e){var t=Ac(e.alternate,e,Ne);e.memoizedProps=e.pendingProps,t===null?Ec(e):G=t,_s.current=null}function Ec(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=yp(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{X=6,G=null;return}}else if(n=gp(n,t,Ne),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);X===0&&(X=5)}function _t(e,t,n){var r=_,i=Se.transition;try{Se.transition=null,_=1,Tp(e,t,n,r)}finally{Se.transition=i,_=r}return null}function Tp(e,t,n,r){do gn();while(mt!==null);if(O&6)throw Error(m(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(m(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(rf(e,o),e===q&&(G=q=null,re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||gi||(gi=!0,jc(vr,function(){return gn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Se.transition,Se.transition=null;var s=_;_=1;var l=O;O|=4,_s.current=null,mp(e,n),yc(n,e),Vf(Vo),jr=!!Fo,Vo=Fo=null,e.current=n,xp(n),Gd(),O=l,_=s,Se.transition=o}else e.current=n;if(gi&&(gi=!1,mt=e,yi=i),o=e.pendingLanes,o===0&&(Mt=null),Xd(n.stateNode),ye(e,W()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(hi)throw hi=!1,e=Ps,Ps=null,e;return yi&1&&e.tag!==0&&gn(),o=e.pendingLanes,o&1?e===Rs?or++:(or=0,Rs=e):or=0,pt(),null}function gn(){if(mt!==null){var e=hu(yi),t=Se.transition,n=_;try{if(Se.transition=null,_=16>e?16:e,mt===null)var r=!1;else{if(e=mt,mt=null,yi=0,O&6)throw Error(m(331));var i=O;for(O|=4,D=e.current;D!==null;){var o=D,s=o.child;if(D.flags&16){var l=o.deletions;if(l!==null){for(var u=0;u<l.length;u++){var c=l[u];for(D=c;D!==null;){var g=D;switch(g.tag){case 0:case 11:case 15:nr(8,g,o)}var h=g.child;if(h!==null)h.return=g,D=h;else for(;D!==null;){g=D;var p=g.sibling,M=g.return;if(dc(g),g===c){D=null;break}if(p!==null){p.return=M,D=p;break}D=M}}}var w=o.alternate;if(w!==null){var x=w.child;if(x!==null){w.child=null;do{var k=x.sibling;x.sibling=null,x=k}while(x!==null)}}D=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,D=s;else e:for(;D!==null;){if(o=D,o.flags&2048)switch(o.tag){case 0:case 11:case 15:nr(9,o,o.return)}var d=o.sibling;if(d!==null){d.return=o.return,D=d;break e}D=o.return}}var a=e.current;for(D=a;D!==null;){s=D;var f=s.child;if(s.subtreeFlags&2064&&f!==null)f.return=s,D=f;else e:for(s=a;D!==null;){if(l=D,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:di(9,l)}}catch(v){H(l,l.return,v)}if(l===s){D=null;break e}var y=l.sibling;if(y!==null){y.return=l.return,D=y;break e}D=l.return}}if(O=i,pt(),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(Tr,e)}catch{}r=!0}return r}finally{_=n,Se.transition=t}}return!1}function Sc(e,t,n){t=dn(n,t),t=Ha(e,t,1),e=gt(e,t,1),t=de(),e!==null&&(An(e,1,t),ye(e,t))}function H(e,t,n){if(e.tag===3)Sc(e,e,n);else for(;t!==null;){if(t.tag===3){Sc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Mt===null||!Mt.has(r))){e=dn(n,e),e=Wa(t,e,1),t=gt(t,e,1),e=de(),t!==null&&(An(t,1,e),ye(t,e));break}}t=t.return}}function Dp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=de(),e.pingedLanes|=e.suspendedLanes&n,q===e&&(re&n)===n&&(X===4||X===3&&(re&130023424)===re&&500>W()-Qs?Ot(e,0):Us|=n),ye(e,t)}function kc(e,t){t===0&&(e.mode&1?(t=Er,Er<<=1,!(Er&130023424)&&(Er=4194304)):t=1);var n=de();e=Ke(e,t),e!==null&&(An(e,t,n),ye(e,n))}function Ep(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kc(e,n)}function Sp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(m(314))}r!==null&&r.delete(t),kc(e,n)}var Ac;Ac=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fe.current)he=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return he=!1,hp(e,t,n);he=!!(e.flags&131072)}else he=!1,b&&t.flags&1048576&&ua(t,Gr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ai(e,t),e=t.pendingProps;var i=nn(t,ie.current);an(t,n),i=hs(null,t,r,e,i,n);var o=gs();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pe(r)?(o=!0,Hr(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ls(t),i.updater=li,t.stateNode=i,i._reactInternals=t,Is(t,r,e,n),t=Ds(null,t,r,!0,o,n)):(t.tag=0,b&&o&&Xo(t),ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ai(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ap(r),e=Le(r,e),i){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=tc(null,t,r,e,n);break e;case 11:t=Ja(null,t,r,e,n);break e;case 14:t=Xa(null,t,r,Le(r.type,e),n);break e}throw Error(m(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Le(r,i),Ts(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Le(r,i),tc(e,t,r,i,n);case 3:e:{if(nc(t),e===null)throw Error(m(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Ma(e,t),ei(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=dn(Error(m(423)),t),t=rc(e,t,r,n,i);break e}else if(r!==i){i=dn(Error(m(424)),t),t=rc(e,t,r,n,i);break e}else for(Ie=ct(t.stateNode.containerInfo.firstChild),we=t,b=!0,Ce=null,n=ga(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sn(),r===i){t=et(e,t,n);break e}ce(e,t,r,n)}t=t.child}return t;case 5:return wa(t),e===null&&es(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Ho(r,i)?s=null:o!==null&&Ho(r,o)&&(t.flags|=32),ec(e,t),ce(e,t,s,n),t.child;case 6:return e===null&&es(t),null;case 13:return ic(e,t,n);case 4:return us(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ln(t,null,r,n):ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Le(r,i),Ja(e,t,r,i,n);case 7:return ce(e,t,t.pendingProps,n),t.child;case 8:return ce(e,t,t.pendingProps.children,n),t.child;case 12:return ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,U(Xr,r._currentValue),r._currentValue=s,o!==null)if(ze(o.value,s)){if(o.children===i.children&&!fe.current){t=et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=qe(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var g=c.pending;g===null?u.next=u:(u.next=g.next,g.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),os(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(m(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),os(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,an(t,n),i=De(i),r=r(i),t.flags|=1,ce(e,t,r,n),t.child;case 14:return r=t.type,i=Le(r,t.pendingProps),i=Le(r.type,i),Xa(e,t,r,i,n);case 15:return Ka(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Le(r,i),ai(e,t),t.tag=1,pe(r)?(e=!0,Hr(t)):e=!1,an(t,n),Fa(t,r,i),Is(t,r,i,n),Ds(null,t,r,!0,e,n);case 19:return sc(e,t,n);case 22:return qa(e,t,n)}throw Error(m(156,t.tag))};function jc(e,t){return au(e,t)}function kp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ke(e,t,n,r){return new kp(e,t,n,r)}function Hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ap(e){if(typeof e=="function")return Hs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ji)return 11;if(e===qi)return 14}return 2}function It(e,t){var n=e.alternate;return n===null?(n=ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Hs(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ft:return Ut(n.children,i,o,t);case Gi:s=8,i|=8;break;case $i:return e=ke(12,n,t,i|2),e.elementType=$i,e.lanes=o,e;case Xi:return e=ke(13,n,t,i),e.elementType=Xi,e.lanes=o,e;case Ki:return e=ke(19,n,t,i),e.elementType=Ki,e.lanes=o,e;case Rl:return Ii(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ql:s=10;break e;case Pl:s=9;break e;case Ji:s=11;break e;case qi:s=14;break e;case nt:s=16,r=null;break e}throw Error(m(130,e==null?e:typeof e,""))}return t=ke(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ut(e,t,n,r){return e=ke(7,e,r,t),e.lanes=n,e}function Ii(e,t,n,r){return e=ke(22,e,r,t),e.elementType=Rl,e.lanes=n,e.stateNode={isHidden:!1},e}function Ws(e,t,n){return e=ke(6,e,null,t),e.lanes=n,e}function Zs(e,t,n){return t=ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jp(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wo(0),this.expirationTimes=wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Gs(e,t,n,r,i,o,s,l,u){return e=new jp(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ke(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ls(o),e}function zp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zc(e){if(!e)return ft;e=e._reactInternals;e:{if(Tt(e)!==e||e.tag!==1)throw Error(m(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(m(171))}if(e.tag===1){var n=e.type;if(pe(n))return oa(e,n,t)}return t}function Cc(e,t,n,r,i,o,s,l,u){return e=Gs(n,r,!0,e,i,o,s,l,u),e.context=zc(null),n=e.current,r=de(),i=xt(n),o=qe(r,i),o.callback=t??null,gt(n,o,i),e.current.lanes=i,An(e,i,r),ye(e,r),e}function Ni(e,t,n,r){var i=t.current,o=de(),s=xt(i);return n=zc(n),t.context===null?t.context=n:t.pendingContext=n,t=qe(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gt(i,t,s),e!==null&&(Ue(e,i,s,o),qr(e,i,s)),s}function vi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Lc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $s(e,t){Lc(e,t),(e=e.alternate)&&Lc(e,t)}function Cp(){return null}var Oc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Js(e){this._internalRoot=e}Ti.prototype.render=Js.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(m(409));Ni(e,t,null,null)},Ti.prototype.unmount=Js.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lt(function(){Ni(null,e,null,null)}),t[Ge]=null}};function Ti(e){this._internalRoot=e}Ti.prototype.unstable_scheduleHydration=function(e){if(e){var t=Mu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<lt.length&&t!==0&&t<lt[n].priority;n++);lt.splice(n,0,e),n===0&&wu(e)}};function Xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Di(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function _c(){}function Lp(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=vi(s);o.call(c)}}var s=Cc(t,r,e,0,null,!1,!1,"",_c);return e._reactRootContainer=s,e[Ge]=s.current,Fn(e.nodeType===8?e.parentNode:e),Lt(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var c=vi(u);l.call(c)}}var u=Gs(e,0,!1,null,null,!1,!1,"",_c);return e._reactRootContainer=u,e[Ge]=u.current,Fn(e.nodeType===8?e.parentNode:e),Lt(function(){Ni(t,u,n,r)}),u}function Ei(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var u=vi(s);l.call(u)}}Ni(t,s,e,i)}else s=Lp(n,t,e,i,r);return vi(s)}gu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=kn(t.pendingLanes);n!==0&&(Io(t,n|1),ye(t,W()),!(O&6)&&(hn=W()+500,pt()))}break;case 13:Lt(function(){var r=Ke(e,1);if(r!==null){var i=de();Ue(r,e,1,i)}}),$s(e,1)}},No=function(e){if(e.tag===13){var t=Ke(e,134217728);if(t!==null){var n=de();Ue(t,e,134217728,n)}$s(e,134217728)}},yu=function(e){if(e.tag===13){var t=xt(e),n=Ke(e,t);if(n!==null){var r=de();Ue(n,e,t,r)}$s(e,t)}},Mu=function(){return _},mu=function(e,t){var n=_;try{return _=e,t()}finally{_=n}},ho=function(e,t,n){switch(t){case"input":if(oo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Fr(r);if(!i)throw Error(m(90));Bl(r),oo(r,i)}}}break;case"textarea":Zl(e,n);break;case"select":t=n.value,t!=null&&Vt(e,!!n.multiple,t,!1)}},nu=Bs,ru=Lt;var Op={usingClientEntryPoint:!1,Events:[Wn,en,Fr,eu,tu,Bs]},sr={findFiberByHostInstance:Dt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_p={bundleType:sr.bundleType,version:sr.version,rendererPackageName:sr.rendererPackageName,rendererConfig:sr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ze.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lu(e),e===null?null:e.stateNode},findFiberByHostInstance:sr.findFiberByHostInstance||Cp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Si=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Si.isDisabled&&Si.supportsFiber)try{Tr=Si.inject(_p),Re=Si}catch{}}Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Op,Me.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xs(t))throw Error(m(200));return zp(e,t,null,n)},Me.createRoot=function(e,t){if(!Xs(e))throw Error(m(299));var n=!1,r="",i=Oc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Gs(e,1,!1,null,null,n,!1,r,i),e[Ge]=t.current,Fn(e.nodeType===8?e.parentNode:e),new Js(t)},Me.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(m(188)):(e=Object.keys(e).join(","),Error(m(268,e)));return e=lu(t),e=e===null?null:e.stateNode,e},Me.flushSync=function(e){return Lt(e)},Me.hydrate=function(e,t,n){if(!Di(t))throw Error(m(200));return Ei(null,e,t,!0,n)},Me.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(m(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=Oc;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Cc(t,null,e,1,n??null,i,!1,o,s),e[Ge]=t.current,Fn(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ti(t)},Me.render=function(e,t,n){if(!Di(t))throw Error(m(200));return Ei(null,e,t,!1,n)},Me.unmountComponentAtNode=function(e){if(!Di(e))throw Error(m(40));return e._reactRootContainer?(Lt(function(){Ei(null,null,e,!1,function(){e._reactRootContainer=null,e[Ge]=null})}),!0):!1},Me.unstable_batchedUpdates=Bs,Me.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Di(n))throw Error(m(200));if(e==null||e._reactInternals===void 0)throw Error(m(38));return Ei(e,t,n,!1,r)},Me.version="18.3.1-next-f1338f8080-20240426";function Uc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Uc)}catch(e){console.error(e)}}Uc(),zl.exports=Me;var Up=zl.exports,Qc=Up;yr.createRoot=Qc.createRoot,yr.hydrateRoot=Qc.hydrateRoot;const Qp="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCA4MCAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0xNy4zNjMxIDEuMjU5N0gxNi4wOTZDMTUuNjI5MyAxLjI1OTcgMTUuMjUxIDEuNjMzNTQgMTUuMjUxIDIuMDk0NjlWMy4zOTMwN0MxNS4yNTEgMy44NTQyMiAxNS42MjkzIDQuMjI4MDYgMTYuMDk2IDQuMjI4MDZIMTcuMzYzMUMxNy44Mjk4IDQuMjI4MDYgMTguMjA4MSAzLjg1NDIyIDE4LjIwODEgMy4zOTMwN1YyLjA5NDY5QzE4LjIwODEgMS42MzM1NCAxNy44Mjk4IDEuMjU5NyAxNy4zNjMxIDEuMjU5N1oiIGZpbGw9IiNCREJEQkQiLz4NCjxwYXRoIGQ9Ik0xOC4xMzc5IDYuMTk5MTNIMTUuMzIxOFYxNy41ODU3SDE4LjEz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MzAyNiA1LjAyNzUgNS40MTUyNkMzLjk0MjUgNi41MDAyNiAzLjQgNy44MjQ0MiAzLjQgOS4zODc3NkMzLjQgMTAuOTUxMSAzLjk0MjUgMTIuMjc1MyA1LjAyNzUgMTMuMzYwM0M2LjExMjUgMTQuNDQ1MyA3LjQzNjY3IDE0Ljk4NzggOSAxNC45ODc4WiIgZmlsbD0iI0JEQkRCRCIvPg0KPC9nPg0KPC9zdmc+DQo=",ki=({icon:e,description:t,iconStyle:n="default"})=>{const r={sm:"w-[19px] h-[18px] shrink-0",default:"w-[30px] h-[30px] shrink-0",md:"w-[80px] h-[19px] shrink-0",profile:"w-[51px] h-[40px] shrink-0"},i=r[n]||r.default;return I.jsx("img",{className:i,src:e,alt:t})},Rp=()=>I.jsxs("div",{className:"flex justify-evenly items-center w-full h-full shrink-0 select-none",children:[I.jsx(ki,{icon:Qp,iconStyle:"md",description:"Logo Hi Fenix"}),I.jsxs("div",{className:"flex items-center",children:[I.jsx(ki,{icon:Pp,iconStyle:"sm",description:"Logo Hi Fenix"}),I.jsx("p",{className:"text-[#bdbdbd] font-[Manrope] text-[14px] not-italic font-medium leading-[111%] tracking-[0.2px]",children:"Todos los derechos reservados"})]})]}),Pc=({icon:e,styleImg:t="default",description:n="",styleBtn:r="",callback:i=()=>{},isActive:o=!0,className:s=""})=>I.jsx("button",{onClick:i,className:`flex justify-center items-center p-0 bg-transparent cursor-pointer border-0 ${r} ${s}`,"aria-label":n,title:n,disabled:!o,children:I.jsx(ki,{icon:e,iconStyle:t,description:`Icono de ${n}`})}),Ks=R.createContext({}),Qt=()=>R.useContext(Ks),bp=({cancelarModal:e,reiniciarConversacion:t})=>{const{colorBubble:n}=Qt();return I.jsxs("section",{className:"flex flex-col items-start gap-6 absolute top-[138px] left-1/2 transform -translate-x-1/2 z-[9999] w-full max-w-[416px] h-[187px] p-[30px] rounded-[16px] bg-grayFooter shadow-questionMark box-border",children:[I.jsx("h2",{className:"w-full text-center text-blackAyelen font-[Manrope] text-[20px] font-bold leading-[100%] m-0",children:"¿Seguro desea reiniciar la conversación?"}),I.jsx("p",{className:"w-full text-center text-gray3 font-[Manrope] text-[16px] font-semibold leading-[100%] m-0",children:"No podrá revertir esta acción."}),I.jsxs("div",{className:"flex flex-row justify-between w-full",children:[I.jsx("button",{className:`rounded-full border shadow-[0px_2px_2px_0px_rgba(0,0,0,0.1)] w-[150px] h-[40px] px-4 flex justify-center items-center gap-2 text-[16px] font-semibold font-[Manrope] ${n?"":"border-azulChatbot text-azulChatbot"}`,style:{borderColor:n,color:n},onClick:e,children:"Cancelar"}),I.jsx("button",{className:`rounded-full text-white border-none shadow-[0px_2px_2px_0px_rgba(0,0,0,0.1)] w-[149px] h-[40px] px-4 flex justify-center items-center gap-2 text-[16px] font-semibold font-[Manrope] ${n?"":"bg-azulChatbot"}`,style:{backgroundColor:n},onClick:t,children:"Reiniciar"})]})]})},Rc="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMjA0OCAxNjAyIiB3aWR0aD0iNTMzIiBoZWlnaHQ9IjQxNyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3MCwyKSIgZD0ibTAgMGgyMGwxNiA1IDE0IDkgOCA4IDggMTMgNSAxNnYxOWwtNCAxNC03IDEzLTYgNy0xMCA4LTE0IDctMTAgMy0xIDMwMiAxMyAzIDE1IDggMTEgOSA5IDkgMTAgMTQgMTAgMTggMSAzIDQtMSAxMS04IDE1LTkgMjUtMTQgMjEtMTAgMjYtMTAgMzEtMTAgMzYtOCAyOC00IDM0LTJoNjYxbDMxIDIgMzEgNCAzMSA3IDI3IDggMjkgMTEgMjAgOSAyNSAxMyAxNSA5IDYgNCAxMC0xNiA4LTEwIDktMTAgMTAtOCAxNi04IDEx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wMyAyMC42NjVDMTYuMTg0MyAyMC42NjUgMTcuMjcxIDIwLjMyMSAxOC4yNDA0IDE5LjYzM0MxOS4yMDk4IDE4Ljk0NTEgMTkuODkgMTguMDM4MiAyMC4yODA5IDE2LjkxMjRIMjEuNzYzOUMyMS4zMzgxIDE4LjQ0MzUgMjAuNDk5NSAxOS42ODYyIDE5LjI0OCAyMC42NDA2QzE3Ljk5NjUgMjEuNTk1IDE2LjU3MzkgMjIuMDcyMiAxNC45ODAzIDIyLjA3MjJaIiBmaWxsPSIjMzMzMzMzIi8+DQo8L2c+DQo8L2c+DQo8L3N2Zz4NCg==",Hp=({closeChat:e=()=>{},onResetChat:t=()=>{}})=>{const[n,r]=R.useState(!1),{profileSvg:i,titleSvg:o,titleOne:s,titleTwo:l,isBoldTitleOne:u,isBoldTitleTwo:c,colorBubble:g}=Qt(),h=!!i,p=!!o,M=h?i:Rc,w=g?Vp:Bp,x=g?Fp:Yp;return I.jsxs("section",{className:`p-[20px] flex items-center justify-start relative w-full h-full gap-[15px] box-border select-none ${g?"":"bg-azulChatbot"}`,style:{backgroundColor:g},children:[I.jsx("div",{className:"w-[78px] h-[78px] flex-shrink-0 flex items-center justify-center bg-[#e7e7e7] rounded-full",children:I.jsx(ki,{icon:M,iconStyle:"profile",description:"Icono de enviar"})}),I.jsxs("div",{className:"flex flex-col justify-center gap-[2.64px] overflow-hidden",children:[p?I.jsx("img",{src:o,alt:"Custom Title",className:"object-contain",style:{maxWidth:"260px",maxHeight:"50px"}}):I.jsx("h2",{className:"m-0 text-[#FAFAFA] text-[20px] leading-normal",style:{fontFamily:"Montserrat"},children:s?I.jsx("span",{className:u?"font-bold":"",children:s}):I.jsxs(I.Fragment,{children:[I.jsx("span",{className:"font-bold",children:"HCHAT"})," ASSISTANT"]})}),I.jsx("p",{className:`text-grayFooter m-0 text-[16px] leading-[22px] ${c===!0?"font-bold":""}`,children:l||"¡Hola! 👋 Estoy aquí para ayudarte"})]}),I.jsx(Pc,{icon:w,styleImg:"default",description:"Reiniciar conversación",className:"absolute top-[10px] right-[50px]",callback:()=>r(!0)}),I.jsx(Pc,{icon:x,styleImg:"default",description:"Cerrar Hi chat Bot",styleBtn:"w-[30px] h-[30px]",className:"absolute top-[10px] right-[10px]",callback:e}),n&&I.jsx(bp,{cancelarModal:()=>r(!1),reiniciarConversacion:()=>{t(),r(!1)}})]})},Wp="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iY3VycmVudENvbG9yIiBjbGFzcz0ic2l6ZS02Ij4NCiAgPHBhdGggc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMTUuNjY2IDMuODg4QTIuMjUgMi4yNSAwIDAgMCAxMy41IDIuMjVoLTNjLTEuMDMgMC0xLjkuNjkzLTIuMTY2IDEuNjM4bTcuMzMyIDBjLjA1NS4xOTQuMDg0LjQuMDg0LjYxMnYwYS43NS43NSAwIDAgMS0uNzUuNzVIOWEuNzUuNzUgMCAwIDEtLjc1LS43NXYwYzAtLjIxMi4wMy0uNDE4LjA4NC0uNjEybTcuMzMyIDBjLjY0Ni4wNDkgMS4yODguMTEgMS45MjcuMTg0IDEuMS4xMjggMS45MDcgMS4wNzcgMS45MDcgMi4xODVWMTkuNWEyLjI1IDIuMjUgMCAwIDEtMi4yNSAyLjI1SDYuNzVBMi4yNSAyLjI1IDAgMCAxIDQuNSAxOS41VjYuMjU3YzAtMS4xMDguODA2LTIuMDU3IDEuOTA3LTIuMTg1YTQ4LjIwOCA0OC4yMDggMCAwIDEgMS45MjctLjE4NCIgLz4NCjwvc3ZnPg0K",Zp="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZT0iYmx1ZSIgY2xhc3M9InNpemUtNiI+DQogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTMuNzUgMy43NXY0LjVtMC00LjVoNC41bS00LjUgMEw5IDlNMy43NSAyMC4yNXYtNC41bTAgNC41aDQuNW0tNC41IDBMOSAxNU0yMC4yNSAzLjc1aC00LjVtNC41IDB2NC41bTAtNC41TDE1IDltNS4yNSAxMS4yNWgtNC41bTQuNSAwdi00LjVtMCA0LjVMMTUgMTUiIC8+DQo8L3N2Zz4NCg0K",Gp=({image:e,onClose:t})=>I.jsxs("div",{className:"fixed top-0 left-0 w-screen h-screen bg-black/70 backdrop-blur-sm flex justify-center items-center z-[1000]",onClick:t,children:[I.jsx("button",{className:"absolute top-[20px] right-[20px] bg-azulChatbot text-white text-[18px] font-bold px-4 py-2 rounded-full",onClick:t,children:"x"}),I.jsx("img",{src:e,alt:"zoom",className:"max-w-[85vw] max-h-[85vh] rounded-[10px] shadow-[2px_3px_22px_rgba(255,255,255,0.2)]",onClick:n=>n.stopPropagation()})]}),$p=({text:e="",userType:t="",loading:n=!1,images:r})=>{const[i,o]=R.useState(!1),[s,l]=R.useState(""),{colorBubble:u}=Qt(),c=t==="assistant",g=async()=>{try{await navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)}catch{console.error("Error copiando al portapapeles")}},h=()=>e.split(/!?\[.*?\]\((.*?)\)/g).map((M,w)=>{const x=M.includes("amazonaws.com"),k=M.startsWith("https://")||M.startsWith("http://");if(x)return I.jsxs("div",{className:"relative w-fit h-fit max-w-[220px] max-h-[140px] m-[12px_auto] cursor-pointer",onClick:()=>l(M),children:[I.jsx("img",{src:Zp,alt:"Ver imagen ampliada",className:"absolute top-[5px] right-[5px] w-[17px] h-[17px] z-10"}),I.jsx("img",{src:M,alt:"preview",className:"max-w-[220px] max-h-[140px] rounded-[10px] object-cover"})]},`img-${w}`);if(k)return I.jsx("a",{href:M,target:"_blank",rel:"noopener noreferrer",className:"underline",style:{color:u||"#2563EB"},children:M},`link-${w}`);const d=M.trim().split(`
41
+ `).map((a,f)=>I.jsxs("span",{children:[a,I.jsx("br",{})]},f));return I.jsx("span",{children:d},w)}).filter(Boolean);return I.jsxs("div",{className:"relative inline-block",children:[I.jsx("p",{className:`m-0 text-start p-[20px] max-w-[342px] font-[Manrope] text-[16px] font-medium leading-[22px] break-words box-border ${t==="assistant"?"bg-grayChat text-blackAyelen rounded-tr-[10px] rounded-bl-[10px] rounded-br-[10px]":`text-white rounded-tl-[10px] rounded-bl-[10px] rounded-br-[10px] ${u?"":"bg-azulChatbot"}`}`,style:{backgroundColor:t==="user"?u:void 0},children:n?I.jsx("span",{style:{"--bubble-color":u||"#1446FF",backgroundColor:u||"#1446FF"},className:`block w-[5px] h-[5px] rounded-full ${u?"":"bg-azulChatbot"} shadow-[8px_0_var(--bubble-color),-8px_0_var(--bubble-color)] animate-pulse`}):h()}),c&&!n&&I.jsxs(I.Fragment,{children:[I.jsx("button",{className:"absolute top-[10px] left-full ml-[8px] w-[24px] h-[24px] opacity-70 hover:opacity-100",onClick:g,title:"Copiar texto",children:I.jsx("img",{src:Wp,alt:"Copiar"})}),i&&I.jsx("div",{className:"absolute top-[-28px] right-0 bg-black text-white px-2 py-1 text-xs rounded animate-fadeInOut pointer-events-none",children:"Mensaje copiado"})]}),s&&I.jsx(Gp,{image:s,onClose:()=>l("")})]})},Jp=({messages:e=[]})=>I.jsx("div",{className:"flex flex-col gap-[22px] m-[18px] max-w-[416px] bg-white",children:e.length>0&&e.map((t,n)=>I.jsx("div",{className:`flex w-full items-center bg-white ${t.userType==="assistant"?"justify-start":"justify-end"}`,children:I.jsx($p,{text:t.text,userType:t.userType,loading:t.loading,images:t.images})},n))}),Xp="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0i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r]=R.useState(""),{colorBubble:i}=Qt(),o=R.useRef(null),s=c=>{const g=c.target.value;r(g);const h=o.current;if(h){h.style.height="auto";const p=Math.min(h.scrollHeight,100);h.style.height=`${p}px`,h.style.overflowY=p>=100?"auto":"hidden"}},l=async()=>{if(n.trim().length!==0)try{await e(n.trim()),r(""),o.current&&(o.current.style.height="auto",o.current.style.overflowY="hidden")}catch(c){console.error("Error enviando mensaje:",c.message)}},u=c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),l())};return I.jsxs("div",{className:"flex justify-center items-end w-full h-auto min-h-[61px] max-h-[100px] relative bg-white",children:[I.jsx("div",{className:"absolute top-[1px] left-[1px] w-[calc(100%-90px)] h-[4px] bg-white z-[2] pointer-events-none"}),I.jsx("textarea",{ref:o,value:n,onChange:s,onKeyDown:u,placeholder:"Escribe tu mensaje...",rows:1,className:"flex-grow box-border p-[17px_24px_17px_22px] border border-gray-300 text-black font-[Manrope] text-[16px] font-medium leading-[20px] outline-none transition-all resize-none min-h-[61px] h-auto focus:border-azulChatbot overflow-hidden",disabled:t}),I.jsx("button",{className:`cursor-pointer flex justify-center items-center border-0 mx-[18px] mb-[4px] rounded-full w-[50px] h-[50px] flex-shrink-0 ${i?"":"bg-azulChatbot"} shadow-[0px_2px_2px_0px_rgba(0,0,0,0.1)] text-white`,style:{backgroundColor:i},onClick:l,disabled:t||n.trim().length===0,title:"Enviar mensaje","aria-label":"Enviar mensaje",children:I.jsx("img",{src:Xp,alt:"Enviar",className:"w-[22px] h-[19px] relative left-[2px]"})})]})},qp=({messages:e=[],onSendMessage:t=()=>{},inputDisabled:n=!1})=>{const r=R.useRef(null);return R.useEffect(()=>{r.current&&requestAnimationFrame(()=>{r.current.scrollTop=r.current.scrollHeight})},[e]),I.jsxs("div",{className:"w-full h-full flex flex-col overflow-hidden box-border",children:[I.jsx("div",{ref:r,className:"max-w-full h-[361px] max-h-[361px] overflow-y-auto bg-white scrollbar-thin scrollbar-thumb-gray-400 scrollbar-track-transparent",children:I.jsx(Jp,{messages:e})}),I.jsx("div",{className:"max-w-[416px] min-h-[61px] max-h-[105px] pt-[5px] h-auto flex-shrink-0 bg-white box-border flex items-end",children:I.jsx(Kp,{onSubmit:t,inputDisabled:n})})]})};function eh({header:e,mainChat:t,footer:n}){const[r,i]=R.useState(!1),{backOfficeBubble:o,colorBubble:s}=Qt(),[l,u]=R.useState(""),c=s?`bg-[${s}]`:"bg-azulChatbot";return R.useEffect(()=>{u(o?"relative":"block fixed bottom-[-600px] right-16 max-sm:px-[10px] max-sm:right-0"),setTimeout(()=>i(!0),10)},[]),I.jsx("div",{className:`
42
+ ${l} max-sm:rounded-[8px] max-[1370px]:animate-slide-up-xl
43
+ ${o?"w-full h-full":"w-full max-w-[416px] h-[calc(100vh-20px)] max-h-[620px]"}
44
44
  z-[9999] box-border
45
45
  animate-slide-up-all
46
- `,children:N.jsxs("div",{className:"w-full h-full rounded-[18px] bg-white shadow-[1px_3px_20px_rgba(0,0,0,0.2)] flex flex-col overflow-hidden",children:[N.jsx("div",{className:"w-full h-[138px] max-w-[416px] max-h-[138px] flex-shrink-0 bg-azulChatbot box-border rounded-t-[18px]",children:e}),N.jsx("div",{className:"w-full h-[422px] max-w-[416px] max-h-[422px] bg-white overflow-y-auto box-border",children:t}),N.jsx("div",{className:"w-full h-[60px] max-w-[416px] max-h-[60px] flex-shrink-0 bg-grayFooter box-border",children:n})]})})}const Jp=({onClick:e=()=>{}})=>{const{floatSvg:t,backOfficeBubble:n}=Si(),i=!!t?t:Pc,o=n?"relative left-[80%] top-[75%]":"fixed bottom-[86px] max-sm:bottom-[74px] max-sm:right-4 right-16";return N.jsx("button",{className:`
47
- ${o}
48
- w-[50px] h-[50px] bg-azulChatbot rounded-full
46
+ `,children:I.jsxs("div",{className:"w-full h-full rounded-[18px] bg-white shadow-[1px_3px_20px_rgba(0,0,0,0.2)] flex flex-col overflow-hidden",children:[I.jsx("div",{className:`w-full h-[138px] max-w-[416px] max-h-[138px] flex-shrink-0 ${c} box-border rounded-t-[18px]`,children:e}),I.jsx("div",{className:"w-full h-[422px] max-w-[416px] max-h-[422px] bg-white overflow-y-auto box-border",children:t}),I.jsx("div",{className:"w-full h-[60px] max-w-[416px] max-h-[60px] flex-shrink-0 bg-grayFooter box-border",children:n})]})})}const th=({onClick:e=()=>{}})=>{const{floatSvg:t,backOfficeBubble:n,colorBubble:r}=Qt(),o=!!t?t:Rc,s=n?"":"fixed bottom-[86px] max-sm:bottom-[74px] max-sm:right-4 right-16",l=n?{position:"absolute",bottom:"10px",right:"10px"}:{};return I.jsx("button",{className:`
47
+ ${s}
48
+ w-[50px] h-[50px] rounded-full ${r?"":"bg-azulChatbot"}
49
49
  flex items-center justify-center z-[9998] shadow-md transition-opacity duration-300
50
- ease-in-out select-none rigth-12`,onClick:e,children:N.jsx("img",{src:i,alt:"Abrir chat",className:"w-[30px] h-[24px]"})})},Ve=Object.create(null);Ve.open="0",Ve.close="1",Ve.ping="2",Ve.pong="3",Ve.message="4",Ve.upgrade="5",Ve.noop="6";const ki=Object.create(null);Object.keys(Ve).forEach(e=>{ki[Ve[e]]=e});const Ks={type:"error",data:"parser error"},Qc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Yc=typeof ArrayBuffer=="function",bc=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,qs=({type:e,data:t},n,r)=>Qc&&t instanceof Blob?n?r(t):Bc(t,r):Yc&&(t instanceof ArrayBuffer||bc(t))?n?r(t):Bc(new Blob([t]),r):r(Ve[e]+(t||"")),Bc=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Fc(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let el;function Xp(e,t){if(Qc&&e.data instanceof Blob)return e.data.arrayBuffer().then(Fc).then(t);if(Yc&&(e.data instanceof ArrayBuffer||bc(e.data)))return t(Fc(e.data));qs(e,!1,n=>{el||(el=new TextEncoder),t(el.encode(n))})}const Vc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Vc.length;e++)sr[Vc.charCodeAt(e)]=e;const Kp=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,l,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),h=new Uint8Array(c);for(r=0;r<n;r+=4)o=sr[e.charCodeAt(r)],s=sr[e.charCodeAt(r+1)],l=sr[e.charCodeAt(r+2)],u=sr[e.charCodeAt(r+3)],h[i++]=o<<2|s>>4,h[i++]=(s&15)<<4|l>>2,h[i++]=(l&3)<<6|u&63;return c},qp=typeof ArrayBuffer=="function",tl=(e,t)=>{if(typeof e!="string")return{type:"message",data:Hc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:eh(e.substring(1),t)}:ki[n]?e.length>1?{type:ki[n],data:e.substring(1)}:{type:ki[n]}:Ks},eh=(e,t)=>{if(qp){const n=Kp(e);return Hc(n,t)}else return{base64:!0,data:e}},Hc=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Wc=String.fromCharCode(30),th=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{qs(o,!1,l=>{r[s]=l,++i===n&&t(r.join(Wc))})})},nh=(e,t)=>{const n=e.split(Wc),r=[];for(let i=0;i<n.length;i++){const o=tl(n[i],t);if(r.push(o),o.type==="error")break}return r};function rh(){return new TransformStream({transform(e,t){Xp(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let nl;function Ai(e){return e.reduce((t,n)=>t+n.length,0)}function Li(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ih(e,t){nl||(nl=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,l){for(n.push(s);;){if(r===0){if(Ai(n)<1)break;const u=Li(n,1);o=(u[0]&128)===128,i=u[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Ai(n)<2)break;const u=Li(n,2);i=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),r=3}else if(r===2){if(Ai(n)<8)break;const u=Li(n,8),c=new DataView(u.buffer,u.byteOffset,u.length),h=c.getUint32(0);if(h>Math.pow(2,53-32)-1){l.enqueue(Ks);break}i=h*Math.pow(2,32)+c.getUint32(4),r=3}else{if(Ai(n)<i)break;const u=Li(n,i);l.enqueue(tl(o?u:nl.decode(u),t)),r=0}if(i===0||i>e){l.enqueue(Ks);break}}}})}const Zc=4;function $(e){if(e)return oh(e)}function oh(e){for(var t in $.prototype)e[t]=$.prototype[t];return e}$.prototype.on=$.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},$.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},$.prototype.off=$.prototype.removeListener=$.prototype.removeAllListeners=$.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this},$.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},$.prototype.emitReserved=$.prototype.emit,$.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},$.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ji=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Ae=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())(),sh="arraybuffer";function ng(){}function Gc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const lh=Ae.setTimeout,uh=Ae.clearTimeout;function Ci(e,t){t.useNativeTimers?(e.setTimeoutFn=lh.bind(Ae),e.clearTimeoutFn=uh.bind(Ae)):(e.setTimeoutFn=Ae.setTimeout.bind(Ae),e.clearTimeoutFn=Ae.clearTimeout.bind(Ae))}const ah=1.33;function ch(e){return typeof e=="string"?fh(e):Math.ceil((e.byteLength||e.size)*ah)}function fh(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function $c(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function dh(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function ph(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class hh extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class rl extends ${constructor(t){super(),this.writable=!1,Ci(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new hh(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=tl(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=dh(t);return n.length?"?"+n:""}}class gh extends rl{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};nh(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,th(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=$c()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Jc=!1;try{Jc=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const yh=Jc;function Mh(){}class mh extends gh{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class He extends ${constructor(t,n,r){super(),this.createRequest=t,Ci(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=Gc(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=He.requestsCount++,He.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Mh,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete He.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(He.requestsCount=0,He.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Xc);else if(typeof addEventListener=="function"){const e="onpagehide"in Ae?"pagehide":"unload";addEventListener(e,Xc,!1)}}function Xc(){for(let e in He.requests)He.requests.hasOwnProperty(e)&&He.requests[e].abort()}const xh=function(){const e=Kc({xdomain:!1});return e&&e.responseType!==null}();class wh extends mh{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=xh&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new He(Kc,this.uri(),t)}}function Kc(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||yh))return new XMLHttpRequest}catch{}if(!t)try{return new Ae[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const qc=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class vh extends rl{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=qc?{}:Gc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;qs(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&ji(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=$c()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const il=Ae.WebSocket||Ae.MozWebSocket;class Nh extends vh{createSocket(t,n,r){return qc?new il(t,n,r):n?new il(t,n):new il(t)}doWrite(t,n){this.ws.send(n)}}class Th extends rl{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=ih(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=rh();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:u})=>{l||(this.onPacket(u),o())}).catch(l=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&ji(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Ih={websocket:Nh,webtransport:Th,polling:wh},Dh=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Eh=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ol(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Dh.exec(e||""),o={},s=14;for(;s--;)o[Eh[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Sh(o,o.path),o.queryKey=kh(o,o.query),o}function Sh(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function kh(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const sl=typeof addEventListener=="function"&&typeof removeEventListener=="function",zi=[];sl&&addEventListener("offline",()=>{zi.forEach(e=>e())},!1);class Nt extends ${constructor(t,n){if(super(),this.binaryType=sh,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=ol(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=ol(n.host).host);Ci(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=ph(this.opts.query)),sl&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},zi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Zc,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Nt.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Nt.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=ch(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ji(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Nt.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),sl&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=zi.indexOf(this._offlineEventListener);r!==-1&&zi.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Nt.protocol=Zc;class Ah extends Nt{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Nt.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Nt.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(h(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,h(),n.close(),n=null)}const s=g=>{const p=new Error("probe error: "+g);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function l(){s("transport closed")}function u(){s("socket closed")}function c(g){n&&g.name!==n.name&&o()}const h=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",l),this.off("close",u),this.off("upgrading",c)};n.once("open",i),n.once("error",s),n.once("close",l),this.once("close",u),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let Lh=class extends Ah{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>Ih[i]).filter(i=>!!i)),super(t,r)}};function jh(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=ol(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const Ch=typeof ArrayBuffer=="function",zh=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ef=Object.prototype.toString,Oh=typeof Blob=="function"||typeof Blob<"u"&&ef.call(Blob)==="[object BlobConstructor]",_h=typeof File=="function"||typeof File<"u"&&ef.call(File)==="[object FileConstructor]";function ll(e){return Ch&&(e instanceof ArrayBuffer||zh(e))||Oh&&e instanceof Blob||_h&&e instanceof File}function Oi(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Oi(e[n]))return!0;return!1}if(ll(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Oi(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Oi(e[n]))return!0;return!1}function Uh(e){const t=[],n=e.data,r=e;return r.data=ul(n,t),r.attachments=t.length,{packet:r,buffers:t}}function ul(e,t){if(!e)return e;if(ll(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=ul(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=ul(e[r],t));return n}return e}function Rh(e,t){return e.data=al(e.data,t),delete e.attachments,e}function al(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=al(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=al(e[n],t));return e}const Ph=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Qh=5;var C;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(C||(C={}));class Yh{constructor(t){this.replacer=t}encode(t){return(t.type===C.EVENT||t.type===C.ACK)&&Oi(t)?this.encodeAsBinary({type:t.type===C.EVENT?C.BINARY_EVENT:C.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===C.BINARY_EVENT||t.type===C.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Uh(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function tf(e){return Object.prototype.toString.call(e)==="[object Object]"}class cl extends ${constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===C.BINARY_EVENT;r||n.type===C.BINARY_ACK?(n.type=r?C.EVENT:C.ACK,this.reconstructor=new bh(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ll(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(C[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===C.BINARY_EVENT||r.type===C.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(cl.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case C.CONNECT:return tf(n);case C.DISCONNECT:return n===void 0;case C.CONNECT_ERROR:return typeof n=="string"||tf(n);case C.EVENT:case C.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Ph.indexOf(n[0])===-1);case C.ACK:case C.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class bh{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Rh(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Bh=Object.freeze(Object.defineProperty({__proto__:null,Decoder:cl,Encoder:Yh,get PacketType(){return C},protocol:Qh},Symbol.toStringTag,{value:"Module"}));function Re(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Fh=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class nf extends ${constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Re(t,"open",this.onopen.bind(this)),Re(t,"packet",this.onpacket.bind(this)),Re(t,"error",this.onerror.bind(this)),Re(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(Fh.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:C.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const h=this.ids++,g=n.pop();this._registerAckCallback(h,g),s.id=h}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,u=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(u?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),s=(...l)=>{this.io.clearTimeoutFn(o),n.apply(this,l)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(s,l)=>s?i(s):r(l);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:C.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case C.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case C.EVENT:case C.BINARY_EVENT:this.onevent(t);break;case C.ACK:case C.BINARY_ACK:this.onack(t);break;case C.DISCONNECT:this.ondisconnect();break;case C.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:C.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:C.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function gn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}gn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},gn.prototype.reset=function(){this.attempts=0},gn.prototype.setMin=function(e){this.ms=e},gn.prototype.setMax=function(e){this.max=e},gn.prototype.setJitter=function(e){this.jitter=e};class fl extends ${constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ci(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new gn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||Bh;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Lh(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Re(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},s=Re(n,"error",o);if(this._timeout!==!1){const l=this._timeout,u=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Re(t,"ping",this.onping.bind(this)),Re(t,"data",this.ondata.bind(this)),Re(t,"error",this.onerror.bind(this)),Re(t,"close",this.onclose.bind(this)),Re(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){ji(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new nf(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const lr={};function _i(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=jh(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=lr[i]&&o in lr[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let u;return l?u=new fl(r,t):(lr[i]||(lr[i]=new fl(r,t)),u=lr[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(_i,{Manager:fl,Socket:nf,io:_i,connect:_i});class ur extends Error{}ur.prototype.name="InvalidTokenError";function Vh(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Hh(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Vh(t)}catch{return atob(t)}}function Wh(e,t){if(typeof e!="string")throw new ur("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new ur(`Invalid token specified: missing part #${n+1}`);let i;try{i=Hh(r)}catch(o){throw new ur(`Invalid token specified: invalid base64 for part #${n+1} (${o.message})`)}try{return JSON.parse(i)}catch(o){throw new ur(`Invalid token specified: invalid json for part #${n+1} (${o.message})`)}}let yn=null;const Zh=async e=>{var t,n,r,i,o,s;try{const l=Wh(e);let u=null;const c="https://test-assistant.hichat.com.ar/hi-assistant-test,https://assistant.hichat.com.ar/hi-assistant-prod,https://hichat.com.ar/hichathelpdesk-prod".split(","),h=l.appId||l.appID||l.appid;let g=c[0];if(h==="APP123"?g=c[0]:h==="HICHAT-PROD"&&(g=c[1]),"companyUuId"in l){const p=l.companyUuId,w=`${g}/chat-bubble-config/${p}`;console.log("🌐 Endpoint de configuración:",w);const y=await(await fetch(w,{headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}})).json();try{if(u=(t=y==null?void 0:y.data)==null?void 0:t.socket_url,!u)throw new Error("URL del socket no encontrada en la respuesta.");return{urlSocket:u,autoOpen:(n=y==null?void 0:y.data)==null?void 0:n.auto_open,autoMessage:(r=y==null?void 0:y.data)==null?void 0:r.auto_message,titleSvg:(i=y==null?void 0:y.data)==null?void 0:i.tittle_image,profileSvg:(o=y==null?void 0:y.data)==null?void 0:o.profile_image,floatSvg:(s=y==null?void 0:y.data)==null?void 0:s.float_image}}catch{throw console.error("❌ La respuesta no es JSON válido:",text),new Error("El backend devolvió una respuesta no válida.")}}else throw new Error("Token no válido: no se reconoce ni 'urlSocket' ni 'companyUuId'.")}catch(l){throw console.error("❌ Error al inicializar el socket:",l),l}},Gh=async e=>{try{const t=new URL(e),n=`${t.protocol}//${t.host}${t.pathname.replace(/\/socket\.\w+$/,"")}`,r=t.pathname.match(/\/(socket\.\w+)$/),i=r?`/${r[1]}`:null;if(!i)throw new Error("Path del socket no encontrado o inválido.");yn=_i(n,{path:i,transports:["websocket"],autoConnect:!0,reconnectionAttempts:3,reconnectionDelay:2e3}),yn.on("connect",()=>{console.log("✅ Conectado al servidor con éxito.")}),yn.on("disconnect",o=>{console.log("🔌 Desconectado del servidor:",o)}),yn.on("reconnect_attempt",o=>{console.log(`🔁 Intento de reconexión automática #${o}`)}),yn.on("reconnect",()=>{console.log("🔗 Reconexión automática exitosa al servidor.")}),window.socket=yn}catch(t){throw console.error("❌ Error al inicializar el socket:",t),t}},$h=()=>{const e=localStorage.getItem("conversationId"),t=localStorage.getItem("conversationTimestamp");if(e&&t){const r=parseInt(t,10),i=Date.now(),o=60*60*1e3;if(i-r<o)return e}const n=crypto.randomUUID();return localStorage.setItem("conversationId",n),localStorage.setItem("conversationTimestamp",Date.now().toString()),n},Jh=e=>{localStorage.removeItem("conversationId"),localStorage.removeItem("conversationTimestamp"),console.log("Conversación reiniciada");const t=crypto.randomUUID();return localStorage.setItem("conversationId",t),localStorage.setItem("conversationTimestamp",Date.now().toString()),window.socket&&window.socket.connected&&window.socket.emit("reconnect",{companyToken:e,conversationId:t}),t},Xh=({urlSocket:e,companyToken:t,isChatOpen:n,onMessage:r,onConversation:i})=>{const[o,s]=Q.useState(!1),l=Q.useRef($h()),u=Q.useRef(null),[c,h]=Q.useState(!1);return Q.useEffect(()=>{var f,a,d,M;if(!n||!e)return;const w=v=>{var T;(T=v.message)!=null&&T.includes("autenticación")&&h(!0),r({msg:(v==null?void 0:v.message)||"Ha ocurrido un error inesperado. Inténtelo más tarde."})};try{console.log("📡 Conectando socket..."),Gh(e)}catch(v){console.error("🔴 Error al conectar socket:",v.message),w(v);return}const x=()=>{var v;console.log("✅ Socket conectado."),h(!1),(v=window.socket)!=null&&v.connected&&window.socket.emit("reconnect",{companyToken:t,conversationId:l.current,origin:"web"})},y=v=>{clearTimeout(u.current),u.current=null;const T={msg:v.message,urlImage:v.urlImage||null};r(T)},k=v=>{var E;const T=((E=v==null?void 0:v.conversation)==null?void 0:E.messages)||[];i(T),s(!0)};return(f=window.socket)==null||f.on("connect",x),(a=window.socket)==null||a.on("response",y),(d=window.socket)==null||d.on("conversation",k),(M=window.socket)==null||M.on("error",w),()=>{var v,T,E,S,b;console.log("📴 Desconectando socket..."),s(!1),(v=window.socket)==null||v.off("connect",x),(T=window.socket)==null||T.off("response",y),(E=window.socket)==null||E.off("conversation",k),(S=window.socket)==null||S.off("error",w),(b=window.socket)==null||b.disconnect(),window.socket=null}},[t,n]),{sendMessage:w=>{var x;if(!((x=window.socket)!=null&&x.connected)){r({msg:"No se pudo enviar el mensaje. El socket no está conectado."});return}window.socket.emit("message",{message:w,companyToken:t,conversationId:l.current,origin:"web"}),u.current=setTimeout(()=>{r({msg:"Estamos teniendo dificultades para responder. Por favor, inténtalo más tarde."})},6e4)},resetConversation:()=>{l.current=Jh(t)},idConversation:l.current,hasAuthError:c,isSocketConnected:o}},rf={init:"hola, muy buenas, saludame de la mejor forma, no modifiques tu forma de responder, ignorar el resto del texto -invisible: true",reinit:"quiero que me respondas este mensaje con una bienvenida de vuelta y con un continuamos en donde lo dejamos, no modifiques tu froma de responder, ignorar el resto del texto -invisible: true"},Kh=()=>{const[e,t]=Q.useState(!1),[n,r]=Q.useState([]),{companyToken:i,autoOpen:o,autoMessage:s,urlSocket:l}=Si(),{sendMessage:u,resetConversation:c,hasAuthError:h,isSocketConnected:g}=Xh({companyToken:i,urlSocket:l,isChatOpen:e,onMessage:x=>r(y=>{const k=y[y.length-1];return(k==null?void 0:k.text)===x.msg?y:[...y.filter(f=>!f.loading),{text:x.msg,userType:"assistant",loading:!1,...x.urlImage&&{images:x.urlImage}}]}),onConversation:x=>{const y=x.filter(k=>(k==null?void 0:k.content)&&!/-invisible:\s*true/.test(k==null?void 0:k.content)).map(k=>({userType:k.role,text:k.content}));r(y.slice(1))}});Q.useEffect(()=>{o!=="false"?w():t(!1)},[o]),Q.useEffect(()=>{const x=()=>{const y=n.length;return n[y-1].userType==="assistant"&&!n[y-1].loading&&n[y-2]===void 0||n[y-1].userType==="assistant"&&!n[y-1].loading&&n[y-2].userType==="user"};e&&i&&g&&s!=="false"&&(n.length===0?p(rf.init,!0):x()&&n.length>=1&&p(rf.reinit,!0))},[e,g]);const p=(x,y=!1)=>{r(k=>[...k,...y?[{text:"Cargando...",userType:"assistant",loading:!0}]:[{text:x,userType:"user",loading:!1},{text:"Cargando...",userType:"assistant",loading:!0}]]),u(x)},w=()=>{setTimeout(()=>{t(!0)},7e3)};return N.jsxs(N.Fragment,{children:[!e&&N.jsx(Jp,{onClick:()=>t(!0)}),e&&N.jsx($p,{header:N.jsx(Yp,{closeChat:()=>t(!1),onResetChat:()=>{c(),r([])}}),mainChat:N.jsx(Gp,{messages:n,onSendMessage:p,inputDisabled:h}),footer:N.jsx(Up,{})})]})},rg="",qh=`@import"https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Montserrat:wght@100;300;400;700&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Manrope,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;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}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}body{font-family:Manrope,sans-serif}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-\\[-600px\\]{bottom:-600px}.bottom-\\[86px\\]{bottom:86px}.left-0{left:0}.left-1\\/2{left:50%}.left-\\[1px\\]{left:1px}.left-\\[2px\\]{left:2px}.left-\\[80\\%\\]{left:80%}.left-full{left:100%}.right-0{right:0}.right-16{right:4rem}.right-\\[10px\\]{right:10px}.right-\\[20px\\]{right:20px}.right-\\[50px\\]{right:50px}.right-\\[5px\\]{right:5px}.top-0{top:0}.top-\\[-28px\\]{top:-28px}.top-\\[10px\\]{top:10px}.top-\\[138px\\]{top:138px}.top-\\[1px\\]{top:1px}.top-\\[20px\\]{top:20px}.top-\\[5px\\]{top:5px}.top-\\[75\\%\\]{top:75%}.z-10{z-index:10}.z-\\[1000\\]{z-index:1000}.z-\\[2\\]{z-index:2}.z-\\[9998\\]{z-index:9998}.z-\\[9999\\]{z-index:9999}.m-0{margin:0}.m-\\[12px_auto\\]{margin:12px auto}.m-\\[18px\\]{margin:18px}.mx-\\[18px\\]{margin-left:18px;margin-right:18px}.mb-\\[4px\\]{margin-bottom:4px}.ml-\\[8px\\]{margin-left:8px}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-\\[138px\\]{height:138px}.h-\\[17px\\]{height:17px}.h-\\[187px\\]{height:187px}.h-\\[18px\\]{height:18px}.h-\\[19px\\]{height:19px}.h-\\[24px\\]{height:24px}.h-\\[30px\\]{height:30px}.h-\\[361px\\]{height:361px}.h-\\[40px\\]{height:40px}.h-\\[422px\\]{height:422px}.h-\\[4px\\]{height:4px}.h-\\[50px\\]{height:50px}.h-\\[5px\\]{height:5px}.h-\\[60px\\]{height:60px}.h-\\[78px\\]{height:78px}.h-\\[calc\\(100vh-20px\\)\\]{height:calc(100vh - 20px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[105px\\]{max-height:105px}.max-h-\\[138px\\]{max-height:138px}.max-h-\\[140px\\]{max-height:140px}.max-h-\\[361px\\]{max-height:361px}.max-h-\\[422px\\]{max-height:422px}.max-h-\\[60px\\]{max-height:60px}.max-h-\\[620px\\]{max-height:620px}.max-h-\\[85vh\\]{max-height:85vh}.min-h-\\[61px\\]{min-height:61px}.w-\\[149px\\]{width:149px}.w-\\[150px\\]{width:150px}.w-\\[17px\\]{width:17px}.w-\\[19px\\]{width:19px}.w-\\[22px\\]{width:22px}.w-\\[24px\\]{width:24px}.w-\\[30px\\]{width:30px}.w-\\[50px\\]{width:50px}.w-\\[51px\\]{width:51px}.w-\\[5px\\]{width:5px}.w-\\[78px\\]{width:78px}.w-\\[80px\\]{width:80px}.w-\\[calc\\(100\\%-90px\\)\\]{width:calc(100% - 90px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.max-w-\\[220px\\]{max-width:220px}.max-w-\\[342px\\]{max-width:342px}.max-w-\\[416px\\]{max-width:416px}.max-w-\\[85vw\\]{max-width:85vw}.max-w-full{max-width:100%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-up-all{0%{bottom:-600px;opacity:0}to{bottom:5vh;opacity:1}}.animate-slide-up-all{animation:slide-up-all .4s cubic-bezier(.25,.1,.25,1) forwards}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.gap-\\[15px\\]{gap:15px}.gap-\\[2\\.64px\\]{gap:2.64px}.gap-\\[22px\\]{gap:22px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[16px\\]{border-radius:16px}.rounded-\\[18px\\]{border-radius:18px}.rounded-full{border-radius:9999px}.rounded-t-\\[18px\\]{border-top-left-radius:18px;border-top-right-radius:18px}.rounded-bl-\\[10px\\]{border-bottom-left-radius:10px}.rounded-br-\\[10px\\]{border-bottom-right-radius:10px}.rounded-tl-\\[10px\\]{border-top-left-radius:10px}.rounded-tr-\\[10px\\]{border-top-right-radius:10px}.border{border-width:1px}.border-0{border-width:0px}.border-none{border-style:none}.border-azulChatbot{--tw-border-opacity: 1;border-color:rgb(20 70 255 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.bg-\\[\\#e7e7e7\\]{--tw-bg-opacity: 1;background-color:rgb(231 231 231 / var(--tw-bg-opacity, 1))}.bg-azulChatbot{--tw-bg-opacity: 1;background-color:rgb(20 70 255 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\\/70{background-color:#000000b3}.bg-grayChat{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-grayFooter{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-\\[17px_24px_17px_22px\\]{padding:17px 24px 17px 22px}.p-\\[20px\\]{padding:20px}.p-\\[30px\\]{padding:30px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pt-\\[5px\\]{padding-top:5px}.text-center{text-align:center}.text-start{text-align:start}.font-\\[Manrope\\]{font-family:Manrope}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.text-\\[20\\.23px\\]{font-size:20.23px}.text-\\[20px\\]{font-size:20px}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\\[100\\%\\]{line-height:100%}.leading-\\[111\\%\\]{line-height:111%}.leading-\\[20px\\]{line-height:20px}.leading-\\[22px\\]{line-height:22px}.leading-normal{line-height:1.5}.tracking-\\[0\\.2px\\]{letter-spacing:.2px}.text-\\[\\#FAFAFA\\]{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-\\[\\#bdbdbd\\]{--tw-text-opacity: 1;color:rgb(189 189 189 / var(--tw-text-opacity, 1))}.text-azulChatbot{--tw-text-opacity: 1;color:rgb(20 70 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blackAyelen{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-gray3{--tw-text-opacity: 1;color:rgb(130 130 130 / var(--tw-text-opacity, 1))}.text-grayFooter{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_2px_2px_0px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow: 0px 2px 2px 0px rgba(0,0,0,.1);--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[1px_3px_20px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 1px 3px 20px rgba(0,0,0,.2);--tw-shadow-colored: 1px 3px 20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[2px_3px_22px_rgba\\(255\\,255\\,255\\,0\\.2\\)\\]{--tw-shadow: 2px 3px 22px rgba(255,255,255,.2);--tw-shadow-colored: 2px 3px 22px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[8px_0_\\#1446ff\\,-8px_0_\\#1446ff\\]{--tw-shadow: 8px 0 #1446ff,-8px 0 #1446ff;--tw-shadow-colored: 8px 0 var(--tw-shadow-color), -8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-questionMark{--tw-shadow: 1px 3px 6px 0px rgba(0, 0, 0, .2);--tw-shadow-colored: 1px 3px 6px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:opacity-100:hover{opacity:1}.focus\\:border-azulChatbot:focus{--tw-border-opacity: 1;border-color:rgb(20 70 255 / var(--tw-border-opacity, 1))}@media (max-width: 1370px){@keyframes slide-up-xl{0%{bottom:-600px;opacity:0}to{bottom:3.2vh;opacity:1}0%{bottom:-600px;opacity:0}to{bottom:3.2vh;opacity:1}}.max-\\[1370px\\]\\:animate-slide-up-xl{animation:slide-up-xl .4s cubic-bezier(.25,.1,.25,1) forwards}}@media not all and (min-width: 640px){.max-sm\\:bottom-\\[74px\\]{bottom:74px}.max-sm\\:right-0{right:0}.max-sm\\:right-4{right:1rem}.max-sm\\:rounded-\\[8px\\]{border-radius:8px}.max-sm\\:px-\\[10px\\]{padding-left:10px;padding-right:10px}}
51
- `;(()=>{if(!document.querySelector("link[href*='fonts.googleapis.com/css2?family=Montserrat']")){const t=document.createElement("link");t.rel="stylesheet",t.href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&family=Manrope:wght@400;500;600;700&display=swap",document.head.appendChild(t),console.log("✅ Google Fonts inyectadas en <head>")}})();class eg extends HTMLElement{async connectedCallback(){const t=this.attachShadow({mode:"open"}),n=document.createElement("style");n.textContent=qh,t.appendChild(n);const r=document.createElement("div");t.appendChild(r);const i=this.getAttribute("companytoken")||"",s={...await Zh(i),companyToken:i,backOfficeBubble:this.getAttribute("backOfficeBubble")||""};Fi.createRoot(r).render(N.jsx(Nf.StrictMode,{children:N.jsx(Rc.Provider,{value:s,children:N.jsx(Kh,{})})}))}}customElements.define("hifenix-chatbot",eg)})();
50
+ ease-in-out select-none rigth-12`,style:{backgroundColor:r,...l},onClick:e,children:I.jsx("img",{src:o,alt:"Abrir chat",className:"w-[30px] h-[24px]"})})},Ve=Object.create(null);Ve.open="0",Ve.close="1",Ve.ping="2",Ve.pong="3",Ve.message="4",Ve.upgrade="5",Ve.noop="6";const Ai=Object.create(null);Object.keys(Ve).forEach(e=>{Ai[Ve[e]]=e});const qs={type:"error",data:"parser error"},bc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Yc=typeof ArrayBuffer=="function",Bc=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,el=({type:e,data:t},n,r)=>bc&&t instanceof Blob?n?r(t):Fc(t,r):Yc&&(t instanceof ArrayBuffer||Bc(t))?n?r(t):Fc(new Blob([t]),r):r(Ve[e]+(t||"")),Fc=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Vc(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let tl;function nh(e,t){if(bc&&e.data instanceof Blob)return e.data.arrayBuffer().then(Vc).then(t);if(Yc&&(e.data instanceof ArrayBuffer||Bc(e.data)))return t(Vc(e.data));el(e,!1,n=>{tl||(tl=new TextEncoder),t(tl.encode(n))})}const Hc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Hc.length;e++)lr[Hc.charCodeAt(e)]=e;const rh=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,l,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),g=new Uint8Array(c);for(r=0;r<n;r+=4)o=lr[e.charCodeAt(r)],s=lr[e.charCodeAt(r+1)],l=lr[e.charCodeAt(r+2)],u=lr[e.charCodeAt(r+3)],g[i++]=o<<2|s>>4,g[i++]=(s&15)<<4|l>>2,g[i++]=(l&3)<<6|u&63;return c},ih=typeof ArrayBuffer=="function",nl=(e,t)=>{if(typeof e!="string")return{type:"message",data:Wc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:oh(e.substring(1),t)}:Ai[n]?e.length>1?{type:Ai[n],data:e.substring(1)}:{type:Ai[n]}:qs},oh=(e,t)=>{if(ih){const n=rh(e);return Wc(n,t)}else return{base64:!0,data:e}},Wc=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Zc=String.fromCharCode(30),sh=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{el(o,!1,l=>{r[s]=l,++i===n&&t(r.join(Zc))})})},lh=(e,t)=>{const n=e.split(Zc),r=[];for(let i=0;i<n.length;i++){const o=nl(n[i],t);if(r.push(o),o.type==="error")break}return r};function uh(){return new TransformStream({transform(e,t){nh(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let rl;function ji(e){return e.reduce((t,n)=>t+n.length,0)}function zi(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ah(e,t){rl||(rl=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,l){for(n.push(s);;){if(r===0){if(ji(n)<1)break;const u=zi(n,1);o=(u[0]&128)===128,i=u[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(ji(n)<2)break;const u=zi(n,2);i=new DataView(u.buffer,u.byteOffset,u.length).getUint16(0),r=3}else if(r===2){if(ji(n)<8)break;const u=zi(n,8),c=new DataView(u.buffer,u.byteOffset,u.length),g=c.getUint32(0);if(g>Math.pow(2,53-32)-1){l.enqueue(qs);break}i=g*Math.pow(2,32)+c.getUint32(4),r=3}else{if(ji(n)<i)break;const u=zi(n,i);l.enqueue(nl(o?u:rl.decode(u),t)),r=0}if(i===0||i>e){l.enqueue(qs);break}}}})}const Gc=4;function $(e){if(e)return ch(e)}function ch(e){for(var t in $.prototype)e[t]=$.prototype[t];return e}$.prototype.on=$.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},$.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},$.prototype.off=$.prototype.removeListener=$.prototype.removeAllListeners=$.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this},$.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},$.prototype.emitReserved=$.prototype.emit,$.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},$.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Ci=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Ae=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())(),dh="arraybuffer";function og(){}function $c(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const fh=Ae.setTimeout,ph=Ae.clearTimeout;function Li(e,t){t.useNativeTimers?(e.setTimeoutFn=fh.bind(Ae),e.clearTimeoutFn=ph.bind(Ae)):(e.setTimeoutFn=Ae.setTimeout.bind(Ae),e.clearTimeoutFn=Ae.clearTimeout.bind(Ae))}const hh=1.33;function gh(e){return typeof e=="string"?yh(e):Math.ceil((e.byteLength||e.size)*hh)}function yh(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Jc(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Mh(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function mh(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class xh extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class il extends ${constructor(t){super(),this.writable=!1,Li(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new xh(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=nl(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=Mh(t);return n.length?"?"+n:""}}class wh extends il{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};lh(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,sh(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Jc()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Xc=!1;try{Xc=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ih=Xc;function Nh(){}class vh extends wh{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class He extends ${constructor(t,n,r){super(),this.createRequest=t,Li(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=$c(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=He.requestsCount++,He.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Nh,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete He.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(He.requestsCount=0,He.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Kc);else if(typeof addEventListener=="function"){const e="onpagehide"in Ae?"pagehide":"unload";addEventListener(e,Kc,!1)}}function Kc(){for(let e in He.requests)He.requests.hasOwnProperty(e)&&He.requests[e].abort()}const Th=function(){const e=qc({xdomain:!1});return e&&e.responseType!==null}();class Dh extends vh{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=Th&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new He(qc,this.uri(),t)}}function qc(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Ih))return new XMLHttpRequest}catch{}if(!t)try{return new Ae[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ed=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Eh extends il{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=ed?{}:$c(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;el(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&Ci(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Jc()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const ol=Ae.WebSocket||Ae.MozWebSocket;class Sh extends Eh{createSocket(t,n,r){return ed?new ol(t,n,r):n?new ol(t,n):new ol(t)}doWrite(t,n){this.ws.send(n)}}class kh extends il{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=ah(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=uh();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:u})=>{l||(this.onPacket(u),o())}).catch(l=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&Ci(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Ah={websocket:Sh,webtransport:kh,polling:Dh},jh=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,zh=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function sl(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=jh.exec(e||""),o={},s=14;for(;s--;)o[zh[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Ch(o,o.path),o.queryKey=Lh(o,o.query),o}function Ch(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Lh(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const ll=typeof addEventListener=="function"&&typeof removeEventListener=="function",Oi=[];ll&&addEventListener("offline",()=>{Oi.forEach(e=>e())},!1);class Nt extends ${constructor(t,n){if(super(),this.binaryType=dh,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=sl(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=sl(n.host).host);Li(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=mh(this.opts.query)),ll&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Oi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Gc,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Nt.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",Nt.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=gh(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Ci(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(Nt.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ll&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Oi.indexOf(this._offlineEventListener);r!==-1&&Oi.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Nt.protocol=Gc;class Oh extends Nt{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Nt.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Nt.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(g(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,g(),n.close(),n=null)}const s=h=>{const p=new Error("probe error: "+h);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function l(){s("transport closed")}function u(){s("socket closed")}function c(h){n&&h.name!==n.name&&o()}const g=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",l),this.off("close",u),this.off("upgrading",c)};n.once("open",i),n.once("error",s),n.once("close",l),this.once("close",u),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let _h=class extends Oh{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>Ah[i]).filter(i=>!!i)),super(t,r)}};function Uh(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=sl(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const Qh=typeof ArrayBuffer=="function",Ph=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,td=Object.prototype.toString,Rh=typeof Blob=="function"||typeof Blob<"u"&&td.call(Blob)==="[object BlobConstructor]",bh=typeof File=="function"||typeof File<"u"&&td.call(File)==="[object FileConstructor]";function ul(e){return Qh&&(e instanceof ArrayBuffer||Ph(e))||Rh&&e instanceof Blob||bh&&e instanceof File}function _i(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(_i(e[n]))return!0;return!1}if(ul(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return _i(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&_i(e[n]))return!0;return!1}function Yh(e){const t=[],n=e.data,r=e;return r.data=al(n,t),r.attachments=t.length,{packet:r,buffers:t}}function al(e,t){if(!e)return e;if(ul(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=al(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=al(e[r],t));return n}return e}function Bh(e,t){return e.data=cl(e.data,t),delete e.attachments,e}function cl(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=cl(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=cl(e[n],t));return e}const Fh=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Vh=5;var L;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(L||(L={}));class Hh{constructor(t){this.replacer=t}encode(t){return(t.type===L.EVENT||t.type===L.ACK)&&_i(t)?this.encodeAsBinary({type:t.type===L.EVENT?L.BINARY_EVENT:L.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===L.BINARY_EVENT||t.type===L.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Yh(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function nd(e){return Object.prototype.toString.call(e)==="[object Object]"}class dl extends ${constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===L.BINARY_EVENT;r||n.type===L.BINARY_ACK?(n.type=r?L.EVENT:L.ACK,this.reconstructor=new Wh(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(ul(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(L[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===L.BINARY_EVENT||r.type===L.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(dl.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case L.CONNECT:return nd(n);case L.DISCONNECT:return n===void 0;case L.CONNECT_ERROR:return typeof n=="string"||nd(n);case L.EVENT:case L.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Fh.indexOf(n[0])===-1);case L.ACK:case L.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Wh{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Bh(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Zh=Object.freeze(Object.defineProperty({__proto__:null,Decoder:dl,Encoder:Hh,get PacketType(){return L},protocol:Vh},Symbol.toStringTag,{value:"Module"}));function Qe(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Gh=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class rd extends ${constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Qe(t,"open",this.onopen.bind(this)),Qe(t,"packet",this.onpacket.bind(this)),Qe(t,"error",this.onerror.bind(this)),Qe(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(Gh.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:L.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const g=this.ids++,h=n.pop();this._registerAckCallback(g,h),s.id=g}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,u=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(u?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),s=(...l)=>{this.io.clearTimeoutFn(o),n.apply(this,l)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(s,l)=>s?i(s):r(l);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:L.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case L.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case L.EVENT:case L.BINARY_EVENT:this.onevent(t);break;case L.ACK:case L.BINARY_ACK:this.onack(t);break;case L.DISCONNECT:this.ondisconnect();break;case L.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:L.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:L.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function yn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}yn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},yn.prototype.reset=function(){this.attempts=0},yn.prototype.setMin=function(e){this.ms=e},yn.prototype.setMax=function(e){this.max=e},yn.prototype.setJitter=function(e){this.jitter=e};class fl extends ${constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Li(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new yn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||Zh;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new _h(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Qe(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},s=Qe(n,"error",o);if(this._timeout!==!1){const l=this._timeout,u=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&u.unref(),this.subs.push(()=>{this.clearTimeoutFn(u)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Qe(t,"ping",this.onping.bind(this)),Qe(t,"data",this.ondata.bind(this)),Qe(t,"error",this.onerror.bind(this)),Qe(t,"close",this.onclose.bind(this)),Qe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ci(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new rd(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ur={};function Ui(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Uh(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=ur[i]&&o in ur[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let u;return l?u=new fl(r,t):(ur[i]||(ur[i]=new fl(r,t)),u=ur[i]),n.query&&!t.query&&(t.query=n.queryKey),u.socket(n.path,t)}Object.assign(Ui,{Manager:fl,Socket:rd,io:Ui,connect:Ui});class ar extends Error{}ar.prototype.name="InvalidTokenError";function $h(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Jh(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return $h(t)}catch{return atob(t)}}function Xh(e,t){if(typeof e!="string")throw new ar("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new ar(`Invalid token specified: missing part #${n+1}`);let i;try{i=Jh(r)}catch(o){throw new ar(`Invalid token specified: invalid base64 for part #${n+1} (${o.message})`)}try{return JSON.parse(i)}catch(o){throw new ar(`Invalid token specified: invalid json for part #${n+1} (${o.message})`)}}let Mn=null;const id=async e=>{var t,n,r,i,o,s,l,u,c,g,h;try{const p=Xh(e);let M=null;const w="https://test-assistant.hichat.com.ar/hi-assistant-test,https://assistant.hichat.com.ar/hi-assistant-prod,https://hichat.com.ar/hichathelpdesk-prod".split(","),x=p.appId||p.appID||p.appid;let k=w[0];if(x==="APP123"?k=w[0]:x==="HICHAT-PROD"&&(k=w[1]),"companyUuId"in p){const d=p.companyUuId,a=`${k}/chat-bubble-config/${d}`;console.log("🌐 Endpoint de configuración:",a);const y=await(await fetch(a,{headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}})).json();try{if(M=(t=y==null?void 0:y.data)==null?void 0:t.socket_url,!M)throw new Error("URL del socket no encontrada en la respuesta.");return{urlSocket:M,autoOpen:(n=y==null?void 0:y.data)==null?void 0:n.auto_open,autoMessage:(r=y==null?void 0:y.data)==null?void 0:r.auto_message,titleSvg:(i=y==null?void 0:y.data)==null?void 0:i.tittle_image,profileSvg:(o=y==null?void 0:y.data)==null?void 0:o.profile_image,floatSvg:(s=y==null?void 0:y.data)==null?void 0:s.float_image,titleOne:(l=y==null?void 0:y.data)==null?void 0:l.titleOne,titleTwo:(u=y==null?void 0:y.data)==null?void 0:u.titleTwo,isBoldTitleOne:(c=y==null?void 0:y.data)==null?void 0:c.isBoldTitleOne,isBoldTitleTwo:(g=y==null?void 0:y.data)==null?void 0:g.isBoldTitleTwo,colorBubble:(h=y==null?void 0:y.data)==null?void 0:h.colorBubble}}catch{throw console.error("❌ La respuesta no es JSON válido:",text),new Error("El backend devolvió una respuesta no válida.")}}else throw new Error("Token no válido: no se reconoce ni 'urlSocket' ni 'companyUuId'.")}catch(p){throw console.error("❌ Error al inicializar el socket:",p),p}},Kh=async e=>{try{const t=new URL(e),n=`${t.protocol}//${t.host}${t.pathname.replace(/\/socket\.\w+$/,"")}`,r=t.pathname.match(/\/(socket\.\w+)$/),i=r?`/${r[1]}`:null;if(!i)throw new Error("Path del socket no encontrado o inválido.");Mn=Ui(n,{path:i,transports:["websocket"],autoConnect:!0,reconnectionAttempts:3,reconnectionDelay:2e3}),Mn.on("connect",()=>{console.log("✅ Conectado al servidor con éxito.")}),Mn.on("disconnect",o=>{console.log("🔌 Desconectado del servidor:",o)}),Mn.on("reconnect_attempt",o=>{console.log(`🔁 Intento de reconexión automática #${o}`)}),Mn.on("reconnect",()=>{console.log("🔗 Reconexión automática exitosa al servidor.")}),window.socket=Mn}catch(t){throw console.error("❌ Error al inicializar el socket:",t),t}},qh=(e="conversationId")=>{const t=e==="conversationId"?"conversationTimestamp":"conversationTimestampBackoffice",n=localStorage.getItem(e),r=localStorage.getItem(t);if(n&&r){const o=parseInt(r,10),s=Date.now(),l=60*60*1e3;if(s-o<l)return n}const i=crypto.randomUUID();return localStorage.setItem(e,i),localStorage.setItem(t,Date.now().toString()),i},eg=(e,t=!1)=>{const n=t?"conversationIdBackoffice":"conversationId",r=t?"conversationTimestampBackoffice":"conversationTimestamp";localStorage.removeItem(n),localStorage.removeItem(r),console.log(`Conversación reiniciada (${t?"backoffice":"normal"})`);const i=crypto.randomUUID();return localStorage.setItem(n,i),localStorage.setItem(r,Date.now().toString()),window.socket&&window.socket.connected&&window.socket.emit("reconnect",{companyToken:e,conversationId:i}),i},tg=({urlSocket:e,companyToken:t,isChatOpen:n,onMessage:r,onConversation:i,backOfficeBubble:o})=>{const[s,l]=R.useState(!1),u=R.useRef(qh(o==="true"?"conversationIdBackoffice":"conversationId")),c=R.useRef(null),[g,h]=R.useState(!1);return R.useEffect(()=>{var a,f,y,v;if(!n||!e)return;const w=N=>{var T;(T=N.message)!=null&&T.includes("autenticación")&&h(!0),r({msg:(N==null?void 0:N.message)||"Ha ocurrido un error inesperado. Inténtelo más tarde."})};try{console.log("📡 Conectando socket..."),Kh(e)}catch(N){console.error("🔴 Error al conectar socket:",N.message),w(N);return}const x=()=>{var N;console.log("✅ Socket conectado."),h(!1),(N=window.socket)!=null&&N.connected&&window.socket.emit("reconnect",{companyToken:t,conversationId:u.current,origin:"web"})},k=N=>{clearTimeout(c.current),c.current=null;const T={msg:N.message,urlImage:N.urlImage||null};r(T)},d=N=>{var S;const T=((S=N==null?void 0:N.conversation)==null?void 0:S.messages)||[];i(T),l(!0)};return(a=window.socket)==null||a.on("connect",x),(f=window.socket)==null||f.on("response",k),(y=window.socket)==null||y.on("conversation",d),(v=window.socket)==null||v.on("error",w),()=>{var N,T,S,Y,j;console.log("📴 Desconectando socket..."),l(!1),(N=window.socket)==null||N.off("connect",x),(T=window.socket)==null||T.off("response",k),(S=window.socket)==null||S.off("conversation",d),(Y=window.socket)==null||Y.off("error",w),(j=window.socket)==null||j.disconnect(),window.socket=null}},[t,n]),{sendMessage:w=>{var x;if(!((x=window.socket)!=null&&x.connected)){r({msg:"No se pudo enviar el mensaje. El socket no está conectado."});return}window.socket.emit("message",{message:w,companyToken:t,conversationId:u.current,origin:"web"}),c.current=setTimeout(()=>{r({msg:"Estamos teniendo dificultades para responder. Por favor, inténtalo más tarde."})},6e4)},resetConversation:()=>{u.current=eg(t,o==="true")},idConversation:u.current,hasAuthError:g,isSocketConnected:s}},od={init:"hola, muy buenas, saludame de la mejor forma, no modifiques tu forma de responder, ignorar el resto del texto -invisible: true",reinit:"quiero que me respondas este mensaje con una bienvenida de vuelta y con un continuamos en donde lo dejamos, no modifiques tu froma de responder, ignorar el resto del texto -invisible: true"},sd=()=>{const[e,t]=R.useState(!1),[n,r]=R.useState([]),{companyToken:i,autoOpen:o,autoMessage:s,urlSocket:l,backOfficeBubble:u}=Qt(),{sendMessage:c,resetConversation:g,hasAuthError:h,isSocketConnected:p}=tg({companyToken:i,urlSocket:l,isChatOpen:e,backOfficeBubble:u,onMessage:x=>r(k=>{const d=k[k.length-1];return(d==null?void 0:d.text)===x.msg?k:[...k.filter(a=>!a.loading),{text:x.msg,userType:"assistant",loading:!1,...x.urlImage&&{images:x.urlImage}}]}),onConversation:x=>{const k=x.filter(d=>(d==null?void 0:d.content)&&!/-invisible:\s*true/.test(d==null?void 0:d.content)).map(d=>({userType:d.role,text:d.content}));r(k.slice(1))}});R.useEffect(()=>{o!=="false"?w():t(!1)},[o]),R.useEffect(()=>{const x=()=>{const k=n.length;return n[k-1].userType==="assistant"&&!n[k-1].loading&&n[k-2]===void 0||n[k-1].userType==="assistant"&&!n[k-1].loading&&n[k-2].userType==="user"};e&&i&&p&&s!=="false"&&(n.length===0?M(od.init,!0):x()&&n.length>=1&&M(od.reinit,!0))},[e,p]);const M=(x,k=!1)=>{r(d=>[...d,...k?[{text:"Cargando...",userType:"assistant",loading:!0}]:[{text:x,userType:"user",loading:!1},{text:"Cargando...",userType:"assistant",loading:!0}]]),c(x)},w=()=>{setTimeout(()=>{t(!0)},7e3)};return I.jsxs(I.Fragment,{children:[!e&&I.jsx(th,{onClick:()=>t(!0)}),e&&I.jsx(eh,{header:I.jsx(Hp,{closeChat:()=>t(!1),onResetChat:()=>{g(),r([])}}),mainChat:I.jsx(qp,{messages:n,onSendMessage:M,inputDisabled:h}),footer:I.jsx(Rp,{})})]})},sg="",ld=`@import"https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Montserrat:wght@100;300;400;700&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Manrope,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;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}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}body{font-family:Manrope,sans-serif}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-\\[-600px\\]{bottom:-600px}.bottom-\\[86px\\]{bottom:86px}.left-0{left:0}.left-1\\/2{left:50%}.left-\\[1px\\]{left:1px}.left-\\[2px\\]{left:2px}.left-full{left:100%}.right-0{right:0}.right-16{right:4rem}.right-\\[10px\\]{right:10px}.right-\\[20px\\]{right:20px}.right-\\[50px\\]{right:50px}.right-\\[5px\\]{right:5px}.top-0{top:0}.top-\\[-28px\\]{top:-28px}.top-\\[10px\\]{top:10px}.top-\\[138px\\]{top:138px}.top-\\[1px\\]{top:1px}.top-\\[20px\\]{top:20px}.top-\\[5px\\]{top:5px}.z-10{z-index:10}.z-\\[1000\\]{z-index:1000}.z-\\[2\\]{z-index:2}.z-\\[9998\\]{z-index:9998}.z-\\[9999\\]{z-index:9999}.m-0{margin:0}.m-\\[12px_auto\\]{margin:12px auto}.m-\\[18px\\]{margin:18px}.mx-\\[18px\\]{margin-left:18px;margin-right:18px}.mb-\\[4px\\]{margin-bottom:4px}.ml-\\[8px\\]{margin-left:8px}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-\\[138px\\]{height:138px}.h-\\[17px\\]{height:17px}.h-\\[187px\\]{height:187px}.h-\\[18px\\]{height:18px}.h-\\[19px\\]{height:19px}.h-\\[24px\\]{height:24px}.h-\\[30px\\]{height:30px}.h-\\[361px\\]{height:361px}.h-\\[40px\\]{height:40px}.h-\\[422px\\]{height:422px}.h-\\[4px\\]{height:4px}.h-\\[50px\\]{height:50px}.h-\\[5px\\]{height:5px}.h-\\[60px\\]{height:60px}.h-\\[78px\\]{height:78px}.h-\\[calc\\(100vh-20px\\)\\]{height:calc(100vh - 20px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[100px\\]{max-height:100px}.max-h-\\[105px\\]{max-height:105px}.max-h-\\[138px\\]{max-height:138px}.max-h-\\[140px\\]{max-height:140px}.max-h-\\[361px\\]{max-height:361px}.max-h-\\[422px\\]{max-height:422px}.max-h-\\[60px\\]{max-height:60px}.max-h-\\[620px\\]{max-height:620px}.max-h-\\[85vh\\]{max-height:85vh}.min-h-\\[61px\\]{min-height:61px}.w-\\[149px\\]{width:149px}.w-\\[150px\\]{width:150px}.w-\\[17px\\]{width:17px}.w-\\[19px\\]{width:19px}.w-\\[22px\\]{width:22px}.w-\\[24px\\]{width:24px}.w-\\[30px\\]{width:30px}.w-\\[50px\\]{width:50px}.w-\\[51px\\]{width:51px}.w-\\[5px\\]{width:5px}.w-\\[78px\\]{width:78px}.w-\\[80px\\]{width:80px}.w-\\[calc\\(100\\%-90px\\)\\]{width:calc(100% - 90px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.max-w-\\[220px\\]{max-width:220px}.max-w-\\[342px\\]{max-width:342px}.max-w-\\[416px\\]{max-width:416px}.max-w-\\[85vw\\]{max-width:85vw}.max-w-full{max-width:100%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-up-all{0%{bottom:-600px;opacity:0}to{bottom:5vh;opacity:1}}.animate-slide-up-all{animation:slide-up-all .4s cubic-bezier(.25,.1,.25,1) forwards}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-evenly{justify-content:space-evenly}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.gap-\\[15px\\]{gap:15px}.gap-\\[2\\.64px\\]{gap:2.64px}.gap-\\[22px\\]{gap:22px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[16px\\]{border-radius:16px}.rounded-\\[18px\\]{border-radius:18px}.rounded-full{border-radius:9999px}.rounded-t-\\[18px\\]{border-top-left-radius:18px;border-top-right-radius:18px}.rounded-bl-\\[10px\\]{border-bottom-left-radius:10px}.rounded-br-\\[10px\\]{border-bottom-right-radius:10px}.rounded-tl-\\[10px\\]{border-top-left-radius:10px}.rounded-tr-\\[10px\\]{border-top-right-radius:10px}.border{border-width:1px}.border-0{border-width:0px}.border-none{border-style:none}.border-azulChatbot{--tw-border-opacity: 1;border-color:rgb(20 70 255 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.bg-\\[\\#e7e7e7\\]{--tw-bg-opacity: 1;background-color:rgb(231 231 231 / var(--tw-bg-opacity, 1))}.bg-azulChatbot{--tw-bg-opacity: 1;background-color:rgb(20 70 255 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\\/70{background-color:#000000b3}.bg-grayChat{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-grayFooter{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-\\[17px_24px_17px_22px\\]{padding:17px 24px 17px 22px}.p-\\[20px\\]{padding:20px}.p-\\[30px\\]{padding:30px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pt-\\[5px\\]{padding-top:5px}.text-center{text-align:center}.text-start{text-align:start}.font-\\[Manrope\\]{font-family:Manrope}.text-\\[14px\\]{font-size:14px}.text-\\[16px\\]{font-size:16px}.text-\\[18px\\]{font-size:18px}.text-\\[20px\\]{font-size:20px}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.not-italic{font-style:normal}.leading-\\[100\\%\\]{line-height:100%}.leading-\\[111\\%\\]{line-height:111%}.leading-\\[20px\\]{line-height:20px}.leading-\\[22px\\]{line-height:22px}.leading-normal{line-height:1.5}.tracking-\\[0\\.2px\\]{letter-spacing:.2px}.text-\\[\\#FAFAFA\\]{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-\\[\\#bdbdbd\\]{--tw-text-opacity: 1;color:rgb(189 189 189 / var(--tw-text-opacity, 1))}.text-azulChatbot{--tw-text-opacity: 1;color:rgb(20 70 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blackAyelen{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity, 1))}.text-gray3{--tw-text-opacity: 1;color:rgb(130 130 130 / var(--tw-text-opacity, 1))}.text-grayFooter{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_2px_2px_0px_rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{--tw-shadow: 0px 2px 2px 0px rgba(0,0,0,.1);--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[1px_3px_20px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 1px 3px 20px rgba(0,0,0,.2);--tw-shadow-colored: 1px 3px 20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[2px_3px_22px_rgba\\(255\\,255\\,255\\,0\\.2\\)\\]{--tw-shadow: 2px 3px 22px rgba(255,255,255,.2);--tw-shadow-colored: 2px 3px 22px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[8px_0_var\\(--bubble-color\\)\\,-8px_0_var\\(--bubble-color\\)\\]{--tw-shadow: 8px 0 var(--bubble-color),-8px 0 var(--bubble-color);--tw-shadow-colored: 8px 0 var(--tw-shadow-color), -8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-questionMark{--tw-shadow: 1px 3px 6px 0px rgba(0, 0, 0, .2);--tw-shadow-colored: 1px 3px 6px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:opacity-100:hover{opacity:1}.focus\\:border-azulChatbot:focus{--tw-border-opacity: 1;border-color:rgb(20 70 255 / var(--tw-border-opacity, 1))}@media (max-width: 1370px){@keyframes slide-up-xl{0%{bottom:-600px;opacity:0}to{bottom:3.2vh;opacity:1}0%{bottom:-600px;opacity:0}to{bottom:3.2vh;opacity:1}}.max-\\[1370px\\]\\:animate-slide-up-xl{animation:slide-up-xl .4s cubic-bezier(.25,.1,.25,1) forwards}}@media not all and (min-width: 640px){.max-sm\\:bottom-\\[74px\\]{bottom:74px}.max-sm\\:right-0{right:0}.max-sm\\:right-4{right:1rem}.max-sm\\:rounded-\\[8px\\]{border-radius:8px}.max-sm\\:px-\\[10px\\]{padding-left:10px;padding-right:10px}}
51
+ `;(()=>{if(!document.querySelector("link[href*='fonts.googleapis.com/css2?family=Montserrat']")){const t=document.createElement("link");t.rel="stylesheet",t.href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&family=Manrope:wght@400;500;600;700&display=swap",document.head.appendChild(t),console.log("✅ Google Fonts inyectadas en <head>")}})();class ng extends HTMLElement{async connectedCallback(){console.log("Connected:",this.tagName);const t=this.attachShadow({mode:"open"}),n=document.createElement("style");n.textContent=ld,t.appendChild(n);const r=document.createElement("div");t.appendChild(r);const i=this.getAttribute("companytoken")||"",s={...await id(i),companyToken:i,backOfficeBubble:this.getAttribute("backOfficeBubble")||""};yr.createRoot(r).render(I.jsx(Al.StrictMode,{children:I.jsx(Ks.Provider,{value:s,children:I.jsx(sd,{})})}))}}class rg extends HTMLElement{async connectedCallback(){console.log("Connected Backoffice:",this.tagName);const t=this.attachShadow({mode:"open"}),n=document.createElement("style");n.textContent=ld,t.appendChild(n);const r=document.createElement("div");t.appendChild(r);const i=this.getAttribute("companytoken")||"",s={...await id(i),companyToken:i,backOfficeBubble:"true"};yr.createRoot(r).render(I.jsx(Al.StrictMode,{children:I.jsx(Ks.Provider,{value:s,children:I.jsx(sd,{})})}))}}customElements.define("hifenix-chatbot",ng),customElements.define("hifenix-chatbot-backoffice",rg)})();