import{C as sr,j as H,_ as Hu,r as Or,a as or,b as dr,c as rr,d as mr,e as hr,P as nt,f as sf,I as hl,A as oh,m as of,w as dh,L as rh}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b710.js";import{g as mh}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b7.js";import{r as hh,a as W}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b74.js";import{a as vh}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b75.js";import{u as yh,F as gh,o as bh,a as Sh}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b79.js";import{y as pf,z as Ef,A as ph,B as Yt,C as Eh,D as Ah,E as zh,F as Mh,G as vr,H as Th,J as bf,K as df,L as xr,M as Ur,N as Dh,O as yr,P as _h,Q as Oh,R as xh,T as Uh,U as Hh,V as Nh,W as gr,X as br,Y as Sr,Z as Rh,_ as Ch,$ as pr,a0 as Er,a1 as qh,a2 as Bh,a3 as jh,a4 as Yh,a5 as Gh,a6 as Xh,a7 as Qh,a8 as Lh,a9 as Zh,aa as Vh,ab as wh,ac as Kh,s as Jh,o as kh,ad as Wh,ae as $h,af as Fh,ag as Ph,ah as Ih}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b723.js";import{M as tv}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b745.js";import{u as La}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b719.js";import{c as xe}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b77.js";import{W as Uu,V as Sf}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b718.js";import{X as Hr}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b78.js";import{a as lv}from"./v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b76.js";var rf={exports:{}},Ou={},mf={exports:{}},hf={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ar;function av(){return Ar||(Ar=1,(function(f){function y(_,G){var j=_.length;_.push(G);t:for(;0<j;){var et=j-1>>>1,mt=_[et];if(0<g(mt,G))_[et]=G,_[j]=mt,j=et;else break t}}function d(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var G=_[0],j=_.pop();if(j!==G){_[0]=j;t:for(var et=0,mt=_.length,wa=mt>>>1;et<wa;){var Sa=2*(et+1)-1,Tl=_[Sa],K=Sa+1,kt=_[K];if(0>g(Tl,j))K<mt&&0>g(kt,Tl)?(_[et]=kt,_[K]=j,et=K):(_[et]=Tl,_[Sa]=j,et=Sa);else if(K<mt&&0>g(kt,j))_[et]=kt,_[K]=j,et=K;else break t}}return G}function g(_,G){var j=_.sortIndex-G.sortIndex;return j!==0?j:_.id-G.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;f.unstable_now=function(){return S.now()}}else{var D=Date,M=D.now();f.unstable_now=function(){return D.now()-M}}var N=[],T=[],R=1,F=null,L=3,q=!1,rt=!1,xt=!1,Gt=typeof setTimeout=="function"?setTimeout:null,Nt=typeof clearTimeout=="function"?clearTimeout:null,vt=typeof setImmediate<"u"?setImmediate:null;function Xt(_){for(var G=d(T);G!==null;){if(G.callback===null)o(T);else if(G.startTime<=_)o(T),G.sortIndex=G.expirationTime,y(N,G);else break;G=d(T)}}function cl(_){if(xt=!1,Xt(_),!rt)if(d(N)!==null)rt=!0,ga();else{var G=d(T);G!==null&&ba(cl,G.startTime-_)}}var Ml=!1,it=-1,fl=5,wl=-1;function B(){return!(f.unstable_now()-wl<fl)}function $(){if(Ml){var _=f.unstable_now();wl=_;var G=!0;try{t:{rt=!1,xt&&(xt=!1,Nt(it),it=-1),q=!0;var j=L;try{l:{for(Xt(_),F=d(N);F!==null&&!(F.expirationTime>_&&B());){var et=F.callback;if(typeof et=="function"){F.callback=null,L=F.priorityLevel;var mt=et(F.expirationTime<=_);if(_=f.unstable_now(),typeof mt=="function"){F.callback=mt,Xt(_),G=!0;break l}F===d(N)&&o(N),Xt(_)}else o(N);F=d(N)}if(F!==null)G=!0;else{var wa=d(T);wa!==null&&ba(cl,wa.startTime-_),G=!1}}break t}finally{F=null,L=j,q=!1}G=void 0}}finally{G?sl():Ml=!1}}}var sl;if(typeof vt=="function")sl=function(){vt($)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,ya=Ue.port2;Ue.port1.onmessage=$,sl=function(){ya.postMessage(null)}}else sl=function(){Gt($,0)};function ga(){Ml||(Ml=!0,sl())}function ba(_,G){it=Gt(function(){_(f.unstable_now())},G)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(_){_.callback=null},f.unstable_continueExecution=function(){rt||q||(rt=!0,ga())},f.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fl=0<_?Math.floor(1e3/_):5},f.unstable_getCurrentPriorityLevel=function(){return L},f.unstable_getFirstCallbackNode=function(){return d(N)},f.unstable_next=function(_){switch(L){case 1:case 2:case 3:var G=3;break;default:G=L}var j=L;L=G;try{return _()}finally{L=j}},f.unstable_pauseExecution=function(){},f.unstable_requestPaint=function(){},f.unstable_runWithPriority=function(_,G){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var j=L;L=_;try{return G()}finally{L=j}},f.unstable_scheduleCallback=function(_,G,j){var et=f.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?et+j:et):j=et,_){case 1:var mt=-1;break;case 2:mt=250;break;case 5:mt=1073741823;break;case 4:mt=1e4;break;default:mt=5e3}return mt=j+mt,_={id:R++,callback:G,priorityLevel:_,startTime:j,expirationTime:mt,sortIndex:-1},j>et?(_.sortIndex=j,y(T,_),d(N)===null&&_===d(T)&&(xt?(Nt(it),it=-1):xt=!0,ba(cl,j-et))):(_.sortIndex=mt,y(N,_),rt||q||(rt=!0,ga())),_},f.unstable_shouldYield=B,f.unstable_wrapCallback=function(_){var G=L;return function(){var j=L;L=G;try{return _.apply(this,arguments)}finally{L=j}}}})(hf)),hf}var zr;function ev(){return zr||(zr=1,mf.exports=av()),mf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Mr;function uv(){if(Mr)return Ou;Mr=1;var f=ev(),y=hh(),d=vh();function o(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)l+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function g(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var S=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),q=Symbol.for("react.context"),rt=Symbol.for("react.forward_ref"),xt=Symbol.for("react.suspense"),Gt=Symbol.for("react.suspense_list"),Nt=Symbol.for("react.memo"),vt=Symbol.for("react.lazy"),Xt=Symbol.for("react.offscreen"),cl=Symbol.for("react.memo_cache_sentinel"),Ml=Symbol.iterator;function it(t){return t===null||typeof t!="object"?null:(t=Ml&&t[Ml]||t["@@iterator"],typeof t=="function"?t:null)}var fl=Symbol.for("react.client.reference");function wl(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===fl?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case M:return"Portal";case R:return"Profiler";case T:return"StrictMode";case xt:return"Suspense";case Gt:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case q:return(t.displayName||"Context")+".Provider";case L:return(t._context.displayName||"Context")+".Consumer";case rt:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Nt:return l=t.displayName||null,l!==null?l:wl(t.type)||"Memo";case vt:l=t._payload,t=t._init;try{return wl(t(l))}catch{}}return null}var B=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.assign,sl,Ue;function ya(t){if(sl===void 0)try{throw Error()}catch(a){var l=a.stack.trim().match(/\n( *(at )?)/);sl=l&&l[1]||"",Ue=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+sl+t+Ue}var ga=!1;function ba(t,l){if(!t||ga)return"";ga=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var e={DetermineComponentFrameRoot:function(){try{if(l){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(p){var b=p}Reflect.construct(t,[],z)}else{try{z.call()}catch(p){b=p}t.call(z.prototype)}}else{try{throw Error()}catch(p){b=p}(z=t())&&typeof z.catch=="function"&&z.catch(function(){})}}catch(p){if(p&&b&&typeof p.stack=="string")return[p.stack,b.stack]}return[null,null]}};e.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(e.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(e.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=e.DetermineComponentFrameRoot(),i=n[0],c=n[1];if(i&&c){var s=i.split(`
`),m=c.split(`
`);for(u=e=0;e<s.length&&!s[e].includes("DetermineComponentFrameRoot");)e++;for(;u<m.length&&!m[u].includes("DetermineComponentFrameRoot");)u++;if(e===s.length||u===m.length)for(e=s.length-1,u=m.length-1;1<=e&&0<=u&&s[e]!==m[u];)u--;for(;1<=e&&0<=u;e--,u--)if(s[e]!==m[u]){if(e!==1||u!==1)do if(e--,u--,0>u||s[e]!==m[u]){var E=`
`+s[e].replace(" at new "," at ");return t.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",t.displayName)),E}while(1<=e&&0<=u);break}}}finally{ga=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?ya(a):""}function _(t){switch(t.tag){case 26:case 27:case 5:return ya(t.type);case 16:return ya("Lazy");case 13:return ya("Suspense");case 19:return ya("SuspenseList");case 0:case 15:return t=ba(t.type,!1),t;case 11:return t=ba(t.type.render,!1),t;case 1:return t=ba(t.type,!0),t;default:return""}}function G(t){try{var l="";do l+=_(t),t=t.return;while(t);return l}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function j(t){var l=t,a=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(a=l.return),t=l.return;while(t)}return l.tag===3?a:null}function et(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function mt(t){if(j(t)!==t)throw Error(o(188))}function wa(t){var l=t.alternate;if(!l){if(l=j(t),l===null)throw Error(o(188));return l!==t?null:t}for(var a=t,e=l;;){var u=a.return;if(u===null)break;var n=u.alternate;if(n===null){if(e=u.return,e!==null){a=e;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===a)return mt(u),t;if(n===e)return mt(u),l;n=n.sibling}throw Error(o(188))}if(a.return!==e.return)a=u,e=n;else{for(var i=!1,c=u.child;c;){if(c===a){i=!0,a=u,e=n;break}if(c===e){i=!0,e=u,a=n;break}c=c.sibling}if(!i){for(c=n.child;c;){if(c===a){i=!0,a=n,e=u;break}if(c===e){i=!0,e=n,a=u;break}c=c.sibling}if(!i)throw Error(o(189))}}if(a.alternate!==e)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?t:l}function Sa(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=Sa(t),l!==null)return l;t=t.sibling}return null}var Tl=Array.isArray,K=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kt={pending:!1,data:null,method:null,action:null},Pn=[],Ka=-1;function yl(t){return{current:t}}function Et(t){0>Ka||(t.current=Pn[Ka],Pn[Ka]=null,Ka--)}function ut(t,l){Ka++,Pn[Ka]=t.current,t.current=l}var gl=yl(null),He=yl(null),Kl=yl(null),Nu=yl(null);function Ru(t,l){switch(ut(Kl,l),ut(He,t),ut(gl,null),t=l.nodeType,t){case 9:case 11:l=(l=l.documentElement)&&(l=l.namespaceURI)?Yd(l):0;break;default:if(t=t===8?l.parentNode:l,l=t.tagName,t=t.namespaceURI)t=Yd(t),l=Gd(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}Et(gl),ut(gl,l)}function Ja(){Et(gl),Et(He),Et(Kl)}function In(t){t.memoizedState!==null&&ut(Nu,t);var l=gl.current,a=Gd(l,t.type);l!==a&&(ut(He,t),ut(gl,a))}function Cu(t){He.current===t&&(Et(gl),Et(He)),Nu.current===t&&(Et(Nu),zu._currentValue=kt)}var ti=Object.prototype.hasOwnProperty,li=f.unstable_scheduleCallback,ai=f.unstable_cancelCallback,Lr=f.unstable_shouldYield,Zr=f.unstable_requestPaint,bl=f.unstable_now,Vr=f.unstable_getCurrentPriorityLevel,Df=f.unstable_ImmediatePriority,_f=f.unstable_UserBlockingPriority,qu=f.unstable_NormalPriority,wr=f.unstable_LowPriority,Of=f.unstable_IdlePriority,Kr=f.log,Jr=f.unstable_setDisableYieldValue,Ne=null,Qt=null;function kr(t){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Ne,t,void 0,(t.current.flags&128)===128)}catch{}}function Jl(t){if(typeof Kr=="function"&&Jr(t),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(Ne,t)}catch{}}var Lt=Math.clz32?Math.clz32:Fr,Wr=Math.log,$r=Math.LN2;function Fr(t){return t>>>=0,t===0?32:31-(Wr(t)/$r|0)|0}var Bu=128,ju=4194304;function pa(t){var l=t&42;if(l!==0)return l;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Yu(t,l){var a=t.pendingLanes;if(a===0)return 0;var e=0,u=t.suspendedLanes,n=t.pingedLanes,i=t.warmLanes;t=t.finishedLanes!==0;var c=a&134217727;return c!==0?(a=c&~u,a!==0?e=pa(a):(n&=c,n!==0?e=pa(n):t||(i=c&~i,i!==0&&(e=pa(i))))):(c=a&~u,c!==0?e=pa(c):n!==0?e=pa(n):t||(i=a&~i,i!==0&&(e=pa(i)))),e===0?0:l!==0&&l!==e&&(l&u)===0&&(u=e&-e,i=l&-l,u>=i||u===32&&(i&4194176)!==0)?l:e}function Re(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function Pr(t,l){switch(t){case 1:case 2:case 4:case 8:return l+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xf(){var t=Bu;return Bu<<=1,(Bu&4194176)===0&&(Bu=128),t}function Uf(){var t=ju;return ju<<=1,(ju&62914560)===0&&(ju=4194304),t}function ei(t){for(var l=[],a=0;31>a;a++)l.push(t);return l}function Ce(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ir(t,l,a,e,u,n){var i=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var c=t.entanglements,s=t.expirationTimes,m=t.hiddenUpdates;for(a=i&~a;0<a;){var E=31-Lt(a),z=1<<E;c[E]=0,s[E]=-1;var b=m[E];if(b!==null)for(m[E]=null,E=0;E<b.length;E++){var p=b[E];p!==null&&(p.lane&=-536870913)}a&=~z}e!==0&&Hf(t,e,0),n!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=n&~(i&~l))}function Hf(t,l,a){t.pendingLanes|=l,t.suspendedLanes&=~l;var e=31-Lt(l);t.entangledLanes|=l,t.entanglements[e]=t.entanglements[e]|1073741824|a&4194218}function Nf(t,l){var a=t.entangledLanes|=l;for(t=t.entanglements;a;){var e=31-Lt(a),u=1<<e;u&l|t[e]&l&&(t[e]|=l),a&=~u}}function Rf(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Cf(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:er(t.type))}function t0(t,l){var a=K.p;try{return K.p=t,l()}finally{K.p=a}}var kl=Math.random().toString(36).slice(2),Ut="__reactFiber$"+kl,qt="__reactProps$"+kl,ka="__reactContainer$"+kl,ui="__reactEvents$"+kl,l0="__reactListeners$"+kl,a0="__reactHandles$"+kl,qf="__reactResources$"+kl,qe="__reactMarker$"+kl;function ni(t){delete t[Ut],delete t[qt],delete t[ui],delete t[l0],delete t[a0]}function Ea(t){var l=t[Ut];if(l)return l;for(var a=t.parentNode;a;){if(l=a[ka]||a[Ut]){if(a=l.alternate,l.child!==null||a!==null&&a.child!==null)for(t=Ld(t);t!==null;){if(a=t[Ut])return a;t=Ld(t)}return l}t=a,a=t.parentNode}return null}function Wa(t){if(t=t[Ut]||t[ka]){var l=t.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return t}return null}function Be(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(o(33))}function $a(t){var l=t[qf];return l||(l=t[qf]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function At(t){t[qe]=!0}var Bf=new Set,jf={};function Aa(t,l){Fa(t,l),Fa(t+"Capture",l)}function Fa(t,l){for(jf[t]=l,t=0;t<l.length;t++)Bf.add(l[t])}var Dl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),e0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Yf={},Gf={};function u0(t){return ti.call(Gf,t)?!0:ti.call(Yf,t)?!1:e0.test(t)?Gf[t]=!0:(Yf[t]=!0,!1)}function Gu(t,l,a){if(u0(l))if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(l);return;case"boolean":var e=l.toLowerCase().slice(0,5);if(e!=="data-"&&e!=="aria-"){t.removeAttribute(l);return}}t.setAttribute(l,""+a)}}function Xu(t,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttribute(l,""+a)}}function _l(t,l,a,e){if(e===null)t.removeAttribute(a);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(l,a,""+e)}}function Wt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Xf(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function n0(t){var l=Xf(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,l),e=""+t[l];if(!t.hasOwnProperty(l)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,n=a.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return u.call(this)},set:function(i){e=""+i,n.call(this,i)}}),Object.defineProperty(t,l,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function Qu(t){t._valueTracker||(t._valueTracker=n0(t))}function Qf(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var a=l.getValue(),e="";return t&&(e=Xf(t)?t.checked?"true":"false":t.value),t=e,t!==a?(l.setValue(t),!0):!1}function Lu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var i0=/[\n"\\]/g;function $t(t){return t.replace(i0,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function ii(t,l,a,e,u,n,i,c){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),l!=null?i==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+Wt(l)):t.value!==""+Wt(l)&&(t.value=""+Wt(l)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),l!=null?ci(t,i,Wt(l)):a!=null?ci(t,i,Wt(a)):e!=null&&t.removeAttribute("value"),u==null&&n!=null&&(t.defaultChecked=!!n),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.name=""+Wt(c):t.removeAttribute("name")}function Lf(t,l,a,e,u,n,i,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(t.type=n),l!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||l!=null))return;a=a!=null?""+Wt(a):"",l=l!=null?""+Wt(l):a,c||l===t.value||(t.value=l),t.defaultValue=l}e=e??u,e=typeof e!="function"&&typeof e!="symbol"&&!!e,t.checked=c?t.checked:!!e,t.defaultChecked=!!e,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i)}function ci(t,l,a){l==="number"&&Lu(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Pa(t,l,a,e){if(t=t.options,l){l={};for(var u=0;u<a.length;u++)l["$"+a[u]]=!0;for(a=0;a<t.length;a++)u=l.hasOwnProperty("$"+t[a].value),t[a].selected!==u&&(t[a].selected=u),u&&e&&(t[a].defaultSelected=!0)}else{for(a=""+Wt(a),l=null,u=0;u<t.length;u++){if(t[u].value===a){t[u].selected=!0,e&&(t[u].defaultSelected=!0);return}l!==null||t[u].disabled||(l=t[u])}l!==null&&(l.selected=!0)}}function Zf(t,l,a){if(l!=null&&(l=""+Wt(l),l!==t.value&&(t.value=l),a==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=a!=null?""+Wt(a):""}function Vf(t,l,a,e){if(l==null){if(e!=null){if(a!=null)throw Error(o(92));if(Tl(e)){if(1<e.length)throw Error(o(93));e=e[0]}a=e}a==null&&(a=""),l=a}a=Wt(l),t.defaultValue=a,e=t.textContent,e===a&&e!==""&&e!==null&&(t.value=e)}function Ia(t,l){if(l){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=l;return}}t.textContent=l}var c0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wf(t,l,a){var e=l.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?e?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="":e?t.setProperty(l,a):typeof a!="number"||a===0||c0.has(l)?l==="float"?t.cssFloat=a:t[l]=(""+a).trim():t[l]=a+"px"}function Kf(t,l,a){if(l!=null&&typeof l!="object")throw Error(o(62));if(t=t.style,a!=null){for(var e in a)!a.hasOwnProperty(e)||l!=null&&l.hasOwnProperty(e)||(e.indexOf("--")===0?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="");for(var u in l)e=l[u],l.hasOwnProperty(u)&&a[u]!==e&&wf(t,u,e)}else for(var n in l)l.hasOwnProperty(n)&&wf(t,n,l[n])}function fi(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var f0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),s0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zu(t){return s0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var si=null;function oi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var te=null,le=null;function Jf(t){var l=Wa(t);if(l&&(t=l.stateNode)){var a=t[qt]||null;t:switch(t=l.stateNode,l.type){case"input":if(ii(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),l=a.name,a.type==="radio"&&l!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+$t(""+l)+'"][type="radio"]'),l=0;l<a.length;l++){var e=a[l];if(e!==t&&e.form===t.form){var u=e[qt]||null;if(!u)throw Error(o(90));ii(e,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(l=0;l<a.length;l++)e=a[l],e.form===t.form&&Qf(e)}break t;case"textarea":Zf(t,a.value,a.defaultValue);break t;case"select":l=a.value,l!=null&&Pa(t,!!a.multiple,l,!1)}}}var di=!1;function kf(t,l,a){if(di)return t(l,a);di=!0;try{var e=t(l);return e}finally{if(di=!1,(te!==null||le!==null)&&(_n(),te&&(l=te,t=le,le=te=null,Jf(l),t)))for(l=0;l<t.length;l++)Jf(t[l])}}function je(t,l){var a=t.stateNode;if(a===null)return null;var e=a[qt]||null;if(e===null)return null;a=e[l];t:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(e=!e.disabled)||(t=t.type,e=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!e;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(o(231,l,typeof a));return a}var ri=!1;if(Dl)try{var Ye={};Object.defineProperty(Ye,"passive",{get:function(){ri=!0}}),window.addEventListener("test",Ye,Ye),window.removeEventListener("test",Ye,Ye)}catch{ri=!1}var Wl=null,mi=null,Vu=null;function Wf(){if(Vu)return Vu;var t,l=mi,a=l.length,e,u="value"in Wl?Wl.value:Wl.textContent,n=u.length;for(t=0;t<a&&l[t]===u[t];t++);var i=a-t;for(e=1;e<=i&&l[a-e]===u[n-e];e++);return Vu=u.slice(t,1<e?1-e:void 0)}function wu(t){var l=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function Ku(){return!0}function $f(){return!1}function Bt(t){function l(a,e,u,n,i){this._reactName=a,this._targetInst=u,this.type=e,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var c in t)t.hasOwnProperty(c)&&(a=t[c],this[c]=a?a(n):n[c]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Ku:$f,this.isPropagationStopped=$f,this}return $(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ku)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ku)},persist:function(){},isPersistent:Ku}),l}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=Bt(za),Ge=$({},za,{view:0,detail:0}),o0=Bt(Ge),hi,vi,Xe,ku=$({},Ge,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gi,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Xe&&(Xe&&t.type==="mousemove"?(hi=t.screenX-Xe.screenX,vi=t.screenY-Xe.screenY):vi=hi=0,Xe=t),hi)},movementY:function(t){return"movementY"in t?t.movementY:vi}}),Ff=Bt(ku),d0=$({},ku,{dataTransfer:0}),r0=Bt(d0),m0=$({},Ge,{relatedTarget:0}),yi=Bt(m0),h0=$({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),v0=Bt(h0),y0=$({},za,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),g0=Bt(y0),b0=$({},za,{data:0}),Pf=Bt(b0),S0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p0={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"},E0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function A0(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=E0[t])?!!l[t]:!1}function gi(){return A0}var z0=$({},Ge,{key:function(t){if(t.key){var l=S0[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=wu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?p0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gi,charCode:function(t){return t.type==="keypress"?wu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?wu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),M0=Bt(z0),T0=$({},ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=Bt(T0),D0=$({},Ge,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gi}),_0=Bt(D0),O0=$({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),x0=Bt(O0),U0=$({},ku,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),H0=Bt(U0),N0=$({},za,{newState:0,oldState:0}),R0=Bt(N0),C0=[9,13,27,32],bi=Dl&&"CompositionEvent"in window,Qe=null;Dl&&"documentMode"in document&&(Qe=document.documentMode);var q0=Dl&&"TextEvent"in window&&!Qe,ts=Dl&&(!bi||Qe&&8<Qe&&11>=Qe),ls=" ",as=!1;function es(t,l){switch(t){case"keyup":return C0.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function us(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ae=!1;function B0(t,l){switch(t){case"compositionend":return us(l);case"keypress":return l.which!==32?null:(as=!0,ls);case"textInput":return t=l.data,t===ls&&as?null:t;default:return null}}function j0(t,l){if(ae)return t==="compositionend"||!bi&&es(t,l)?(t=Wf(),Vu=mi=Wl=null,ae=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return ts&&l.locale!=="ko"?null:l.data;default:return null}}var Y0={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 ns(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!Y0[t.type]:l==="textarea"}function is(t,l,a,e){te?le?le.push(e):le=[e]:te=e,l=Nn(l,"onChange"),0<l.length&&(a=new Ju("onChange","change",null,a,e),t.push({event:a,listeners:l}))}var Le=null,Ze=null;function G0(t){Rd(t,0)}function Wu(t){var l=Be(t);if(Qf(l))return t}function cs(t,l){if(t==="change")return l}var fs=!1;if(Dl){var Si;if(Dl){var pi="oninput"in document;if(!pi){var ss=document.createElement("div");ss.setAttribute("oninput","return;"),pi=typeof ss.oninput=="function"}Si=pi}else Si=!1;fs=Si&&(!document.documentMode||9<document.documentMode)}function os(){Le&&(Le.detachEvent("onpropertychange",ds),Ze=Le=null)}function ds(t){if(t.propertyName==="value"&&Wu(Ze)){var l=[];is(l,Ze,t,oi(t)),kf(G0,l)}}function X0(t,l,a){t==="focusin"?(os(),Le=l,Ze=a,Le.attachEvent("onpropertychange",ds)):t==="focusout"&&os()}function Q0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wu(Ze)}function L0(t,l){if(t==="click")return Wu(l)}function Z0(t,l){if(t==="input"||t==="change")return Wu(l)}function V0(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var Zt=typeof Object.is=="function"?Object.is:V0;function Ve(t,l){if(Zt(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;var a=Object.keys(t),e=Object.keys(l);if(a.length!==e.length)return!1;for(e=0;e<a.length;e++){var u=a[e];if(!ti.call(l,u)||!Zt(t[u],l[u]))return!1}return!0}function rs(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ms(t,l){var a=rs(t);t=0;for(var e;a;){if(a.nodeType===3){if(e=t+a.textContent.length,t<=l&&e>=l)return{node:a,offset:l-t};t=e}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=rs(a)}}function hs(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?hs(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function vs(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Lu(t.document);l instanceof t.HTMLIFrameElement;){try{var a=typeof l.contentWindow.location.href=="string"}catch{a=!1}if(a)t=l.contentWindow;else break;l=Lu(t.document)}return l}function Ei(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}function w0(t,l){var a=vs(l);l=t.focusedElem;var e=t.selectionRange;if(a!==l&&l&&l.ownerDocument&&hs(l.ownerDocument.documentElement,l)){if(e!==null&&Ei(l)){if(t=e.start,a=e.end,a===void 0&&(a=t),"selectionStart"in l)l.selectionStart=t,l.selectionEnd=Math.min(a,l.value.length);else if(a=(t=l.ownerDocument||document)&&t.defaultView||window,a.getSelection){a=a.getSelection();var u=l.textContent.length,n=Math.min(e.start,u);e=e.end===void 0?n:Math.min(e.end,u),!a.extend&&n>e&&(u=e,e=n,n=u),u=ms(l,n);var i=ms(l,e);u&&i&&(a.rangeCount!==1||a.anchorNode!==u.node||a.anchorOffset!==u.offset||a.focusNode!==i.node||a.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),a.removeAllRanges(),n>e?(a.addRange(t),a.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),a.addRange(t)))}}for(t=[],a=l;a=a.parentNode;)a.nodeType===1&&t.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<t.length;l++)a=t[l],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var K0=Dl&&"documentMode"in document&&11>=document.documentMode,ee=null,Ai=null,we=null,zi=!1;function ys(t,l,a){var e=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zi||ee==null||ee!==Lu(e)||(e=ee,"selectionStart"in e&&Ei(e)?e={start:e.selectionStart,end:e.selectionEnd}:(e=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection(),e={anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}),we&&Ve(we,e)||(we=e,e=Nn(Ai,"onSelect"),0<e.length&&(l=new Ju("onSelect","select",null,l,a),t.push({event:l,listeners:e}),l.target=ee)))}function Ma(t,l){var a={};return a[t.toLowerCase()]=l.toLowerCase(),a["Webkit"+t]="webkit"+l,a["Moz"+t]="moz"+l,a}var ue={animationend:Ma("Animation","AnimationEnd"),animationiteration:Ma("Animation","AnimationIteration"),animationstart:Ma("Animation","AnimationStart"),transitionrun:Ma("Transition","TransitionRun"),transitionstart:Ma("Transition","TransitionStart"),transitioncancel:Ma("Transition","TransitionCancel"),transitionend:Ma("Transition","TransitionEnd")},Mi={},gs={};Dl&&(gs=document.createElement("div").style,"AnimationEvent"in window||(delete ue.animationend.animation,delete ue.animationiteration.animation,delete ue.animationstart.animation),"TransitionEvent"in window||delete ue.transitionend.transition);function Ta(t){if(Mi[t])return Mi[t];if(!ue[t])return t;var l=ue[t],a;for(a in l)if(l.hasOwnProperty(a)&&a in gs)return Mi[t]=l[a];return t}var bs=Ta("animationend"),Ss=Ta("animationiteration"),ps=Ta("animationstart"),J0=Ta("transitionrun"),k0=Ta("transitionstart"),W0=Ta("transitioncancel"),Es=Ta("transitionend"),As=new Map,zs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function ol(t,l){As.set(t,l),Aa(l,[t])}var Ft=[],ne=0,Ti=0;function $u(){for(var t=ne,l=Ti=ne=0;l<t;){var a=Ft[l];Ft[l++]=null;var e=Ft[l];Ft[l++]=null;var u=Ft[l];Ft[l++]=null;var n=Ft[l];if(Ft[l++]=null,e!==null&&u!==null){var i=e.pending;i===null?u.next=u:(u.next=i.next,i.next=u),e.pending=u}n!==0&&Ms(a,u,n)}}function Fu(t,l,a,e){Ft[ne++]=t,Ft[ne++]=l,Ft[ne++]=a,Ft[ne++]=e,Ti|=e,t.lanes|=e,t=t.alternate,t!==null&&(t.lanes|=e)}function Di(t,l,a,e){return Fu(t,l,a,e),Pu(t)}function $l(t,l){return Fu(t,null,null,l),Pu(t)}function Ms(t,l,a){t.lanes|=a;var e=t.alternate;e!==null&&(e.lanes|=a);for(var u=!1,n=t.return;n!==null;)n.childLanes|=a,e=n.alternate,e!==null&&(e.childLanes|=a),n.tag===22&&(t=n.stateNode,t===null||t._visibility&1||(u=!0)),t=n,n=n.return;u&&l!==null&&t.tag===3&&(n=t.stateNode,u=31-Lt(a),n=n.hiddenUpdates,t=n[u],t===null?n[u]=[l]:t.push(l),l.lane=a|536870912)}function Pu(t){if(50<yu)throw yu=0,Nc=null,Error(o(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var ie={},Ts=new WeakMap;function Pt(t,l){if(typeof t=="object"&&t!==null){var a=Ts.get(t);return a!==void 0?a:(l={value:t,source:l,stack:G(l)},Ts.set(t,l),l)}return{value:t,source:l,stack:G(l)}}var ce=[],fe=0,Iu=null,tn=0,It=[],tl=0,Da=null,Ol=1,xl="";function _a(t,l){ce[fe++]=tn,ce[fe++]=Iu,Iu=t,tn=l}function Ds(t,l,a){It[tl++]=Ol,It[tl++]=xl,It[tl++]=Da,Da=t;var e=Ol;t=xl;var u=32-Lt(e)-1;e&=~(1<<u),a+=1;var n=32-Lt(l)+u;if(30<n){var i=u-u%5;n=(e&(1<<i)-1).toString(32),e>>=i,u-=i,Ol=1<<32-Lt(l)+u|a<<u|e,xl=n+t}else Ol=1<<n|a<<u|e,xl=t}function _i(t){t.return!==null&&(_a(t,1),Ds(t,1,0))}function Oi(t){for(;t===Iu;)Iu=ce[--fe],ce[fe]=null,tn=ce[--fe],ce[fe]=null;for(;t===Da;)Da=It[--tl],It[tl]=null,xl=It[--tl],It[tl]=null,Ol=It[--tl],It[tl]=null}var Rt=null,Dt=null,J=!1,dl=null,Sl=!1,xi=Error(o(519));function Oa(t){var l=Error(o(418,""));throw ke(Pt(l,t)),xi}function _s(t){var l=t.stateNode,a=t.type,e=t.memoizedProps;switch(l[Ut]=t,l[qt]=e,a){case"dialog":V("cancel",l),V("close",l);break;case"iframe":case"object":case"embed":V("load",l);break;case"video":case"audio":for(a=0;a<bu.length;a++)V(bu[a],l);break;case"source":V("error",l);break;case"img":case"image":case"link":V("error",l),V("load",l);break;case"details":V("toggle",l);break;case"input":V("invalid",l),Lf(l,e.value,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name,!0),Qu(l);break;case"select":V("invalid",l);break;case"textarea":V("invalid",l),Vf(l,e.value,e.defaultValue,e.children),Qu(l)}a=e.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||l.textContent===""+a||e.suppressHydrationWarning===!0||jd(l.textContent,a)?(e.popover!=null&&(V("beforetoggle",l),V("toggle",l)),e.onScroll!=null&&V("scroll",l),e.onScrollEnd!=null&&V("scrollend",l),e.onClick!=null&&(l.onclick=Rn),l=!0):l=!1,l||Oa(t)}function Os(t){for(Rt=t.return;Rt;)switch(Rt.tag){case 3:case 27:Sl=!0;return;case 5:case 13:Sl=!1;return;default:Rt=Rt.return}}function Ke(t){if(t!==Rt)return!1;if(!J)return Os(t),J=!0,!1;var l=!1,a;if((a=t.tag!==3&&t.tag!==27)&&((a=t.tag===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Wc(t.type,t.memoizedProps)),a=!a),a&&(l=!0),l&&Dt&&Oa(t),Os(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));t:{for(t=t.nextSibling,l=0;t;){if(t.nodeType===8)if(a=t.data,a==="/$"){if(l===0){Dt=ml(t.nextSibling);break t}l--}else a!=="$"&&a!=="$!"&&a!=="$?"||l++;t=t.nextSibling}Dt=null}}else Dt=Rt?ml(t.stateNode.nextSibling):null;return!0}function Je(){Dt=Rt=null,J=!1}function ke(t){dl===null?dl=[t]:dl.push(t)}var We=Error(o(460)),xs=Error(o(474)),Ui={then:function(){}};function Us(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ln(){}function Hs(t,l,a){switch(a=t[a],a===void 0?t.push(l):a!==l&&(l.then(ln,ln),l=a),l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,t===We?Error(o(483)):t;default:if(typeof l.status=="string")l.then(ln,ln);else{if(t=lt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=l,t.status="pending",t.then(function(e){if(l.status==="pending"){var u=l;u.status="fulfilled",u.value=e}},function(e){if(l.status==="pending"){var u=l;u.status="rejected",u.reason=e}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,t===We?Error(o(483)):t}throw $e=l,We}}var $e=null;function Ns(){if($e===null)throw Error(o(459));var t=$e;return $e=null,t}var se=null,Fe=0;function an(t){var l=Fe;return Fe+=1,se===null&&(se=[]),Hs(se,t,l)}function Pe(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function en(t,l){throw l.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(l),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function Rs(t){var l=t._init;return l(t._payload)}function Cs(t){function l(h,r){if(t){var v=h.deletions;v===null?(h.deletions=[r],h.flags|=16):v.push(r)}}function a(h,r){if(!t)return null;for(;r!==null;)l(h,r),r=r.sibling;return null}function e(h){for(var r=new Map;h!==null;)h.key!==null?r.set(h.key,h):r.set(h.index,h),h=h.sibling;return r}function u(h,r){return h=fa(h,r),h.index=0,h.sibling=null,h}function n(h,r,v){return h.index=v,t?(v=h.alternate,v!==null?(v=v.index,v<r?(h.flags|=33554434,r):v):(h.flags|=33554434,r)):(h.flags|=1048576,r)}function i(h){return t&&h.alternate===null&&(h.flags|=33554434),h}function c(h,r,v,A){return r===null||r.tag!==6?(r=Mc(v,h.mode,A),r.return=h,r):(r=u(r,v),r.return=h,r)}function s(h,r,v,A){var O=v.type;return O===N?E(h,r,v.props.children,A,v.key):r!==null&&(r.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===vt&&Rs(O)===r.type)?(r=u(r,v.props),Pe(r,v),r.return=h,r):(r=An(v.type,v.key,v.props,null,h.mode,A),Pe(r,v),r.return=h,r)}function m(h,r,v,A){return r===null||r.tag!==4||r.stateNode.containerInfo!==v.containerInfo||r.stateNode.implementation!==v.implementation?(r=Tc(v,h.mode,A),r.return=h,r):(r=u(r,v.children||[]),r.return=h,r)}function E(h,r,v,A,O){return r===null||r.tag!==7?(r=Ya(v,h.mode,A,O),r.return=h,r):(r=u(r,v),r.return=h,r)}function z(h,r,v){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=Mc(""+r,h.mode,v),r.return=h,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case D:return v=An(r.type,r.key,r.props,null,h.mode,v),Pe(v,r),v.return=h,v;case M:return r=Tc(r,h.mode,v),r.return=h,r;case vt:var A=r._init;return r=A(r._payload),z(h,r,v)}if(Tl(r)||it(r))return r=Ya(r,h.mode,v,null),r.return=h,r;if(typeof r.then=="function")return z(h,an(r),v);if(r.$$typeof===q)return z(h,Sn(h,r),v);en(h,r)}return null}function b(h,r,v,A){var O=r!==null?r.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return O!==null?null:c(h,r,""+v,A);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case D:return v.key===O?s(h,r,v,A):null;case M:return v.key===O?m(h,r,v,A):null;case vt:return O=v._init,v=O(v._payload),b(h,r,v,A)}if(Tl(v)||it(v))return O!==null?null:E(h,r,v,A,null);if(typeof v.then=="function")return b(h,r,an(v),A);if(v.$$typeof===q)return b(h,r,Sn(h,v),A);en(h,v)}return null}function p(h,r,v,A,O){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return h=h.get(v)||null,c(r,h,""+A,O);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case D:return h=h.get(A.key===null?v:A.key)||null,s(r,h,A,O);case M:return h=h.get(A.key===null?v:A.key)||null,m(r,h,A,O);case vt:var Q=A._init;return A=Q(A._payload),p(h,r,v,A,O)}if(Tl(A)||it(A))return h=h.get(v)||null,E(r,h,A,O,null);if(typeof A.then=="function")return p(h,r,v,an(A),O);if(A.$$typeof===q)return p(h,r,v,Sn(r,A),O);en(r,A)}return null}function x(h,r,v,A){for(var O=null,Q=null,U=r,C=r=0,Tt=null;U!==null&&C<v.length;C++){U.index>C?(Tt=U,U=null):Tt=U.sibling;var k=b(h,U,v[C],A);if(k===null){U===null&&(U=Tt);break}t&&U&&k.alternate===null&&l(h,U),r=n(k,r,C),Q===null?O=k:Q.sibling=k,Q=k,U=Tt}if(C===v.length)return a(h,U),J&&_a(h,C),O;if(U===null){for(;C<v.length;C++)U=z(h,v[C],A),U!==null&&(r=n(U,r,C),Q===null?O=U:Q.sibling=U,Q=U);return J&&_a(h,C),O}for(U=e(U);C<v.length;C++)Tt=p(U,h,C,v[C],A),Tt!==null&&(t&&Tt.alternate!==null&&U.delete(Tt.key===null?C:Tt.key),r=n(Tt,r,C),Q===null?O=Tt:Q.sibling=Tt,Q=Tt);return t&&U.forEach(function(va){return l(h,va)}),J&&_a(h,C),O}function Y(h,r,v,A){if(v==null)throw Error(o(151));for(var O=null,Q=null,U=r,C=r=0,Tt=null,k=v.next();U!==null&&!k.done;C++,k=v.next()){U.index>C?(Tt=U,U=null):Tt=U.sibling;var va=b(h,U,k.value,A);if(va===null){U===null&&(U=Tt);break}t&&U&&va.alternate===null&&l(h,U),r=n(va,r,C),Q===null?O=va:Q.sibling=va,Q=va,U=Tt}if(k.done)return a(h,U),J&&_a(h,C),O;if(U===null){for(;!k.done;C++,k=v.next())k=z(h,k.value,A),k!==null&&(r=n(k,r,C),Q===null?O=k:Q.sibling=k,Q=k);return J&&_a(h,C),O}for(U=e(U);!k.done;C++,k=v.next())k=p(U,h,C,k.value,A),k!==null&&(t&&k.alternate!==null&&U.delete(k.key===null?C:k.key),r=n(k,r,C),Q===null?O=k:Q.sibling=k,Q=k);return t&&U.forEach(function(sh){return l(h,sh)}),J&&_a(h,C),O}function dt(h,r,v,A){if(typeof v=="object"&&v!==null&&v.type===N&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case D:t:{for(var O=v.key;r!==null;){if(r.key===O){if(O=v.type,O===N){if(r.tag===7){a(h,r.sibling),A=u(r,v.props.children),A.return=h,h=A;break t}}else if(r.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===vt&&Rs(O)===r.type){a(h,r.sibling),A=u(r,v.props),Pe(A,v),A.return=h,h=A;break t}a(h,r);break}else l(h,r);r=r.sibling}v.type===N?(A=Ya(v.props.children,h.mode,A,v.key),A.return=h,h=A):(A=An(v.type,v.key,v.props,null,h.mode,A),Pe(A,v),A.return=h,h=A)}return i(h);case M:t:{for(O=v.key;r!==null;){if(r.key===O)if(r.tag===4&&r.stateNode.containerInfo===v.containerInfo&&r.stateNode.implementation===v.implementation){a(h,r.sibling),A=u(r,v.children||[]),A.return=h,h=A;break t}else{a(h,r);break}else l(h,r);r=r.sibling}A=Tc(v,h.mode,A),A.return=h,h=A}return i(h);case vt:return O=v._init,v=O(v._payload),dt(h,r,v,A)}if(Tl(v))return x(h,r,v,A);if(it(v)){if(O=it(v),typeof O!="function")throw Error(o(150));return v=O.call(v),Y(h,r,v,A)}if(typeof v.then=="function")return dt(h,r,an(v),A);if(v.$$typeof===q)return dt(h,r,Sn(h,v),A);en(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,r!==null&&r.tag===6?(a(h,r.sibling),A=u(r,v),A.return=h,h=A):(a(h,r),A=Mc(v,h.mode,A),A.return=h,h=A),i(h)):a(h,r)}return function(h,r,v,A){try{Fe=0;var O=dt(h,r,v,A);return se=null,O}catch(U){if(U===We)throw U;var Q=ul(29,U,null,h.mode);return Q.lanes=A,Q.return=h,Q}finally{}}}var xa=Cs(!0),qs=Cs(!1),oe=yl(null),un=yl(0);function Bs(t,l){t=Xl,ut(un,t),ut(oe,l),Xl=t|l.baseLanes}function Hi(){ut(un,Xl),ut(oe,oe.current)}function Ni(){Xl=un.current,Et(oe),Et(un)}var ll=yl(null),pl=null;function Fl(t){var l=t.alternate;ut(St,St.current&1),ut(ll,t),pl===null&&(l===null||oe.current!==null||l.memoizedState!==null)&&(pl=t)}function js(t){if(t.tag===22){if(ut(St,St.current),ut(ll,t),pl===null){var l=t.alternate;l!==null&&l.memoizedState!==null&&(pl=t)}}else Pl()}function Pl(){ut(St,St.current),ut(ll,ll.current)}function Ul(t){Et(ll),pl===t&&(pl=null),Et(St)}var St=yl(0);function nn(t){for(var l=t;l!==null;){if(l.tag===13){var a=l.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var $0=typeof AbortController<"u"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(a,e){t.push(e)}};this.abort=function(){l.aborted=!0,t.forEach(function(a){return a()})}},F0=f.unstable_scheduleCallback,P0=f.unstable_NormalPriority,pt={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ri(){return{controller:new $0,data:new Map,refCount:0}}function Ie(t){t.refCount--,t.refCount===0&&F0(P0,function(){t.controller.abort()})}var tu=null,Ci=0,de=0,re=null;function I0(t,l){if(tu===null){var a=tu=[];Ci=0,de=Xc(),re={status:"pending",value:void 0,then:function(e){a.push(e)}}}return Ci++,l.then(Ys,Ys),l}function Ys(){if(--Ci===0&&tu!==null){re!==null&&(re.status="fulfilled");var t=tu;tu=null,de=0,re=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function tm(t,l){var a=[],e={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return t.then(function(){e.status="fulfilled",e.value=l;for(var u=0;u<a.length;u++)(0,a[u])(l)},function(u){for(e.status="rejected",e.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),e}var Gs=B.S;B.S=function(t,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&I0(t,l),Gs!==null&&Gs(t,l)};var Ua=yl(null);function qi(){var t=Ua.current;return t!==null?t:lt.pooledCache}function cn(t,l){l===null?ut(Ua,Ua.current):ut(Ua,l.pool)}function Xs(){var t=qi();return t===null?null:{parent:pt._currentValue,pool:t}}var Il=0,X=null,P=null,yt=null,fn=!1,me=!1,Ha=!1,sn=0,lu=0,he=null,lm=0;function ht(){throw Error(o(321))}function Bi(t,l){if(l===null)return!1;for(var a=0;a<l.length&&a<t.length;a++)if(!Zt(t[a],l[a]))return!1;return!0}function ji(t,l,a,e,u,n){return Il=n,X=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,B.H=t===null||t.memoizedState===null?Na:ta,Ha=!1,n=a(e,u),Ha=!1,me&&(n=Ls(l,a,e,u)),Qs(t),n}function Qs(t){B.H=El;var l=P!==null&&P.next!==null;if(Il=0,yt=P=X=null,fn=!1,lu=0,he=null,l)throw Error(o(300));t===null||zt||(t=t.dependencies,t!==null&&bn(t)&&(zt=!0))}function Ls(t,l,a,e){X=t;var u=0;do{if(me&&(he=null),lu=0,me=!1,25<=u)throw Error(o(301));if(u+=1,yt=P=null,t.updateQueue!=null){var n=t.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}B.H=Ra,n=l(a,e)}while(me);return n}function am(){var t=B.H,l=t.useState()[0];return l=typeof l.then=="function"?au(l):l,t=t.useState()[0],(P!==null?P.memoizedState:null)!==t&&(X.flags|=1024),l}function Yi(){var t=sn!==0;return sn=0,t}function Gi(t,l,a){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~a}function Xi(t){if(fn){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}fn=!1}Il=0,yt=P=X=null,me=!1,lu=sn=0,he=null}function jt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?X.memoizedState=yt=t:yt=yt.next=t,yt}function gt(){if(P===null){var t=X.alternate;t=t!==null?t.memoizedState:null}else t=P.next;var l=yt===null?X.memoizedState:yt.next;if(l!==null)yt=l,P=t;else{if(t===null)throw X.alternate===null?Error(o(467)):Error(o(310));P=t,t={memoizedState:P.memoizedState,baseState:P.baseState,baseQueue:P.baseQueue,queue:P.queue,next:null},yt===null?X.memoizedState=yt=t:yt=yt.next=t}return yt}var on;on=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function au(t){var l=lu;return lu+=1,he===null&&(he=[]),t=Hs(he,t,l),l=X,(yt===null?l.memoizedState:yt.next)===null&&(l=l.alternate,B.H=l===null||l.memoizedState===null?Na:ta),t}function dn(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return au(t);if(t.$$typeof===q)return Ht(t)}throw Error(o(438,String(t)))}function Qi(t){var l=null,a=X.updateQueue;if(a!==null&&(l=a.memoCache),l==null){var e=X.alternate;e!==null&&(e=e.updateQueue,e!==null&&(e=e.memoCache,e!=null&&(l={data:e.data.map(function(u){return u.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),a===null&&(a=on(),X.updateQueue=a),a.memoCache=l,a=l.data[l.index],a===void 0)for(a=l.data[l.index]=Array(t),e=0;e<t;e++)a[e]=cl;return l.index++,a}function Hl(t,l){return typeof l=="function"?l(t):l}function rn(t){var l=gt();return Li(l,P,t)}function Li(t,l,a){var e=t.queue;if(e===null)throw Error(o(311));e.lastRenderedReducer=a;var u=t.baseQueue,n=e.pending;if(n!==null){if(u!==null){var i=u.next;u.next=n.next,n.next=i}l.baseQueue=u=n,e.pending=null}if(n=t.baseState,u===null)t.memoizedState=n;else{l=u.next;var c=i=null,s=null,m=l,E=!1;do{var z=m.lane&-536870913;if(z!==m.lane?(w&z)===z:(Il&z)===z){var b=m.revertLane;if(b===0)s!==null&&(s=s.next={lane:0,revertLane:0,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null}),z===de&&(E=!0);else if((Il&b)===b){m=m.next,b===de&&(E=!0);continue}else z={lane:0,revertLane:m.revertLane,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null},s===null?(c=s=z,i=n):s=s.next=z,X.lanes|=b,sa|=b;z=m.action,Ha&&a(n,z),n=m.hasEagerState?m.eagerState:a(n,z)}else b={lane:z,revertLane:m.revertLane,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null},s===null?(c=s=b,i=n):s=s.next=b,X.lanes|=z,sa|=z;m=m.next}while(m!==null&&m!==l);if(s===null?i=n:s.next=c,!Zt(n,t.memoizedState)&&(zt=!0,E&&(a=re,a!==null)))throw a;t.memoizedState=n,t.baseState=i,t.baseQueue=s,e.lastRenderedState=n}return u===null&&(e.lanes=0),[t.memoizedState,e.dispatch]}function Zi(t){var l=gt(),a=l.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=t;var e=a.dispatch,u=a.pending,n=l.memoizedState;if(u!==null){a.pending=null;var i=u=u.next;do n=t(n,i.action),i=i.next;while(i!==u);Zt(n,l.memoizedState)||(zt=!0),l.memoizedState=n,l.baseQueue===null&&(l.baseState=n),a.lastRenderedState=n}return[n,e]}function Zs(t,l,a){var e=X,u=gt(),n=J;if(n){if(a===void 0)throw Error(o(407));a=a()}else a=l();var i=!Zt((P||u).memoizedState,a);if(i&&(u.memoizedState=a,zt=!0),u=u.queue,Ki(Ks.bind(null,e,u,t),[t]),u.getSnapshot!==l||i||yt!==null&&yt.memoizedState.tag&1){if(e.flags|=2048,ve(9,ws.bind(null,e,u,a,l),{destroy:void 0},null),lt===null)throw Error(o(349));n||(Il&60)!==0||Vs(e,l,a)}return a}function Vs(t,l,a){t.flags|=16384,t={getSnapshot:l,value:a},l=X.updateQueue,l===null?(l=on(),X.updateQueue=l,l.stores=[t]):(a=l.stores,a===null?l.stores=[t]:a.push(t))}function ws(t,l,a,e){l.value=a,l.getSnapshot=e,Js(l)&&ks(t)}function Ks(t,l,a){return a(function(){Js(l)&&ks(t)})}function Js(t){var l=t.getSnapshot;t=t.value;try{var a=l();return!Zt(t,a)}catch{return!0}}function ks(t){var l=$l(t,2);l!==null&&Ct(l,t,2)}function Vi(t){var l=jt();if(typeof t=="function"){var a=t;if(t=a(),Ha){Jl(!0);try{a()}finally{Jl(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:t},l}function Ws(t,l,a,e){return t.baseState=a,Li(t,P,typeof e=="function"?e:Hl)}function em(t,l,a,e,u){if(vn(t))throw Error(o(485));if(t=l.action,t!==null){var n={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};B.T!==null?a(!0):n.isTransition=!1,e(n),a=l.pending,a===null?(n.next=l.pending=n,$s(l,n)):(n.next=a.next,l.pending=a.next=n)}}function $s(t,l){var a=l.action,e=l.payload,u=t.state;if(l.isTransition){var n=B.T,i={};B.T=i;try{var c=a(u,e),s=B.S;s!==null&&s(i,c),Fs(t,l,c)}catch(m){wi(t,l,m)}finally{B.T=n}}else try{n=a(u,e),Fs(t,l,n)}catch(m){wi(t,l,m)}}function Fs(t,l,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(e){Ps(t,l,e)},function(e){return wi(t,l,e)}):Ps(t,l,a)}function Ps(t,l,a){l.status="fulfilled",l.value=a,Is(l),t.state=a,l=t.pending,l!==null&&(a=l.next,a===l?t.pending=null:(a=a.next,l.next=a,$s(t,a)))}function wi(t,l,a){var e=t.pending;if(t.pending=null,e!==null){e=e.next;do l.status="rejected",l.reason=a,Is(l),l=l.next;while(l!==e)}t.action=null}function Is(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function to(t,l){return l}function lo(t,l){if(J){var a=lt.formState;if(a!==null){t:{var e=X;if(J){if(Dt){l:{for(var u=Dt,n=Sl;u.nodeType!==8;){if(!n){u=null;break l}if(u=ml(u.nextSibling),u===null){u=null;break l}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){Dt=ml(u.nextSibling),e=u.data==="F!";break t}}Oa(e)}e=!1}e&&(l=a[0])}}return a=jt(),a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:l},a.queue=e,a=po.bind(null,X,e),e.dispatch=a,e=Vi(!1),n=Fi.bind(null,X,!1,e.queue),e=jt(),u={state:l,dispatch:null,action:t,pending:null},e.queue=u,a=em.bind(null,X,u,n,a),u.dispatch=a,e.memoizedState=t,[l,a,!1]}function ao(t){var l=gt();return eo(l,P,t)}function eo(t,l,a){l=Li(t,l,to)[0],t=rn(Hl)[0],l=typeof l=="object"&&l!==null&&typeof l.then=="function"?au(l):l;var e=gt(),u=e.queue,n=u.dispatch;return a!==e.memoizedState&&(X.flags|=2048,ve(9,um.bind(null,u,a),{destroy:void 0},null)),[l,n,t]}function um(t,l){t.action=l}function uo(t){var l=gt(),a=P;if(a!==null)return eo(l,a,t);gt(),l=l.memoizedState,a=gt();var e=a.queue.dispatch;return a.memoizedState=t,[l,e,!1]}function ve(t,l,a,e){return t={tag:t,create:l,inst:a,deps:e,next:null},l=X.updateQueue,l===null&&(l=on(),X.updateQueue=l),a=l.lastEffect,a===null?l.lastEffect=t.next=t:(e=a.next,a.next=t,t.next=e,l.lastEffect=t),t}function no(){return gt().memoizedState}function mn(t,l,a,e){var u=jt();X.flags|=t,u.memoizedState=ve(1|l,a,{destroy:void 0},e===void 0?null:e)}function hn(t,l,a,e){var u=gt();e=e===void 0?null:e;var n=u.memoizedState.inst;P!==null&&e!==null&&Bi(e,P.memoizedState.deps)?u.memoizedState=ve(l,a,n,e):(X.flags|=t,u.memoizedState=ve(1|l,a,n,e))}function io(t,l){mn(8390656,8,t,l)}function Ki(t,l){hn(2048,8,t,l)}function co(t,l){return hn(4,2,t,l)}function fo(t,l){return hn(4,4,t,l)}function so(t,l){if(typeof l=="function"){t=t();var a=l(t);return function(){typeof a=="function"?a():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function oo(t,l,a){a=a!=null?a.concat([t]):null,hn(4,4,so.bind(null,l,t),a)}function Ji(){}function ro(t,l){var a=gt();l=l===void 0?null:l;var e=a.memoizedState;return l!==null&&Bi(l,e[1])?e[0]:(a.memoizedState=[t,l],t)}function mo(t,l){var a=gt();l=l===void 0?null:l;var e=a.memoizedState;if(l!==null&&Bi(l,e[1]))return e[0];if(e=t(),Ha){Jl(!0);try{t()}finally{Jl(!1)}}return a.memoizedState=[e,l],e}function ki(t,l,a){return a===void 0||(Il&1073741824)!==0?t.memoizedState=l:(t.memoizedState=a,t=vd(),X.lanes|=t,sa|=t,a)}function ho(t,l,a,e){return Zt(a,l)?a:oe.current!==null?(t=ki(t,a,e),Zt(t,l)||(zt=!0),t):(Il&42)===0?(zt=!0,t.memoizedState=a):(t=vd(),X.lanes|=t,sa|=t,l)}function vo(t,l,a,e,u){var n=K.p;K.p=n!==0&&8>n?n:8;var i=B.T,c={};B.T=c,Fi(t,!1,l,a);try{var s=u(),m=B.S;if(m!==null&&m(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var E=tm(s,e);eu(t,l,E,Jt(t))}else eu(t,l,e,Jt(t))}catch(z){eu(t,l,{then:function(){},status:"rejected",reason:z},Jt())}finally{K.p=n,B.T=i}}function nm(){}function Wi(t,l,a,e){if(t.tag!==5)throw Error(o(476));var u=yo(t).queue;vo(t,u,l,kt,a===null?nm:function(){return go(t),a(e)})}function yo(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:kt,baseState:kt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:kt},next:null};var a={};return l.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hl,lastRenderedState:a},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function go(t){var l=yo(t).next.queue;eu(t,l,{},Jt())}function $i(){return Ht(zu)}function bo(){return gt().memoizedState}function So(){return gt().memoizedState}function im(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var a=Jt();t=ea(a);var e=ua(l,t,a);e!==null&&(Ct(e,l,a),iu(e,l,a)),l={cache:Ri()},t.payload=l;return}l=l.return}}function cm(t,l,a){var e=Jt();a={lane:e,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},vn(t)?Eo(l,a):(a=Di(t,l,a,e),a!==null&&(Ct(a,t,e),Ao(a,l,e)))}function po(t,l,a){var e=Jt();eu(t,l,a,e)}function eu(t,l,a,e){var u={lane:e,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(vn(t))Eo(l,u);else{var n=t.alternate;if(t.lanes===0&&(n===null||n.lanes===0)&&(n=l.lastRenderedReducer,n!==null))try{var i=l.lastRenderedState,c=n(i,a);if(u.hasEagerState=!0,u.eagerState=c,Zt(c,i))return Fu(t,l,u,0),lt===null&&$u(),!1}catch{}finally{}if(a=Di(t,l,u,e),a!==null)return Ct(a,t,e),Ao(a,l,e),!0}return!1}function Fi(t,l,a,e){if(e={lane:2,revertLane:Xc(),action:e,hasEagerState:!1,eagerState:null,next:null},vn(t)){if(l)throw Error(o(479))}else l=Di(t,a,e,2),l!==null&&Ct(l,t,2)}function vn(t){var l=t.alternate;return t===X||l!==null&&l===X}function Eo(t,l){me=fn=!0;var a=t.pending;a===null?l.next=l:(l.next=a.next,a.next=l),t.pending=l}function Ao(t,l,a){if((a&4194176)!==0){var e=l.lanes;e&=t.pendingLanes,a|=e,l.lanes=a,Nf(t,a)}}var El={readContext:Ht,use:dn,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht};El.useCacheRefresh=ht,El.useMemoCache=ht,El.useHostTransitionStatus=ht,El.useFormState=ht,El.useActionState=ht,El.useOptimistic=ht;var Na={readContext:Ht,use:dn,useCallback:function(t,l){return jt().memoizedState=[t,l===void 0?null:l],t},useContext:Ht,useEffect:io,useImperativeHandle:function(t,l,a){a=a!=null?a.concat([t]):null,mn(4194308,4,so.bind(null,l,t),a)},useLayoutEffect:function(t,l){return mn(4194308,4,t,l)},useInsertionEffect:function(t,l){mn(4,2,t,l)},useMemo:function(t,l){var a=jt();l=l===void 0?null:l;var e=t();if(Ha){Jl(!0);try{t()}finally{Jl(!1)}}return a.memoizedState=[e,l],e},useReducer:function(t,l,a){var e=jt();if(a!==void 0){var u=a(l);if(Ha){Jl(!0);try{a(l)}finally{Jl(!1)}}}else u=l;return e.memoizedState=e.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},e.queue=t,t=t.dispatch=cm.bind(null,X,t),[e.memoizedState,t]},useRef:function(t){var l=jt();return t={current:t},l.memoizedState=t},useState:function(t){t=Vi(t);var l=t.queue,a=po.bind(null,X,l);return l.dispatch=a,[t.memoizedState,a]},useDebugValue:Ji,useDeferredValue:function(t,l){var a=jt();return ki(a,t,l)},useTransition:function(){var t=Vi(!1);return t=vo.bind(null,X,t.queue,!0,!1),jt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,a){var e=X,u=jt();if(J){if(a===void 0)throw Error(o(407));a=a()}else{if(a=l(),lt===null)throw Error(o(349));(w&60)!==0||Vs(e,l,a)}u.memoizedState=a;var n={value:a,getSnapshot:l};return u.queue=n,io(Ks.bind(null,e,n,t),[t]),e.flags|=2048,ve(9,ws.bind(null,e,n,a,l),{destroy:void 0},null),a},useId:function(){var t=jt(),l=lt.identifierPrefix;if(J){var a=xl,e=Ol;a=(e&~(1<<32-Lt(e)-1)).toString(32)+a,l=":"+l+"R"+a,a=sn++,0<a&&(l+="H"+a.toString(32)),l+=":"}else a=lm++,l=":"+l+"r"+a.toString(32)+":";return t.memoizedState=l},useCacheRefresh:function(){return jt().memoizedState=im.bind(null,X)}};Na.useMemoCache=Qi,Na.useHostTransitionStatus=$i,Na.useFormState=lo,Na.useActionState=lo,Na.useOptimistic=function(t){var l=jt();l.memoizedState=l.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=a,l=Fi.bind(null,X,!0,a),a.dispatch=l,[t,l]};var ta={readContext:Ht,use:dn,useCallback:ro,useContext:Ht,useEffect:Ki,useImperativeHandle:oo,useInsertionEffect:co,useLayoutEffect:fo,useMemo:mo,useReducer:rn,useRef:no,useState:function(){return rn(Hl)},useDebugValue:Ji,useDeferredValue:function(t,l){var a=gt();return ho(a,P.memoizedState,t,l)},useTransition:function(){var t=rn(Hl)[0],l=gt().memoizedState;return[typeof t=="boolean"?t:au(t),l]},useSyncExternalStore:Zs,useId:bo};ta.useCacheRefresh=So,ta.useMemoCache=Qi,ta.useHostTransitionStatus=$i,ta.useFormState=ao,ta.useActionState=ao,ta.useOptimistic=function(t,l){var a=gt();return Ws(a,P,t,l)};var Ra={readContext:Ht,use:dn,useCallback:ro,useContext:Ht,useEffect:Ki,useImperativeHandle:oo,useInsertionEffect:co,useLayoutEffect:fo,useMemo:mo,useReducer:Zi,useRef:no,useState:function(){return Zi(Hl)},useDebugValue:Ji,useDeferredValue:function(t,l){var a=gt();return P===null?ki(a,t,l):ho(a,P.memoizedState,t,l)},useTransition:function(){var t=Zi(Hl)[0],l=gt().memoizedState;return[typeof t=="boolean"?t:au(t),l]},useSyncExternalStore:Zs,useId:bo};Ra.useCacheRefresh=So,Ra.useMemoCache=Qi,Ra.useHostTransitionStatus=$i,Ra.useFormState=uo,Ra.useActionState=uo,Ra.useOptimistic=function(t,l){var a=gt();return P!==null?Ws(a,P,t,l):(a.baseState=t,[t,a.queue.dispatch])};function Pi(t,l,a,e){l=t.memoizedState,a=a(e,l),a=a==null?l:$({},l,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Ii={isMounted:function(t){return(t=t._reactInternals)?j(t)===t:!1},enqueueSetState:function(t,l,a){t=t._reactInternals;var e=Jt(),u=ea(e);u.payload=l,a!=null&&(u.callback=a),l=ua(t,u,e),l!==null&&(Ct(l,t,e),iu(l,t,e))},enqueueReplaceState:function(t,l,a){t=t._reactInternals;var e=Jt(),u=ea(e);u.tag=1,u.payload=l,a!=null&&(u.callback=a),l=ua(t,u,e),l!==null&&(Ct(l,t,e),iu(l,t,e))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var a=Jt(),e=ea(a);e.tag=2,l!=null&&(e.callback=l),l=ua(t,e,a),l!==null&&(Ct(l,t,a),iu(l,t,a))}};function zo(t,l,a,e,u,n,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(e,n,i):l.prototype&&l.prototype.isPureReactComponent?!Ve(a,e)||!Ve(u,n):!0}function Mo(t,l,a,e){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(a,e),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(a,e),l.state!==t&&Ii.enqueueReplaceState(l,l.state,null)}function Ca(t,l){var a=l;if("ref"in l){a={};for(var e in l)e!=="ref"&&(a[e]=l[e])}if(t=t.defaultProps){a===l&&(a=$({},a));for(var u in t)a[u]===void 0&&(a[u]=t[u])}return a}var yn=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function To(t){yn(t)}function Do(t){console.error(t)}function _o(t){yn(t)}function gn(t,l){try{var a=t.onUncaughtError;a(l.value,{componentStack:l.stack})}catch(e){setTimeout(function(){throw e})}}function Oo(t,l,a){try{var e=t.onCaughtError;e(a.value,{componentStack:a.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function tc(t,l,a){return a=ea(a),a.tag=3,a.payload={element:null},a.callback=function(){gn(t,l)},a}function xo(t){return t=ea(t),t.tag=3,t}function Uo(t,l,a,e){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var n=e.value;t.payload=function(){return u(n)},t.callback=function(){Oo(l,a,e)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){Oo(l,a,e),typeof u!="function"&&(oa===null?oa=new Set([this]):oa.add(this));var c=e.stack;this.componentDidCatch(e.value,{componentStack:c!==null?c:""})})}function fm(t,l,a,e,u){if(a.flags|=32768,e!==null&&typeof e=="object"&&typeof e.then=="function"){if(l=a.alternate,l!==null&&nu(l,a,u,!0),a=ll.current,a!==null){switch(a.tag){case 13:return pl===null?qc():a.alternate===null&&ot===0&&(ot=3),a.flags&=-257,a.flags|=65536,a.lanes=u,e===Ui?a.flags|=16384:(l=a.updateQueue,l===null?a.updateQueue=new Set([e]):l.add(e),jc(t,e,u)),!1;case 22:return a.flags|=65536,e===Ui?a.flags|=16384:(l=a.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([e])},a.updateQueue=l):(a=l.retryQueue,a===null?l.retryQueue=new Set([e]):a.add(e)),jc(t,e,u)),!1}throw Error(o(435,a.tag))}return jc(t,e,u),qc(),!1}if(J)return l=ll.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=u,e!==xi&&(t=Error(o(422),{cause:e}),ke(Pt(t,a)))):(e!==xi&&(l=Error(o(423),{cause:e}),ke(Pt(l,a))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,e=Pt(e,a),u=tc(t.stateNode,e,u),vc(t,u),ot!==4&&(ot=2)),!1;var n=Error(o(520),{cause:e});if(n=Pt(n,a),hu===null?hu=[n]:hu.push(n),ot!==4&&(ot=2),l===null)return!0;e=Pt(e,a),a=l;do{switch(a.tag){case 3:return a.flags|=65536,t=u&-u,a.lanes|=t,t=tc(a.stateNode,e,t),vc(a,t),!1;case 1:if(l=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(oa===null||!oa.has(n))))return a.flags|=65536,u&=-u,a.lanes|=u,u=xo(u),Uo(u,t,a,e),vc(a,u),!1}a=a.return}while(a!==null);return!1}var Ho=Error(o(461)),zt=!1;function _t(t,l,a,e){l.child=t===null?qs(l,null,a,e):xa(l,t.child,a,e)}function No(t,l,a,e,u){a=a.render;var n=l.ref;if("ref"in e){var i={};for(var c in e)c!=="ref"&&(i[c]=e[c])}else i=e;return Ba(l),e=ji(t,l,a,i,n,u),c=Yi(),t!==null&&!zt?(Gi(t,l,u),Nl(t,l,u)):(J&&c&&_i(l),l.flags|=1,_t(t,l,e,u),l.child)}function Ro(t,l,a,e,u){if(t===null){var n=a.type;return typeof n=="function"&&!zc(n)&&n.defaultProps===void 0&&a.compare===null?(l.tag=15,l.type=n,Co(t,l,n,e,u)):(t=An(a.type,null,e,l,l.mode,u),t.ref=l.ref,t.return=l,l.child=t)}if(n=t.child,!sc(t,u)){var i=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ve,a(i,e)&&t.ref===l.ref)return Nl(t,l,u)}return l.flags|=1,t=fa(n,e),t.ref=l.ref,t.return=l,l.child=t}function Co(t,l,a,e,u){if(t!==null){var n=t.memoizedProps;if(Ve(n,e)&&t.ref===l.ref)if(zt=!1,l.pendingProps=e=n,sc(t,u))(t.flags&131072)!==0&&(zt=!0);else return l.lanes=t.lanes,Nl(t,l,u)}return lc(t,l,a,e,u)}function qo(t,l,a){var e=l.pendingProps,u=e.children,n=(l.stateNode._pendingVisibility&2)!==0,i=t!==null?t.memoizedState:null;if(uu(t,l),e.mode==="hidden"||n){if((l.flags&128)!==0){if(e=i!==null?i.baseLanes|a:a,t!==null){for(u=l.child=t.child,n=0;u!==null;)n=n|u.lanes|u.childLanes,u=u.sibling;l.childLanes=n&~e}else l.childLanes=0,l.child=null;return Bo(t,l,e,a)}if((a&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&cn(l,i!==null?i.cachePool:null),i!==null?Bs(l,i):Hi(),js(l);else return l.lanes=l.childLanes=536870912,Bo(t,l,i!==null?i.baseLanes|a:a,a)}else i!==null?(cn(l,i.cachePool),Bs(l,i),Pl(),l.memoizedState=null):(t!==null&&cn(l,null),Hi(),Pl());return _t(t,l,u,a),l.child}function Bo(t,l,a,e){var u=qi();return u=u===null?null:{parent:pt._currentValue,pool:u},l.memoizedState={baseLanes:a,cachePool:u},t!==null&&cn(l,null),Hi(),js(l),t!==null&&nu(t,l,e,!0),null}function uu(t,l){var a=l.ref;if(a===null)t!==null&&t.ref!==null&&(l.flags|=2097664);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(t===null||t.ref!==a)&&(l.flags|=2097664)}}function lc(t,l,a,e,u){return Ba(l),a=ji(t,l,a,e,void 0,u),e=Yi(),t!==null&&!zt?(Gi(t,l,u),Nl(t,l,u)):(J&&e&&_i(l),l.flags|=1,_t(t,l,a,u),l.child)}function jo(t,l,a,e,u,n){return Ba(l),l.updateQueue=null,a=Ls(l,e,a,u),Qs(t),e=Yi(),t!==null&&!zt?(Gi(t,l,n),Nl(t,l,n)):(J&&e&&_i(l),l.flags|=1,_t(t,l,a,n),l.child)}function Yo(t,l,a,e,u){if(Ba(l),l.stateNode===null){var n=ie,i=a.contextType;typeof i=="object"&&i!==null&&(n=Ht(i)),n=new a(e,n),l.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ii,l.stateNode=n,n._reactInternals=l,n=l.stateNode,n.props=e,n.state=l.memoizedState,n.refs={},mc(l),i=a.contextType,n.context=typeof i=="object"&&i!==null?Ht(i):ie,n.state=l.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(Pi(l,a,i,e),n.state=l.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&Ii.enqueueReplaceState(n,n.state,null),fu(l,e,n,u),cu(),n.state=l.memoizedState),typeof n.componentDidMount=="function"&&(l.flags|=4194308),e=!0}else if(t===null){n=l.stateNode;var c=l.memoizedProps,s=Ca(a,c);n.props=s;var m=n.context,E=a.contextType;i=ie,typeof E=="object"&&E!==null&&(i=Ht(E));var z=a.getDerivedStateFromProps;E=typeof z=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=l.pendingProps!==c,E||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||m!==i)&&Mo(l,n,e,i),aa=!1;var b=l.memoizedState;n.state=b,fu(l,e,n,u),cu(),m=l.memoizedState,c||b!==m||aa?(typeof z=="function"&&(Pi(l,a,z,e),m=l.memoizedState),(s=aa||zo(l,a,s,e,b,m,i))?(E||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(l.flags|=4194308)):(typeof n.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=e,l.memoizedState=m),n.props=e,n.state=m,n.context=i,e=s):(typeof n.componentDidMount=="function"&&(l.flags|=4194308),e=!1)}else{n=l.stateNode,hc(t,l),i=l.memoizedProps,E=Ca(a,i),n.props=E,z=l.pendingProps,b=n.context,m=a.contextType,s=ie,typeof m=="object"&&m!==null&&(s=Ht(m)),c=a.getDerivedStateFromProps,(m=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==z||b!==s)&&Mo(l,n,e,s),aa=!1,b=l.memoizedState,n.state=b,fu(l,e,n,u),cu();var p=l.memoizedState;i!==z||b!==p||aa||t!==null&&t.dependencies!==null&&bn(t.dependencies)?(typeof c=="function"&&(Pi(l,a,c,e),p=l.memoizedState),(E=aa||zo(l,a,E,e,b,p,s)||t!==null&&t.dependencies!==null&&bn(t.dependencies))?(m||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(e,p,s),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(e,p,s)),typeof n.componentDidUpdate=="function"&&(l.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(l.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(l.flags|=1024),l.memoizedProps=e,l.memoizedState=p),n.props=e,n.state=p,n.context=s,e=E):(typeof n.componentDidUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(l.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&b===t.memoizedState||(l.flags|=1024),e=!1)}return n=e,uu(t,l),e=(l.flags&128)!==0,n||e?(n=l.stateNode,a=e&&typeof a.getDerivedStateFromError!="function"?null:n.render(),l.flags|=1,t!==null&&e?(l.child=xa(l,t.child,null,u),l.child=xa(l,null,a,u)):_t(t,l,a,u),l.memoizedState=n.state,t=l.child):t=Nl(t,l,u),t}function Go(t,l,a,e){return Je(),l.flags|=256,_t(t,l,a,e),l.child}var ac={dehydrated:null,treeContext:null,retryLane:0};function ec(t){return{baseLanes:t,cachePool:Xs()}}function uc(t,l,a){return t=t!==null?t.childLanes&~a:0,l&&(t|=nl),t}function Xo(t,l,a){var e=l.pendingProps,u=!1,n=(l.flags&128)!==0,i;if((i=n)||(i=t!==null&&t.memoizedState===null?!1:(St.current&2)!==0),i&&(u=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(J){if(u?Fl(l):Pl(),J){var c=Dt,s;if(s=c){t:{for(s=c,c=Sl;s.nodeType!==8;){if(!c){c=null;break t}if(s=ml(s.nextSibling),s===null){c=null;break t}}c=s}c!==null?(l.memoizedState={dehydrated:c,treeContext:Da!==null?{id:Ol,overflow:xl}:null,retryLane:536870912},s=ul(18,null,null,0),s.stateNode=c,s.return=l,l.child=s,Rt=l,Dt=null,s=!0):s=!1}s||Oa(l)}if(c=l.memoizedState,c!==null&&(c=c.dehydrated,c!==null))return c.data==="$!"?l.lanes=16:l.lanes=536870912,null;Ul(l)}return c=e.children,e=e.fallback,u?(Pl(),u=l.mode,c=ic({mode:"hidden",children:c},u),e=Ya(e,u,a,null),c.return=l,e.return=l,c.sibling=e,l.child=c,u=l.child,u.memoizedState=ec(a),u.childLanes=uc(t,i,a),l.memoizedState=ac,e):(Fl(l),nc(l,c))}if(s=t.memoizedState,s!==null&&(c=s.dehydrated,c!==null)){if(n)l.flags&256?(Fl(l),l.flags&=-257,l=cc(t,l,a)):l.memoizedState!==null?(Pl(),l.child=t.child,l.flags|=128,l=null):(Pl(),u=e.fallback,c=l.mode,e=ic({mode:"visible",children:e.children},c),u=Ya(u,c,a,null),u.flags|=2,e.return=l,u.return=l,e.sibling=u,l.child=e,xa(l,t.child,null,a),e=l.child,e.memoizedState=ec(a),e.childLanes=uc(t,i,a),l.memoizedState=ac,l=u);else if(Fl(l),c.data==="$!"){if(i=c.nextSibling&&c.nextSibling.dataset,i)var m=i.dgst;i=m,e=Error(o(419)),e.stack="",e.digest=i,ke({value:e,source:null,stack:null}),l=cc(t,l,a)}else if(zt||nu(t,l,a,!1),i=(a&t.childLanes)!==0,zt||i){if(i=lt,i!==null){if(e=a&-a,(e&42)!==0)e=1;else switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=64;break;case 268435456:e=134217728;break;default:e=0}if(e=(e&(i.suspendedLanes|a))!==0?0:e,e!==0&&e!==s.retryLane)throw s.retryLane=e,$l(t,e),Ct(i,t,e),Ho}c.data==="$?"||qc(),l=cc(t,l,a)}else c.data==="$?"?(l.flags|=128,l.child=t.child,l=zm.bind(null,t),c._reactRetry=l,l=null):(t=s.treeContext,Dt=ml(c.nextSibling),Rt=l,J=!0,dl=null,Sl=!1,t!==null&&(It[tl++]=Ol,It[tl++]=xl,It[tl++]=Da,Ol=t.id,xl=t.overflow,Da=l),l=nc(l,e.children),l.flags|=4096);return l}return u?(Pl(),u=e.fallback,c=l.mode,s=t.child,m=s.sibling,e=fa(s,{mode:"hidden",children:e.children}),e.subtreeFlags=s.subtreeFlags&31457280,m!==null?u=fa(m,u):(u=Ya(u,c,a,null),u.flags|=2),u.return=l,e.return=l,e.sibling=u,l.child=e,e=u,u=l.child,c=t.child.memoizedState,c===null?c=ec(a):(s=c.cachePool,s!==null?(m=pt._currentValue,s=s.parent!==m?{parent:m,pool:m}:s):s=Xs(),c={baseLanes:c.baseLanes|a,cachePool:s}),u.memoizedState=c,u.childLanes=uc(t,i,a),l.memoizedState=ac,e):(Fl(l),a=t.child,t=a.sibling,a=fa(a,{mode:"visible",children:e.children}),a.return=l,a.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=a,l.memoizedState=null,a)}function nc(t,l){return l=ic({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function ic(t,l){return rd(t,l,0,null)}function cc(t,l,a){return xa(l,t.child,null,a),t=nc(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function Qo(t,l,a){t.lanes|=l;var e=t.alternate;e!==null&&(e.lanes|=l),dc(t.return,l,a)}function fc(t,l,a,e,u){var n=t.memoizedState;n===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:e,tail:a,tailMode:u}:(n.isBackwards=l,n.rendering=null,n.renderingStartTime=0,n.last=e,n.tail=a,n.tailMode=u)}function Lo(t,l,a){var e=l.pendingProps,u=e.revealOrder,n=e.tail;if(_t(t,l,e.children,a),e=St.current,(e&2)!==0)e=e&1|2,l.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Qo(t,a,l);else if(t.tag===19)Qo(t,a,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}e&=1}switch(ut(St,e),u){case"forwards":for(a=l.child,u=null;a!==null;)t=a.alternate,t!==null&&nn(t)===null&&(u=a),a=a.sibling;a=u,a===null?(u=l.child,l.child=null):(u=a.sibling,a.sibling=null),fc(l,!1,u,a,n);break;case"backwards":for(a=null,u=l.child,l.child=null;u!==null;){if(t=u.alternate,t!==null&&nn(t)===null){l.child=u;break}t=u.sibling,u.sibling=a,a=u,u=t}fc(l,!0,a,null,n);break;case"together":fc(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Nl(t,l,a){if(t!==null&&(l.dependencies=t.dependencies),sa|=l.lanes,(a&l.childLanes)===0)if(t!==null){if(nu(t,l,a,!1),(a&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(o(153));if(l.child!==null){for(t=l.child,a=fa(t,t.pendingProps),l.child=a,a.return=l;t.sibling!==null;)t=t.sibling,a=a.sibling=fa(t,t.pendingProps),a.return=l;a.sibling=null}return l.child}function sc(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&bn(t)))}function sm(t,l,a){switch(l.tag){case 3:Ru(l,l.stateNode.containerInfo),la(l,pt,t.memoizedState.cache),Je();break;case 27:case 5:In(l);break;case 4:Ru(l,l.stateNode.containerInfo);break;case 10:la(l,l.type,l.memoizedProps.value);break;case 13:var e=l.memoizedState;if(e!==null)return e.dehydrated!==null?(Fl(l),l.flags|=128,null):(a&l.child.childLanes)!==0?Xo(t,l,a):(Fl(l),t=Nl(t,l,a),t!==null?t.sibling:null);Fl(l);break;case 19:var u=(t.flags&128)!==0;if(e=(a&l.childLanes)!==0,e||(nu(t,l,a,!1),e=(a&l.childLanes)!==0),u){if(e)return Lo(t,l,a);l.flags|=128}if(u=l.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ut(St,St.current),e)break;return null;case 22:case 23:return l.lanes=0,qo(t,l,a);case 24:la(l,pt,t.memoizedState.cache)}return Nl(t,l,a)}function Zo(t,l,a){if(t!==null)if(t.memoizedProps!==l.pendingProps)zt=!0;else{if(!sc(t,a)&&(l.flags&128)===0)return zt=!1,sm(t,l,a);zt=(t.flags&131072)!==0}else zt=!1,J&&(l.flags&1048576)!==0&&Ds(l,tn,l.index);switch(l.lanes=0,l.tag){case 16:t:{t=l.pendingProps;var e=l.elementType,u=e._init;if(e=u(e._payload),l.type=e,typeof e=="function")zc(e)?(t=Ca(e,t),l.tag=1,l=Yo(null,l,e,t,a)):(l.tag=0,l=lc(null,l,e,t,a));else{if(e!=null){if(u=e.$$typeof,u===rt){l.tag=11,l=No(null,l,e,t,a);break t}else if(u===Nt){l.tag=14,l=Ro(null,l,e,t,a);break t}}throw l=wl(e)||e,Error(o(306,l,""))}}return l;case 0:return lc(t,l,l.type,l.pendingProps,a);case 1:return e=l.type,u=Ca(e,l.pendingProps),Yo(t,l,e,u,a);case 3:t:{if(Ru(l,l.stateNode.containerInfo),t===null)throw Error(o(387));var n=l.pendingProps;u=l.memoizedState,e=u.element,hc(t,l),fu(l,n,null,a);var i=l.memoizedState;if(n=i.cache,la(l,pt,n),n!==u.cache&&rc(l,[pt],a,!0),cu(),n=i.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=Go(t,l,n,a);break t}else if(n!==e){e=Pt(Error(o(424)),l),ke(e),l=Go(t,l,n,a);break t}else for(Dt=ml(l.stateNode.containerInfo.firstChild),Rt=l,J=!0,dl=null,Sl=!0,a=qs(l,null,n,a),l.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Je(),n===e){l=Nl(t,l,a);break t}_t(t,l,n,a)}l=l.child}return l;case 26:return uu(t,l),t===null?(a=Kd(l.type,null,l.pendingProps,null))?l.memoizedState=a:J||(a=l.type,t=l.pendingProps,e=Cn(Kl.current).createElement(a),e[Ut]=l,e[qt]=t,Ot(e,a,t),At(e),l.stateNode=e):l.memoizedState=Kd(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return In(l),t===null&&J&&(e=l.stateNode=Zd(l.type,l.pendingProps,Kl.current),Rt=l,Sl=!0,Dt=ml(e.firstChild)),e=l.pendingProps.children,t!==null||J?_t(t,l,e,a):l.child=xa(l,null,e,a),uu(t,l),l.child;case 5:return t===null&&J&&((u=e=Dt)&&(e=Gm(e,l.type,l.pendingProps,Sl),e!==null?(l.stateNode=e,Rt=l,Dt=ml(e.firstChild),Sl=!1,u=!0):u=!1),u||Oa(l)),In(l),u=l.type,n=l.pendingProps,i=t!==null?t.memoizedProps:null,e=n.children,Wc(u,n)?e=null:i!==null&&Wc(u,i)&&(l.flags|=32),l.memoizedState!==null&&(u=ji(t,l,am,null,null,a),zu._currentValue=u),uu(t,l),_t(t,l,e,a),l.child;case 6:return t===null&&J&&((t=a=Dt)&&(a=Xm(a,l.pendingProps,Sl),a!==null?(l.stateNode=a,Rt=l,Dt=null,t=!0):t=!1),t||Oa(l)),null;case 13:return Xo(t,l,a);case 4:return Ru(l,l.stateNode.containerInfo),e=l.pendingProps,t===null?l.child=xa(l,null,e,a):_t(t,l,e,a),l.child;case 11:return No(t,l,l.type,l.pendingProps,a);case 7:return _t(t,l,l.pendingProps,a),l.child;case 8:return _t(t,l,l.pendingProps.children,a),l.child;case 12:return _t(t,l,l.pendingProps.children,a),l.child;case 10:return e=l.pendingProps,la(l,l.type,e.value),_t(t,l,e.children,a),l.child;case 9:return u=l.type._context,e=l.pendingProps.children,Ba(l),u=Ht(u),e=e(u),l.flags|=1,_t(t,l,e,a),l.child;case 14:return Ro(t,l,l.type,l.pendingProps,a);case 15:return Co(t,l,l.type,l.pendingProps,a);case 19:return Lo(t,l,a);case 22:return qo(t,l,a);case 24:return Ba(l),e=Ht(pt),t===null?(u=qi(),u===null&&(u=lt,n=Ri(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=a),u=n),l.memoizedState={parent:e,cache:u},mc(l),la(l,pt,u)):((t.lanes&a)!==0&&(hc(t,l),fu(l,null,null,a),cu()),u=t.memoizedState,n=l.memoizedState,u.parent!==e?(u={parent:e,cache:e},l.memoizedState=u,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=u),la(l,pt,e)):(e=n.cache,la(l,pt,e),e!==u.cache&&rc(l,[pt],a,!0))),_t(t,l,l.pendingProps.children,a),l.child;case 29:throw l.pendingProps}throw Error(o(156,l.tag))}var oc=yl(null),qa=null,Rl=null;function la(t,l,a){ut(oc,l._currentValue),l._currentValue=a}function Cl(t){t._currentValue=oc.current,Et(oc)}function dc(t,l,a){for(;t!==null;){var e=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,e!==null&&(e.childLanes|=l)):e!==null&&(e.childLanes&l)!==l&&(e.childLanes|=l),t===a)break;t=t.return}}function rc(t,l,a,e){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var n=u.dependencies;if(n!==null){var i=u.child;n=n.firstContext;t:for(;n!==null;){var c=n;n=u;for(var s=0;s<l.length;s++)if(c.context===l[s]){n.lanes|=a,c=n.alternate,c!==null&&(c.lanes|=a),dc(n.return,a,t),e||(i=null);break t}n=c.next}}else if(u.tag===18){if(i=u.return,i===null)throw Error(o(341));i.lanes|=a,n=i.alternate,n!==null&&(n.lanes|=a),dc(i,a,t),i=null}else i=u.child;if(i!==null)i.return=u;else for(i=u;i!==null;){if(i===t){i=null;break}if(u=i.sibling,u!==null){u.return=i.return,i=u;break}i=i.return}u=i}}function nu(t,l,a,e){t=null;for(var u=l,n=!1;u!==null;){if(!n){if((u.flags&524288)!==0)n=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var i=u.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var c=u.type;Zt(u.pendingProps.value,i.value)||(t!==null?t.push(c):t=[c])}}else if(u===Nu.current){if(i=u.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(zu):t=[zu])}u=u.return}t!==null&&rc(l,t,a,e),l.flags|=262144}function bn(t){for(t=t.firstContext;t!==null;){if(!Zt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ba(t){qa=t,Rl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ht(t){return Vo(qa,t)}function Sn(t,l){return qa===null&&Ba(t),Vo(t,l)}function Vo(t,l){var a=l._currentValue;if(l={context:l,memoizedValue:a,next:null},Rl===null){if(t===null)throw Error(o(308));Rl=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Rl=Rl.next=l;return a}var aa=!1;function mc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hc(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ea(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ua(t,l,a){var e=t.updateQueue;if(e===null)return null;if(e=e.shared,(ft&2)!==0){var u=e.pending;return u===null?l.next=l:(l.next=u.next,u.next=l),e.pending=l,l=Pu(t),Ms(t,null,a),l}return Fu(t,e,l,a),Pu(t)}function iu(t,l,a){if(l=l.updateQueue,l!==null&&(l=l.shared,(a&4194176)!==0)){var e=l.lanes;e&=t.pendingLanes,a|=e,l.lanes=a,Nf(t,a)}}function vc(t,l){var a=t.updateQueue,e=t.alternate;if(e!==null&&(e=e.updateQueue,a===e)){var u=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?u=n=i:n=n.next=i,a=a.next}while(a!==null);n===null?u=n=l:n=n.next=l}else u=n=l;a={baseState:e.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:e.shared,callbacks:e.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=l:t.next=l,a.lastBaseUpdate=l}var yc=!1;function cu(){if(yc){var t=re;if(t!==null)throw t}}function fu(t,l,a,e){yc=!1;var u=t.updateQueue;aa=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,c=u.shared.pending;if(c!==null){u.shared.pending=null;var s=c,m=s.next;s.next=null,i===null?n=m:i.next=m,i=s;var E=t.alternate;E!==null&&(E=E.updateQueue,c=E.lastBaseUpdate,c!==i&&(c===null?E.firstBaseUpdate=m:c.next=m,E.lastBaseUpdate=s))}if(n!==null){var z=u.baseState;i=0,E=m=s=null,c=n;do{var b=c.lane&-536870913,p=b!==c.lane;if(p?(w&b)===b:(e&b)===b){b!==0&&b===de&&(yc=!0),E!==null&&(E=E.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var x=t,Y=c;b=l;var dt=a;switch(Y.tag){case 1:if(x=Y.payload,typeof x=="function"){z=x.call(dt,z,b);break t}z=x;break t;case 3:x.flags=x.flags&-65537|128;case 0:if(x=Y.payload,b=typeof x=="function"?x.call(dt,z,b):x,b==null)break t;z=$({},z,b);break t;case 2:aa=!0}}b=c.callback,b!==null&&(t.flags|=64,p&&(t.flags|=8192),p=u.callbacks,p===null?u.callbacks=[b]:p.push(b))}else p={lane:b,tag:c.tag,payload:c.payload,callback:c.callback,next:null},E===null?(m=E=p,s=z):E=E.next=p,i|=b;if(c=c.next,c===null){if(c=u.shared.pending,c===null)break;p=c,c=p.next,p.next=null,u.lastBaseUpdate=p,u.shared.pending=null}}while(!0);E===null&&(s=z),u.baseState=s,u.firstBaseUpdate=m,u.lastBaseUpdate=E,n===null&&(u.shared.lanes=0),sa|=i,t.lanes=i,t.memoizedState=z}}function wo(t,l){if(typeof t!="function")throw Error(o(191,t));t.call(l)}function Ko(t,l){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)wo(a[t],l)}function su(t,l){try{var a=l.updateQueue,e=a!==null?a.lastEffect:null;if(e!==null){var u=e.next;a=u;do{if((a.tag&t)===t){e=void 0;var n=a.create,i=a.inst;e=n(),i.destroy=e}a=a.next}while(a!==u)}}catch(c){tt(l,l.return,c)}}function na(t,l,a){try{var e=l.updateQueue,u=e!==null?e.lastEffect:null;if(u!==null){var n=u.next;e=n;do{if((e.tag&t)===t){var i=e.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,u=l;var s=a;try{c()}catch(m){tt(u,s,m)}}}e=e.next}while(e!==n)}}catch(m){tt(l,l.return,m)}}function Jo(t){var l=t.updateQueue;if(l!==null){var a=t.stateNode;try{Ko(l,a)}catch(e){tt(t,t.return,e)}}}function ko(t,l,a){a.props=Ca(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(e){tt(t,l,e)}}function ja(t,l){try{var a=t.ref;if(a!==null){var e=t.stateNode;switch(t.tag){case 26:case 27:case 5:var u=e;break;default:u=e}typeof a=="function"?t.refCleanup=a(u):a.current=u}}catch(n){tt(t,l,n)}}function Vt(t,l){var a=t.ref,e=t.refCleanup;if(a!==null)if(typeof e=="function")try{e()}catch(u){tt(t,l,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){tt(t,l,u)}else a.current=null}function Wo(t){var l=t.type,a=t.memoizedProps,e=t.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break t;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}catch(u){tt(t,t.return,u)}}function $o(t,l,a){try{var e=t.stateNode;Cm(e,t.type,a,l),e[qt]=l}catch(u){tt(t,t.return,u)}}function Fo(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function gc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Fo(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==27&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function bc(t,l,a){var e=t.tag;if(e===5||e===6)t=t.stateNode,l?a.nodeType===8?a.parentNode.insertBefore(t,l):a.insertBefore(t,l):(a.nodeType===8?(l=a.parentNode,l.insertBefore(t,a)):(l=a,l.appendChild(t)),a=a._reactRootContainer,a!=null||l.onclick!==null||(l.onclick=Rn));else if(e!==4&&e!==27&&(t=t.child,t!==null))for(bc(t,l,a),t=t.sibling;t!==null;)bc(t,l,a),t=t.sibling}function pn(t,l,a){var e=t.tag;if(e===5||e===6)t=t.stateNode,l?a.insertBefore(t,l):a.appendChild(t);else if(e!==4&&e!==27&&(t=t.child,t!==null))for(pn(t,l,a),t=t.sibling;t!==null;)pn(t,l,a),t=t.sibling}var ql=!1,st=!1,Sc=!1,Po=typeof WeakSet=="function"?WeakSet:Set,Mt=null,Io=!1;function om(t,l){if(t=t.containerInfo,Jc=Xn,t=vs(t),Ei(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var e=a.getSelection&&a.getSelection();if(e&&e.rangeCount!==0){a=e.anchorNode;var u=e.anchorOffset,n=e.focusNode;e=e.focusOffset;try{a.nodeType,n.nodeType}catch{a=null;break t}var i=0,c=-1,s=-1,m=0,E=0,z=t,b=null;l:for(;;){for(var p;z!==a||u!==0&&z.nodeType!==3||(c=i+u),z!==n||e!==0&&z.nodeType!==3||(s=i+e),z.nodeType===3&&(i+=z.nodeValue.length),(p=z.firstChild)!==null;)b=z,z=p;for(;;){if(z===t)break l;if(b===a&&++m===u&&(c=i),b===n&&++E===e&&(s=i),(p=z.nextSibling)!==null)break;z=b,b=z.parentNode}z=p}a=c===-1||s===-1?null:{start:c,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(kc={focusedElem:t,selectionRange:a},Xn=!1,Mt=l;Mt!==null;)if(l=Mt,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Mt=t;else for(;Mt!==null;){switch(l=Mt,n=l.alternate,t=l.flags,l.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&n!==null){t=void 0,a=l,u=n.memoizedProps,n=n.memoizedState,e=a.stateNode;try{var x=Ca(a.type,u,a.elementType===a.type);t=e.getSnapshotBeforeUpdate(x,n),e.__reactInternalSnapshotBeforeUpdate=t}catch(Y){tt(a,a.return,Y)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,a=t.nodeType,a===9)Pc(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Pc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=l.sibling,t!==null){t.return=l.return,Mt=t;break}Mt=l.return}return x=Io,Io=!1,x}function td(t,l,a){var e=a.flags;switch(a.tag){case 0:case 11:case 15:jl(t,a),e&4&&su(5,a);break;case 1:if(jl(t,a),e&4)if(t=a.stateNode,l===null)try{t.componentDidMount()}catch(c){tt(a,a.return,c)}else{var u=Ca(a.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(u,l,t.__reactInternalSnapshotBeforeUpdate)}catch(c){tt(a,a.return,c)}}e&64&&Jo(a),e&512&&ja(a,a.return);break;case 3:if(jl(t,a),e&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Ko(e,t)}catch(c){tt(a,a.return,c)}}break;case 26:jl(t,a),e&512&&ja(a,a.return);break;case 27:case 5:jl(t,a),l===null&&e&4&&Wo(a),e&512&&ja(a,a.return);break;case 12:jl(t,a);break;case 13:jl(t,a),e&4&&ed(t,a);break;case 22:if(u=a.memoizedState!==null||ql,!u){l=l!==null&&l.memoizedState!==null||st;var n=ql,i=st;ql=u,(st=l)&&!i?ia(t,a,(a.subtreeFlags&8772)!==0):jl(t,a),ql=n,st=i}e&512&&(a.memoizedProps.mode==="manual"?ja(a,a.return):Vt(a,a.return));break;default:jl(t,a)}}function ld(t){var l=t.alternate;l!==null&&(t.alternate=null,ld(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&ni(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var bt=null,wt=!1;function Bl(t,l,a){for(a=a.child;a!==null;)ad(t,l,a),a=a.sibling}function ad(t,l,a){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Ne,a)}catch{}switch(a.tag){case 26:st||Vt(a,l),Bl(t,l,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:st||Vt(a,l);var e=bt,u=wt;for(bt=a.stateNode,Bl(t,l,a),a=a.stateNode,l=a.attributes;l.length;)a.removeAttributeNode(l[0]);ni(a),bt=e,wt=u;break;case 5:st||Vt(a,l);case 6:u=bt;var n=wt;if(bt=null,Bl(t,l,a),bt=u,wt=n,bt!==null)if(wt)try{t=bt,e=a.stateNode,t.nodeType===8?t.parentNode.removeChild(e):t.removeChild(e)}catch(i){tt(a,l,i)}else try{bt.removeChild(a.stateNode)}catch(i){tt(a,l,i)}break;case 18:bt!==null&&(wt?(l=bt,a=a.stateNode,l.nodeType===8?Fc(l.parentNode,a):l.nodeType===1&&Fc(l,a),_u(l)):Fc(bt,a.stateNode));break;case 4:e=bt,u=wt,bt=a.stateNode.containerInfo,wt=!0,Bl(t,l,a),bt=e,wt=u;break;case 0:case 11:case 14:case 15:st||na(2,a,l),st||na(4,a,l),Bl(t,l,a);break;case 1:st||(Vt(a,l),e=a.stateNode,typeof e.componentWillUnmount=="function"&&ko(a,l,e)),Bl(t,l,a);break;case 21:Bl(t,l,a);break;case 22:st||Vt(a,l),st=(e=st)||a.memoizedState!==null,Bl(t,l,a),st=e;break;default:Bl(t,l,a)}}function ed(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_u(t)}catch(a){tt(l,l.return,a)}}function dm(t){switch(t.tag){case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new Po),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new Po),l;default:throw Error(o(435,t.tag))}}function pc(t,l){var a=dm(t);l.forEach(function(e){var u=Mm.bind(null,t,e);a.has(e)||(a.add(e),e.then(u,u))})}function al(t,l){var a=l.deletions;if(a!==null)for(var e=0;e<a.length;e++){var u=a[e],n=t,i=l,c=i;t:for(;c!==null;){switch(c.tag){case 27:case 5:bt=c.stateNode,wt=!1;break t;case 3:bt=c.stateNode.containerInfo,wt=!0;break t;case 4:bt=c.stateNode.containerInfo,wt=!0;break t}c=c.return}if(bt===null)throw Error(o(160));ad(n,i,u),bt=null,wt=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)ud(l,t),l=l.sibling}var rl=null;function ud(t,l){var a=t.alternate,e=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:al(l,t),el(t),e&4&&(na(3,t,t.return),su(3,t),na(5,t,t.return));break;case 1:al(l,t),el(t),e&512&&(st||a===null||Vt(a,a.return)),e&64&&ql&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?e:a.concat(e))));break;case 26:var u=rl;if(al(l,t),el(t),e&512&&(st||a===null||Vt(a,a.return)),e&4){var n=a!==null?a.memoizedState:null;if(e=t.memoizedState,a===null)if(e===null)if(t.stateNode===null){t:{e=t.type,a=t.memoizedProps,u=u.ownerDocument||u;l:switch(e){case"title":n=u.getElementsByTagName("title")[0],(!n||n[qe]||n[Ut]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=u.createElement(e),u.head.insertBefore(n,u.querySelector("head > title"))),Ot(n,e,a),n[Ut]=t,At(n),e=n;break t;case"link":var i=Wd("link","href",u).get(e+(a.href||""));if(i){for(var c=0;c<i.length;c++)if(n=i[c],n.getAttribute("href")===(a.href==null?null:a.href)&&n.getAttribute("rel")===(a.rel==null?null:a.rel)&&n.getAttribute("title")===(a.title==null?null:a.title)&&n.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(c,1);break l}}n=u.createElement(e),Ot(n,e,a),u.head.appendChild(n);break;case"meta":if(i=Wd("meta","content",u).get(e+(a.content||""))){for(c=0;c<i.length;c++)if(n=i[c],n.getAttribute("content")===(a.content==null?null:""+a.content)&&n.getAttribute("name")===(a.name==null?null:a.name)&&n.getAttribute("property")===(a.property==null?null:a.property)&&n.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&n.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(c,1);break l}}n=u.createElement(e),Ot(n,e,a),u.head.appendChild(n);break;default:throw Error(o(468,e))}n[Ut]=t,At(n),e=n}t.stateNode=e}else $d(u,t.type,t.stateNode);else t.stateNode=kd(u,e,t.memoizedProps);else n!==e?(n===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):n.count--,e===null?$d(u,t.type,t.stateNode):kd(u,e,t.memoizedProps)):e===null&&t.stateNode!==null&&$o(t,t.memoizedProps,a.memoizedProps)}break;case 27:if(e&4&&t.alternate===null){u=t.stateNode,n=t.memoizedProps;try{for(var s=u.firstChild;s;){var m=s.nextSibling,E=s.nodeName;s[qe]||E==="HEAD"||E==="BODY"||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&s.rel.toLowerCase()==="stylesheet"||u.removeChild(s),s=m}for(var z=t.type,b=u.attributes;b.length;)u.removeAttributeNode(b[0]);Ot(u,z,n),u[Ut]=t,u[qt]=n}catch(x){tt(t,t.return,x)}}case 5:if(al(l,t),el(t),e&512&&(st||a===null||Vt(a,a.return)),t.flags&32){u=t.stateNode;try{Ia(u,"")}catch(x){tt(t,t.return,x)}}e&4&&t.stateNode!=null&&(u=t.memoizedProps,$o(t,u,a!==null?a.memoizedProps:u)),e&1024&&(Sc=!0);break;case 6:if(al(l,t),el(t),e&4){if(t.stateNode===null)throw Error(o(162));e=t.memoizedProps,a=t.stateNode;try{a.nodeValue=e}catch(x){tt(t,t.return,x)}}break;case 3:if(jn=null,u=rl,rl=qn(l.containerInfo),al(l,t),rl=u,el(t),e&4&&a!==null&&a.memoizedState.isDehydrated)try{_u(l.containerInfo)}catch(x){tt(t,t.return,x)}Sc&&(Sc=!1,nd(t));break;case 4:e=rl,rl=qn(t.stateNode.containerInfo),al(l,t),el(t),rl=e;break;case 12:al(l,t),el(t);break;case 13:al(l,t),el(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(xc=bl()),e&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,pc(t,e)));break;case 22:if(e&512&&(st||a===null||Vt(a,a.return)),s=t.memoizedState!==null,m=a!==null&&a.memoizedState!==null,E=ql,z=st,ql=E||s,st=z||m,al(l,t),st=z,ql=E,el(t),l=t.stateNode,l._current=t,l._visibility&=-3,l._visibility|=l._pendingVisibility&2,e&8192&&(l._visibility=s?l._visibility&-2:l._visibility|1,s&&(l=ql||st,a===null||m||l||ye(t)),t.memoizedProps===null||t.memoizedProps.mode!=="manual"))t:for(a=null,l=t;;){if(l.tag===5||l.tag===26||l.tag===27){if(a===null){m=a=l;try{if(u=m.stateNode,s)n=u.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{i=m.stateNode,c=m.memoizedProps.style;var p=c!=null&&c.hasOwnProperty("display")?c.display:null;i.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(x){tt(m,m.return,x)}}}else if(l.tag===6){if(a===null){m=l;try{m.stateNode.nodeValue=s?"":m.memoizedProps}catch(x){tt(m,m.return,x)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;a===l&&(a=null),l=l.return}a===l&&(a=null),l.sibling.return=l.return,l=l.sibling}e&4&&(e=t.updateQueue,e!==null&&(a=e.retryQueue,a!==null&&(e.retryQueue=null,pc(t,a))));break;case 19:al(l,t),el(t),e&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,pc(t,e)));break;case 21:break;default:al(l,t),el(t)}}function el(t){var l=t.flags;if(l&2){try{if(t.tag!==27){t:{for(var a=t.return;a!==null;){if(Fo(a)){var e=a;break t}a=a.return}throw Error(o(160))}switch(e.tag){case 27:var u=e.stateNode,n=gc(t);pn(t,n,u);break;case 5:var i=e.stateNode;e.flags&32&&(Ia(i,""),e.flags&=-33);var c=gc(t);pn(t,c,i);break;case 3:case 4:var s=e.stateNode.containerInfo,m=gc(t);bc(t,m,s);break;default:throw Error(o(161))}}}catch(E){tt(t,t.return,E)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function nd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;nd(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function jl(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)td(t,l.alternate,l),l=l.sibling}function ye(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:na(4,l,l.return),ye(l);break;case 1:Vt(l,l.return);var a=l.stateNode;typeof a.componentWillUnmount=="function"&&ko(l,l.return,a),ye(l);break;case 26:case 27:case 5:Vt(l,l.return),ye(l);break;case 22:Vt(l,l.return),l.memoizedState===null&&ye(l);break;default:ye(l)}t=t.sibling}}function ia(t,l,a){for(a=a&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var e=l.alternate,u=t,n=l,i=n.flags;switch(n.tag){case 0:case 11:case 15:ia(u,n,a),su(4,n);break;case 1:if(ia(u,n,a),e=n,u=e.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(m){tt(e,e.return,m)}if(e=n,u=e.updateQueue,u!==null){var c=e.stateNode;try{var s=u.shared.hiddenCallbacks;if(s!==null)for(u.shared.hiddenCallbacks=null,u=0;u<s.length;u++)wo(s[u],c)}catch(m){tt(e,e.return,m)}}a&&i&64&&Jo(n),ja(n,n.return);break;case 26:case 27:case 5:ia(u,n,a),a&&e===null&&i&4&&Wo(n),ja(n,n.return);break;case 12:ia(u,n,a);break;case 13:ia(u,n,a),a&&i&4&&ed(u,n);break;case 22:n.memoizedState===null&&ia(u,n,a),ja(n,n.return);break;default:ia(u,n,a)}l=l.sibling}}function Ec(t,l){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Ie(a))}function Ac(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ie(t))}function ca(t,l,a,e){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)id(t,l,a,e),l=l.sibling}function id(t,l,a,e){var u=l.flags;switch(l.tag){case 0:case 11:case 15:ca(t,l,a,e),u&2048&&su(9,l);break;case 3:ca(t,l,a,e),u&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ie(t)));break;case 12:if(u&2048){ca(t,l,a,e),t=l.stateNode;try{var n=l.memoizedProps,i=n.id,c=n.onPostCommit;typeof c=="function"&&c(i,l.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(s){tt(l,l.return,s)}}else ca(t,l,a,e);break;case 23:break;case 22:n=l.stateNode,l.memoizedState!==null?n._visibility&4?ca(t,l,a,e):ou(t,l):n._visibility&4?ca(t,l,a,e):(n._visibility|=4,ge(t,l,a,e,(l.subtreeFlags&10256)!==0)),u&2048&&Ec(l.alternate,l);break;case 24:ca(t,l,a,e),u&2048&&Ac(l.alternate,l);break;default:ca(t,l,a,e)}}function ge(t,l,a,e,u){for(u=u&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var n=t,i=l,c=a,s=e,m=i.flags;switch(i.tag){case 0:case 11:case 15:ge(n,i,c,s,u),su(8,i);break;case 23:break;case 22:var E=i.stateNode;i.memoizedState!==null?E._visibility&4?ge(n,i,c,s,u):ou(n,i):(E._visibility|=4,ge(n,i,c,s,u)),u&&m&2048&&Ec(i.alternate,i);break;case 24:ge(n,i,c,s,u),u&&m&2048&&Ac(i.alternate,i);break;default:ge(n,i,c,s,u)}l=l.sibling}}function ou(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var a=t,e=l,u=e.flags;switch(e.tag){case 22:ou(a,e),u&2048&&Ec(e.alternate,e);break;case 24:ou(a,e),u&2048&&Ac(e.alternate,e);break;default:ou(a,e)}l=l.sibling}}var du=8192;function be(t){if(t.subtreeFlags&du)for(t=t.child;t!==null;)cd(t),t=t.sibling}function cd(t){switch(t.tag){case 26:be(t),t.flags&du&&t.memoizedState!==null&&Im(rl,t.memoizedState,t.memoizedProps);break;case 5:be(t);break;case 3:case 4:var l=rl;rl=qn(t.stateNode.containerInfo),be(t),rl=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=du,du=16777216,be(t),du=l):be(t));break;default:be(t)}}function fd(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function ru(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var a=0;a<l.length;a++){var e=l[a];Mt=e,od(e,t)}fd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sd(t),t=t.sibling}function sd(t){switch(t.tag){case 0:case 11:case 15:ru(t),t.flags&2048&&na(9,t,t.return);break;case 3:ru(t);break;case 12:ru(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&4&&(t.return===null||t.return.tag!==13)?(l._visibility&=-5,En(t)):ru(t);break;default:ru(t)}}function En(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var a=0;a<l.length;a++){var e=l[a];Mt=e,od(e,t)}fd(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:na(8,l,l.return),En(l);break;case 22:a=l.stateNode,a._visibility&4&&(a._visibility&=-5,En(l));break;default:En(l)}t=t.sibling}}function od(t,l){for(;Mt!==null;){var a=Mt;switch(a.tag){case 0:case 11:case 15:na(8,a,l);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var e=a.memoizedState.cachePool.pool;e!=null&&e.refCount++}break;case 24:Ie(a.memoizedState.cache)}if(e=a.child,e!==null)e.return=a,Mt=e;else t:for(a=t;Mt!==null;){e=Mt;var u=e.sibling,n=e.return;if(ld(e),e===a){Mt=null;break t}if(u!==null){u.return=n,Mt=u;break t}Mt=n}}}function rm(t,l,a,e){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=e,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ul(t,l,a,e){return new rm(t,l,a,e)}function zc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function fa(t,l){var a=t.alternate;return a===null?(a=ul(t.tag,l,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=l,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&31457280,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,l=t.dependencies,a.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function dd(t,l){t.flags&=31457282;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,l=a.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function An(t,l,a,e,u,n){var i=0;if(e=t,typeof t=="function")zc(t)&&(i=1);else if(typeof t=="string")i=Fm(t,a,gl.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case N:return Ya(a.children,u,n,l);case T:i=8,u|=24;break;case R:return t=ul(12,a,l,u|2),t.elementType=R,t.lanes=n,t;case xt:return t=ul(13,a,l,u),t.elementType=xt,t.lanes=n,t;case Gt:return t=ul(19,a,l,u),t.elementType=Gt,t.lanes=n,t;case Xt:return rd(a,u,n,l);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case F:case q:i=10;break t;case L:i=9;break t;case rt:i=11;break t;case Nt:i=14;break t;case vt:i=16,e=null;break t}i=29,a=Error(o(130,t===null?"null":typeof t,"")),e=null}return l=ul(i,a,l,u),l.elementType=t,l.type=e,l.lanes=n,l}function Ya(t,l,a,e){return t=ul(7,t,e,l),t.lanes=a,t}function rd(t,l,a,e){t=ul(22,t,e,l),t.elementType=Xt,t.lanes=a;var u={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var n=u._current;if(n===null)throw Error(o(456));if((u._pendingVisibility&2)===0){var i=$l(n,2);i!==null&&(u._pendingVisibility|=2,Ct(i,n,2))}},attach:function(){var n=u._current;if(n===null)throw Error(o(456));if((u._pendingVisibility&2)!==0){var i=$l(n,2);i!==null&&(u._pendingVisibility&=-3,Ct(i,n,2))}}};return t.stateNode=u,t}function Mc(t,l,a){return t=ul(6,t,null,l),t.lanes=a,t}function Tc(t,l,a){return l=ul(4,t.children!==null?t.children:[],t.key,l),l.lanes=a,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}function Yl(t){t.flags|=4}function md(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Fd(l)){if(l=ll.current,l!==null&&((w&4194176)===w?pl!==null:(w&62914560)!==w&&(w&536870912)===0||l!==pl))throw $e=Ui,xs;t.flags|=8192}}function zn(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?Uf():536870912,t.lanes|=l,pe|=l)}function mu(t,l){if(!J)switch(t.tailMode){case"hidden":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var e=null;a!==null;)a.alternate!==null&&(e=a),a=a.sibling;e===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:e.sibling=null}}function ct(t){var l=t.alternate!==null&&t.alternate.child===t.child,a=0,e=0;if(l)for(var u=t.child;u!==null;)a|=u.lanes|u.childLanes,e|=u.subtreeFlags&31457280,e|=u.flags&31457280,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)a|=u.lanes|u.childLanes,e|=u.subtreeFlags,e|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=e,t.childLanes=a,l}function mm(t,l,a){var e=l.pendingProps;switch(Oi(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(l),null;case 1:return ct(l),null;case 3:return a=l.stateNode,e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Cl(pt),Ja(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ke(l)?Yl(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,dl!==null&&(Rc(dl),dl=null))),ct(l),null;case 26:return a=l.memoizedState,t===null?(Yl(l),a!==null?(ct(l),md(l,a)):(ct(l),l.flags&=-16777217)):a?a!==t.memoizedState?(Yl(l),ct(l),md(l,a)):(ct(l),l.flags&=-16777217):(t.memoizedProps!==e&&Yl(l),ct(l),l.flags&=-16777217),null;case 27:Cu(l),a=Kl.current;var u=l.type;if(t!==null&&l.stateNode!=null)t.memoizedProps!==e&&Yl(l);else{if(!e){if(l.stateNode===null)throw Error(o(166));return ct(l),null}t=gl.current,Ke(l)?_s(l):(t=Zd(u,e,a),l.stateNode=t,Yl(l))}return ct(l),null;case 5:if(Cu(l),a=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==e&&Yl(l);else{if(!e){if(l.stateNode===null)throw Error(o(166));return ct(l),null}if(t=gl.current,Ke(l))_s(l);else{switch(u=Cn(Kl.current),t){case 1:t=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:t=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":t=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":t=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":t=u.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof e.is=="string"?u.createElement("select",{is:e.is}):u.createElement("select"),e.multiple?t.multiple=!0:e.size&&(t.size=e.size);break;default:t=typeof e.is=="string"?u.createElement(a,{is:e.is}):u.createElement(a)}}t[Ut]=l,t[qt]=e;t:for(u=l.child;u!==null;){if(u.tag===5||u.tag===6)t.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break t;for(;u.sibling===null;){if(u.return===null||u.return===l)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}l.stateNode=t;t:switch(Ot(t,a,e),a){case"button":case"input":case"select":case"textarea":t=!!e.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&Yl(l)}}return ct(l),l.flags&=-16777217,null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==e&&Yl(l);else{if(typeof e!="string"&&l.stateNode===null)throw Error(o(166));if(t=Kl.current,Ke(l)){if(t=l.stateNode,a=l.memoizedProps,e=null,u=Rt,u!==null)switch(u.tag){case 27:case 5:e=u.memoizedProps}t[Ut]=l,t=!!(t.nodeValue===a||e!==null&&e.suppressHydrationWarning===!0||jd(t.nodeValue,a)),t||Oa(l)}else t=Cn(t).createTextNode(e),t[Ut]=l,l.stateNode=t}return ct(l),null;case 13:if(e=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ke(l),e!==null&&e.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=l.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Ut]=l}else Je(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;ct(l),u=!1}else dl!==null&&(Rc(dl),dl=null),u=!0;if(!u)return l.flags&256?(Ul(l),l):(Ul(l),null)}if(Ul(l),(l.flags&128)!==0)return l.lanes=a,l;if(a=e!==null,t=t!==null&&t.memoizedState!==null,a){e=l.child,u=null,e.alternate!==null&&e.alternate.memoizedState!==null&&e.alternate.memoizedState.cachePool!==null&&(u=e.alternate.memoizedState.cachePool.pool);var n=null;e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==u&&(e.flags|=2048)}return a!==t&&a&&(l.child.flags|=8192),zn(l,l.updateQueue),ct(l),null;case 4:return Ja(),t===null&&Vc(l.stateNode.containerInfo),ct(l),null;case 10:return Cl(l.type),ct(l),null;case 19:if(Et(St),u=l.memoizedState,u===null)return ct(l),null;if(e=(l.flags&128)!==0,n=u.rendering,n===null)if(e)mu(u,!1);else{if(ot!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(n=nn(t),n!==null){for(l.flags|=128,mu(u,!1),t=n.updateQueue,l.updateQueue=t,zn(l,t),l.subtreeFlags=0,t=a,a=l.child;a!==null;)dd(a,t),a=a.sibling;return ut(St,St.current&1|2),l.child}t=t.sibling}u.tail!==null&&bl()>Mn&&(l.flags|=128,e=!0,mu(u,!1),l.lanes=4194304)}else{if(!e)if(t=nn(n),t!==null){if(l.flags|=128,e=!0,t=t.updateQueue,l.updateQueue=t,zn(l,t),mu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!n.alternate&&!J)return ct(l),null}else 2*bl()-u.renderingStartTime>Mn&&a!==536870912&&(l.flags|=128,e=!0,mu(u,!1),l.lanes=4194304);u.isBackwards?(n.sibling=l.child,l.child=n):(t=u.last,t!==null?t.sibling=n:l.child=n,u.last=n)}return u.tail!==null?(l=u.tail,u.rendering=l,u.tail=l.sibling,u.renderingStartTime=bl(),l.sibling=null,t=St.current,ut(St,e?t&1|2:t&1),l):(ct(l),null);case 22:case 23:return Ul(l),Ni(),e=l.memoizedState!==null,t!==null?t.memoizedState!==null!==e&&(l.flags|=8192):e&&(l.flags|=8192),e?(a&536870912)!==0&&(l.flags&128)===0&&(ct(l),l.subtreeFlags&6&&(l.flags|=8192)):ct(l),a=l.updateQueue,a!==null&&zn(l,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),e=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),e!==a&&(l.flags|=2048),t!==null&&Et(Ua),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Cl(pt),ct(l),null;case 25:return null}throw Error(o(156,l.tag))}function hm(t,l){switch(Oi(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Cl(pt),Ja(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return Cu(l),null;case 13:if(Ul(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(o(340));Je()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return Et(St),null;case 4:return Ja(),null;case 10:return Cl(l.type),null;case 22:case 23:return Ul(l),Ni(),t!==null&&Et(Ua),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Cl(pt),null;case 25:return null;default:return null}}function hd(t,l){switch(Oi(l),l.tag){case 3:Cl(pt),Ja();break;case 26:case 27:case 5:Cu(l);break;case 4:Ja();break;case 13:Ul(l);break;case 19:Et(St);break;case 10:Cl(l.type);break;case 22:case 23:Ul(l),Ni(),t!==null&&Et(Ua);break;case 24:Cl(pt)}}var vm={getCacheForType:function(t){var l=Ht(pt),a=l.data.get(t);return a===void 0&&(a=t(),l.data.set(t,a)),a}},ym=typeof WeakMap=="function"?WeakMap:Map,ft=0,lt=null,Z=null,w=0,at=0,Kt=null,Gl=!1,Se=!1,Dc=!1,Xl=0,ot=0,sa=0,Ga=0,_c=0,nl=0,pe=0,hu=null,Al=null,Oc=!1,xc=0,Mn=1/0,Tn=null,oa=null,Dn=!1,Xa=null,vu=0,Uc=0,Hc=null,yu=0,Nc=null;function Jt(){if((ft&2)!==0&&w!==0)return w&-w;if(B.T!==null){var t=de;return t!==0?t:Xc()}return Cf()}function vd(){nl===0&&(nl=(w&536870912)===0||J?xf():536870912);var t=ll.current;return t!==null&&(t.flags|=32),nl}function Ct(t,l,a){(t===lt&&at===2||t.cancelPendingCommit!==null)&&(Ee(t,0),Ql(t,w,nl,!1)),Ce(t,a),((ft&2)===0||t!==lt)&&(t===lt&&((ft&2)===0&&(Ga|=a),ot===4&&Ql(t,w,nl,!1)),zl(t))}function yd(t,l,a){if((ft&6)!==0)throw Error(o(327));var e=!a&&(l&60)===0&&(l&t.expiredLanes)===0||Re(t,l),u=e?Sm(t,l):Bc(t,l,!0),n=e;do{if(u===0){Se&&!e&&Ql(t,l,0,!1);break}else if(u===6)Ql(t,l,0,!Gl);else{if(a=t.current.alternate,n&&!gm(a)){u=Bc(t,l,!1),n=!1;continue}if(u===2){if(n=l,t.errorRecoveryDisabledLanes&n)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var c=t;u=hu;var s=c.current.memoizedState.isDehydrated;if(s&&(Ee(c,i).flags|=256),i=Bc(c,i,!1),i!==2){if(Dc&&!s){c.errorRecoveryDisabledLanes|=n,Ga|=n,u=4;break t}n=Al,Al=u,n!==null&&Rc(n)}u=i}if(n=!1,u!==2)continue}}if(u===1){Ee(t,0),Ql(t,l,0,!0);break}t:{switch(e=t,u){case 0:case 1:throw Error(o(345));case 4:if((l&4194176)===l){Ql(e,l,nl,!Gl);break t}break;case 2:Al=null;break;case 3:case 5:break;default:throw Error(o(329))}if(e.finishedWork=a,e.finishedLanes=l,(l&62914560)===l&&(n=xc+300-bl(),10<n)){if(Ql(e,l,nl,!Gl),Yu(e,0)!==0)break t;e.timeoutHandle=Xd(gd.bind(null,e,a,Al,Tn,Oc,l,nl,Ga,pe,Gl,2,-0,0),n);break t}gd(e,a,Al,Tn,Oc,l,nl,Ga,pe,Gl,0,-0,0)}}break}while(!0);zl(t)}function Rc(t){Al===null?Al=t:Al.push.apply(Al,t)}function gd(t,l,a,e,u,n,i,c,s,m,E,z,b){var p=l.subtreeFlags;if((p&8192||(p&16785408)===16785408)&&(Au={stylesheets:null,count:0,unsuspend:Pm},cd(l),l=th(),l!==null)){t.cancelPendingCommit=l(Md.bind(null,t,a,e,u,i,c,s,1,z,b)),Ql(t,n,i,!m);return}Md(t,a,e,u,i,c,s,E,z,b)}function gm(t){for(var l=t;;){var a=l.tag;if((a===0||a===11||a===15)&&l.flags&16384&&(a=l.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var e=0;e<a.length;e++){var u=a[e],n=u.getSnapshot;u=u.value;try{if(!Zt(n(),u))return!1}catch{return!1}}if(a=l.child,l.subtreeFlags&16384&&a!==null)a.return=l,l=a;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Ql(t,l,a,e){l&=~_c,l&=~Ga,t.suspendedLanes|=l,t.pingedLanes&=~l,e&&(t.warmLanes|=l),e=t.expirationTimes;for(var u=l;0<u;){var n=31-Lt(u),i=1<<n;e[n]=-1,u&=~i}a!==0&&Hf(t,a,l)}function _n(){return(ft&6)===0?(gu(0),!1):!0}function Cc(){if(Z!==null){if(at===0)var t=Z.return;else t=Z,Rl=qa=null,Xi(t),se=null,Fe=0,t=Z;for(;t!==null;)hd(t.alternate,t),t=t.return;Z=null}}function Ee(t,l){t.finishedWork=null,t.finishedLanes=0;var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Bm(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Cc(),lt=t,Z=a=fa(t.current,null),w=l,at=0,Kt=null,Gl=!1,Se=Re(t,l),Dc=!1,pe=nl=_c=Ga=sa=ot=0,Al=hu=null,Oc=!1,(l&8)!==0&&(l|=l&32);var e=t.entangledLanes;if(e!==0)for(t=t.entanglements,e&=l;0<e;){var u=31-Lt(e),n=1<<u;l|=t[u],e&=~n}return Xl=l,$u(),a}function bd(t,l){X=null,B.H=El,l===We?(l=Ns(),at=3):l===xs?(l=Ns(),at=4):at=l===Ho?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Kt=l,Z===null&&(ot=1,gn(t,Pt(l,t.current)))}function Sd(){var t=B.H;return B.H=El,t===null?El:t}function pd(){var t=B.A;return B.A=vm,t}function qc(){ot=4,Gl||(w&4194176)!==w&&ll.current!==null||(Se=!0),(sa&134217727)===0&&(Ga&134217727)===0||lt===null||Ql(lt,w,nl,!1)}function Bc(t,l,a){var e=ft;ft|=2;var u=Sd(),n=pd();(lt!==t||w!==l)&&(Tn=null,Ee(t,l)),l=!1;var i=ot;t:do try{if(at!==0&&Z!==null){var c=Z,s=Kt;switch(at){case 8:Cc(),i=6;break t;case 3:case 2:case 6:ll.current===null&&(l=!0);var m=at;if(at=0,Kt=null,Ae(t,c,s,m),a&&Se){i=0;break t}break;default:m=at,at=0,Kt=null,Ae(t,c,s,m)}}bm(),i=ot;break}catch(E){bd(t,E)}while(!0);return l&&t.shellSuspendCounter++,Rl=qa=null,ft=e,B.H=u,B.A=n,Z===null&&(lt=null,w=0,$u()),i}function bm(){for(;Z!==null;)Ed(Z)}function Sm(t,l){var a=ft;ft|=2;var e=Sd(),u=pd();lt!==t||w!==l?(Tn=null,Mn=bl()+500,Ee(t,l)):Se=Re(t,l);t:do try{if(at!==0&&Z!==null){l=Z;var n=Kt;l:switch(at){case 1:at=0,Kt=null,Ae(t,l,n,1);break;case 2:if(Us(n)){at=0,Kt=null,Ad(l);break}l=function(){at===2&&lt===t&&(at=7),zl(t)},n.then(l,l);break t;case 3:at=7;break t;case 4:at=5;break t;case 7:Us(n)?(at=0,Kt=null,Ad(l)):(at=0,Kt=null,Ae(t,l,n,7));break;case 5:var i=null;switch(Z.tag){case 26:i=Z.memoizedState;case 5:case 27:var c=Z;if(!i||Fd(i)){at=0,Kt=null;var s=c.sibling;if(s!==null)Z=s;else{var m=c.return;m!==null?(Z=m,On(m)):Z=null}break l}}at=0,Kt=null,Ae(t,l,n,5);break;case 6:at=0,Kt=null,Ae(t,l,n,6);break;case 8:Cc(),ot=6;break t;default:throw Error(o(462))}}pm();break}catch(E){bd(t,E)}while(!0);return Rl=qa=null,B.H=e,B.A=u,ft=a,Z!==null?0:(lt=null,w=0,$u(),ot)}function pm(){for(;Z!==null&&!Lr();)Ed(Z)}function Ed(t){var l=Zo(t.alternate,t,Xl);t.memoizedProps=t.pendingProps,l===null?On(t):Z=l}function Ad(t){var l=t,a=l.alternate;switch(l.tag){case 15:case 0:l=jo(a,l,l.pendingProps,l.type,void 0,w);break;case 11:l=jo(a,l,l.pendingProps,l.type.render,l.ref,w);break;case 5:Xi(l);default:hd(a,l),l=Z=dd(l,Xl),l=Zo(a,l,Xl)}t.memoizedProps=t.pendingProps,l===null?On(t):Z=l}function Ae(t,l,a,e){Rl=qa=null,Xi(l),se=null,Fe=0;var u=l.return;try{if(fm(t,u,l,a,w)){ot=1,gn(t,Pt(a,t.current)),Z=null;return}}catch(n){if(u!==null)throw Z=u,n;ot=1,gn(t,Pt(a,t.current)),Z=null;return}l.flags&32768?(J||e===1?t=!0:Se||(w&536870912)!==0?t=!1:(Gl=t=!0,(e===2||e===3||e===6)&&(e=ll.current,e!==null&&e.tag===13&&(e.flags|=16384))),zd(l,t)):On(l)}function On(t){var l=t;do{if((l.flags&32768)!==0){zd(l,Gl);return}t=l.return;var a=mm(l.alternate,l,Xl);if(a!==null){Z=a;return}if(l=l.sibling,l!==null){Z=l;return}Z=l=t}while(l!==null);ot===0&&(ot=5)}function zd(t,l){do{var a=hm(t.alternate,t);if(a!==null){a.flags&=32767,Z=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!l&&(t=t.sibling,t!==null)){Z=t;return}Z=t=a}while(t!==null);ot=6,Z=null}function Md(t,l,a,e,u,n,i,c,s,m){var E=B.T,z=K.p;try{K.p=2,B.T=null,Em(t,l,a,e,z,u,n,i,c,s,m)}finally{B.T=E,K.p=z}}function Em(t,l,a,e,u,n,i,c){do ze();while(Xa!==null);if((ft&6)!==0)throw Error(o(327));var s=t.finishedWork;if(e=t.finishedLanes,s===null)return null;if(t.finishedWork=null,t.finishedLanes=0,s===t.current)throw Error(o(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var m=s.lanes|s.childLanes;if(m|=Ti,Ir(t,e,m,n,i,c),t===lt&&(Z=lt=null,w=0),(s.subtreeFlags&10256)===0&&(s.flags&10256)===0||Dn||(Dn=!0,Uc=m,Hc=a,Tm(qu,function(){return ze(),null})),a=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||a?(a=B.T,B.T=null,n=K.p,K.p=2,i=ft,ft|=4,om(t,s),ud(s,t),w0(kc,t.containerInfo),Xn=!!Jc,kc=Jc=null,t.current=s,td(t,s.alternate,s),Zr(),ft=i,K.p=n,B.T=a):t.current=s,Dn?(Dn=!1,Xa=t,vu=e):Td(t,m),m=t.pendingLanes,m===0&&(oa=null),kr(s.stateNode),zl(t),l!==null)for(u=t.onRecoverableError,s=0;s<l.length;s++)m=l[s],u(m.value,{componentStack:m.stack});return(vu&3)!==0&&ze(),m=t.pendingLanes,(e&4194218)!==0&&(m&42)!==0?t===Nc?yu++:(yu=0,Nc=t):yu=0,gu(0),null}function Td(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Ie(l)))}function ze(){if(Xa!==null){var t=Xa,l=Uc;Uc=0;var a=Rf(vu),e=B.T,u=K.p;try{if(K.p=32>a?32:a,B.T=null,Xa===null)var n=!1;else{a=Hc,Hc=null;var i=Xa,c=vu;if(Xa=null,vu=0,(ft&6)!==0)throw Error(o(331));var s=ft;if(ft|=4,sd(i.current),id(i,i.current,c,a),ft=s,gu(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Ne,i)}catch{}n=!0}return n}finally{K.p=u,B.T=e,Td(t,l)}}return!1}function Dd(t,l,a){l=Pt(a,l),l=tc(t.stateNode,l,2),t=ua(t,l,2),t!==null&&(Ce(t,2),zl(t))}function tt(t,l,a){if(t.tag===3)Dd(t,t,a);else for(;l!==null;){if(l.tag===3){Dd(l,t,a);break}else if(l.tag===1){var e=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof e.componentDidCatch=="function"&&(oa===null||!oa.has(e))){t=Pt(a,t),a=xo(2),e=ua(l,a,2),e!==null&&(Uo(a,e,l,t),Ce(e,2),zl(e));break}}l=l.return}}function jc(t,l,a){var e=t.pingCache;if(e===null){e=t.pingCache=new ym;var u=new Set;e.set(l,u)}else u=e.get(l),u===void 0&&(u=new Set,e.set(l,u));u.has(a)||(Dc=!0,u.add(a),t=Am.bind(null,t,l,a),l.then(t,t))}function Am(t,l,a){var e=t.pingCache;e!==null&&e.delete(l),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,lt===t&&(w&a)===a&&(ot===4||ot===3&&(w&62914560)===w&&300>bl()-xc?(ft&2)===0&&Ee(t,0):_c|=a,pe===w&&(pe=0)),zl(t)}function _d(t,l){l===0&&(l=Uf()),t=$l(t,l),t!==null&&(Ce(t,l),zl(t))}function zm(t){var l=t.memoizedState,a=0;l!==null&&(a=l.retryLane),_d(t,a)}function Mm(t,l){var a=0;switch(t.tag){case 13:var e=t.stateNode,u=t.memoizedState;u!==null&&(a=u.retryLane);break;case 19:e=t.stateNode;break;case 22:e=t.stateNode._retryCache;break;default:throw Error(o(314))}e!==null&&e.delete(l),_d(t,a)}function Tm(t,l){return li(t,l)}var xn=null,Me=null,Yc=!1,Un=!1,Gc=!1,Qa=0;function zl(t){t!==Me&&t.next===null&&(Me===null?xn=Me=t:Me=Me.next=t),Un=!0,Yc||(Yc=!0,_m(Dm))}function gu(t,l){if(!Gc&&Un){Gc=!0;do for(var a=!1,e=xn;e!==null;){if(t!==0){var u=e.pendingLanes;if(u===0)var n=0;else{var i=e.suspendedLanes,c=e.pingedLanes;n=(1<<31-Lt(42|t)+1)-1,n&=u&~(i&~c),n=n&201326677?n&201326677|1:n?n|2:0}n!==0&&(a=!0,Ud(e,n))}else n=w,n=Yu(e,e===lt?n:0),(n&3)===0||Re(e,n)||(a=!0,Ud(e,n));e=e.next}while(a);Gc=!1}}function Dm(){Un=Yc=!1;var t=0;Qa!==0&&(qm()&&(t=Qa),Qa=0);for(var l=bl(),a=null,e=xn;e!==null;){var u=e.next,n=Od(e,l);n===0?(e.next=null,a===null?xn=u:a.next=u,u===null&&(Me=a)):(a=e,(t!==0||(n&3)!==0)&&(Un=!0)),e=u}gu(t)}function Od(t,l){for(var a=t.suspendedLanes,e=t.pingedLanes,u=t.expirationTimes,n=t.pendingLanes&-62914561;0<n;){var i=31-Lt(n),c=1<<i,s=u[i];s===-1?((c&a)===0||(c&e)!==0)&&(u[i]=Pr(c,l)):s<=l&&(t.expiredLanes|=c),n&=~c}if(l=lt,a=w,a=Yu(t,t===l?a:0),e=t.callbackNode,a===0||t===l&&at===2||t.cancelPendingCommit!==null)return e!==null&&e!==null&&ai(e),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Re(t,a)){if(l=a&-a,l===t.callbackPriority)return l;switch(e!==null&&ai(e),Rf(a)){case 2:case 8:a=_f;break;case 32:a=qu;break;case 268435456:a=Of;break;default:a=qu}return e=xd.bind(null,t),a=li(a,e),t.callbackPriority=l,t.callbackNode=a,l}return e!==null&&e!==null&&ai(e),t.callbackPriority=2,t.callbackNode=null,2}function xd(t,l){var a=t.callbackNode;if(ze()&&t.callbackNode!==a)return null;var e=w;return e=Yu(t,t===lt?e:0),e===0?null:(yd(t,e,l),Od(t,bl()),t.callbackNode!=null&&t.callbackNode===a?xd.bind(null,t):null)}function Ud(t,l){if(ze())return null;yd(t,l,!0)}function _m(t){jm(function(){(ft&6)!==0?li(Df,t):t()})}function Xc(){return Qa===0&&(Qa=xf()),Qa}function Hd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zu(""+t)}function Nd(t,l){var a=l.ownerDocument.createElement("input");return a.name=l.name,a.value=l.value,t.id&&a.setAttribute("form",t.id),l.parentNode.insertBefore(a,l),t=new FormData(t),a.parentNode.removeChild(a),t}function Om(t,l,a,e,u){if(l==="submit"&&a&&a.stateNode===u){var n=Hd((u[qt]||null).action),i=e.submitter;i&&(l=(l=i[qt]||null)?Hd(l.formAction):i.getAttribute("formAction"),l!==null&&(n=l,i=null));var c=new Ju("action","action",null,e,u);t.push({event:c,listeners:[{instance:null,listener:function(){if(e.defaultPrevented){if(Qa!==0){var s=i?Nd(u,i):new FormData(u);Wi(a,{pending:!0,data:s,method:u.method,action:n},null,s)}}else typeof n=="function"&&(c.preventDefault(),s=i?Nd(u,i):new FormData(u),Wi(a,{pending:!0,data:s,method:u.method,action:n},n,s))},currentTarget:u}]})}}for(var Qc=0;Qc<zs.length;Qc++){var Lc=zs[Qc],xm=Lc.toLowerCase(),Um=Lc[0].toUpperCase()+Lc.slice(1);ol(xm,"on"+Um)}ol(bs,"onAnimationEnd"),ol(Ss,"onAnimationIteration"),ol(ps,"onAnimationStart"),ol("dblclick","onDoubleClick"),ol("focusin","onFocus"),ol("focusout","onBlur"),ol(J0,"onTransitionRun"),ol(k0,"onTransitionStart"),ol(W0,"onTransitionCancel"),ol(Es,"onTransitionEnd"),Fa("onMouseEnter",["mouseout","mouseover"]),Fa("onMouseLeave",["mouseout","mouseover"]),Fa("onPointerEnter",["pointerout","pointerover"]),Fa("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bu="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(" "),Hm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bu));function Rd(t,l){l=(l&4)!==0;for(var a=0;a<t.length;a++){var e=t[a],u=e.event;e=e.listeners;t:{var n=void 0;if(l)for(var i=e.length-1;0<=i;i--){var c=e[i],s=c.instance,m=c.currentTarget;if(c=c.listener,s!==n&&u.isPropagationStopped())break t;n=c,u.currentTarget=m;try{n(u)}catch(E){yn(E)}u.currentTarget=null,n=s}else for(i=0;i<e.length;i++){if(c=e[i],s=c.instance,m=c.currentTarget,c=c.listener,s!==n&&u.isPropagationStopped())break t;n=c,u.currentTarget=m;try{n(u)}catch(E){yn(E)}u.currentTarget=null,n=s}}}}function V(t,l){var a=l[ui];a===void 0&&(a=l[ui]=new Set);var e=t+"__bubble";a.has(e)||(Cd(l,t,2,!1),a.add(e))}function Zc(t,l,a){var e=0;l&&(e|=4),Cd(a,t,e,l)}var Hn="_reactListening"+Math.random().toString(36).slice(2);function Vc(t){if(!t[Hn]){t[Hn]=!0,Bf.forEach(function(a){a!=="selectionchange"&&(Hm.has(a)||Zc(a,!1,t),Zc(a,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[Hn]||(l[Hn]=!0,Zc("selectionchange",!1,l))}}function Cd(t,l,a,e){switch(er(l)){case 2:var u=eh;break;case 8:u=uh;break;default:u=ef}a=u.bind(null,l,a,t),u=void 0,!ri||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(u=!0),e?u!==void 0?t.addEventListener(l,a,{capture:!0,passive:u}):t.addEventListener(l,a,!0):u!==void 0?t.addEventListener(l,a,{passive:u}):t.addEventListener(l,a,!1)}function wc(t,l,a,e,u){var n=e;if((l&1)===0&&(l&2)===0&&e!==null)t:for(;;){if(e===null)return;var i=e.tag;if(i===3||i===4){var c=e.stateNode.containerInfo;if(c===u||c.nodeType===8&&c.parentNode===u)break;if(i===4)for(i=e.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===u||s.nodeType===8&&s.parentNode===u))return;i=i.return}for(;c!==null;){if(i=Ea(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){e=n=i;continue t}c=c.parentNode}}e=e.return}kf(function(){var m=n,E=oi(a),z=[];t:{var b=As.get(t);if(b!==void 0){var p=Ju,x=t;switch(t){case"keypress":if(wu(a)===0)break t;case"keydown":case"keyup":p=M0;break;case"focusin":x="focus",p=yi;break;case"focusout":x="blur",p=yi;break;case"beforeblur":case"afterblur":p=yi;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=r0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=_0;break;case bs:case Ss:case ps:p=v0;break;case Es:p=x0;break;case"scroll":case"scrollend":p=o0;break;case"wheel":p=H0;break;case"copy":case"cut":case"paste":p=g0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=If;break;case"toggle":case"beforetoggle":p=R0}var Y=(l&4)!==0,dt=!Y&&(t==="scroll"||t==="scrollend"),h=Y?b!==null?b+"Capture":null:b;Y=[];for(var r=m,v;r!==null;){var A=r;if(v=A.stateNode,A=A.tag,A!==5&&A!==26&&A!==27||v===null||h===null||(A=je(r,h),A!=null&&Y.push(Su(r,A,v))),dt)break;r=r.return}0<Y.length&&(b=new p(b,x,null,a,E),z.push({event:b,listeners:Y}))}}if((l&7)===0){t:{if(b=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",b&&a!==si&&(x=a.relatedTarget||a.fromElement)&&(Ea(x)||x[ka]))break t;if((p||b)&&(b=E.window===E?E:(b=E.ownerDocument)?b.defaultView||b.parentWindow:window,p?(x=a.relatedTarget||a.toElement,p=m,x=x?Ea(x):null,x!==null&&(dt=j(x),Y=x.tag,x!==dt||Y!==5&&Y!==27&&Y!==6)&&(x=null)):(p=null,x=m),p!==x)){if(Y=Ff,A="onMouseLeave",h="onMouseEnter",r="mouse",(t==="pointerout"||t==="pointerover")&&(Y=If,A="onPointerLeave",h="onPointerEnter",r="pointer"),dt=p==null?b:Be(p),v=x==null?b:Be(x),b=new Y(A,r+"leave",p,a,E),b.target=dt,b.relatedTarget=v,A=null,Ea(E)===m&&(Y=new Y(h,r+"enter",x,a,E),Y.target=v,Y.relatedTarget=dt,A=Y),dt=A,p&&x)l:{for(Y=p,h=x,r=0,v=Y;v;v=Te(v))r++;for(v=0,A=h;A;A=Te(A))v++;for(;0<r-v;)Y=Te(Y),r--;for(;0<v-r;)h=Te(h),v--;for(;r--;){if(Y===h||h!==null&&Y===h.alternate)break l;Y=Te(Y),h=Te(h)}Y=null}else Y=null;p!==null&&qd(z,b,p,Y,!1),x!==null&&dt!==null&&qd(z,dt,x,Y,!0)}}t:{if(b=m?Be(m):window,p=b.nodeName&&b.nodeName.toLowerCase(),p==="select"||p==="input"&&b.type==="file")var O=cs;else if(ns(b))if(fs)O=Z0;else{O=Q0;var Q=X0}else p=b.nodeName,!p||p.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?m&&fi(m.elementType)&&(O=cs):O=L0;if(O&&(O=O(t,m))){is(z,O,a,E);break t}Q&&Q(t,b,m),t==="focusout"&&m&&b.type==="number"&&m.memoizedProps.value!=null&&ci(b,"number",b.value)}switch(Q=m?Be(m):window,t){case"focusin":(ns(Q)||Q.contentEditable==="true")&&(ee=Q,Ai=m,we=null);break;case"focusout":we=Ai=ee=null;break;case"mousedown":zi=!0;break;case"contextmenu":case"mouseup":case"dragend":zi=!1,ys(z,a,E);break;case"selectionchange":if(K0)break;case"keydown":case"keyup":ys(z,a,E)}var U;if(bi)t:{switch(t){case"compositionstart":var C="onCompositionStart";break t;case"compositionend":C="onCompositionEnd";break t;case"compositionupdate":C="onCompositionUpdate";break t}C=void 0}else ae?es(t,a)&&(C="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(C="onCompositionStart");C&&(ts&&a.locale!=="ko"&&(ae||C!=="onCompositionStart"?C==="onCompositionEnd"&&ae&&(U=Wf()):(Wl=E,mi="value"in Wl?Wl.value:Wl.textContent,ae=!0)),Q=Nn(m,C),0<Q.length&&(C=new Pf(C,t,null,a,E),z.push({event:C,listeners:Q}),U?C.data=U:(U=us(a),U!==null&&(C.data=U)))),(U=q0?B0(t,a):j0(t,a))&&(C=Nn(m,"onBeforeInput"),0<C.length&&(Q=new Pf("onBeforeInput","beforeinput",null,a,E),z.push({event:Q,listeners:C}),Q.data=U)),Om(z,t,m,a,E)}Rd(z,l)})}function Su(t,l,a){return{instance:t,listener:l,currentTarget:a}}function Nn(t,l){for(var a=l+"Capture",e=[];t!==null;){var u=t,n=u.stateNode;u=u.tag,u!==5&&u!==26&&u!==27||n===null||(u=je(t,a),u!=null&&e.unshift(Su(t,u,n)),u=je(t,l),u!=null&&e.push(Su(t,u,n))),t=t.return}return e}function Te(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function qd(t,l,a,e,u){for(var n=l._reactName,i=[];a!==null&&a!==e;){var c=a,s=c.alternate,m=c.stateNode;if(c=c.tag,s!==null&&s===e)break;c!==5&&c!==26&&c!==27||m===null||(s=m,u?(m=je(a,n),m!=null&&i.unshift(Su(a,m,s))):u||(m=je(a,n),m!=null&&i.push(Su(a,m,s)))),a=a.return}i.length!==0&&t.push({event:l,listeners:i})}var Nm=/\r\n?/g,Rm=/\u0000|\uFFFD/g;function Bd(t){return(typeof t=="string"?t:""+t).replace(Nm,`
`).replace(Rm,"")}function jd(t,l){return l=Bd(l),Bd(t)===l}function Rn(){}function I(t,l,a,e,u,n){switch(a){case"children":typeof e=="string"?l==="body"||l==="textarea"&&e===""||Ia(t,e):(typeof e=="number"||typeof e=="bigint")&&l!=="body"&&Ia(t,""+e);break;case"className":Xu(t,"class",e);break;case"tabIndex":Xu(t,"tabindex",e);break;case"dir":case"role":case"viewBox":case"width":case"height":Xu(t,a,e);break;case"style":Kf(t,e,n);break;case"data":if(l!=="object"){Xu(t,"data",e);break}case"src":case"href":if(e===""&&(l!=="a"||a!=="href")){t.removeAttribute(a);break}if(e==null||typeof e=="function"||typeof e=="symbol"||typeof e=="boolean"){t.removeAttribute(a);break}e=Zu(""+e),t.setAttribute(a,e);break;case"action":case"formAction":if(typeof e=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n=="function"&&(a==="formAction"?(l!=="input"&&I(t,l,"name",u.name,u,null),I(t,l,"formEncType",u.formEncType,u,null),I(t,l,"formMethod",u.formMethod,u,null),I(t,l,"formTarget",u.formTarget,u,null)):(I(t,l,"encType",u.encType,u,null),I(t,l,"method",u.method,u,null),I(t,l,"target",u.target,u,null)));if(e==null||typeof e=="symbol"||typeof e=="boolean"){t.removeAttribute(a);break}e=Zu(""+e),t.setAttribute(a,e);break;case"onClick":e!=null&&(t.onclick=Rn);break;case"onScroll":e!=null&&V("scroll",t);break;case"onScrollEnd":e!=null&&V("scrollend",t);break;case"dangerouslySetInnerHTML":if(e!=null){if(typeof e!="object"||!("__html"in e))throw Error(o(61));if(a=e.__html,a!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=a}}break;case"multiple":t.multiple=e&&typeof e!="function"&&typeof e!="symbol";break;case"muted":t.muted=e&&typeof e!="function"&&typeof e!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(e==null||typeof e=="function"||typeof e=="boolean"||typeof e=="symbol"){t.removeAttribute("xlink:href");break}a=Zu(""+e),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":e!=null&&typeof e!="function"&&typeof e!="symbol"?t.setAttribute(a,""+e):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":e&&typeof e!="function"&&typeof e!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":e===!0?t.setAttribute(a,""):e!==!1&&e!=null&&typeof e!="function"&&typeof e!="symbol"?t.setAttribute(a,e):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":e!=null&&typeof e!="function"&&typeof e!="symbol"&&!isNaN(e)&&1<=e?t.setAttribute(a,e):t.removeAttribute(a);break;case"rowSpan":case"start":e==null||typeof e=="function"||typeof e=="symbol"||isNaN(e)?t.removeAttribute(a):t.setAttribute(a,e);break;case"popover":V("beforetoggle",t),V("toggle",t),Gu(t,"popover",e);break;case"xlinkActuate":_l(t,"http://www.w3.org/1999/xlink","xlink:actuate",e);break;case"xlinkArcrole":_l(t,"http://www.w3.org/1999/xlink","xlink:arcrole",e);break;case"xlinkRole":_l(t,"http://www.w3.org/1999/xlink","xlink:role",e);break;case"xlinkShow":_l(t,"http://www.w3.org/1999/xlink","xlink:show",e);break;case"xlinkTitle":_l(t,"http://www.w3.org/1999/xlink","xlink:title",e);break;case"xlinkType":_l(t,"http://www.w3.org/1999/xlink","xlink:type",e);break;case"xmlBase":_l(t,"http://www.w3.org/XML/1998/namespace","xml:base",e);break;case"xmlLang":_l(t,"http://www.w3.org/XML/1998/namespace","xml:lang",e);break;case"xmlSpace":_l(t,"http://www.w3.org/XML/1998/namespace","xml:space",e);break;case"is":Gu(t,"is",e);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=f0.get(a)||a,Gu(t,a,e))}}function Kc(t,l,a,e,u,n){switch(a){case"style":Kf(t,e,n);break;case"dangerouslySetInnerHTML":if(e!=null){if(typeof e!="object"||!("__html"in e))throw Error(o(61));if(a=e.__html,a!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=a}}break;case"children":typeof e=="string"?Ia(t,e):(typeof e=="number"||typeof e=="bigint")&&Ia(t,""+e);break;case"onScroll":e!=null&&V("scroll",t);break;case"onScrollEnd":e!=null&&V("scrollend",t);break;case"onClick":e!=null&&(t.onclick=Rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jf.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),l=a.slice(2,u?a.length-7:void 0),n=t[qt]||null,n=n!=null?n[a]:null,typeof n=="function"&&t.removeEventListener(l,n,u),typeof e=="function")){typeof n!="function"&&n!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(l,e,u);break t}a in t?t[a]=e:e===!0?t.setAttribute(a,""):Gu(t,a,e)}}}function Ot(t,l,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":V("error",t),V("load",t);var e=!1,u=!1,n;for(n in a)if(a.hasOwnProperty(n)){var i=a[n];if(i!=null)switch(n){case"src":e=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,l));default:I(t,l,n,i,a,null)}}u&&I(t,l,"srcSet",a.srcSet,a,null),e&&I(t,l,"src",a.src,a,null);return;case"input":V("invalid",t);var c=n=i=u=null,s=null,m=null;for(e in a)if(a.hasOwnProperty(e)){var E=a[e];if(E!=null)switch(e){case"name":u=E;break;case"type":i=E;break;case"checked":s=E;break;case"defaultChecked":m=E;break;case"value":n=E;break;case"defaultValue":c=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(o(137,l));break;default:I(t,l,e,E,a,null)}}Lf(t,n,c,s,m,i,u,!1),Qu(t);return;case"select":V("invalid",t),e=i=n=null;for(u in a)if(a.hasOwnProperty(u)&&(c=a[u],c!=null))switch(u){case"value":n=c;break;case"defaultValue":i=c;break;case"multiple":e=c;default:I(t,l,u,c,a,null)}l=n,a=i,t.multiple=!!e,l!=null?Pa(t,!!e,l,!1):a!=null&&Pa(t,!!e,a,!0);return;case"textarea":V("invalid",t),n=u=e=null;for(i in a)if(a.hasOwnProperty(i)&&(c=a[i],c!=null))switch(i){case"value":e=c;break;case"defaultValue":u=c;break;case"children":n=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:I(t,l,i,c,a,null)}Vf(t,e,u,n),Qu(t);return;case"option":for(s in a)if(a.hasOwnProperty(s)&&(e=a[s],e!=null))switch(s){case"selected":t.selected=e&&typeof e!="function"&&typeof e!="symbol";break;default:I(t,l,s,e,a,null)}return;case"dialog":V("cancel",t),V("close",t);break;case"iframe":case"object":V("load",t);break;case"video":case"audio":for(e=0;e<bu.length;e++)V(bu[e],t);break;case"image":V("error",t),V("load",t);break;case"details":V("toggle",t);break;case"embed":case"source":case"link":V("error",t),V("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(m in a)if(a.hasOwnProperty(m)&&(e=a[m],e!=null))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,l));default:I(t,l,m,e,a,null)}return;default:if(fi(l)){for(E in a)a.hasOwnProperty(E)&&(e=a[E],e!==void 0&&Kc(t,l,E,e,a,void 0));return}}for(c in a)a.hasOwnProperty(c)&&(e=a[c],e!=null&&I(t,l,c,e,a,null))}function Cm(t,l,a,e){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,n=null,i=null,c=null,s=null,m=null,E=null;for(p in a){var z=a[p];if(a.hasOwnProperty(p)&&z!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=z;default:e.hasOwnProperty(p)||I(t,l,p,null,e,z)}}for(var b in e){var p=e[b];if(z=a[b],e.hasOwnProperty(b)&&(p!=null||z!=null))switch(b){case"type":n=p;break;case"name":u=p;break;case"checked":m=p;break;case"defaultChecked":E=p;break;case"value":i=p;break;case"defaultValue":c=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(137,l));break;default:p!==z&&I(t,l,b,p,e,z)}}ii(t,i,c,s,m,E,n,u);return;case"select":p=i=c=b=null;for(n in a)if(s=a[n],a.hasOwnProperty(n)&&s!=null)switch(n){case"value":break;case"multiple":p=s;default:e.hasOwnProperty(n)||I(t,l,n,null,e,s)}for(u in e)if(n=e[u],s=a[u],e.hasOwnProperty(u)&&(n!=null||s!=null))switch(u){case"value":b=n;break;case"defaultValue":c=n;break;case"multiple":i=n;default:n!==s&&I(t,l,u,n,e,s)}l=c,a=i,e=p,b!=null?Pa(t,!!a,b,!1):!!e!=!!a&&(l!=null?Pa(t,!!a,l,!0):Pa(t,!!a,a?[]:"",!1));return;case"textarea":p=b=null;for(c in a)if(u=a[c],a.hasOwnProperty(c)&&u!=null&&!e.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:I(t,l,c,null,e,u)}for(i in e)if(u=e[i],n=a[i],e.hasOwnProperty(i)&&(u!=null||n!=null))switch(i){case"value":b=u;break;case"defaultValue":p=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==n&&I(t,l,i,u,e,n)}Zf(t,b,p);return;case"option":for(var x in a)if(b=a[x],a.hasOwnProperty(x)&&b!=null&&!e.hasOwnProperty(x))switch(x){case"selected":t.selected=!1;break;default:I(t,l,x,null,e,b)}for(s in e)if(b=e[s],p=a[s],e.hasOwnProperty(s)&&b!==p&&(b!=null||p!=null))switch(s){case"selected":t.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:I(t,l,s,b,e,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Y in a)b=a[Y],a.hasOwnProperty(Y)&&b!=null&&!e.hasOwnProperty(Y)&&I(t,l,Y,null,e,b);for(m in e)if(b=e[m],p=a[m],e.hasOwnProperty(m)&&b!==p&&(b!=null||p!=null))switch(m){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(137,l));break;default:I(t,l,m,b,e,p)}return;default:if(fi(l)){for(var dt in a)b=a[dt],a.hasOwnProperty(dt)&&b!==void 0&&!e.hasOwnProperty(dt)&&Kc(t,l,dt,void 0,e,b);for(E in e)b=e[E],p=a[E],!e.hasOwnProperty(E)||b===p||b===void 0&&p===void 0||Kc(t,l,E,b,e,p);return}}for(var h in a)b=a[h],a.hasOwnProperty(h)&&b!=null&&!e.hasOwnProperty(h)&&I(t,l,h,null,e,b);for(z in e)b=e[z],p=a[z],!e.hasOwnProperty(z)||b===p||b==null&&p==null||I(t,l,z,b,e,p)}var Jc=null,kc=null;function Cn(t){return t.nodeType===9?t:t.ownerDocument}function Yd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Gd(t,l){if(t===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&l==="foreignObject"?0:t}function Wc(t,l){return t==="textarea"||t==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var $c=null;function qm(){var t=window.event;return t&&t.type==="popstate"?t===$c?!1:($c=t,!0):($c=null,!1)}var Xd=typeof setTimeout=="function"?setTimeout:void 0,Bm=typeof clearTimeout=="function"?clearTimeout:void 0,Qd=typeof Promise=="function"?Promise:void 0,jm=typeof queueMicrotask=="function"?queueMicrotask:typeof Qd<"u"?function(t){return Qd.resolve(null).then(t).catch(Ym)}:Xd;function Ym(t){setTimeout(function(){throw t})}function Fc(t,l){var a=l,e=0;do{var u=a.nextSibling;if(t.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"){if(e===0){t.removeChild(u),_u(l);return}e--}else a!=="$"&&a!=="$?"&&a!=="$!"||e++;a=u}while(a);_u(l)}function Pc(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var a=l;switch(l=l.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Pc(a),ni(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Gm(t,l,a,e){for(;t.nodeType===1;){var u=a;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!e&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(e){if(!t[qe])switch(l){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(n=t.getAttribute("rel"),n==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(n!==u.rel||t.getAttribute("href")!==(u.href==null?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(n=t.getAttribute("src"),(n!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&n&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(l==="input"&&t.type==="hidden"){var n=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===n)return t}else return t;if(t=ml(t.nextSibling),t===null)break}return null}function Xm(t,l,a){if(l==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=ml(t.nextSibling),t===null))return null;return t}function ml(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l==="$"||l==="$!"||l==="$?"||l==="F!"||l==="F")break;if(l==="/$")return null}}return t}function Ld(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"){if(l===0)return t;l--}else a==="/$"&&l++}t=t.previousSibling}return null}function Zd(t,l,a){switch(l=Cn(a),t){case"html":if(t=l.documentElement,!t)throw Error(o(452));return t;case"head":if(t=l.head,!t)throw Error(o(453));return t;case"body":if(t=l.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}var il=new Map,Vd=new Set;function qn(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var Ll=K.d;K.d={f:Qm,r:Lm,D:Zm,C:Vm,L:wm,m:Km,X:km,S:Jm,M:Wm};function Qm(){var t=Ll.f(),l=_n();return t||l}function Lm(t){var l=Wa(t);l!==null&&l.tag===5&&l.type==="form"?go(l):Ll.r(t)}var De=typeof document>"u"?null:document;function wd(t,l,a){var e=De;if(e&&typeof l=="string"&&l){var u=$t(l);u='link[rel="'+t+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Vd.has(u)||(Vd.add(u),t={rel:t,crossOrigin:a,href:l},e.querySelector(u)===null&&(l=e.createElement("link"),Ot(l,"link",t),At(l),e.head.appendChild(l)))}}function Zm(t){Ll.D(t),wd("dns-prefetch",t,null)}function Vm(t,l){Ll.C(t,l),wd("preconnect",t,l)}function wm(t,l,a){Ll.L(t,l,a);var e=De;if(e&&t&&l){var u='link[rel="preload"][as="'+$t(l)+'"]';l==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+$t(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+$t(a.imageSizes)+'"]')):u+='[href="'+$t(t)+'"]';var n=u;switch(l){case"style":n=_e(t);break;case"script":n=Oe(t)}il.has(n)||(t=$({rel:"preload",href:l==="image"&&a&&a.imageSrcSet?void 0:t,as:l},a),il.set(n,t),e.querySelector(u)!==null||l==="style"&&e.querySelector(pu(n))||l==="script"&&e.querySelector(Eu(n))||(l=e.createElement("link"),Ot(l,"link",t),At(l),e.head.appendChild(l)))}}function Km(t,l){Ll.m(t,l);var a=De;if(a&&t){var e=l&&typeof l.as=="string"?l.as:"script",u='link[rel="modulepreload"][as="'+$t(e)+'"][href="'+$t(t)+'"]',n=u;switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Oe(t)}if(!il.has(n)&&(t=$({rel:"modulepreload",href:t},l),il.set(n,t),a.querySelector(u)===null)){switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Eu(n)))return}e=a.createElement("link"),Ot(e,"link",t),At(e),a.head.appendChild(e)}}}function Jm(t,l,a){Ll.S(t,l,a);var e=De;if(e&&t){var u=$a(e).hoistableStyles,n=_e(t);l=l||"default";var i=u.get(n);if(!i){var c={loading:0,preload:null};if(i=e.querySelector(pu(n)))c.loading=5;else{t=$({rel:"stylesheet",href:t,"data-precedence":l},a),(a=il.get(n))&&Ic(t,a);var s=i=e.createElement("link");At(s),Ot(s,"link",t),s._p=new Promise(function(m,E){s.onload=m,s.onerror=E}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Bn(i,l,e)}i={type:"stylesheet",instance:i,count:1,state:c},u.set(n,i)}}}function km(t,l){Ll.X(t,l);var a=De;if(a&&t){var e=$a(a).hoistableScripts,u=Oe(t),n=e.get(u);n||(n=a.querySelector(Eu(u)),n||(t=$({src:t,async:!0},l),(l=il.get(u))&&tf(t,l),n=a.createElement("script"),At(n),Ot(n,"link",t),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function Wm(t,l){Ll.M(t,l);var a=De;if(a&&t){var e=$a(a).hoistableScripts,u=Oe(t),n=e.get(u);n||(n=a.querySelector(Eu(u)),n||(t=$({src:t,async:!0,type:"module"},l),(l=il.get(u))&&tf(t,l),n=a.createElement("script"),At(n),Ot(n,"link",t),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function Kd(t,l,a,e){var u=(u=Kl.current)?qn(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(l=_e(a.href),a=$a(u).hoistableStyles,e=a.get(l),e||(e={type:"style",instance:null,count:0,state:null},a.set(l,e)),e):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=_e(a.href);var n=$a(u).hoistableStyles,i=n.get(t);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(t,i),(n=u.querySelector(pu(t)))&&!n._p&&(i.instance=n,i.state.loading=5),il.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},il.set(t,a),n||$m(u,t,a,i.state))),l&&e===null)throw Error(o(528,""));return i}if(l&&e!==null)throw Error(o(529,""));return null;case"script":return l=a.async,a=a.src,typeof a=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Oe(a),a=$a(u).hoistableScripts,e=a.get(l),e||(e={type:"script",instance:null,count:0,state:null},a.set(l,e)),e):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function _e(t){return'href="'+$t(t)+'"'}function pu(t){return'link[rel="stylesheet"]['+t+"]"}function Jd(t){return $({},t,{"data-precedence":t.precedence,precedence:null})}function $m(t,l,a,e){t.querySelector('link[rel="preload"][as="style"]['+l+"]")?e.loading=1:(l=t.createElement("link"),e.preload=l,l.addEventListener("load",function(){return e.loading|=1}),l.addEventListener("error",function(){return e.loading|=2}),Ot(l,"link",a),At(l),t.head.appendChild(l))}function Oe(t){return'[src="'+$t(t)+'"]'}function Eu(t){return"script[async]"+t}function kd(t,l,a){if(l.count++,l.instance===null)switch(l.type){case"style":var e=t.querySelector('style[data-href~="'+$t(a.href)+'"]');if(e)return l.instance=e,At(e),e;var u=$({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return e=(t.ownerDocument||t).createElement("style"),At(e),Ot(e,"style",u),Bn(e,a.precedence,t),l.instance=e;case"stylesheet":u=_e(a.href);var n=t.querySelector(pu(u));if(n)return l.state.loading|=4,l.instance=n,At(n),n;e=Jd(a),(u=il.get(u))&&Ic(e,u),n=(t.ownerDocument||t).createElement("link"),At(n);var i=n;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Ot(n,"link",e),l.state.loading|=4,Bn(n,a.precedence,t),l.instance=n;case"script":return n=Oe(a.src),(u=t.querySelector(Eu(n)))?(l.instance=u,At(u),u):(e=a,(u=il.get(n))&&(e=$({},a),tf(e,u)),t=t.ownerDocument||t,u=t.createElement("script"),At(u),Ot(u,"link",e),t.head.appendChild(u),l.instance=u);case"void":return null;default:throw Error(o(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(e=l.instance,l.state.loading|=4,Bn(e,a.precedence,t));return l.instance}function Bn(t,l,a){for(var e=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=e.length?e[e.length-1]:null,n=u,i=0;i<e.length;i++){var c=e[i];if(c.dataset.precedence===l)n=c;else if(n!==u)break}n?n.parentNode.insertBefore(t,n.nextSibling):(l=a.nodeType===9?a.head:a,l.insertBefore(t,l.firstChild))}function Ic(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function tf(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var jn=null;function Wd(t,l,a){if(jn===null){var e=new Map,u=jn=new Map;u.set(a,e)}else u=jn,e=u.get(a),e||(e=new Map,u.set(a,e));if(e.has(t))return e;for(e.set(t,null),a=a.getElementsByTagName(t),u=0;u<a.length;u++){var n=a[u];if(!(n[qe]||n[Ut]||t==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(l)||"";i=t+i;var c=e.get(i);c?c.push(n):e.set(i,[n])}}return e}function $d(t,l,a){t=t.ownerDocument||t,t.head.insertBefore(a,l==="title"?t.querySelector("head > title"):null)}function Fm(t,l,a){if(a===1||l.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return t=l.disabled,typeof l.precedence=="string"&&t==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function Fd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Au=null;function Pm(){}function Im(t,l,a){if(Au===null)throw Error(o(475));var e=Au;if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=_e(a.href),n=t.querySelector(pu(u));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yn.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=n,At(n);return}n=t.ownerDocument||t,a=Jd(a),(u=il.get(u))&&Ic(a,u),n=n.createElement("link"),At(n);var i=n;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Ot(n,"link",a),l.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Yn.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}function th(){if(Au===null)throw Error(o(475));var t=Au;return t.stylesheets&&t.count===0&&lf(t,t.stylesheets),0<t.count?function(l){var a=setTimeout(function(){if(t.stylesheets&&lf(t,t.stylesheets),t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}},6e4);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a)}}:null}function Yn(){if(this.count--,this.count===0){if(this.stylesheets)lf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Gn=null;function lf(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Gn=new Map,l.forEach(lh,t),Gn=null,Yn.call(t))}function lh(t,l){if(!(l.state.loading&4)){var a=Gn.get(t);if(a)var e=a.get(null);else{a=new Map,Gn.set(t,a);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<u.length;n++){var i=u[n];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(a.set(i.dataset.precedence,i),e=i)}e&&a.set(null,e)}u=l.instance,i=u.getAttribute("data-precedence"),n=a.get(i)||e,n===e&&a.set(null,u),a.set(i,u),this.count++,e=Yn.bind(this),u.addEventListener("load",e),u.addEventListener("error",e),n?n.parentNode.insertBefore(u,n.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),l.state.loading|=4}}var zu={$$typeof:q,Provider:null,Consumer:null,_currentValue:kt,_currentValue2:kt,_threadCount:0};function ah(t,l,a,e,u,n,i,c){this.tag=1,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ei(0),this.hiddenUpdates=ei(null),this.identifierPrefix=e,this.onUncaughtError=u,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Pd(t,l,a,e,u,n,i,c,s,m,E,z){return t=new ah(t,l,a,i,c,s,m,z),l=1,n===!0&&(l|=24),n=ul(3,null,null,l),t.current=n,n.stateNode=t,l=Ri(),l.refCount++,t.pooledCache=l,l.refCount++,n.memoizedState={element:e,isDehydrated:a,cache:l},mc(n),t}function Id(t){return t?(t=ie,t):ie}function tr(t,l,a,e,u,n){u=Id(u),e.context===null?e.context=u:e.pendingContext=u,e=ea(l),e.payload={element:a},n=n===void 0?null:n,n!==null&&(e.callback=n),a=ua(t,e,l),a!==null&&(Ct(a,t,l),iu(a,t,l))}function lr(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<l?a:l}}function af(t,l){lr(t,l),(t=t.alternate)&&lr(t,l)}function ar(t){if(t.tag===13){var l=$l(t,67108864);l!==null&&Ct(l,t,67108864),af(t,67108864)}}var Xn=!0;function eh(t,l,a,e){var u=B.T;B.T=null;var n=K.p;try{K.p=2,ef(t,l,a,e)}finally{K.p=n,B.T=u}}function uh(t,l,a,e){var u=B.T;B.T=null;var n=K.p;try{K.p=8,ef(t,l,a,e)}finally{K.p=n,B.T=u}}function ef(t,l,a,e){if(Xn){var u=uf(e);if(u===null)wc(t,l,e,Qn,a),ur(t,e);else if(ih(u,t,l,a,e))e.stopPropagation();else if(ur(t,e),l&4&&-1<nh.indexOf(t)){for(;u!==null;){var n=Wa(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=pa(n.pendingLanes);if(i!==0){var c=n;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-Lt(i);c.entanglements[1]|=s,i&=~s}zl(n),(ft&6)===0&&(Mn=bl()+500,gu(0))}}break;case 13:c=$l(n,2),c!==null&&Ct(c,n,2),_n(),af(n,2)}if(n=uf(e),n===null&&wc(t,l,e,Qn,a),n===u)break;u=n}u!==null&&e.stopPropagation()}else wc(t,l,e,null,a)}}function uf(t){return t=oi(t),nf(t)}var Qn=null;function nf(t){if(Qn=null,t=Ea(t),t!==null){var l=j(t);if(l===null)t=null;else{var a=l.tag;if(a===13){if(t=et(l),t!==null)return t;t=null}else if(a===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return Qn=t,null}function er(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Vr()){case Df:return 2;case _f:return 8;case qu:case wr:return 32;case Of:return 268435456;default:return 32}default:return 32}}var cf=!1,da=null,ra=null,ma=null,Mu=new Map,Tu=new Map,ha=[],nh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ur(t,l){switch(t){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":ra=null;break;case"mouseover":case"mouseout":ma=null;break;case"pointerover":case"pointerout":Mu.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tu.delete(l.pointerId)}}function Du(t,l,a,e,u,n){return t===null||t.nativeEvent!==n?(t={blockedOn:l,domEventName:a,eventSystemFlags:e,nativeEvent:n,targetContainers:[u]},l!==null&&(l=Wa(l),l!==null&&ar(l)),t):(t.eventSystemFlags|=e,l=t.targetContainers,u!==null&&l.indexOf(u)===-1&&l.push(u),t)}function ih(t,l,a,e,u){switch(l){case"focusin":return da=Du(da,t,l,a,e,u),!0;case"dragenter":return ra=Du(ra,t,l,a,e,u),!0;case"mouseover":return ma=Du(ma,t,l,a,e,u),!0;case"pointerover":var n=u.pointerId;return Mu.set(n,Du(Mu.get(n)||null,t,l,a,e,u)),!0;case"gotpointercapture":return n=u.pointerId,Tu.set(n,Du(Tu.get(n)||null,t,l,a,e,u)),!0}return!1}function nr(t){var l=Ea(t.target);if(l!==null){var a=j(l);if(a!==null){if(l=a.tag,l===13){if(l=et(a),l!==null){t.blockedOn=l,t0(t.priority,function(){if(a.tag===13){var e=Jt(),u=$l(a,e);u!==null&&Ct(u,a,e),af(a,e)}});return}}else if(l===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ln(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var a=uf(t.nativeEvent);if(a===null){a=t.nativeEvent;var e=new a.constructor(a.type,a);si=e,a.target.dispatchEvent(e),si=null}else return l=Wa(a),l!==null&&ar(l),t.blockedOn=a,!1;l.shift()}return!0}function ir(t,l,a){Ln(t)&&a.delete(l)}function ch(){cf=!1,da!==null&&Ln(da)&&(da=null),ra!==null&&Ln(ra)&&(ra=null),ma!==null&&Ln(ma)&&(ma=null),Mu.forEach(ir),Tu.forEach(ir)}function Zn(t,l){t.blockedOn===l&&(t.blockedOn=null,cf||(cf=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,ch)))}var Vn=null;function cr(t){Vn!==t&&(Vn=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Vn===t&&(Vn=null);for(var l=0;l<t.length;l+=3){var a=t[l],e=t[l+1],u=t[l+2];if(typeof e!="function"){if(nf(e||a)===null)continue;break}var n=Wa(a);n!==null&&(t.splice(l,3),l-=3,Wi(n,{pending:!0,data:u,method:a.method,action:e},e,u))}}))}function _u(t){function l(s){return Zn(s,t)}da!==null&&Zn(da,t),ra!==null&&Zn(ra,t),ma!==null&&Zn(ma,t),Mu.forEach(l),Tu.forEach(l);for(var a=0;a<ha.length;a++){var e=ha[a];e.blockedOn===t&&(e.blockedOn=null)}for(;0<ha.length&&(a=ha[0],a.blockedOn===null);)nr(a),a.blockedOn===null&&ha.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(e=0;e<a.length;e+=3){var u=a[e],n=a[e+1],i=u[qt]||null;if(typeof n=="function")i||cr(a);else if(i){var c=null;if(n&&n.hasAttribute("formAction")){if(u=n,i=n[qt]||null)c=i.formAction;else if(nf(u)!==null)continue}else c=i.action;typeof c=="function"?a[e+1]=c:(a.splice(e,3),e-=3),cr(a)}}}function ff(t){this._internalRoot=t}wn.prototype.render=ff.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(o(409));var a=l.current,e=Jt();tr(a,e,t,l,null,null)},wn.prototype.unmount=ff.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;t.tag===0&&ze(),tr(t.current,2,null,t,null,null),_n(),l[ka]=null}};function wn(t){this._internalRoot=t}wn.prototype.unstable_scheduleHydration=function(t){if(t){var l=Cf();t={blockedOn:null,target:t,priority:l};for(var a=0;a<ha.length&&l!==0&&l<ha[a].priority;a++);ha.splice(a,0,t),a===0&&nr(t)}};var fr=y.version;if(fr!=="19.0.0")throw Error(o(527,fr,"19.0.0"));K.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=wa(l),t=t!==null?Sa(t):null,t=t===null?null:t.stateNode,t};var fh={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:B,findFiberByHostInstance:Ea,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kn=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kn.isDisabled&&Kn.supportsFiber)try{Ne=Kn.inject(fh),Qt=Kn}catch{}}return Ou.createRoot=function(t,l){if(!g(t))throw Error(o(299));var a=!1,e="",u=To,n=Do,i=_o,c=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(e=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(n=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(c=l.unstable_transitionCallbacks)),l=Pd(t,1,!1,null,null,a,e,u,n,i,c,null),t[ka]=l.current,Vc(t.nodeType===8?t.parentNode:t),new ff(l)},Ou.hydrateRoot=function(t,l,a){if(!g(t))throw Error(o(299));var e=!1,u="",n=To,i=Do,c=_o,s=null,m=null;return a!=null&&(a.unstable_strictMode===!0&&(e=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(c=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(s=a.unstable_transitionCallbacks),a.formState!==void 0&&(m=a.formState)),l=Pd(t,1,!0,l,a??null,e,u,n,i,c,s,m),l.context=Id(null),a=l.current,e=Jt(),u=ea(e),u.callback=null,ua(a,u,e),l.current.lanes=e,Ce(l,e),zl(l),t[ka]=l.current,Vc(t),new wn(l)},Ou.version="19.0.0",Ou}var Tr;function nv(){if(Tr)return rf.exports;Tr=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(y){console.error(y)}}return f(),rf.exports=uv(),rf.exports}var iv=nv();const cv=mh(iv),Nr=W.createContext(void 0);function ay(){const f=W.useContext(Nr);if(!f)throw new Error("Place PrivacityContext inside PrivacityProvider");return f}const Dr={privacitySettings:!0};function fv({children:f}){const y={photoHidden:{hide:!1},nameHidden:{hide:!1},midiaHidden:{hide:!1},galeryHidden:{hide:!1},lastMessageHidden:{hide:!1},messageHidden:{hide:!1}},[d,o]=W.useState(y);return W.useEffect(()=>{if(Dr.privacitySettings&&localStorage.getItem("privacityOptions")){let S=sr.decryptData(localStorage.getItem("privacityOptions"));o(S),Dr.privacitySettings=!1}else{let S=sr.encryptData(d);localStorage.setItem("privacityOptions",S)}let g="";Object.entries(d).map(([S,D])=>{D.hide&&(g+=S+" ")}),g.length===0?document.body.removeAttribute("hide"):document.body.setAttribute("hide",g)},[d]),H.jsx(Nr.Provider,{value:{privacityOptions:d,setPrivacityOptions:o},children:f})}const sv=W.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b740.js")).then(f=>f.i),[]));function ov(){return pf(y=>y.activeHeader)&&H.jsx(W.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(sv,{})})}const dv=W.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b741.js")),[]));function rv(){return H.jsx(W.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(dv,{})})}const Rr=document.createElement("section");Rr.setAttribute("data-id","ChatName");const Cr=document.createElement("section");Cr.setAttribute("data-id","MenuVertical");const qr=document.createElement("section");qr.setAttribute("data-id","MenuHorizontal");const Br=document.createElement("section");Br.setAttribute("data-id","ActionMonitor");const kn=document.createElement("section");kn.setAttribute("data-id","AssistenteDeChat");const $n=document.createElement("section");$n.setAttribute("data-id","FooterIconsLeft");$n.setAttribute("style","display: contents;");const Af=document.createElement("section");Af.setAttribute("data-id","FooterIconsRight");const Wn=document.createElement("section");Wn.setAttribute("data-id","MenuFooter");const zf=document.createElement("section");zf.setAttribute("data-id","RespostaRapida");const mv=[{father:()=>Yt.getState().getSeletor("chatName"),children:Rr,type:"insert",renderInblockChat:!0},{father:()=>Yt.getState().getSeletor("menuVertical"),children:Cr,type:"prepend",renderInblockChat:!0},{father:()=>Yt.getState().getSeletor("menuHorizontal"),children:qr,type:"prepend",renderInblockChat:!0},{father:()=>Yt.getState().getSeletor("menuFooter"),children:Wn,type:"appendChild",renderInblockChat:!1},{father:()=>Yt.getState().getSeletor("respostaRapida"),children:zf,type:"appendChild",renderInblockChat:!1},{father:()=>Yt.getState().getSeletor("assistenteChat"),children:kn,type:"prepend",renderInblockChat:!1},{father:()=>Yt.getState().getSeletor("actionMonitor"),children:Br,type:"insertAdjacentElement",renderInblockChat:!1},{father:()=>Yt.getState().getSeletor("footerIconsLeft"),children:$n,type:"prepend",renderInblockChat:!1},{father:()=>Yt.getState().getSeletor("respostaRapida"),children:Af,type:"appendChild",renderInblockChat:!1}];function hv(){const f=Ef(d=>d.activeChat),y=ph(d=>d.isNewModel);W.useEffect(()=>{if(!f)return;const{getSeletor:d}=Yt.getState(),o=[];mv.forEach(({father:M,children:N,type:T,renderInblockChat:R})=>{var F,L,q;switch(T){case"prepend":(F=M())==null||F.prepend(N);break;case"insert":let rt=M();rt&&(rt.innerHTML="",rt.prepend(N));break;case"insertAdjacentElement":(L=M())==null||L.insertAdjacentElement("afterend",N);break;case"appendChild":default:(q=M())==null||q.appendChild(N);break}});const g=()=>{y||d("mainAudio",M=>{const N=new MutationObserver(T=>{T[0].removedNodes.length!==0&&d("menuFooter",R=>{R.appendChild(Wn)})});N.observe(M,{childList:!0}),o.push(N)})};return g(),y?(()=>{d("observerFooterNewModel",M=>{const N=new MutationObserver(T=>{T[0].removedNodes.length!==0&&(d("respostaRapida",R=>{R.appendChild(Af)}),d("footerIconsLeft",R=>{R.prepend($n)}),d("assistenteChat",R=>{R.prepend(kn)}))});N.observe(M,{childList:!0}),o.push(N)})})():(()=>{d("observerFooter",M=>{const N=new MutationObserver(T=>{T[0].removedNodes.length!==0&&(d("menuFooter",R=>{R.appendChild(Wn)}),d("respostaRapida",R=>{R.appendChild(zf)}),d("assistenteChat",R=>{R.prepend(kn)}),g())});N.observe(M,{childList:!0}),o.push(N)})})(),()=>{o.forEach(M=>M.disconnect())}},[f,y])}const vv=W.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b742.js")),[]));function yv(){const f=Ef(y=>y.activeChat);return hv(),W.useEffect(()=>{var g;if(!f)return;Eh.getState().update(f.id._serialized),Ah.getState().configAssinatura(),zh.getState().getActiveChat(f.id._serialized),Mh.getState().insertBtnTradutor(),f.id.user&&(vr.getState().setActiveUser(f),vr.getState().setActivePerfil(f.id.user)),Th(),bf.setState({textAssistente:""});const{assistente:y,manipulatedInputText:d,formatTextAssistente:o}=bf.getState();if(y.active){const S=f.draftMessage;((g=S==null?void 0:S.text)==null?void 0:g.length)>0&&o(S.text),d()}},[f]),f?H.jsx(W.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(vv,{})}):null}const jr=document.createElement("section");jr.setAttribute("data-id","MenuLateral");jr.setAttribute("render-mode","window");const gv=W.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b743.js")),[]));function bv(){const f=df(o=>o.menuContent),y=df(o=>o.isOpen),d=df(o=>o.isThree);return f.children!=="close"&&!d&&y&&H.jsx(W.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(gv,{})})}const Sv=W.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_16_364f475f-21c1-4d89-bf17-70efc8c405b744.js")).then(f=>f.i),[]));function pv(){return pf(y=>y.activeView)&&H.jsx(W.Suspense,{fallback:H.jsx(H.Fragment,{}),children:H.jsx(Sv,{})})}var Ev=function(f,y){var d=typeof Symbol=="function"&&f[Symbol.iterator];if(!d)return f;var o=d.call(f),g,S=[],D;try{for(;(y===void 0||y-- >0)&&!(g=o.next()).done;)S.push(g.value)}catch(M){D={error:M}}finally{try{g&&!g.done&&(d=o.return)&&d.call(o)}finally{if(D)throw D.error}}return S},xu={sm:640,md:768,lg:1024,xl:1280,"2xl":1536},ey=function(){var f=Ev(W.useState("xs"),2),y=f[0],d=f[1];return W.useEffect(function(){var o=function(){var g=window.innerWidth;g>=xu["2xl"]?d("2xl"):g>=xu.xl?d("xl"):g>=xu.lg?d("lg"):g>=xu.md?d("md"):g>=xu.sm?d("sm"):d("xs")};return o(),window.addEventListener("resize",o),function(){return window.removeEventListener("resize",o)}},[]),{breakpoint:y,isMobile:y==="xs"||y==="sm",isTablet:y==="md",isDesktop:y==="lg"||y==="xl"||y==="2xl"}},Av=function(f,y){var d=typeof Symbol=="function"&&f[Symbol.iterator];if(!d)return f;var o=d.call(f),g,S=[],D;try{for(;(y===void 0||y-- >0)&&!(g=o.next()).done;)S.push(g.value)}catch(M){D={error:M}}finally{try{g&&!g.done&&(d=o.return)&&d.call(o)}finally{if(D)throw D.error}}return S};function zv(f,y){y===void 0&&(y=0);var d=Av(W.useState(!1),2),o=d[0],g=d[1];return W.useEffect(function(){var S=f.persist.onFinishHydration(function(){return setTimeout(function(){return g(!0)},y)});return setTimeout(function(){return g(f.persist.hasHydrated())},y),function(){S()}},[f,y]),o}function Fn(f){return new Promise((y,d)=>{f.oncomplete=f.onsuccess=()=>y(f.result),f.onabort=f.onerror=()=>d(f.error)})}function Yr(f,y){let d;const o=()=>{if(d)return d;const g=indexedDB.open(f);return g.onupgradeneeded=()=>g.result.createObjectStore(y),d=Fn(g),d.then(S=>{S.onclose=()=>d=void 0},()=>{}),d};return(g,S)=>o().then(D=>S(D.transaction(y,g).objectStore(y)))}let vf;function Mf(){return vf||(vf=Yr("keyval-store","keyval")),vf}function Mv(f,y=Mf()){return y("readonly",d=>Fn(d.get(f)))}function Tv(f,y,d=Mf()){return d("readwrite",o=>(o.put(y,f),Fn(o.transaction)))}function Dv(f,y=Mf()){return y("readwrite",d=>(d.delete(f),Fn(d.transaction)))}var yf=function(f,y,d,o){function g(S){return S instanceof d?S:new d(function(D){D(S)})}return new(d||(d=Promise))(function(S,D){function M(R){try{T(o.next(R))}catch(F){D(F)}}function N(R){try{T(o.throw(R))}catch(F){D(F)}}function T(R){R.done?S(R.value):g(R.value).then(M,N)}T((o=o.apply(f,y||[])).next())})},gf=function(f,y){var d={label:0,sent:function(){if(S[0]&1)throw S[1];return S[1]},trys:[],ops:[]},o,g,S,D=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return D.next=M(0),D.throw=M(1),D.return=M(2),typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function M(T){return function(R){return N([T,R])}}function N(T){if(o)throw new TypeError("Generator is already executing.");for(;D&&(D=0,T[0]&&(d=0)),d;)try{if(o=1,g&&(S=T[0]&2?g.return:T[0]?g.throw||((S=g.return)&&S.call(g),0):g.next)&&!(S=S.call(g,T[1])).done)return S;switch(g=0,S&&(T=[T[0]&2,S.value]),T[0]){case 0:case 1:S=T;break;case 4:return d.label++,{value:T[1],done:!1};case 5:d.label++,g=T[1],T=[0];continue;case 7:T=d.ops.pop(),d.trys.pop();continue;default:if(S=d.trys,!(S=S.length>0&&S[S.length-1])&&(T[0]===6||T[0]===2)){d=0;continue}if(T[0]===3&&(!S||T[1]>S[0]&&T[1]<S[3])){d.label=T[1];break}if(T[0]===6&&d.label<S[1]){d.label=S[1],S=T;break}if(S&&d.label<S[2]){d.label=S[2],d.ops.push(T);break}S[2]&&d.ops.pop(),d.trys.pop();continue}T=y.call(f,d)}catch(R){T=[6,R],g=0}finally{o=S=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}},Gr=function(f,y){var d=Yr(f,y);return{getItem:function(o){return yf(void 0,void 0,void 0,function(){var g,S;return gf(this,function(D){switch(D.label){case 0:return D.trys.push([0,2,,3]),[4,Mv(o,d)];case 1:return g=D.sent(),[2,g?JSON.stringify(g):null];case 2:return S=D.sent(),console.error("[".concat(f,"] Erro ao ler '").concat(o,"':"),S),[2,null];case 3:return[2]}})})},setItem:function(o,g){return yf(void 0,void 0,void 0,function(){var S,D;return gf(this,function(M){switch(M.label){case 0:return M.trys.push([0,2,,3]),S=JSON.parse(g),[4,Tv(o,S,d)];case 1:return M.sent(),[3,3];case 2:return D=M.sent(),console.error("[".concat(f,"] Erro ao salvar '").concat(o,"':"),D),[3,3];case 3:return[2]}})})},removeItem:function(o){return yf(void 0,void 0,void 0,function(){var g;return gf(this,function(S){switch(S.label){case 0:return S.trys.push([0,2,,3]),[4,Dv(o,d)];case 1:return S.sent(),[3,3];case 2:return g=S.sent(),console.error("[".concat(f,"] Erro ao remover '").concat(o,"':"),g),[3,3];case 3:return[2]}})})}}};function _v(f){return typeof f=="object"&&f!==null&&"__type"in f&&f.__type==="Date"&&"value"in f&&typeof f.value=="string"}function Ov(f){return typeof f=="object"&&f!==null&&"__type"in f&&f.__type==="Map"&&"value"in f&&Array.isArray(f.value)}var vl=(f=>(f.IDLE="idle",f.RUNNING="running",f.PAUSED="paused",f.CANCELLED="cancelled",f.COMPLETED="completed",f.FAILED="failed",f))(vl||{});const Va=xe()(xr((f,y)=>({executions:new Map,startExecution:(d,o,g,S)=>{f(D=>{const M=new Map(D.executions);return M.set(d,{campaignId:d,status:"running",type:S,currentContactIndex:0,currentActionIndex:0,totalContacts:o,totalActions:g,successContacts:[],failedContacts:[],startedAt:new Date,shouldPause:!1,shouldCancel:!1}),{executions:M}})},updateProgress:(d,o,g,S)=>{f(D=>{const M=new Map(D.executions),N=M.get(d);return N&&M.set(d,{...N,currentContactIndex:o,successContacts:g?[...N.successContacts,S]:N.successContacts,failedContacts:g?N.failedContacts:[...N.failedContacts,S]}),{executions:M}})},requestPause:d=>{f(o=>{const g=new Map(o.executions),S=g.get(d);return S&&S.status==="running"&&g.set(d,{...S,shouldPause:!0}),{executions:g}})},requestCancel:d=>{f(o=>{const g=new Map(o.executions),S=g.get(d);return S&&S.status!=="completed"&&g.set(d,{...S,shouldCancel:!0}),{executions:g}})},forceCancel:d=>{f(o=>{const g=new Map(o.executions);return g.delete(d),{executions:g}})},resume:d=>{f(o=>{const g=new Map(o.executions),S=g.get(d);return S&&S.status==="paused"&&g.set(d,{...S,status:"running",shouldPause:!1}),{executions:g}})},shouldPauseExecution:d=>{const o=y().executions.get(d);return(o==null?void 0:o.shouldPause)||!1},shouldCancelExecution:d=>{const o=y().executions.get(d);return(o==null?void 0:o.shouldCancel)||!1},completeExecution:d=>{f(o=>{const g=new Map(o.executions),S=g.get(d);return S&&g.set(d,{...S,status:"completed",completedAt:new Date}),{executions:g}})},failExecution:(d,o)=>{f(g=>{const S=new Map(g.executions),D=S.get(d);return D&&S.set(d,{...D,status:"failed",completedAt:new Date}),{executions:S}})},clearExecution:d=>{f(o=>{const g=new Map(o.executions);return g.delete(d),{executions:g}})}}),{name:"campaign-execution-store",storage:Ur(()=>Gr("CampaignExecutionDB","campaignExecutionStore"),{replacer:(f,y)=>y instanceof Date?{__type:"Date",value:y.toISOString()}:y instanceof Map?{__type:"Map",value:Array.from(y.entries())}:y,reviver:(f,y)=>_v(y)?new Date(y.value):Ov(y)?new Map(y.value):y}),version:2,migrate:(f,y)=>y===1?{executions:new Map}:f,partialize:f=>({executions:f.executions})})),Tf=xe()(xr((f,y)=>({currentCampaignId:"",setCurrentCampaignId:d=>f({currentCampaignId:d}),campaigns:[],addCampaign:d=>{if(y().campaigns.some(S=>S.id===d.id)){console.warn(`Campanha com ID ${d.id} já existe`);return}f(S=>({campaigns:[...S.campaigns,{...d,createdAt:d.createdAt||new Date,updatedAt:d.updatedAt||new Date}]}))},updateCampaign:(d,o)=>f(g=>({campaigns:g.campaigns.map(S=>S.id===d?{...S,...o,updatedAt:new Date}:S)})),updateConfig:(d,o)=>f(g=>({campaigns:g.campaigns.map(S=>S.id===d?{...S,config:{...S.config,...o},updatedAt:new Date}:S)})),removeCampaign:d=>{Va.getState().clearExecution(d),f(o=>o.campaigns.some(S=>S.id===d)?{campaigns:o.campaigns.filter(S=>S.id!==d),currentCampaignId:o.currentCampaignId===d?"":o.currentCampaignId}:(console.warn(`Campanha com ID ${d} não encontrada`),o))},clearCampaigns:()=>f({campaigns:[]}),setQuickReplyAction:d=>{const{currentCampaignId:o,campaigns:g}=y();if(!o||!g.find(R=>R.id===o))return;const{getAction:D}=Dh.getState(),{acao:M}=yr.getState(),T=(Array.isArray(d.script)&&d.type==="script"?d.script.flatMap(R=>D(R.id)??[]):D(d.id)??[]).map(R=>({...R,id:Or()}));yr.setState({acao:[...M,...T]})}}),{name:"useSendBulkMessage-store",storage:Ur(()=>Gr("SendBulkMessageDB","useSendBulkMessageStore"),{reviver:(f,y)=>{if(typeof y=="string"&&/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(y)){const d=new Date(y);return isNaN(d.getTime())?y:d}return y}}),version:1,partialize:f=>({campaigns:f.campaigns,currentCampaignId:f.currentCampaignId})}));var Zl=(f=>(f.DRAFT="Rascunho",f.PAUSED="Pausada",f.SENDING="Enviando",f.SENT="Enviada",f.FAILED="Falhou",f))(Zl||{});const uy={interval:{seconds:10},pause:{every:10,durationSeconds:60},signature:{disabled:!1,useCustomName:!1,customName:void 0}},Xr=xe((f,y)=>({steps:[{key:"contatos",label:La.getState().language.step_contatos,icon:or},{key:"acoes",label:La.getState().language.step_acoes,icon:dr},{key:"revisao",label:La.getState().language.step_revisao,icon:rr},{key:"envio",label:La.getState().language.step_envio,icon:mr},{key:"resultados",label:La.getState().language.step_resultados,icon:hr}],currentStep:"contatos",setCurrentStep:d=>f({currentStep:d}),updateStepsLabels:d=>f({steps:[{key:"contatos",label:d.step_contatos,icon:or},{key:"acoes",label:d.step_acoes,icon:dr},{key:"revisao",label:d.step_revisao,icon:rr},{key:"envio",label:d.step_envio,icon:mr},{key:"resultados",label:d.step_resultados,icon:hr}]})}));La.subscribe((f,y)=>{f.language!==y.language&&Xr.getState().updateStepsLabels(f.language)});function xv(f){return f!=null&&f.trim().length>0}function Vl(f,y){Va.setState(d=>{const o=new Map(d.executions),g=o.get(f);return g&&o.set(f,{...g,...y}),{executions:o}})}function Uv(f){return Va.getState().executions.get(f)}function ny(f){const{campaigns:y}=Tf.getState();return y.find(d=>d.id===f)}const _r=f=>new Promise(y=>setTimeout(y,f)),Hv=async()=>{try{const f=await Uu.Conn("getMyUserId");if(!f)throw new Error("ID do usuário não encontrado");const y=await Uu.Contact("get",f);if(!y)throw new Error("Não foi possível obter o contato do usuário");const d=await Uu.Contact("getProfilePictureUrl",f);return{id:y.id.toString(),name:y.name||y.pushname||"Eu",avatarUrl:d||"",phone:y.id.user}}catch(f){throw console.error("Erro ao obter contato do usuário:",f),new Error(`Falha ao carregar informações do usuário: ${f instanceof Error?f.message:"Erro desconhecido"}`)}},Jn=()=>{hl({type:"Info",message:"Não é possível atribuir um contato não salvo a uma aba, etiqueta, fixá-lo ou transferi-lo de atendimento.",position:"top-right"})};async function Nv({userID:f,acao:y,assiantura:d,remetente:o,campaignId:g,resumeFromActionIndex:S=0}){const{addMonitor:D,deleteMonitor:M,updateMonitor:N}=_h.getState(),T=[],R=Or();D({id:R,userID:f,sendAction:"Actived",remetente:o,actionsTam:y.length,actionIndice:S,activeAction:y[S]});try{for(const[L,q]of y.entries()){if(L<S)continue;const rt=Va.getState();if(g){if(!rt.executions.get(g))return M(R),{status:"execution_not_found"};if(rt.shouldCancelExecution(g))return M(R),{status:"cancelled"};if(rt.shouldPauseExecution(g))return Vl(g,{currentActionIndex:L,status:vl.PAUSED,pausedAt:new Date,shouldPause:!1}),M(R),{status:"paused",actionIndex:L}}if(!N(R,L,q)){T.push(!1);break}g&&Vl(g,{currentActionIndex:L});try{switch(q.type){case"txt":T.push(await wh(nt(f),q.propriedades,d));break;case"image":T.push(await Vh(nt(f),q.propriedades,d));break;case"video":T.push(await Zh(nt(f),q.propriedades,d));break;case"audio":T.push(await Lh(nt(f),q.propriedades));break;case"doc":T.push(await Qh(nt(f),q.propriedades));break;case"pix":T.push(await Xh(nt(f),q.propriedades));break;case"groupInvite":T.push(await Gh(nt(f),q.propriedades));break;case"contact":T.push(await Yh(nt(f),q.propriedades));break;case"linkPreview":T.push(await jh(nt(f),q.propriedades));break;case"sticker":T.push(await Bh(nt(f),q.propriedades));break;case"addCRM":f.includes("@lid")?Jn():await qh(sf(f),q.propriedades.crmID,q.propriedades.abaID);break;case"removeCRM":await Er(sf(f),!1,q.propriedades.crmID,q.propriedades.abaID);break;case"removeAllCRM":await Er(sf(f),!0);break;case"addLabel":f.includes("@lid")?Jn():await pr(nt(f),q.propriedades.labelID,"add");break;case"removeLabel":await pr(nt(f),q.propriedades.labelID,"remove");break;case"removeAllLabel":await Ch(nt(f));break;case"timer":await Rh(q.propriedades.segundos);break;case"composing":await Sr(nt(f),q.propriedades.segundos,"txt");break;case"recording":await Sr(nt(f),q.propriedades.segundos,"audio");break;case"arquivar":await br(nt(f));break;case"desarquivar":await br(nt(f),!0);break;case"fixarChat":f.includes("@lid")?Jn():await gr(nt(f),"pin");break;case"desfixarChat":await gr(nt(f),"unpin");break;case"marcarNaoLido":await Nh(nt(f));break;case"transferir":f.includes("@lid")?Jn():await Hh(nt(f),q.propriedades);break;case"bloquear":await Uh(nt(f));break;case"respostaRapida":await xh(nt(f),q.propriedades.respostaRapidaID,d);break;case"list":await Oh(nt(f),q.propriedades);break;default:console.warn(`No handler found for action type: ${q.type}`);break}}catch(xt){const Gt=xt instanceof Error?xt.message:"Erro desconhecido na ação";return console.error(`Erro na ação ${q.type} (índice ${L}) para ${f}:`,xt),M(R),{status:"error",message:`Erro na ação "${q.type}": ${Gt}`}}}return M(R),T.length===0||T.every(L=>L&&L.id)?{status:"success"}:{status:"error",message:"Erro ao executar uma ou mais ações."}}catch(F){const L=F instanceof Error?F.message:"Erro desconhecido";return console.error(`Erro geral ao executar ações para ${f}:`,F),M(R),{status:"error",message:`Erro geral: ${L}`}}}async function Rv({campaign:f,type:y,resumeFromIndex:d=0,isResume:o=!1}){const g=La.getState().language,{actions:S,config:D,id:M}=f,{interval:N,pause:T,signature:R}=D,{seconds:F}=N,{every:L,durationSeconds:q}=T,{disabled:rt,useCustomName:xt,customName:Gt}=R,{updateCampaign:Nt}=Tf.getState(),vt=Va.getState(),Xt=Uv(M);if(Xt&&Xt.status===vl.RUNNING&&!o){hl({type:"Info",message:g.send_campanha_ja_em_execucao});return}const cl=y==="test"?[await Hv()]:f.selectedContacts,Ml=(Xt==null?void 0:Xt.currentActionIndex)||0;o?Vl(M,{status:vl.RUNNING,shouldPause:!1,shouldCancel:!1}):vt.startExecution(M,cl.length,S.length,y),Nt(M,{status:Zl.SENDING}),Xr.getState().setCurrentStep("envio"),hl({type:"Info",message:o?g.send_retomando_envio:g.send_iniciando_envio});try{for(let it=d;it<cl.length;it++){const fl=cl[it];if(vt.shouldCancelExecution(M)){Vl(M,{status:vl.CANCELLED,completedAt:new Date,shouldCancel:!1}),Nt(M,{status:Zl.DRAFT}),hl({type:"Info",message:g.send_campanha_cancelada});return}const wl={desativar:rt,personalizar:xt&&xv(Gt),nome:(Gt==null?void 0:Gt.trim())||""},B=it===d?Ml:0;switch((await Nv({userID:fl.id,acao:S,assiantura:wl,remetente:"useAcaoEnvioEmMassaNew",campaignId:M,resumeFromActionIndex:B})).status){case"cancelled":Vl(M,{status:vl.CANCELLED,completedAt:new Date,shouldCancel:!1}),Nt(M,{status:Zl.DRAFT}),hl({type:"Info",message:g.send_campanha_cancelada});return;case"paused":Nt(M,{status:Zl.PAUSED}),hl({type:"Info",message:g.campanha_pausada});return;case"execution_not_found":return;case"error":vt.updateProgress(M,it+1,!1,fl);break;case"success":vt.updateProgress(M,it+1,!0,fl);break}if(it<cl.length-1){if(await _r(F*1e3),vt.shouldCancelExecution(M)){Vl(M,{status:vl.CANCELLED,completedAt:new Date,shouldCancel:!1}),Nt(M,{status:Zl.DRAFT}),hl({type:"Info",message:g.send_campanha_cancelada});return}if((it+1)%L===0){const sl=new Date(Date.now()+q*1e3);if(Vl(M,{status:vl.PAUSED,isAutoPause:!0,autoPauseEndsAt:sl,pausedAt:new Date}),hl({type:"Info",message:`${g.send_pausa_apos_envios} ${q}s ${g.send_apos} ${L} ${g.send_envios}`}),await _r(q*1e3),vt.shouldCancelExecution(M)){Vl(M,{status:vl.CANCELLED,completedAt:new Date,shouldCancel:!1}),Nt(M,{status:Zl.DRAFT}),hl({type:"Info",message:g.send_campanha_cancelada});return}Vl(M,{status:vl.RUNNING,isAutoPause:!1,autoPauseEndsAt:void 0})}}}vt.completeExecution(M),Nt(M,{status:Zl.SENT}),hl({type:"Success",message:`${g.send_campanha_concluida} ${cl.length} ${g.send_contatos_processados}`})}catch(it){const fl=it instanceof Error?it:new Error(g.send_erro_desconhecido);vt.failExecution(M,fl.message),Nt(M,{status:Zl.FAILED}),hl({type:"Error",message:`${g.send_erro_ao_enviar} ${fl.message}`})}}function Cv(){const f=zv(Va);W.useEffect(()=>{if(!f)return;const y=Va.getState(),d=Tf.getState();y.executions.forEach((o,g)=>{if(o.status===vl.RUNNING){const S=d.campaigns.find(D=>D.id===g);S&&Rv({campaign:S,type:o.type,resumeFromIndex:o.currentContactIndex,isResume:!0})}})},[f])}const Qr=xe(f=>({modalExterno:null,zIndex:900,btnClose:!1,auxFunc:{mounted:null,desmouted:null},open:(y,d=900,o=!1,g={mounted:null,desmouted:null})=>{g.mounted&&g.mounted(),f(()=>({modalExterno:y,zIndex:d,btnClose:o,auxFunc:g}))},close:()=>f(y=>(y.auxFunc.desmouted&&y.auxFunc.desmouted(),{modalExterno:null})),openRendertype:(y,d=900,o=!1,g={mounted:null,desmouted:null})=>{let S;switch(y){case"Active_IA":S=H.jsx(Kh,{});break}Qr.getState().open(S,d,o,g)}}));function qv(){const{modalExterno:f,btnClose:y,close:d,zIndex:o}=Qr(),g=W.useRef(null),S=W.useRef(null);return W.useEffect(()=>{const D=M=>{const N=document.querySelector(".iziToast-wrapper"),T=document.querySelector('section[data-id="Modal Options"]'),R=document.querySelector('section[data-id="Modal"]');y&&g.current&&!S.current.contains(M.target)&&(!N||!N.contains(M.target))&&!T&&!R&&d()};return f&&document.addEventListener("mousedown",D),()=>{document.removeEventListener("mousedown",D)}},[f]),f&&H.jsx("section",{"data-id":"Modal Externo",children:H.jsx("dialog",{id:"my_modal_5",ref:g,className:"modal modal-bottom sm:modal-middle !absolute bg-[var(--modal-backdrop)] overflow-hidden !opacity-100 !pointer-events-auto !visible",style:{zIndex:o},children:H.jsxs("div",{ref:S,className:"animate__animated animate__zoomIn relative overflow-hidden !max-w-none !max-h-none !w-fit !h-fit p-[2px]",children:[y&&H.jsx("span",{className:"absolute w-5 h-5 top-3 right-3 pulse !cursor-pointer",onClick:d,children:H.jsx(Hr,{className:"w-full h-full text-[var(--primary-strong)]"})}),H.jsx("div",{className:"w-full h-full",children:f})]})})})}const Bv=xe()(f=>({modal:null,btnClose:!0,auxFunc:{mounted:null,desmouted:null},open:(y,d=!0,o={mounted:null,desmouted:null})=>f(()=>(o.mounted&&o.mounted(),{modal:y,btnClose:d,auxFunc:o})),close:()=>f(y=>(y.auxFunc.desmouted&&y.auxFunc.desmouted(),{modal:null}))}));function jv(){const{modal:f,btnClose:y,close:d}=Bv(),o=W.useRef(null),g=W.useRef(null);return W.useLayoutEffect(()=>{const S=D=>{const M=document.querySelector(".iziToast-wrapper"),N=document.querySelector('section[data-id="Modal Options"]'),T=document.querySelector('section[data-id="Modal Emoji"]'),R=document.querySelector('section[data-id="Modal Externo"]');y&&o.current&&!g.current.contains(D.target)&&(!M||!M.contains(D.target))&&!N&&!T&&!R&&d()};return f&&document.addEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}},[f]),H.jsx(oh,{children:f&&H.jsx("section",{"data-id":"ModalLateral",children:H.jsx(of.div,{ref:o,initial:{opacity:0,backdropFilter:"blur(0px)"},animate:{opacity:1,backdropFilter:"blur(4px)"},exit:{opacity:0,backdropFilter:"blur(0px)"},transition:{duration:.3,ease:[.4,0,.2,1]},className:"h-full w-full fixed top-0 shadow-lg overflow-auto box-sizing z-[111] bg-black/20",style:{backgroundColor:"rgba(15, 23, 42, 0.3)"},children:H.jsxs(of.div,{ref:g,initial:{x:-400,opacity:0},animate:{x:0,opacity:1},exit:{x:-400,opacity:0},transition:{type:"spring",damping:30,stiffness:300,mass:.8},className:"modalLateral bg-white dark:bg-black border-[var(--conversation-header-border)] border-solid border-r overflow-hidden relative",children:[y&&H.jsx(of.span,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.2,duration:.2},className:"absolute w-5 h-5 top-3 right-3 pulse !cursor-pointer z-10",onClick:d,children:H.jsx(Hr,{className:"w-full h-full text-[var(--primary-strong)]"})}),H.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-[var(--primaria)] via-[var(--secundaria)] to-[var(--terciaria)]"}),H.jsx("div",{className:"w-full h-full",children:f})]})})})})}const Yv=xe()(f=>({isHover:!1,content:"",options:{},referenceElement:null,style:{},open:(y,d,o,g={})=>f(()=>({isHover:!0,content:y,referenceElement:o,options:d,style:g})),close:()=>f(()=>({isHover:!1,content:"",referenceElement:null,options:{},style:{}}))}));function Gv(){const{isHover:f,content:y,referenceElement:d,options:o,style:g}=Yv(),S=W.useRef(null),{refs:D,floatingStyles:M,context:N}=yh({...o,middleware:[bh(10),Sh({element:S})]});return W.useEffect(()=>{d&&D.setReference(d)},[d,D]),f&&H.jsx("section",{"data-id":"Tooltip",children:H.jsx("div",{ref:D.setFloating,className:"z-[9999999]",style:{...M,...g},children:H.jsxs("div",{className:"rounded shadow-sm bg-label-gradient border border-solid border-[var(--terciaria)] animate__animated animate__pulse",children:[H.jsx(gh,{ref:S,context:N,className:"fill-[var(--primaria)] w-3 h-3"}),H.jsx("div",{className:"text-[var(--letra)] p-[6px]",children:y})," "]})})})}const Xv=()=>{if(document.getElementById("piracy-overlay"))return;const f=document.createElement("style");f.id="piracy-styles",f.textContent=`
      @keyframes fadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
      }
  
      .piracy-overlay {
        position: fixed;
        inset: 0;
        background: #18181B;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        font-family: 'Inter', sans-serif;
        backdrop-filter: blur(8px);
        padding: 20px;
      }
  
      .piracy-modal {
        background: #09090B;
        color: #fff;
        border-radius: 20px;
        padding: 40px;
        max-width: 480px;
        width: 100%;
        max-height: 90vh;   
        overflow-y: auto; 
        animation: fadeIn 0.5s ease-out;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        gap: 28px;
        border: 1px solid #2c2c2e;
      }
  
      .piracy-icon {
        font-size: 64px;
        align-self: center;
        color: #f1c40f;
        margin-bottom: 4px;
      }
  
      .piracy-title {
        font-size: 30px;
        text-align: center;
        color: #ff4d4f;
        font-weight: 800;
        text-transform: uppercase;
        line-height: 1.1;
        margin-bottom: -8px;
      }
  
      .piracy-subtitle {
        font-size: 16px;
        text-align: center;
        color: #ffa502;
        font-weight: 600;
        text-transform: uppercase;
        margin-bottom: 8px;
      }
  
      .piracy-text {
        font-size: 15px;
        line-height: 1.7;
        color: #dcdde1;
        text-align: center;
      }
  
      .piracy-text p {
        margin: 0 0 16px 0;
      }
  
      .piracy-text p:last-child {
        margin-bottom: 0;
      }
  
      .piracy-text strong {
        color: #ff6b6b;
      }
  
      .piracy-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
        margin-top: 8px;
      }
  
      .piracy-btn-primary, .piracy-btn-secondary {
        padding: 14px 28px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
  
      .piracy-btn-primary {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
      }
  
      .piracy-btn-primary:hover {
        background: linear-gradient(135deg, #059669, #047857);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
      }
  
      .piracy-btn-secondary {
        background: transparent;
        color: #f39c12;
        border: 2px solid #f39c12;
      }
  
      .piracy-btn-secondary:hover {
        background: #f39c12;
        color: #fff;
        transform: translateY(-2px);
      }
  
      .piracy-footer {
        font-size: 12px;
        color: #a4b0be;
        text-align: center;
        margin-top: 16px;
        line-height: 1.5;
      }
  
      .piracy-brand {
        color: #10b981;
        font-weight: 800;
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
      }
  
      @media (max-width: 480px) {
        .piracy-modal {
          padding: 32px 24px;
          gap: 24px;
        }
        .piracy-title {
          font-size: 24px;
        }
        .piracy-icon {
          font-size: 56px;
        }
        .piracy-buttons {
          flex-direction: column;
        }
        .piracy-btn-primary, .piracy-btn-secondary {
          width: 100%;
        }
      }
    `,document.head.appendChild(f);const y=`
      <div class="piracy-modal">
        <div class="piracy-icon">⚠️</div>
        <div class="piracy-title">Pirataria Detectada</div>
        <div class="piracy-subtitle">Extensão não oficial</div>
        <div class="piracy-text">
          <p><strong>Atenção:</strong> Esta extensão foi identificada como <strong>pirata</strong>.</p>
          <p>Ela pode conter <strong>malware</strong>, capturar seus dados ou comprometer sua segurança.</p>
          <p><strong>Crime:</strong> Violação de direitos autorais prevista na Lei 9.610/98.</p>
          <p>Evite riscos: use a versão oficial da Chrome Web Store.</p>
        </div>
        <div class="piracy-buttons">
          <button class="piracy-btn-primary" id="piracy-store-btn">Ir para versão oficial</button>
          <button class="piracy-btn-secondary" id="piracy-support-btn">Fale conosco</button>
        </div>
        <div class="piracy-footer">
          Proteja-se e use fontes oficiais. <br/>
          <span>waTidy</span> - Extensão Oficial
        </div>
      </div>
    `,d=document.createElement("div");d.className="piracy-overlay",d.id="piracy-overlay",d.innerHTML=y,d.addEventListener("click",o=>{const g=o.target;if(g){if(g.id==="piracy-store-btn")window.open("https://chromewebstore.google.com/detail/gjlfpggiddcminhebiejofeglfjmleli","_blank");else if(g.id==="piracy-support-btn"){const S=document.createElement("a");S.href="https://wa.me/51994706255?text=Ol%C3%A1%2C%20tudo%20bem%3F%20Notei%20que%20estou%20usando%20uma%20vers%C3%A3o%20n%C3%A3o%20oficial%20da%20extens%C3%A3o%20e%20gostaria%20de%20migrar%20para%20a%20vers%C3%A3o%20oficial.%20Podem%20me%20ajudar%20com%20isso%3F",S.target="_blank",S.rel="noreferrer",S.click()}}}),requestAnimationFrame(()=>{document.body.innerHTML="",document.body.appendChild(d)})},Qv=async()=>{const{label:f}=Jh.getState(),{user:y}=kh.getState(),{domSelector:d}=Yt.getState();if(d.update_path_active!=="true")return;const o={phone:(await Uu.Conn("getMyDeviceId")).user,chromeStoreID:chrome.runtime.id,checkout:f.checkout,painel_gestor:Sf.painel_Gestor,backend:Sf.backend,user_logado:y,nome:f.name,tutorial:f.tutorial,suporte_clientes:f.suporte_clientes,timeZone:Wh()};(await lv.post(d.update_path,o,{headers:{"Content-Type":"application/json"}})).data.pt&&Xv()},Lv=()=>{W.useEffect(()=>{const f=y=>{if(y.data.type==="Ev"&&y.data.action==="chat.active_chat"){const d=JSON.parse(y.data.model);d&&(d.id={server:"@"+d.id.split("@")[1],user:d.id.split("@")[0],_serialized:d.id},Ef.setState({activeChat:d}))}};return window.addEventListener("message",f),()=>{window.removeEventListener("message",f)}},[])},Za=document.createElement("main");document.body.prepend(Za);Za.setAttribute("theme-active","default");Za.setAttribute("active-view-menu","true");const Zv=()=>{Lv();const f=Yt(y=>y.getSeletor);return W.useLayoutEffect(()=>{f("afiliadoMain",y=>{Za.appendChild(y)}),f("selector_theme",y=>{const d=()=>{const g=y.className.trim().split(/\s+/),S=g.indexOf("os-win");if(S!==-1){const D=g.slice(0,S+1).join(" ");y.className!==D&&(y.className=D)}};new MutationObserver(d).observe(y,{attributes:!0,attributeFilter:["class"]}),d()})},[]),Cv(),H.jsxs(fv,{children:[H.jsx(rh,{}),H.jsx(Fh,{}),H.jsx(Ph,{}),H.jsx(tv,{}),H.jsx(Ih,{}),H.jsx(qv,{}),H.jsx(Gv,{}),H.jsx(jv,{}),H.jsx(pv,{}),H.jsx(ov,{}),H.jsx(rv,{}),H.jsx(yv,{}),H.jsx(bv,{})]})};(async()=>{try{const y=await(await fetch(Sf.domSelector)).json();Yt.setState({domSelector:y})}catch(f){console.error("Error ao tentar Capturar o Dom Selector virtual",f)}finally{const{getElement:f,domSelector:y}=Yt.getState();dh(f("paneSide"),()=>{cv.createRoot(Za).render(H.jsx(Zv,{})),Za.setAttribute("active-assistente-chat",String(bf.getState().assistente.active)),Za.setAttribute("theme-active",String(pf.getState().tema)),$h(),Qv()}),Uu.DomSelector("set",y)}})();const iy=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{Br as A,Rr as C,vl as E,$n as F,Cr as M,zf as R,qr as a,kn as b,Wn as c,Af as d,jr as e,Uv as f,ny as g,Va as h,Gr as i,Tf as j,Zl as k,Qr as l,Bv as m,ay as n,Xr as o,uy as p,ey as q,Hv as r,Rv as s,zv as t,Yv as u,iy as v};
