import{s as Ph,E as dd,O as Ih,i as tm,a as lm,u as fl,W as ud,b as hd}from"./assets/js/5f17f2e4-eee8-4c6c-b8ad-0354b2ca6818.DaOqcLin.js";import{a as bf}from"./assets/js/2cf62db8-40c0-4fef-9571-103cee3a8862.NIGUFBhG.js";import{c as sl}from"./assets/js/41e594c9-a24a-4d01-8bd4-c68044b7cd97.BE_X0rWM.js";import{V as md,L as am,a as vd,P as yd,b as em,R as um,B as nm,c as im,d as cm,e as fm,M as sm,I as nd,f as rm,g as om,h as dm,E as hm}from"./assets/js/ee083e6d-8918-4639-9085-786abdbc440c.oz-6vrhl.js";import{j as d,U as mm,_ as vm}from"./assets/js/0b90d1ed-66aa-4565-b95e-1e5a8bb7c847.WycpEkE9.js";import{d as ym,r as gm,a as at,G as vl}from"./assets/js/e0108323-6a0a-44ba-9f2f-71b7e829f088.0Z0pQ5H2.js";import{A as Fn,m as X}from"./assets/js/49d6eac2-126f-4877-ada6-efdf08368172.DfPsA50-.js";import{t as bm,c as pm}from"./assets/js/fea9d1a8-52e3-4eac-b178-6d34f64e1225.BTGVH9Kg.js";import"./assets/js/43e970db-8e5f-49d1-9adb-5d48d1b06b59.CJJD0ykY.js";(function(){const h=document.createElement("link").relList;if(h&&h.supports&&h.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))f(p);new MutationObserver(p=>{for(const T of p)if(T.type==="childList")for(const A of T.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&f(A)}).observe(document,{childList:!0,subtree:!0});function o(p){const T={};return p.integrity&&(T.integrity=p.integrity),p.referrerPolicy&&(T.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?T.credentials="include":p.crossOrigin==="anonymous"?T.credentials="omit":T.credentials="same-origin",T}function f(p){if(p.ep)return;p.ep=!0;const T=o(p);fetch(p.href,T)}})();Ph({page:"external"});const pf=sl()((s,h)=>({label:{chromeStoreID:"",descricao:"",language:"es",name:"",nameID:"",sigeID:"",checkout:"",tutorial:"",cor_primaria:!1,banner:null,install:"",uninstall:"",rewards:"",webhook_login_clients:"",ia_wascript:"",meetAovivo:null,suporte_clientes:{premium:"",free:""},videos_tutoriais:{resposta_rapida:"",mensagens_agendadas:"",envio_em_massa:"",status:"",auto_atendimento:"",fluxo:"",follow_up:"",api:"",webhook:""},btn_black:""},setLabel:o=>{s({label:o});const f=document.querySelector("main");f&&f.setAttribute("plugin-ico-color",String(h().label.cor_primaria))}}));async function Sm(){try{const h=await(await fetch(chrome.runtime.getURL("/label/config/utils.json"))).json();try{const f=(await bf.get(`${md.backend}api/whiteLabel/get.php?wl_id=${h.chromeStoreID}`,{headers:{"Content-Type":"application/json",accept:"application/json"}})).data.wl;f.cor_primaria=f.cor_primaria===0;const p={...h,...f};pf.getState().setLabel(p)}catch(o){const f={...h,checkout:"",tutorial:"",cor_primaria:!1,banner:null,install:"",uninstall:"",rewards:"",webhook_login_clients:"",ia_wascript:"",meetAovivo:null,suporte_clientes:{premium:"",free:""},videos_tutoriais:{resposta_rapida:"",mensagens_agendadas:"",envio_em_massa:"",status:"",auto_atendimento:"",fluxo:"",follow_up:"",api:"",webhook:""},btn_black:""};pf.getState().setLabel(f),console.error("erro ao carregar a WL remota",o)}}catch(s){console.error("Erro ao carregar o arquivo da Label Local:",s)}}async function xm(s,h){return new Promise((o,f)=>{const p=indexedDB.open(s,1);p.onerror=function(T){console.error("Erro ao abrir o banco de dados."),f("Erro ao abrir o banco de dados.")},p.onupgradeneeded=function(T){T.target.result.createObjectStore(h,{keyPath:"id",autoIncrement:!0})},p.onsuccess=function(T){const A=T.target.result,U=A.transaction([h],"readonly").objectStore(h).getAll();U.onsuccess=function(){o(U.result),A.close()},U.onerror=function(){console.error("Erro ao ler os dados da tabela."),f("Erro ao ler os dados da tabela.")}}})}async function Tm(s,h,o){return new Promise((f,p)=>{const T=indexedDB.open(s,1);T.onerror=function(A){console.error("Erro ao abrir o banco de dados."),p("Erro ao abrir o banco de dados.")},T.onupgradeneeded=function(A){A.target.result.createObjectStore(h,{keyPath:"id",autoIncrement:!0})},T.onsuccess=function(A){const j=A.target.result,U=j.transaction([h],"readwrite").objectStore(h);U.clear();const M=U.add(o);M.onsuccess=function(){f(!0),j.close()},M.onerror=function(){console.error("Worker Erro ao salvar os dados da camapanha."),f(!1)}}})}const Em=(s,h=!1)=>{Tm("useOrderLabels","orderLabels",s),dd({stopPropag:h,action:"setOrderLabels",waitForResponse:!1,data:s}),Ru.setState({orderLabels:s})},Am=Ih({setOrderLabels:s=>{Em(s.data,!0)},getOrderLabels:()=>Ru.getState().orderLabels});chrome.runtime.onMessage.addListener(Am);const zm=async()=>{const s=!location.href.includes("https://web.whatsapp");let h=[];if(s)h=await dd({stopPropag:!1,action:"getOrderLabels",waitForResponse:!0});else{const o=await xm("useOrderLabels","orderLabels");o[0]&&(h=o[0])}Ru.setState({orderLabels:h})},Ru=sl()(()=>({orderLabels:[]}));zm();(async()=>(await Sm(),tm(),lm()))();var rf={exports:{}},Uu={},of={exports:{}},df={};/**
 * @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 id;function Mm(){return id||(id=1,(function(s){function h(N,Z){var G=N.length;N.push(Z);t:for(;0<G;){var st=G-1>>>1,yt=N[st];if(0<p(yt,Z))N[st]=Z,N[G]=yt,G=st;else break t}}function o(N){return N.length===0?null:N[0]}function f(N){if(N.length===0)return null;var Z=N[0],G=N.pop();if(G!==Z){N[0]=G;t:for(var st=0,yt=N.length,ka=yt>>>1;st<ka;){var xa=2*(st+1)-1,Ml=N[xa],I=xa+1,Wt=N[I];if(0>p(Ml,G))I<yt&&0>p(Wt,Ml)?(N[st]=Wt,N[I]=G,st=I):(N[st]=Ml,N[xa]=G,st=xa);else if(I<yt&&0>p(Wt,G))N[st]=Wt,N[I]=G,st=I;else break t}}return Z}function p(N,Z){var G=N.sortIndex-Z.sortIndex;return G!==0?G:N.id-Z.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var T=performance;s.unstable_now=function(){return T.now()}}else{var A=Date,j=A.now();s.unstable_now=function(){return A.now()-j}}var O=[],U=[],M=1,C=null,R=3,B=!1,q=!1,K=!1,et=typeof setTimeout=="function"?setTimeout:null,Et=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function At(N){for(var Z=o(U);Z!==null;){if(Z.callback===null)f(U);else if(Z.startTime<=N)f(U),Z.sortIndex=Z.expirationTime,h(O,Z);else break;Z=o(U)}}function zl(N){if(K=!1,At(N),!q)if(o(O)!==null)q=!0,pa();else{var Z=o(U);Z!==null&&Sa(zl,Z.startTime-N)}}var yl=!1,Lt=-1,ya=5,ga=-1;function z(){return!(s.unstable_now()-ga<ya)}function L(){if(yl){var N=s.unstable_now();ga=N;var Z=!0;try{t:{q=!1,K&&(K=!1,Et(Lt),Lt=-1),B=!0;var G=R;try{l:{for(At(N),C=o(O);C!==null&&!(C.expirationTime>N&&z());){var st=C.callback;if(typeof st=="function"){C.callback=null,R=C.priorityLevel;var yt=st(C.expirationTime<=N);if(N=s.unstable_now(),typeof yt=="function"){C.callback=yt,At(N),Z=!0;break l}C===o(O)&&f(O),At(N)}else f(O);C=o(O)}if(C!==null)Z=!0;else{var ka=o(U);ka!==null&&Sa(zl,ka.startTime-N),Z=!1}}break t}finally{C=null,R=G,B=!1}Z=void 0}}finally{Z?$():yl=!1}}}var $;if(typeof k=="function")$=function(){k(L)};else if(typeof MessageChannel<"u"){var rl=new MessageChannel,ba=rl.port2;rl.port1.onmessage=L,$=function(){ba.postMessage(null)}}else $=function(){et(L,0)};function pa(){yl||(yl=!0,$())}function Sa(N,Z){Lt=et(function(){N(s.unstable_now())},Z)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(N){N.callback=null},s.unstable_continueExecution=function(){q||B||(q=!0,pa())},s.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ya=0<N?Math.floor(1e3/N):5},s.unstable_getCurrentPriorityLevel=function(){return R},s.unstable_getFirstCallbackNode=function(){return o(O)},s.unstable_next=function(N){switch(R){case 1:case 2:case 3:var Z=3;break;default:Z=R}var G=R;R=Z;try{return N()}finally{R=G}},s.unstable_pauseExecution=function(){},s.unstable_requestPaint=function(){},s.unstable_runWithPriority=function(N,Z){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var G=R;R=N;try{return Z()}finally{R=G}},s.unstable_scheduleCallback=function(N,Z,G){var st=s.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?st+G:st):G=st,N){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=G+yt,N={id:M++,callback:Z,priorityLevel:N,startTime:G,expirationTime:yt,sortIndex:-1},G>st?(N.sortIndex=G,h(U,N),o(O)===null&&N===o(U)&&(K?(Et(Lt),Lt=-1):K=!0,Sa(zl,G-st))):(N.sortIndex=yt,h(O,N),q||B||(q=!0,pa())),N},s.unstable_shouldYield=z,s.unstable_wrapCallback=function(N){var Z=R;return function(){var G=R;R=Z;try{return N.apply(this,arguments)}finally{R=G}}}})(df)),df}var cd;function Dm(){return cd||(cd=1,of.exports=Mm()),of.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 fd;function Om(){if(fd)return Uu;fd=1;var s=Dm(),h=ym(),o=gm();function f(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 p(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var T=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),B=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),Et=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),At=Symbol.for("react.offscreen"),zl=Symbol.for("react.memo_cache_sentinel"),yl=Symbol.iterator;function Lt(t){return t===null||typeof t!="object"?null:(t=yl&&t[yl]||t["@@iterator"],typeof t=="function"?t:null)}var ya=Symbol.for("react.client.reference");function ga(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ya?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case j:return"Portal";case M:return"Profiler";case U:return"StrictMode";case K:return"Suspense";case et:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case B:return(t.displayName||"Context")+".Provider";case R:return(t._context.displayName||"Context")+".Consumer";case q:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Et:return l=t.displayName||null,l!==null?l:ga(t.type)||"Memo";case k:l=t._payload,t=t._init;try{return ga(t(l))}catch{}}return null}var z=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.assign,$,rl;function ba(t){if($===void 0)try{throw Error()}catch(a){var l=a.stack.trim().match(/\n( *(at )?)/);$=l&&l[1]||"",rl=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+$+t+rl}var pa=!1;function Sa(t,l){if(!t||pa)return"";pa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var e={DetermineComponentFrameRoot:function(){try{if(l){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(S){var b=S}Reflect.construct(t,[],D)}else{try{D.call()}catch(S){b=S}t.call(D.prototype)}}else{try{throw Error()}catch(S){b=S}(D=t())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(S){if(S&&b&&typeof S.stack=="string")return[S.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 r=i.split(`
`),v=c.split(`
`);for(u=e=0;e<r.length&&!r[e].includes("DetermineComponentFrameRoot");)e++;for(;u<v.length&&!v[u].includes("DetermineComponentFrameRoot");)u++;if(e===r.length||u===v.length)for(e=r.length-1,u=v.length-1;1<=e&&0<=u&&r[e]!==v[u];)u--;for(;1<=e&&0<=u;e--,u--)if(r[e]!==v[u]){if(e!==1||u!==1)do if(e--,u--,0>u||r[e]!==v[u]){var x=`
`+r[e].replace(" at new "," at ");return t.displayName&&x.includes("<anonymous>")&&(x=x.replace("<anonymous>",t.displayName)),x}while(1<=e&&0<=u);break}}}finally{pa=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?ba(a):""}function N(t){switch(t.tag){case 26:case 27:case 5:return ba(t.type);case 16:return ba("Lazy");case 13:return ba("Suspense");case 19:return ba("SuspenseList");case 0:case 15:return t=Sa(t.type,!1),t;case 11:return t=Sa(t.type.render,!1),t;case 1:return t=Sa(t.type,!0),t;default:return""}}function Z(t){try{var l="";do l+=N(t),t=t.return;while(t);return l}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function G(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 st(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 yt(t){if(G(t)!==t)throw Error(f(188))}function ka(t){var l=t.alternate;if(!l){if(l=G(t),l===null)throw Error(f(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 yt(u),t;if(n===e)return yt(u),l;n=n.sibling}throw Error(f(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(f(189))}}if(a.alternate!==e)throw Error(f(190))}if(a.tag!==3)throw Error(f(188));return a.stateNode.current===a?t:l}function xa(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=xa(t),l!==null)return l;t=t.sibling}return null}var Ml=Array.isArray,I=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Wt={pending:!1,data:null,method:null,action:null},In=[],Wa=-1;function gl(t){return{current:t}}function zt(t){0>Wa||(t.current=In[Wa],In[Wa]=null,Wa--)}function rt(t,l){Wa++,In[Wa]=t.current,t.current=l}var bl=gl(null),_e=gl(null),wl=gl(null),_u=gl(null);function Hu(t,l){switch(rt(wl,l),rt(_e,t),rt(bl,null),t=l.nodeType,t){case 9:case 11:l=(l=l.documentElement)&&(l=l.namespaceURI)?Ro(l):0;break;default:if(t=t===8?l.parentNode:l,l=t.tagName,t=t.namespaceURI)t=Ro(t),l=_o(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}zt(bl),rt(bl,l)}function $a(){zt(bl),zt(_e),zt(wl)}function ti(t){t.memoizedState!==null&&rt(_u,t);var l=bl.current,a=_o(l,t.type);l!==a&&(rt(_e,t),rt(bl,a))}function Bu(t){_e.current===t&&(zt(bl),zt(_e)),_u.current===t&&(zt(_u),Mu._currentValue=Wt)}var li=Object.prototype.hasOwnProperty,ai=s.unstable_scheduleCallback,ei=s.unstable_cancelCallback,Cd=s.unstable_shouldYield,Ud=s.unstable_requestPaint,pl=s.unstable_now,Nd=s.unstable_getCurrentPriorityLevel,xf=s.unstable_ImmediatePriority,Tf=s.unstable_UserBlockingPriority,qu=s.unstable_NormalPriority,Rd=s.unstable_LowPriority,Ef=s.unstable_IdlePriority,_d=s.log,Hd=s.unstable_setDisableYieldValue,He=null,Gt=null;function Bd(t){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(He,t,void 0,(t.current.flags&128)===128)}catch{}}function Kl(t){if(typeof _d=="function"&&Hd(t),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(He,t)}catch{}}var Qt=Math.clz32?Math.clz32:Vd,qd=Math.log,Ld=Math.LN2;function Vd(t){return t>>>=0,t===0?32:31-(qd(t)/Ld|0)|0}var Lu=128,Vu=4194304;function Ta(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=Ta(a):(n&=c,n!==0?e=Ta(n):t||(i=c&~i,i!==0&&(e=Ta(i))))):(c=a&~u,c!==0?e=Ta(c):n!==0?e=Ta(n):t||(i=a&~i,i!==0&&(e=Ta(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 Be(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function Yd(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 Af(){var t=Lu;return Lu<<=1,(Lu&4194176)===0&&(Lu=128),t}function zf(){var t=Vu;return Vu<<=1,(Vu&62914560)===0&&(Vu=4194304),t}function ui(t){for(var l=[],a=0;31>a;a++)l.push(t);return l}function qe(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Xd(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,r=t.expirationTimes,v=t.hiddenUpdates;for(a=i&~a;0<a;){var x=31-Qt(a),D=1<<x;c[x]=0,r[x]=-1;var b=v[x];if(b!==null)for(v[x]=null,x=0;x<b.length;x++){var S=b[x];S!==null&&(S.lane&=-536870913)}a&=~D}e!==0&&Mf(t,e,0),n!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=n&~(i&~l))}function Mf(t,l,a){t.pendingLanes|=l,t.suspendedLanes&=~l;var e=31-Qt(l);t.entangledLanes|=l,t.entanglements[e]=t.entanglements[e]|1073741824|a&4194218}function Df(t,l){var a=t.entangledLanes|=l;for(t=t.entanglements;a;){var e=31-Qt(a),u=1<<e;u&l|t[e]&l&&(t[e]|=l),a&=~u}}function Of(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function jf(){var t=I.p;return t!==0?t:(t=window.event,t===void 0?32:Po(t.type))}function Gd(t,l){var a=I.p;try{return I.p=t,l()}finally{I.p=a}}var Jl=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Jl,Vt="__reactProps$"+Jl,Fa="__reactContainer$"+Jl,ni="__reactEvents$"+Jl,Qd="__reactListeners$"+Jl,Zd="__reactHandles$"+Jl,Cf="__reactResources$"+Jl,Le="__reactMarker$"+Jl;function ii(t){delete t[Rt],delete t[Vt],delete t[ni],delete t[Qd],delete t[Zd]}function Ea(t){var l=t[Rt];if(l)return l;for(var a=t.parentNode;a;){if(l=a[Fa]||a[Rt]){if(a=l.alternate,l.child!==null||a!==null&&a.child!==null)for(t=qo(t);t!==null;){if(a=t[Rt])return a;t=qo(t)}return l}t=a,a=t.parentNode}return null}function Pa(t){if(t=t[Rt]||t[Fa]){var l=t.tag;if(l===5||l===6||l===13||l===26||l===27||l===3)return t}return null}function Ve(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(f(33))}function Ia(t){var l=t[Cf];return l||(l=t[Cf]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Mt(t){t[Le]=!0}var Uf=new Set,Nf={};function Aa(t,l){te(t,l),te(t+"Capture",l)}function te(t,l){for(Nf[t]=l,t=0;t<l.length;t++)Uf.add(l[t])}var Dl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wd=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]*$"),Rf={},_f={};function Kd(t){return li.call(_f,t)?!0:li.call(Rf,t)?!1:wd.test(t)?_f[t]=!0:(Rf[t]=!0,!1)}function Xu(t,l,a){if(Kd(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 Gu(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 Ol(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 $t(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Hf(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Jd(t){var l=Hf(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=Jd(t))}function Bf(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var a=l.getValue(),e="";return t&&(e=Hf(t)?t.checked?"true":"false":t.value),t=e,t!==a?(l.setValue(t),!0):!1}function Zu(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 kd=/[\n"\\]/g;function Ft(t){return t.replace(kd,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function ci(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=""+$t(l)):t.value!==""+$t(l)&&(t.value=""+$t(l)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),l!=null?fi(t,i,$t(l)):a!=null?fi(t,i,$t(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=""+$t(c):t.removeAttribute("name")}function qf(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?""+$t(a):"",l=l!=null?""+$t(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 fi(t,l,a){l==="number"&&Zu(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function le(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=""+$t(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 Lf(t,l,a){if(l!=null&&(l=""+$t(l),l!==t.value&&(t.value=l),a==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=a!=null?""+$t(a):""}function Vf(t,l,a,e){if(l==null){if(e!=null){if(a!=null)throw Error(f(92));if(Ml(e)){if(1<e.length)throw Error(f(93));e=e[0]}a=e}a==null&&(a=""),l=a}a=$t(l),t.defaultValue=a,e=t.textContent,e===a&&e!==""&&e!==null&&(t.value=e)}function ae(t,l){if(l){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=l;return}}t.textContent=l}var Wd=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 Yf(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||Wd.has(l)?l==="float"?t.cssFloat=a:t[l]=(""+a).trim():t[l]=a+"px"}function Xf(t,l,a){if(l!=null&&typeof l!="object")throw Error(f(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&&Yf(t,u,e)}else for(var n in l)l.hasOwnProperty(n)&&Yf(t,n,l[n])}function si(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 $d=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"]]),Fd=/^[\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 wu(t){return Fd.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var ri=null;function oi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ee=null,ue=null;function Gf(t){var l=Pa(t);if(l&&(t=l.stateNode)){var a=t[Vt]||null;t:switch(t=l.stateNode,l.type){case"input":if(ci(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="'+Ft(""+l)+'"][type="radio"]'),l=0;l<a.length;l++){var e=a[l];if(e!==t&&e.form===t.form){var u=e[Vt]||null;if(!u)throw Error(f(90));ci(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&&Bf(e)}break t;case"textarea":Lf(t,a.value,a.defaultValue);break t;case"select":l=a.value,l!=null&&le(t,!!a.multiple,l,!1)}}}var di=!1;function Qf(t,l,a){if(di)return t(l,a);di=!0;try{var e=t(l);return e}finally{if(di=!1,(ee!==null||ue!==null)&&(jn(),ee&&(l=ee,t=ue,ue=ee=null,Gf(l),t)))for(l=0;l<t.length;l++)Gf(t[l])}}function Ye(t,l){var a=t.stateNode;if(a===null)return null;var e=a[Vt]||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(f(231,l,typeof a));return a}var hi=!1;if(Dl)try{var Xe={};Object.defineProperty(Xe,"passive",{get:function(){hi=!0}}),window.addEventListener("test",Xe,Xe),window.removeEventListener("test",Xe,Xe)}catch{hi=!1}var kl=null,mi=null,Ku=null;function Zf(){if(Ku)return Ku;var t,l=mi,a=l.length,e,u="value"in kl?kl.value:kl.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 Ku=u.slice(t,1<e?1-e:void 0)}function Ju(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 wf(){return!1}function Yt(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:wf,this.isPropagationStopped=wf,this}return L(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},Wu=Yt(za),Ge=L({},za,{view:0,detail:0}),Pd=Yt(Ge),vi,yi,Qe,$u=L({},Ge,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bi,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!==Qe&&(Qe&&t.type==="mousemove"?(vi=t.screenX-Qe.screenX,yi=t.screenY-Qe.screenY):yi=vi=0,Qe=t),vi)},movementY:function(t){return"movementY"in t?t.movementY:yi}}),Kf=Yt($u),Id=L({},$u,{dataTransfer:0}),t0=Yt(Id),l0=L({},Ge,{relatedTarget:0}),gi=Yt(l0),a0=L({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),e0=Yt(a0),u0=L({},za,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),n0=Yt(u0),i0=L({},za,{data:0}),Jf=Yt(i0),c0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f0={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"},s0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function r0(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=s0[t])?!!l[t]:!1}function bi(){return r0}var o0=L({},Ge,{key:function(t){if(t.key){var l=c0[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=Ju(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?f0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bi,charCode:function(t){return t.type==="keypress"?Ju(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ju(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),d0=Yt(o0),h0=L({},$u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kf=Yt(h0),m0=L({},Ge,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bi}),v0=Yt(m0),y0=L({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),g0=Yt(y0),b0=L({},$u,{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}),p0=Yt(b0),S0=L({},za,{newState:0,oldState:0}),x0=Yt(S0),T0=[9,13,27,32],pi=Dl&&"CompositionEvent"in window,Ze=null;Dl&&"documentMode"in document&&(Ze=document.documentMode);var E0=Dl&&"TextEvent"in window&&!Ze,Wf=Dl&&(!pi||Ze&&8<Ze&&11>=Ze),$f=" ",Ff=!1;function Pf(t,l){switch(t){case"keyup":return T0.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function If(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ne=!1;function A0(t,l){switch(t){case"compositionend":return If(l);case"keypress":return l.which!==32?null:(Ff=!0,$f);case"textInput":return t=l.data,t===$f&&Ff?null:t;default:return null}}function z0(t,l){if(ne)return t==="compositionend"||!pi&&Pf(t,l)?(t=Zf(),Ku=mi=kl=null,ne=!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 Wf&&l.locale!=="ko"?null:l.data;default:return null}}var M0={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 ts(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!M0[t.type]:l==="textarea"}function ls(t,l,a,e){ee?ue?ue.push(e):ue=[e]:ee=e,l=_n(l,"onChange"),0<l.length&&(a=new Wu("onChange","change",null,a,e),t.push({event:a,listeners:l}))}var we=null,Ke=null;function D0(t){Oo(t,0)}function Fu(t){var l=Ve(t);if(Bf(l))return t}function as(t,l){if(t==="change")return l}var es=!1;if(Dl){var Si;if(Dl){var xi="oninput"in document;if(!xi){var us=document.createElement("div");us.setAttribute("oninput","return;"),xi=typeof us.oninput=="function"}Si=xi}else Si=!1;es=Si&&(!document.documentMode||9<document.documentMode)}function ns(){we&&(we.detachEvent("onpropertychange",is),Ke=we=null)}function is(t){if(t.propertyName==="value"&&Fu(Ke)){var l=[];ls(l,Ke,t,oi(t)),Qf(D0,l)}}function O0(t,l,a){t==="focusin"?(ns(),we=l,Ke=a,we.attachEvent("onpropertychange",is)):t==="focusout"&&ns()}function j0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Fu(Ke)}function C0(t,l){if(t==="click")return Fu(l)}function U0(t,l){if(t==="input"||t==="change")return Fu(l)}function N0(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var Zt=typeof Object.is=="function"?Object.is:N0;function Je(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(!li.call(l,u)||!Zt(t[u],l[u]))return!1}return!0}function cs(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fs(t,l){var a=cs(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=cs(a)}}function ss(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?ss(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function rs(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Zu(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=Zu(t.document)}return l}function Ti(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 R0(t,l){var a=rs(l);l=t.focusedElem;var e=t.selectionRange;if(a!==l&&l&&l.ownerDocument&&ss(l.ownerDocument.documentElement,l)){if(e!==null&&Ti(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=fs(l,n);var i=fs(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 _0=Dl&&"documentMode"in document&&11>=document.documentMode,ie=null,Ei=null,ke=null,Ai=!1;function os(t,l,a){var e=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ai||ie==null||ie!==Zu(e)||(e=ie,"selectionStart"in e&&Ti(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}),ke&&Je(ke,e)||(ke=e,e=_n(Ei,"onSelect"),0<e.length&&(l=new Wu("onSelect","select",null,l,a),t.push({event:l,listeners:e}),l.target=ie)))}function Ma(t,l){var a={};return a[t.toLowerCase()]=l.toLowerCase(),a["Webkit"+t]="webkit"+l,a["Moz"+t]="moz"+l,a}var ce={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")},zi={},ds={};Dl&&(ds=document.createElement("div").style,"AnimationEvent"in window||(delete ce.animationend.animation,delete ce.animationiteration.animation,delete ce.animationstart.animation),"TransitionEvent"in window||delete ce.transitionend.transition);function Da(t){if(zi[t])return zi[t];if(!ce[t])return t;var l=ce[t],a;for(a in l)if(l.hasOwnProperty(a)&&a in ds)return zi[t]=l[a];return t}var hs=Da("animationend"),ms=Da("animationiteration"),vs=Da("animationstart"),H0=Da("transitionrun"),B0=Da("transitionstart"),q0=Da("transitioncancel"),ys=Da("transitionend"),gs=new Map,bs="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){gs.set(t,l),Aa(l,[t])}var Pt=[],fe=0,Mi=0;function Pu(){for(var t=fe,l=Mi=fe=0;l<t;){var a=Pt[l];Pt[l++]=null;var e=Pt[l];Pt[l++]=null;var u=Pt[l];Pt[l++]=null;var n=Pt[l];if(Pt[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&&ps(a,u,n)}}function Iu(t,l,a,e){Pt[fe++]=t,Pt[fe++]=l,Pt[fe++]=a,Pt[fe++]=e,Mi|=e,t.lanes|=e,t=t.alternate,t!==null&&(t.lanes|=e)}function Di(t,l,a,e){return Iu(t,l,a,e),tn(t)}function Wl(t,l){return Iu(t,null,null,l),tn(t)}function ps(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-Qt(a),n=n.hiddenUpdates,t=n[u],t===null?n[u]=[l]:t.push(l),l.lane=a|536870912)}function tn(t){if(50<pu)throw pu=0,Rc=null,Error(f(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var se={},Ss=new WeakMap;function It(t,l){if(typeof t=="object"&&t!==null){var a=Ss.get(t);return a!==void 0?a:(l={value:t,source:l,stack:Z(l)},Ss.set(t,l),l)}return{value:t,source:l,stack:Z(l)}}var re=[],oe=0,ln=null,an=0,tl=[],ll=0,Oa=null,jl=1,Cl="";function ja(t,l){re[oe++]=an,re[oe++]=ln,ln=t,an=l}function xs(t,l,a){tl[ll++]=jl,tl[ll++]=Cl,tl[ll++]=Oa,Oa=t;var e=jl;t=Cl;var u=32-Qt(e)-1;e&=~(1<<u),a+=1;var n=32-Qt(l)+u;if(30<n){var i=u-u%5;n=(e&(1<<i)-1).toString(32),e>>=i,u-=i,jl=1<<32-Qt(l)+u|a<<u|e,Cl=n+t}else jl=1<<n|a<<u|e,Cl=t}function Oi(t){t.return!==null&&(ja(t,1),xs(t,1,0))}function ji(t){for(;t===ln;)ln=re[--oe],re[oe]=null,an=re[--oe],re[oe]=null;for(;t===Oa;)Oa=tl[--ll],tl[ll]=null,Cl=tl[--ll],tl[ll]=null,jl=tl[--ll],tl[ll]=null}var Bt=null,Ct=null,tt=!1,dl=null,Sl=!1,Ci=Error(f(519));function Ca(t){var l=Error(f(418,""));throw Fe(It(l,t)),Ci}function Ts(t){var l=t.stateNode,a=t.type,e=t.memoizedProps;switch(l[Rt]=t,l[Vt]=e,a){case"dialog":F("cancel",l),F("close",l);break;case"iframe":case"object":case"embed":F("load",l);break;case"video":case"audio":for(a=0;a<xu.length;a++)F(xu[a],l);break;case"source":F("error",l);break;case"img":case"image":case"link":F("error",l),F("load",l);break;case"details":F("toggle",l);break;case"input":F("invalid",l),qf(l,e.value,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name,!0),Qu(l);break;case"select":F("invalid",l);break;case"textarea":F("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||No(l.textContent,a)?(e.popover!=null&&(F("beforetoggle",l),F("toggle",l)),e.onScroll!=null&&F("scroll",l),e.onScrollEnd!=null&&F("scrollend",l),e.onClick!=null&&(l.onclick=Hn),l=!0):l=!1,l||Ca(t)}function Es(t){for(Bt=t.return;Bt;)switch(Bt.tag){case 3:case 27:Sl=!0;return;case 5:case 13:Sl=!1;return;default:Bt=Bt.return}}function We(t){if(t!==Bt)return!1;if(!tt)return Es(t),tt=!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")||$c(t.type,t.memoizedProps)),a=!a),a&&(l=!0),l&&Ct&&Ca(t),Es(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(317));t:{for(t=t.nextSibling,l=0;t;){if(t.nodeType===8)if(a=t.data,a==="/$"){if(l===0){Ct=ml(t.nextSibling);break t}l--}else a!=="$"&&a!=="$!"&&a!=="$?"||l++;t=t.nextSibling}Ct=null}}else Ct=Bt?ml(t.stateNode.nextSibling):null;return!0}function $e(){Ct=Bt=null,tt=!1}function Fe(t){dl===null?dl=[t]:dl.push(t)}var Pe=Error(f(460)),As=Error(f(474)),Ui={then:function(){}};function zs(t){return t=t.status,t==="fulfilled"||t==="rejected"}function en(){}function Ms(t,l,a){switch(a=t[a],a===void 0?t.push(l):a!==l&&(l.then(en,en),l=a),l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,t===Pe?Error(f(483)):t;default:if(typeof l.status=="string")l.then(en,en);else{if(t=ct,t!==null&&100<t.shellSuspendCounter)throw Error(f(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===Pe?Error(f(483)):t}throw Ie=l,Pe}}var Ie=null;function Ds(){if(Ie===null)throw Error(f(459));var t=Ie;return Ie=null,t}var de=null,tu=0;function un(t){var l=tu;return tu+=1,de===null&&(de=[]),Ms(de,t,l)}function lu(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function nn(t,l){throw l.$$typeof===T?Error(f(525)):(t=Object.prototype.toString.call(l),Error(f(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function Os(t){var l=t._init;return l(t._payload)}function js(t){function l(y,m){if(t){var g=y.deletions;g===null?(y.deletions=[m],y.flags|=16):g.push(m)}}function a(y,m){if(!t)return null;for(;m!==null;)l(y,m),m=m.sibling;return null}function e(y){for(var m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function u(y,m){return y=ca(y,m),y.index=0,y.sibling=null,y}function n(y,m,g){return y.index=g,t?(g=y.alternate,g!==null?(g=g.index,g<m?(y.flags|=33554434,m):g):(y.flags|=33554434,m)):(y.flags|=1048576,m)}function i(y){return t&&y.alternate===null&&(y.flags|=33554434),y}function c(y,m,g,E){return m===null||m.tag!==6?(m=zc(g,y.mode,E),m.return=y,m):(m=u(m,g),m.return=y,m)}function r(y,m,g,E){var _=g.type;return _===O?x(y,m,g.props.children,E,g.key):m!==null&&(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===k&&Os(_)===m.type)?(m=u(m,g.props),lu(m,g),m.return=y,m):(m=An(g.type,g.key,g.props,null,y.mode,E),lu(m,g),m.return=y,m)}function v(y,m,g,E){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=Mc(g,y.mode,E),m.return=y,m):(m=u(m,g.children||[]),m.return=y,m)}function x(y,m,g,E,_){return m===null||m.tag!==7?(m=Ya(g,y.mode,E,_),m.return=y,m):(m=u(m,g),m.return=y,m)}function D(y,m,g){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=zc(""+m,y.mode,g),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case A:return g=An(m.type,m.key,m.props,null,y.mode,g),lu(g,m),g.return=y,g;case j:return m=Mc(m,y.mode,g),m.return=y,m;case k:var E=m._init;return m=E(m._payload),D(y,m,g)}if(Ml(m)||Lt(m))return m=Ya(m,y.mode,g,null),m.return=y,m;if(typeof m.then=="function")return D(y,un(m),g);if(m.$$typeof===B)return D(y,xn(y,m),g);nn(y,m)}return null}function b(y,m,g,E){var _=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return _!==null?null:c(y,m,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case A:return g.key===_?r(y,m,g,E):null;case j:return g.key===_?v(y,m,g,E):null;case k:return _=g._init,g=_(g._payload),b(y,m,g,E)}if(Ml(g)||Lt(g))return _!==null?null:x(y,m,g,E,null);if(typeof g.then=="function")return b(y,m,un(g),E);if(g.$$typeof===B)return b(y,m,xn(y,g),E);nn(y,g)}return null}function S(y,m,g,E,_){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return y=y.get(g)||null,c(m,y,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case A:return y=y.get(E.key===null?g:E.key)||null,r(m,y,E,_);case j:return y=y.get(E.key===null?g:E.key)||null,v(m,y,E,_);case k:var J=E._init;return E=J(E._payload),S(y,m,g,E,_)}if(Ml(E)||Lt(E))return y=y.get(g)||null,x(m,y,E,_,null);if(typeof E.then=="function")return S(y,m,g,un(E),_);if(E.$$typeof===B)return S(y,m,g,xn(m,E),_);nn(m,E)}return null}function H(y,m,g,E){for(var _=null,J=null,V=m,Y=m=0,jt=null;V!==null&&Y<g.length;Y++){V.index>Y?(jt=V,V=null):jt=V.sibling;var lt=b(y,V,g[Y],E);if(lt===null){V===null&&(V=jt);break}t&&V&&lt.alternate===null&&l(y,V),m=n(lt,m,Y),J===null?_=lt:J.sibling=lt,J=lt,V=jt}if(Y===g.length)return a(y,V),tt&&ja(y,Y),_;if(V===null){for(;Y<g.length;Y++)V=D(y,g[Y],E),V!==null&&(m=n(V,m,Y),J===null?_=V:J.sibling=V,J=V);return tt&&ja(y,Y),_}for(V=e(V);Y<g.length;Y++)jt=S(V,y,Y,g[Y],E),jt!==null&&(t&&jt.alternate!==null&&V.delete(jt.key===null?Y:jt.key),m=n(jt,m,Y),J===null?_=jt:J.sibling=jt,J=jt);return t&&V.forEach(function(ma){return l(y,ma)}),tt&&ja(y,Y),_}function Q(y,m,g,E){if(g==null)throw Error(f(151));for(var _=null,J=null,V=m,Y=m=0,jt=null,lt=g.next();V!==null&&!lt.done;Y++,lt=g.next()){V.index>Y?(jt=V,V=null):jt=V.sibling;var ma=b(y,V,lt.value,E);if(ma===null){V===null&&(V=jt);break}t&&V&&ma.alternate===null&&l(y,V),m=n(ma,m,Y),J===null?_=ma:J.sibling=ma,J=ma,V=jt}if(lt.done)return a(y,V),tt&&ja(y,Y),_;if(V===null){for(;!lt.done;Y++,lt=g.next())lt=D(y,lt.value,E),lt!==null&&(m=n(lt,m,Y),J===null?_=lt:J.sibling=lt,J=lt);return tt&&ja(y,Y),_}for(V=e(V);!lt.done;Y++,lt=g.next())lt=S(V,y,Y,lt.value,E),lt!==null&&(t&&lt.alternate!==null&&V.delete(lt.key===null?Y:lt.key),m=n(lt,m,Y),J===null?_=lt:J.sibling=lt,J=lt);return t&&V.forEach(function(Fh){return l(y,Fh)}),tt&&ja(y,Y),_}function vt(y,m,g,E){if(typeof g=="object"&&g!==null&&g.type===O&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case A:t:{for(var _=g.key;m!==null;){if(m.key===_){if(_=g.type,_===O){if(m.tag===7){a(y,m.sibling),E=u(m,g.props.children),E.return=y,y=E;break t}}else if(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===k&&Os(_)===m.type){a(y,m.sibling),E=u(m,g.props),lu(E,g),E.return=y,y=E;break t}a(y,m);break}else l(y,m);m=m.sibling}g.type===O?(E=Ya(g.props.children,y.mode,E,g.key),E.return=y,y=E):(E=An(g.type,g.key,g.props,null,y.mode,E),lu(E,g),E.return=y,y=E)}return i(y);case j:t:{for(_=g.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){a(y,m.sibling),E=u(m,g.children||[]),E.return=y,y=E;break t}else{a(y,m);break}else l(y,m);m=m.sibling}E=Mc(g,y.mode,E),E.return=y,y=E}return i(y);case k:return _=g._init,g=_(g._payload),vt(y,m,g,E)}if(Ml(g))return H(y,m,g,E);if(Lt(g)){if(_=Lt(g),typeof _!="function")throw Error(f(150));return g=_.call(g),Q(y,m,g,E)}if(typeof g.then=="function")return vt(y,m,un(g),E);if(g.$$typeof===B)return vt(y,m,xn(y,g),E);nn(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,m!==null&&m.tag===6?(a(y,m.sibling),E=u(m,g),E.return=y,y=E):(a(y,m),E=zc(g,y.mode,E),E.return=y,y=E),i(y)):a(y,m)}return function(y,m,g,E){try{tu=0;var _=vt(y,m,g,E);return de=null,_}catch(V){if(V===Pe)throw V;var J=nl(29,V,null,y.mode);return J.lanes=E,J.return=y,J}finally{}}}var Ua=js(!0),Cs=js(!1),he=gl(null),cn=gl(0);function Us(t,l){t=Xl,rt(cn,t),rt(he,l),Xl=t|l.baseLanes}function Ni(){rt(cn,Xl),rt(he,he.current)}function Ri(){Xl=cn.current,zt(he),zt(cn)}var al=gl(null),xl=null;function $l(t){var l=t.alternate;rt(xt,xt.current&1),rt(al,t),xl===null&&(l===null||he.current!==null||l.memoizedState!==null)&&(xl=t)}function Ns(t){if(t.tag===22){if(rt(xt,xt.current),rt(al,t),xl===null){var l=t.alternate;l!==null&&l.memoizedState!==null&&(xl=t)}}else Fl()}function Fl(){rt(xt,xt.current),rt(al,al.current)}function Ul(t){zt(al),xl===t&&(xl=null),zt(xt)}var xt=gl(0);function fn(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 L0=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()})}},V0=s.unstable_scheduleCallback,Y0=s.unstable_NormalPriority,Tt={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _i(){return{controller:new L0,data:new Map,refCount:0}}function au(t){t.refCount--,t.refCount===0&&V0(Y0,function(){t.controller.abort()})}var eu=null,Hi=0,me=0,ve=null;function X0(t,l){if(eu===null){var a=eu=[];Hi=0,me=Xc(),ve={status:"pending",value:void 0,then:function(e){a.push(e)}}}return Hi++,l.then(Rs,Rs),l}function Rs(){if(--Hi===0&&eu!==null){ve!==null&&(ve.status="fulfilled");var t=eu;eu=null,me=0,ve=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function G0(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 _s=z.S;z.S=function(t,l){typeof l=="object"&&l!==null&&typeof l.then=="function"&&X0(t,l),_s!==null&&_s(t,l)};var Na=gl(null);function Bi(){var t=Na.current;return t!==null?t:ct.pooledCache}function sn(t,l){l===null?rt(Na,Na.current):rt(Na,l.pool)}function Hs(){var t=Bi();return t===null?null:{parent:Tt._currentValue,pool:t}}var Pl=0,w=null,ut=null,bt=null,rn=!1,ye=!1,Ra=!1,on=0,uu=0,ge=null,Q0=0;function gt(){throw Error(f(321))}function qi(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 Li(t,l,a,e,u,n){return Pl=n,w=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,z.H=t===null||t.memoizedState===null?_a:Il,Ra=!1,n=a(e,u),Ra=!1,ye&&(n=qs(l,a,e,u)),Bs(t),n}function Bs(t){z.H=Tl;var l=ut!==null&&ut.next!==null;if(Pl=0,bt=ut=w=null,rn=!1,uu=0,ge=null,l)throw Error(f(300));t===null||Dt||(t=t.dependencies,t!==null&&Sn(t)&&(Dt=!0))}function qs(t,l,a,e){w=t;var u=0;do{if(ye&&(ge=null),uu=0,ye=!1,25<=u)throw Error(f(301));if(u+=1,bt=ut=null,t.updateQueue!=null){var n=t.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}z.H=Ha,n=l(a,e)}while(ye);return n}function Z0(){var t=z.H,l=t.useState()[0];return l=typeof l.then=="function"?nu(l):l,t=t.useState()[0],(ut!==null?ut.memoizedState:null)!==t&&(w.flags|=1024),l}function Vi(){var t=on!==0;return on=0,t}function Yi(t,l,a){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~a}function Xi(t){if(rn){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}rn=!1}Pl=0,bt=ut=w=null,ye=!1,uu=on=0,ge=null}function Xt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?w.memoizedState=bt=t:bt=bt.next=t,bt}function pt(){if(ut===null){var t=w.alternate;t=t!==null?t.memoizedState:null}else t=ut.next;var l=bt===null?w.memoizedState:bt.next;if(l!==null)bt=l,ut=t;else{if(t===null)throw w.alternate===null?Error(f(467)):Error(f(310));ut=t,t={memoizedState:ut.memoizedState,baseState:ut.baseState,baseQueue:ut.baseQueue,queue:ut.queue,next:null},bt===null?w.memoizedState=bt=t:bt=bt.next=t}return bt}var dn;dn=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function nu(t){var l=uu;return uu+=1,ge===null&&(ge=[]),t=Ms(ge,t,l),l=w,(bt===null?l.memoizedState:bt.next)===null&&(l=l.alternate,z.H=l===null||l.memoizedState===null?_a:Il),t}function hn(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return nu(t);if(t.$$typeof===B)return _t(t)}throw Error(f(438,String(t)))}function Gi(t){var l=null,a=w.updateQueue;if(a!==null&&(l=a.memoCache),l==null){var e=w.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=dn(),w.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]=zl;return l.index++,a}function Nl(t,l){return typeof l=="function"?l(t):l}function mn(t){var l=pt();return Qi(l,ut,t)}function Qi(t,l,a){var e=t.queue;if(e===null)throw Error(f(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,r=null,v=l,x=!1;do{var D=v.lane&-536870913;if(D!==v.lane?(P&D)===D:(Pl&D)===D){var b=v.revertLane;if(b===0)r!==null&&(r=r.next={lane:0,revertLane:0,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),D===me&&(x=!0);else if((Pl&b)===b){v=v.next,b===me&&(x=!0);continue}else D={lane:0,revertLane:v.revertLane,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},r===null?(c=r=D,i=n):r=r.next=D,w.lanes|=b,fa|=b;D=v.action,Ra&&a(n,D),n=v.hasEagerState?v.eagerState:a(n,D)}else b={lane:D,revertLane:v.revertLane,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},r===null?(c=r=b,i=n):r=r.next=b,w.lanes|=D,fa|=D;v=v.next}while(v!==null&&v!==l);if(r===null?i=n:r.next=c,!Zt(n,t.memoizedState)&&(Dt=!0,x&&(a=ve,a!==null)))throw a;t.memoizedState=n,t.baseState=i,t.baseQueue=r,e.lastRenderedState=n}return u===null&&(e.lanes=0),[t.memoizedState,e.dispatch]}function Zi(t){var l=pt(),a=l.queue;if(a===null)throw Error(f(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)||(Dt=!0),l.memoizedState=n,l.baseQueue===null&&(l.baseState=n),a.lastRenderedState=n}return[n,e]}function Ls(t,l,a){var e=w,u=pt(),n=tt;if(n){if(a===void 0)throw Error(f(407));a=a()}else a=l();var i=!Zt((ut||u).memoizedState,a);if(i&&(u.memoizedState=a,Dt=!0),u=u.queue,Ji(Xs.bind(null,e,u,t),[t]),u.getSnapshot!==l||i||bt!==null&&bt.memoizedState.tag&1){if(e.flags|=2048,be(9,Ys.bind(null,e,u,a,l),{destroy:void 0},null),ct===null)throw Error(f(349));n||(Pl&60)!==0||Vs(e,l,a)}return a}function Vs(t,l,a){t.flags|=16384,t={getSnapshot:l,value:a},l=w.updateQueue,l===null?(l=dn(),w.updateQueue=l,l.stores=[t]):(a=l.stores,a===null?l.stores=[t]:a.push(t))}function Ys(t,l,a,e){l.value=a,l.getSnapshot=e,Gs(l)&&Qs(t)}function Xs(t,l,a){return a(function(){Gs(l)&&Qs(t)})}function Gs(t){var l=t.getSnapshot;t=t.value;try{var a=l();return!Zt(t,a)}catch{return!0}}function Qs(t){var l=Wl(t,2);l!==null&&qt(l,t,2)}function wi(t){var l=Xt();if(typeof t=="function"){var a=t;if(t=a(),Ra){Kl(!0);try{a()}finally{Kl(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:t},l}function Zs(t,l,a,e){return t.baseState=a,Qi(t,ut,typeof e=="function"?e:Nl)}function w0(t,l,a,e,u){if(gn(t))throw Error(f(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)}};z.T!==null?a(!0):n.isTransition=!1,e(n),a=l.pending,a===null?(n.next=l.pending=n,ws(l,n)):(n.next=a.next,l.pending=a.next=n)}}function ws(t,l){var a=l.action,e=l.payload,u=t.state;if(l.isTransition){var n=z.T,i={};z.T=i;try{var c=a(u,e),r=z.S;r!==null&&r(i,c),Ks(t,l,c)}catch(v){Ki(t,l,v)}finally{z.T=n}}else try{n=a(u,e),Ks(t,l,n)}catch(v){Ki(t,l,v)}}function Ks(t,l,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(e){Js(t,l,e)},function(e){return Ki(t,l,e)}):Js(t,l,a)}function Js(t,l,a){l.status="fulfilled",l.value=a,ks(l),t.state=a,l=t.pending,l!==null&&(a=l.next,a===l?t.pending=null:(a=a.next,l.next=a,ws(t,a)))}function Ki(t,l,a){var e=t.pending;if(t.pending=null,e!==null){e=e.next;do l.status="rejected",l.reason=a,ks(l),l=l.next;while(l!==e)}t.action=null}function ks(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function Ws(t,l){return l}function $s(t,l){if(tt){var a=ct.formState;if(a!==null){t:{var e=w;if(tt){if(Ct){l:{for(var u=Ct,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){Ct=ml(u.nextSibling),e=u.data==="F!";break t}}Ca(e)}e=!1}e&&(l=a[0])}}return a=Xt(),a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:l},a.queue=e,a=mr.bind(null,w,e),e.dispatch=a,e=wi(!1),n=Pi.bind(null,w,!1,e.queue),e=Xt(),u={state:l,dispatch:null,action:t,pending:null},e.queue=u,a=w0.bind(null,w,u,n,a),u.dispatch=a,e.memoizedState=t,[l,a,!1]}function Fs(t){var l=pt();return Ps(l,ut,t)}function Ps(t,l,a){l=Qi(t,l,Ws)[0],t=mn(Nl)[0],l=typeof l=="object"&&l!==null&&typeof l.then=="function"?nu(l):l;var e=pt(),u=e.queue,n=u.dispatch;return a!==e.memoizedState&&(w.flags|=2048,be(9,K0.bind(null,u,a),{destroy:void 0},null)),[l,n,t]}function K0(t,l){t.action=l}function Is(t){var l=pt(),a=ut;if(a!==null)return Ps(l,a,t);pt(),l=l.memoizedState,a=pt();var e=a.queue.dispatch;return a.memoizedState=t,[l,e,!1]}function be(t,l,a,e){return t={tag:t,create:l,inst:a,deps:e,next:null},l=w.updateQueue,l===null&&(l=dn(),w.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 tr(){return pt().memoizedState}function vn(t,l,a,e){var u=Xt();w.flags|=t,u.memoizedState=be(1|l,a,{destroy:void 0},e===void 0?null:e)}function yn(t,l,a,e){var u=pt();e=e===void 0?null:e;var n=u.memoizedState.inst;ut!==null&&e!==null&&qi(e,ut.memoizedState.deps)?u.memoizedState=be(l,a,n,e):(w.flags|=t,u.memoizedState=be(1|l,a,n,e))}function lr(t,l){vn(8390656,8,t,l)}function Ji(t,l){yn(2048,8,t,l)}function ar(t,l){return yn(4,2,t,l)}function er(t,l){return yn(4,4,t,l)}function ur(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 nr(t,l,a){a=a!=null?a.concat([t]):null,yn(4,4,ur.bind(null,l,t),a)}function ki(){}function ir(t,l){var a=pt();l=l===void 0?null:l;var e=a.memoizedState;return l!==null&&qi(l,e[1])?e[0]:(a.memoizedState=[t,l],t)}function cr(t,l){var a=pt();l=l===void 0?null:l;var e=a.memoizedState;if(l!==null&&qi(l,e[1]))return e[0];if(e=t(),Ra){Kl(!0);try{t()}finally{Kl(!1)}}return a.memoizedState=[e,l],e}function Wi(t,l,a){return a===void 0||(Pl&1073741824)!==0?t.memoizedState=l:(t.memoizedState=a,t=so(),w.lanes|=t,fa|=t,a)}function fr(t,l,a,e){return Zt(a,l)?a:he.current!==null?(t=Wi(t,a,e),Zt(t,l)||(Dt=!0),t):(Pl&42)===0?(Dt=!0,t.memoizedState=a):(t=so(),w.lanes|=t,fa|=t,l)}function sr(t,l,a,e,u){var n=I.p;I.p=n!==0&&8>n?n:8;var i=z.T,c={};z.T=c,Pi(t,!1,l,a);try{var r=u(),v=z.S;if(v!==null&&v(c,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var x=G0(r,e);iu(t,l,x,kt(t))}else iu(t,l,e,kt(t))}catch(D){iu(t,l,{then:function(){},status:"rejected",reason:D},kt())}finally{I.p=n,z.T=i}}function J0(){}function $i(t,l,a,e){if(t.tag!==5)throw Error(f(476));var u=rr(t).queue;sr(t,u,l,Wt,a===null?J0:function(){return or(t),a(e)})}function rr(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:Wt,baseState:Wt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:Wt},next:null};var a={};return l.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:a},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function or(t){var l=rr(t).next.queue;iu(t,l,{},kt())}function Fi(){return _t(Mu)}function dr(){return pt().memoizedState}function hr(){return pt().memoizedState}function k0(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var a=kt();t=aa(a);var e=ea(l,t,a);e!==null&&(qt(e,l,a),su(e,l,a)),l={cache:_i()},t.payload=l;return}l=l.return}}function W0(t,l,a){var e=kt();a={lane:e,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},gn(t)?vr(l,a):(a=Di(t,l,a,e),a!==null&&(qt(a,t,e),yr(a,l,e)))}function mr(t,l,a){var e=kt();iu(t,l,a,e)}function iu(t,l,a,e){var u={lane:e,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(gn(t))vr(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 Iu(t,l,u,0),ct===null&&Pu(),!1}catch{}finally{}if(a=Di(t,l,u,e),a!==null)return qt(a,t,e),yr(a,l,e),!0}return!1}function Pi(t,l,a,e){if(e={lane:2,revertLane:Xc(),action:e,hasEagerState:!1,eagerState:null,next:null},gn(t)){if(l)throw Error(f(479))}else l=Di(t,a,e,2),l!==null&&qt(l,t,2)}function gn(t){var l=t.alternate;return t===w||l!==null&&l===w}function vr(t,l){ye=rn=!0;var a=t.pending;a===null?l.next=l:(l.next=a.next,a.next=l),t.pending=l}function yr(t,l,a){if((a&4194176)!==0){var e=l.lanes;e&=t.pendingLanes,a|=e,l.lanes=a,Df(t,a)}}var Tl={readContext:_t,use:hn,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useLayoutEffect:gt,useInsertionEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useSyncExternalStore:gt,useId:gt};Tl.useCacheRefresh=gt,Tl.useMemoCache=gt,Tl.useHostTransitionStatus=gt,Tl.useFormState=gt,Tl.useActionState=gt,Tl.useOptimistic=gt;var _a={readContext:_t,use:hn,useCallback:function(t,l){return Xt().memoizedState=[t,l===void 0?null:l],t},useContext:_t,useEffect:lr,useImperativeHandle:function(t,l,a){a=a!=null?a.concat([t]):null,vn(4194308,4,ur.bind(null,l,t),a)},useLayoutEffect:function(t,l){return vn(4194308,4,t,l)},useInsertionEffect:function(t,l){vn(4,2,t,l)},useMemo:function(t,l){var a=Xt();l=l===void 0?null:l;var e=t();if(Ra){Kl(!0);try{t()}finally{Kl(!1)}}return a.memoizedState=[e,l],e},useReducer:function(t,l,a){var e=Xt();if(a!==void 0){var u=a(l);if(Ra){Kl(!0);try{a(l)}finally{Kl(!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=W0.bind(null,w,t),[e.memoizedState,t]},useRef:function(t){var l=Xt();return t={current:t},l.memoizedState=t},useState:function(t){t=wi(t);var l=t.queue,a=mr.bind(null,w,l);return l.dispatch=a,[t.memoizedState,a]},useDebugValue:ki,useDeferredValue:function(t,l){var a=Xt();return Wi(a,t,l)},useTransition:function(){var t=wi(!1);return t=sr.bind(null,w,t.queue,!0,!1),Xt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,a){var e=w,u=Xt();if(tt){if(a===void 0)throw Error(f(407));a=a()}else{if(a=l(),ct===null)throw Error(f(349));(P&60)!==0||Vs(e,l,a)}u.memoizedState=a;var n={value:a,getSnapshot:l};return u.queue=n,lr(Xs.bind(null,e,n,t),[t]),e.flags|=2048,be(9,Ys.bind(null,e,n,a,l),{destroy:void 0},null),a},useId:function(){var t=Xt(),l=ct.identifierPrefix;if(tt){var a=Cl,e=jl;a=(e&~(1<<32-Qt(e)-1)).toString(32)+a,l=":"+l+"R"+a,a=on++,0<a&&(l+="H"+a.toString(32)),l+=":"}else a=Q0++,l=":"+l+"r"+a.toString(32)+":";return t.memoizedState=l},useCacheRefresh:function(){return Xt().memoizedState=k0.bind(null,w)}};_a.useMemoCache=Gi,_a.useHostTransitionStatus=Fi,_a.useFormState=$s,_a.useActionState=$s,_a.useOptimistic=function(t){var l=Xt();l.memoizedState=l.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=a,l=Pi.bind(null,w,!0,a),a.dispatch=l,[t,l]};var Il={readContext:_t,use:hn,useCallback:ir,useContext:_t,useEffect:Ji,useImperativeHandle:nr,useInsertionEffect:ar,useLayoutEffect:er,useMemo:cr,useReducer:mn,useRef:tr,useState:function(){return mn(Nl)},useDebugValue:ki,useDeferredValue:function(t,l){var a=pt();return fr(a,ut.memoizedState,t,l)},useTransition:function(){var t=mn(Nl)[0],l=pt().memoizedState;return[typeof t=="boolean"?t:nu(t),l]},useSyncExternalStore:Ls,useId:dr};Il.useCacheRefresh=hr,Il.useMemoCache=Gi,Il.useHostTransitionStatus=Fi,Il.useFormState=Fs,Il.useActionState=Fs,Il.useOptimistic=function(t,l){var a=pt();return Zs(a,ut,t,l)};var Ha={readContext:_t,use:hn,useCallback:ir,useContext:_t,useEffect:Ji,useImperativeHandle:nr,useInsertionEffect:ar,useLayoutEffect:er,useMemo:cr,useReducer:Zi,useRef:tr,useState:function(){return Zi(Nl)},useDebugValue:ki,useDeferredValue:function(t,l){var a=pt();return ut===null?Wi(a,t,l):fr(a,ut.memoizedState,t,l)},useTransition:function(){var t=Zi(Nl)[0],l=pt().memoizedState;return[typeof t=="boolean"?t:nu(t),l]},useSyncExternalStore:Ls,useId:dr};Ha.useCacheRefresh=hr,Ha.useMemoCache=Gi,Ha.useHostTransitionStatus=Fi,Ha.useFormState=Is,Ha.useActionState=Is,Ha.useOptimistic=function(t,l){var a=pt();return ut!==null?Zs(a,ut,t,l):(a.baseState=t,[t,a.queue.dispatch])};function Ii(t,l,a,e){l=t.memoizedState,a=a(e,l),a=a==null?l:L({},l,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var tc={isMounted:function(t){return(t=t._reactInternals)?G(t)===t:!1},enqueueSetState:function(t,l,a){t=t._reactInternals;var e=kt(),u=aa(e);u.payload=l,a!=null&&(u.callback=a),l=ea(t,u,e),l!==null&&(qt(l,t,e),su(l,t,e))},enqueueReplaceState:function(t,l,a){t=t._reactInternals;var e=kt(),u=aa(e);u.tag=1,u.payload=l,a!=null&&(u.callback=a),l=ea(t,u,e),l!==null&&(qt(l,t,e),su(l,t,e))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var a=kt(),e=aa(a);e.tag=2,l!=null&&(e.callback=l),l=ea(t,e,a),l!==null&&(qt(l,t,a),su(l,t,a))}};function gr(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?!Je(a,e)||!Je(u,n):!0}function br(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&&tc.enqueueReplaceState(l,l.state,null)}function Ba(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=L({},a));for(var u in t)a[u]===void 0&&(a[u]=t[u])}return a}var bn=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 pr(t){bn(t)}function Sr(t){console.error(t)}function xr(t){bn(t)}function pn(t,l){try{var a=t.onUncaughtError;a(l.value,{componentStack:l.stack})}catch(e){setTimeout(function(){throw e})}}function Tr(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 lc(t,l,a){return a=aa(a),a.tag=3,a.payload={element:null},a.callback=function(){pn(t,l)},a}function Er(t){return t=aa(t),t.tag=3,t}function Ar(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(){Tr(l,a,e)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){Tr(l,a,e),typeof u!="function"&&(sa===null?sa=new Set([this]):sa.add(this));var c=e.stack;this.componentDidCatch(e.value,{componentStack:c!==null?c:""})})}function $0(t,l,a,e,u){if(a.flags|=32768,e!==null&&typeof e=="object"&&typeof e.then=="function"){if(l=a.alternate,l!==null&&fu(l,a,u,!0),a=al.current,a!==null){switch(a.tag){case 13:return xl===null?Bc():a.alternate===null&&mt===0&&(mt=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),Lc(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)),Lc(t,e,u)),!1}throw Error(f(435,a.tag))}return Lc(t,e,u),Bc(),!1}if(tt)return l=al.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=u,e!==Ci&&(t=Error(f(422),{cause:e}),Fe(It(t,a)))):(e!==Ci&&(l=Error(f(423),{cause:e}),Fe(It(l,a))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,e=It(e,a),u=lc(t.stateNode,e,u),yc(t,u),mt!==4&&(mt=2)),!1;var n=Error(f(520),{cause:e});if(n=It(n,a),gu===null?gu=[n]:gu.push(n),mt!==4&&(mt=2),l===null)return!0;e=It(e,a),a=l;do{switch(a.tag){case 3:return a.flags|=65536,t=u&-u,a.lanes|=t,t=lc(a.stateNode,e,t),yc(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"&&(sa===null||!sa.has(n))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Er(u),Ar(u,t,a,e),yc(a,u),!1}a=a.return}while(a!==null);return!1}var zr=Error(f(461)),Dt=!1;function Ut(t,l,a,e){l.child=t===null?Cs(l,null,a,e):Ua(l,t.child,a,e)}function Mr(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 La(l),e=Li(t,l,a,i,n,u),c=Vi(),t!==null&&!Dt?(Yi(t,l,u),Rl(t,l,u)):(tt&&c&&Oi(l),l.flags|=1,Ut(t,l,e,u),l.child)}function Dr(t,l,a,e,u){if(t===null){var n=a.type;return typeof n=="function"&&!Ac(n)&&n.defaultProps===void 0&&a.compare===null?(l.tag=15,l.type=n,Or(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,!rc(t,u)){var i=n.memoizedProps;if(a=a.compare,a=a!==null?a:Je,a(i,e)&&t.ref===l.ref)return Rl(t,l,u)}return l.flags|=1,t=ca(n,e),t.ref=l.ref,t.return=l,l.child=t}function Or(t,l,a,e,u){if(t!==null){var n=t.memoizedProps;if(Je(n,e)&&t.ref===l.ref)if(Dt=!1,l.pendingProps=e=n,rc(t,u))(t.flags&131072)!==0&&(Dt=!0);else return l.lanes=t.lanes,Rl(t,l,u)}return ac(t,l,a,e,u)}function jr(t,l,a){var e=l.pendingProps,u=e.children,n=(l.stateNode._pendingVisibility&2)!==0,i=t!==null?t.memoizedState:null;if(cu(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 Cr(t,l,e,a)}if((a&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&sn(l,i!==null?i.cachePool:null),i!==null?Us(l,i):Ni(),Ns(l);else return l.lanes=l.childLanes=536870912,Cr(t,l,i!==null?i.baseLanes|a:a,a)}else i!==null?(sn(l,i.cachePool),Us(l,i),Fl(),l.memoizedState=null):(t!==null&&sn(l,null),Ni(),Fl());return Ut(t,l,u,a),l.child}function Cr(t,l,a,e){var u=Bi();return u=u===null?null:{parent:Tt._currentValue,pool:u},l.memoizedState={baseLanes:a,cachePool:u},t!==null&&sn(l,null),Ni(),Ns(l),t!==null&&fu(t,l,e,!0),null}function cu(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(f(284));(t===null||t.ref!==a)&&(l.flags|=2097664)}}function ac(t,l,a,e,u){return La(l),a=Li(t,l,a,e,void 0,u),e=Vi(),t!==null&&!Dt?(Yi(t,l,u),Rl(t,l,u)):(tt&&e&&Oi(l),l.flags|=1,Ut(t,l,a,u),l.child)}function Ur(t,l,a,e,u,n){return La(l),l.updateQueue=null,a=qs(l,e,a,u),Bs(t),e=Vi(),t!==null&&!Dt?(Yi(t,l,n),Rl(t,l,n)):(tt&&e&&Oi(l),l.flags|=1,Ut(t,l,a,n),l.child)}function Nr(t,l,a,e,u){if(La(l),l.stateNode===null){var n=se,i=a.contextType;typeof i=="object"&&i!==null&&(n=_t(i)),n=new a(e,n),l.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=tc,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?_t(i):se,n.state=l.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(Ii(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&&tc.enqueueReplaceState(n,n.state,null),ou(l,e,n,u),ru(),n.state=l.memoizedState),typeof n.componentDidMount=="function"&&(l.flags|=4194308),e=!0}else if(t===null){n=l.stateNode;var c=l.memoizedProps,r=Ba(a,c);n.props=r;var v=n.context,x=a.contextType;i=se,typeof x=="object"&&x!==null&&(i=_t(x));var D=a.getDerivedStateFromProps;x=typeof D=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=l.pendingProps!==c,x||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||v!==i)&&br(l,n,e,i),la=!1;var b=l.memoizedState;n.state=b,ou(l,e,n,u),ru(),v=l.memoizedState,c||b!==v||la?(typeof D=="function"&&(Ii(l,a,D,e),v=l.memoizedState),(r=la||gr(l,a,r,e,b,v,i))?(x||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=v),n.props=e,n.state=v,n.context=i,e=r):(typeof n.componentDidMount=="function"&&(l.flags|=4194308),e=!1)}else{n=l.stateNode,vc(t,l),i=l.memoizedProps,x=Ba(a,i),n.props=x,D=l.pendingProps,b=n.context,v=a.contextType,r=se,typeof v=="object"&&v!==null&&(r=_t(v)),c=a.getDerivedStateFromProps,(v=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==D||b!==r)&&br(l,n,e,r),la=!1,b=l.memoizedState,n.state=b,ou(l,e,n,u),ru();var S=l.memoizedState;i!==D||b!==S||la||t!==null&&t.dependencies!==null&&Sn(t.dependencies)?(typeof c=="function"&&(Ii(l,a,c,e),S=l.memoizedState),(x=la||gr(l,a,x,e,b,S,r)||t!==null&&t.dependencies!==null&&Sn(t.dependencies))?(v||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(e,S,r),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(e,S,r)),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=S),n.props=e,n.state=S,n.context=r,e=x):(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,cu(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=Ua(l,t.child,null,u),l.child=Ua(l,null,a,u)):Ut(t,l,a,u),l.memoizedState=n.state,t=l.child):t=Rl(t,l,u),t}function Rr(t,l,a,e){return $e(),l.flags|=256,Ut(t,l,a,e),l.child}var ec={dehydrated:null,treeContext:null,retryLane:0};function uc(t){return{baseLanes:t,cachePool:Hs()}}function nc(t,l,a){return t=t!==null?t.childLanes&~a:0,l&&(t|=il),t}function _r(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:(xt.current&2)!==0),i&&(u=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(tt){if(u?$l(l):Fl(),tt){var c=Ct,r;if(r=c){t:{for(r=c,c=Sl;r.nodeType!==8;){if(!c){c=null;break t}if(r=ml(r.nextSibling),r===null){c=null;break t}}c=r}c!==null?(l.memoizedState={dehydrated:c,treeContext:Oa!==null?{id:jl,overflow:Cl}:null,retryLane:536870912},r=nl(18,null,null,0),r.stateNode=c,r.return=l,l.child=r,Bt=l,Ct=null,r=!0):r=!1}r||Ca(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?(Fl(),u=l.mode,c=cc({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=uc(a),u.childLanes=nc(t,i,a),l.memoizedState=ec,e):($l(l),ic(l,c))}if(r=t.memoizedState,r!==null&&(c=r.dehydrated,c!==null)){if(n)l.flags&256?($l(l),l.flags&=-257,l=fc(t,l,a)):l.memoizedState!==null?(Fl(),l.child=t.child,l.flags|=128,l=null):(Fl(),u=e.fallback,c=l.mode,e=cc({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,Ua(l,t.child,null,a),e=l.child,e.memoizedState=uc(a),e.childLanes=nc(t,i,a),l.memoizedState=ec,l=u);else if($l(l),c.data==="$!"){if(i=c.nextSibling&&c.nextSibling.dataset,i)var v=i.dgst;i=v,e=Error(f(419)),e.stack="",e.digest=i,Fe({value:e,source:null,stack:null}),l=fc(t,l,a)}else if(Dt||fu(t,l,a,!1),i=(a&t.childLanes)!==0,Dt||i){if(i=ct,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!==r.retryLane)throw r.retryLane=e,Wl(t,e),qt(i,t,e),zr}c.data==="$?"||Bc(),l=fc(t,l,a)}else c.data==="$?"?(l.flags|=128,l.child=t.child,l=oh.bind(null,t),c._reactRetry=l,l=null):(t=r.treeContext,Ct=ml(c.nextSibling),Bt=l,tt=!0,dl=null,Sl=!1,t!==null&&(tl[ll++]=jl,tl[ll++]=Cl,tl[ll++]=Oa,jl=t.id,Cl=t.overflow,Oa=l),l=ic(l,e.children),l.flags|=4096);return l}return u?(Fl(),u=e.fallback,c=l.mode,r=t.child,v=r.sibling,e=ca(r,{mode:"hidden",children:e.children}),e.subtreeFlags=r.subtreeFlags&31457280,v!==null?u=ca(v,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=uc(a):(r=c.cachePool,r!==null?(v=Tt._currentValue,r=r.parent!==v?{parent:v,pool:v}:r):r=Hs(),c={baseLanes:c.baseLanes|a,cachePool:r}),u.memoizedState=c,u.childLanes=nc(t,i,a),l.memoizedState=ec,e):($l(l),a=t.child,t=a.sibling,a=ca(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 ic(t,l){return l=cc({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function cc(t,l){return io(t,l,0,null)}function fc(t,l,a){return Ua(l,t.child,null,a),t=ic(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function Hr(t,l,a){t.lanes|=l;var e=t.alternate;e!==null&&(e.lanes|=l),dc(t.return,l,a)}function sc(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 Br(t,l,a){var e=l.pendingProps,u=e.revealOrder,n=e.tail;if(Ut(t,l,e.children,a),e=xt.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&&Hr(t,a,l);else if(t.tag===19)Hr(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(rt(xt,e),u){case"forwards":for(a=l.child,u=null;a!==null;)t=a.alternate,t!==null&&fn(t)===null&&(u=a),a=a.sibling;a=u,a===null?(u=l.child,l.child=null):(u=a.sibling,a.sibling=null),sc(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&&fn(t)===null){l.child=u;break}t=u.sibling,u.sibling=a,a=u,u=t}sc(l,!0,a,null,n);break;case"together":sc(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Rl(t,l,a){if(t!==null&&(l.dependencies=t.dependencies),fa|=l.lanes,(a&l.childLanes)===0)if(t!==null){if(fu(t,l,a,!1),(a&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(f(153));if(l.child!==null){for(t=l.child,a=ca(t,t.pendingProps),l.child=a,a.return=l;t.sibling!==null;)t=t.sibling,a=a.sibling=ca(t,t.pendingProps),a.return=l;a.sibling=null}return l.child}function rc(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Sn(t)))}function F0(t,l,a){switch(l.tag){case 3:Hu(l,l.stateNode.containerInfo),ta(l,Tt,t.memoizedState.cache),$e();break;case 27:case 5:ti(l);break;case 4:Hu(l,l.stateNode.containerInfo);break;case 10:ta(l,l.type,l.memoizedProps.value);break;case 13:var e=l.memoizedState;if(e!==null)return e.dehydrated!==null?($l(l),l.flags|=128,null):(a&l.child.childLanes)!==0?_r(t,l,a):($l(l),t=Rl(t,l,a),t!==null?t.sibling:null);$l(l);break;case 19:var u=(t.flags&128)!==0;if(e=(a&l.childLanes)!==0,e||(fu(t,l,a,!1),e=(a&l.childLanes)!==0),u){if(e)return Br(t,l,a);l.flags|=128}if(u=l.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),rt(xt,xt.current),e)break;return null;case 22:case 23:return l.lanes=0,jr(t,l,a);case 24:ta(l,Tt,t.memoizedState.cache)}return Rl(t,l,a)}function qr(t,l,a){if(t!==null)if(t.memoizedProps!==l.pendingProps)Dt=!0;else{if(!rc(t,a)&&(l.flags&128)===0)return Dt=!1,F0(t,l,a);Dt=(t.flags&131072)!==0}else Dt=!1,tt&&(l.flags&1048576)!==0&&xs(l,an,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")Ac(e)?(t=Ba(e,t),l.tag=1,l=Nr(null,l,e,t,a)):(l.tag=0,l=ac(null,l,e,t,a));else{if(e!=null){if(u=e.$$typeof,u===q){l.tag=11,l=Mr(null,l,e,t,a);break t}else if(u===Et){l.tag=14,l=Dr(null,l,e,t,a);break t}}throw l=ga(e)||e,Error(f(306,l,""))}}return l;case 0:return ac(t,l,l.type,l.pendingProps,a);case 1:return e=l.type,u=Ba(e,l.pendingProps),Nr(t,l,e,u,a);case 3:t:{if(Hu(l,l.stateNode.containerInfo),t===null)throw Error(f(387));var n=l.pendingProps;u=l.memoizedState,e=u.element,vc(t,l),ou(l,n,null,a);var i=l.memoizedState;if(n=i.cache,ta(l,Tt,n),n!==u.cache&&hc(l,[Tt],a,!0),ru(),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=Rr(t,l,n,a);break t}else if(n!==e){e=It(Error(f(424)),l),Fe(e),l=Rr(t,l,n,a);break t}else for(Ct=ml(l.stateNode.containerInfo.firstChild),Bt=l,tt=!0,dl=null,Sl=!0,a=Cs(l,null,n,a),l.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if($e(),n===e){l=Rl(t,l,a);break t}Ut(t,l,n,a)}l=l.child}return l;case 26:return cu(t,l),t===null?(a=Xo(l.type,null,l.pendingProps,null))?l.memoizedState=a:tt||(a=l.type,t=l.pendingProps,e=Bn(wl.current).createElement(a),e[Rt]=l,e[Vt]=t,Nt(e,a,t),Mt(e),l.stateNode=e):l.memoizedState=Xo(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return ti(l),t===null&&tt&&(e=l.stateNode=Lo(l.type,l.pendingProps,wl.current),Bt=l,Sl=!0,Ct=ml(e.firstChild)),e=l.pendingProps.children,t!==null||tt?Ut(t,l,e,a):l.child=Ua(l,null,e,a),cu(t,l),l.child;case 5:return t===null&&tt&&((u=e=Ct)&&(e=Dh(e,l.type,l.pendingProps,Sl),e!==null?(l.stateNode=e,Bt=l,Ct=ml(e.firstChild),Sl=!1,u=!0):u=!1),u||Ca(l)),ti(l),u=l.type,n=l.pendingProps,i=t!==null?t.memoizedProps:null,e=n.children,$c(u,n)?e=null:i!==null&&$c(u,i)&&(l.flags|=32),l.memoizedState!==null&&(u=Li(t,l,Z0,null,null,a),Mu._currentValue=u),cu(t,l),Ut(t,l,e,a),l.child;case 6:return t===null&&tt&&((t=a=Ct)&&(a=Oh(a,l.pendingProps,Sl),a!==null?(l.stateNode=a,Bt=l,Ct=null,t=!0):t=!1),t||Ca(l)),null;case 13:return _r(t,l,a);case 4:return Hu(l,l.stateNode.containerInfo),e=l.pendingProps,t===null?l.child=Ua(l,null,e,a):Ut(t,l,e,a),l.child;case 11:return Mr(t,l,l.type,l.pendingProps,a);case 7:return Ut(t,l,l.pendingProps,a),l.child;case 8:return Ut(t,l,l.pendingProps.children,a),l.child;case 12:return Ut(t,l,l.pendingProps.children,a),l.child;case 10:return e=l.pendingProps,ta(l,l.type,e.value),Ut(t,l,e.children,a),l.child;case 9:return u=l.type._context,e=l.pendingProps.children,La(l),u=_t(u),e=e(u),l.flags|=1,Ut(t,l,e,a),l.child;case 14:return Dr(t,l,l.type,l.pendingProps,a);case 15:return Or(t,l,l.type,l.pendingProps,a);case 19:return Br(t,l,a);case 22:return jr(t,l,a);case 24:return La(l),e=_t(Tt),t===null?(u=Bi(),u===null&&(u=ct,n=_i(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=a),u=n),l.memoizedState={parent:e,cache:u},mc(l),ta(l,Tt,u)):((t.lanes&a)!==0&&(vc(t,l),ou(l,null,null,a),ru()),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),ta(l,Tt,e)):(e=n.cache,ta(l,Tt,e),e!==u.cache&&hc(l,[Tt],a,!0))),Ut(t,l,l.pendingProps.children,a),l.child;case 29:throw l.pendingProps}throw Error(f(156,l.tag))}var oc=gl(null),qa=null,_l=null;function ta(t,l,a){rt(oc,l._currentValue),l._currentValue=a}function Hl(t){t._currentValue=oc.current,zt(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 hc(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 r=0;r<l.length;r++)if(c.context===l[r]){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(f(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 fu(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(f(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===_u.current){if(i=u.alternate,i===null)throw Error(f(387));i.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Mu):t=[Mu])}u=u.return}t!==null&&hc(l,t,a,e),l.flags|=262144}function Sn(t){for(t=t.firstContext;t!==null;){if(!Zt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function La(t){qa=t,_l=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function _t(t){return Lr(qa,t)}function xn(t,l){return qa===null&&La(t),Lr(t,l)}function Lr(t,l){var a=l._currentValue;if(l={context:l,memoizedValue:a,next:null},_l===null){if(t===null)throw Error(f(308));_l=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else _l=_l.next=l;return a}var la=!1;function mc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vc(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 aa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ea(t,l,a){var e=t.updateQueue;if(e===null)return null;if(e=e.shared,(dt&2)!==0){var u=e.pending;return u===null?l.next=l:(l.next=u.next,u.next=l),e.pending=l,l=tn(t),ps(t,null,a),l}return Iu(t,e,l,a),tn(t)}function su(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,Df(t,a)}}function yc(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 gc=!1;function ru(){if(gc){var t=ve;if(t!==null)throw t}}function ou(t,l,a,e){gc=!1;var u=t.updateQueue;la=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,c=u.shared.pending;if(c!==null){u.shared.pending=null;var r=c,v=r.next;r.next=null,i===null?n=v:i.next=v,i=r;var x=t.alternate;x!==null&&(x=x.updateQueue,c=x.lastBaseUpdate,c!==i&&(c===null?x.firstBaseUpdate=v:c.next=v,x.lastBaseUpdate=r))}if(n!==null){var D=u.baseState;i=0,x=v=r=null,c=n;do{var b=c.lane&-536870913,S=b!==c.lane;if(S?(P&b)===b:(e&b)===b){b!==0&&b===me&&(gc=!0),x!==null&&(x=x.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});t:{var H=t,Q=c;b=l;var vt=a;switch(Q.tag){case 1:if(H=Q.payload,typeof H=="function"){D=H.call(vt,D,b);break t}D=H;break t;case 3:H.flags=H.flags&-65537|128;case 0:if(H=Q.payload,b=typeof H=="function"?H.call(vt,D,b):H,b==null)break t;D=L({},D,b);break t;case 2:la=!0}}b=c.callback,b!==null&&(t.flags|=64,S&&(t.flags|=8192),S=u.callbacks,S===null?u.callbacks=[b]:S.push(b))}else S={lane:b,tag:c.tag,payload:c.payload,callback:c.callback,next:null},x===null?(v=x=S,r=D):x=x.next=S,i|=b;if(c=c.next,c===null){if(c=u.shared.pending,c===null)break;S=c,c=S.next,S.next=null,u.lastBaseUpdate=S,u.shared.pending=null}}while(!0);x===null&&(r=D),u.baseState=r,u.firstBaseUpdate=v,u.lastBaseUpdate=x,n===null&&(u.shared.lanes=0),fa|=i,t.lanes=i,t.memoizedState=D}}function Vr(t,l){if(typeof t!="function")throw Error(f(191,t));t.call(l)}function Yr(t,l){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Vr(a[t],l)}function du(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){it(l,l.return,c)}}function ua(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 r=a;try{c()}catch(v){it(u,r,v)}}}e=e.next}while(e!==n)}}catch(v){it(l,l.return,v)}}function Xr(t){var l=t.updateQueue;if(l!==null){var a=t.stateNode;try{Yr(l,a)}catch(e){it(t,t.return,e)}}}function Gr(t,l,a){a.props=Ba(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(e){it(t,l,e)}}function Va(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){it(t,l,n)}}function wt(t,l){var a=t.ref,e=t.refCleanup;if(a!==null)if(typeof e=="function")try{e()}catch(u){it(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){it(t,l,u)}else a.current=null}function Qr(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){it(t,t.return,u)}}function Zr(t,l,a){try{var e=t.stateNode;Th(e,t.type,a,l),e[Vt]=l}catch(u){it(t,t.return,u)}}function wr(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function bc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||wr(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 pc(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=Hn));else if(e!==4&&e!==27&&(t=t.child,t!==null))for(pc(t,l,a),t=t.sibling;t!==null;)pc(t,l,a),t=t.sibling}function Tn(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(Tn(t,l,a),t=t.sibling;t!==null;)Tn(t,l,a),t=t.sibling}var Bl=!1,ht=!1,Sc=!1,Kr=typeof WeakSet=="function"?WeakSet:Set,Ot=null,Jr=!1;function P0(t,l){if(t=t.containerInfo,kc=Gn,t=rs(t),Ti(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,r=-1,v=0,x=0,D=t,b=null;l:for(;;){for(var S;D!==a||u!==0&&D.nodeType!==3||(c=i+u),D!==n||e!==0&&D.nodeType!==3||(r=i+e),D.nodeType===3&&(i+=D.nodeValue.length),(S=D.firstChild)!==null;)b=D,D=S;for(;;){if(D===t)break l;if(b===a&&++v===u&&(c=i),b===n&&++x===e&&(r=i),(S=D.nextSibling)!==null)break;D=b,b=D.parentNode}D=S}a=c===-1||r===-1?null:{start:c,end:r}}else a=null}a=a||{start:0,end:0}}else a=null;for(Wc={focusedElem:t,selectionRange:a},Gn=!1,Ot=l;Ot!==null;)if(l=Ot,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Ot=t;else for(;Ot!==null;){switch(l=Ot,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 H=Ba(a.type,u,a.elementType===a.type);t=e.getSnapshotBeforeUpdate(H,n),e.__reactInternalSnapshotBeforeUpdate=t}catch(Q){it(a,a.return,Q)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,a=t.nodeType,a===9)Ic(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ic(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(f(163))}if(t=l.sibling,t!==null){t.return=l.return,Ot=t;break}Ot=l.return}return H=Jr,Jr=!1,H}function kr(t,l,a){var e=a.flags;switch(a.tag){case 0:case 11:case 15:Ll(t,a),e&4&&du(5,a);break;case 1:if(Ll(t,a),e&4)if(t=a.stateNode,l===null)try{t.componentDidMount()}catch(c){it(a,a.return,c)}else{var u=Ba(a.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(u,l,t.__reactInternalSnapshotBeforeUpdate)}catch(c){it(a,a.return,c)}}e&64&&Xr(a),e&512&&Va(a,a.return);break;case 3:if(Ll(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{Yr(e,t)}catch(c){it(a,a.return,c)}}break;case 26:Ll(t,a),e&512&&Va(a,a.return);break;case 27:case 5:Ll(t,a),l===null&&e&4&&Qr(a),e&512&&Va(a,a.return);break;case 12:Ll(t,a);break;case 13:Ll(t,a),e&4&&Fr(t,a);break;case 22:if(u=a.memoizedState!==null||Bl,!u){l=l!==null&&l.memoizedState!==null||ht;var n=Bl,i=ht;Bl=u,(ht=l)&&!i?na(t,a,(a.subtreeFlags&8772)!==0):Ll(t,a),Bl=n,ht=i}e&512&&(a.memoizedProps.mode==="manual"?Va(a,a.return):wt(a,a.return));break;default:Ll(t,a)}}function Wr(t){var l=t.alternate;l!==null&&(t.alternate=null,Wr(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&ii(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 St=null,Kt=!1;function ql(t,l,a){for(a=a.child;a!==null;)$r(t,l,a),a=a.sibling}function $r(t,l,a){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(He,a)}catch{}switch(a.tag){case 26:ht||wt(a,l),ql(t,l,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ht||wt(a,l);var e=St,u=Kt;for(St=a.stateNode,ql(t,l,a),a=a.stateNode,l=a.attributes;l.length;)a.removeAttributeNode(l[0]);ii(a),St=e,Kt=u;break;case 5:ht||wt(a,l);case 6:u=St;var n=Kt;if(St=null,ql(t,l,a),St=u,Kt=n,St!==null)if(Kt)try{t=St,e=a.stateNode,t.nodeType===8?t.parentNode.removeChild(e):t.removeChild(e)}catch(i){it(a,l,i)}else try{St.removeChild(a.stateNode)}catch(i){it(a,l,i)}break;case 18:St!==null&&(Kt?(l=St,a=a.stateNode,l.nodeType===8?Pc(l.parentNode,a):l.nodeType===1&&Pc(l,a),Cu(l)):Pc(St,a.stateNode));break;case 4:e=St,u=Kt,St=a.stateNode.containerInfo,Kt=!0,ql(t,l,a),St=e,Kt=u;break;case 0:case 11:case 14:case 15:ht||ua(2,a,l),ht||ua(4,a,l),ql(t,l,a);break;case 1:ht||(wt(a,l),e=a.stateNode,typeof e.componentWillUnmount=="function"&&Gr(a,l,e)),ql(t,l,a);break;case 21:ql(t,l,a);break;case 22:ht||wt(a,l),ht=(e=ht)||a.memoizedState!==null,ql(t,l,a),ht=e;break;default:ql(t,l,a)}}function Fr(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Cu(t)}catch(a){it(l,l.return,a)}}function I0(t){switch(t.tag){case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new Kr),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new Kr),l;default:throw Error(f(435,t.tag))}}function xc(t,l){var a=I0(t);l.forEach(function(e){var u=dh.bind(null,t,e);a.has(e)||(a.add(e),e.then(u,u))})}function el(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:St=c.stateNode,Kt=!1;break t;case 3:St=c.stateNode.containerInfo,Kt=!0;break t;case 4:St=c.stateNode.containerInfo,Kt=!0;break t}c=c.return}if(St===null)throw Error(f(160));$r(n,i,u),St=null,Kt=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(l.subtreeFlags&13878)for(l=l.child;l!==null;)Pr(l,t),l=l.sibling}var hl=null;function Pr(t,l){var a=t.alternate,e=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:el(l,t),ul(t),e&4&&(ua(3,t,t.return),du(3,t),ua(5,t,t.return));break;case 1:el(l,t),ul(t),e&512&&(ht||a===null||wt(a,a.return)),e&64&&Bl&&(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=hl;if(el(l,t),ul(t),e&512&&(ht||a===null||wt(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[Le]||n[Rt]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=u.createElement(e),u.head.insertBefore(n,u.querySelector("head > title"))),Nt(n,e,a),n[Rt]=t,Mt(n),e=n;break t;case"link":var i=Zo("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),Nt(n,e,a),u.head.appendChild(n);break;case"meta":if(i=Zo("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),Nt(n,e,a),u.head.appendChild(n);break;default:throw Error(f(468,e))}n[Rt]=t,Mt(n),e=n}t.stateNode=e}else wo(u,t.type,t.stateNode);else t.stateNode=Qo(u,e,t.memoizedProps);else n!==e?(n===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):n.count--,e===null?wo(u,t.type,t.stateNode):Qo(u,e,t.memoizedProps)):e===null&&t.stateNode!==null&&Zr(t,t.memoizedProps,a.memoizedProps)}break;case 27:if(e&4&&t.alternate===null){u=t.stateNode,n=t.memoizedProps;try{for(var r=u.firstChild;r;){var v=r.nextSibling,x=r.nodeName;r[Le]||x==="HEAD"||x==="BODY"||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&r.rel.toLowerCase()==="stylesheet"||u.removeChild(r),r=v}for(var D=t.type,b=u.attributes;b.length;)u.removeAttributeNode(b[0]);Nt(u,D,n),u[Rt]=t,u[Vt]=n}catch(H){it(t,t.return,H)}}case 5:if(el(l,t),ul(t),e&512&&(ht||a===null||wt(a,a.return)),t.flags&32){u=t.stateNode;try{ae(u,"")}catch(H){it(t,t.return,H)}}e&4&&t.stateNode!=null&&(u=t.memoizedProps,Zr(t,u,a!==null?a.memoizedProps:u)),e&1024&&(Sc=!0);break;case 6:if(el(l,t),ul(t),e&4){if(t.stateNode===null)throw Error(f(162));e=t.memoizedProps,a=t.stateNode;try{a.nodeValue=e}catch(H){it(t,t.return,H)}}break;case 3:if(Vn=null,u=hl,hl=qn(l.containerInfo),el(l,t),hl=u,ul(t),e&4&&a!==null&&a.memoizedState.isDehydrated)try{Cu(l.containerInfo)}catch(H){it(t,t.return,H)}Sc&&(Sc=!1,Ir(t));break;case 4:e=hl,hl=qn(t.stateNode.containerInfo),el(l,t),ul(t),hl=e;break;case 12:el(l,t),ul(t);break;case 13:el(l,t),ul(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Cc=pl()),e&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,xc(t,e)));break;case 22:if(e&512&&(ht||a===null||wt(a,a.return)),r=t.memoizedState!==null,v=a!==null&&a.memoizedState!==null,x=Bl,D=ht,Bl=x||r,ht=D||v,el(l,t),ht=D,Bl=x,ul(t),l=t.stateNode,l._current=t,l._visibility&=-3,l._visibility|=l._pendingVisibility&2,e&8192&&(l._visibility=r?l._visibility&-2:l._visibility|1,r&&(l=Bl||ht,a===null||v||l||pe(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){v=a=l;try{if(u=v.stateNode,r)n=u.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{i=v.stateNode,c=v.memoizedProps.style;var S=c!=null&&c.hasOwnProperty("display")?c.display:null;i.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(H){it(v,v.return,H)}}}else if(l.tag===6){if(a===null){v=l;try{v.stateNode.nodeValue=r?"":v.memoizedProps}catch(H){it(v,v.return,H)}}}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,xc(t,a))));break;case 19:el(l,t),ul(t),e&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,xc(t,e)));break;case 21:break;default:el(l,t),ul(t)}}function ul(t){var l=t.flags;if(l&2){try{if(t.tag!==27){t:{for(var a=t.return;a!==null;){if(wr(a)){var e=a;break t}a=a.return}throw Error(f(160))}switch(e.tag){case 27:var u=e.stateNode,n=bc(t);Tn(t,n,u);break;case 5:var i=e.stateNode;e.flags&32&&(ae(i,""),e.flags&=-33);var c=bc(t);Tn(t,c,i);break;case 3:case 4:var r=e.stateNode.containerInfo,v=bc(t);pc(t,v,r);break;default:throw Error(f(161))}}}catch(x){it(t,t.return,x)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function Ir(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;Ir(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function Ll(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)kr(t,l.alternate,l),l=l.sibling}function pe(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:ua(4,l,l.return),pe(l);break;case 1:wt(l,l.return);var a=l.stateNode;typeof a.componentWillUnmount=="function"&&Gr(l,l.return,a),pe(l);break;case 26:case 27:case 5:wt(l,l.return),pe(l);break;case 22:wt(l,l.return),l.memoizedState===null&&pe(l);break;default:pe(l)}t=t.sibling}}function na(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:na(u,n,a),du(4,n);break;case 1:if(na(u,n,a),e=n,u=e.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(v){it(e,e.return,v)}if(e=n,u=e.updateQueue,u!==null){var c=e.stateNode;try{var r=u.shared.hiddenCallbacks;if(r!==null)for(u.shared.hiddenCallbacks=null,u=0;u<r.length;u++)Vr(r[u],c)}catch(v){it(e,e.return,v)}}a&&i&64&&Xr(n),Va(n,n.return);break;case 26:case 27:case 5:na(u,n,a),a&&e===null&&i&4&&Qr(n),Va(n,n.return);break;case 12:na(u,n,a);break;case 13:na(u,n,a),a&&i&4&&Fr(u,n);break;case 22:n.memoizedState===null&&na(u,n,a),Va(n,n.return);break;default:na(u,n,a)}l=l.sibling}}function Tc(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&&au(a))}function Ec(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&au(t))}function ia(t,l,a,e){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)to(t,l,a,e),l=l.sibling}function to(t,l,a,e){var u=l.flags;switch(l.tag){case 0:case 11:case 15:ia(t,l,a,e),u&2048&&du(9,l);break;case 3:ia(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&&au(t)));break;case 12:if(u&2048){ia(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(r){it(l,l.return,r)}}else ia(t,l,a,e);break;case 23:break;case 22:n=l.stateNode,l.memoizedState!==null?n._visibility&4?ia(t,l,a,e):hu(t,l):n._visibility&4?ia(t,l,a,e):(n._visibility|=4,Se(t,l,a,e,(l.subtreeFlags&10256)!==0)),u&2048&&Tc(l.alternate,l);break;case 24:ia(t,l,a,e),u&2048&&Ec(l.alternate,l);break;default:ia(t,l,a,e)}}function Se(t,l,a,e,u){for(u=u&&(l.subtreeFlags&10256)!==0,l=l.child;l!==null;){var n=t,i=l,c=a,r=e,v=i.flags;switch(i.tag){case 0:case 11:case 15:Se(n,i,c,r,u),du(8,i);break;case 23:break;case 22:var x=i.stateNode;i.memoizedState!==null?x._visibility&4?Se(n,i,c,r,u):hu(n,i):(x._visibility|=4,Se(n,i,c,r,u)),u&&v&2048&&Tc(i.alternate,i);break;case 24:Se(n,i,c,r,u),u&&v&2048&&Ec(i.alternate,i);break;default:Se(n,i,c,r,u)}l=l.sibling}}function hu(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:hu(a,e),u&2048&&Tc(e.alternate,e);break;case 24:hu(a,e),u&2048&&Ec(e.alternate,e);break;default:hu(a,e)}l=l.sibling}}var mu=8192;function xe(t){if(t.subtreeFlags&mu)for(t=t.child;t!==null;)lo(t),t=t.sibling}function lo(t){switch(t.tag){case 26:xe(t),t.flags&mu&&t.memoizedState!==null&&Xh(hl,t.memoizedState,t.memoizedProps);break;case 5:xe(t);break;case 3:case 4:var l=hl;hl=qn(t.stateNode.containerInfo),xe(t),hl=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=mu,mu=16777216,xe(t),mu=l):xe(t));break;default:xe(t)}}function ao(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 vu(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];Ot=e,uo(e,t)}ao(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eo(t),t=t.sibling}function eo(t){switch(t.tag){case 0:case 11:case 15:vu(t),t.flags&2048&&ua(9,t,t.return);break;case 3:vu(t);break;case 12:vu(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)):vu(t);break;default:vu(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];Ot=e,uo(e,t)}ao(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:ua(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 uo(t,l){for(;Ot!==null;){var a=Ot;switch(a.tag){case 0:case 11:case 15:ua(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:au(a.memoizedState.cache)}if(e=a.child,e!==null)e.return=a,Ot=e;else t:for(a=t;Ot!==null;){e=Ot;var u=e.sibling,n=e.return;if(Wr(e),e===a){Ot=null;break t}if(u!==null){u.return=n,Ot=u;break t}Ot=n}}}function th(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 nl(t,l,a,e){return new th(t,l,a,e)}function Ac(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ca(t,l){var a=t.alternate;return a===null?(a=nl(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 no(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")Ac(t)&&(i=1);else if(typeof t=="string")i=Vh(t,a,bl.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case O:return Ya(a.children,u,n,l);case U:i=8,u|=24;break;case M:return t=nl(12,a,l,u|2),t.elementType=M,t.lanes=n,t;case K:return t=nl(13,a,l,u),t.elementType=K,t.lanes=n,t;case et:return t=nl(19,a,l,u),t.elementType=et,t.lanes=n,t;case At:return io(a,u,n,l);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case C:case B:i=10;break t;case R:i=9;break t;case q:i=11;break t;case Et:i=14;break t;case k:i=16,e=null;break t}i=29,a=Error(f(130,t===null?"null":typeof t,"")),e=null}return l=nl(i,a,l,u),l.elementType=t,l.type=e,l.lanes=n,l}function Ya(t,l,a,e){return t=nl(7,t,e,l),t.lanes=a,t}function io(t,l,a,e){t=nl(22,t,e,l),t.elementType=At,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(f(456));if((u._pendingVisibility&2)===0){var i=Wl(n,2);i!==null&&(u._pendingVisibility|=2,qt(i,n,2))}},attach:function(){var n=u._current;if(n===null)throw Error(f(456));if((u._pendingVisibility&2)!==0){var i=Wl(n,2);i!==null&&(u._pendingVisibility&=-3,qt(i,n,2))}}};return t.stateNode=u,t}function zc(t,l,a){return t=nl(6,t,null,l),t.lanes=a,t}function Mc(t,l,a){return l=nl(4,t.children!==null?t.children:[],t.key,l),l.lanes=a,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}function Vl(t){t.flags|=4}function co(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ko(l)){if(l=al.current,l!==null&&((P&4194176)===P?xl!==null:(P&62914560)!==P&&(P&536870912)===0||l!==xl))throw Ie=Ui,As;t.flags|=8192}}function zn(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?zf():536870912,t.lanes|=l,Ee|=l)}function yu(t,l){if(!tt)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 ot(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 lh(t,l,a){var e=l.pendingProps;switch(ji(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(l),null;case 1:return ot(l),null;case 3:return a=l.stateNode,e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Hl(Tt),$a(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(We(l)?Vl(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,dl!==null&&(_c(dl),dl=null))),ot(l),null;case 26:return a=l.memoizedState,t===null?(Vl(l),a!==null?(ot(l),co(l,a)):(ot(l),l.flags&=-16777217)):a?a!==t.memoizedState?(Vl(l),ot(l),co(l,a)):(ot(l),l.flags&=-16777217):(t.memoizedProps!==e&&Vl(l),ot(l),l.flags&=-16777217),null;case 27:Bu(l),a=wl.current;var u=l.type;if(t!==null&&l.stateNode!=null)t.memoizedProps!==e&&Vl(l);else{if(!e){if(l.stateNode===null)throw Error(f(166));return ot(l),null}t=bl.current,We(l)?Ts(l):(t=Lo(u,e,a),l.stateNode=t,Vl(l))}return ot(l),null;case 5:if(Bu(l),a=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==e&&Vl(l);else{if(!e){if(l.stateNode===null)throw Error(f(166));return ot(l),null}if(t=bl.current,We(l))Ts(l);else{switch(u=Bn(wl.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[Rt]=l,t[Vt]=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(Nt(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&&Vl(l)}}return ot(l),l.flags&=-16777217,null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==e&&Vl(l);else{if(typeof e!="string"&&l.stateNode===null)throw Error(f(166));if(t=wl.current,We(l)){if(t=l.stateNode,a=l.memoizedProps,e=null,u=Bt,u!==null)switch(u.tag){case 27:case 5:e=u.memoizedProps}t[Rt]=l,t=!!(t.nodeValue===a||e!==null&&e.suppressHydrationWarning===!0||No(t.nodeValue,a)),t||Ca(l)}else t=Bn(t).createTextNode(e),t[Rt]=l,l.stateNode=t}return ot(l),null;case 13:if(e=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=We(l),e!==null&&e.dehydrated!==null){if(t===null){if(!u)throw Error(f(318));if(u=l.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(f(317));u[Rt]=l}else $e(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;ot(l),u=!1}else dl!==null&&(_c(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),ot(l),null;case 4:return $a(),t===null&&wc(l.stateNode.containerInfo),ot(l),null;case 10:return Hl(l.type),ot(l),null;case 19:if(zt(xt),u=l.memoizedState,u===null)return ot(l),null;if(e=(l.flags&128)!==0,n=u.rendering,n===null)if(e)yu(u,!1);else{if(mt!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(n=fn(t),n!==null){for(l.flags|=128,yu(u,!1),t=n.updateQueue,l.updateQueue=t,zn(l,t),l.subtreeFlags=0,t=a,a=l.child;a!==null;)no(a,t),a=a.sibling;return rt(xt,xt.current&1|2),l.child}t=t.sibling}u.tail!==null&&pl()>Mn&&(l.flags|=128,e=!0,yu(u,!1),l.lanes=4194304)}else{if(!e)if(t=fn(n),t!==null){if(l.flags|=128,e=!0,t=t.updateQueue,l.updateQueue=t,zn(l,t),yu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!n.alternate&&!tt)return ot(l),null}else 2*pl()-u.renderingStartTime>Mn&&a!==536870912&&(l.flags|=128,e=!0,yu(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=pl(),l.sibling=null,t=xt.current,rt(xt,e?t&1|2:t&1),l):(ot(l),null);case 22:case 23:return Ul(l),Ri(),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&&(ot(l),l.subtreeFlags&6&&(l.flags|=8192)):ot(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&&zt(Na),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Hl(Tt),ot(l),null;case 25:return null}throw Error(f(156,l.tag))}function ah(t,l){switch(ji(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Hl(Tt),$a(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return Bu(l),null;case 13:if(Ul(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(f(340));$e()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return zt(xt),null;case 4:return $a(),null;case 10:return Hl(l.type),null;case 22:case 23:return Ul(l),Ri(),t!==null&&zt(Na),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Hl(Tt),null;case 25:return null;default:return null}}function fo(t,l){switch(ji(l),l.tag){case 3:Hl(Tt),$a();break;case 26:case 27:case 5:Bu(l);break;case 4:$a();break;case 13:Ul(l);break;case 19:zt(xt);break;case 10:Hl(l.type);break;case 22:case 23:Ul(l),Ri(),t!==null&&zt(Na);break;case 24:Hl(Tt)}}var eh={getCacheForType:function(t){var l=_t(Tt),a=l.data.get(t);return a===void 0&&(a=t(),l.data.set(t,a)),a}},uh=typeof WeakMap=="function"?WeakMap:Map,dt=0,ct=null,W=null,P=0,ft=0,Jt=null,Yl=!1,Te=!1,Dc=!1,Xl=0,mt=0,fa=0,Xa=0,Oc=0,il=0,Ee=0,gu=null,El=null,jc=!1,Cc=0,Mn=1/0,Dn=null,sa=null,On=!1,Ga=null,bu=0,Uc=0,Nc=null,pu=0,Rc=null;function kt(){if((dt&2)!==0&&P!==0)return P&-P;if(z.T!==null){var t=me;return t!==0?t:Xc()}return jf()}function so(){il===0&&(il=(P&536870912)===0||tt?Af():536870912);var t=al.current;return t!==null&&(t.flags|=32),il}function qt(t,l,a){(t===ct&&ft===2||t.cancelPendingCommit!==null)&&(Ae(t,0),Gl(t,P,il,!1)),qe(t,a),((dt&2)===0||t!==ct)&&(t===ct&&((dt&2)===0&&(Xa|=a),mt===4&&Gl(t,P,il,!1)),Al(t))}function ro(t,l,a){if((dt&6)!==0)throw Error(f(327));var e=!a&&(l&60)===0&&(l&t.expiredLanes)===0||Be(t,l),u=e?ch(t,l):qc(t,l,!0),n=e;do{if(u===0){Te&&!e&&Gl(t,l,0,!1);break}else if(u===6)Gl(t,l,0,!Yl);else{if(a=t.current.alternate,n&&!nh(a)){u=qc(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=gu;var r=c.current.memoizedState.isDehydrated;if(r&&(Ae(c,i).flags|=256),i=qc(c,i,!1),i!==2){if(Dc&&!r){c.errorRecoveryDisabledLanes|=n,Xa|=n,u=4;break t}n=El,El=u,n!==null&&_c(n)}u=i}if(n=!1,u!==2)continue}}if(u===1){Ae(t,0),Gl(t,l,0,!0);break}t:{switch(e=t,u){case 0:case 1:throw Error(f(345));case 4:if((l&4194176)===l){Gl(e,l,il,!Yl);break t}break;case 2:El=null;break;case 3:case 5:break;default:throw Error(f(329))}if(e.finishedWork=a,e.finishedLanes=l,(l&62914560)===l&&(n=Cc+300-pl(),10<n)){if(Gl(e,l,il,!Yl),Yu(e,0)!==0)break t;e.timeoutHandle=Ho(oo.bind(null,e,a,El,Dn,jc,l,il,Xa,Ee,Yl,2,-0,0),n);break t}oo(e,a,El,Dn,jc,l,il,Xa,Ee,Yl,0,-0,0)}}break}while(!0);Al(t)}function _c(t){El===null?El=t:El.push.apply(El,t)}function oo(t,l,a,e,u,n,i,c,r,v,x,D,b){var S=l.subtreeFlags;if((S&8192||(S&16785408)===16785408)&&(zu={stylesheets:null,count:0,unsuspend:Yh},lo(l),l=Gh(),l!==null)){t.cancelPendingCommit=l(po.bind(null,t,a,e,u,i,c,r,1,D,b)),Gl(t,n,i,!v);return}po(t,a,e,u,i,c,r,x,D,b)}function nh(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 Gl(t,l,a,e){l&=~Oc,l&=~Xa,t.suspendedLanes|=l,t.pingedLanes&=~l,e&&(t.warmLanes|=l),e=t.expirationTimes;for(var u=l;0<u;){var n=31-Qt(u),i=1<<n;e[n]=-1,u&=~i}a!==0&&Mf(t,a,l)}function jn(){return(dt&6)===0?(Su(0),!1):!0}function Hc(){if(W!==null){if(ft===0)var t=W.return;else t=W,_l=qa=null,Xi(t),de=null,tu=0,t=W;for(;t!==null;)fo(t.alternate,t),t=t.return;W=null}}function Ae(t,l){t.finishedWork=null,t.finishedLanes=0;var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Ah(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Hc(),ct=t,W=a=ca(t.current,null),P=l,ft=0,Jt=null,Yl=!1,Te=Be(t,l),Dc=!1,Ee=il=Oc=Xa=fa=mt=0,El=gu=null,jc=!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-Qt(e),n=1<<u;l|=t[u],e&=~n}return Xl=l,Pu(),a}function ho(t,l){w=null,z.H=Tl,l===Pe?(l=Ds(),ft=3):l===As?(l=Ds(),ft=4):ft=l===zr?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Jt=l,W===null&&(mt=1,pn(t,It(l,t.current)))}function mo(){var t=z.H;return z.H=Tl,t===null?Tl:t}function vo(){var t=z.A;return z.A=eh,t}function Bc(){mt=4,Yl||(P&4194176)!==P&&al.current!==null||(Te=!0),(fa&134217727)===0&&(Xa&134217727)===0||ct===null||Gl(ct,P,il,!1)}function qc(t,l,a){var e=dt;dt|=2;var u=mo(),n=vo();(ct!==t||P!==l)&&(Dn=null,Ae(t,l)),l=!1;var i=mt;t:do try{if(ft!==0&&W!==null){var c=W,r=Jt;switch(ft){case 8:Hc(),i=6;break t;case 3:case 2:case 6:al.current===null&&(l=!0);var v=ft;if(ft=0,Jt=null,ze(t,c,r,v),a&&Te){i=0;break t}break;default:v=ft,ft=0,Jt=null,ze(t,c,r,v)}}ih(),i=mt;break}catch(x){ho(t,x)}while(!0);return l&&t.shellSuspendCounter++,_l=qa=null,dt=e,z.H=u,z.A=n,W===null&&(ct=null,P=0,Pu()),i}function ih(){for(;W!==null;)yo(W)}function ch(t,l){var a=dt;dt|=2;var e=mo(),u=vo();ct!==t||P!==l?(Dn=null,Mn=pl()+500,Ae(t,l)):Te=Be(t,l);t:do try{if(ft!==0&&W!==null){l=W;var n=Jt;l:switch(ft){case 1:ft=0,Jt=null,ze(t,l,n,1);break;case 2:if(zs(n)){ft=0,Jt=null,go(l);break}l=function(){ft===2&&ct===t&&(ft=7),Al(t)},n.then(l,l);break t;case 3:ft=7;break t;case 4:ft=5;break t;case 7:zs(n)?(ft=0,Jt=null,go(l)):(ft=0,Jt=null,ze(t,l,n,7));break;case 5:var i=null;switch(W.tag){case 26:i=W.memoizedState;case 5:case 27:var c=W;if(!i||Ko(i)){ft=0,Jt=null;var r=c.sibling;if(r!==null)W=r;else{var v=c.return;v!==null?(W=v,Cn(v)):W=null}break l}}ft=0,Jt=null,ze(t,l,n,5);break;case 6:ft=0,Jt=null,ze(t,l,n,6);break;case 8:Hc(),mt=6;break t;default:throw Error(f(462))}}fh();break}catch(x){ho(t,x)}while(!0);return _l=qa=null,z.H=e,z.A=u,dt=a,W!==null?0:(ct=null,P=0,Pu(),mt)}function fh(){for(;W!==null&&!Cd();)yo(W)}function yo(t){var l=qr(t.alternate,t,Xl);t.memoizedProps=t.pendingProps,l===null?Cn(t):W=l}function go(t){var l=t,a=l.alternate;switch(l.tag){case 15:case 0:l=Ur(a,l,l.pendingProps,l.type,void 0,P);break;case 11:l=Ur(a,l,l.pendingProps,l.type.render,l.ref,P);break;case 5:Xi(l);default:fo(a,l),l=W=no(l,Xl),l=qr(a,l,Xl)}t.memoizedProps=t.pendingProps,l===null?Cn(t):W=l}function ze(t,l,a,e){_l=qa=null,Xi(l),de=null,tu=0;var u=l.return;try{if($0(t,u,l,a,P)){mt=1,pn(t,It(a,t.current)),W=null;return}}catch(n){if(u!==null)throw W=u,n;mt=1,pn(t,It(a,t.current)),W=null;return}l.flags&32768?(tt||e===1?t=!0:Te||(P&536870912)!==0?t=!1:(Yl=t=!0,(e===2||e===3||e===6)&&(e=al.current,e!==null&&e.tag===13&&(e.flags|=16384))),bo(l,t)):Cn(l)}function Cn(t){var l=t;do{if((l.flags&32768)!==0){bo(l,Yl);return}t=l.return;var a=lh(l.alternate,l,Xl);if(a!==null){W=a;return}if(l=l.sibling,l!==null){W=l;return}W=l=t}while(l!==null);mt===0&&(mt=5)}function bo(t,l){do{var a=ah(t.alternate,t);if(a!==null){a.flags&=32767,W=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!l&&(t=t.sibling,t!==null)){W=t;return}W=t=a}while(t!==null);mt=6,W=null}function po(t,l,a,e,u,n,i,c,r,v){var x=z.T,D=I.p;try{I.p=2,z.T=null,sh(t,l,a,e,D,u,n,i,c,r,v)}finally{z.T=x,I.p=D}}function sh(t,l,a,e,u,n,i,c){do Me();while(Ga!==null);if((dt&6)!==0)throw Error(f(327));var r=t.finishedWork;if(e=t.finishedLanes,r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(f(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var v=r.lanes|r.childLanes;if(v|=Mi,Xd(t,e,v,n,i,c),t===ct&&(W=ct=null,P=0),(r.subtreeFlags&10256)===0&&(r.flags&10256)===0||On||(On=!0,Uc=v,Nc=a,hh(qu,function(){return Me(),null})),a=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||a?(a=z.T,z.T=null,n=I.p,I.p=2,i=dt,dt|=4,P0(t,r),Pr(r,t),R0(Wc,t.containerInfo),Gn=!!kc,Wc=kc=null,t.current=r,kr(t,r.alternate,r),Ud(),dt=i,I.p=n,z.T=a):t.current=r,On?(On=!1,Ga=t,bu=e):So(t,v),v=t.pendingLanes,v===0&&(sa=null),Bd(r.stateNode),Al(t),l!==null)for(u=t.onRecoverableError,r=0;r<l.length;r++)v=l[r],u(v.value,{componentStack:v.stack});return(bu&3)!==0&&Me(),v=t.pendingLanes,(e&4194218)!==0&&(v&42)!==0?t===Rc?pu++:(pu=0,Rc=t):pu=0,Su(0),null}function So(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,au(l)))}function Me(){if(Ga!==null){var t=Ga,l=Uc;Uc=0;var a=Of(bu),e=z.T,u=I.p;try{if(I.p=32>a?32:a,z.T=null,Ga===null)var n=!1;else{a=Nc,Nc=null;var i=Ga,c=bu;if(Ga=null,bu=0,(dt&6)!==0)throw Error(f(331));var r=dt;if(dt|=4,eo(i.current),to(i,i.current,c,a),dt=r,Su(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(He,i)}catch{}n=!0}return n}finally{I.p=u,z.T=e,So(t,l)}}return!1}function xo(t,l,a){l=It(a,l),l=lc(t.stateNode,l,2),t=ea(t,l,2),t!==null&&(qe(t,2),Al(t))}function it(t,l,a){if(t.tag===3)xo(t,t,a);else for(;l!==null;){if(l.tag===3){xo(l,t,a);break}else if(l.tag===1){var e=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof e.componentDidCatch=="function"&&(sa===null||!sa.has(e))){t=It(a,t),a=Er(2),e=ea(l,a,2),e!==null&&(Ar(a,e,l,t),qe(e,2),Al(e));break}}l=l.return}}function Lc(t,l,a){var e=t.pingCache;if(e===null){e=t.pingCache=new uh;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=rh.bind(null,t,l,a),l.then(t,t))}function rh(t,l,a){var e=t.pingCache;e!==null&&e.delete(l),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,ct===t&&(P&a)===a&&(mt===4||mt===3&&(P&62914560)===P&&300>pl()-Cc?(dt&2)===0&&Ae(t,0):Oc|=a,Ee===P&&(Ee=0)),Al(t)}function To(t,l){l===0&&(l=zf()),t=Wl(t,l),t!==null&&(qe(t,l),Al(t))}function oh(t){var l=t.memoizedState,a=0;l!==null&&(a=l.retryLane),To(t,a)}function dh(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(f(314))}e!==null&&e.delete(l),To(t,a)}function hh(t,l){return ai(t,l)}var Un=null,De=null,Vc=!1,Nn=!1,Yc=!1,Qa=0;function Al(t){t!==De&&t.next===null&&(De===null?Un=De=t:De=De.next=t),Nn=!0,Vc||(Vc=!0,vh(mh))}function Su(t,l){if(!Yc&&Nn){Yc=!0;do for(var a=!1,e=Un;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-Qt(42|t)+1)-1,n&=u&~(i&~c),n=n&201326677?n&201326677|1:n?n|2:0}n!==0&&(a=!0,zo(e,n))}else n=P,n=Yu(e,e===ct?n:0),(n&3)===0||Be(e,n)||(a=!0,zo(e,n));e=e.next}while(a);Yc=!1}}function mh(){Nn=Vc=!1;var t=0;Qa!==0&&(Eh()&&(t=Qa),Qa=0);for(var l=pl(),a=null,e=Un;e!==null;){var u=e.next,n=Eo(e,l);n===0?(e.next=null,a===null?Un=u:a.next=u,u===null&&(De=a)):(a=e,(t!==0||(n&3)!==0)&&(Nn=!0)),e=u}Su(t)}function Eo(t,l){for(var a=t.suspendedLanes,e=t.pingedLanes,u=t.expirationTimes,n=t.pendingLanes&-62914561;0<n;){var i=31-Qt(n),c=1<<i,r=u[i];r===-1?((c&a)===0||(c&e)!==0)&&(u[i]=Yd(c,l)):r<=l&&(t.expiredLanes|=c),n&=~c}if(l=ct,a=P,a=Yu(t,t===l?a:0),e=t.callbackNode,a===0||t===l&&ft===2||t.cancelPendingCommit!==null)return e!==null&&e!==null&&ei(e),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Be(t,a)){if(l=a&-a,l===t.callbackPriority)return l;switch(e!==null&&ei(e),Of(a)){case 2:case 8:a=Tf;break;case 32:a=qu;break;case 268435456:a=Ef;break;default:a=qu}return e=Ao.bind(null,t),a=ai(a,e),t.callbackPriority=l,t.callbackNode=a,l}return e!==null&&e!==null&&ei(e),t.callbackPriority=2,t.callbackNode=null,2}function Ao(t,l){var a=t.callbackNode;if(Me()&&t.callbackNode!==a)return null;var e=P;return e=Yu(t,t===ct?e:0),e===0?null:(ro(t,e,l),Eo(t,pl()),t.callbackNode!=null&&t.callbackNode===a?Ao.bind(null,t):null)}function zo(t,l){if(Me())return null;ro(t,l,!0)}function vh(t){zh(function(){(dt&6)!==0?ai(xf,t):t()})}function Xc(){return Qa===0&&(Qa=Af()),Qa}function Mo(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:wu(""+t)}function Do(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 yh(t,l,a,e,u){if(l==="submit"&&a&&a.stateNode===u){var n=Mo((u[Vt]||null).action),i=e.submitter;i&&(l=(l=i[Vt]||null)?Mo(l.formAction):i.getAttribute("formAction"),l!==null&&(n=l,i=null));var c=new Wu("action","action",null,e,u);t.push({event:c,listeners:[{instance:null,listener:function(){if(e.defaultPrevented){if(Qa!==0){var r=i?Do(u,i):new FormData(u);$i(a,{pending:!0,data:r,method:u.method,action:n},null,r)}}else typeof n=="function"&&(c.preventDefault(),r=i?Do(u,i):new FormData(u),$i(a,{pending:!0,data:r,method:u.method,action:n},n,r))},currentTarget:u}]})}}for(var Gc=0;Gc<bs.length;Gc++){var Qc=bs[Gc],gh=Qc.toLowerCase(),bh=Qc[0].toUpperCase()+Qc.slice(1);ol(gh,"on"+bh)}ol(hs,"onAnimationEnd"),ol(ms,"onAnimationIteration"),ol(vs,"onAnimationStart"),ol("dblclick","onDoubleClick"),ol("focusin","onFocus"),ol("focusout","onBlur"),ol(H0,"onTransitionRun"),ol(B0,"onTransitionStart"),ol(q0,"onTransitionCancel"),ol(ys,"onTransitionEnd"),te("onMouseEnter",["mouseout","mouseover"]),te("onMouseLeave",["mouseout","mouseover"]),te("onPointerEnter",["pointerout","pointerover"]),te("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 xu="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(" "),ph=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xu));function Oo(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],r=c.instance,v=c.currentTarget;if(c=c.listener,r!==n&&u.isPropagationStopped())break t;n=c,u.currentTarget=v;try{n(u)}catch(x){bn(x)}u.currentTarget=null,n=r}else for(i=0;i<e.length;i++){if(c=e[i],r=c.instance,v=c.currentTarget,c=c.listener,r!==n&&u.isPropagationStopped())break t;n=c,u.currentTarget=v;try{n(u)}catch(x){bn(x)}u.currentTarget=null,n=r}}}}function F(t,l){var a=l[ni];a===void 0&&(a=l[ni]=new Set);var e=t+"__bubble";a.has(e)||(jo(l,t,2,!1),a.add(e))}function Zc(t,l,a){var e=0;l&&(e|=4),jo(a,t,e,l)}var Rn="_reactListening"+Math.random().toString(36).slice(2);function wc(t){if(!t[Rn]){t[Rn]=!0,Uf.forEach(function(a){a!=="selectionchange"&&(ph.has(a)||Zc(a,!1,t),Zc(a,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[Rn]||(l[Rn]=!0,Zc("selectionchange",!1,l))}}function jo(t,l,a,e){switch(Po(l)){case 2:var u=wh;break;case 8:u=Kh;break;default:u=uf}a=u.bind(null,l,a,t),u=void 0,!hi||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 Kc(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 r=i.tag;if((r===3||r===4)&&(r=i.stateNode.containerInfo,r===u||r.nodeType===8&&r.parentNode===u))return;i=i.return}for(;c!==null;){if(i=Ea(c),i===null)return;if(r=i.tag,r===5||r===6||r===26||r===27){e=n=i;continue t}c=c.parentNode}}e=e.return}Qf(function(){var v=n,x=oi(a),D=[];t:{var b=gs.get(t);if(b!==void 0){var S=Wu,H=t;switch(t){case"keypress":if(Ju(a)===0)break t;case"keydown":case"keyup":S=d0;break;case"focusin":H="focus",S=gi;break;case"focusout":H="blur",S=gi;break;case"beforeblur":case"afterblur":S=gi;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":S=Kf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=t0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=v0;break;case hs:case ms:case vs:S=e0;break;case ys:S=g0;break;case"scroll":case"scrollend":S=Pd;break;case"wheel":S=p0;break;case"copy":case"cut":case"paste":S=n0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=kf;break;case"toggle":case"beforetoggle":S=x0}var Q=(l&4)!==0,vt=!Q&&(t==="scroll"||t==="scrollend"),y=Q?b!==null?b+"Capture":null:b;Q=[];for(var m=v,g;m!==null;){var E=m;if(g=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||g===null||y===null||(E=Ye(m,y),E!=null&&Q.push(Tu(m,E,g))),vt)break;m=m.return}0<Q.length&&(b=new S(b,H,null,a,x),D.push({event:b,listeners:Q}))}}if((l&7)===0){t:{if(b=t==="mouseover"||t==="pointerover",S=t==="mouseout"||t==="pointerout",b&&a!==ri&&(H=a.relatedTarget||a.fromElement)&&(Ea(H)||H[Fa]))break t;if((S||b)&&(b=x.window===x?x:(b=x.ownerDocument)?b.defaultView||b.parentWindow:window,S?(H=a.relatedTarget||a.toElement,S=v,H=H?Ea(H):null,H!==null&&(vt=G(H),Q=H.tag,H!==vt||Q!==5&&Q!==27&&Q!==6)&&(H=null)):(S=null,H=v),S!==H)){if(Q=Kf,E="onMouseLeave",y="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(Q=kf,E="onPointerLeave",y="onPointerEnter",m="pointer"),vt=S==null?b:Ve(S),g=H==null?b:Ve(H),b=new Q(E,m+"leave",S,a,x),b.target=vt,b.relatedTarget=g,E=null,Ea(x)===v&&(Q=new Q(y,m+"enter",H,a,x),Q.target=g,Q.relatedTarget=vt,E=Q),vt=E,S&&H)l:{for(Q=S,y=H,m=0,g=Q;g;g=Oe(g))m++;for(g=0,E=y;E;E=Oe(E))g++;for(;0<m-g;)Q=Oe(Q),m--;for(;0<g-m;)y=Oe(y),g--;for(;m--;){if(Q===y||y!==null&&Q===y.alternate)break l;Q=Oe(Q),y=Oe(y)}Q=null}else Q=null;S!==null&&Co(D,b,S,Q,!1),H!==null&&vt!==null&&Co(D,vt,H,Q,!0)}}t:{if(b=v?Ve(v):window,S=b.nodeName&&b.nodeName.toLowerCase(),S==="select"||S==="input"&&b.type==="file")var _=as;else if(ts(b))if(es)_=U0;else{_=j0;var J=O0}else S=b.nodeName,!S||S.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?v&&si(v.elementType)&&(_=as):_=C0;if(_&&(_=_(t,v))){ls(D,_,a,x);break t}J&&J(t,b,v),t==="focusout"&&v&&b.type==="number"&&v.memoizedProps.value!=null&&fi(b,"number",b.value)}switch(J=v?Ve(v):window,t){case"focusin":(ts(J)||J.contentEditable==="true")&&(ie=J,Ei=v,ke=null);break;case"focusout":ke=Ei=ie=null;break;case"mousedown":Ai=!0;break;case"contextmenu":case"mouseup":case"dragend":Ai=!1,os(D,a,x);break;case"selectionchange":if(_0)break;case"keydown":case"keyup":os(D,a,x)}var V;if(pi)t:{switch(t){case"compositionstart":var Y="onCompositionStart";break t;case"compositionend":Y="onCompositionEnd";break t;case"compositionupdate":Y="onCompositionUpdate";break t}Y=void 0}else ne?Pf(t,a)&&(Y="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Y="onCompositionStart");Y&&(Wf&&a.locale!=="ko"&&(ne||Y!=="onCompositionStart"?Y==="onCompositionEnd"&&ne&&(V=Zf()):(kl=x,mi="value"in kl?kl.value:kl.textContent,ne=!0)),J=_n(v,Y),0<J.length&&(Y=new Jf(Y,t,null,a,x),D.push({event:Y,listeners:J}),V?Y.data=V:(V=If(a),V!==null&&(Y.data=V)))),(V=E0?A0(t,a):z0(t,a))&&(Y=_n(v,"onBeforeInput"),0<Y.length&&(J=new Jf("onBeforeInput","beforeinput",null,a,x),D.push({event:J,listeners:Y}),J.data=V)),yh(D,t,v,a,x)}Oo(D,l)})}function Tu(t,l,a){return{instance:t,listener:l,currentTarget:a}}function _n(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=Ye(t,a),u!=null&&e.unshift(Tu(t,u,n)),u=Ye(t,l),u!=null&&e.push(Tu(t,u,n))),t=t.return}return e}function Oe(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Co(t,l,a,e,u){for(var n=l._reactName,i=[];a!==null&&a!==e;){var c=a,r=c.alternate,v=c.stateNode;if(c=c.tag,r!==null&&r===e)break;c!==5&&c!==26&&c!==27||v===null||(r=v,u?(v=Ye(a,n),v!=null&&i.unshift(Tu(a,v,r))):u||(v=Ye(a,n),v!=null&&i.push(Tu(a,v,r)))),a=a.return}i.length!==0&&t.push({event:l,listeners:i})}var Sh=/\r\n?/g,xh=/\u0000|\uFFFD/g;function Uo(t){return(typeof t=="string"?t:""+t).replace(Sh,`
`).replace(xh,"")}function No(t,l){return l=Uo(l),Uo(t)===l}function Hn(){}function nt(t,l,a,e,u,n){switch(a){case"children":typeof e=="string"?l==="body"||l==="textarea"&&e===""||ae(t,e):(typeof e=="number"||typeof e=="bigint")&&l!=="body"&&ae(t,""+e);break;case"className":Gu(t,"class",e);break;case"tabIndex":Gu(t,"tabindex",e);break;case"dir":case"role":case"viewBox":case"width":case"height":Gu(t,a,e);break;case"style":Xf(t,e,n);break;case"data":if(l!=="object"){Gu(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=wu(""+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"&&nt(t,l,"name",u.name,u,null),nt(t,l,"formEncType",u.formEncType,u,null),nt(t,l,"formMethod",u.formMethod,u,null),nt(t,l,"formTarget",u.formTarget,u,null)):(nt(t,l,"encType",u.encType,u,null),nt(t,l,"method",u.method,u,null),nt(t,l,"target",u.target,u,null)));if(e==null||typeof e=="symbol"||typeof e=="boolean"){t.removeAttribute(a);break}e=wu(""+e),t.setAttribute(a,e);break;case"onClick":e!=null&&(t.onclick=Hn);break;case"onScroll":e!=null&&F("scroll",t);break;case"onScrollEnd":e!=null&&F("scrollend",t);break;case"dangerouslySetInnerHTML":if(e!=null){if(typeof e!="object"||!("__html"in e))throw Error(f(61));if(a=e.__html,a!=null){if(u.children!=null)throw Error(f(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=wu(""+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":F("beforetoggle",t),F("toggle",t),Xu(t,"popover",e);break;case"xlinkActuate":Ol(t,"http://www.w3.org/1999/xlink","xlink:actuate",e);break;case"xlinkArcrole":Ol(t,"http://www.w3.org/1999/xlink","xlink:arcrole",e);break;case"xlinkRole":Ol(t,"http://www.w3.org/1999/xlink","xlink:role",e);break;case"xlinkShow":Ol(t,"http://www.w3.org/1999/xlink","xlink:show",e);break;case"xlinkTitle":Ol(t,"http://www.w3.org/1999/xlink","xlink:title",e);break;case"xlinkType":Ol(t,"http://www.w3.org/1999/xlink","xlink:type",e);break;case"xmlBase":Ol(t,"http://www.w3.org/XML/1998/namespace","xml:base",e);break;case"xmlLang":Ol(t,"http://www.w3.org/XML/1998/namespace","xml:lang",e);break;case"xmlSpace":Ol(t,"http://www.w3.org/XML/1998/namespace","xml:space",e);break;case"is":Xu(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=$d.get(a)||a,Xu(t,a,e))}}function Jc(t,l,a,e,u,n){switch(a){case"style":Xf(t,e,n);break;case"dangerouslySetInnerHTML":if(e!=null){if(typeof e!="object"||!("__html"in e))throw Error(f(61));if(a=e.__html,a!=null){if(u.children!=null)throw Error(f(60));t.innerHTML=a}}break;case"children":typeof e=="string"?ae(t,e):(typeof e=="number"||typeof e=="bigint")&&ae(t,""+e);break;case"onScroll":e!=null&&F("scroll",t);break;case"onScrollEnd":e!=null&&F("scrollend",t);break;case"onClick":e!=null&&(t.onclick=Hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nf.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[Vt]||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,""):Xu(t,a,e)}}}function Nt(t,l,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",t),F("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(f(137,l));default:nt(t,l,n,i,a,null)}}u&&nt(t,l,"srcSet",a.srcSet,a,null),e&&nt(t,l,"src",a.src,a,null);return;case"input":F("invalid",t);var c=n=i=u=null,r=null,v=null;for(e in a)if(a.hasOwnProperty(e)){var x=a[e];if(x!=null)switch(e){case"name":u=x;break;case"type":i=x;break;case"checked":r=x;break;case"defaultChecked":v=x;break;case"value":n=x;break;case"defaultValue":c=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(f(137,l));break;default:nt(t,l,e,x,a,null)}}qf(t,n,c,r,v,i,u,!1),Qu(t);return;case"select":F("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:nt(t,l,u,c,a,null)}l=n,a=i,t.multiple=!!e,l!=null?le(t,!!e,l,!1):a!=null&&le(t,!!e,a,!0);return;case"textarea":F("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(f(91));break;default:nt(t,l,i,c,a,null)}Vf(t,e,u,n),Qu(t);return;case"option":for(r in a)if(a.hasOwnProperty(r)&&(e=a[r],e!=null))switch(r){case"selected":t.selected=e&&typeof e!="function"&&typeof e!="symbol";break;default:nt(t,l,r,e,a,null)}return;case"dialog":F("cancel",t),F("close",t);break;case"iframe":case"object":F("load",t);break;case"video":case"audio":for(e=0;e<xu.length;e++)F(xu[e],t);break;case"image":F("error",t),F("load",t);break;case"details":F("toggle",t);break;case"embed":case"source":case"link":F("error",t),F("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(v in a)if(a.hasOwnProperty(v)&&(e=a[v],e!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,l));default:nt(t,l,v,e,a,null)}return;default:if(si(l)){for(x in a)a.hasOwnProperty(x)&&(e=a[x],e!==void 0&&Jc(t,l,x,e,a,void 0));return}}for(c in a)a.hasOwnProperty(c)&&(e=a[c],e!=null&&nt(t,l,c,e,a,null))}function Th(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,r=null,v=null,x=null;for(S in a){var D=a[S];if(a.hasOwnProperty(S)&&D!=null)switch(S){case"checked":break;case"value":break;case"defaultValue":r=D;default:e.hasOwnProperty(S)||nt(t,l,S,null,e,D)}}for(var b in e){var S=e[b];if(D=a[b],e.hasOwnProperty(b)&&(S!=null||D!=null))switch(b){case"type":n=S;break;case"name":u=S;break;case"checked":v=S;break;case"defaultChecked":x=S;break;case"value":i=S;break;case"defaultValue":c=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(f(137,l));break;default:S!==D&&nt(t,l,b,S,e,D)}}ci(t,i,c,r,v,x,n,u);return;case"select":S=i=c=b=null;for(n in a)if(r=a[n],a.hasOwnProperty(n)&&r!=null)switch(n){case"value":break;case"multiple":S=r;default:e.hasOwnProperty(n)||nt(t,l,n,null,e,r)}for(u in e)if(n=e[u],r=a[u],e.hasOwnProperty(u)&&(n!=null||r!=null))switch(u){case"value":b=n;break;case"defaultValue":c=n;break;case"multiple":i=n;default:n!==r&&nt(t,l,u,n,e,r)}l=c,a=i,e=S,b!=null?le(t,!!a,b,!1):!!e!=!!a&&(l!=null?le(t,!!a,l,!0):le(t,!!a,a?[]:"",!1));return;case"textarea":S=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:nt(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":S=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(f(91));break;default:u!==n&&nt(t,l,i,u,e,n)}Lf(t,b,S);return;case"option":for(var H in a)if(b=a[H],a.hasOwnProperty(H)&&b!=null&&!e.hasOwnProperty(H))switch(H){case"selected":t.selected=!1;break;default:nt(t,l,H,null,e,b)}for(r in e)if(b=e[r],S=a[r],e.hasOwnProperty(r)&&b!==S&&(b!=null||S!=null))switch(r){case"selected":t.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:nt(t,l,r,b,e,S)}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 Q in a)b=a[Q],a.hasOwnProperty(Q)&&b!=null&&!e.hasOwnProperty(Q)&&nt(t,l,Q,null,e,b);for(v in e)if(b=e[v],S=a[v],e.hasOwnProperty(v)&&b!==S&&(b!=null||S!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(f(137,l));break;default:nt(t,l,v,b,e,S)}return;default:if(si(l)){for(var vt in a)b=a[vt],a.hasOwnProperty(vt)&&b!==void 0&&!e.hasOwnProperty(vt)&&Jc(t,l,vt,void 0,e,b);for(x in e)b=e[x],S=a[x],!e.hasOwnProperty(x)||b===S||b===void 0&&S===void 0||Jc(t,l,x,b,e,S);return}}for(var y in a)b=a[y],a.hasOwnProperty(y)&&b!=null&&!e.hasOwnProperty(y)&&nt(t,l,y,null,e,b);for(D in e)b=e[D],S=a[D],!e.hasOwnProperty(D)||b===S||b==null&&S==null||nt(t,l,D,b,e,S)}var kc=null,Wc=null;function Bn(t){return t.nodeType===9?t:t.ownerDocument}function Ro(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 _o(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 $c(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 Fc=null;function Eh(){var t=window.event;return t&&t.type==="popstate"?t===Fc?!1:(Fc=t,!0):(Fc=null,!1)}var Ho=typeof setTimeout=="function"?setTimeout:void 0,Ah=typeof clearTimeout=="function"?clearTimeout:void 0,Bo=typeof Promise=="function"?Promise:void 0,zh=typeof queueMicrotask=="function"?queueMicrotask:typeof Bo<"u"?function(t){return Bo.resolve(null).then(t).catch(Mh)}:Ho;function Mh(t){setTimeout(function(){throw t})}function Pc(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),Cu(l);return}e--}else a!=="$"&&a!=="$?"&&a!=="$!"||e++;a=u}while(a);Cu(l)}function Ic(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":Ic(a),ii(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Dh(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[Le])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 Oh(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 qo(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 Lo(t,l,a){switch(l=Bn(a),t){case"html":if(t=l.documentElement,!t)throw Error(f(452));return t;case"head":if(t=l.head,!t)throw Error(f(453));return t;case"body":if(t=l.body,!t)throw Error(f(454));return t;default:throw Error(f(451))}}var cl=new Map,Vo=new Set;function qn(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var Ql=I.d;I.d={f:jh,r:Ch,D:Uh,C:Nh,L:Rh,m:_h,X:Bh,S:Hh,M:qh};function jh(){var t=Ql.f(),l=jn();return t||l}function Ch(t){var l=Pa(t);l!==null&&l.tag===5&&l.type==="form"?or(l):Ql.r(t)}var je=typeof document>"u"?null:document;function Yo(t,l,a){var e=je;if(e&&typeof l=="string"&&l){var u=Ft(l);u='link[rel="'+t+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Vo.has(u)||(Vo.add(u),t={rel:t,crossOrigin:a,href:l},e.querySelector(u)===null&&(l=e.createElement("link"),Nt(l,"link",t),Mt(l),e.head.appendChild(l)))}}function Uh(t){Ql.D(t),Yo("dns-prefetch",t,null)}function Nh(t,l){Ql.C(t,l),Yo("preconnect",t,l)}function Rh(t,l,a){Ql.L(t,l,a);var e=je;if(e&&t&&l){var u='link[rel="preload"][as="'+Ft(l)+'"]';l==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Ft(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Ft(a.imageSizes)+'"]')):u+='[href="'+Ft(t)+'"]';var n=u;switch(l){case"style":n=Ce(t);break;case"script":n=Ue(t)}cl.has(n)||(t=L({rel:"preload",href:l==="image"&&a&&a.imageSrcSet?void 0:t,as:l},a),cl.set(n,t),e.querySelector(u)!==null||l==="style"&&e.querySelector(Eu(n))||l==="script"&&e.querySelector(Au(n))||(l=e.createElement("link"),Nt(l,"link",t),Mt(l),e.head.appendChild(l)))}}function _h(t,l){Ql.m(t,l);var a=je;if(a&&t){var e=l&&typeof l.as=="string"?l.as:"script",u='link[rel="modulepreload"][as="'+Ft(e)+'"][href="'+Ft(t)+'"]',n=u;switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Ue(t)}if(!cl.has(n)&&(t=L({rel:"modulepreload",href:t},l),cl.set(n,t),a.querySelector(u)===null)){switch(e){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Au(n)))return}e=a.createElement("link"),Nt(e,"link",t),Mt(e),a.head.appendChild(e)}}}function Hh(t,l,a){Ql.S(t,l,a);var e=je;if(e&&t){var u=Ia(e).hoistableStyles,n=Ce(t);l=l||"default";var i=u.get(n);if(!i){var c={loading:0,preload:null};if(i=e.querySelector(Eu(n)))c.loading=5;else{t=L({rel:"stylesheet",href:t,"data-precedence":l},a),(a=cl.get(n))&&tf(t,a);var r=i=e.createElement("link");Mt(r),Nt(r,"link",t),r._p=new Promise(function(v,x){r.onload=v,r.onerror=x}),r.addEventListener("load",function(){c.loading|=1}),r.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Ln(i,l,e)}i={type:"stylesheet",instance:i,count:1,state:c},u.set(n,i)}}}function Bh(t,l){Ql.X(t,l);var a=je;if(a&&t){var e=Ia(a).hoistableScripts,u=Ue(t),n=e.get(u);n||(n=a.querySelector(Au(u)),n||(t=L({src:t,async:!0},l),(l=cl.get(u))&&lf(t,l),n=a.createElement("script"),Mt(n),Nt(n,"link",t),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function qh(t,l){Ql.M(t,l);var a=je;if(a&&t){var e=Ia(a).hoistableScripts,u=Ue(t),n=e.get(u);n||(n=a.querySelector(Au(u)),n||(t=L({src:t,async:!0,type:"module"},l),(l=cl.get(u))&&lf(t,l),n=a.createElement("script"),Mt(n),Nt(n,"link",t),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},e.set(u,n))}}function Xo(t,l,a,e){var u=(u=wl.current)?qn(u):null;if(!u)throw Error(f(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(l=Ce(a.href),a=Ia(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=Ce(a.href);var n=Ia(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(Eu(t)))&&!n._p&&(i.instance=n,i.state.loading=5),cl.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},cl.set(t,a),n||Lh(u,t,a,i.state))),l&&e===null)throw Error(f(528,""));return i}if(l&&e!==null)throw Error(f(529,""));return null;case"script":return l=a.async,a=a.src,typeof a=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Ue(a),a=Ia(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(f(444,t))}}function Ce(t){return'href="'+Ft(t)+'"'}function Eu(t){return'link[rel="stylesheet"]['+t+"]"}function Go(t){return L({},t,{"data-precedence":t.precedence,precedence:null})}function Lh(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}),Nt(l,"link",a),Mt(l),t.head.appendChild(l))}function Ue(t){return'[src="'+Ft(t)+'"]'}function Au(t){return"script[async]"+t}function Qo(t,l,a){if(l.count++,l.instance===null)switch(l.type){case"style":var e=t.querySelector('style[data-href~="'+Ft(a.href)+'"]');if(e)return l.instance=e,Mt(e),e;var u=L({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return e=(t.ownerDocument||t).createElement("style"),Mt(e),Nt(e,"style",u),Ln(e,a.precedence,t),l.instance=e;case"stylesheet":u=Ce(a.href);var n=t.querySelector(Eu(u));if(n)return l.state.loading|=4,l.instance=n,Mt(n),n;e=Go(a),(u=cl.get(u))&&tf(e,u),n=(t.ownerDocument||t).createElement("link"),Mt(n);var i=n;return i._p=new Promise(function(c,r){i.onload=c,i.onerror=r}),Nt(n,"link",e),l.state.loading|=4,Ln(n,a.precedence,t),l.instance=n;case"script":return n=Ue(a.src),(u=t.querySelector(Au(n)))?(l.instance=u,Mt(u),u):(e=a,(u=cl.get(n))&&(e=L({},a),lf(e,u)),t=t.ownerDocument||t,u=t.createElement("script"),Mt(u),Nt(u,"link",e),t.head.appendChild(u),l.instance=u);case"void":return null;default:throw Error(f(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(e=l.instance,l.state.loading|=4,Ln(e,a.precedence,t));return l.instance}function Ln(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 tf(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function lf(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var Vn=null;function Zo(t,l,a){if(Vn===null){var e=new Map,u=Vn=new Map;u.set(a,e)}else u=Vn,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[Le]||n[Rt]||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 wo(t,l,a){t=t.ownerDocument||t,t.head.insertBefore(a,l==="title"?t.querySelector("head > title"):null)}function Vh(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 Ko(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var zu=null;function Yh(){}function Xh(t,l,a){if(zu===null)throw Error(f(475));var e=zu;if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=Ce(a.href),n=t.querySelector(Eu(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,Mt(n);return}n=t.ownerDocument||t,a=Go(a),(u=cl.get(u))&&tf(a,u),n=n.createElement("link"),Mt(n);var i=n;i._p=new Promise(function(c,r){i.onload=c,i.onerror=r}),Nt(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 Gh(){if(zu===null)throw Error(f(475));var t=zu;return t.stylesheets&&t.count===0&&af(t,t.stylesheets),0<t.count?function(l){var a=setTimeout(function(){if(t.stylesheets&&af(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)af(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Xn=null;function af(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Xn=new Map,l.forEach(Qh,t),Xn=null,Yn.call(t))}function Qh(t,l){if(!(l.state.loading&4)){var a=Xn.get(t);if(a)var e=a.get(null);else{a=new Map,Xn.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 Mu={$$typeof:B,Provider:null,Consumer:null,_currentValue:Wt,_currentValue2:Wt,_threadCount:0};function Zh(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=ui(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ui(0),this.hiddenUpdates=ui(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 Jo(t,l,a,e,u,n,i,c,r,v,x,D){return t=new Zh(t,l,a,i,c,r,v,D),l=1,n===!0&&(l|=24),n=nl(3,null,null,l),t.current=n,n.stateNode=t,l=_i(),l.refCount++,t.pooledCache=l,l.refCount++,n.memoizedState={element:e,isDehydrated:a,cache:l},mc(n),t}function ko(t){return t?(t=se,t):se}function Wo(t,l,a,e,u,n){u=ko(u),e.context===null?e.context=u:e.pendingContext=u,e=aa(l),e.payload={element:a},n=n===void 0?null:n,n!==null&&(e.callback=n),a=ea(t,e,l),a!==null&&(qt(a,t,l),su(a,t,l))}function $o(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<l?a:l}}function ef(t,l){$o(t,l),(t=t.alternate)&&$o(t,l)}function Fo(t){if(t.tag===13){var l=Wl(t,67108864);l!==null&&qt(l,t,67108864),ef(t,67108864)}}var Gn=!0;function wh(t,l,a,e){var u=z.T;z.T=null;var n=I.p;try{I.p=2,uf(t,l,a,e)}finally{I.p=n,z.T=u}}function Kh(t,l,a,e){var u=z.T;z.T=null;var n=I.p;try{I.p=8,uf(t,l,a,e)}finally{I.p=n,z.T=u}}function uf(t,l,a,e){if(Gn){var u=nf(e);if(u===null)Kc(t,l,e,Qn,a),Io(t,e);else if(kh(u,t,l,a,e))e.stopPropagation();else if(Io(t,e),l&4&&-1<Jh.indexOf(t)){for(;u!==null;){var n=Pa(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=Ta(n.pendingLanes);if(i!==0){var c=n;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var r=1<<31-Qt(i);c.entanglements[1]|=r,i&=~r}Al(n),(dt&6)===0&&(Mn=pl()+500,Su(0))}}break;case 13:c=Wl(n,2),c!==null&&qt(c,n,2),jn(),ef(n,2)}if(n=nf(e),n===null&&Kc(t,l,e,Qn,a),n===u)break;u=n}u!==null&&e.stopPropagation()}else Kc(t,l,e,null,a)}}function nf(t){return t=oi(t),cf(t)}var Qn=null;function cf(t){if(Qn=null,t=Ea(t),t!==null){var l=G(t);if(l===null)t=null;else{var a=l.tag;if(a===13){if(t=st(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 Po(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(Nd()){case xf:return 2;case Tf:return 8;case qu:case Rd:return 32;case Ef:return 268435456;default:return 32}default:return 32}}var ff=!1,ra=null,oa=null,da=null,Du=new Map,Ou=new Map,ha=[],Jh="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 Io(t,l){switch(t){case"focusin":case"focusout":ra=null;break;case"dragenter":case"dragleave":oa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":Du.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ou.delete(l.pointerId)}}function ju(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=Pa(l),l!==null&&Fo(l)),t):(t.eventSystemFlags|=e,l=t.targetContainers,u!==null&&l.indexOf(u)===-1&&l.push(u),t)}function kh(t,l,a,e,u){switch(l){case"focusin":return ra=ju(ra,t,l,a,e,u),!0;case"dragenter":return oa=ju(oa,t,l,a,e,u),!0;case"mouseover":return da=ju(da,t,l,a,e,u),!0;case"pointerover":var n=u.pointerId;return Du.set(n,ju(Du.get(n)||null,t,l,a,e,u)),!0;case"gotpointercapture":return n=u.pointerId,Ou.set(n,ju(Ou.get(n)||null,t,l,a,e,u)),!0}return!1}function td(t){var l=Ea(t.target);if(l!==null){var a=G(l);if(a!==null){if(l=a.tag,l===13){if(l=st(a),l!==null){t.blockedOn=l,Gd(t.priority,function(){if(a.tag===13){var e=kt(),u=Wl(a,e);u!==null&&qt(u,a,e),ef(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 Zn(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var a=nf(t.nativeEvent);if(a===null){a=t.nativeEvent;var e=new a.constructor(a.type,a);ri=e,a.target.dispatchEvent(e),ri=null}else return l=Pa(a),l!==null&&Fo(l),t.blockedOn=a,!1;l.shift()}return!0}function ld(t,l,a){Zn(t)&&a.delete(l)}function Wh(){ff=!1,ra!==null&&Zn(ra)&&(ra=null),oa!==null&&Zn(oa)&&(oa=null),da!==null&&Zn(da)&&(da=null),Du.forEach(ld),Ou.forEach(ld)}function wn(t,l){t.blockedOn===l&&(t.blockedOn=null,ff||(ff=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Wh)))}var Kn=null;function ad(t){Kn!==t&&(Kn=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Kn===t&&(Kn=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(cf(e||a)===null)continue;break}var n=Pa(a);n!==null&&(t.splice(l,3),l-=3,$i(n,{pending:!0,data:u,method:a.method,action:e},e,u))}}))}function Cu(t){function l(r){return wn(r,t)}ra!==null&&wn(ra,t),oa!==null&&wn(oa,t),da!==null&&wn(da,t),Du.forEach(l),Ou.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);)td(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[Vt]||null;if(typeof n=="function")i||ad(a);else if(i){var c=null;if(n&&n.hasAttribute("formAction")){if(u=n,i=n[Vt]||null)c=i.formAction;else if(cf(u)!==null)continue}else c=i.action;typeof c=="function"?a[e+1]=c:(a.splice(e,3),e-=3),ad(a)}}}function sf(t){this._internalRoot=t}Jn.prototype.render=sf.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(f(409));var a=l.current,e=kt();Wo(a,e,t,l,null,null)},Jn.prototype.unmount=sf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;t.tag===0&&Me(),Wo(t.current,2,null,t,null,null),jn(),l[Fa]=null}};function Jn(t){this._internalRoot=t}Jn.prototype.unstable_scheduleHydration=function(t){if(t){var l=jf();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&&td(t)}};var ed=h.version;if(ed!=="19.0.0")throw Error(f(527,ed,"19.0.0"));I.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(f(188)):(t=Object.keys(t).join(","),Error(f(268,t)));return t=ka(l),t=t!==null?xa(t):null,t=t===null?null:t.stateNode,t};var $h={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:z,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{He=kn.inject($h),Gt=kn}catch{}}return Uu.createRoot=function(t,l){if(!p(t))throw Error(f(299));var a=!1,e="",u=pr,n=Sr,i=xr,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=Jo(t,1,!1,null,null,a,e,u,n,i,c,null),t[Fa]=l.current,wc(t.nodeType===8?t.parentNode:t),new sf(l)},Uu.hydrateRoot=function(t,l,a){if(!p(t))throw Error(f(299));var e=!1,u="",n=pr,i=Sr,c=xr,r=null,v=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&&(r=a.unstable_transitionCallbacks),a.formState!==void 0&&(v=a.formState)),l=Jo(t,1,!0,l,a??null,e,u,n,i,c,r,v),l.context=ko(null),a=l.current,e=kt(),u=aa(e),u.callback=null,ea(a,u,e),l.current.lanes=e,qe(l,e),Al(l),t[Fa]=l.current,wc(t),new Jn(l)},Uu.version="19.0.0",Uu}var sd;function jm(){if(sd)return rf.exports;sd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(h){console.error(h)}}return s(),rf.exports=Om(),rf.exports}var Cm=jm();const gd=sl(s=>({isFunnel:!0,setFunnel:()=>s(h=>({isFunnel:!h.isFunnel}))}));sl(s=>({isSorting:!0,setSorting:()=>s(h=>({isSorting:!h.isSorting}))}));const bd=sl(s=>({isTextDark:!1,setTextDark:()=>s(h=>({isTextDark:!h.isTextDark}))})),hf=new Map,Um=(s,h)=>{var f;if(!s.startsWith("var("))return h(s);const o=(f=s.match(/var\((--[^)]+)\)/))==null?void 0:f[1];if(!o)return h("#ccc");if(hf.has(s)){h(hf.get(s));return}if(typeof document<"u"&&document.documentElement){const p=()=>{const A=getComputedStyle(document.documentElement).getPropertyValue(o).trim();return A?(hf.set(s,A),h(A),!0):!1};if(p())return;const T=new MutationObserver(()=>{p()&&T.disconnect()});T.observe(document.documentElement,{attributes:!0,subtree:!0})}else h("#ccc")},va={cardVariants:{hidden:{opacity:0,y:20},visible:{opacity:1,y:0}},numberVariants:{hidden:{opacity:0,scale:.5},visible:{opacity:1,scale:1,transition:{type:"spring",stiffness:100}}},titleVariants:{initial:{y:-20,opacity:0},animate:{y:0,opacity:1,transition:{type:"spring",stiffness:300,damping:20}},exit:{y:-20,opacity:0}},emptyStateVariants:{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1,transition:{type:"spring",stiffness:200,delay:.2}},exit:{scale:.8,opacity:0}},cardHoverEffect:{rest:{backgroundColor:"var(--input)",transition:{duration:.3}},hover:{backgroundColor:"var(--background-alt)",transition:{duration:.3}}},itemTabsVariants:{hidden:{opacity:0,x:-20},visible:s=>({opacity:1,x:0,transition:{delay:s*.1,duration:.3}})},graphTransitionVariants:{enter:{opacity:0,scale:.9,y:20,rotateX:45,filter:"blur(10px)"},center:{opacity:1,scale:1,y:0,rotateX:0,filter:"blur(0px)",transition:{filter:{duration:.4,ease:"easeOut"}}},exit:{opacity:0,scale:.9,y:-20,rotateX:-45,filter:"blur(10px)",transition:{filter:{duration:.4,ease:"easeIn"}}}},chartContainerVariants:{initial:{opacity:0,y:20},animate:{opacity:1,y:0,transition:{type:"tween",ease:"easeOut",duration:.4}},exit:{opacity:0,y:-20,transition:{type:"tween",ease:"easeIn",duration:.3}}},IconsVariants:{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},hover:{scale:1.1,y:-5},tap:{scale:.95}},tooltipVariants:{hidden:{opacity:0,y:10,scale:.8},visible:{opacity:1,y:0,scale:1}},containerVariantsIcons:{initial:{opacity:0},animate:{opacity:1,transition:{staggerChildren:.1}}},containerTabsVariants:{initial:{scale:1},hover:{scale:1.05},tap:{scale:.95}},containerNoDataVariants:{hidden:{opacity:0},visible:{opacity:1,transition:{when:"beforeChildren",staggerChildren:.1,duration:.5}},exit:{opacity:0,transition:{duration:.3}}},textVariants:{hidden:{y:10,opacity:0},visible:{y:0,opacity:1,transition:{type:"spring",stiffness:100}}}},Ja=sl(s=>({dataOrder:"descending",setDataOrder:h=>s({dataOrder:h})})),pd=({chartType:s="funnel",mode:h="value"})=>{const{containerNoDataVariants:o,textVariants:f}=va,{language:p}=fl(),T=()=>d.jsx(X.div,{className:"w-full h-56 flex flex-col items-center justify-center",variants:o,initial:"hidden",animate:"visible",exit:"exit",children:d.jsxs("svg",{width:"240",height:"200",viewBox:"0 0 240 200",children:[d.jsx(X.path,{d:"M20,0 L220,0 L180,40 L60,40 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5,delay:0}}),d.jsx(X.path,{d:"M60,45 L180,45 L160,85 L80,85 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1}}),d.jsx(X.path,{d:"M80,90 L160,90 L140,130 L100,130 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2}}),d.jsx(X.path,{d:"M100,135 L140,135 L120,175 L120,175 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3}})]})}),A=()=>d.jsx(X.div,{className:"w-full h-56 flex items-center justify-center",variants:o,initial:"hidden",animate:"visible",exit:"exit",children:d.jsxs("svg",{width:"200",height:"200",viewBox:"0 0 200 200",children:[d.jsx(X.circle,{cx:"100",cy:"100",r:"80",fill:"none",stroke:"#d1d5db",strokeWidth:"2",initial:{pathLength:0},animate:{pathLength:1},transition:{duration:.8}}),d.jsx(X.path,{d:"M100,100 L100,20 A80,80 0 0,1 180,100 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.3}}),d.jsx(X.path,{d:"M100,100 L180,100 A80,80 0 0,1 100,180 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.4}}),d.jsx(X.path,{d:"M100,100 L100,180 A80,80 0 0,1 20,100 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.5}}),d.jsx(X.path,{d:"M100,100 L20,100 A80,80 0 0,1 100,20 Z",fill:"#e5e7eb",stroke:"#d1d5db",strokeWidth:"1",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.6}})]})});return d.jsxs("div",{className:"p-6 w-full max-w-md flex flex-col items-center",children:[d.jsx("div",{className:"w-full mb-6 relative",children:d.jsx(Fn,{mode:"wait",children:s==="funnel"?d.jsx(T,{},"funnel"):d.jsx(A,{},"pie")})}),d.jsxs(X.div,{className:"text-center",variants:o,initial:"hidden",animate:"visible",children:[d.jsx(X.h3,{className:"text-xl font-medium text-gray-800 mb-2",variants:f,children:p.semDadosParaExibir}),d.jsxs(X.p,{className:"text-gray-500 max-w-xs",variants:f,children:[p.naoExistemValoresParaMontarSeuGrafico,s==="funnel"?p.graficoFunil:p.graficoPizza,h==="contact"?` ${p.modoContatos}`:p.modoValores]})]})]})},Nm=`
  .funnel-container text {
    fill: white !important;
    paint-order: stroke !important;
    stroke: black !important;
    stroke-width: 2px !important;
    stroke-linejoin: round !important;
    font-weight: bold !important;
  }
`,Rm=`
  .nivo-pie text {
    fill: white !important;
    paint-order: stroke !important;
    stroke: black !important;
    stroke-width: 2px !important;
    stroke-linejoin: round !important;
    font-weight: bold !important;
  }
`,Wn=s=>new Promise(h=>{chrome.storage.local.get(s,o=>{h(o[s]&&Array.isArray(o[s])?o[s]:[])})}),$n={},mf=(s,h)=>{$n[s]&&clearTimeout($n[s]),$n[s]=window.setTimeout(()=>{const o={[s]:h};chrome.storage.local.set(o),$n[s]=null},300)},rd=s=>s?s.toString().replace(/\D/g,""):"",Sd=(s,h)=>!s||!h?!1:s===h?!0:rd(s)===rd(h),xd=s=>{let h=0;return s.forEach(o=>{Array.isArray(o.valNegocio)&&o.valNegocio.length>0&&o.valNegocio.forEach(f=>{if(!(!f||!f.valor))try{const T=f.valor.toString().replace(/[^\d,.]/g,"").replace(",","."),A=parseFloat(T)||0;h+=A}catch{}})}),h},vf=(s,h)=>{var T;const o=((T=s.chats)==null?void 0:T.map(A=>A.id).filter(Boolean))||[];if(o.length===0)return{value:0,updatedItem:{...s,profile:0,profileCalculated:!0}};const f=h.filter(A=>A&&A.userID&&o.some(j=>Sd(j,A.userID))),p=xd(f);return{value:p||0,updatedItem:{...s,profile:p||0,profileCalculated:!0}}},Nu=sl(s=>({labels:[],labelsId:[],labelChats:{},isLoading:!1,error:null,fetchLabels:async()=>{s({isLoading:!0,error:null});try{const h=await ud.Labels("getAllLabels");if(!Array.isArray(h))throw new Error("O retorno das labels não é um array");const o=h.map(j=>({id:j.id,name:j.name||`Label ${j.id}`,hexColor:j.hexColor||"#cccccc",profile:0,chats:[]})),f={},p=o.map(async j=>{try{const O=await ud.Contact("List",{type:"withLabels",id:j.id}),U=O.map(M=>M.id);return f[j.id]=U,{...j,chats:O.map(M=>({id:M.id,name:M.name||M.id}))}}catch(O){return console.error(`Erro ao buscar chats para label ${j.id}:`,O),j}}),T=await Promise.all(p),A=[...new Set(Object.values(f).flat())];s({labels:T,labelsId:A,labelChats:f,isLoading:!1})}catch(h){console.error("Erro ao obter labels ou contatos:",h),s({isLoading:!1,error:h instanceof Error?h.message:"Erro desconhecido ao carregar labels"})}}})),_m={crm:{},userTabs:{},labels:{}},Ht=sl((s,h)=>({selectedCrmType:"userTabs",selectedCrm:null,selectedUserTabs:null,selectedUserLabels:null,crmOptions:[],userTabsOptions:[],userLabelsOptions:[],profiles:[],calculatedValues:_m,isLoading:!1,error:null,setSelectedCrmType:o=>{s({selectedCrmType:o}),requestAnimationFrame(()=>{h().verifyProfilesAndCalculate()})},setSelectedCrm:o=>{s({selectedCrm:o,selectedCrmType:"traditional"}),requestAnimationFrame(()=>{h().verifyProfilesAndCalculate()})},setSelectedUserLabels:o=>{s({selectedUserLabels:o,selectedCrmType:"labels"}),requestAnimationFrame(()=>{h().verifyProfilesAndCalculate()})},setSelectedUserTabs:o=>{s({selectedUserTabs:o,selectedCrmType:"userTabs"}),requestAnimationFrame(()=>{h().verifyProfilesAndCalculate()})},verifyProfilesAndCalculate:async()=>{const{profiles:o}=h();if(!o||o.length===0)try{const f=await Wn("perfil");s({profiles:f})}catch(f){console.error("Erro ao carregar perfis para verificação:",f),s({error:f instanceof Error?f.message:"Erro ao carregar perfis"});return}h().calculateBusinessValues()},fetchCrmOptions:async()=>{if(!h().isLoading){s({isLoading:!0,error:null});try{await Nu.getState().fetchLabels();const{isLoading:f}=Nu.getState();f&&await new Promise(U=>setTimeout(U,500));const[p,T,A]=await Promise.all([Wn("crm"),Wn("userTabs"),Wn("perfil")]),O=Nu.getState().labels||[];s(U=>{const M={crmOptions:p,userLabelsOptions:O,userTabsOptions:T,profiles:A,isLoading:!1};return!U.selectedCrm&&U.selectedCrmType==="traditional"&&p.length>0&&(M.selectedCrm=p[0]),!U.selectedUserTabs&&U.selectedCrmType==="userTabs"&&T.length>0&&(M.selectedUserTabs=T),(U.selectedCrmType==="labels"||!U.selectedUserLabels&&O.length>0)&&(M.selectedUserLabels=O),M}),requestAnimationFrame(()=>{h().calculateBusinessValues()})}catch(o){console.error("[ERROR] Fetch CRM Options Error:",o),s({isLoading:!1,error:o instanceof Error?o.message:"Erro desconhecido ao carregar dados"})}}},fetchCrmData:async()=>{try{await h().fetchCrmOptions(),h().setupStorageListeners()}catch(o){s({error:o instanceof Error?o.message:"Erro desconhecido ao carregar dados",isLoading:!1}),console.error("Erro ao buscar dados do CRM:",o)}},setupStorageListeners:()=>{chrome.storage.onChanged.removeListener(f),chrome.storage.onChanged.addListener(f);let o=null;function f(p,T){T==="local"&&["perfil","crm","userTabs"].some(j=>p[j])&&(o&&clearTimeout(o),o=window.setTimeout(async()=>{const j=h(),O={};let U=!1;if(p.perfil){const M=p.perfil.newValue;Array.isArray(M)&&(O.profiles=M,U=!0)}if(p.crm){const M=p.crm.newValue;if(Array.isArray(M)){if(O.crmOptions=M,j.selectedCrm){const C=M.find(R=>{var B;return R.id===((B=j.selectedCrm)==null?void 0:B.id)});C&&(O.selectedCrm=C)}else M.length>0&&j.selectedCrmType==="traditional"&&(O.selectedCrm=M[0]);U=!0}}if(p.userTabs){const M=p.userTabs.newValue;Array.isArray(M)&&(O.userTabsOptions=M,j.selectedCrmType==="userTabs"&&(O.selectedUserTabs=M),U=!0)}if(Object.keys(O).length>0&&(s(O),U)){const{labels:M}=Nu.getState();M&&M.length>0&&s({userLabelsOptions:M,selectedUserLabels:M}),requestAnimationFrame(()=>{h().calculateBusinessValues()})}o=null},300))}},getTabValue:o=>{var O,U,M;const{selectedCrmType:f,calculatedValues:p,selectedCrm:T,selectedUserTabs:A,selectedUserLabels:j}=h();return f==="traditional"?p.crm[o]??((O=T==null?void 0:T.list.find(C=>C.id===o))==null?void 0:O.profile)??0:f==="userTabs"?p.userTabs[o]??((U=A==null?void 0:A.find(C=>C.id===o))==null?void 0:U.profile)??0:f==="labels"?p.labels[o]??((M=j==null?void 0:j.find(C=>C.id===o))==null?void 0:M.profile)??0:0},calculateAllCRMValues:()=>{const{crmOptions:o,profiles:f}=h(),p=f||[];if(p.length===0)return;const T={crm:{...h().calculatedValues.crm},userTabs:{...h().calculatedValues.userTabs},labels:{...h().calculatedValues.labels}};o.forEach(A=>{A.list.forEach(j=>{const O=vf(j,p);T.crm[j.id]=O.value})}),s({calculatedValues:T})},calculateBusinessValues:()=>{var R;const{selectedCrm:o,selectedUserTabs:f,profiles:p,selectedUserLabels:T}=h(),A=Nu.getState(),{labels:j,labelChats:O}=A,U=p||[];if(U.length===0)return;const M={crm:{...h().calculatedValues.crm},userTabs:{...h().calculatedValues.userTabs},labels:{...h().calculatedValues.labels}};if((R=o==null?void 0:o.list)!=null&&R.length){const B=o.list.map(q=>{const K=vf(q,U);return M.crm[q.id]=K.value,K.updatedItem});s({selectedCrm:{...o,list:B},calculatedValues:M}),mf("calculatedCrm",B)}if(f!=null&&f.length){const B=f.map(q=>{const K=vf(q,U);return M.userTabs[q.id]=K.value,K.updatedItem});s({selectedUserTabs:B,calculatedValues:M}),mf("calculatedUserTabs",B)}const C=j!=null&&j.length?j:T||[];if(C.length>0){const B=C.map(q=>{var k;const K=[...new Set([...((k=q.chats)==null?void 0:k.map(At=>At.id))||[],...O[q.id]||[]])];if(K.length===0)return{...q,profile:0,profileCalculated:!0};const et=U.filter(At=>(At==null?void 0:At.userID)&&K.some(zl=>Sd(zl,At.userID))),Et=xd(et);return M.labels[q.id]=Et||0,{...q,profile:Et||0,profileCalculated:!0}});s({selectedUserLabels:B,calculatedValues:M,userLabelsOptions:B})}mf("calculatedValues",M)}})),Hm=()=>Ht.getState().fetchCrmData();sl(s=>({isOpen:!1,toggle:()=>s(h=>({isOpen:!h.isOpen})),close:()=>s({isOpen:!1}),open:()=>s({isOpen:!0})}));const Td=sl((s,h)=>({isCaption:!1,setIsCaption:()=>s(o=>({isCaption:!o.isCaption}))})),Pn=sl((s,h)=>({isContact:!0,setIsContact:()=>s(o=>({isContact:!o.isContact})),sortTabs:o=>{var j;const f=h().isContact,p=Ja.getState().dataOrder,T=Ru.getState().orderLabels;if(!Array.isArray(o)||o.length===0)return[];let A=[...o];if((p==="original"||p==="inverted")&&((j=A[0])!=null&&j.hasOwnProperty("name"))&&(T==null?void 0:T.length)>0){const O=new Map;T.forEach((U,M)=>{O.set(U,M)}),A.sort((U,M)=>O.has(U.id)&&O.has(M.id)?O.get(U.id)-O.get(M.id):O.has(U.id)?-1:O.has(M.id)?1:0),p==="inverted"&&A.reverse()}else p!=="original"&&(p==="inverted"?A.reverse():A.sort((O,U)=>{var R,B;const M=f?((R=O.chats)==null?void 0:R.length)||0:Number(O.profile)||0,C=f?((B=U.chats)==null?void 0:B.length)||0:Number(U.profile)||0;return p==="ascending"?M-C:C-M}));return A}})),Sf=()=>{const[s,h]=at.useState({data:[],isEmpty:!0,isEmptyContact:!0,isEmptyValue:!0,totalFormatted:"R$ 0,00",averageFormatted:"R$ 0,00",taxaConversaoPorContato:"R$ 0,00",contacts:0,excelData:[]}),{selectedCrm:o,selectedUserTabs:f,calculatedValues:p,selectedCrmType:T,selectedUserLabels:A}=Ht(),{isContact:j}=Pn.getState(),{dataOrder:O}=Ja.getState(),U=Ru(M=>M.orderLabels);return at.useEffect(()=>{let M=[];T==="traditional"&&(o!=null&&o.list)?(M=o.list.map(z=>{var L;return{id:z.id,value:((L=z.chats)==null?void 0:L.length)||0,name:z.name||`Lista ${z.id}`}}),o.list.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0)):T==="userTabs"&&f?(M=f.map(z=>{var L;return{id:z.id,value:((L=z.chats)==null?void 0:L.length)||0,name:z.tag||`Aba ${z.id}`}}),f.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0)):T==="labels"&&A&&(M=A.map(z=>{var L;return{id:z.id,value:((L=z.chats)==null?void 0:L.length)||0,name:z.name||`Etiqueta ${z.id}`}}),A.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0));let C=[],R=0;T==="traditional"&&(o!=null&&o.list)?(C=o.list.map(z=>({id:z.id,value:p.crm[z.id]||0,name:z.name||`Lista ${z.id}`})),R=o.list.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0)):T==="userTabs"&&f?(C=f.map(z=>({id:z.id,value:p.userTabs[z.id]||0,name:z.tag||`Aba ${z.id}`})),R=f.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0)):T==="labels"&&A&&(C=A.map(z=>({id:z.id,value:z.profile||0,name:z.name||`Etiqueta ${z.id}`})),R=A.reduce((z,L)=>{var $;return z+((($=L.chats)==null?void 0:$.length)||0)},0));const B=[...M],q=[...C];if((O==="original"||O==="inverted")&&T==="labels"&&(U==null?void 0:U.length)>0){const z=new Map;U.forEach(($,rl)=>z.set($,rl));const L=($,rl)=>z.has($.id)&&z.has(rl.id)?z.get($.id)-z.get(rl.id):z.has($.id)?-1:z.has(rl.id)?1:0;M.sort(L),C.sort(L),O==="inverted"&&(M.reverse(),C.reverse())}else if(O!=="original")if(O==="inverted")M=[...B].reverse(),C=[...q].reverse();else{const z=(L,$)=>O==="ascending"?L.value-$.value:O==="descending"?$.value-L.value:0;M.sort(z),C.sort(z)}const K=j?M:C,et=K.filter(z=>z.value>0),Et=C.filter(z=>z.value>0),k=Et.reduce((z,L)=>z+L.value,0),At=Et.length?k/C.length:0,zl=R>0?(Et.length/R*100).toFixed(2)+"%":"0.00%",yl=z=>z.toLocaleString("pt-BR",{style:"currency",currency:"BRL",maximumFractionDigits:2}),Lt=M.length===0||M.every(z=>z.value===0),ya=C.length===0||C.every(z=>z.value===0);h({data:et,isEmpty:j?Lt:ya,isEmptyContact:Lt,isEmptyValue:ya,totalFormatted:yl(k),averageFormatted:yl(At),taxaConversaoPorContato:zl,contacts:R,excelData:K})},[o,f,p,T,j,A,O,JSON.stringify(U)]),s},Ed=()=>{const[s,h]=at.useState({data:[{id:"",color:"#ccc"}],isEmpty:!0,colorMap:{"":"#ccc"}}),o=Ht(A=>A.selectedCrm),f=Ht(A=>A.selectedUserTabs),p=Ht(A=>A.selectedCrmType),T=Ht(A=>A.selectedUserLabels);return at.useEffect(()=>{let A=[];p==="traditional"&&(o!=null&&o.list)?A=o.list.map(O=>({id:O.id,color:O.hexColor||"#ccc"})):p==="userTabs"&&Array.isArray(f)?(typeof window<"u"&&document.documentElement.style.getPropertyValue("--primaria").trim(),A=f.map(O=>({id:O.id,color:"var(--primaria)"}))):p==="labels"&&Array.isArray(T)&&(A=T.map(O=>({id:O.id,color:O.hexColor||"#ccc"})));const j=!A.length;j&&(A=[{id:"",color:"#ccc"}]),h({data:A,isEmpty:j,colorMap:Object.fromEntries(A.map(O=>[O.id,O.color]))})},[o,f,T,p]),s},Bm=()=>{const{data:s,isEmpty:h}=Sf(),o=Ed(),{isContact:f}=Pn(),{isTextDark:p}=bd(),{dataOrder:T}=Ja(),[A,j]=at.useState(null),[O,U]=at.useState({});return at.useEffect(()=>{if(h||o.data.length===0){j(null),U({});return}(async()=>{const C={};await Promise.all(o.data.map(q=>new Promise(K=>{Um(q.color,et=>{C[q.id]=et,K()})})));const R=s.map(q=>({id:q.name,value:q.value,label:q.name,originalId:q.id})),B={};R.forEach(q=>{B[q.id]=C[q.originalId]||"#ccc"}),j(R),U(B)})()},[s,o.data,f,h,T]),d.jsxs(d.Fragment,{children:[d.jsx("style",{children:Nm}),d.jsx("div",{className:"flex justify-center items-center w-full h-full",children:h?d.jsx(pd,{chartType:"funnel",mode:f?"contact":"value"}):A?d.jsx("div",{className:"funnel-container w-full h-full",children:d.jsx(mm,{data:A,margin:{top:20,right:40,bottom:20,left:40},shapeBlending:.1,interpolation:"smooth",colors:M=>O[M.id]||"#ccc",borderWidth:8,borderColor:{from:"color",modifiers:[]},borderOpacity:.6,labelColor:"white",currentPartSizeExtension:5,currentBorderWidth:15,motionConfig:"gentle",direction:"vertical",tooltip:({part:M})=>d.jsxs("div",{style:{background:p?"black":"white",color:p?"white":"black",padding:"5px 10px",borderRadius:"5px",boxShadow:"0px 2px 5px rgba(0,0,0,0.2)"},children:[d.jsx("strong",{children:M.data.label}),": ",M.data.value]})})}):d.jsx("div",{children:"Carregando visualização..."})})]})},qm=()=>{const{isCaption:s}=Td(),{isTextDark:h}=bd(),{dataOrder:o}=Ja(),f=Sf(),p=Ed(),[T,A]=at.useState([]),[j,O]=at.useState(!1);at.useEffect(()=>{var q,K;const M=((q=f==null?void 0:f.data)==null?void 0:q.length)>0,C=((K=p==null?void 0:p.data)==null?void 0:K.length)>0;if(O(M&&C),!M||!C){A([]);return}const R={};p.data.forEach(et=>{R[et.id]=et.color});const B=f.data.map(et=>({id:et.name,value:et.value,label:et.name,color:R[et.id]||"#ccc"}));A(B)},[f==null?void 0:f.data,p==null?void 0:p.data,o]);const U={labels:{text:{fill:"white",fontWeight:"bold",stroke:"black",strokeWidth:2,paintOrder:"stroke",strokeLinejoin:"round"}},tooltip:{container:{background:h?"black":"white",color:h?"white":"black",fontSize:12,borderRadius:5,boxShadow:"0px 2px 5px rgba(0,0,0,0.2)",padding:"5px 10px"}}};return d.jsxs(d.Fragment,{children:[d.jsx("style",{children:Rm}),d.jsx("div",{className:"flex justify-center items-center w-full h-full",children:j?d.jsx("div",{className:"w-full h-full flex justify-center items-center",children:d.jsx(vm,{data:T,margin:{top:35,right:20,bottom:35,left:20},innerRadius:.5,padAngle:.7,cornerRadius:0,activeOuterRadiusOffset:8,colors:M=>M.data.color,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",.2]]},enableArcLinkLabels:s,arcLabelsTextColor:"white",motionConfig:"wobbly",legends:[],theme:U,tooltip:({datum:M})=>d.jsxs("div",{style:{background:h?"black":"white",color:h?"white":"black",padding:"5px 10px",borderRadius:"5px",boxShadow:"0px 2px 5px rgba(0,0,0,0.2)"},children:[d.jsx("strong",{children:M.label}),": ",M.value]})})}):d.jsx("div",{className:"w-full h-full flex justify-center items-center",children:d.jsx(pd,{chartType:"pie"})})})]})},yf=({isSelected:s,onClick:h,icon:o,label:f,count:p})=>d.jsxs("button",{onClick:h,className:`select-none cursor-pointer flex items-center gap-2 px-4 py-2 rounded-lg transition-all ${s?"bg-[var(--primaria)] text-white shadow-md":"dark:bg-[var(--funil-background)] bg-gray-200 text-[var(--text)] hover:bg-opacity-80"}`,children:[o,f,d.jsx(X.span,{initial:{scale:0},animate:{scale:1},className:"ml-1 text-xs bg-white bg-opacity-20 rounded-full px-2 py-0.5",children:p})]});function Ad(s){return vl({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M10 3a1 1 0 0 1 0 2h-6a1 1 0 1 1 0 -2z"},child:[]},{tag:"path",attr:{d:"M20 3a1 1 0 0 1 0 2h-6a1 1 0 0 1 0 -2z"},child:[]},{tag:"path",attr:{d:"M8 7a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3z"},child:[]},{tag:"path",attr:{d:"M18 7a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-2a3 3 0 0 1 -3 -3v-2a3 3 0 0 1 3 -3z"},child:[]}]})(s)}function gf(s){return vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 9l4 -4l4 4m-4 -4v14"},child:[]},{tag:"path",attr:{d:"M21 15l-4 4l-4 -4m4 4v-14"},child:[]}]})(s)}function Lm(s){return vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M13.5 19h-8.5a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v1.5"},child:[]},{tag:"path",attr:{d:"M21 15h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"},child:[]},{tag:"path",attr:{d:"M19 21v1m0 -8v1"},child:[]}]})(s)}function zd(s){return vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 4l6 0"},child:[]},{tag:"path",attr:{d:"M14 4l6 0"},child:[]},{tag:"path",attr:{d:"M4 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"},child:[]},{tag:"path",attr:{d:"M14 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"},child:[]}]})(s)}function x1(s){return vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z"},child:[]},{tag:"path",attr:{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z"},child:[]},{tag:"path",attr:{d:"M3 21l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M18.5 5.5l2.5 -2.5"},child:[]},{tag:"path",attr:{d:"M10 11l-2 2"},child:[]},{tag:"path",attr:{d:"M13 14l-2 2"},child:[]}]})(s)}function Vm(s){return vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16l-3 -2l-2 2l-2 -2l-2 2l-2 -2l-3 2"},child:[]},{tag:"path",attr:{d:"M14.8 8a2 2 0 0 0 -1.8 -1h-2a2 2 0 1 0 0 4h2a2 2 0 1 1 0 4h-2a2 2 0 0 1 -1.8 -1"},child:[]},{tag:"path",attr:{d:"M12 6v10"},child:[]}]})(s)}function Ym(s){return vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 6l7 0"},child:[]},{tag:"path",attr:{d:"M4 12l7 0"},child:[]},{tag:"path",attr:{d:"M4 18l9 0"},child:[]},{tag:"path",attr:{d:"M15 9l3 -3l3 3"},child:[]},{tag:"path",attr:{d:"M18 6l0 12"},child:[]}]})(s)}function Xm(s){return vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 6l9 0"},child:[]},{tag:"path",attr:{d:"M4 12l7 0"},child:[]},{tag:"path",attr:{d:"M4 18l7 0"},child:[]},{tag:"path",attr:{d:"M15 15l3 3l3 -3"},child:[]},{tag:"path",attr:{d:"M18 6l0 12"},child:[]}]})(s)}function T1(s){return vl({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 19c3.333 -2 5 -4 5 -6c0 -3 -1 -3 -2 -3s-2.032 1.085 -2 3c.034 2.048 1.658 2.877 2.5 4c1.5 2 2.5 2.5 3.5 1c.667 -1 1.167 -1.833 1.5 -2.5c1 2.333 2.333 3.5 4 3.5h2.5"},child:[]},{tag:"path",attr:{d:"M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"},child:[]},{tag:"path",attr:{d:"M16 7h4"},child:[]}]})(s)}const Gm=({crm:s,isSelected:h,onClick:o})=>d.jsx("div",{onClick:o,className:"px-3 py-1.5 cursor-pointer transition-all group",children:d.jsxs("div",{className:"flex items-center justify-between rounded-md px-2 py-0.5 group-hover:bg-[var(--input)]",children:[d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx(Ad,{style:{color:h?"var(--primaria)":s.hexColor},size:16}),d.jsx("span",{className:h?"text-[var(--primaria)] font-medium":"text-[var(--text)]",children:s.name})]}),h&&d.jsx(am,{className:"text-[var(--primaria)]",size:16})]})}),Qm=()=>{var K,et,Et;const{selectedCrmType:s,setSelectedCrmType:h,crmOptions:o,userTabsOptions:f,selectedCrm:p,setSelectedCrm:T,userLabelsOptions:A}=Ht(),{language:j}=fl(),{isBusiness:O}=hd(),[U,M]=at.useState(!1),C=()=>M(!U),R=()=>M(!1),B=at.useRef(null);at.useEffect(()=>{s==="traditional"&&o.length>0&&!p&&T(o[0])},[s,o,p,T]),at.useEffect(()=>{const k=At=>{B.current&&!B.current.contains(At.target)&&R()};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[R]);const q=at.useCallback(k=>{h(k),k==="traditional"&&o.length>0&&(!p||s!=="traditional")&&T(o[0])},[h,o,p,s,T]);return d.jsxs("div",{className:"p-4 border-b border-[var(--border)] bg-[var(--card-background)]",children:[d.jsxs("div",{className:"flex gap-2 justify-center",children:[d.jsx(yf,{isSelected:s==="traditional",onClick:()=>q("traditional"),icon:d.jsx(zd,{}),label:"CRM",count:o.length}),d.jsx(yf,{isSelected:s==="userTabs",onClick:()=>q("userTabs"),icon:d.jsx(vd,{}),label:j.abas,count:f.length}),O&&d.jsx(yf,{isSelected:s==="labels",onClick:()=>q("labels"),icon:d.jsx(yd,{}),label:j.etiquetas,count:A.length})]}),s==="traditional"&&o.length>0&&d.jsx("div",{className:"mt-4 relative rounded-md bg-[var(--funil-background)] z-[100]",ref:B,children:d.jsxs(X.div,{className:"relative z-[100]",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3},children:[d.jsxs("div",{onClick:C,className:"w-full rounded-lg p-2 border border-[var(--border)] bg-gray-200 dark:bg-[var(--funil-background)] text-[var(--text)] flex items-center justify-between cursor-pointer hover:border-[var(--primaria)] transition-all shadow-sm hover:shadow select-none",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"bg-[var(--primaria)] p-1.5 rounded text-white",children:d.jsx(Ad,{size:16})}),d.jsx("span",{className:`font-medium ${p?"":"text-[var(--text-secondary)]"}`,children:p?p.name:j.selecioneCRM})]}),d.jsx(X.div,{animate:{rotate:U?180:0},transition:{duration:.2},children:d.jsx(em,{className:"text-[var(--text-secondary)]"})})]}),d.jsx(Fn,{children:U&&d.jsx(X.div,{className:"fixed left-0 right-0 w-full mt-1 bg-gray-100 dark:bg-[var(--card-background)] border border-[var(--border)] rounded-lg shadow-lg z-[9999] overflow-y-auto max-h-64 py-2",style:{width:(K=B.current)==null?void 0:K.clientWidth,left:(et=B.current)==null?void 0:et.getBoundingClientRect().left,top:((Et=B.current)==null?void 0:Et.getBoundingClientRect().bottom)+window.scrollY},initial:{opacity:0,y:-10,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,y:-10,height:0},transition:{duration:.2},children:o.map(k=>d.jsx(Gm,{crm:k,isSelected:(p==null?void 0:p.id)===k.id,onClick:()=>{T(k),R()}},k.id))})})]})})]})};function Re(...s){return bm(pm(s))}const Za=at.forwardRef(({className:s,...h},o)=>{const[f,p]=at.useState("#e9e9ff");return at.useEffect(()=>{const T=()=>{const j=document.documentElement.getAttribute("data-theme")==="dark";p(j?"#27272a":"#e9e9ff")};T();const A=new MutationObserver(T);return A.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>A.disconnect()},[]),d.jsx("div",{ref:o,style:{border:`1px solid ${f}`},className:Re("rounded-lg bg-card text-card-foreground shadow-sm",s),...h})});Za.displayName="Card";const wa=at.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("flex flex-col space-y-1.5 p-6",s),...h}));wa.displayName="CardHeader";const Ne=at.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("text-2xl font-semibold leading-none tracking-tight",s),...h}));Ne.displayName="CardTitle";const Zm=at.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("text-sm text-muted-foreground",s),...h}));Zm.displayName="CardDescription";const Ka=at.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("p-6 pt-0",s),...h}));Ka.displayName="CardContent";const wm=at.forwardRef(({className:s,...h},o)=>d.jsx("div",{ref:o,className:Re("flex items-center p-6 pt-0",s),...h}));wm.displayName="CardFooter";function Km(s){return vl({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M48 87.2c0 5.8 2 11.4 5.6 15.7l152.2 179.8c3.6 4.3 5.6 9.9 5.6 15.7v107c0 10 5.9 18.8 14.6 22l55 19.8c9.6 3.5 19.6-4.3 19.6-15.3V298.3c0-5.8 2-11.4 5.6-15.7l152.2-179.8c3.6-4.3 5.6-9.9 5.6-15.7 0-12.8-9.6-23.2-21.4-23.2H69.4C57.6 64 48 74.4 48 87.2z"},child:[]}]})(s)}function Jm(s){return vl({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm1 14.915V18h-2v-1.08c-2.339-.367-3-2.002-3-2.92h2c.011.143.159 1 2 1 1.38 0 2-.585 2-1 0-.324 0-1-2-1-3.48 0-4-1.88-4-3 0-1.288 1.029-2.584 3-2.915V6.012h2v1.109c1.734.41 2.4 1.853 2.4 2.879h-1l-1 .018C13.386 9.638 13.185 9 12 9c-1.299 0-2 .516-2 1 0 .374 0 1 2 1 3.48 0 4 1.88 4 3 0 1.288-1.029 2.584-3 2.915z"},child:[]}]})(s)}const km=()=>{const{dataOrder:s,setDataOrder:h}=Ja(),{language:o}=fl(),{isFunnel:f,setFunnel:p}=gd(),{containerVariantsIcons:T,IconsVariants:A,tooltipVariants:j}=va,{isContact:O,setIsContact:U}=Pn(),{isCaption:M,setIsCaption:C}=Td(),[R,B]=at.useState(null),q=()=>{if(s==="original")h("inverted");else if(s==="inverted")h("ascending");else if(s==="ascending")h("descending");else return h("original")},K=()=>{switch(s){case"original":return d.jsx(gf,{});case"ascending":return d.jsx(Ym,{});case"descending":return d.jsx(Xm,{});case"inverted":return d.jsx(gf,{rotate:180});default:return d.jsx(gf,{})}},et=()=>{switch(s){case"original":return o.ordenacaoOriginal;case"ascending":return o.ordenacaoCrescente;case"descending":return o.ordenacaoDecrescente;case"inverted":return o.ordenacaoInvertida;default:return o.ordenacaoOriginal}},Et=[{id:0,name:f?o.modoGraficoCircular:o.modoGraficoFunil,icon:f?d.jsx(um,{size:20}):d.jsx(Km,{size:20}),func:p},{id:1,name:O?o.ordenarPorValor:o.ordenarPorContatos,icon:O?d.jsx(Jm,{}):d.jsx(nm,{}),func:U},...f?[{id:2,name:et(),icon:K(),func:q}]:[],...f?[]:[{id:3,name:M?o.ativarLegendas:o.desativarLegendas,icon:M?d.jsx(im,{}):d.jsx(cm,{}),func:C}]];return d.jsx(X.ul,{className:"flex items-center gap-2 mr-1",variants:T,initial:"initial",animate:"animate",children:Et.map(k=>d.jsxs(X.li,{variants:A,initial:"initial",animate:"animate",whileHover:"hover",whileTap:"tap",onHoverStart:()=>B(k.id),onHoverEnd:()=>B(null),transition:{type:"spring",stiffness:400,damping:17},className:"relative",children:[d.jsx(X.div,{className:"flex dark:bg-[var(--funil-background)] bg-gray-200 hover:text-white items-center justify-center rounded-lg p-2 hover:bg-[var(--primaria)] dark:hover:bg-[var(--primaria)] transition duration-300 cursor-pointer",onClick:k.func,whileHover:{boxShadow:"0px 5px 10px rgba(0, 0, 0, 0.2)"},children:d.jsx(X.div,{animate:{rotate:f&&k.id===0||O&&k.id===1?360:0},transition:{duration:.5},children:k.icon})}),R===k.id&&d.jsx(X.div,{className:"absolute -bottom-8 left-1/2 transform -translate-x-1/2 bg-[var(--primaria)] text-white px-2 py-1 rounded text-xs whitespace-nowrap z-10",variants:j,initial:"hidden",animate:"visible",exit:"hidden",transition:{duration:.2},children:k.name})]},k.id))})},Zl=({message:s,animate:h,criar:o,function:f})=>{const{emptyStateVariants:p}=va,{selectedCrmType:T}=Ht();return d.jsxs(X.div,{className:"text-[var(--text)] text-center py-12 rounded-xl border border-dashed border-[var(--border)] bg-[var(--background-alt)]",variants:p,children:[d.jsx(X.div,{initial:h?{y:0}:{rotate:-5},animate:h?{y:-10}:{rotate:5},transition:{duration:h?1.5:2,repeat:1/0,repeatType:"reverse",ease:"easeInOut"},className:"inline-block mb-4",children:T==="labels"?d.jsx(yd,{size:48,className:`mx-auto opacity-60 ${h?"text-[var(--border)]":"text-[var(--primaria)]"}`}):d.jsx(fm,{size:48,className:`mx-auto opacity-60 ${h?"text-[var(--border)]":"text-[var(--primaria)]"}`})}),d.jsx("p",{className:"font-medium",children:s}),o&&d.jsx("p",{className:"font-bold text-[var(--primaria)] cursor-pointer hover:underline",onClick:f,children:o})]})},od=({label:s,index:h,delay:o,hexColor:f})=>{const{selectedCrmType:p}=Ht();return d.jsx(X.div,{style:{backgroundColor:p==="traditional"?f:"var(--primaria)"},className:"text-white flex items-center justify-center text-xs font-medium  bg-[var(--primaria)] px-3 py-1 rounded-md shadow-md whitespace-nowrap overflow-hidden",initial:{opacity:0,x:-10},animate:{opacity:1,x:0,transition:{delay:h*.08+o,duration:.3,ease:"easeOut"}},whileHover:{scale:1.03,boxShadow:"0 4px 12px rgba(0,0,0,0.12)",transition:{duration:.2}},children:d.jsx(X.span,{initial:{opacity:0},animate:{opacity:1,transition:{delay:h*.08+(o+.15),duration:.25}},children:s})})},Wm=({tab:s,index:h,tabColor:o})=>{var q;const{language:f}=fl(),{selectedCrmType:p,getTabValue:T}=Ht(),{itemTabsVariants:A,cardHoverEffect:j}=va,{dataOrder:O}=Ja(),U=K=>K==null?"0,00":K.toLocaleString("pt-BR",{minimumFractionDigits:2}),M=T(s.id),C=((q=s.chats)==null?void 0:q.length)||0,R=()=>p==="userTabs"?s.tag||"":s.name||"",B=()=>p==="userTabs"?d.jsx(vd,{size:24,style:{color:o},className:"drop-shadow-md"}):p==="labels"?d.jsx(sm,{size:24,style:{color:o},className:"drop-shadow-md"}):d.jsx(zd,{size:24,style:{color:o},className:"drop-shadow-md"});return d.jsx(X.li,{variants:A,custom:h,className:"rounded-lg border border-[var(--border)] overflow-hidden backdrop-blur-md shadow-md transition-shadow duration-250 hover:shadow-lg",children:d.jsxs(X.div,{className:"!bg-[var(--card-background)] flex items-center p-4 relative",initial:"rest",whileHover:"hover",variants:j,children:[d.jsx(X.div,{className:"absolute left-0 top-0 bottom-0 w-1.5",style:{backgroundColor:p==="labels"&&s.hexColor||o},layoutId:`color-bar-${s.id}`}),d.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0 pl-2 w-1/2",children:[B(),d.jsx(X.span,{className:"font-medium text-[var(--text)] truncate max-w-[130px]",children:R()})]}),d.jsxs("div",{className:"flex flex-nowrap justify-end ml-auto w-1/2 gap-4",children:[d.jsx("div",{className:"flex-1 min-w-[120px] flex justify-end",children:d.jsx(od,{label:`${f.contacts}: ${C}`,index:h,delay:.3,hexColor:p==="labels"?s.hexColor:void 0})}),d.jsx("div",{className:"flex-1 min-w-[150px] flex justify-end",children:d.jsx(od,{label:`${f.valor}: R$${U(M)}`,index:h,delay:.4,hexColor:p==="labels"?s.hexColor:void 0})})]})]})})},$m=sl((s,h)=>({getActiveTabs:()=>{const{selectedCrmType:o,selectedCrm:f,selectedUserTabs:p,selectedUserLabels:T,userLabelsOptions:A}=Ht.getState();return o==="traditional"?f?f.list||[]:[]:o==="userTabs"?p?p.filter(j=>!j.hide)||[]:[]:o==="labels"?T&&T.length>0?T:A&&A.length>0?A:[]:[]},getTabColor:o=>{const{selectedCrmType:f}=Ht.getState();return f==="traditional"&&"hexColor"in o?o.hexColor||"var(--primaria)":f==="labels"?o.hexColor||"#2196F3":"var(--primaria)"}})),Fm=()=>{const{getActiveTabs:s,getTabColor:h}=$m(),{selectedCrm:o,selectedCrmType:f,crmOptions:p}=Ht(),{containerTabsVariants:T}=va,{language:A}=fl(),j=p.length===0,O=s(),{sortTabs:U}=Pn(),M=U(O);return Pm(f,o,j,O)?Im(f,o,j,A,O):d.jsx("div",{className:"overflow-y-auto",children:d.jsx(X.ul,{className:"p-4 space-y-3 overflow-y-auto",initial:"initial",animate:"animate",exit:"exit",variants:T,children:M.length>0?M.map((C,R)=>d.jsx(Wm,{tab:C,index:R,tabColor:h(C)},C.id)):d.jsx("p",{className:"text-center text-gray-500",children:A.nenhumaAbaDisponivel})})})};function Pm(s,h,o,f){return f.length===0?!0:s==="traditional"?o||!h&&!o:!1}function Im(s,h,o,f,p){const T=()=>chrome.runtime.sendMessage({message:"CRM"});if(p.length===0)switch(s){case"traditional":return d.jsx(Zl,{message:f.nenhumCRMCriado,criar:f.criarCRM,function:T,animate:!0});case"userTabs":return d.jsx(Zl,{message:f.nenhumaAbaPlugin,criar:f.criarAba,function:T,animate:!0});case"labels":return d.jsx(Zl,{message:f.nenhumaEtiqueta,criar:f.verifiqueWhatsAppAbertoOuCrieEtiqueta,animate:!0});default:return d.jsx(Zl,{message:f.nenhumaAbaDisponivel,criar:f.criarCRM,function:T,animate:!0})}switch(s){case"traditional":return h&&o?d.jsx(Zl,{message:f.nenhumaAbaDoCRMSelecionada,criar:f.criarAbaNoCRM,function:T,animate:!0}):o?d.jsx(Zl,{message:f.nenhumCRMCriado,criar:f.criarCRM,function:T,animate:!0}):d.jsx(Zl,{message:f.selecioneCRM,animate:!0});case"userTabs":return d.jsx(Zl,{message:f.nenhumaAbaPlugin,criar:f.criarAba,function:T,animate:!0});case"labels":return d.jsx(Zl,{message:f.nenhumaEtiqueta,criar:f.verifiqueWhatsAppAbertoOuCrieEtiqueta,animate:!0})}return null}function t1(){const{selectedCrmType:s}=Ht(),{language:h}=fl();switch(s){case"traditional":return`${h.listaDeAbas} (CRM)`;case"userTabs":return h.CRM_abasCreate;case"labels":return h.etiquetas;default:return h.listaDeAbas}}const l1=()=>{const{containerTabsVariants:s,titleVariants:h}=va;return d.jsxs(X.div,{className:"p-4 rounded-md bg-gray-200 dark:bg-[var(--funil-background)] select-none flex flex-col h-full",initial:"initial",animate:"animate",exit:"exit",variants:s,children:[d.jsxs(X.h2,{className:"top-0 bg-gray-200 dark:bg-[var(--funil-background)] text-2xl font-bold mb-8 text-[var(--text)] pl-2 border-l-4 border-[var(--primaria)] ml-1 relative z-[10]",variants:h,children:[d.jsx("div",{className:"p-1",children:t1()}),d.jsx(X.div,{className:"absolute bottom-0 left-0 h-0.5 bg-[var(--primaria)]",initial:{width:0},animate:{width:"100%",transition:{delay:.5,duration:.8}}})]}),d.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:d.jsx(Fn,{mode:"wait",children:d.jsx(Fm,{})})})]})},a1=()=>{const{language:s}=fl(),{isFunnel:h}=gd(),{dataOrder:o}=Ja(),{chartContainerVariants:f,graphTransitionVariants:p}=va;return d.jsxs("div",{className:"grid gap-4 grid-cols-1 min-[1080px]:grid-cols-2 min-h-[18rem] max-h-[36rem]",children:[d.jsx(X.div,{className:"h-full",variants:f,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15,ease:"easeOut"},children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow h-full flex flex-col min-h-72 max-h-[36rem] rounded-lg ",children:[d.jsx(wa,{className:"flex items-center justify-between",children:d.jsx("div",{className:"flex items-center gap-2",children:d.jsxs(Ne,{className:"select-none text-xl font-semibold text-[var(--text)] gap-4 flex justify-between items-center",children:[h?s.funilVendas:s.graficoVendas,d.jsx("div",{className:"ml-4",children:d.jsx(km,{})})]})})}),d.jsx(Ka,{className:"flex-1 mt-5 relative bg-[var(--card-background)] select-none min-h-72 max-h-[36rem] overflow-hidden rounded-lg",children:d.jsx(Fn,{mode:"wait",children:d.jsx(X.div,{initial:"enter",animate:"center",exit:"exit",variants:p,transition:{type:"spring",stiffness:400,damping:30,duration:.15},className:"absolute inset-0",style:{transformOrigin:"center center",perspective:"1000px"},children:h?d.jsx(X.div,{className:"w-full h-full",initial:{rotateY:-90},animate:{rotateY:0},exit:{rotateY:90},transition:{duration:.1},children:d.jsx(Bm,{})}):d.jsx(X.div,{className:"w-full h-full overflow-hidden",initial:{rotateY:-90},animate:{rotateY:0},exit:{rotateY:90},transition:{duration:.1},children:d.jsx(qm,{})})},h?"funnel":"pie")})})]})}),d.jsx(X.div,{className:"h-full",variants:f,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.15,ease:"easeOut",delay:.05},children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow flex flex-col h-[36rem] rounded-lg",children:[d.jsx(wa,{children:d.jsx(Qm,{})}),d.jsx(Ka,{className:"flex-1 overflow-hidden",children:d.jsx("div",{className:"w-full h-full overflow-y-auto",children:d.jsx(l1,{})})})]})})]})};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e1=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Md=(...s)=>s.filter((h,o,f)=>!!h&&f.indexOf(h)===o).join(" ");/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var u1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n1=at.forwardRef(({color:s="currentColor",size:h=24,strokeWidth:o=2,absoluteStrokeWidth:f,className:p="",children:T,iconNode:A,...j},O)=>at.createElement("svg",{ref:O,...u1,width:h,height:h,stroke:s,strokeWidth:f?Number(o)*24/Number(h):o,className:Md("lucide",p),...j},[...A.map(([U,M])=>at.createElement(U,M)),...Array.isArray(T)?T:[T]]));/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dd=(s,h)=>{const o=at.forwardRef(({className:f,...p},T)=>at.createElement(n1,{ref:T,iconNode:h,className:Md(`lucide-${e1(s)}`,f),...p}));return o.displayName=`${s}`,o};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i1=Dd("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c1=Dd("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Od={getCombinedData:()=>{const s=getComputedStyle(document.documentElement).getPropertyValue("--primaria").trim(),h=Ht.getState(),o=fl.getState().language,f={"CRM Tradicional":"#FF6384","Abas de Usuário":s,Etiquetas:"#FFCE56"},{crmOptions:p,userTabsOptions:T,userLabelsOptions:A}=h;h.calculateAllCRMValues();const j=Ht.getState().calculatedValues,O=p.flatMap(C=>C.list.map(R=>{var K,et;const B=((K=j.crm)==null?void 0:K[R.id])??(R.profileCalculated&&typeof R.profile=="number"?R.profile:0),q=((et=R.chats)==null?void 0:et.length)??0;return{id:R.id,name:R.name||`${C.name} - ${R.id}`,value:B,color:R.hexColor||f["CRM Tradicional"],type:"CRM Tradicional",contacts:q,typeName:o.abas}})),U=(T||[]).map(C=>{var q;const R=((q=j.userTabs)==null?void 0:q[C.id])??(C.profileCalculated&&typeof C.profile=="number"?C.profile:0),B=Array.isArray(C.chats)?C.chats.length:0;return{id:C.id,name:C.tag||`CRM ${C.id}`,value:R,color:f["Abas de Usuário"],type:"Abas de Usuário",contacts:B,typeName:o.abas}}),M=(A||[]).map(C=>{var q;const R=((q=j.labels)==null?void 0:q[C.id])??(C.profileCalculated&&typeof C.profile=="number"?C.profile:0),B=Array.isArray(C.chats)?C.chats.length:0;return{id:C.id,name:C.name||`Tag ${C.id}`,value:R,color:C.hexColor||f.Etiquetas,type:"Etiquetas",contacts:B,typeName:o.etiquetas}});return{crmData:O,userTabsData:U,labelsData:M}},exportToExcel:async()=>{var h;const{language:s}=fl.getState();try{const{crmData:o,userTabsData:f,labelsData:p}=Od.getCombinedData(),T=getComputedStyle(document.documentElement).getPropertyValue("--primaria").trim(),j=(await bf.post(`${md.backend_utils}api/XLSX/exportFunil`,{crmData:o,userTabsData:f,labelsData:p,language:s,primaryColor:T},{headers:{"Content-Type":"application/json"}})).data;if(!j.success)throw new Error(j.error||"Erro ao exportar dados");const O=atob(j.XLSXbase64),U=Array.from(O).map(q=>q.charCodeAt(0)),M=new Uint8Array(U),C=new Blob([M],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),R=window.URL.createObjectURL(C),B=document.createElement("a");return B.href=R,B.download=j.filename,B.click(),window.URL.revokeObjectURL(R),nd({type:"Success",message:s.funnilExport,position:"top-right"}),!0}catch(o){return nd({type:"Error",message:s.funnilExportError,position:"top-right"}),bf.isAxiosError(o)?console.error("[exportToExcel] Erro na API:",((h=o.response)==null?void 0:h.data)||o.message):console.error("[exportToExcel] Erro ao exportar:",o),!1}}},f1=()=>{const[s,h]=at.useState(!1),[o,f]=at.useState(!1),{language:p}=fl(),T=async()=>{h(!0);try{await Od.exportToExcel()?(h(!1),f(!0),setTimeout(()=>{f(!1)},2e3)):h(!1)}catch(A){console.error("Export failed:",A),h(!1)}};return d.jsxs("button",{onClick:T,disabled:s,className:`relative flex items-center gap-2 px-4 py-2 rounded-lg bg-[var(--primaria)]  text-white font-medium transition-all duration-500 ease-in-out  hover:bg-[var(--terciaria)] hover:scale-105 active:scale-95 disabled:opacity-75 disabled:cursor-not-allowed disabled:hover:scale-100 select-none ${s?"scale-95":""} ${o?"scale-105":""} `,children:[d.jsxs("div",{className:"relative w-5 h-5",children:[d.jsx(i1,{className:`absolute transition-all duration-500 ease-[cubic-bezier(0.34,1.56,0.64,1)] ${s?"translate-x-2 -translate-y-2 opacity-0":"translate-x-0 translate-y-0"} ${o?"opacity-0 scale-0 rotate-45":"scale-100 rotate-0"} `}),d.jsx(c1,{className:`absolute transition-all duration-500 ease-[cubic-bezier(0.34,1.56,0.64,1)] ${o?"opacity-100 scale-100 rotate-0":"opacity-0 scale-0 -rotate-45"} `})]}),d.jsx("span",{className:`transition-all duration-300 ease-in-out ${s?"opacity-75":""} ${o?"scale-105":""}`,children:o?p.exportado:s?p.exportando:p.exportarParaExcel})]})},s1=()=>{const{language:s}=fl(),{cardVariants:h,numberVariants:o}=va,{totalFormatted:f,averageFormatted:p,taxaConversaoPorContato:T,contacts:A}=Sf();return d.jsxs("div",{className:"select-none grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[d.jsx(X.div,{variants:h,children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",children:[d.jsx(wa,{className:"pb-2",children:d.jsxs(Ne,{className:"text-sm font-medium text-[var(--text)] flex justify-between items-center",children:[s.contatos," ",d.jsx(rm,{className:"text-[var(--primaria)] ml-2 text-xl"})]})}),d.jsx(Ka,{children:d.jsx(X.div,{variants:o,className:"text-2xl font-bold text-[var(--text)]",children:A})})]})}),d.jsx(X.div,{variants:h,children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",children:[d.jsx(wa,{className:"pb-2",children:d.jsxs(Ne,{className:"text-sm font-medium text-[var(--text)] flex justify-between items-center",children:[s.taxaConversao," ",d.jsx(om,{className:"text-[var(--primaria)] ml-2 text-xl"})]})}),d.jsx(Ka,{children:d.jsx(X.div,{variants:o,className:"text-2xl font-bold text-[var(--text)]",children:T})})]})}),d.jsx(X.div,{variants:h,children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",children:[d.jsx(wa,{className:"pb-2",children:d.jsxs(Ne,{className:"text-sm font-medium text-[var(--text)] flex justify-between items-center",children:[s.receitaMediaAba," ",d.jsx(Lm,{className:"text-[var(--primaria)] ml-2 text-xl"})]})}),d.jsx(Ka,{children:d.jsx(X.div,{variants:o,className:"text-2xl font-bold text-[var(--text)]",children:p})})]})}),d.jsx(X.div,{variants:h,children:d.jsxs(Za,{className:"border border-gray-300 dark:border-zinc-800 bg-[var(--card-background)] shadow-lg hover:shadow-xl transition-shadow",children:[d.jsx(wa,{className:"pb-2",children:d.jsxs(Ne,{className:"text-sm font-medium text-[var(--text)] flex justify-between items-center",children:[s.receitaTotal," ",d.jsx(Vm,{className:"text-[var(--primaria)] ml-2 text-xl"})]})}),d.jsx(Ka,{children:d.jsx(X.div,{variants:o,className:"text-2xl font-bold text-[var(--text)]",children:f})})]})})]})},r1=()=>(at.useEffect(()=>{Hm()},[]),d.jsxs(d.Fragment,{children:[d.jsx(dm,{}),d.jsx("div",{className:"h-full overflow-y-auto",children:d.jsx("div",{className:"p-3 bg-[var(--funil-background)] min-h-full flex flex-col",children:d.jsxs(X.div,{className:"max-w-7xl mx-auto w-full flex-1 flex flex-col",initial:"hidden",animate:"visible",variants:{visible:{transition:{staggerChildren:.1}}},children:[d.jsx("div",{className:"flex justify-end pb-4",children:d.jsx(f1,{})}),d.jsx("div",{className:"pb-4",children:d.jsx(s1,{})}),d.jsx(d.Fragment,{children:d.jsx(a1,{})})]})})})]})),o1=()=>{const{whatsappOpen:s}=hd(),{language:h}=fl();return s?d.jsx(r1,{}):d.jsx(hm,{language:h})},jd=()=>{const{label:s}=pf.getState();if(s.nameID.length===0)setTimeout(jd,350);else{const h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.href=chrome.runtime.getURL(`label/css/${s.nameID}.css`),document.head.appendChild(h),document.querySelector("#title").innerHTML="Funil CRM",(()=>{const o=document.querySelector("#app");if(!o)throw new Error("Can not find #app");Cm.createRoot(o).render(d.jsx(o1,{}))})()}};jd();export{T1 as T,x1 as a,Dd as c};
