@danhachuel/prodmaker 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/MANUAL-INSTALACAO.md +6 -0
- package/THIRD-PARTY-NOTICES.md +8 -0
- package/app/api/__init__.py +1 -0
- package/app/api/infoprodutos.py +141 -0
- package/app/api/llm.py +52 -0
- package/app/main.py +50 -87
- package/app/services/__init__.py +1 -0
- package/app/services/database.py +61 -0
- package/app/services/gamma.py +64 -0
- package/app/services/llm.py +183 -0
- package/app/services/pdf.py +37 -0
- package/app/services/store.py +60 -0
- package/frontend/dist/assets/index-BMQemvVJ.js +67 -0
- package/frontend/dist/assets/index-DZBtvZhA.css +1 -0
- package/frontend/dist/index.html +2 -2
- package/package.json +1 -1
- package/requirements.txt +7 -1
- package/scripts/cli.mjs +7 -6
- package/seed/prompts/analise-produto.md +22 -0
- package/frontend/dist/assets/index-COSPz2F9.css +0 -1
- package/frontend/dist/assets/index-CoHrpz8h.js +0 -67
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
function td(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const i=Object.getOwnPropertyDescriptor(r,l);i&&Object.defineProperty(e,l,i.get?i:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ea={exports:{}},xl={},Na={exports:{}},O={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var ur=Symbol.for("react.element"),rd=Symbol.for("react.portal"),ld=Symbol.for("react.fragment"),id=Symbol.for("react.strict_mode"),od=Symbol.for("react.profiler"),sd=Symbol.for("react.provider"),ad=Symbol.for("react.context"),ud=Symbol.for("react.forward_ref"),cd=Symbol.for("react.suspense"),dd=Symbol.for("react.memo"),fd=Symbol.for("react.lazy"),ls=Symbol.iterator;function pd(e){return e===null||typeof e!="object"?null:(e=ls&&e[ls]||e["@@iterator"],typeof e=="function"?e:null)}var Pa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_a=Object.assign,Ta={};function gn(e,t,n){this.props=e,this.context=t,this.refs=Ta,this.updater=n||Pa}gn.prototype.isReactComponent={};gn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};gn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function La(){}La.prototype=gn.prototype;function so(e,t,n){this.props=e,this.context=t,this.refs=Ta,this.updater=n||Pa}var ao=so.prototype=new La;ao.constructor=so;_a(ao,gn.prototype);ao.isPureReactComponent=!0;var is=Array.isArray,za=Object.prototype.hasOwnProperty,uo={current:null},Ra={key:!0,ref:!0,__self:!0,__source:!0};function Aa(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)za.call(t,r)&&!Ra.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:ur,type:e,key:i,ref:o,props:l,_owner:uo.current}}function md(e,t){return{$$typeof:ur,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function co(e){return typeof e=="object"&&e!==null&&e.$$typeof===ur}function hd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var os=/\/+/g;function $l(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hd(""+e.key):t.toString(36)}function Mr(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ur:case rd:o=!0}}if(o)return o=e,l=l(o),e=r===""?"."+$l(o,0):r,is(l)?(n="",e!=null&&(n=e.replace(os,"$&/")+"/"),Mr(l,t,n,"",function(c){return c})):l!=null&&(co(l)&&(l=md(l,n+(!l.key||o&&o.key===l.key?"":(""+l.key).replace(os,"$&/")+"/")+e)),t.push(l)),1;if(o=0,r=r===""?".":r+":",is(e))for(var a=0;a<e.length;a++){i=e[a];var u=r+$l(i,a);o+=Mr(i,t,n,u,l)}else if(u=pd(e),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=r+$l(i,a++),o+=Mr(i,t,n,u,l);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function wr(e,t,n){if(e==null)return e;var r=[],l=0;return Mr(e,r,"","",function(i){return t.call(n,i,l++)}),r}function vd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var he={current:null},Fr={transition:null},gd={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:Fr,ReactCurrentOwner:uo};function Ia(){throw Error("act(...) is not supported in production builds of React.")}O.Children={map:wr,forEach:function(e,t,n){wr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wr(e,function(){t++}),t},toArray:function(e){return wr(e,function(t){return t})||[]},only:function(e){if(!co(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};O.Component=gn;O.Fragment=ld;O.Profiler=od;O.PureComponent=so;O.StrictMode=id;O.Suspense=cd;O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gd;O.act=Ia;O.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=_a({},e.props),l=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=uo.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)za.call(t,u)&&!Ra.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:ur,type:e.type,key:l,ref:i,props:r,_owner:o}};O.createContext=function(e){return e={$$typeof:ad,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sd,_context:e},e.Consumer=e};O.createElement=Aa;O.createFactory=function(e){var t=Aa.bind(null,e);return t.type=e,t};O.createRef=function(){return{current:null}};O.forwardRef=function(e){return{$$typeof:ud,render:e}};O.isValidElement=co;O.lazy=function(e){return{$$typeof:fd,_payload:{_status:-1,_result:e},_init:vd}};O.memo=function(e,t){return{$$typeof:dd,type:e,compare:t===void 0?null:t}};O.startTransition=function(e){var t=Fr.transition;Fr.transition={};try{e()}finally{Fr.transition=t}};O.unstable_act=Ia;O.useCallback=function(e,t){return he.current.useCallback(e,t)};O.useContext=function(e){return he.current.useContext(e)};O.useDebugValue=function(){};O.useDeferredValue=function(e){return he.current.useDeferredValue(e)};O.useEffect=function(e,t){return he.current.useEffect(e,t)};O.useId=function(){return he.current.useId()};O.useImperativeHandle=function(e,t,n){return he.current.useImperativeHandle(e,t,n)};O.useInsertionEffect=function(e,t){return he.current.useInsertionEffect(e,t)};O.useLayoutEffect=function(e,t){return he.current.useLayoutEffect(e,t)};O.useMemo=function(e,t){return he.current.useMemo(e,t)};O.useReducer=function(e,t,n){return he.current.useReducer(e,t,n)};O.useRef=function(e){return he.current.useRef(e)};O.useState=function(e){return he.current.useState(e)};O.useSyncExternalStore=function(e,t,n){return he.current.useSyncExternalStore(e,t,n)};O.useTransition=function(){return he.current.useTransition()};O.version="18.3.1";Na.exports=O;var x=Na.exports;const Oa=nd(x),yd=td({__proto__:null,default:Oa},[x]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var xd=x,wd=Symbol.for("react.element"),kd=Symbol.for("react.fragment"),Sd=Object.prototype.hasOwnProperty,jd=xd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cd={key:!0,ref:!0,__self:!0,__source:!0};function Da(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Sd.call(t,r)&&!Cd.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:wd,type:e,key:i,ref:o,props:l,_owner:jd.current}}xl.Fragment=kd;xl.jsx=Da;xl.jsxs=Da;Ea.exports=xl;var s=Ea.exports,Ma={exports:{}},Pe={},Fa={exports:{}},$a={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(L,A){var I=L.length;L.push(A);e:for(;0<I;){var X=I-1>>>1,re=L[X];if(0<l(re,A))L[X]=A,L[I]=re,I=X;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var A=L[0],I=L.pop();if(I!==A){L[0]=I;e:for(var X=0,re=L.length,yr=re>>>1;X<yr;){var Nt=2*(X+1)-1,Fl=L[Nt],Pt=Nt+1,xr=L[Pt];if(0>l(Fl,I))Pt<re&&0>l(xr,Fl)?(L[X]=xr,L[Pt]=I,X=Pt):(L[X]=Fl,L[Nt]=I,X=Nt);else if(Pt<re&&0>l(xr,I))L[X]=xr,L[Pt]=I,X=Pt;else break e}}return A}function l(L,A){var I=L.sortIndex-A.sortIndex;return I!==0?I:L.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],c=[],m=1,h=null,p=3,g=!1,w=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(L){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=L)r(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function k(L){if(y=!1,v(L),!w)if(n(u)!==null)w=!0,_(E);else{var A=n(c);A!==null&&$(k,A.startTime-L)}}function E(L,A){w=!1,y&&(y=!1,f(z),z=-1),g=!0;var I=p;try{for(v(A),h=n(u);h!==null&&(!(h.expirationTime>A)||L&&!K());){var X=h.callback;if(typeof X=="function"){h.callback=null,p=h.priorityLevel;var re=X(h.expirationTime<=A);A=e.unstable_now(),typeof re=="function"?h.callback=re:h===n(u)&&r(u),v(A)}else r(u);h=n(u)}if(h!==null)var yr=!0;else{var Nt=n(c);Nt!==null&&$(k,Nt.startTime-A),yr=!1}return yr}finally{h=null,p=I,g=!1}}var T=!1,P=null,z=-1,S=5,R=-1;function K(){return!(e.unstable_now()-R<S)}function Oe(){if(P!==null){var L=e.unstable_now();R=L;var A=!0;try{A=P(!0,L)}finally{A?Et():(T=!1,P=null)}}else T=!1}var Et;if(typeof d=="function")Et=function(){d(Oe)};else if(typeof MessageChannel<"u"){var gr=new MessageChannel,Ml=gr.port2;gr.port1.onmessage=Oe,Et=function(){Ml.postMessage(null)}}else Et=function(){C(Oe,0)};function _(L){P=L,T||(T=!0,Et())}function $(L,A){z=C(function(){L(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){w||g||(w=!0,_(E))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(L){switch(p){case 1:case 2:case 3:var A=3;break;default:A=p}var I=p;p=A;try{return L()}finally{p=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,A){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var I=p;p=L;try{return A()}finally{p=I}},e.unstable_scheduleCallback=function(L,A,I){var X=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?X+I:X):I=X,L){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=I+re,L={id:m++,callback:A,priorityLevel:L,startTime:I,expirationTime:re,sortIndex:-1},I>X?(L.sortIndex=I,t(c,L),n(u)===null&&L===n(c)&&(y?(f(z),z=-1):y=!0,$(k,I-X))):(L.sortIndex=re,t(u,L),w||g||(w=!0,_(E))),L},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(L){var A=p;return function(){var I=p;p=A;try{return L.apply(this,arguments)}finally{p=I}}}})($a);Fa.exports=$a;var Ed=Fa.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Nd=x,Ne=Ed;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ua=new Set,Wn={};function Bt(e,t){cn(e,t),cn(e+"Capture",t)}function cn(e,t){for(Wn[e]=t,e=0;e<t.length;e++)Ua.add(t[e])}var be=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fi=Object.prototype.hasOwnProperty,Pd=/^[: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]*$/,ss={},as={};function _d(e){return fi.call(as,e)?!0:fi.call(ss,e)?!1:Pd.test(e)?as[e]=!0:(ss[e]=!0,!1)}function Td(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ld(e,t,n,r){if(t===null||typeof t>"u"||Td(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ve(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ae[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ae[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ae[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ae[e]=new ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ae[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ae[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ae[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ae[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ae[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var fo=/[\-:]([a-z])/g;function po(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fo,po);ae[t]=new ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fo,po);ae[t]=new ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fo,po);ae[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ae[e]=new ve(e,1,!1,e.toLowerCase(),null,!1,!1)});ae.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ae[e]=new ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function mo(e,t,n,r){var l=ae.hasOwnProperty(t)?ae[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ld(t,n,l,r)&&(n=null),r||l===null?_d(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var rt=Nd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,kr=Symbol.for("react.element"),Qt=Symbol.for("react.portal"),Gt=Symbol.for("react.fragment"),ho=Symbol.for("react.strict_mode"),pi=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Va=Symbol.for("react.context"),vo=Symbol.for("react.forward_ref"),mi=Symbol.for("react.suspense"),hi=Symbol.for("react.suspense_list"),go=Symbol.for("react.memo"),it=Symbol.for("react.lazy"),Wa=Symbol.for("react.offscreen"),us=Symbol.iterator;function Sn(e){return e===null||typeof e!="object"?null:(e=us&&e[us]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,Ul;function Ln(e){if(Ul===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ul=t&&t[1]||""}return`
|
|
34
|
+
`+Ul+e}var Bl=!1;function Vl(e,t){if(!e||Bl)return"";Bl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
|
|
35
|
+
`),i=r.stack.split(`
|
|
36
|
+
`),o=l.length-1,a=i.length-1;1<=o&&0<=a&&l[o]!==i[a];)a--;for(;1<=o&&0<=a;o--,a--)if(l[o]!==i[a]){if(o!==1||a!==1)do if(o--,a--,0>a||l[o]!==i[a]){var u=`
|
|
37
|
+
`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Bl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ln(e):""}function zd(e){switch(e.tag){case 5:return Ln(e.type);case 16:return Ln("Lazy");case 13:return Ln("Suspense");case 19:return Ln("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function vi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Gt:return"Fragment";case Qt:return"Portal";case pi:return"Profiler";case ho:return"StrictMode";case mi:return"Suspense";case hi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Va:return(e.displayName||"Context")+".Consumer";case Ba:return(e._context.displayName||"Context")+".Provider";case vo:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case go:return t=e.displayName||null,t!==null?t:vi(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return vi(e(t))}catch{}}return null}function Rd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vi(t);case 8:return t===ho?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ha(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ad(e){var t=Ha(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sr(e){e._valueTracker||(e._valueTracker=Ad(e))}function Qa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ha(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Yr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gi(e,t){var n=t.checked;return Q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function cs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ga(e,t){t=t.checked,t!=null&&mo(e,"checked",t,!1)}function yi(e,t){Ga(e,t);var n=wt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xi(e,t.type,n):t.hasOwnProperty("defaultValue")&&xi(e,t.type,wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ds(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xi(e,t,n){(t!=="number"||Yr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zn=Array.isArray;function rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+wt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function wi(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return Q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fs(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(zn(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:wt(n)}}function Ka(e,t){var n=wt(t.value),r=wt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ps(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xa(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ki(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xa(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var jr,Ya=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(jr=jr||document.createElement("div"),jr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=jr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var In={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Id=["Webkit","ms","Moz","O"];Object.keys(In).forEach(function(e){Id.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),In[t]=In[e]})});function Ja(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||In.hasOwnProperty(e)&&In[e]?(""+t).trim():t+"px"}function qa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ja(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Od=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Si(e,t){if(t){if(Od[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function ji(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ci=null;function yo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ei=null,ln=null,on=null;function ms(e){if(e=fr(e)){if(typeof Ei!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Cl(t),Ei(e.stateNode,e.type,t))}}function Za(e){ln?on?on.push(e):on=[e]:ln=e}function ba(){if(ln){var e=ln,t=on;if(on=ln=null,ms(e),t)for(e=0;e<t.length;e++)ms(t[e])}}function eu(e,t){return e(t)}function tu(){}var Wl=!1;function nu(e,t,n){if(Wl)return e(t,n);Wl=!0;try{return eu(e,t,n)}finally{Wl=!1,(ln!==null||on!==null)&&(tu(),ba())}}function Qn(e,t){var n=e.stateNode;if(n===null)return null;var r=Cl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var Ni=!1;if(be)try{var jn={};Object.defineProperty(jn,"passive",{get:function(){Ni=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch{Ni=!1}function Dd(e,t,n,r,l,i,o,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(m){this.onError(m)}}var On=!1,Jr=null,qr=!1,Pi=null,Md={onError:function(e){On=!0,Jr=e}};function Fd(e,t,n,r,l,i,o,a,u){On=!1,Jr=null,Dd.apply(Md,arguments)}function $d(e,t,n,r,l,i,o,a,u){if(Fd.apply(this,arguments),On){if(On){var c=Jr;On=!1,Jr=null}else throw Error(j(198));qr||(qr=!0,Pi=c)}}function Vt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ru(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hs(e){if(Vt(e)!==e)throw Error(j(188))}function Ud(e){var t=e.alternate;if(!t){if(t=Vt(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return hs(l),e;if(i===r)return hs(l),t;i=i.sibling}throw Error(j(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,a=l.child;a;){if(a===n){o=!0,n=l,r=i;break}if(a===r){o=!0,r=l,n=i;break}a=a.sibling}if(!o){for(a=i.child;a;){if(a===n){o=!0,n=i,r=l;break}if(a===r){o=!0,r=i,n=l;break}a=a.sibling}if(!o)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function lu(e){return e=Ud(e),e!==null?iu(e):null}function iu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=iu(e);if(t!==null)return t;e=e.sibling}return null}var ou=Ne.unstable_scheduleCallback,vs=Ne.unstable_cancelCallback,Bd=Ne.unstable_shouldYield,Vd=Ne.unstable_requestPaint,J=Ne.unstable_now,Wd=Ne.unstable_getCurrentPriorityLevel,xo=Ne.unstable_ImmediatePriority,su=Ne.unstable_UserBlockingPriority,Zr=Ne.unstable_NormalPriority,Hd=Ne.unstable_LowPriority,au=Ne.unstable_IdlePriority,wl=null,Ge=null;function Qd(e){if(Ge&&typeof Ge.onCommitFiberRoot=="function")try{Ge.onCommitFiberRoot(wl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:Xd,Gd=Math.log,Kd=Math.LN2;function Xd(e){return e>>>=0,e===0?32:31-(Gd(e)/Kd|0)|0}var Cr=64,Er=4194304;function Rn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=Rn(a):(i&=o,i!==0&&(r=Rn(i)))}else o=n&~l,o!==0?r=Rn(o):i!==0&&(r=Rn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ue(t),l=1<<n,r|=e[n],t&=~l;return r}function Yd(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Jd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-Ue(i),a=1<<o,u=l[o];u===-1?(!(a&n)||a&r)&&(l[o]=Yd(a,t)):u<=t&&(e.expiredLanes|=a),i&=~a}}function _i(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function uu(){var e=Cr;return Cr<<=1,!(Cr&4194240)&&(Cr=64),e}function Hl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function qd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ue(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function wo(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var M=0;function cu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var du,ko,fu,pu,mu,Ti=!1,Nr=[],ft=null,pt=null,mt=null,Gn=new Map,Kn=new Map,st=[],Zd="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gs(e,t){switch(e){case"focusin":case"focusout":ft=null;break;case"dragenter":case"dragleave":pt=null;break;case"mouseover":case"mouseout":mt=null;break;case"pointerover":case"pointerout":Gn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kn.delete(t.pointerId)}}function Cn(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=fr(t),t!==null&&ko(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function bd(e,t,n,r,l){switch(t){case"focusin":return ft=Cn(ft,e,t,n,r,l),!0;case"dragenter":return pt=Cn(pt,e,t,n,r,l),!0;case"mouseover":return mt=Cn(mt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Gn.set(i,Cn(Gn.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,Kn.set(i,Cn(Kn.get(i)||null,e,t,n,r,l)),!0}return!1}function hu(e){var t=Lt(e.target);if(t!==null){var n=Vt(t);if(n!==null){if(t=n.tag,t===13){if(t=ru(n),t!==null){e.blockedOn=t,mu(e.priority,function(){fu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function $r(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Li(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ci=r,n.target.dispatchEvent(r),Ci=null}else return t=fr(n),t!==null&&ko(t),e.blockedOn=n,!1;t.shift()}return!0}function ys(e,t,n){$r(e)&&n.delete(t)}function ef(){Ti=!1,ft!==null&&$r(ft)&&(ft=null),pt!==null&&$r(pt)&&(pt=null),mt!==null&&$r(mt)&&(mt=null),Gn.forEach(ys),Kn.forEach(ys)}function En(e,t){e.blockedOn===t&&(e.blockedOn=null,Ti||(Ti=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,ef)))}function Xn(e){function t(l){return En(l,e)}if(0<Nr.length){En(Nr[0],e);for(var n=1;n<Nr.length;n++){var r=Nr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ft!==null&&En(ft,e),pt!==null&&En(pt,e),mt!==null&&En(mt,e),Gn.forEach(t),Kn.forEach(t),n=0;n<st.length;n++)r=st[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<st.length&&(n=st[0],n.blockedOn===null);)hu(n),n.blockedOn===null&&st.shift()}var sn=rt.ReactCurrentBatchConfig,el=!0;function tf(e,t,n,r){var l=M,i=sn.transition;sn.transition=null;try{M=1,So(e,t,n,r)}finally{M=l,sn.transition=i}}function nf(e,t,n,r){var l=M,i=sn.transition;sn.transition=null;try{M=4,So(e,t,n,r)}finally{M=l,sn.transition=i}}function So(e,t,n,r){if(el){var l=Li(e,t,n,r);if(l===null)ei(e,t,r,tl,n),gs(e,r);else if(bd(l,e,t,n,r))r.stopPropagation();else if(gs(e,r),t&4&&-1<Zd.indexOf(e)){for(;l!==null;){var i=fr(l);if(i!==null&&du(i),i=Li(e,t,n,r),i===null&&ei(e,t,r,tl,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else ei(e,t,r,null,n)}}var tl=null;function Li(e,t,n,r){if(tl=null,e=yo(r),e=Lt(e),e!==null)if(t=Vt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ru(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return tl=e,null}function vu(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wd()){case xo:return 1;case su:return 4;case Zr:case Hd:return 16;case au:return 536870912;default:return 16}default:return 16}}var ut=null,jo=null,Ur=null;function gu(){if(Ur)return Ur;var e,t=jo,n=t.length,r,l="value"in ut?ut.value:ut.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===l[i-r];r++);return Ur=l.slice(e,1<r?1-r:void 0)}function Br(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pr(){return!0}function xs(){return!1}function _e(e){function t(n,r,l,i,o){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Pr:xs,this.isPropagationStopped=xs,this}return Q(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pr)},persist:function(){},isPersistent:Pr}),t}var yn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Co=_e(yn),dr=Q({},yn,{view:0,detail:0}),rf=_e(dr),Ql,Gl,Nn,kl=Q({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Nn&&(Nn&&e.type==="mousemove"?(Ql=e.screenX-Nn.screenX,Gl=e.screenY-Nn.screenY):Gl=Ql=0,Nn=e),Ql)},movementY:function(e){return"movementY"in e?e.movementY:Gl}}),ws=_e(kl),lf=Q({},kl,{dataTransfer:0}),of=_e(lf),sf=Q({},dr,{relatedTarget:0}),Kl=_e(sf),af=Q({},yn,{animationName:0,elapsedTime:0,pseudoElement:0}),uf=_e(af),cf=Q({},yn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),df=_e(cf),ff=Q({},yn,{data:0}),ks=_e(ff),pf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mf={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"},hf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hf[e])?!!t[e]:!1}function Eo(){return vf}var gf=Q({},dr,{key:function(e){if(e.key){var t=pf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Br(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eo,charCode:function(e){return e.type==="keypress"?Br(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Br(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yf=_e(gf),xf=Q({},kl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ss=_e(xf),wf=Q({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eo}),kf=_e(wf),Sf=Q({},yn,{propertyName:0,elapsedTime:0,pseudoElement:0}),jf=_e(Sf),Cf=Q({},kl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ef=_e(Cf),Nf=[9,13,27,32],No=be&&"CompositionEvent"in window,Dn=null;be&&"documentMode"in document&&(Dn=document.documentMode);var Pf=be&&"TextEvent"in window&&!Dn,yu=be&&(!No||Dn&&8<Dn&&11>=Dn),js=" ",Cs=!1;function xu(e,t){switch(e){case"keyup":return Nf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kt=!1;function _f(e,t){switch(e){case"compositionend":return wu(t);case"keypress":return t.which!==32?null:(Cs=!0,js);case"textInput":return e=t.data,e===js&&Cs?null:e;default:return null}}function Tf(e,t){if(Kt)return e==="compositionend"||!No&&xu(e,t)?(e=gu(),Ur=jo=ut=null,Kt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return yu&&t.locale!=="ko"?null:t.data;default:return null}}var Lf={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 Es(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lf[e.type]:t==="textarea"}function ku(e,t,n,r){Za(r),t=nl(t,"onChange"),0<t.length&&(n=new Co("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mn=null,Yn=null;function zf(e){Ru(e,0)}function Sl(e){var t=Jt(e);if(Qa(t))return e}function Rf(e,t){if(e==="change")return t}var Su=!1;if(be){var Xl;if(be){var Yl="oninput"in document;if(!Yl){var Ns=document.createElement("div");Ns.setAttribute("oninput","return;"),Yl=typeof Ns.oninput=="function"}Xl=Yl}else Xl=!1;Su=Xl&&(!document.documentMode||9<document.documentMode)}function Ps(){Mn&&(Mn.detachEvent("onpropertychange",ju),Yn=Mn=null)}function ju(e){if(e.propertyName==="value"&&Sl(Yn)){var t=[];ku(t,Yn,e,yo(e)),nu(zf,t)}}function Af(e,t,n){e==="focusin"?(Ps(),Mn=t,Yn=n,Mn.attachEvent("onpropertychange",ju)):e==="focusout"&&Ps()}function If(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sl(Yn)}function Of(e,t){if(e==="click")return Sl(t)}function Df(e,t){if(e==="input"||e==="change")return Sl(t)}function Mf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ve=typeof Object.is=="function"?Object.is:Mf;function Jn(e,t){if(Ve(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!fi.call(t,l)||!Ve(e[l],t[l]))return!1}return!0}function _s(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ts(e,t){var n=_s(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_s(n)}}function Cu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Eu(){for(var e=window,t=Yr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yr(e.document)}return t}function Po(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ff(e){var t=Eu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Cu(n.ownerDocument.documentElement,n)){if(r!==null&&Po(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Ts(n,i);var o=Ts(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var $f=be&&"documentMode"in document&&11>=document.documentMode,Xt=null,zi=null,Fn=null,Ri=!1;function Ls(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ri||Xt==null||Xt!==Yr(r)||(r=Xt,"selectionStart"in r&&Po(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fn&&Jn(Fn,r)||(Fn=r,r=nl(zi,"onSelect"),0<r.length&&(t=new Co("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Xt)))}function _r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yt={animationend:_r("Animation","AnimationEnd"),animationiteration:_r("Animation","AnimationIteration"),animationstart:_r("Animation","AnimationStart"),transitionend:_r("Transition","TransitionEnd")},Jl={},Nu={};be&&(Nu=document.createElement("div").style,"AnimationEvent"in window||(delete Yt.animationend.animation,delete Yt.animationiteration.animation,delete Yt.animationstart.animation),"TransitionEvent"in window||delete Yt.transitionend.transition);function jl(e){if(Jl[e])return Jl[e];if(!Yt[e])return e;var t=Yt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Nu)return Jl[e]=t[n];return e}var Pu=jl("animationend"),_u=jl("animationiteration"),Tu=jl("animationstart"),Lu=jl("transitionend"),zu=new Map,zs="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function St(e,t){zu.set(e,t),Bt(t,[e])}for(var ql=0;ql<zs.length;ql++){var Zl=zs[ql],Uf=Zl.toLowerCase(),Bf=Zl[0].toUpperCase()+Zl.slice(1);St(Uf,"on"+Bf)}St(Pu,"onAnimationEnd");St(_u,"onAnimationIteration");St(Tu,"onAnimationStart");St("dblclick","onDoubleClick");St("focusin","onFocus");St("focusout","onBlur");St(Lu,"onTransitionEnd");cn("onMouseEnter",["mouseout","mouseover"]);cn("onMouseLeave",["mouseout","mouseover"]);cn("onPointerEnter",["pointerout","pointerover"]);cn("onPointerLeave",["pointerout","pointerover"]);Bt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Bt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Bt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Bt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Bt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="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(" "),Vf=new Set("cancel close invalid load scroll toggle".split(" ").concat(An));function Rs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,$d(r,t,void 0,e),e.currentTarget=null}function Ru(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==i&&l.isPropagationStopped())break e;Rs(l,a,c),i=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,c=a.currentTarget,a=a.listener,u!==i&&l.isPropagationStopped())break e;Rs(l,a,c),i=u}}}if(qr)throw e=Pi,qr=!1,Pi=null,e}function U(e,t){var n=t[Mi];n===void 0&&(n=t[Mi]=new Set);var r=e+"__bubble";n.has(r)||(Au(t,e,2,!1),n.add(r))}function bl(e,t,n){var r=0;t&&(r|=4),Au(n,e,r,t)}var Tr="_reactListening"+Math.random().toString(36).slice(2);function qn(e){if(!e[Tr]){e[Tr]=!0,Ua.forEach(function(n){n!=="selectionchange"&&(Vf.has(n)||bl(n,!1,e),bl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Tr]||(t[Tr]=!0,bl("selectionchange",!1,t))}}function Au(e,t,n,r){switch(vu(t)){case 1:var l=tf;break;case 4:l=nf;break;default:l=So}n=l.bind(null,t,n,e),l=void 0,!Ni||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function ei(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;o=o.return}for(;a!==null;){if(o=Lt(a),o===null)return;if(u=o.tag,u===5||u===6){r=i=o;continue e}a=a.parentNode}}r=r.return}nu(function(){var c=i,m=yo(n),h=[];e:{var p=zu.get(e);if(p!==void 0){var g=Co,w=e;switch(e){case"keypress":if(Br(n)===0)break e;case"keydown":case"keyup":g=yf;break;case"focusin":w="focus",g=Kl;break;case"focusout":w="blur",g=Kl;break;case"beforeblur":case"afterblur":g=Kl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=ws;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=of;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=kf;break;case Pu:case _u:case Tu:g=uf;break;case Lu:g=jf;break;case"scroll":g=rf;break;case"wheel":g=Ef;break;case"copy":case"cut":case"paste":g=df;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ss}var y=(t&4)!==0,C=!y&&e==="scroll",f=y?p!==null?p+"Capture":null:p;y=[];for(var d=c,v;d!==null;){v=d;var k=v.stateNode;if(v.tag===5&&k!==null&&(v=k,f!==null&&(k=Qn(d,f),k!=null&&y.push(Zn(d,k,v)))),C)break;d=d.return}0<y.length&&(p=new g(p,w,null,n,m),h.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==Ci&&(w=n.relatedTarget||n.fromElement)&&(Lt(w)||w[et]))break e;if((g||p)&&(p=m.window===m?m:(p=m.ownerDocument)?p.defaultView||p.parentWindow:window,g?(w=n.relatedTarget||n.toElement,g=c,w=w?Lt(w):null,w!==null&&(C=Vt(w),w!==C||w.tag!==5&&w.tag!==6)&&(w=null)):(g=null,w=c),g!==w)){if(y=ws,k="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(y=Ss,k="onPointerLeave",f="onPointerEnter",d="pointer"),C=g==null?p:Jt(g),v=w==null?p:Jt(w),p=new y(k,d+"leave",g,n,m),p.target=C,p.relatedTarget=v,k=null,Lt(m)===c&&(y=new y(f,d+"enter",w,n,m),y.target=v,y.relatedTarget=C,k=y),C=k,g&&w)t:{for(y=g,f=w,d=0,v=y;v;v=Ht(v))d++;for(v=0,k=f;k;k=Ht(k))v++;for(;0<d-v;)y=Ht(y),d--;for(;0<v-d;)f=Ht(f),v--;for(;d--;){if(y===f||f!==null&&y===f.alternate)break t;y=Ht(y),f=Ht(f)}y=null}else y=null;g!==null&&As(h,p,g,y,!1),w!==null&&C!==null&&As(h,C,w,y,!0)}}e:{if(p=c?Jt(c):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var E=Rf;else if(Es(p))if(Su)E=Df;else{E=If;var T=Af}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=Of);if(E&&(E=E(e,c))){ku(h,E,n,m);break e}T&&T(e,p,c),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&xi(p,"number",p.value)}switch(T=c?Jt(c):window,e){case"focusin":(Es(T)||T.contentEditable==="true")&&(Xt=T,zi=c,Fn=null);break;case"focusout":Fn=zi=Xt=null;break;case"mousedown":Ri=!0;break;case"contextmenu":case"mouseup":case"dragend":Ri=!1,Ls(h,n,m);break;case"selectionchange":if($f)break;case"keydown":case"keyup":Ls(h,n,m)}var P;if(No)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else Kt?xu(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(yu&&n.locale!=="ko"&&(Kt||z!=="onCompositionStart"?z==="onCompositionEnd"&&Kt&&(P=gu()):(ut=m,jo="value"in ut?ut.value:ut.textContent,Kt=!0)),T=nl(c,z),0<T.length&&(z=new ks(z,e,null,n,m),h.push({event:z,listeners:T}),P?z.data=P:(P=wu(n),P!==null&&(z.data=P)))),(P=Pf?_f(e,n):Tf(e,n))&&(c=nl(c,"onBeforeInput"),0<c.length&&(m=new ks("onBeforeInput","beforeinput",null,n,m),h.push({event:m,listeners:c}),m.data=P))}Ru(h,t)})}function Zn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function nl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=Qn(e,n),i!=null&&r.unshift(Zn(e,i,l)),i=Qn(e,t),i!=null&&r.push(Zn(e,i,l))),e=e.return}return r}function Ht(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function As(e,t,n,r,l){for(var i=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,l?(u=Qn(n,i),u!=null&&o.unshift(Zn(n,u,a))):l||(u=Qn(n,i),u!=null&&o.push(Zn(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Wf=/\r\n?/g,Hf=/\u0000|\uFFFD/g;function Is(e){return(typeof e=="string"?e:""+e).replace(Wf,`
|
|
38
|
+
`).replace(Hf,"")}function Lr(e,t,n){if(t=Is(t),Is(e)!==t&&n)throw Error(j(425))}function rl(){}var Ai=null,Ii=null;function Oi(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Di=typeof setTimeout=="function"?setTimeout:void 0,Qf=typeof clearTimeout=="function"?clearTimeout:void 0,Os=typeof Promise=="function"?Promise:void 0,Gf=typeof queueMicrotask=="function"?queueMicrotask:typeof Os<"u"?function(e){return Os.resolve(null).then(e).catch(Kf)}:Di;function Kf(e){setTimeout(function(){throw e})}function ti(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Xn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Xn(t)}function ht(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ds(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var xn=Math.random().toString(36).slice(2),Qe="__reactFiber$"+xn,bn="__reactProps$"+xn,et="__reactContainer$"+xn,Mi="__reactEvents$"+xn,Xf="__reactListeners$"+xn,Yf="__reactHandles$"+xn;function Lt(e){var t=e[Qe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[et]||n[Qe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ds(e);e!==null;){if(n=e[Qe])return n;e=Ds(e)}return t}e=n,n=e.parentNode}return null}function fr(e){return e=e[Qe]||e[et],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Cl(e){return e[bn]||null}var Fi=[],qt=-1;function jt(e){return{current:e}}function B(e){0>qt||(e.current=Fi[qt],Fi[qt]=null,qt--)}function F(e,t){qt++,Fi[qt]=e.current,e.current=t}var kt={},fe=jt(kt),xe=jt(!1),Dt=kt;function dn(e,t){var n=e.type.contextTypes;if(!n)return kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function we(e){return e=e.childContextTypes,e!=null}function ll(){B(xe),B(fe)}function Ms(e,t,n){if(fe.current!==kt)throw Error(j(168));F(fe,t),F(xe,n)}function Iu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(j(108,Rd(e)||"Unknown",l));return Q({},n,r)}function il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kt,Dt=fe.current,F(fe,e),F(xe,xe.current),!0}function Fs(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Iu(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,B(xe),B(fe),F(fe,e)):B(xe),F(xe,n)}var Ye=null,El=!1,ni=!1;function Ou(e){Ye===null?Ye=[e]:Ye.push(e)}function Jf(e){El=!0,Ou(e)}function Ct(){if(!ni&&Ye!==null){ni=!0;var e=0,t=M;try{var n=Ye;for(M=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ye=null,El=!1}catch(l){throw Ye!==null&&(Ye=Ye.slice(e+1)),ou(xo,Ct),l}finally{M=t,ni=!1}}return null}var Zt=[],bt=0,ol=null,sl=0,Te=[],Le=0,Mt=null,Je=1,qe="";function _t(e,t){Zt[bt++]=sl,Zt[bt++]=ol,ol=e,sl=t}function Du(e,t,n){Te[Le++]=Je,Te[Le++]=qe,Te[Le++]=Mt,Mt=e;var r=Je;e=qe;var l=32-Ue(r)-1;r&=~(1<<l),n+=1;var i=32-Ue(t)+l;if(30<i){var o=l-l%5;i=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Je=1<<32-Ue(t)+l|n<<l|r,qe=i+e}else Je=1<<i|n<<l|r,qe=e}function _o(e){e.return!==null&&(_t(e,1),Du(e,1,0))}function To(e){for(;e===ol;)ol=Zt[--bt],Zt[bt]=null,sl=Zt[--bt],Zt[bt]=null;for(;e===Mt;)Mt=Te[--Le],Te[Le]=null,qe=Te[--Le],Te[Le]=null,Je=Te[--Le],Te[Le]=null}var Ee=null,Ce=null,V=!1,$e=null;function Mu(e,t){var n=ze(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $s(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ee=e,Ce=ht(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ee=e,Ce=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Mt!==null?{id:Je,overflow:qe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ee=e,Ce=null,!0):!1;default:return!1}}function $i(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ui(e){if(V){var t=Ce;if(t){var n=t;if(!$s(e,t)){if($i(e))throw Error(j(418));t=ht(n.nextSibling);var r=Ee;t&&$s(e,t)?Mu(r,n):(e.flags=e.flags&-4097|2,V=!1,Ee=e)}}else{if($i(e))throw Error(j(418));e.flags=e.flags&-4097|2,V=!1,Ee=e}}}function Us(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ee=e}function zr(e){if(e!==Ee)return!1;if(!V)return Us(e),V=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Oi(e.type,e.memoizedProps)),t&&(t=Ce)){if($i(e))throw Fu(),Error(j(418));for(;t;)Mu(e,t),t=ht(t.nextSibling)}if(Us(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ce=ht(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ce=null}}else Ce=Ee?ht(e.stateNode.nextSibling):null;return!0}function Fu(){for(var e=Ce;e;)e=ht(e.nextSibling)}function fn(){Ce=Ee=null,V=!1}function Lo(e){$e===null?$e=[e]:$e.push(e)}var qf=rt.ReactCurrentBatchConfig;function Pn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=l.refs;o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Rr(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bs(e){var t=e._init;return t(e._payload)}function $u(e){function t(f,d){if(e){var v=f.deletions;v===null?(f.deletions=[d],f.flags|=16):v.push(d)}}function n(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function r(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function l(f,d){return f=xt(f,d),f.index=0,f.sibling=null,f}function i(f,d,v){return f.index=v,e?(v=f.alternate,v!==null?(v=v.index,v<d?(f.flags|=2,d):v):(f.flags|=2,d)):(f.flags|=1048576,d)}function o(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,d,v,k){return d===null||d.tag!==6?(d=ui(v,f.mode,k),d.return=f,d):(d=l(d,v),d.return=f,d)}function u(f,d,v,k){var E=v.type;return E===Gt?m(f,d,v.props.children,k,v.key):d!==null&&(d.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===it&&Bs(E)===d.type)?(k=l(d,v.props),k.ref=Pn(f,d,v),k.return=f,k):(k=Xr(v.type,v.key,v.props,null,f.mode,k),k.ref=Pn(f,d,v),k.return=f,k)}function c(f,d,v,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==v.containerInfo||d.stateNode.implementation!==v.implementation?(d=ci(v,f.mode,k),d.return=f,d):(d=l(d,v.children||[]),d.return=f,d)}function m(f,d,v,k,E){return d===null||d.tag!==7?(d=It(v,f.mode,k,E),d.return=f,d):(d=l(d,v),d.return=f,d)}function h(f,d,v){if(typeof d=="string"&&d!==""||typeof d=="number")return d=ui(""+d,f.mode,v),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case kr:return v=Xr(d.type,d.key,d.props,null,f.mode,v),v.ref=Pn(f,null,d),v.return=f,v;case Qt:return d=ci(d,f.mode,v),d.return=f,d;case it:var k=d._init;return h(f,k(d._payload),v)}if(zn(d)||Sn(d))return d=It(d,f.mode,v,null),d.return=f,d;Rr(f,d)}return null}function p(f,d,v,k){var E=d!==null?d.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:a(f,d,""+v,k);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case kr:return v.key===E?u(f,d,v,k):null;case Qt:return v.key===E?c(f,d,v,k):null;case it:return E=v._init,p(f,d,E(v._payload),k)}if(zn(v)||Sn(v))return E!==null?null:m(f,d,v,k,null);Rr(f,v)}return null}function g(f,d,v,k,E){if(typeof k=="string"&&k!==""||typeof k=="number")return f=f.get(v)||null,a(d,f,""+k,E);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case kr:return f=f.get(k.key===null?v:k.key)||null,u(d,f,k,E);case Qt:return f=f.get(k.key===null?v:k.key)||null,c(d,f,k,E);case it:var T=k._init;return g(f,d,v,T(k._payload),E)}if(zn(k)||Sn(k))return f=f.get(v)||null,m(d,f,k,E,null);Rr(d,k)}return null}function w(f,d,v,k){for(var E=null,T=null,P=d,z=d=0,S=null;P!==null&&z<v.length;z++){P.index>z?(S=P,P=null):S=P.sibling;var R=p(f,P,v[z],k);if(R===null){P===null&&(P=S);break}e&&P&&R.alternate===null&&t(f,P),d=i(R,d,z),T===null?E=R:T.sibling=R,T=R,P=S}if(z===v.length)return n(f,P),V&&_t(f,z),E;if(P===null){for(;z<v.length;z++)P=h(f,v[z],k),P!==null&&(d=i(P,d,z),T===null?E=P:T.sibling=P,T=P);return V&&_t(f,z),E}for(P=r(f,P);z<v.length;z++)S=g(P,f,z,v[z],k),S!==null&&(e&&S.alternate!==null&&P.delete(S.key===null?z:S.key),d=i(S,d,z),T===null?E=S:T.sibling=S,T=S);return e&&P.forEach(function(K){return t(f,K)}),V&&_t(f,z),E}function y(f,d,v,k){var E=Sn(v);if(typeof E!="function")throw Error(j(150));if(v=E.call(v),v==null)throw Error(j(151));for(var T=E=null,P=d,z=d=0,S=null,R=v.next();P!==null&&!R.done;z++,R=v.next()){P.index>z?(S=P,P=null):S=P.sibling;var K=p(f,P,R.value,k);if(K===null){P===null&&(P=S);break}e&&P&&K.alternate===null&&t(f,P),d=i(K,d,z),T===null?E=K:T.sibling=K,T=K,P=S}if(R.done)return n(f,P),V&&_t(f,z),E;if(P===null){for(;!R.done;z++,R=v.next())R=h(f,R.value,k),R!==null&&(d=i(R,d,z),T===null?E=R:T.sibling=R,T=R);return V&&_t(f,z),E}for(P=r(f,P);!R.done;z++,R=v.next())R=g(P,f,z,R.value,k),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?z:R.key),d=i(R,d,z),T===null?E=R:T.sibling=R,T=R);return e&&P.forEach(function(Oe){return t(f,Oe)}),V&&_t(f,z),E}function C(f,d,v,k){if(typeof v=="object"&&v!==null&&v.type===Gt&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case kr:e:{for(var E=v.key,T=d;T!==null;){if(T.key===E){if(E=v.type,E===Gt){if(T.tag===7){n(f,T.sibling),d=l(T,v.props.children),d.return=f,f=d;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===it&&Bs(E)===T.type){n(f,T.sibling),d=l(T,v.props),d.ref=Pn(f,T,v),d.return=f,f=d;break e}n(f,T);break}else t(f,T);T=T.sibling}v.type===Gt?(d=It(v.props.children,f.mode,k,v.key),d.return=f,f=d):(k=Xr(v.type,v.key,v.props,null,f.mode,k),k.ref=Pn(f,d,v),k.return=f,f=k)}return o(f);case Qt:e:{for(T=v.key;d!==null;){if(d.key===T)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(f,d.sibling),d=l(d,v.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=ci(v,f.mode,k),d.return=f,f=d}return o(f);case it:return T=v._init,C(f,d,T(v._payload),k)}if(zn(v))return w(f,d,v,k);if(Sn(v))return y(f,d,v,k);Rr(f,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,v),d.return=f,f=d):(n(f,d),d=ui(v,f.mode,k),d.return=f,f=d),o(f)):n(f,d)}return C}var pn=$u(!0),Uu=$u(!1),al=jt(null),ul=null,en=null,zo=null;function Ro(){zo=en=ul=null}function Ao(e){var t=al.current;B(al),e._currentValue=t}function Bi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function an(e,t){ul=e,zo=en=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ye=!0),e.firstContext=null)}function Ae(e){var t=e._currentValue;if(zo!==e)if(e={context:e,memoizedValue:t,next:null},en===null){if(ul===null)throw Error(j(308));en=e,ul.dependencies={lanes:0,firstContext:e}}else en=en.next=e;return t}var zt=null;function Io(e){zt===null?zt=[e]:zt.push(e)}function Bu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Io(t)):(n.next=l.next,l.next=n),t.interleaved=n,tt(e,r)}function tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ot=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ze(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,tt(e,n)}return l=r.interleaved,l===null?(t.next=t,Io(r)):(t.next=l.next,l.next=t),r.interleaved=t,tt(e,n)}function Vr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wo(e,n)}}function Vs(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cl(e,t,n,r){var l=e.updateQueue;ot=!1;var i=l.firstBaseUpdate,o=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var m=e.alternate;m!==null&&(m=m.updateQueue,a=m.lastBaseUpdate,a!==o&&(a===null?m.firstBaseUpdate=c:a.next=c,m.lastBaseUpdate=u))}if(i!==null){var h=l.baseState;o=0,m=c=u=null,a=i;do{var p=a.lane,g=a.eventTime;if((r&p)===p){m!==null&&(m=m.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,y=a;switch(p=t,g=n,y.tag){case 1:if(w=y.payload,typeof w=="function"){h=w.call(g,h,p);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,p=typeof w=="function"?w.call(g,h,p):w,p==null)break e;h=Q({},h,p);break e;case 2:ot=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[a]:p.push(a))}else g={eventTime:g,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},m===null?(c=m=g,u=h):m=m.next=g,o|=p;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;p=a,a=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(m===null&&(u=h),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=m,t=l.shared.interleaved,t!==null){l=t;do o|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);$t|=o,e.lanes=o,e.memoizedState=h}}function Ws(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(j(191,l));l.call(r)}}}var pr={},Ke=jt(pr),er=jt(pr),tr=jt(pr);function Rt(e){if(e===pr)throw Error(j(174));return e}function Do(e,t){switch(F(tr,t),F(er,e),F(Ke,pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ki(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ki(t,e)}B(Ke),F(Ke,t)}function mn(){B(Ke),B(er),B(tr)}function Wu(e){Rt(tr.current);var t=Rt(Ke.current),n=ki(t,e.type);t!==n&&(F(er,e),F(Ke,n))}function Mo(e){er.current===e&&(B(Ke),B(er))}var W=jt(0);function dl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ri=[];function Fo(){for(var e=0;e<ri.length;e++)ri[e]._workInProgressVersionPrimary=null;ri.length=0}var Wr=rt.ReactCurrentDispatcher,li=rt.ReactCurrentBatchConfig,Ft=0,H=null,te=null,le=null,fl=!1,$n=!1,nr=0,Zf=0;function ue(){throw Error(j(321))}function $o(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ve(e[n],t[n]))return!1;return!0}function Uo(e,t,n,r,l,i){if(Ft=i,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wr.current=e===null||e.memoizedState===null?np:rp,e=n(r,l),$n){i=0;do{if($n=!1,nr=0,25<=i)throw Error(j(301));i+=1,le=te=null,t.updateQueue=null,Wr.current=lp,e=n(r,l)}while($n)}if(Wr.current=pl,t=te!==null&&te.next!==null,Ft=0,le=te=H=null,fl=!1,t)throw Error(j(300));return e}function Bo(){var e=nr!==0;return nr=0,e}function He(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return le===null?H.memoizedState=le=e:le=le.next=e,le}function Ie(){if(te===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=te.next;var t=le===null?H.memoizedState:le.next;if(t!==null)le=t,te=e;else{if(e===null)throw Error(j(310));te=e,e={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},le===null?H.memoizedState=le=e:le=le.next=e}return le}function rr(e,t){return typeof t=="function"?t(e):t}function ii(e){var t=Ie(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=te,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var a=o=null,u=null,c=i;do{var m=c.lane;if((Ft&m)===m)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:m,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=h,o=r):u=u.next=h,H.lanes|=m,$t|=m}c=c.next}while(c!==null&&c!==i);u===null?o=r:u.next=a,Ve(r,t.memoizedState)||(ye=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,H.lanes|=i,$t|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function oi(e){var t=Ie(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do i=e(i,o.action),o=o.next;while(o!==l);Ve(i,t.memoizedState)||(ye=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Hu(){}function Qu(e,t){var n=H,r=Ie(),l=t(),i=!Ve(r.memoizedState,l);if(i&&(r.memoizedState=l,ye=!0),r=r.queue,Vo(Xu.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||le!==null&&le.memoizedState.tag&1){if(n.flags|=2048,lr(9,Ku.bind(null,n,r,l,t),void 0,null),ie===null)throw Error(j(349));Ft&30||Gu(n,t,l)}return l}function Gu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ku(e,t,n,r){t.value=n,t.getSnapshot=r,Yu(t)&&Ju(e)}function Xu(e,t,n){return n(function(){Yu(t)&&Ju(e)})}function Yu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ve(e,n)}catch{return!0}}function Ju(e){var t=tt(e,1);t!==null&&Be(t,e,1,-1)}function Hs(e){var t=He();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rr,lastRenderedState:e},t.queue=e,e=e.dispatch=tp.bind(null,H,e),[t.memoizedState,e]}function lr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function qu(){return Ie().memoizedState}function Hr(e,t,n,r){var l=He();H.flags|=e,l.memoizedState=lr(1|t,n,void 0,r===void 0?null:r)}function Nl(e,t,n,r){var l=Ie();r=r===void 0?null:r;var i=void 0;if(te!==null){var o=te.memoizedState;if(i=o.destroy,r!==null&&$o(r,o.deps)){l.memoizedState=lr(t,n,i,r);return}}H.flags|=e,l.memoizedState=lr(1|t,n,i,r)}function Qs(e,t){return Hr(8390656,8,e,t)}function Vo(e,t){return Nl(2048,8,e,t)}function Zu(e,t){return Nl(4,2,e,t)}function bu(e,t){return Nl(4,4,e,t)}function ec(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tc(e,t,n){return n=n!=null?n.concat([e]):null,Nl(4,4,ec.bind(null,t,e),n)}function Wo(){}function nc(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rc(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$o(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lc(e,t,n){return Ft&21?(Ve(n,t)||(n=uu(),H.lanes|=n,$t|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ye=!0),e.memoizedState=n)}function bf(e,t){var n=M;M=n!==0&&4>n?n:4,e(!0);var r=li.transition;li.transition={};try{e(!1),t()}finally{M=n,li.transition=r}}function ic(){return Ie().memoizedState}function ep(e,t,n){var r=yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},oc(e))sc(t,n);else if(n=Bu(e,t,n,r),n!==null){var l=me();Be(n,e,r,l),ac(n,t,r)}}function tp(e,t,n){var r=yt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(oc(e))sc(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,Ve(a,o)){var u=t.interleaved;u===null?(l.next=l,Io(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Bu(e,t,l,r),n!==null&&(l=me(),Be(n,e,r,l),ac(n,t,r))}}function oc(e){var t=e.alternate;return e===H||t!==null&&t===H}function sc(e,t){$n=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ac(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wo(e,n)}}var pl={readContext:Ae,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useInsertionEffect:ue,useLayoutEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useMutableSource:ue,useSyncExternalStore:ue,useId:ue,unstable_isNewReconciler:!1},np={readContext:Ae,useCallback:function(e,t){return He().memoizedState=[e,t===void 0?null:t],e},useContext:Ae,useEffect:Qs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hr(4194308,4,ec.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hr(4,2,e,t)},useMemo:function(e,t){var n=He();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=He();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ep.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=He();return e={current:e},t.memoizedState=e},useState:Hs,useDebugValue:Wo,useDeferredValue:function(e){return He().memoizedState=e},useTransition:function(){var e=Hs(!1),t=e[0];return e=bf.bind(null,e[1]),He().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=He();if(V){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),ie===null)throw Error(j(349));Ft&30||Gu(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Qs(Xu.bind(null,r,i,e),[e]),r.flags|=2048,lr(9,Ku.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=He(),t=ie.identifierPrefix;if(V){var n=qe,r=Je;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=nr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Zf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},rp={readContext:Ae,useCallback:nc,useContext:Ae,useEffect:Vo,useImperativeHandle:tc,useInsertionEffect:Zu,useLayoutEffect:bu,useMemo:rc,useReducer:ii,useRef:qu,useState:function(){return ii(rr)},useDebugValue:Wo,useDeferredValue:function(e){var t=Ie();return lc(t,te.memoizedState,e)},useTransition:function(){var e=ii(rr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Qu,useId:ic,unstable_isNewReconciler:!1},lp={readContext:Ae,useCallback:nc,useContext:Ae,useEffect:Vo,useImperativeHandle:tc,useInsertionEffect:Zu,useLayoutEffect:bu,useMemo:rc,useReducer:oi,useRef:qu,useState:function(){return oi(rr)},useDebugValue:Wo,useDeferredValue:function(e){var t=Ie();return te===null?t.memoizedState=e:lc(t,te.memoizedState,e)},useTransition:function(){var e=oi(rr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Qu,useId:ic,unstable_isNewReconciler:!1};function Me(e,t){if(e&&e.defaultProps){t=Q({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Q({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Pl={isMounted:function(e){return(e=e._reactInternals)?Vt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=me(),l=yt(e),i=Ze(r,l);i.payload=t,n!=null&&(i.callback=n),t=vt(e,i,l),t!==null&&(Be(t,e,l,r),Vr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=me(),l=yt(e),i=Ze(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=vt(e,i,l),t!==null&&(Be(t,e,l,r),Vr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=me(),r=yt(e),l=Ze(n,r);l.tag=2,t!=null&&(l.callback=t),t=vt(e,l,r),t!==null&&(Be(t,e,r,n),Vr(t,e,r))}};function Gs(e,t,n,r,l,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Jn(n,r)||!Jn(l,i):!0}function uc(e,t,n){var r=!1,l=kt,i=t.contextType;return typeof i=="object"&&i!==null?i=Ae(i):(l=we(t)?Dt:fe.current,r=t.contextTypes,i=(r=r!=null)?dn(e,l):kt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Pl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Pl.enqueueReplaceState(t,t.state,null)}function Wi(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Oo(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=Ae(i):(i=we(t)?Dt:fe.current,l.context=dn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Vi(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Pl.enqueueReplaceState(l,l.state,null),cl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function hn(e,t){try{var n="",r=t;do n+=zd(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function si(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Hi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ip=typeof WeakMap=="function"?WeakMap:Map;function cc(e,t,n){n=Ze(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hl||(hl=!0,eo=r),Hi(e,t)},n}function dc(e,t,n){n=Ze(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Hi(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Hi(e,t),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ip;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=xp.bind(null,e,t,n),t.then(e,e))}function Ys(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Js(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ze(-1,1),t.tag=2,vt(n,t,1))),n.lanes|=1),e)}var op=rt.ReactCurrentOwner,ye=!1;function pe(e,t,n,r){t.child=e===null?Uu(t,null,n,r):pn(t,e.child,n,r)}function qs(e,t,n,r,l){n=n.render;var i=t.ref;return an(t,l),r=Uo(e,t,n,r,i,l),n=Bo(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,nt(e,t,l)):(V&&n&&_o(t),t.flags|=1,pe(e,t,r,l),t.child)}function Zs(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!qo(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,fc(e,t,i,r,l)):(e=Xr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Jn,n(o,r)&&e.ref===t.ref)return nt(e,t,l)}return t.flags|=1,e=xt(i,r),e.ref=t.ref,e.return=t,t.child=e}function fc(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(Jn(i,r)&&e.ref===t.ref)if(ye=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(ye=!0);else return t.lanes=e.lanes,nt(e,t,l)}return Qi(e,t,n,r,l)}function pc(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(nn,je),je|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,F(nn,je),je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,F(nn,je),je|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,F(nn,je),je|=r;return pe(e,t,l,n),t.child}function mc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Qi(e,t,n,r,l){var i=we(n)?Dt:fe.current;return i=dn(t,i),an(t,l),n=Uo(e,t,n,r,i,l),r=Bo(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,nt(e,t,l)):(V&&r&&_o(t),t.flags|=1,pe(e,t,n,l),t.child)}function bs(e,t,n,r,l){if(we(n)){var i=!0;il(t)}else i=!1;if(an(t,l),t.stateNode===null)Qr(e,t),uc(t,n,r),Wi(t,n,r,l),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ae(c):(c=we(n)?Dt:fe.current,c=dn(t,c));var m=n.getDerivedStateFromProps,h=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==c)&&Ks(t,o,r,c),ot=!1;var p=t.memoizedState;o.state=p,cl(t,r,o,l),u=t.memoizedState,a!==r||p!==u||xe.current||ot?(typeof m=="function"&&(Vi(t,n,m,r),u=t.memoizedState),(a=ot||Gs(t,n,a,r,p,u,c))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Vu(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Me(t.type,a),o.props=c,h=t.pendingProps,p=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ae(u):(u=we(n)?Dt:fe.current,u=dn(t,u));var g=n.getDerivedStateFromProps;(m=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||p!==u)&&Ks(t,o,r,u),ot=!1,p=t.memoizedState,o.state=p,cl(t,r,o,l);var w=t.memoizedState;a!==h||p!==w||xe.current||ot?(typeof g=="function"&&(Vi(t,n,g,r),w=t.memoizedState),(c=ot||Gs(t,n,c,r,p,w,u)||!1)?(m||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Gi(e,t,n,r,i,l)}function Gi(e,t,n,r,l,i){mc(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return l&&Fs(t,n,!1),nt(e,t,i);r=t.stateNode,op.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=pn(t,e.child,null,i),t.child=pn(t,null,a,i)):pe(e,t,a,i),t.memoizedState=r.state,l&&Fs(t,n,!0),t.child}function hc(e){var t=e.stateNode;t.pendingContext?Ms(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ms(e,t.context,!1),Do(e,t.containerInfo)}function ea(e,t,n,r,l){return fn(),Lo(l),t.flags|=256,pe(e,t,n,r),t.child}var Ki={dehydrated:null,treeContext:null,retryLane:0};function Xi(e){return{baseLanes:e,cachePool:null,transitions:null}}function vc(e,t,n){var r=t.pendingProps,l=W.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),F(W,l&1),e===null)return Ui(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ll(o,r,0,null),e=It(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Xi(n),t.memoizedState=Ki,e):Ho(t,o));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return sp(e,t,o,r,a,l,n);if(i){i=r.fallback,o=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=xt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?i=xt(a,i):(i=It(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Xi(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Ki,r}return i=e.child,e=i.sibling,r=xt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ho(e,t){return t=Ll({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ar(e,t,n,r){return r!==null&&Lo(r),pn(t,e.child,null,n),e=Ho(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sp(e,t,n,r,l,i,o){if(n)return t.flags&256?(t.flags&=-257,r=si(Error(j(422))),Ar(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Ll({mode:"visible",children:r.children},l,0,null),i=It(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&pn(t,e.child,null,o),t.child.memoizedState=Xi(o),t.memoizedState=Ki,i);if(!(t.mode&1))return Ar(e,t,o,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(j(419)),r=si(i,r,void 0),Ar(e,t,o,r)}if(a=(o&e.childLanes)!==0,ye||a){if(r=ie,r!==null){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|o)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,tt(e,l),Be(r,e,l,-1))}return Jo(),r=si(Error(j(421))),Ar(e,t,o,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=wp.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,Ce=ht(l.nextSibling),Ee=t,V=!0,$e=null,e!==null&&(Te[Le++]=Je,Te[Le++]=qe,Te[Le++]=Mt,Je=e.id,qe=e.overflow,Mt=t),t=Ho(t,r.children),t.flags|=4096,t)}function ta(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bi(e.return,t,n)}function ai(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function gc(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(pe(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ta(e,n,t);else if(e.tag===19)ta(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(F(W,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&dl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ai(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&dl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ai(t,!0,n,null,i);break;case"together":ai(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function nt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$t|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=xt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ap(e,t,n){switch(t.tag){case 3:hc(t),fn();break;case 5:Wu(t);break;case 1:we(t.type)&&il(t);break;case 4:Do(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;F(al,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(F(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?vc(e,t,n):(F(W,W.current&1),e=nt(e,t,n),e!==null?e.sibling:null);F(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return gc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),F(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,pc(e,t,n)}return nt(e,t,n)}var yc,Yi,xc,wc;yc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Yi=function(){};xc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Rt(Ke.current);var i=null;switch(n){case"input":l=gi(e,l),r=gi(e,r),i=[];break;case"select":l=Q({},l,{value:void 0}),r=Q({},r,{value:void 0}),i=[];break;case"textarea":l=wi(e,l),r=wi(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=rl)}Si(n,r);var o;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var a=l[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Wn.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(a=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Wn.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&U("scroll",e),i||a===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};wc=function(e,t,n,r){n!==r&&(t.flags|=4)};function _n(e,t){if(!V)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function up(e,t,n){var r=t.pendingProps;switch(To(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(t),null;case 1:return we(t.type)&&ll(),ce(t),null;case 3:return r=t.stateNode,mn(),B(xe),B(fe),Fo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$e!==null&&(ro($e),$e=null))),Yi(e,t),ce(t),null;case 5:Mo(t);var l=Rt(tr.current);if(n=t.type,e!==null&&t.stateNode!=null)xc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return ce(t),null}if(e=Rt(Ke.current),zr(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Qe]=t,r[bn]=i,e=(t.mode&1)!==0,n){case"dialog":U("cancel",r),U("close",r);break;case"iframe":case"object":case"embed":U("load",r);break;case"video":case"audio":for(l=0;l<An.length;l++)U(An[l],r);break;case"source":U("error",r);break;case"img":case"image":case"link":U("error",r),U("load",r);break;case"details":U("toggle",r);break;case"input":cs(r,i),U("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},U("invalid",r);break;case"textarea":fs(r,i),U("invalid",r)}Si(n,i),l=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Lr(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Lr(r.textContent,a,e),l=["children",""+a]):Wn.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&U("scroll",r)}switch(n){case"input":Sr(r),ds(r,i,!0);break;case"textarea":Sr(r),ps(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=rl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xa(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Qe]=t,e[bn]=r,yc(e,t,!1,!1),t.stateNode=e;e:{switch(o=ji(n,r),n){case"dialog":U("cancel",e),U("close",e),l=r;break;case"iframe":case"object":case"embed":U("load",e),l=r;break;case"video":case"audio":for(l=0;l<An.length;l++)U(An[l],e);l=r;break;case"source":U("error",e),l=r;break;case"img":case"image":case"link":U("error",e),U("load",e),l=r;break;case"details":U("toggle",e),l=r;break;case"input":cs(e,r),l=gi(e,r),U("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=Q({},r,{value:void 0}),U("invalid",e);break;case"textarea":fs(e,r),l=wi(e,r),U("invalid",e);break;default:l=r}Si(n,l),a=l;for(i in a)if(a.hasOwnProperty(i)){var u=a[i];i==="style"?qa(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ya(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Hn(e,u):typeof u=="number"&&Hn(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Wn.hasOwnProperty(i)?u!=null&&i==="onScroll"&&U("scroll",e):u!=null&&mo(e,i,u,o))}switch(n){case"input":Sr(e),ds(e,r,!1);break;case"textarea":Sr(e),ps(e);break;case"option":r.value!=null&&e.setAttribute("value",""+wt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?rn(e,!!r.multiple,i,!1):r.defaultValue!=null&&rn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=rl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ce(t),null;case 6:if(e&&t.stateNode!=null)wc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=Rt(tr.current),Rt(Ke.current),zr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Qe]=t,(i=r.nodeValue!==n)&&(e=Ee,e!==null))switch(e.tag){case 3:Lr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Lr(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Qe]=t,t.stateNode=r}return ce(t),null;case 13:if(B(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(V&&Ce!==null&&t.mode&1&&!(t.flags&128))Fu(),fn(),t.flags|=98560,i=!1;else if(i=zr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(j(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(j(317));i[Qe]=t}else fn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ce(t),i=!1}else $e!==null&&(ro($e),$e=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?ne===0&&(ne=3):Jo())),t.updateQueue!==null&&(t.flags|=4),ce(t),null);case 4:return mn(),Yi(e,t),e===null&&qn(t.stateNode.containerInfo),ce(t),null;case 10:return Ao(t.type._context),ce(t),null;case 17:return we(t.type)&&ll(),ce(t),null;case 19:if(B(W),i=t.memoizedState,i===null)return ce(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)_n(i,!1);else{if(ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=dl(e),o!==null){for(t.flags|=128,_n(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return F(W,W.current&1|2),t.child}e=e.sibling}i.tail!==null&&J()>vn&&(t.flags|=128,r=!0,_n(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_n(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!V)return ce(t),null}else 2*J()-i.renderingStartTime>vn&&n!==1073741824&&(t.flags|=128,r=!0,_n(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=J(),t.sibling=null,n=W.current,F(W,r?n&1|2:n&1),t):(ce(t),null);case 22:case 23:return Yo(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function cp(e,t){switch(To(t),t.tag){case 1:return we(t.type)&&ll(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mn(),B(xe),B(fe),Fo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Mo(t),null;case 13:if(B(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(W),null;case 4:return mn(),null;case 10:return Ao(t.type._context),null;case 22:case 23:return Yo(),null;case 24:return null;default:return null}}var Ir=!1,de=!1,dp=typeof WeakSet=="function"?WeakSet:Set,N=null;function tn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){G(e,t,r)}else n.current=null}function Ji(e,t,n){try{n()}catch(r){G(e,t,r)}}var na=!1;function fp(e,t){if(Ai=el,e=Eu(),Po(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,c=0,m=0,h=e,p=null;t:for(;;){for(var g;h!==n||l!==0&&h.nodeType!==3||(a=o+l),h!==i||r!==0&&h.nodeType!==3||(u=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++c===l&&(a=o),p===i&&++m===r&&(u=o),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ii={focusedElem:e,selectionRange:n},el=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,C=w.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:Me(t.type,y),C);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(k){G(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return w=na,na=!1,w}function Un(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Ji(t,n,i)}l=l.next}while(l!==r)}}function _l(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function qi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kc(e){var t=e.alternate;t!==null&&(e.alternate=null,kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qe],delete t[bn],delete t[Mi],delete t[Xf],delete t[Yf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Sc(e){return e.tag===5||e.tag===3||e.tag===4}function ra(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rl));else if(r!==4&&(e=e.child,e!==null))for(Zi(e,t,n),e=e.sibling;e!==null;)Zi(e,t,n),e=e.sibling}function bi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bi(e,t,n),e=e.sibling;e!==null;)bi(e,t,n),e=e.sibling}var oe=null,Fe=!1;function lt(e,t,n){for(n=n.child;n!==null;)jc(e,t,n),n=n.sibling}function jc(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount=="function")try{Ge.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 5:de||tn(n,t);case 6:var r=oe,l=Fe;oe=null,lt(e,t,n),oe=r,Fe=l,oe!==null&&(Fe?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(Fe?(e=oe,n=n.stateNode,e.nodeType===8?ti(e.parentNode,n):e.nodeType===1&&ti(e,n),Xn(e)):ti(oe,n.stateNode));break;case 4:r=oe,l=Fe,oe=n.stateNode.containerInfo,Fe=!0,lt(e,t,n),oe=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Ji(n,t,o),l=l.next}while(l!==r)}lt(e,t,n);break;case 1:if(!de&&(tn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){G(n,t,a)}lt(e,t,n);break;case 21:lt(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,lt(e,t,n),de=r):lt(e,t,n);break;default:lt(e,t,n)}}function la(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dp),t.forEach(function(r){var l=kp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function De(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:oe=a.stateNode,Fe=!1;break e;case 3:oe=a.stateNode.containerInfo,Fe=!0;break e;case 4:oe=a.stateNode.containerInfo,Fe=!0;break e}a=a.return}if(oe===null)throw Error(j(160));jc(i,o,l),oe=null,Fe=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(c){G(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Cc(t,e),t=t.sibling}function Cc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(De(t,e),We(e),r&4){try{Un(3,e,e.return),_l(3,e)}catch(y){G(e,e.return,y)}try{Un(5,e,e.return)}catch(y){G(e,e.return,y)}}break;case 1:De(t,e),We(e),r&512&&n!==null&&tn(n,n.return);break;case 5:if(De(t,e),We(e),r&512&&n!==null&&tn(n,n.return),e.flags&32){var l=e.stateNode;try{Hn(l,"")}catch(y){G(e,e.return,y)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Ga(l,i),ji(a,o);var c=ji(a,i);for(o=0;o<u.length;o+=2){var m=u[o],h=u[o+1];m==="style"?qa(l,h):m==="dangerouslySetInnerHTML"?Ya(l,h):m==="children"?Hn(l,h):mo(l,m,h,c)}switch(a){case"input":yi(l,i);break;case"textarea":Ka(l,i);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?rn(l,!!i.multiple,g,!1):p!==!!i.multiple&&(i.defaultValue!=null?rn(l,!!i.multiple,i.defaultValue,!0):rn(l,!!i.multiple,i.multiple?[]:"",!1))}l[bn]=i}catch(y){G(e,e.return,y)}}break;case 6:if(De(t,e),We(e),r&4){if(e.stateNode===null)throw Error(j(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(y){G(e,e.return,y)}}break;case 3:if(De(t,e),We(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xn(t.containerInfo)}catch(y){G(e,e.return,y)}break;case 4:De(t,e),We(e);break;case 13:De(t,e),We(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Ko=J())),r&4&&la(e);break;case 22:if(m=n!==null&&n.memoizedState!==null,e.mode&1?(de=(c=de)||m,De(t,e),de=c):De(t,e),We(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!m&&e.mode&1)for(N=e,m=e.child;m!==null;){for(h=N=m;N!==null;){switch(p=N,g=p.child,p.tag){case 0:case 11:case 14:case 15:Un(4,p,p.return);break;case 1:tn(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(y){G(r,n,y)}}break;case 5:tn(p,p.return);break;case 22:if(p.memoizedState!==null){oa(h);continue}}g!==null?(g.return=p,N=g):oa(h)}m=m.sibling}e:for(m=null,h=e;;){if(h.tag===5){if(m===null){m=h;try{l=h.stateNode,c?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=h.stateNode,u=h.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Ja("display",o))}catch(y){G(e,e.return,y)}}}else if(h.tag===6){if(m===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(y){G(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;m===h&&(m=null),h=h.return}m===h&&(m=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:De(t,e),We(e),r&4&&la(e);break;case 21:break;default:De(t,e),We(e)}}function We(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Sc(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Hn(l,""),r.flags&=-33);var i=ra(e);bi(e,i,l);break;case 3:case 4:var o=r.stateNode.containerInfo,a=ra(e);Zi(e,a,o);break;default:throw Error(j(161))}}catch(u){G(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pp(e,t,n){N=e,Ec(e)}function Ec(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var l=N,i=l.child;if(l.tag===22&&r){var o=l.memoizedState!==null||Ir;if(!o){var a=l.alternate,u=a!==null&&a.memoizedState!==null||de;a=Ir;var c=de;if(Ir=o,(de=u)&&!c)for(N=l;N!==null;)o=N,u=o.child,o.tag===22&&o.memoizedState!==null?sa(l):u!==null?(u.return=o,N=u):sa(l);for(;i!==null;)N=i,Ec(i),i=i.sibling;N=l,Ir=a,de=c}ia(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,N=i):ia(e)}}function ia(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:de||_l(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!de)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Me(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ws(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ws(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var m=c.memoizedState;if(m!==null){var h=m.dehydrated;h!==null&&Xn(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}de||t.flags&512&&qi(t)}catch(p){G(t,t.return,p)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function oa(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function sa(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_l(4,t)}catch(u){G(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){G(t,l,u)}}var i=t.return;try{qi(t)}catch(u){G(t,i,u)}break;case 5:var o=t.return;try{qi(t)}catch(u){G(t,o,u)}}}catch(u){G(t,t.return,u)}if(t===e){N=null;break}var a=t.sibling;if(a!==null){a.return=t.return,N=a;break}N=t.return}}var mp=Math.ceil,ml=rt.ReactCurrentDispatcher,Qo=rt.ReactCurrentOwner,Re=rt.ReactCurrentBatchConfig,D=0,ie=null,Z=null,se=0,je=0,nn=jt(0),ne=0,ir=null,$t=0,Tl=0,Go=0,Bn=null,ge=null,Ko=0,vn=1/0,Xe=null,hl=!1,eo=null,gt=null,Or=!1,ct=null,vl=0,Vn=0,to=null,Gr=-1,Kr=0;function me(){return D&6?J():Gr!==-1?Gr:Gr=J()}function yt(e){return e.mode&1?D&2&&se!==0?se&-se:qf.transition!==null?(Kr===0&&(Kr=uu()),Kr):(e=M,e!==0||(e=window.event,e=e===void 0?16:vu(e.type)),e):1}function Be(e,t,n,r){if(50<Vn)throw Vn=0,to=null,Error(j(185));cr(e,n,r),(!(D&2)||e!==ie)&&(e===ie&&(!(D&2)&&(Tl|=n),ne===4&&at(e,se)),ke(e,r),n===1&&D===0&&!(t.mode&1)&&(vn=J()+500,El&&Ct()))}function ke(e,t){var n=e.callbackNode;Jd(e,t);var r=br(e,e===ie?se:0);if(r===0)n!==null&&vs(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vs(n),t===1)e.tag===0?Jf(aa.bind(null,e)):Ou(aa.bind(null,e)),Gf(function(){!(D&6)&&Ct()}),n=null;else{switch(cu(r)){case 1:n=xo;break;case 4:n=su;break;case 16:n=Zr;break;case 536870912:n=au;break;default:n=Zr}n=Ac(n,Nc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Nc(e,t){if(Gr=-1,Kr=0,D&6)throw Error(j(327));var n=e.callbackNode;if(un()&&e.callbackNode!==n)return null;var r=br(e,e===ie?se:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=gl(e,r);else{t=r;var l=D;D|=2;var i=_c();(ie!==e||se!==t)&&(Xe=null,vn=J()+500,At(e,t));do try{gp();break}catch(a){Pc(e,a)}while(!0);Ro(),ml.current=i,D=l,Z!==null?t=0:(ie=null,se=0,t=ne)}if(t!==0){if(t===2&&(l=_i(e),l!==0&&(r=l,t=no(e,l))),t===1)throw n=ir,At(e,0),at(e,r),ke(e,J()),n;if(t===6)at(e,r);else{if(l=e.current.alternate,!(r&30)&&!hp(l)&&(t=gl(e,r),t===2&&(i=_i(e),i!==0&&(r=i,t=no(e,i))),t===1))throw n=ir,At(e,0),at(e,r),ke(e,J()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:Tt(e,ge,Xe);break;case 3:if(at(e,r),(r&130023424)===r&&(t=Ko+500-J(),10<t)){if(br(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){me(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Di(Tt.bind(null,e,ge,Xe),t);break}Tt(e,ge,Xe);break;case 4:if(at(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var o=31-Ue(r);i=1<<o,o=t[o],o>l&&(l=o),r&=~i}if(r=l,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mp(r/1960))-r,10<r){e.timeoutHandle=Di(Tt.bind(null,e,ge,Xe),r);break}Tt(e,ge,Xe);break;case 5:Tt(e,ge,Xe);break;default:throw Error(j(329))}}}return ke(e,J()),e.callbackNode===n?Nc.bind(null,e):null}function no(e,t){var n=Bn;return e.current.memoizedState.isDehydrated&&(At(e,t).flags|=256),e=gl(e,t),e!==2&&(t=ge,ge=n,t!==null&&ro(t)),e}function ro(e){ge===null?ge=e:ge.push.apply(ge,e)}function hp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!Ve(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function at(e,t){for(t&=~Go,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ue(t),r=1<<n;e[n]=-1,t&=~r}}function aa(e){if(D&6)throw Error(j(327));un();var t=br(e,0);if(!(t&1))return ke(e,J()),null;var n=gl(e,t);if(e.tag!==0&&n===2){var r=_i(e);r!==0&&(t=r,n=no(e,r))}if(n===1)throw n=ir,At(e,0),at(e,t),ke(e,J()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tt(e,ge,Xe),ke(e,J()),null}function Xo(e,t){var n=D;D|=1;try{return e(t)}finally{D=n,D===0&&(vn=J()+500,El&&Ct())}}function Ut(e){ct!==null&&ct.tag===0&&!(D&6)&&un();var t=D;D|=1;var n=Re.transition,r=M;try{if(Re.transition=null,M=1,e)return e()}finally{M=r,Re.transition=n,D=t,!(D&6)&&Ct()}}function Yo(){je=nn.current,B(nn)}function At(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Qf(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(To(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ll();break;case 3:mn(),B(xe),B(fe),Fo();break;case 5:Mo(r);break;case 4:mn();break;case 13:B(W);break;case 19:B(W);break;case 10:Ao(r.type._context);break;case 22:case 23:Yo()}n=n.return}if(ie=e,Z=e=xt(e.current,null),se=je=t,ne=0,ir=null,Go=Tl=$t=0,ge=Bn=null,zt!==null){for(t=0;t<zt.length;t++)if(n=zt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=l,r.next=o}n.pending=r}zt=null}return e}function Pc(e,t){do{var n=Z;try{if(Ro(),Wr.current=pl,fl){for(var r=H.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}fl=!1}if(Ft=0,le=te=H=null,$n=!1,nr=0,Qo.current=null,n===null||n.return===null){ne=1,ir=t,Z=null;break}e:{var i=e,o=n.return,a=n,u=t;if(t=se,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,m=a,h=m.tag;if(!(m.mode&1)&&(h===0||h===11||h===15)){var p=m.alternate;p?(m.updateQueue=p.updateQueue,m.memoizedState=p.memoizedState,m.lanes=p.lanes):(m.updateQueue=null,m.memoizedState=null)}var g=Ys(o);if(g!==null){g.flags&=-257,Js(g,o,a,i,t),g.mode&1&&Xs(i,c,t),t=g,u=c;var w=t.updateQueue;if(w===null){var y=new Set;y.add(u),t.updateQueue=y}else w.add(u);break e}else{if(!(t&1)){Xs(i,c,t),Jo();break e}u=Error(j(426))}}else if(V&&a.mode&1){var C=Ys(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Js(C,o,a,i,t),Lo(hn(u,a));break e}}i=u=hn(u,a),ne!==4&&(ne=2),Bn===null?Bn=[i]:Bn.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var f=cc(i,u,t);Vs(i,f);break e;case 1:a=u;var d=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(gt===null||!gt.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=dc(i,a,t);Vs(i,k);break e}}i=i.return}while(i!==null)}Lc(n)}catch(E){t=E,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(!0)}function _c(){var e=ml.current;return ml.current=pl,e===null?pl:e}function Jo(){(ne===0||ne===3||ne===2)&&(ne=4),ie===null||!($t&268435455)&&!(Tl&268435455)||at(ie,se)}function gl(e,t){var n=D;D|=2;var r=_c();(ie!==e||se!==t)&&(Xe=null,At(e,t));do try{vp();break}catch(l){Pc(e,l)}while(!0);if(Ro(),D=n,ml.current=r,Z!==null)throw Error(j(261));return ie=null,se=0,ne}function vp(){for(;Z!==null;)Tc(Z)}function gp(){for(;Z!==null&&!Bd();)Tc(Z)}function Tc(e){var t=Rc(e.alternate,e,je);e.memoizedProps=e.pendingProps,t===null?Lc(e):Z=t,Qo.current=null}function Lc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=cp(n,t),n!==null){n.flags&=32767,Z=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ne=6,Z=null;return}}else if(n=up(n,t,je),n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);ne===0&&(ne=5)}function Tt(e,t,n){var r=M,l=Re.transition;try{Re.transition=null,M=1,yp(e,t,n,r)}finally{Re.transition=l,M=r}return null}function yp(e,t,n,r){do un();while(ct!==null);if(D&6)throw Error(j(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(qd(e,i),e===ie&&(Z=ie=null,se=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Or||(Or=!0,Ac(Zr,function(){return un(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Re.transition,Re.transition=null;var o=M;M=1;var a=D;D|=4,Qo.current=null,fp(e,n),Cc(n,e),Ff(Ii),el=!!Ai,Ii=Ai=null,e.current=n,pp(n),Vd(),D=a,M=o,Re.transition=i}else e.current=n;if(Or&&(Or=!1,ct=e,vl=l),i=e.pendingLanes,i===0&&(gt=null),Qd(n.stateNode),ke(e,J()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(hl)throw hl=!1,e=eo,eo=null,e;return vl&1&&e.tag!==0&&un(),i=e.pendingLanes,i&1?e===to?Vn++:(Vn=0,to=e):Vn=0,Ct(),null}function un(){if(ct!==null){var e=cu(vl),t=Re.transition,n=M;try{if(Re.transition=null,M=16>e?16:e,ct===null)var r=!1;else{if(e=ct,ct=null,vl=0,D&6)throw Error(j(331));var l=D;for(D|=4,N=e.current;N!==null;){var i=N,o=i.child;if(N.flags&16){var a=i.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(N=c;N!==null;){var m=N;switch(m.tag){case 0:case 11:case 15:Un(8,m,i)}var h=m.child;if(h!==null)h.return=m,N=h;else for(;N!==null;){m=N;var p=m.sibling,g=m.return;if(kc(m),m===c){N=null;break}if(p!==null){p.return=g,N=p;break}N=g}}}var w=i.alternate;if(w!==null){var y=w.child;if(y!==null){w.child=null;do{var C=y.sibling;y.sibling=null,y=C}while(y!==null)}}N=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,N=o;else e:for(;N!==null;){if(i=N,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Un(9,i,i.return)}var f=i.sibling;if(f!==null){f.return=i.return,N=f;break e}N=i.return}}var d=e.current;for(N=d;N!==null;){o=N;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,N=v;else e:for(o=d;N!==null;){if(a=N,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:_l(9,a)}}catch(E){G(a,a.return,E)}if(a===o){N=null;break e}var k=a.sibling;if(k!==null){k.return=a.return,N=k;break e}N=a.return}}if(D=l,Ct(),Ge&&typeof Ge.onPostCommitFiberRoot=="function")try{Ge.onPostCommitFiberRoot(wl,e)}catch{}r=!0}return r}finally{M=n,Re.transition=t}}return!1}function ua(e,t,n){t=hn(n,t),t=cc(e,t,1),e=vt(e,t,1),t=me(),e!==null&&(cr(e,1,t),ke(e,t))}function G(e,t,n){if(e.tag===3)ua(e,e,n);else for(;t!==null;){if(t.tag===3){ua(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=hn(n,e),e=dc(t,e,1),t=vt(t,e,1),e=me(),t!==null&&(cr(t,1,e),ke(t,e));break}}t=t.return}}function xp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=me(),e.pingedLanes|=e.suspendedLanes&n,ie===e&&(se&n)===n&&(ne===4||ne===3&&(se&130023424)===se&&500>J()-Ko?At(e,0):Go|=n),ke(e,t)}function zc(e,t){t===0&&(e.mode&1?(t=Er,Er<<=1,!(Er&130023424)&&(Er=4194304)):t=1);var n=me();e=tt(e,t),e!==null&&(cr(e,t,n),ke(e,n))}function wp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zc(e,n)}function kp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),zc(e,n)}var Rc;Rc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xe.current)ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ye=!1,ap(e,t,n);ye=!!(e.flags&131072)}else ye=!1,V&&t.flags&1048576&&Du(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qr(e,t),e=t.pendingProps;var l=dn(t,fe.current);an(t,n),l=Uo(null,t,r,e,l,n);var i=Bo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,we(r)?(i=!0,il(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Oo(t),l.updater=Pl,t.stateNode=l,l._reactInternals=t,Wi(t,r,e,n),t=Gi(null,t,r,!0,i,n)):(t.tag=0,V&&i&&_o(t),pe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=jp(r),e=Me(r,e),l){case 0:t=Qi(null,t,r,e,n);break e;case 1:t=bs(null,t,r,e,n);break e;case 11:t=qs(null,t,r,e,n);break e;case 14:t=Zs(null,t,r,Me(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),Qi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),bs(e,t,r,l,n);case 3:e:{if(hc(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Vu(e,t),cl(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=hn(Error(j(423)),t),t=ea(e,t,r,n,l);break e}else if(r!==l){l=hn(Error(j(424)),t),t=ea(e,t,r,n,l);break e}else for(Ce=ht(t.stateNode.containerInfo.firstChild),Ee=t,V=!0,$e=null,n=Uu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fn(),r===l){t=nt(e,t,n);break e}pe(e,t,r,n)}t=t.child}return t;case 5:return Wu(t),e===null&&Ui(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Oi(r,l)?o=null:i!==null&&Oi(r,i)&&(t.flags|=32),mc(e,t),pe(e,t,o,n),t.child;case 6:return e===null&&Ui(t),null;case 13:return vc(e,t,n);case 4:return Do(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pn(t,null,r,n):pe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),qs(e,t,r,l,n);case 7:return pe(e,t,t.pendingProps,n),t.child;case 8:return pe(e,t,t.pendingProps.children,n),t.child;case 12:return pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,F(al,r._currentValue),r._currentValue=o,i!==null)if(Ve(i.value,o)){if(i.children===l.children&&!xe.current){t=nt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Ze(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var m=c.pending;m===null?u.next=u:(u.next=m.next,m.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Bi(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(j(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Bi(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}pe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,an(t,n),l=Ae(l),r=r(l),t.flags|=1,pe(e,t,r,n),t.child;case 14:return r=t.type,l=Me(r,t.pendingProps),l=Me(r.type,l),Zs(e,t,r,l,n);case 15:return fc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Me(r,l),Qr(e,t),t.tag=1,we(r)?(e=!0,il(t)):e=!1,an(t,n),uc(t,r,l),Wi(t,r,l,n),Gi(null,t,r,!0,e,n);case 19:return gc(e,t,n);case 22:return pc(e,t,n)}throw Error(j(156,t.tag))};function Ac(e,t){return ou(e,t)}function Sp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(e,t,n,r){return new Sp(e,t,n,r)}function qo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jp(e){if(typeof e=="function")return qo(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vo)return 11;if(e===go)return 14}return 2}function xt(e,t){var n=e.alternate;return n===null?(n=ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")qo(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Gt:return It(n.children,l,i,t);case ho:o=8,l|=8;break;case pi:return e=ze(12,n,t,l|2),e.elementType=pi,e.lanes=i,e;case mi:return e=ze(13,n,t,l),e.elementType=mi,e.lanes=i,e;case hi:return e=ze(19,n,t,l),e.elementType=hi,e.lanes=i,e;case Wa:return Ll(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:o=10;break e;case Va:o=9;break e;case vo:o=11;break e;case go:o=14;break e;case it:o=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=ze(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function It(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=ze(22,e,r,t),e.elementType=Wa,e.lanes=n,e.stateNode={isHidden:!1},e}function ui(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function ci(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hl(0),this.expirationTimes=Hl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Zo(e,t,n,r,l,i,o,a,u){return e=new Cp(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ze(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(i),e}function Ep(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ic(e){if(!e)return kt;e=e._reactInternals;e:{if(Vt(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(we(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(we(n))return Iu(e,n,t)}return t}function Oc(e,t,n,r,l,i,o,a,u){return e=Zo(n,r,!0,e,l,i,o,a,u),e.context=Ic(null),n=e.current,r=me(),l=yt(n),i=Ze(r,l),i.callback=t??null,vt(n,i,l),e.current.lanes=l,cr(e,l,r),ke(e,r),e}function zl(e,t,n,r){var l=t.current,i=me(),o=yt(l);return n=Ic(n),t.context===null?t.context=n:t.pendingContext=n,t=Ze(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=vt(l,t,o),e!==null&&(Be(e,l,o,i),Vr(e,l,o)),o}function yl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ca(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bo(e,t){ca(e,t),(e=e.alternate)&&ca(e,t)}function Np(){return null}var Dc=typeof reportError=="function"?reportError:function(e){console.error(e)};function es(e){this._internalRoot=e}Rl.prototype.render=es.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));zl(e,t,null,null)};Rl.prototype.unmount=es.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ut(function(){zl(null,e,null,null)}),t[et]=null}};function Rl(e){this._internalRoot=e}Rl.prototype.unstable_scheduleHydration=function(e){if(e){var t=pu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<st.length&&t!==0&&t<st[n].priority;n++);st.splice(n,0,e),n===0&&hu(e)}};function ts(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Al(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function da(){}function Pp(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var c=yl(o);i.call(c)}}var o=Oc(t,r,e,0,null,!1,!1,"",da);return e._reactRootContainer=o,e[et]=o.current,qn(e.nodeType===8?e.parentNode:e),Ut(),o}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var c=yl(u);a.call(c)}}var u=Zo(e,0,!1,null,null,!1,!1,"",da);return e._reactRootContainer=u,e[et]=u.current,qn(e.nodeType===8?e.parentNode:e),Ut(function(){zl(t,u,n,r)}),u}function Il(e,t,n,r,l){var i=n._reactRootContainer;if(i){var o=i;if(typeof l=="function"){var a=l;l=function(){var u=yl(o);a.call(u)}}zl(t,o,e,l)}else o=Pp(n,t,e,l,r);return yl(o)}du=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rn(t.pendingLanes);n!==0&&(wo(t,n|1),ke(t,J()),!(D&6)&&(vn=J()+500,Ct()))}break;case 13:Ut(function(){var r=tt(e,1);if(r!==null){var l=me();Be(r,e,1,l)}}),bo(e,1)}};ko=function(e){if(e.tag===13){var t=tt(e,134217728);if(t!==null){var n=me();Be(t,e,134217728,n)}bo(e,134217728)}};fu=function(e){if(e.tag===13){var t=yt(e),n=tt(e,t);if(n!==null){var r=me();Be(n,e,t,r)}bo(e,t)}};pu=function(){return M};mu=function(e,t){var n=M;try{return M=e,t()}finally{M=n}};Ei=function(e,t,n){switch(t){case"input":if(yi(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Cl(r);if(!l)throw Error(j(90));Qa(r),yi(r,l)}}}break;case"textarea":Ka(e,n);break;case"select":t=n.value,t!=null&&rn(e,!!n.multiple,t,!1)}};eu=Xo;tu=Ut;var _p={usingClientEntryPoint:!1,Events:[fr,Jt,Cl,Za,ba,Xo]},Tn={findFiberByHostInstance:Lt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Tp={bundleType:Tn.bundleType,version:Tn.version,rendererPackageName:Tn.rendererPackageName,rendererConfig:Tn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lu(e),e===null?null:e.stateNode},findFiberByHostInstance:Tn.findFiberByHostInstance||Np,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dr.isDisabled&&Dr.supportsFiber)try{wl=Dr.inject(Tp),Ge=Dr}catch{}}Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_p;Pe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ts(t))throw Error(j(200));return Ep(e,t,null,n)};Pe.createRoot=function(e,t){if(!ts(e))throw Error(j(299));var n=!1,r="",l=Dc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Zo(e,1,!1,null,null,n,!1,r,l),e[et]=t.current,qn(e.nodeType===8?e.parentNode:e),new es(t)};Pe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=lu(t),e=e===null?null:e.stateNode,e};Pe.flushSync=function(e){return Ut(e)};Pe.hydrate=function(e,t,n){if(!Al(t))throw Error(j(200));return Il(null,e,t,!0,n)};Pe.hydrateRoot=function(e,t,n){if(!ts(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",o=Dc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Oc(t,null,e,1,n??null,l,!1,i,o),e[et]=t.current,qn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Rl(t)};Pe.render=function(e,t,n){if(!Al(t))throw Error(j(200));return Il(null,e,t,!1,n)};Pe.unmountComponentAtNode=function(e){if(!Al(e))throw Error(j(40));return e._reactRootContainer?(Ut(function(){Il(null,null,e,!1,function(){e._reactRootContainer=null,e[et]=null})}),!0):!1};Pe.unstable_batchedUpdates=Xo;Pe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Al(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Il(e,t,n,!1,r)};Pe.version="18.3.1-next-f1338f8080-20240426";function Mc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mc)}catch(e){console.error(e)}}Mc(),Ma.exports=Pe;var Lp=Ma.exports,Fc,fa=Lp;Fc=fa.createRoot,fa.hydrateRoot;/**
|
|
41
|
+
* @remix-run/router v1.23.4
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},or.apply(null,arguments)}var dt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(dt||(dt={}));const pa="popstate";function zp(e){e===void 0&&(e={});function t(r,l){let{pathname:i,search:o,hash:a}=r.location;return lo("",{pathname:i,search:o,hash:a},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:Uc(l)}return Ap(t,n,null,e)}function b(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $c(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Rp(){return Math.random().toString(36).substr(2,8)}function ma(e,t){return{usr:e.state,key:e.key,idx:t}}function lo(e,t,n,r){return n===void 0&&(n=null),or({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?wn(t):t,{state:n,key:t&&t.key||r||Rp()})}function Uc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function wn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ap(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,a=dt.Pop,u=null,c=m();c==null&&(c=0,o.replaceState(or({},o.state,{idx:c}),""));function m(){return(o.state||{idx:null}).idx}function h(){a=dt.Pop;let C=m(),f=C==null?null:C-c;c=C,u&&u({action:a,location:y.location,delta:f})}function p(C,f){a=dt.Push;let d=lo(y.location,C,f);c=m()+1;let v=ma(d,c),k=y.createHref(d);try{o.pushState(v,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;l.location.assign(k)}i&&u&&u({action:a,location:y.location,delta:1})}function g(C,f){a=dt.Replace;let d=lo(y.location,C,f);c=m();let v=ma(d,c),k=y.createHref(d);o.replaceState(v,"",k),i&&u&&u({action:a,location:y.location,delta:0})}function w(C){let f=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof C=="string"?C:Uc(C);return d=d.replace(/ $/,"%20"),b(f,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,f)}let y={get action(){return a},get location(){return e(l,o)},listen(C){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(pa,h),u=C,()=>{l.removeEventListener(pa,h),u=null}},createHref(C){return t(l,C)},createURL:w,encodeLocation(C){let f=w(C);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:p,replace:g,go(C){return o.go(C)}};return y}var ha;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ha||(ha={}));function Ip(e,t,n){return n===void 0&&(n="/"),Op(e,t,n)}function Op(e,t,n,r){let l=typeof t=="string"?wn(t):t,i=Wc(l.pathname||"/",n);if(i==null)return null;let o=Bc(e);Dp(o);let a=null,u=Xp(i);for(let c=0;a==null&&c<o.length;++c)a=Qp(o[c],u);return a}function Bc(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let l=(i,o,a)=>{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&(b(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=Ot([r,u.relativePath]),m=n.concat(u);i.children&&i.children.length>0&&(b(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Bc(i.children,t,m,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:Wp(c,i.index),routesMeta:m})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))l(i,o);else for(let u of Vc(i.path))l(i,o,u)}),t}function Vc(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=Vc(r.join("/")),a=[];return a.push(...o.map(u=>u===""?i:[i,u].join("/"))),l&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Dp(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Hp(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Mp=/^:[\w-]+$/,Fp=3,$p=2,Up=1,Bp=10,Vp=-2,va=e=>e==="*";function Wp(e,t){let n=e.split("/"),r=n.length;return n.some(va)&&(r+=Vp),t&&(r+=$p),n.filter(l=>!va(l)).reduce((l,i)=>l+(Mp.test(i)?Fp:i===""?Up:Bp),r)}function Hp(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Qp(e,t,n){let{routesMeta:r}=e,l={},i="/",o=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,m=i==="/"?t:t.slice(i.length)||"/",h=Gp({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},m),p=u.route;if(!h)return null;Object.assign(l,h.params),o.push({params:l,pathname:Ot([i,h.pathname]),pathnameBase:qp(Ot([i,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(i=Ot([i,h.pathnameBase]))}return o}function Gp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Kp(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let i=l[0],o=i.replace(/(.)\/+$/,"$1"),a=l.slice(1);return{params:r.reduce((c,m,h)=>{let{paramName:p,isOptional:g}=m;if(p==="*"){let y=a[h]||"";o=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const w=a[h];return g&&!w?c[p]=void 0:c[p]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function Kp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),$c(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Xp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Wc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Yp(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?wn(e):e,i;return n?(n=Gc(n),n.startsWith("/")?i=ga(n.substring(1),"/"):i=ga(n,t)):i=t,{pathname:i,search:Zp(r),hash:bp(l)}}function ga(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function di(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Jp(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hc(e,t){let n=Jp(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Qc(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=wn(e):(l=or({},e),b(!l.pathname||!l.pathname.includes("?"),di("?","pathname","search",l)),b(!l.pathname||!l.pathname.includes("#"),di("#","pathname","hash",l)),b(!l.search||!l.search.includes("#"),di("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,a;if(o==null)a=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),h-=1;l.pathname=p.join("/")}a=h>=0?t[h]:"/"}let u=Yp(l,a),c=o&&o!=="/"&&o.endsWith("/"),m=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||m)&&(u.pathname+="/"),u}const Gc=e=>e.replace(/\/\/+/g,"/"),Ot=e=>Gc(e.join("/")),qp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function em(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Kc=["post","put","patch","delete"];new Set(Kc);const tm=["get",...Kc];new Set(tm);/**
|
|
50
|
+
* React Router v6.30.6
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sr.apply(null,arguments)}const ns=x.createContext(null),nm=x.createContext(null),mr=x.createContext(null),Ol=x.createContext(null),Wt=x.createContext({outlet:null,matches:[],isDataRoute:!1}),Xc=x.createContext(null);function hr(){return x.useContext(Ol)!=null}function vr(){return hr()||b(!1),x.useContext(Ol).location}function Yc(e){x.useContext(mr).static||x.useLayoutEffect(e)}function kn(){let{isDataRoute:e}=x.useContext(Wt);return e?hm():rm()}function rm(){hr()||b(!1);let e=x.useContext(ns),{basename:t,future:n,navigator:r}=x.useContext(mr),{matches:l}=x.useContext(Wt),{pathname:i}=vr(),o=JSON.stringify(Hc(l,n.v7_relativeSplatPath)),a=x.useRef(!1);return Yc(()=>{a.current=!0}),x.useCallback(function(c,m){if(m===void 0&&(m={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=Qc(c,JSON.parse(o),i,m.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Ot([t,h.pathname])),(m.replace?r.replace:r.push)(h,m.state,m)},[t,r,o,i,e])}function lm(e,t){return im(e,t)}function im(e,t,n,r){hr()||b(!1);let{navigator:l}=x.useContext(mr),{matches:i}=x.useContext(Wt),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let c=vr(),m;if(t){var h;let C=typeof t=="string"?wn(t):t;u==="/"||(h=C.pathname)!=null&&h.startsWith(u)||b(!1),m=C}else m=c;let p=m.pathname||"/",g=p;if(u!=="/"){let C=u.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=Ip(e,{pathname:g}),y=cm(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},a,C.params),pathname:Ot([u,l.encodeLocation?l.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Ot([u,l.encodeLocation?l.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&y?x.createElement(Ol.Provider,{value:{location:sr({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:dt.Pop}},y):y}function om(){let e=mm(),t=em(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:l},n):null,null)}const sm=x.createElement(om,null);class am extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement(Wt.Provider,{value:this.props.routeContext},x.createElement(Xc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function um(e){let{routeContext:t,match:n,children:r}=e,l=x.useContext(ns);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Wt.Provider,{value:t},r)}function cm(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let m=o.findIndex(h=>h.route.id&&(a==null?void 0:a[h.route.id])!==void 0);m>=0||b(!1),o=o.slice(0,Math.min(o.length,m+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m<o.length;m++){let h=o[m];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=m),h.route.id){let{loaderData:p,errors:g}=n,w=h.route.loader&&p[h.route.id]===void 0&&(!g||g[h.route.id]===void 0);if(h.route.lazy||w){u=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((m,h,p)=>{let g,w=!1,y=null,C=null;n&&(g=a&&h.route.id?a[h.route.id]:void 0,y=h.route.errorElement||sm,u&&(c<0&&p===0?(vm("route-fallback"),w=!0,C=null):c===p&&(w=!0,C=h.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,p+1)),d=()=>{let v;return g?v=y:w?v=C:h.route.Component?v=x.createElement(h.route.Component,null):h.route.element?v=h.route.element:v=m,x.createElement(um,{match:h,routeContext:{outlet:m,matches:f,isDataRoute:n!=null},children:v})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?x.createElement(am,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var Jc=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Jc||{}),qc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(qc||{});function dm(e){let t=x.useContext(ns);return t||b(!1),t}function fm(e){let t=x.useContext(nm);return t||b(!1),t}function pm(e){let t=x.useContext(Wt);return t||b(!1),t}function Zc(e){let t=pm(),n=t.matches[t.matches.length-1];return n.route.id||b(!1),n.route.id}function mm(){var e;let t=x.useContext(Xc),n=fm(),r=Zc();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function hm(){let{router:e}=dm(Jc.UseNavigateStable),t=Zc(qc.UseNavigateStable),n=x.useRef(!1);return Yc(()=>{n.current=!0}),x.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,sr({fromRouteId:t},i)))},[e,t])}const ya={};function vm(e,t,n){ya[e]||(ya[e]=!0)}function gm(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function xa(e){let{to:t,replace:n,state:r,relative:l}=e;hr()||b(!1);let{future:i,static:o}=x.useContext(mr),{matches:a}=x.useContext(Wt),{pathname:u}=vr(),c=kn(),m=Qc(t,Hc(a,i.v7_relativeSplatPath),u,l==="path"),h=JSON.stringify(m);return x.useEffect(()=>c(JSON.parse(h),{replace:n,state:r,relative:l}),[c,h,l,n,r]),null}function Y(e){b(!1)}function ym(e){let{basename:t="/",children:n=null,location:r,navigationType:l=dt.Pop,navigator:i,static:o=!1,future:a}=e;hr()&&b(!1);let u=t.replace(/^\/*/,"/"),c=x.useMemo(()=>({basename:u,navigator:i,static:o,future:sr({v7_relativeSplatPath:!1},a)}),[u,a,i,o]);typeof r=="string"&&(r=wn(r));let{pathname:m="/",search:h="",hash:p="",state:g=null,key:w="default"}=r,y=x.useMemo(()=>{let C=Wc(m,u);return C==null?null:{location:{pathname:C,search:h,hash:p,state:g,key:w},navigationType:l}},[u,m,h,p,g,w,l]);return y==null?null:x.createElement(mr.Provider,{value:c},x.createElement(Ol.Provider,{children:n,value:y}))}function xm(e){let{children:t,location:n}=e;return lm(io(t),n)}new Promise(()=>{});function io(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,l)=>{if(!x.isValidElement(r))return;let i=[...t,l];if(r.type===x.Fragment){n.push.apply(n,io(r.props.children,i));return}r.type!==Y&&b(!1),!r.props.index||!r.props.children||b(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=io(r.props.children,i)),n.push(o)}),n}/**
|
|
59
|
+
* React Router DOM v6.30.6
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/const wm="6";try{window.__reactRouterVersion=wm}catch{}const km="startTransition",wa=yd[km];function Sm(e){let{basename:t,children:n,future:r,window:l}=e,i=x.useRef();i.current==null&&(i.current=zp({window:l,v5Compat:!0}));let o=i.current,[a,u]=x.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},m=x.useCallback(h=>{c&&wa?wa(()=>u(h)):u(h)},[u,c]);return x.useLayoutEffect(()=>o.listen(m),[o,m]),x.useEffect(()=>gm(r),[r]),x.createElement(ym,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}var ka;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ka||(ka={}));var Sa;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Sa||(Sa={}));async function ee(e,t={}){const n=await fetch(e,{credentials:"include",headers:{"Content-Type":"application/json",...t.headers||{}},...t});if(!n.ok){let r=`${n.status} ${n.statusText}`;try{r=(await n.json()).detail||r}catch{}throw new Error(typeof r=="string"?r:JSON.stringify(r))}return n.json()}const q={health:()=>ee("/api/health"),version:()=>ee("/api/version"),session:()=>ee("/api/auth/session"),login:(e,t)=>ee("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,activation_code:t})}),logout:()=>ee("/api/auth/logout",{method:"POST"}),settings:()=>ee("/api/settings"),saveSettings:e=>ee("/api/settings",{method:"PUT",body:JSON.stringify(e)}),produtos:()=>ee("/api/produtos"),createProduto:e=>ee("/api/produtos",{method:"POST",body:JSON.stringify(e)}),updateProduto:(e,t)=>ee(`/api/produtos/${e}`,{method:"PUT",body:JSON.stringify(t)}),deleteProduto:e=>ee(`/api/produtos/${e}`,{method:"DELETE"}),aprovarProduto:e=>ee(`/api/produtos/${e}/aprovar`,{method:"POST"}),analisarProduto:e=>ee(`/api/produtos/${e}/analisar`,{method:"POST"}),llmProviders:()=>ee("/api/llm/providers"),llmTest:e=>ee("/api/llm/test",{method:"POST",body:JSON.stringify({id:e})}),infoprodutos:()=>ee("/api/infoprodutos"),createInfoproduto:e=>ee("/api/infoprodutos",{method:"POST",body:JSON.stringify(e)}),deleteInfoproduto:e=>ee(`/api/infoprodutos/${e}`,{method:"DELETE"}),infoprodutoMarkdown:e=>ee(`/api/infoprodutos/${e}/markdown`)},ja=[{to:"/",emoji:"📦",label:"Seus Produtos"},{to:"/dashboard",emoji:"📊",label:"AdsDashboard"},{emoji:"🌐",label:"AdsHosting",children:[{to:"/hosting/dominios",label:"Domínios"},{to:"/hosting/paginas",label:"Páginas Criadas"}]},{emoji:"📖",label:"Infoprodutos",children:[{to:"/studio",label:"Criar Infoproduto"},{to:"/studio/biblioteca",label:"Biblioteca"}]},{to:"/adspages",emoji:"🛡️",label:"AdsPages"},{to:"/adswords",emoji:"✈️",label:"AdsWords"},{to:"/adscreator",emoji:"🎯",label:"AdsCreator"},{emoji:"🔄",label:"AdsTracking",children:[{to:"/tracking/visitas",label:"Minhas Visitas"},{to:"/tracking/vendas",label:"Minhas Vendas"},{to:"/tracking/gclid",label:"Conversões GCLID"}]},{to:"/adsbot",emoji:"🤖",label:"AdsBot"},{to:"/pinterest",emoji:"📌",label:"Pinterest"},"divider",{to:"/contas-google",emoji:"🔑",label:"Contas do Google"},{to:"/api-keys",emoji:"🔌",label:"Chaves de API"},{to:"/notificacoes",emoji:"🔔",label:"Notificações"},{to:"/logs",emoji:"📋",label:"Logs"},{to:"/faq",emoji:"❓",label:"FAQ & Documentação"}];function jm(){const e=vr(),t=kn(),{version:n,logout:r}=rs(),[l,i]=x.useState(()=>{const u=new Set;for(const c of ja)c.children&&c.children.some(m=>m.to===e.pathname)&&u.add(c.label);return u}),o=u=>i(c=>{const m=new Set(c);return m.has(u)?m.delete(u):m.add(u),m}),a=async()=>{await r(),t("/login")};return s.jsxs("aside",{className:"sidebar",children:[s.jsxs("div",{className:"logo-area",children:["🚀 ProdMaker ",n&&s.jsxs("span",{className:"badge",children:["v",n]})]}),s.jsx("nav",{children:s.jsx("ul",{children:ja.map((u,c)=>{if(u==="divider"||u.divider)return s.jsx("div",{className:"divider"},`d${c}`);if(u.children){const m=u.children.some(p=>p.to===e.pathname),h=l.has(u.label)||m;return s.jsxs("li",{className:`has-submenu ${h?"expanded":""}`,children:[s.jsxs("div",{onClick:()=>o(u.label),children:[s.jsx("span",{style:{fontSize:"16px"},children:u.emoji})," ",u.label,s.jsx("span",{className:"submenu-arrow",children:"▼"})]}),s.jsx("ul",{children:u.children.map(p=>s.jsx("li",{className:e.pathname===p.to?"active":"",onClick:()=>t(p.to),children:p.label},p.to))})]},u.label)}return s.jsxs("li",{className:`nav-item ${e.pathname===u.to?"active":""}`,onClick:()=>t(u.to),children:[s.jsx("span",{style:{fontSize:"16px"},children:u.emoji})," ",u.label]},u.to)})})}),s.jsx("div",{className:"sidebar-bottom",children:s.jsx("button",{className:"btn-logout",onClick:a,children:"🚪 Sair"})})]})}function Cm(){const{session:e,theme:t,toggleTheme:n}=rs(),r=kn(),i=((e==null?void 0:e.email)||"").split("@")[0]||"usuário";return s.jsxs("header",{className:"top-bar",children:[s.jsx("div",{className:"promo-banner",onClick:()=>r("/adsbot"),title:"Abrir o AdsBot",children:"🚀 Novo Lançamento — conduza seu lançamento passo a passo no AdsBot →"}),s.jsxs("div",{className:"user-profile",children:["Olá, ",i,s.jsx("span",{className:"avatar",children:i.charAt(0)}),s.jsx("button",{className:"theme-toggle",onClick:n,title:"Alternar Tema",children:t==="light"?"🌙":"☀️"})]})]})}const bc=x.createContext(null),Dl=()=>x.useContext(bc);function Em({children:e}){const[t,n]=x.useState([]),r=x.useCallback(l=>{const i=Date.now()+Math.random();n(o=>[...o,{id:i,message:l}]),setTimeout(()=>n(o=>o.filter(a=>a.id!==i)),3e3)},[]);return s.jsxs(bc.Provider,{value:{toast:r},children:[e,t.map((l,i)=>s.jsxs("div",{className:"toast",style:{top:70+i*70},children:[s.jsx("span",{children:"✓"}),s.jsx("div",{children:l.message})]},l.id))]})}const Nm=[{number:"1",icon:"inventory_2",title:"Adicione o produto",last:!1},{number:"2",icon:"web",title:"Crie a Presell",last:!1},{number:"3",icon:"campaign",title:"Crie a Campanha",last:!1},{number:"4",icon:"trending_up",title:"Receba Vendas",last:!0}],Pm=[{code:"pt",label:"Português"},{code:"en",label:"English"},{code:"es",label:"Español"}];function _m(){const{login:e}=rs(),t=kn(),[n,r]=x.useState(""),[l,i]=x.useState(""),[o,a]=x.useState(!1),[u,c]=x.useState("pt"),[m,h]=x.useState(""),[p,g]=x.useState(!1),w=async y=>{y.preventDefault(),h(""),g(!0);try{await e(n,l),t("/",{replace:!0})}catch(C){h(C.message||"Não foi possível entrar. Verifique o e-mail e o código de ativação.")}finally{g(!1)}};return s.jsxs("div",{className:"login-page",children:[s.jsxs("div",{className:"login-left",children:[s.jsxs("div",{className:"login-left-content",children:[s.jsxs("h1",{className:"login-left-title",children:[s.jsx("span",{children:"Tudo o que o afiliado precisa"})," ",s.jsx("br",{}),s.jsx("span",{className:"highlight-text",children:"para vender"})," ",s.jsx("br",{}),s.jsx("span",{children:"em um só lugar"})]}),s.jsx("p",{className:"login-left-description",children:"Menos configuração, mais vendas!"}),s.jsx("div",{className:"features-grid",children:Nm.map(y=>s.jsxs("div",{className:"feature-step-item",children:[s.jsxs("div",{className:`feature-card feature-step ${y.last?"feature-step-last":""}`,children:[s.jsx("span",{className:"feature-step-number","aria-hidden":"true",children:y.number}),s.jsx("div",{className:"feature-step-icon",children:s.jsx("i",{className:"material-symbols-outlined",children:y.icon})}),!y.last&&s.jsx("div",{className:"feature-step-arrow"})]}),s.jsx("h3",{className:"feature-title",children:y.title})]},y.number))})]}),s.jsx("div",{className:"login-blur-effect blur-effect-center"}),s.jsx("div",{className:"login-blur-effect blur-effect-1"}),s.jsx("div",{className:"login-blur-effect blur-effect-2"}),s.jsx("div",{className:"login-particle",style:{left:"8%",width:"4px",height:"4px",background:"#8b3fbf",opacity:.5,animationDuration:"10s",animationDelay:"0s"}}),s.jsx("div",{className:"login-particle",style:{left:"22%",width:"3px",height:"3px",background:"#8b3fbf",opacity:.4,animationDuration:"11s",animationDelay:"1s"}}),s.jsx("div",{className:"login-particle",style:{left:"38%",width:"5px",height:"5px",background:"#8b3fbf",opacity:.4,animationDuration:"11s",animationDelay:"1s"}}),s.jsx("div",{className:"login-particle",style:{left:"55%",width:"3px",height:"3px",background:"#8b3fbf",opacity:.4,animationDuration:"11s",animationDelay:"1s"}}),s.jsx("div",{className:"login-particle",style:{left:"70%",width:"4px",height:"4px",background:"#ee476f",opacity:.35,animationDuration:"14s",animationDelay:"0.5s"}}),s.jsx("div",{className:"login-particle",style:{left:"82%",width:"3px",height:"3px",background:"#8b3fbf",opacity:.45,animationDuration:"12s",animationDelay:"1.8s"}}),s.jsx("div",{className:"login-particle",style:{left:"93%",width:"4px",height:"4px",background:"#a653d4",opacity:.3,animationDuration:"10s",animationDelay:"3.8s"}})]}),s.jsxs("div",{className:"login-right",children:[s.jsx("div",{className:"login-language-toggle",children:s.jsxs("div",{className:"language-toggle-wrapper",children:[s.jsx("button",{className:"language-toggle-btn",title:"Alterar idioma",type:"button",children:s.jsx("span",{className:"material-symbols-outlined",children:"translate"})}),s.jsx("div",{className:"language-toggle-dropdown",children:Pm.map(y=>s.jsx("div",{className:`language-toggle-item ${u===y.code?"active":""}`,onClick:()=>c(y.code),children:y.label},y.code))})]})}),s.jsxs("div",{className:"login-form",children:[s.jsx("h2",{children:"Bem-vindo de volta!"}),s.jsx("p",{className:"login-subtitle",children:"Insira seu e-mail e código de ativação"}),s.jsxs("form",{onSubmit:w,children:[m&&s.jsx("div",{className:"login-error",children:m}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{htmlFor:"email",children:"E-mail:"}),s.jsxs("div",{className:"email-input-wrapper",children:[s.jsx("span",{className:"material-symbols-outlined email-icon",children:"mail"}),s.jsx("input",{id:"email",type:"email",required:!0,placeholder:"seu@email.com",value:n,onChange:y=>r(y.target.value),autoComplete:"email"})]})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{htmlFor:"activationCode",children:"Código de Ativação"}),s.jsxs("div",{className:"password-input-wrapper",children:[s.jsx("span",{className:"material-symbols-outlined lock-icon",children:"lock"}),s.jsx("input",{id:"activationCode",type:o?"text":"password",required:!0,placeholder:"********",value:l,onChange:y=>i(y.target.value),autoComplete:"current-password"}),s.jsx("button",{type:"button",className:"password-toggle-btn","aria-label":o?"Ocultar código":"Mostrar código",onClick:()=>a(y=>!y),children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 -960 960 960",width:"20px",fill:"currentColor",children:s.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Z"})})})]})]}),s.jsx("button",{type:"submit",className:"login-button",disabled:p,children:s.jsx("span",{children:p?"Entrando…":"Entrar"})})]}),s.jsxs("div",{className:"support-link",children:[s.jsxs("p",{children:[s.jsx("span",{children:"Esqueceu o código de ativação?"}),s.jsx("a",{href:"/faq",children:"Clique aqui"})]}),s.jsx("p",{children:s.jsx("span",{children:"Problemas com a ativação? Use o chat de suporte abaixo"})})]})]}),s.jsxs("div",{className:"login-footer-bottom",children:[s.jsxs("div",{style:{marginBottom:"10px"},children:[s.jsx("a",{href:"/legal/terms.html",target:"_blank",rel:"noreferrer",children:"Termos de Serviço"}),s.jsx("span",{style:{opacity:.5},children:"|"}),s.jsx("a",{href:"/legal/privacy.html",target:"_blank",rel:"noreferrer",children:"Política de Privacidade"})]}),s.jsx("div",{children:"© 2026. Todos os direitos reservados."})]})]})]})}function ar({open:e,title:t,onClose:n,children:r}){return e?s.jsx("div",{className:"modal-overlay",onClick:l=>{l.target===l.currentTarget&&n()},children:s.jsxs("div",{className:"modal-content",children:[s.jsx("button",{className:"modal-close",onClick:n,children:"✕"}),t&&s.jsx("h2",{children:t}),r]})}):null}const Tm=["Clickbank","Hotmart","Digistore24","Kiify","Cakto","Outro"],Ca={nome:"",plataforma:"Clickbank",link_afiliado:"",comissao:"",preco:"",nicho:""};function Lm(e){if(!e)return"—";const[t]=e.split(" "),[n,r,l]=t.split("-");return n?`${l}/${r}/${n.slice(2)}`:e}function ed(e){if(!(e!=null&&e.analysis))return null;if(typeof e.analysis=="string")try{return JSON.parse(e.analysis)}catch{return null}return e.analysis}function zm({produto:e,onClose:t}){const n=ed(e);if(!n)return null;const r=n.analise||n;return s.jsxs(ar,{open:!0,title:`🧠 Análise — ${e.nome}`,onClose:t,children:[r.resumo&&s.jsxs("p",{style:{fontSize:"14px",marginBottom:"14px"},children:[s.jsx("strong",{children:"Resumo:"})," ",r.resumo]}),Array.isArray(r.angulos_copy)&&s.jsxs("div",{style:{marginBottom:"12px"},children:[s.jsx("strong",{style:{fontSize:"13px"},children:"Ângulos de copy"}),s.jsx("ul",{className:"placeholder-list",children:r.angulos_copy.map((l,i)=>s.jsx("li",{children:l},i))})]}),Array.isArray(r.palavras_chave)&&s.jsxs("div",{style:{marginBottom:"12px"},children:[s.jsx("strong",{style:{fontSize:"13px"},children:"Palavras-chave sugeridas"}),s.jsx("ul",{className:"placeholder-list",children:r.palavras_chave.map((l,i)=>s.jsx("li",{children:l},i))})]}),Array.isArray(r.negativas_sugeridas)&&s.jsxs("div",{style:{marginBottom:"12px"},children:[s.jsx("strong",{style:{fontSize:"13px"},children:"Negativas sugeridas"}),s.jsx("ul",{className:"placeholder-list",children:r.negativas_sugeridas.map((l,i)=>s.jsx("li",{children:l},i))})]}),r.brief_presell&&s.jsxs("div",{style:{marginBottom:"12px"},children:[s.jsx("strong",{style:{fontSize:"13px"},children:"Brief da presell"}),s.jsx("p",{style:{fontSize:"14px",color:"var(--text-muted)",marginTop:"6px"},children:r.brief_presell})]}),r.publico&&s.jsxs("div",{children:[s.jsx("strong",{style:{fontSize:"13px"},children:"Público"}),s.jsx("p",{style:{fontSize:"14px",color:"var(--text-muted)",marginTop:"6px"},children:r.publico})]}),s.jsxs("p",{className:"placeholder-note",children:["Análise gerada por: ",n.provider||"IA"]})]})}function Rm(){const e=kn(),{toast:t}=Dl(),[n,r]=x.useState([]),[l,i]=x.useState(!0),[o,a]=x.useState(""),[u,c]=x.useState("em_analise"),[m,h]=x.useState(""),[p,g]=x.useState(!1),[w,y]=x.useState(null),[C,f]=x.useState(Ca),[d,v]=x.useState(!1),[k,E]=x.useState(null),[T,P]=x.useState(null),z=x.useCallback(async()=>{i(!0),a("");try{r(await q.produtos())}catch(_){a(_.message||"Falha ao carregar produtos.")}finally{i(!1)}},[]);x.useEffect(()=>{z()},[z]);const S=x.useMemo(()=>{const _=m.trim().toLowerCase();return n.filter($=>$.status===u&&(!_||$.nome.toLowerCase().includes(_)||($.nicho||"").toLowerCase().includes(_)))},[n,u,m]),R=()=>{y(null),f(Ca),g(!0)},K=_=>{y(_),f({nome:_.nome||"",plataforma:_.plataforma||"Outro",link_afiliado:_.link_afiliado||"",comissao:_.comissao??"",preco:_.preco??"",nicho:_.nicho||""}),g(!0)},Oe=async _=>{_.preventDefault(),v(!0);try{const $={nome:C.nome,plataforma:C.plataforma,link_afiliado:C.link_afiliado,comissao:Number(C.comissao)||0,preco:Number(C.preco)||0,nicho:C.nicho};w?(await q.updateProduto(w.id,$),t("Produto atualizado!")):(await q.createProduto($),t("Produto adicionado — em análise!")),g(!1),await z()}catch($){t($.message||"Falha ao salvar o produto.")}finally{v(!1)}},Et=async _=>{P(_.id);try{const $=await q.aprovarProduto(_.id);t(`"${_.nome}" aprovado!`),await z(),$.analysis?E($):$.analysis_error&&t(`Análise IA indisponível: ${$.analysis_error}`)}catch($){t($.message||"Falha ao aprovar.")}finally{P(null)}},gr=async _=>{P(_.id);try{const $=await q.analisarProduto(_.id);t("Análise gerada!"),await z(),E($)}catch($){t($.message||"Falha na análise.")}finally{P(null)}},Ml=async _=>{if(window.confirm(`Excluir o produto "${_.nome}"?`))try{await q.deleteProduto(_.id),t("Produto excluído."),await z()}catch($){t($.message||"Falha ao excluir.")}};return s.jsxs("section",{children:[s.jsx("h1",{children:"Seus Produtos"}),s.jsx("p",{className:"subtitle",children:"Analise, aprove e anuncie seus produtos."}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[s.jsx("input",{type:"text",placeholder:"Produto...",value:m,onChange:_=>h(_.target.value),style:{padding:"10px",width:"300px",border:"1px solid var(--border)",borderRadius:"6px",background:"var(--input-bg)",color:"var(--text-main)",outline:"none"}}),s.jsx("button",{className:"btn-primary",onClick:R,children:"+ Adicionar produto"})]}),s.jsxs("div",{className:"tabs",children:[s.jsx("div",{className:`tab ${u==="em_analise"?"active":""}`,onClick:()=>c("em_analise"),children:"🔍 Em Análise"}),s.jsx("div",{className:`tab ${u==="aprovado"?"active":""}`,onClick:()=>c("aprovado"),children:"✓ Aprovados"})]}),o&&s.jsx("div",{className:"login-error",children:o}),s.jsxs("table",{children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Atualizado"}),s.jsx("th",{children:"Produto"}),s.jsx("th",{children:"Plataforma"}),s.jsx("th",{children:"Ações"})]})}),s.jsx("tbody",{children:l?s.jsx("tr",{className:"empty-row",children:s.jsx("td",{colSpan:4,children:"Carregando…"})}):S.length===0?s.jsx("tr",{className:"empty-row",children:s.jsx("td",{colSpan:4,children:u==="em_analise"?"Nenhum produto em análise. Clique em “+ Adicionar produto” para começar.":"Nenhum produto aprovado ainda. Aprove um produto na aba “Em Análise”."})}):S.map(_=>s.jsxs("tr",{children:[s.jsx("td",{children:Lm(_.updated_at)}),s.jsxs("td",{children:[_.nome,_.nicho?s.jsxs("span",{style:{color:"var(--text-muted)"},children:[" · ",_.nicho]}):null]}),s.jsx("td",{children:_.plataforma}),s.jsx("td",{className:"action-icons",children:_.status==="em_analise"?s.jsxs(s.Fragment,{children:[s.jsx("span",{title:"Editar",onClick:()=>K(_),children:"✏️"}),s.jsx("span",{title:"AdsWords (palavras-chave)",onClick:()=>e("/adswords"),children:"✈️ AdsWord"}),s.jsx("span",{title:T===_.id?"Aprovando (análise IA se LLM ativo)…":"Aprovar",onClick:()=>Et(_),children:T===_.id?"⏳":"✓ Aprovar"})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{title:"AdsPages (criar presell)",onClick:()=>e("/adspages"),children:"🛡️ AdsPages"}),s.jsx("span",{title:"AdsCreator (criar campanha)",onClick:()=>e("/adscreator"),children:"🎯 AdsCreator"}),s.jsx("span",{title:"AdsWords (palavras-chave)",onClick:()=>e("/adswords"),children:"✈️ AdsWord"}),ed(_)?s.jsx("span",{title:"Ver análise IA",onClick:()=>E(_),children:"🧠"}):s.jsx("span",{title:T===_.id?"Analisando com IA…":"Gerar análise IA",onClick:()=>gr(_),children:T===_.id?"⏳":"🔬"}),s.jsx("span",{title:"Excluir",onClick:()=>Ml(_),children:"🗑️"})]})})]},_.id))})]}),s.jsx(ar,{open:p,title:w?"Editar Produto":"Adicionar Produto",onClose:()=>g(!1),children:s.jsxs("form",{onSubmit:Oe,children:[s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Nome do produto"}),s.jsx("input",{required:!0,value:C.nome,onChange:_=>f({...C,nome:_.target.value}),placeholder:"Ex.: Prodentim"})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Plataforma"}),s.jsx("select",{value:C.plataforma,onChange:_=>f({...C,plataforma:_.target.value}),children:Tm.map(_=>s.jsx("option",{value:_,children:_},_))})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Nicho"}),s.jsx("input",{value:C.nicho,onChange:_=>f({...C,nicho:_.target.value}),placeholder:"Ex.: saúde"})]})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Link de afiliado / checkout"}),s.jsx("input",{value:C.link_afiliado,onChange:_=>f({...C,link_afiliado:_.target.value}),placeholder:"https://..."})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Comissão (R$)"}),s.jsx("input",{type:"number",step:"0.01",min:"0",value:C.comissao,onChange:_=>f({...C,comissao:_.target.value})})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Preço (R$)"}),s.jsx("input",{type:"number",step:"0.01",min:"0",value:C.preco,onChange:_=>f({...C,preco:_.target.value})})]})]}),s.jsx("button",{className:"btn-primary",type:"submit",disabled:d,style:{width:"100%",marginTop:"10px"},children:d?"Salvando…":w?"Salvar alterações":"Salvar"})]})}),s.jsx(zm,{produto:k,onClose:()=>E(null)})]})}function Am(){return s.jsxs("section",{children:[s.jsx("h1",{children:"AdsDashboard"}),s.jsx("p",{className:"subtitle",children:"Tenha uma visão completa da sua operação."}),s.jsxs("div",{className:"metrics-grid",children:[s.jsxs("div",{className:"metric-card",children:[s.jsx("h3",{children:"Conversões"}),s.jsx("div",{className:"value",children:"0"})]}),s.jsxs("div",{className:"metric-card",children:[s.jsx("h3",{children:"Lucro Líquido"}),s.jsx("div",{className:"value green",children:"R$ 0,00"})]}),s.jsxs("div",{className:"metric-card",children:[s.jsx("h3",{children:"ROAS"}),s.jsx("div",{className:"value green",children:"—"})]}),s.jsxs("div",{className:"metric-card",children:[s.jsx("h3",{children:"Investimento"}),s.jsx("div",{className:"value purple",children:"R$ 0,00"})]})]}),s.jsx("p",{className:"metrics-note",children:"As métricas reais aparecem aqui conforme campanhas (AdsCreator) e tracking (AdsTracking) forem ativados. O ProdMaker nunca inventa dados — enquanto não houver eventos, os valores ficam zerados."})]})}const Im={nvidia:{kind:"openai",base_url:"https://integrate.api.nvidia.com/v1",model:""},gemini:{kind:"gemini",base_url:"",model:"gemini-2.5-flash"}},Om=[{id:"gamma",emoji:"🎨",name:"Gamma AI",fields:[{key:"api_key",label:"API Key",secret:!0},{key:"base_url",label:"Base URL",placeholder:"https://api.app.gamma"}]},{id:"github",emoji:"🐙",name:"GitHub",fields:[{key:"token",label:"Token (PAT)",secret:!0},{key:"repo",label:"Repositório de páginas (opcional)",placeholder:"usuario/prodmaker-pages"}]},{id:"cloudflare",emoji:"☁️",name:"Cloudflare",fields:[{key:"api_token",label:"API Token",secret:!0},{key:"account_id",label:"Account ID"}]},{id:"telegram",emoji:"✈️",name:"Telegram",fields:[{key:"bot_token",label:"Bot Token",secret:!0},{key:"chat_id",label:"Chat ID"}]},{id:"pinterest",emoji:"📌",name:"Pinterest",fields:[{key:"email",label:"E-mail"},{key:"password",label:"Senha",secret:!0},{key:"board",label:"Board padrão"}]},{id:"google-ads",emoji:"🎯",name:"Google Ads",fields:[{key:"developer_token",label:"Developer Token",secret:!0},{key:"client_id",label:"OAuth Client ID"},{key:"client_secret",label:"OAuth Client Secret",secret:!0},{key:"refresh_token",label:"Refresh Token",secret:!0},{key:"customer_id",label:"Customer ID (XXX-XXX-XXXX)"}]},{id:"meta",emoji:"👥",name:"Meta Ads",fields:[{key:"app_id",label:"App ID"},{key:"app_secret",label:"App Secret",secret:!0},{key:"access_token",label:"Access Token (sistema)",secret:!0},{key:"ad_account_id",label:"Ad Account ID (act_...)"}]},{id:"tiktok",emoji:"🎵",name:"TikTok Ads",fields:[{key:"app_id",label:"App ID"},{key:"app_secret",label:"App Secret",secret:!0},{key:"access_token",label:"Access Token",secret:!0},{key:"advertiser_id",label:"Advertiser ID"}]},{id:"canva",emoji:"🖼️",name:"Canva (MCP)",soon:!0}];function Dm(){const{toast:e}=Dl(),[t,n]=x.useState([]),[r,l]=x.useState({}),[i,o]=x.useState(null),[a,u]=x.useState({}),[c,m]=x.useState(null),[h,p]=x.useState(!1),[g,w]=x.useState(!1),y=x.useCallback(async()=>{try{const[S,R]=await Promise.all([q.llmProviders(),q.settings()]);n(S),l(R.api_keys||{})}catch(S){e(S.message||"Falha ao carregar configurações.")}},[e]);x.useEffect(()=>{y()},[y]);const C=S=>t.find(R=>R.id===S),f=S=>{const R=C(S)||{id:S,...Im[S],api_key:"",priority:S==="nvidia"?1:2,active:!1};u({...R}),m(null),o(S)},d=S=>{u({...r[S.id]||{}}),m(null),o(S)},v=async()=>{w(!0);try{const S=t.filter(K=>K.id!==a.id);S.push({id:a.id,kind:a.kind,api_key:(a.api_key||"").trim(),base_url:(a.base_url||"").trim(),model:(a.model||"").trim(),priority:Number(a.priority)||99,active:!!a.active}),S.sort((K,Oe)=>(K.priority||99)-(Oe.priority||99));const R=(await q.llmProviders,null);await k(S),e(`Cartão ${a.id} salvo!`),o(null),await y()}catch(S){e(S.message||"Falha ao salvar.")}finally{w(!1)}},k=async S=>{await fetch("/api/llm/providers",{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({providers:S})}).then(async R=>{if(!R.ok){const K=await R.json().catch(()=>({}));throw new Error(K.detail||`Erro ${R.status}`)}})},E=async S=>{w(!0);try{const R=await q.settings();R.api_keys={...R.api_keys||{},[S.id]:a},await q.saveSettings(R),e(`Cartão ${S.name} salvo!`),o(null),await y()}catch(R){e(R.message||"Falha ao salvar.")}finally{w(!1)}},T=async()=>{p(!0),m(null);try{const S=await q.llmTest(a.id);m({ok:!0,text:`OK — ${S.model||"modelo"} respondeu em ${S.latency_ms} ms`})}catch(S){m({ok:!1,text:S.message||"Falha no teste."})}finally{p(!1)}},P=S=>{const R=C(S);return!!(R&&R.active&&R.api_key)},z=(S,R)=>{const K=r[S]||{};return R.some(Oe=>(K[Oe.key]||"").trim())};return s.jsxs("section",{children:[s.jsx("h1",{children:"🔌 Chaves de API"}),s.jsx("p",{className:"subtitle",children:"Integrações do ProdMaker. As chaves ficam apenas no seu storage local — nunca no GitHub."}),s.jsx("h3",{style:{fontSize:"15px",margin:"24px 0 8px"},children:"🤖 Provedores LLM (pool com prioridade e failover)"}),s.jsx("div",{className:"api-grid",children:[{id:"nvidia",emoji:"🤖",name:"NVIDIA NIM"},{id:"gemini",emoji:"✨",name:"Gemini"}].map(S=>s.jsxs("div",{className:"api-card",onClick:()=>f(S.id),children:[s.jsxs("div",{className:"api-logo",children:[S.emoji," ",S.name]}),s.jsx("div",{className:"api-status",style:{color:P(S.id)?"var(--success)":"var(--text-muted)"},children:P(S.id)?"Configurado":"Não configurado"})]},S.id))}),s.jsx("h3",{style:{fontSize:"15px",margin:"28px 0 8px"},children:"🔌 Demais integrações"}),s.jsx("div",{className:"api-grid",children:Om.map(S=>s.jsxs("div",{className:"api-card",style:S.soon?{opacity:.55,cursor:"default"}:{},onClick:()=>!S.soon&&d(S),title:S.soon?"Em breve":"Configurar",children:[s.jsxs("div",{className:"api-logo",children:[S.emoji," ",S.name]}),s.jsx("div",{className:"api-status",style:{color:z(S.id,S.fields||[])?"var(--success)":"var(--text-muted)"},children:S.soon?"Em breve":z(S.id,S.fields)?"Configurado":"Não configurado"})]},S.id))}),s.jsx(ar,{open:i==="nvidia"||i==="gemini",title:`Provedor LLM — ${i}`,onClose:()=>o(null),children:["nvidia","gemini"].includes(i)&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"API Key"}),s.jsx("input",{type:"password",value:a.api_key||"",onChange:S=>u({...a,api_key:S.target.value}),placeholder:i==="nvidia"?"nvapi-...":"AIza..."})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Modelo"}),s.jsx("input",{value:a.model||"",onChange:S=>u({...a,model:S.target.value}),placeholder:i==="nvidia"?"ex.: nvidia/nemotron-...":"gemini-2.5-flash"})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Prioridade (1 = primeiro)"}),s.jsx("input",{type:"number",min:"1",value:a.priority??2,onChange:S=>u({...a,priority:S.target.value})})]})]}),i==="nvidia"&&s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Base URL (compatível OpenAI)"}),s.jsx("input",{value:a.base_url||"",onChange:S=>u({...a,base_url:S.target.value}),placeholder:"https://integrate.api.nvidia.com/v1"})]}),s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",fontWeight:600,marginBottom:"16px"},children:[s.jsx("input",{type:"checkbox",checked:!!a.active,onChange:S=>u({...a,active:S.target.checked}),style:{width:"auto"}}),"Ativo (participa do pool)"]}),c&&s.jsxs("div",{className:c.ok?"api-status":"login-error",style:{marginBottom:"12px",fontWeight:600},children:[c.ok?"✅":"❌"," ",c.text]}),s.jsxs("div",{style:{display:"flex",gap:"10px",marginTop:"10px"},children:[s.jsx("button",{className:"btn-outline",onClick:T,disabled:h||!(a.api_key||"").trim(),children:h?"Testando…":"Testar chamada"}),s.jsx("button",{className:"btn-primary",onClick:v,disabled:g,children:g?"Salvando…":"Salvar"})]})]})}),s.jsx(ar,{open:!!(i&&i.fields),title:`${(i==null?void 0:i.emoji)||""} ${(i==null?void 0:i.name)||""}`,onClose:()=>o(null),children:(i==null?void 0:i.fields)&&s.jsxs(s.Fragment,{children:[i.fields.map(S=>s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:S.label}),s.jsx("input",{type:S.secret?"password":"text",value:a[S.key]||"",onChange:R=>u({...a,[S.key]:R.target.value}),placeholder:S.placeholder||""})]},S.key)),s.jsx("div",{style:{display:"flex",gap:"10px",marginTop:"10px"},children:s.jsx("button",{className:"btn-primary",onClick:()=>E(i),disabled:g,children:g?"Salvando…":"Salvar"})})]})})]})}const Mm=["E-book","Planilha","Mini-curso","Desafio","Workshop"],Fm={titulo:"",prompt:"",formato:"E-book",nicho:"",dor:"",avatar:"",resultado:"",modo:"rapido"};function $m(){const{toast:e}=Dl(),t=kn(),[n,r]=x.useState(Fm),[l,i]=x.useState(!1),[o,a]=x.useState(""),[u,c]=x.useState(null),m=p=>g=>r({...n,[p]:g.target.value}),h=async p=>{p.preventDefault(),a(""),i(!0),c(null);try{const g=await q.createInfoproduto(n);c(g),e(`Infoproduto "${g.titulo}" gerado!`)}catch(g){a(g.message||"Falha ao gerar o infoproduto.")}finally{i(!1)}};return s.jsxs("section",{children:[s.jsx("h1",{children:"📖 Criar Infoproduto"}),s.jsx("p",{className:"subtitle",children:"Gere e-books, planilhas e mini-cursos em PDF com IA — Modo Rápido (LLM + PDF local) ou Premium (Gamma AI)."}),s.jsxs("div",{className:"form-card",children:[s.jsxs("form",{onSubmit:h,children:[s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Modo"}),s.jsxs("select",{value:n.modo,onChange:m("modo"),children:[s.jsx("option",{value:"rapido",children:"⚡ Modo Rápido (open source — LLM + PDF local)"}),s.jsx("option",{value:"gamma",children:"🎨 Modo Premium (Gamma AI)"}),s.jsx("option",{value:"canva",disabled:!0,children:"🖼️ Modo Canva (MCP — em breve)"})]})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Formato"}),s.jsx("select",{value:n.formato,onChange:m("formato"),children:Mm.map(p=>s.jsx("option",{value:p,children:p},p))})]})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Título desejado (máx. 6 palavras)"}),s.jsx("input",{required:!0,value:n.titulo,onChange:m("titulo"),placeholder:"Ex.: Cardápio 7 Dias: Receitas para Secar"})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Nicho"}),s.jsx("input",{value:n.nicho,onChange:m("nicho"),placeholder:"Ex.: emagrecimento"})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Dor específica"}),s.jsx("input",{value:n.dor,onChange:m("dor"),placeholder:"Ex.: passar fome para emagrecer"})]})]}),s.jsxs("div",{className:"form-row",children:[s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Avatar (público-alvo)"}),s.jsx("input",{value:n.avatar,onChange:m("avatar"),placeholder:"Ex.: mulheres 30-50 que trabalham fora"})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Resultado prometido"}),s.jsx("input",{value:n.resultado,onChange:m("resultado"),placeholder:"Ex.: secar em 7 dias sem passar fome"})]})]}),s.jsxs("div",{className:"form-group",children:[s.jsx("label",{children:"Prompt / instruções adicionais"}),s.jsx("textarea",{rows:4,value:n.prompt,onChange:m("prompt"),placeholder:"Descreva o conteúdo desejado, tom, quantidade de páginas, bônus..."})]}),o&&s.jsxs("div",{className:"login-error",children:[o,/Chaves de API|provedor/i.test(o)&&s.jsxs(s.Fragment,{children:[" — configure em ",s.jsx("a",{href:"/api-keys",onClick:p=>{p.preventDefault(),t("/api-keys")},children:"Chaves de API"}),"."]})]}),s.jsx("button",{className:"btn-primary",type:"submit",disabled:l,style:{width:"100%",marginTop:"10px"},children:l?n.modo==="gamma"?"🎨 Gerando na Gamma AI…":"✨ Gerando com IA…":"✨ Gerar Infoproduto"})]}),l&&s.jsx("p",{className:"placeholder-note",style:{marginTop:"12px"},children:"⏳ A geração usa o pool de LLM configurado e pode levar de 30 segundos a alguns minutos. Aguarde…"}),u&&s.jsxs("div",{className:"form-card",style:{marginTop:"20px",border:"1px solid var(--primary)",background:"var(--primary-light)"},children:[s.jsx("h3",{style:{marginBottom:"6px"},children:"✅ Infoproduto pronto!"}),s.jsxs("p",{style:{fontSize:"14px",marginBottom:"12px"},children:[s.jsx("strong",{children:u.titulo})," · ",u.formato," · provedor: ",u.provider]}),s.jsxs("div",{style:{display:"flex",gap:"10px"},children:[s.jsx("a",{className:"btn-primary",style:{textDecoration:"none"},href:`/api/infoprodutos/${u.id}/download`,children:"⬇️ Baixar PDF"}),s.jsx("button",{className:"btn-outline",onClick:()=>t("/studio/biblioteca"),children:"Abrir Biblioteca"})]})]})]})]})}function Um(e){if(!e)return"—";const[t]=e.split(" "),[n,r,l]=t.split("-");return n?`${l}/${r}/${n.slice(2)}`:e}function Bm(){const{toast:e}=Dl(),[t,n]=x.useState([]),[r,l]=x.useState(!0),[i,o]=x.useState(null),[a,u]=x.useState(!1),c=x.useCallback(async()=>{l(!0);try{n(await q.infoprodutos())}catch(p){e(p.message||"Falha ao carregar a biblioteca.")}finally{l(!1)}},[e]);x.useEffect(()=>{c()},[c]);const m=async p=>{u(!0),o({titulo:p.titulo,markdown:""});try{const g=await q.infoprodutoMarkdown(p.id);o({titulo:p.titulo,markdown:g.markdown})}catch(g){o(null),e(g.message||"Markdown indisponível para este item.")}finally{u(!1)}},h=async p=>{if(window.confirm(`Excluir o infoproduto "${p.titulo}"?`))try{await q.deleteInfoproduto(p.id),e("Infoproduto excluído."),await c()}catch(g){e(g.message||"Falha ao excluir.")}};return s.jsxs("section",{children:[s.jsx("h1",{children:"📚 Biblioteca de Infoprodutos"}),s.jsx("p",{className:"subtitle",children:"Seus infoprodutos gerados — download do PDF e visualização do conteúdo."}),s.jsxs("table",{children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Criado"}),s.jsx("th",{children:"Título"}),s.jsx("th",{children:"Formato"}),s.jsx("th",{children:"Modo"}),s.jsx("th",{children:"Ações"})]})}),s.jsx("tbody",{children:r?s.jsx("tr",{className:"empty-row",children:s.jsx("td",{colSpan:5,children:"Carregando…"})}):t.length===0?s.jsx("tr",{className:"empty-row",children:s.jsx("td",{colSpan:5,children:"Nenhum infoproduto ainda. Gere o primeiro em “Criar Infoproduto”."})}):t.map(p=>s.jsxs("tr",{children:[s.jsx("td",{children:Um(p.created_at)}),s.jsxs("td",{children:[p.titulo,p.nicho?s.jsxs("span",{style:{color:"var(--text-muted)"},children:[" · ",p.nicho]}):null]}),s.jsx("td",{children:p.formato}),s.jsx("td",{children:p.modo==="gamma"?"🎨 Premium":"⚡ Rápido"}),s.jsxs("td",{className:"action-icons",children:[s.jsx("a",{href:`/api/infoprodutos/${p.id}/download`,title:"Baixar PDF",style:{color:"inherit",textDecoration:"none"},children:"⬇️ PDF"}),p.md_path&&s.jsx("span",{title:"Ver conteúdo",onClick:()=>m(p),children:"👁️"}),s.jsx("span",{title:"Excluir",onClick:()=>h(p),children:"🗑️"})]})]},p.id))})]}),s.jsx(ar,{open:!!i,title:`Conteúdo — ${(i==null?void 0:i.titulo)||""}`,onClose:()=>o(null),children:a?s.jsx("p",{className:"placeholder-note",children:"Carregando…"}):s.jsx("pre",{style:{whiteSpace:"pre-wrap",fontFamily:"inherit",fontSize:"14px",lineHeight:1.6,color:"var(--text-main)"},children:i==null?void 0:i.markdown})})]})}function Se({emoji:e,title:t,subtitle:n,items:r=[]}){return s.jsxs("section",{children:[s.jsxs("h1",{children:[e," ",t]}),s.jsx("p",{className:"subtitle",children:n}),s.jsxs("div",{className:"form-card",children:[r.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("h3",{style:{fontSize:"15px",marginBottom:"6px"},children:"O que vem neste módulo"}),s.jsx("ul",{className:"placeholder-list",children:r.map((l,i)=>s.jsx("li",{children:l},i))})]}),s.jsx("p",{className:"placeholder-note",children:"🚧 Em desenvolvimento — chegue aqui nas próximas partes do roadmap (veja o CHANGELOG)."})]})]})}const Vm=()=>s.jsx(Se,{emoji:"🌐",title:"AdsHosting — Domínios",subtitle:"Gerencie seus domínios no Cloudflare e publique presells com SSL, DNS e antibot.",items:["Adicionar domínio e apontar name servers (verificação NS e registro A)","Status por domínio: pendente ou online (SSL, DNS, Antibot)","Tags, Pixels e Scripts opcionais por domínio","Publicação das páginas geradas direto no domínio via Cloudflare Pages"]}),Wm=()=>s.jsx(Se,{emoji:"📄",title:"AdsHosting — Páginas Criadas",subtitle:"Todas as presells e páginas de vendas hospedadas, com visitas e status.",items:["Tabela de páginas: nome, domínio, produto, visitas e status","Ações: ver online, editar, excluir e abrir estatísticas"]}),Hm=()=>s.jsx(Se,{emoji:"🛡️",title:"AdsPages",subtitle:"Crie e hospede presells nativas e páginas de vendas (12 seções) com pixel embutido.",items:["Pre-sell de afiliado com link de afiliado no CTA","Página de vendas própria com as 12 seções validadas","Clonagem e higienização de páginas (remoção de scripts/pixels do original)","Escolha do domínio (Cloudflare) e publicação com um clique"]}),Qm=()=>s.jsx(Se,{emoji:"✈️",title:"AdsWords",subtitle:"Palavras-chave e negativas para Google Ads (correspondência de frase).",items:["Gerador de palavras-chave com variações (review, funciona, onde comprar…)","Negativas padrão do seed (gratis, download, torrent, refund…)","Listas editáveis por produto e exportação"]}),Gm=()=>s.jsx(Se,{emoji:"🎯",title:"AdsCreator",subtitle:"Crie anúncios de alta conversão no Google, Meta e TikTok.",items:["Google Ads: Search com CPA 60–80% da comissão e orçamento R$100–120/dia","Meta Ads: 1 campanha → 1 conjunto → 5–20 criativos (público aberto + Advantage+)","TikTok Ads: vídeo 9:16 estilo UGC, teste US$10–20/dia","Gerador de criativos: gancho 3s + promessa + prova + CTA"]}),Km=()=>s.jsx(Se,{emoji:"🔄",title:"AdsTracking — Minhas Visitas (AdsPixel)",subtitle:"Captura dados de cada visitante das suas presells, sem scripts de terceiros.",items:["Cards de visitantes com IP, região, dispositivo e cliques repetidos","Alerta de drenagem de orçamento com cópia da lista de IPs","Funil: Visitas → Cliques de oferta → Checkouts → Vendas","Donuts de origem de tráfego, dispositivos e sistemas operacionais"]}),Xm=()=>s.jsx(Se,{emoji:"💸",title:"AdsTracking — Minhas Vendas",subtitle:"Vendas rastreadas por webhooks (Hotmart, ClickBank, Digistore24, Kiify, Cakto), entrada manual ou CSV.",items:["Tabela de vendas com produto, valor, comissão e origem","Configuração de webhooks","Importação CSV e lançamento manual"]}),Ym=()=>s.jsx(Se,{emoji:"📤",title:"AdsTracking — Conversões GCLID",subtitle:"Envie conversões offline (GCLID) de volta ao Google Ads.",items:["Upload de conversões via google-ads-python","Histórico e status de cada conversão enviada"]}),Jm=()=>s.jsx(Se,{emoji:"🤖",title:"AdsBot — Lançamento Assistido",subtitle:"Conduza um lançamento completo passo a passo: Produto → Página → Publicar → Campanhas → Tracking.",items:["Wizard com progresso persistido e retomável","Checklist final e Relatório de Lançamento","Fila de ações automáticas por etapa"]}),qm=()=>s.jsx(Se,{emoji:"📌",title:"Pinterest — Orgânico",subtitle:"Crie e agende pins (1000x1500) com SEO, apontando para suas presells.",items:["Gerador de ideias de pins por IA","Criação e agendamento via py3-pinterest","Boards temáticos e histórico"]}),Zm=()=>s.jsx(Se,{emoji:"🔑",title:"Contas do Google",subtitle:"Contas Google Ads conectadas (OAuth + developer token + customer IDs).",items:["Cards por conta com conectar/testar","Vinculação de subcontas MCC"]}),bm=()=>s.jsx(Se,{emoji:"🔔",title:"Notificações (AdsNotify)",subtitle:"Push de vendas e conclusões via Telegram/Discord/e-mail (apprise).",items:["Toggles por evento (venda, campanha criada, página publicada…)","Histórico local e toasts em tempo real"]}),eh=()=>s.jsx(Se,{emoji:"📋",title:"Logs",subtitle:"Histórico unificado de operações com attribution de provider.",items:["Tabela: Operação, Estado, Data/Hora, Origem, Detalhes","Filtros por operação e estado"]}),th=()=>s.jsx(Se,{emoji:"❓",title:"FAQ & Documentação",subtitle:"Perguntas frequentes e guias (hospedagem, Google Ads OAuth, webhooks, Gamma).",items:["FAQ em accordion","Guias de referência do seed/references","Termos e Privacidade (/legal)"]}),oo=x.createContext(null),rs=()=>x.useContext(oo);function nh(){const[e,t]=x.useState(()=>localStorage.getItem("prodmaker_theme")||"light");x.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("prodmaker_theme",e)},[e]);const n=x.useCallback(()=>t(r=>r==="light"?"dark":"light"),[]);return{theme:e,toggleTheme:n}}function rh(){const[e,t]=x.useState(null),[n,r]=x.useState(!0),[l,i]=x.useState(""),{theme:o,toggleTheme:a}=nh(),u=vr(),c=x.useCallback(async()=>{try{t(await q.session())}catch{t({authenticated:!1})}finally{r(!1)}},[]);x.useEffect(()=>{c()},[c]),x.useEffect(()=>{q.version().then(w=>i(w.version)).catch(()=>{})},[]);const m=x.useCallback(async(w,y)=>{const C=await q.login(w,y);return await c(),C},[c]),h=x.useCallback(async()=>{await q.logout().catch(()=>{}),await c()},[c]),p=u.pathname==="/login",g=e==null?void 0:e.authenticated;return p?s.jsx(oo.Provider,{value:{session:e,loading:n,version:l,login:m,logout:h,theme:o,toggleTheme:a},children:s.jsx(_m,{})}):n?s.jsx("div",{className:"loading-screen",children:"Carregando…"}):g?s.jsx(oo.Provider,{value:{session:e,loading:n,version:l,login:m,logout:h,theme:o,toggleTheme:a},children:s.jsx(Em,{children:s.jsxs("div",{className:"app-shell",children:[s.jsx(jm,{}),s.jsxs("main",{className:"main-content",children:[s.jsx(Cm,{}),s.jsx("div",{className:"content-wrapper",children:s.jsxs(xm,{children:[s.jsx(Y,{path:"/",element:s.jsx(Rm,{})}),s.jsx(Y,{path:"/dashboard",element:s.jsx(Am,{})}),s.jsx(Y,{path:"/hosting/dominios",element:s.jsx(Vm,{})}),s.jsx(Y,{path:"/hosting/paginas",element:s.jsx(Wm,{})}),s.jsx(Y,{path:"/studio",element:s.jsx($m,{})}),s.jsx(Y,{path:"/studio/biblioteca",element:s.jsx(Bm,{})}),s.jsx(Y,{path:"/adspages",element:s.jsx(Hm,{})}),s.jsx(Y,{path:"/adswords",element:s.jsx(Qm,{})}),s.jsx(Y,{path:"/adscreator",element:s.jsx(Gm,{})}),s.jsx(Y,{path:"/tracking/visitas",element:s.jsx(Km,{})}),s.jsx(Y,{path:"/tracking/vendas",element:s.jsx(Xm,{})}),s.jsx(Y,{path:"/tracking/gclid",element:s.jsx(Ym,{})}),s.jsx(Y,{path:"/adsbot",element:s.jsx(Jm,{})}),s.jsx(Y,{path:"/pinterest",element:s.jsx(qm,{})}),s.jsx(Y,{path:"/contas-google",element:s.jsx(Zm,{})}),s.jsx(Y,{path:"/api-keys",element:s.jsx(Dm,{})}),s.jsx(Y,{path:"/notificacoes",element:s.jsx(bm,{})}),s.jsx(Y,{path:"/logs",element:s.jsx(eh,{})}),s.jsx(Y,{path:"/faq",element:s.jsx(th,{})}),s.jsx(Y,{path:"*",element:s.jsx(xa,{to:"/",replace:!0})})]})})]})]})})}):s.jsx(xa,{to:"/login",replace:!0})}Fc(document.getElementById("root")).render(s.jsx(Oa.StrictMode,{children:s.jsx(Sm,{children:s.jsx(rh,{})})}));
|