playingpack 0.3.1 → 0.5.0
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/README.md +74 -73
- package/dist/index.js +4 -4
- package/package.json +17 -15
- package/public/assets/index-B5GdntfX.css +1 -0
- package/public/assets/index-DB6kGqLF.js +66 -0
- package/public/index.html +2 -2
- package/public/assets/index-C93ohr4T.css +0 -1
- package/public/assets/index-CXP13x6_.js +0 -89
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var Xf=Object.defineProperty;var Zf=(e,t,n)=>t in e?Xf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var rt=(e,t,n)=>Zf(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function na(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ra={exports:{}},Ri={},ia={exports:{}},I={};/**
|
|
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 cr=Symbol.for("react.element"),Jf=Symbol.for("react.portal"),ed=Symbol.for("react.fragment"),td=Symbol.for("react.strict_mode"),nd=Symbol.for("react.profiler"),rd=Symbol.for("react.provider"),id=Symbol.for("react.context"),ld=Symbol.for("react.forward_ref"),sd=Symbol.for("react.suspense"),ud=Symbol.for("react.memo"),od=Symbol.for("react.lazy"),_u=Symbol.iterator;function ad(e){return e===null||typeof e!="object"?null:(e=_u&&e[_u]||e["@@iterator"],typeof e=="function"?e:null)}var la={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sa=Object.assign,ua={};function Sn(e,t,n){this.props=e,this.context=t,this.refs=ua,this.updater=n||la}Sn.prototype.isReactComponent={};Sn.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")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oa(){}oa.prototype=Sn.prototype;function Os(e,t,n){this.props=e,this.context=t,this.refs=ua,this.updater=n||la}var _s=Os.prototype=new oa;_s.constructor=Os;sa(_s,Sn.prototype);_s.isPureReactComponent=!0;var Tu=Array.isArray,aa=Object.prototype.hasOwnProperty,Ts={current:null},ca={key:!0,ref:!0,__self:!0,__source:!0};function fa(e,t,n){var r,i={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)aa.call(t,r)&&!ca.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var o=Array(u),a=0;a<u;a++)o[a]=arguments[a+2];i.children=o}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:cr,type:e,key:l,ref:s,props:i,_owner:Ts.current}}function cd(e,t){return{$$typeof:cr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function js(e){return typeof e=="object"&&e!==null&&e.$$typeof===cr}function fd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ju=/\/+/g;function Yi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fd(""+e.key):t.toString(36)}function Fr(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case cr:case Jf:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Yi(s,0):r,Tu(i)?(n="",e!=null&&(n=e.replace(ju,"$&/")+"/"),Fr(i,t,n,"",function(a){return a})):i!=null&&(js(i)&&(i=cd(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(ju,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Tu(e))for(var u=0;u<e.length;u++){l=e[u];var o=r+Yi(l,u);s+=Fr(l,t,n,o,i)}else if(o=ad(e),typeof o=="function")for(e=o.call(e),u=0;!(l=e.next()).done;)l=l.value,o=r+Yi(l,u++),s+=Fr(l,t,n,o,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function wr(e,t,n){if(e==null)return e;var r=[],i=0;return Fr(e,r,"","",function(l){return t.call(n,l,i++)}),r}function dd(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 fe={current:null},Qr={transition:null},hd={ReactCurrentDispatcher:fe,ReactCurrentBatchConfig:Qr,ReactCurrentOwner:Ts};function da(){throw Error("act(...) is not supported in production builds of React.")}I.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(!js(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=Sn;I.Fragment=ed;I.Profiler=nd;I.PureComponent=Os;I.StrictMode=td;I.Suspense=sd;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hd;I.act=da;I.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=sa({},e.props),i=e.key,l=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,s=Ts.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(o in t)aa.call(t,o)&&!ca.hasOwnProperty(o)&&(r[o]=t[o]===void 0&&u!==void 0?u[o]:t[o])}var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){u=Array(o);for(var a=0;a<o;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:cr,type:e.type,key:i,ref:l,props:r,_owner:s}};I.createContext=function(e){return e={$$typeof:id,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:rd,_context:e},e.Consumer=e};I.createElement=fa;I.createFactory=function(e){var t=fa.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:ld,render:e}};I.isValidElement=js;I.lazy=function(e){return{$$typeof:od,_payload:{_status:-1,_result:e},_init:dd}};I.memo=function(e,t){return{$$typeof:ud,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=Qr.transition;Qr.transition={};try{e()}finally{Qr.transition=t}};I.unstable_act=da;I.useCallback=function(e,t){return fe.current.useCallback(e,t)};I.useContext=function(e){return fe.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return fe.current.useDeferredValue(e)};I.useEffect=function(e,t){return fe.current.useEffect(e,t)};I.useId=function(){return fe.current.useId()};I.useImperativeHandle=function(e,t,n){return fe.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return fe.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return fe.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return fe.current.useMemo(e,t)};I.useReducer=function(e,t,n){return fe.current.useReducer(e,t,n)};I.useRef=function(e){return fe.current.useRef(e)};I.useState=function(e){return fe.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return fe.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return fe.current.useTransition()};I.version="18.3.1";ia.exports=I;var T=ia.exports;const Gr=na(T);/**
|
|
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 pd=T,md=Symbol.for("react.element"),yd=Symbol.for("react.fragment"),vd=Object.prototype.hasOwnProperty,gd=pd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wd={key:!0,ref:!0,__self:!0,__source:!0};function ha(e,t,n){var r,i={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)vd.call(t,r)&&!wd.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:md,type:e,key:l,ref:s,props:i,_owner:gd.current}}Ri.Fragment=yd;Ri.jsx=ha;Ri.jsxs=ha;ra.exports=Ri;var C=ra.exports,Nl={},pa={exports:{}},Ce={},ma={exports:{}},ya={};/**
|
|
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(O,M){var D=O.length;O.push(M);e:for(;0<D;){var b=D-1>>>1,J=O[b];if(0<i(J,M))O[b]=M,O[D]=J,D=b;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var M=O[0],D=O.pop();if(D!==M){O[0]=D;e:for(var b=0,J=O.length,vr=J>>>1;b<vr;){var Nt=2*(b+1)-1,Gi=O[Nt],Ot=Nt+1,gr=O[Ot];if(0>i(Gi,D))Ot<J&&0>i(gr,Gi)?(O[b]=gr,O[Ot]=D,b=Ot):(O[b]=Gi,O[Nt]=D,b=Nt);else if(Ot<J&&0>i(gr,D))O[b]=gr,O[Ot]=D,b=Ot;else break e}}return M}function i(O,M){var D=O.sortIndex-M.sortIndex;return D!==0?D:O.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var o=[],a=[],p=1,v=null,d=3,y=!1,g=!1,m=!1,P=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(O){for(var M=n(a);M!==null;){if(M.callback===null)r(a);else if(M.startTime<=O)r(a),M.sortIndex=M.expirationTime,t(o,M);else break;M=n(a)}}function S(O){if(m=!1,h(O),!g)if(n(o)!==null)g=!0,Wi(k);else{var M=n(a);M!==null&&bi(S,M.startTime-O)}}function k(O,M){g=!1,m&&(m=!1,c(E),E=-1),y=!0;var D=d;try{for(h(M),v=n(o);v!==null&&(!(v.expirationTime>M)||O&&!W());){var b=v.callback;if(typeof b=="function"){v.callback=null,d=v.priorityLevel;var J=b(v.expirationTime<=M);M=e.unstable_now(),typeof J=="function"?v.callback=J:v===n(o)&&r(o),h(M)}else r(o);v=n(o)}if(v!==null)var vr=!0;else{var Nt=n(a);Nt!==null&&bi(S,Nt.startTime-M),vr=!1}return vr}finally{v=null,d=D,y=!1}}var w=!1,x=null,E=-1,j=5,_=-1;function W(){return!(e.unstable_now()-_<j)}function Me(){if(x!==null){var O=e.unstable_now();_=O;var M=!0;try{M=x(!0,O)}finally{M?Ee():(w=!1,x=null)}}else w=!1}var Ee;if(typeof f=="function")Ee=function(){f(Me)};else if(typeof MessageChannel<"u"){var yr=new MessageChannel,Vi=yr.port2;yr.port1.onmessage=Me,Ee=function(){Vi.postMessage(null)}}else Ee=function(){P(Me,0)};function Wi(O){x=O,w||(w=!0,Ee())}function bi(O,M){E=P(function(){O(e.unstable_now())},M)}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(O){O.callback=null},e.unstable_continueExecution=function(){g||y||(g=!0,Wi(k))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(o)},e.unstable_next=function(O){switch(d){case 1:case 2:case 3:var M=3;break;default:M=d}var D=d;d=M;try{return O()}finally{d=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,M){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var D=d;d=O;try{return M()}finally{d=D}},e.unstable_scheduleCallback=function(O,M,D){var b=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?b+D:b):D=b,O){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=D+J,O={id:p++,callback:M,priorityLevel:O,startTime:D,expirationTime:J,sortIndex:-1},D>b?(O.sortIndex=D,t(a,O),n(o)===null&&O===n(a)&&(m?(c(E),E=-1):m=!0,bi(S,D-b))):(O.sortIndex=J,t(o,O),g||y||(g=!0,Wi(k))),O},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(O){var M=d;return function(){var D=d;d=M;try{return O.apply(this,arguments)}finally{d=D}}}})(ya);ma.exports=ya;var xd=ma.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 Sd=T,Se=xd;function R(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 va=new Set,Vn={};function Ht(e,t){dn(e,t),dn(e+"Capture",t)}function dn(e,t){for(Vn[e]=t,e=0;e<t.length;e++)va.add(t[e])}var Ze=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ol=Object.prototype.hasOwnProperty,Cd=/^[: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]*$/,Mu={},Du={};function kd(e){return Ol.call(Du,e)?!0:Ol.call(Mu,e)?!1:Cd.test(e)?Du[e]=!0:(Mu[e]=!0,!1)}function Ed(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 Pd(e,t,n,r){if(t===null||typeof t>"u"||Ed(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 de(e,t,n,r,i,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new de(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){ie[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ms=/[\-:]([a-z])/g;function Ds(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(Ms,Ds);ie[t]=new de(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(Ms,Ds);ie[t]=new de(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(Ms,Ds);ie[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function Is(e,t,n,r){var i=ie.hasOwnProperty(t)?ie[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Pd(t,n,i,r)&&(n=null),r||i===null?kd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nt=Sd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xr=Symbol.for("react.element"),Vt=Symbol.for("react.portal"),Wt=Symbol.for("react.fragment"),Ls=Symbol.for("react.strict_mode"),_l=Symbol.for("react.profiler"),ga=Symbol.for("react.provider"),wa=Symbol.for("react.context"),Fs=Symbol.for("react.forward_ref"),Tl=Symbol.for("react.suspense"),jl=Symbol.for("react.suspense_list"),Qs=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),xa=Symbol.for("react.offscreen"),Iu=Symbol.iterator;function En(e){return e===null||typeof e!="object"?null:(e=Iu&&e[Iu]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,Xi;function Mn(e){if(Xi===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xi=t&&t[1]||""}return`
|
|
34
|
+
`+Xi+e}var Zi=!1;function Ji(e,t){if(!e||Zi)return"";Zi=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
|
|
35
|
+
`),l=r.stack.split(`
|
|
36
|
+
`),s=i.length-1,u=l.length-1;1<=s&&0<=u&&i[s]!==l[u];)u--;for(;1<=s&&0<=u;s--,u--)if(i[s]!==l[u]){if(s!==1||u!==1)do if(s--,u--,0>u||i[s]!==l[u]){var o=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",e.displayName)),o}while(1<=s&&0<=u);break}}}finally{Zi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mn(e):""}function Rd(e){switch(e.tag){case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 2:case 15:return e=Ji(e.type,!1),e;case 11:return e=Ji(e.type.render,!1),e;case 1:return e=Ji(e.type,!0),e;default:return""}}function Ml(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 Wt:return"Fragment";case Vt:return"Portal";case _l:return"Profiler";case Ls:return"StrictMode";case Tl:return"Suspense";case jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wa:return(e.displayName||"Context")+".Consumer";case ga:return(e._context.displayName||"Context")+".Provider";case Fs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qs:return t=e.displayName||null,t!==null?t:Ml(e.type)||"Memo";case st:t=e._payload,e=e._init;try{return Ml(e(t))}catch{}}return null}function Nd(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 Ml(t);case 8:return t===Ls?"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 Ct(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Od(e){var t=Sa(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Sr(e){e._valueTracker||(e._valueTracker=Od(e))}function Ca(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sa(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 Dl(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ct(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 ka(e,t){t=t.checked,t!=null&&Is(e,"checked",t,!1)}function Il(e,t){ka(e,t);var n=Ct(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")?Ll(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ll(e,t.type,Ct(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fu(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 Ll(e,t,n){(t!=="number"||Yr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dn=Array.isArray;function sn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ct(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Fl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return K({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Dn(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ct(n)}}function Ea(e,t){var n=Ct(t.value),r=Ct(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 zu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Pa(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 Ql(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Pa(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Cr,Ra=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Cr=Cr||document.createElement("div"),Cr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Cr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fn={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},_d=["Webkit","ms","Moz","O"];Object.keys(Fn).forEach(function(e){_d.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fn[t]=Fn[e]})});function Na(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fn.hasOwnProperty(e)&&Fn[e]?(""+t).trim():t+"px"}function Oa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Na(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Td=K({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 zl(e,t){if(t){if(Td[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Ul(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 Al=null;function zs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ql=null,un=null,on=null;function Uu(e){if(e=hr(e)){if(typeof ql!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ji(t),ql(e.stateNode,e.type,t))}}function _a(e){un?on?on.push(e):on=[e]:un=e}function Ta(){if(un){var e=un,t=on;if(on=un=null,Uu(e),t)for(e=0;e<t.length;e++)Uu(t[e])}}function ja(e,t){return e(t)}function Ma(){}var el=!1;function Da(e,t,n){if(el)return e(t,n);el=!0;try{return ja(e,t,n)}finally{el=!1,(un!==null||on!==null)&&(Ma(),Ta())}}function bn(e,t){var n=e.stateNode;if(n===null)return null;var r=ji(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(R(231,t,typeof n));return n}var Hl=!1;if(Ze)try{var Pn={};Object.defineProperty(Pn,"passive",{get:function(){Hl=!0}}),window.addEventListener("test",Pn,Pn),window.removeEventListener("test",Pn,Pn)}catch{Hl=!1}function jd(e,t,n,r,i,l,s,u,o){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(p){this.onError(p)}}var Qn=!1,Xr=null,Zr=!1,$l=null,Md={onError:function(e){Qn=!0,Xr=e}};function Dd(e,t,n,r,i,l,s,u,o){Qn=!1,Xr=null,jd.apply(Md,arguments)}function Id(e,t,n,r,i,l,s,u,o){if(Dd.apply(this,arguments),Qn){if(Qn){var a=Xr;Qn=!1,Xr=null}else throw Error(R(198));Zr||(Zr=!0,$l=a)}}function $t(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 Ia(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 Au(e){if($t(e)!==e)throw Error(R(188))}function Ld(e){var t=e.alternate;if(!t){if(t=$t(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Au(i),e;if(l===r)return Au(i),t;l=l.sibling}throw Error(R(188))}if(n.return!==r.return)n=i,r=l;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=l;break}if(u===r){s=!0,r=i,n=l;break}u=u.sibling}if(!s){for(u=l.child;u;){if(u===n){s=!0,n=l,r=i;break}if(u===r){s=!0,r=l,n=i;break}u=u.sibling}if(!s)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function La(e){return e=Ld(e),e!==null?Fa(e):null}function Fa(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fa(e);if(t!==null)return t;e=e.sibling}return null}var Qa=Se.unstable_scheduleCallback,qu=Se.unstable_cancelCallback,Fd=Se.unstable_shouldYield,Qd=Se.unstable_requestPaint,G=Se.unstable_now,zd=Se.unstable_getCurrentPriorityLevel,Us=Se.unstable_ImmediatePriority,za=Se.unstable_UserBlockingPriority,Jr=Se.unstable_NormalPriority,Ud=Se.unstable_LowPriority,Ua=Se.unstable_IdlePriority,Ni=null,Be=null;function Ad(e){if(Be&&typeof Be.onCommitFiberRoot=="function")try{Be.onCommitFiberRoot(Ni,e,void 0,(e.current.flags&128)===128)}catch{}}var Qe=Math.clz32?Math.clz32:$d,qd=Math.log,Hd=Math.LN2;function $d(e){return e>>>=0,e===0?32:31-(qd(e)/Hd|0)|0}var kr=64,Er=4194304;function In(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 ei(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~i;u!==0?r=In(u):(l&=s,l!==0&&(r=In(l)))}else s=n&~i,s!==0?r=In(s):l!==0&&(r=In(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&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-Qe(t),i=1<<n,r|=e[n],t&=~i;return r}function Bd(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 Kd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Qe(l),u=1<<s,o=i[s];o===-1?(!(u&n)||u&r)&&(i[s]=Bd(u,t)):o<=t&&(e.expiredLanes|=u),l&=~u}}function Bl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Aa(){var e=kr;return kr<<=1,!(kr&4194240)&&(kr=64),e}function tl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qe(t),e[t]=n}function Vd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Qe(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function As(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var F=0;function qa(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ha,qs,$a,Ba,Ka,Kl=!1,Pr=[],pt=null,mt=null,yt=null,Gn=new Map,Yn=new Map,at=[],Wd="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 Hu(e,t){switch(e){case"focusin":case"focusout":pt=null;break;case"dragenter":case"dragleave":mt=null;break;case"mouseover":case"mouseout":yt=null;break;case"pointerover":case"pointerout":Gn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yn.delete(t.pointerId)}}function Rn(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=hr(t),t!==null&&qs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function bd(e,t,n,r,i){switch(t){case"focusin":return pt=Rn(pt,e,t,n,r,i),!0;case"dragenter":return mt=Rn(mt,e,t,n,r,i),!0;case"mouseover":return yt=Rn(yt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return Gn.set(l,Rn(Gn.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Yn.set(l,Rn(Yn.get(l)||null,e,t,n,r,i)),!0}return!1}function Va(e){var t=jt(e.target);if(t!==null){var n=$t(t);if(n!==null){if(t=n.tag,t===13){if(t=Ia(n),t!==null){e.blockedOn=t,Ka(e.priority,function(){$a(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 zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Al=r,n.target.dispatchEvent(r),Al=null}else return t=hr(n),t!==null&&qs(t),e.blockedOn=n,!1;t.shift()}return!0}function $u(e,t,n){zr(e)&&n.delete(t)}function Gd(){Kl=!1,pt!==null&&zr(pt)&&(pt=null),mt!==null&&zr(mt)&&(mt=null),yt!==null&&zr(yt)&&(yt=null),Gn.forEach($u),Yn.forEach($u)}function Nn(e,t){e.blockedOn===t&&(e.blockedOn=null,Kl||(Kl=!0,Se.unstable_scheduleCallback(Se.unstable_NormalPriority,Gd)))}function Xn(e){function t(i){return Nn(i,e)}if(0<Pr.length){Nn(Pr[0],e);for(var n=1;n<Pr.length;n++){var r=Pr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pt!==null&&Nn(pt,e),mt!==null&&Nn(mt,e),yt!==null&&Nn(yt,e),Gn.forEach(t),Yn.forEach(t),n=0;n<at.length;n++)r=at[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<at.length&&(n=at[0],n.blockedOn===null);)Va(n),n.blockedOn===null&&at.shift()}var an=nt.ReactCurrentBatchConfig,ti=!0;function Yd(e,t,n,r){var i=F,l=an.transition;an.transition=null;try{F=1,Hs(e,t,n,r)}finally{F=i,an.transition=l}}function Xd(e,t,n,r){var i=F,l=an.transition;an.transition=null;try{F=4,Hs(e,t,n,r)}finally{F=i,an.transition=l}}function Hs(e,t,n,r){if(ti){var i=Vl(e,t,n,r);if(i===null)fl(e,t,r,ni,n),Hu(e,r);else if(bd(i,e,t,n,r))r.stopPropagation();else if(Hu(e,r),t&4&&-1<Wd.indexOf(e)){for(;i!==null;){var l=hr(i);if(l!==null&&Ha(l),l=Vl(e,t,n,r),l===null&&fl(e,t,r,ni,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else fl(e,t,r,null,n)}}var ni=null;function Vl(e,t,n,r){if(ni=null,e=zs(r),e=jt(e),e!==null)if(t=$t(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ia(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 ni=e,null}function Wa(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(zd()){case Us:return 1;case za:return 4;case Jr:case Ud:return 16;case Ua:return 536870912;default:return 16}default:return 16}}var ft=null,$s=null,Ur=null;function ba(){if(Ur)return Ur;var e,t=$s,n=t.length,r,i="value"in ft?ft.value:ft.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[l-r];r++);return Ur=i.slice(e,1<r?1-r:void 0)}function Ar(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 Rr(){return!0}function Bu(){return!1}function ke(e){function t(n,r,i,l,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Rr:Bu,this.isPropagationStopped=Bu,this}return K(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=Rr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rr)},persist:function(){},isPersistent:Rr}),t}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bs=ke(Cn),dr=K({},Cn,{view:0,detail:0}),Zd=ke(dr),nl,rl,On,Oi=K({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ks,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!==On&&(On&&e.type==="mousemove"?(nl=e.screenX-On.screenX,rl=e.screenY-On.screenY):rl=nl=0,On=e),nl)},movementY:function(e){return"movementY"in e?e.movementY:rl}}),Ku=ke(Oi),Jd=K({},Oi,{dataTransfer:0}),eh=ke(Jd),th=K({},dr,{relatedTarget:0}),il=ke(th),nh=K({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0}),rh=ke(nh),ih=K({},Cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lh=ke(ih),sh=K({},Cn,{data:0}),Vu=ke(sh),uh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oh={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"},ah={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ch(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ah[e])?!!t[e]:!1}function Ks(){return ch}var fh=K({},dr,{key:function(e){if(e.key){var t=uh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ar(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ks,charCode:function(e){return e.type==="keypress"?Ar(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ar(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dh=ke(fh),hh=K({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wu=ke(hh),ph=K({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ks}),mh=ke(ph),yh=K({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0}),vh=ke(yh),gh=K({},Oi,{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}),wh=ke(gh),xh=[9,13,27,32],Vs=Ze&&"CompositionEvent"in window,zn=null;Ze&&"documentMode"in document&&(zn=document.documentMode);var Sh=Ze&&"TextEvent"in window&&!zn,Ga=Ze&&(!Vs||zn&&8<zn&&11>=zn),bu=" ",Gu=!1;function Ya(e,t){switch(e){case"keyup":return xh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bt=!1;function Ch(e,t){switch(e){case"compositionend":return Xa(t);case"keypress":return t.which!==32?null:(Gu=!0,bu);case"textInput":return e=t.data,e===bu&&Gu?null:e;default:return null}}function kh(e,t){if(bt)return e==="compositionend"||!Vs&&Ya(e,t)?(e=ba(),Ur=$s=ft=null,bt=!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 Ga&&t.locale!=="ko"?null:t.data;default:return null}}var Eh={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 Yu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Eh[e.type]:t==="textarea"}function Za(e,t,n,r){_a(r),t=ri(t,"onChange"),0<t.length&&(n=new Bs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Zn=null;function Ph(e){ac(e,0)}function _i(e){var t=Xt(e);if(Ca(t))return e}function Rh(e,t){if(e==="change")return t}var Ja=!1;if(Ze){var ll;if(Ze){var sl="oninput"in document;if(!sl){var Xu=document.createElement("div");Xu.setAttribute("oninput","return;"),sl=typeof Xu.oninput=="function"}ll=sl}else ll=!1;Ja=ll&&(!document.documentMode||9<document.documentMode)}function Zu(){Un&&(Un.detachEvent("onpropertychange",ec),Zn=Un=null)}function ec(e){if(e.propertyName==="value"&&_i(Zn)){var t=[];Za(t,Zn,e,zs(e)),Da(Ph,t)}}function Nh(e,t,n){e==="focusin"?(Zu(),Un=t,Zn=n,Un.attachEvent("onpropertychange",ec)):e==="focusout"&&Zu()}function Oh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _i(Zn)}function _h(e,t){if(e==="click")return _i(t)}function Th(e,t){if(e==="input"||e==="change")return _i(t)}function jh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ue=typeof Object.is=="function"?Object.is:jh;function Jn(e,t){if(Ue(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ol.call(t,i)||!Ue(e[i],t[i]))return!1}return!0}function Ju(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eo(e,t){var n=Ju(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=Ju(n)}}function tc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nc(){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 Ws(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 Mh(e){var t=nc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&tc(n.ownerDocument.documentElement,n)){if(r!==null&&Ws(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=eo(n,l);var s=eo(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Dh=Ze&&"documentMode"in document&&11>=document.documentMode,Gt=null,Wl=null,An=null,bl=!1;function to(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bl||Gt==null||Gt!==Yr(r)||(r=Gt,"selectionStart"in r&&Ws(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}),An&&Jn(An,r)||(An=r,r=ri(Wl,"onSelect"),0<r.length&&(t=new Bs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Gt)))}function Nr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Yt={animationend:Nr("Animation","AnimationEnd"),animationiteration:Nr("Animation","AnimationIteration"),animationstart:Nr("Animation","AnimationStart"),transitionend:Nr("Transition","TransitionEnd")},ul={},rc={};Ze&&(rc=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 Ti(e){if(ul[e])return ul[e];if(!Yt[e])return e;var t=Yt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rc)return ul[e]=t[n];return e}var ic=Ti("animationend"),lc=Ti("animationiteration"),sc=Ti("animationstart"),uc=Ti("transitionend"),oc=new Map,no="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 Et(e,t){oc.set(e,t),Ht(t,[e])}for(var ol=0;ol<no.length;ol++){var al=no[ol],Ih=al.toLowerCase(),Lh=al[0].toUpperCase()+al.slice(1);Et(Ih,"on"+Lh)}Et(ic,"onAnimationEnd");Et(lc,"onAnimationIteration");Et(sc,"onAnimationStart");Et("dblclick","onDoubleClick");Et("focusin","onFocus");Et("focusout","onBlur");Et(uc,"onTransitionEnd");dn("onMouseEnter",["mouseout","mouseover"]);dn("onMouseLeave",["mouseout","mouseover"]);dn("onPointerEnter",["pointerout","pointerover"]);dn("onPointerLeave",["pointerout","pointerover"]);Ht("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ht("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ht("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ht("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ht("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ht("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ln="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(" "),Fh=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ln));function ro(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Id(r,t,void 0,e),e.currentTarget=null}function ac(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var s=r.length-1;0<=s;s--){var u=r[s],o=u.instance,a=u.currentTarget;if(u=u.listener,o!==l&&i.isPropagationStopped())break e;ro(i,u,a),l=o}else for(s=0;s<r.length;s++){if(u=r[s],o=u.instance,a=u.currentTarget,u=u.listener,o!==l&&i.isPropagationStopped())break e;ro(i,u,a),l=o}}}if(Zr)throw e=$l,Zr=!1,$l=null,e}function z(e,t){var n=t[Jl];n===void 0&&(n=t[Jl]=new Set);var r=e+"__bubble";n.has(r)||(cc(t,e,2,!1),n.add(r))}function cl(e,t,n){var r=0;t&&(r|=4),cc(n,e,r,t)}var Or="_reactListening"+Math.random().toString(36).slice(2);function er(e){if(!e[Or]){e[Or]=!0,va.forEach(function(n){n!=="selectionchange"&&(Fh.has(n)||cl(n,!1,e),cl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Or]||(t[Or]=!0,cl("selectionchange",!1,t))}}function cc(e,t,n,r){switch(Wa(t)){case 1:var i=Yd;break;case 4:i=Xd;break;default:i=Hs}n=i.bind(null,t,n,e),i=void 0,!Hl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function fl(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var o=s.tag;if((o===3||o===4)&&(o=s.stateNode.containerInfo,o===i||o.nodeType===8&&o.parentNode===i))return;s=s.return}for(;u!==null;){if(s=jt(u),s===null)return;if(o=s.tag,o===5||o===6){r=l=s;continue e}u=u.parentNode}}r=r.return}Da(function(){var a=l,p=zs(n),v=[];e:{var d=oc.get(e);if(d!==void 0){var y=Bs,g=e;switch(e){case"keypress":if(Ar(n)===0)break e;case"keydown":case"keyup":y=dh;break;case"focusin":g="focus",y=il;break;case"focusout":g="blur",y=il;break;case"beforeblur":case"afterblur":y=il;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":y=Ku;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=eh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=mh;break;case ic:case lc:case sc:y=rh;break;case uc:y=vh;break;case"scroll":y=Zd;break;case"wheel":y=wh;break;case"copy":case"cut":case"paste":y=lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Wu}var m=(t&4)!==0,P=!m&&e==="scroll",c=m?d!==null?d+"Capture":null:d;m=[];for(var f=a,h;f!==null;){h=f;var S=h.stateNode;if(h.tag===5&&S!==null&&(h=S,c!==null&&(S=bn(f,c),S!=null&&m.push(tr(f,S,h)))),P)break;f=f.return}0<m.length&&(d=new y(d,g,null,n,p),v.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",d&&n!==Al&&(g=n.relatedTarget||n.fromElement)&&(jt(g)||g[Je]))break e;if((y||d)&&(d=p.window===p?p:(d=p.ownerDocument)?d.defaultView||d.parentWindow:window,y?(g=n.relatedTarget||n.toElement,y=a,g=g?jt(g):null,g!==null&&(P=$t(g),g!==P||g.tag!==5&&g.tag!==6)&&(g=null)):(y=null,g=a),y!==g)){if(m=Ku,S="onMouseLeave",c="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(m=Wu,S="onPointerLeave",c="onPointerEnter",f="pointer"),P=y==null?d:Xt(y),h=g==null?d:Xt(g),d=new m(S,f+"leave",y,n,p),d.target=P,d.relatedTarget=h,S=null,jt(p)===a&&(m=new m(c,f+"enter",g,n,p),m.target=h,m.relatedTarget=P,S=m),P=S,y&&g)t:{for(m=y,c=g,f=0,h=m;h;h=Kt(h))f++;for(h=0,S=c;S;S=Kt(S))h++;for(;0<f-h;)m=Kt(m),f--;for(;0<h-f;)c=Kt(c),h--;for(;f--;){if(m===c||c!==null&&m===c.alternate)break t;m=Kt(m),c=Kt(c)}m=null}else m=null;y!==null&&io(v,d,y,m,!1),g!==null&&P!==null&&io(v,P,g,m,!0)}}e:{if(d=a?Xt(a):window,y=d.nodeName&&d.nodeName.toLowerCase(),y==="select"||y==="input"&&d.type==="file")var k=Rh;else if(Yu(d))if(Ja)k=Th;else{k=Oh;var w=Nh}else(y=d.nodeName)&&y.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(k=_h);if(k&&(k=k(e,a))){Za(v,k,n,p);break e}w&&w(e,d,a),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&Ll(d,"number",d.value)}switch(w=a?Xt(a):window,e){case"focusin":(Yu(w)||w.contentEditable==="true")&&(Gt=w,Wl=a,An=null);break;case"focusout":An=Wl=Gt=null;break;case"mousedown":bl=!0;break;case"contextmenu":case"mouseup":case"dragend":bl=!1,to(v,n,p);break;case"selectionchange":if(Dh)break;case"keydown":case"keyup":to(v,n,p)}var x;if(Vs)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else bt?Ya(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Ga&&n.locale!=="ko"&&(bt||E!=="onCompositionStart"?E==="onCompositionEnd"&&bt&&(x=ba()):(ft=p,$s="value"in ft?ft.value:ft.textContent,bt=!0)),w=ri(a,E),0<w.length&&(E=new Vu(E,e,null,n,p),v.push({event:E,listeners:w}),x?E.data=x:(x=Xa(n),x!==null&&(E.data=x)))),(x=Sh?Ch(e,n):kh(e,n))&&(a=ri(a,"onBeforeInput"),0<a.length&&(p=new Vu("onBeforeInput","beforeinput",null,n,p),v.push({event:p,listeners:a}),p.data=x))}ac(v,t)})}function tr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ri(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=bn(e,n),l!=null&&r.unshift(tr(e,l,i)),l=bn(e,t),l!=null&&r.push(tr(e,l,i))),e=e.return}return r}function Kt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function io(e,t,n,r,i){for(var l=t._reactName,s=[];n!==null&&n!==r;){var u=n,o=u.alternate,a=u.stateNode;if(o!==null&&o===r)break;u.tag===5&&a!==null&&(u=a,i?(o=bn(n,l),o!=null&&s.unshift(tr(n,o,u))):i||(o=bn(n,l),o!=null&&s.push(tr(n,o,u)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Qh=/\r\n?/g,zh=/\u0000|\uFFFD/g;function lo(e){return(typeof e=="string"?e:""+e).replace(Qh,`
|
|
38
|
+
`).replace(zh,"")}function _r(e,t,n){if(t=lo(t),lo(e)!==t&&n)throw Error(R(425))}function ii(){}var Gl=null,Yl=null;function Xl(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 Zl=typeof setTimeout=="function"?setTimeout:void 0,Uh=typeof clearTimeout=="function"?clearTimeout:void 0,so=typeof Promise=="function"?Promise:void 0,Ah=typeof queueMicrotask=="function"?queueMicrotask:typeof so<"u"?function(e){return so.resolve(null).then(e).catch(qh)}:Zl;function qh(e){setTimeout(function(){throw e})}function dl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Xn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Xn(t)}function vt(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 uo(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 kn=Math.random().toString(36).slice(2),He="__reactFiber$"+kn,nr="__reactProps$"+kn,Je="__reactContainer$"+kn,Jl="__reactEvents$"+kn,Hh="__reactListeners$"+kn,$h="__reactHandles$"+kn;function jt(e){var t=e[He];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Je]||n[He]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=uo(e);e!==null;){if(n=e[He])return n;e=uo(e)}return t}e=n,n=e.parentNode}return null}function hr(e){return e=e[He]||e[Je],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Xt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function ji(e){return e[nr]||null}var es=[],Zt=-1;function Pt(e){return{current:e}}function A(e){0>Zt||(e.current=es[Zt],es[Zt]=null,Zt--)}function Q(e,t){Zt++,es[Zt]=e.current,e.current=t}var kt={},oe=Pt(kt),me=Pt(!1),Qt=kt;function hn(e,t){var n=e.type.contextTypes;if(!n)return kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ye(e){return e=e.childContextTypes,e!=null}function li(){A(me),A(oe)}function oo(e,t,n){if(oe.current!==kt)throw Error(R(168));Q(oe,t),Q(me,n)}function fc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,Nd(e)||"Unknown",i));return K({},n,r)}function si(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kt,Qt=oe.current,Q(oe,e),Q(me,me.current),!0}function ao(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=fc(e,t,Qt),r.__reactInternalMemoizedMergedChildContext=e,A(me),A(oe),Q(oe,e)):A(me),Q(me,n)}var We=null,Mi=!1,hl=!1;function dc(e){We===null?We=[e]:We.push(e)}function Bh(e){Mi=!0,dc(e)}function Rt(){if(!hl&&We!==null){hl=!0;var e=0,t=F;try{var n=We;for(F=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}We=null,Mi=!1}catch(i){throw We!==null&&(We=We.slice(e+1)),Qa(Us,Rt),i}finally{F=t,hl=!1}}return null}var Jt=[],en=0,ui=null,oi=0,Re=[],Ne=0,zt=null,Ge=1,Ye="";function _t(e,t){Jt[en++]=oi,Jt[en++]=ui,ui=e,oi=t}function hc(e,t,n){Re[Ne++]=Ge,Re[Ne++]=Ye,Re[Ne++]=zt,zt=e;var r=Ge;e=Ye;var i=32-Qe(r)-1;r&=~(1<<i),n+=1;var l=32-Qe(t)+i;if(30<l){var s=i-i%5;l=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ge=1<<32-Qe(t)+i|n<<i|r,Ye=l+e}else Ge=1<<l|n<<i|r,Ye=e}function bs(e){e.return!==null&&(_t(e,1),hc(e,1,0))}function Gs(e){for(;e===ui;)ui=Jt[--en],Jt[en]=null,oi=Jt[--en],Jt[en]=null;for(;e===zt;)zt=Re[--Ne],Re[Ne]=null,Ye=Re[--Ne],Re[Ne]=null,Ge=Re[--Ne],Re[Ne]=null}var xe=null,we=null,q=!1,Fe=null;function pc(e,t){var n=Oe(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 co(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,xe=e,we=vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xe=e,we=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zt!==null?{id:Ge,overflow:Ye}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Oe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xe=e,we=null,!0):!1;default:return!1}}function ts(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ns(e){if(q){var t=we;if(t){var n=t;if(!co(e,t)){if(ts(e))throw Error(R(418));t=vt(n.nextSibling);var r=xe;t&&co(e,t)?pc(r,n):(e.flags=e.flags&-4097|2,q=!1,xe=e)}}else{if(ts(e))throw Error(R(418));e.flags=e.flags&-4097|2,q=!1,xe=e}}}function fo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xe=e}function Tr(e){if(e!==xe)return!1;if(!q)return fo(e),q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Xl(e.type,e.memoizedProps)),t&&(t=we)){if(ts(e))throw mc(),Error(R(418));for(;t;)pc(e,t),t=vt(t.nextSibling)}if(fo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){we=vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}we=null}}else we=xe?vt(e.stateNode.nextSibling):null;return!0}function mc(){for(var e=we;e;)e=vt(e.nextSibling)}function pn(){we=xe=null,q=!1}function Ys(e){Fe===null?Fe=[e]:Fe.push(e)}var Kh=nt.ReactCurrentBatchConfig;function _n(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(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(s){var u=i.refs;s===null?delete u[l]:u[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function jr(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ho(e){var t=e._init;return t(e._payload)}function yc(e){function t(c,f){if(e){var h=c.deletions;h===null?(c.deletions=[f],c.flags|=16):h.push(f)}}function n(c,f){if(!e)return null;for(;f!==null;)t(c,f),f=f.sibling;return null}function r(c,f){for(c=new Map;f!==null;)f.key!==null?c.set(f.key,f):c.set(f.index,f),f=f.sibling;return c}function i(c,f){return c=St(c,f),c.index=0,c.sibling=null,c}function l(c,f,h){return c.index=h,e?(h=c.alternate,h!==null?(h=h.index,h<f?(c.flags|=2,f):h):(c.flags|=2,f)):(c.flags|=1048576,f)}function s(c){return e&&c.alternate===null&&(c.flags|=2),c}function u(c,f,h,S){return f===null||f.tag!==6?(f=xl(h,c.mode,S),f.return=c,f):(f=i(f,h),f.return=c,f)}function o(c,f,h,S){var k=h.type;return k===Wt?p(c,f,h.props.children,S,h.key):f!==null&&(f.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===st&&ho(k)===f.type)?(S=i(f,h.props),S.ref=_n(c,f,h),S.return=c,S):(S=Wr(h.type,h.key,h.props,null,c.mode,S),S.ref=_n(c,f,h),S.return=c,S)}function a(c,f,h,S){return f===null||f.tag!==4||f.stateNode.containerInfo!==h.containerInfo||f.stateNode.implementation!==h.implementation?(f=Sl(h,c.mode,S),f.return=c,f):(f=i(f,h.children||[]),f.return=c,f)}function p(c,f,h,S,k){return f===null||f.tag!==7?(f=Ft(h,c.mode,S,k),f.return=c,f):(f=i(f,h),f.return=c,f)}function v(c,f,h){if(typeof f=="string"&&f!==""||typeof f=="number")return f=xl(""+f,c.mode,h),f.return=c,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case xr:return h=Wr(f.type,f.key,f.props,null,c.mode,h),h.ref=_n(c,null,f),h.return=c,h;case Vt:return f=Sl(f,c.mode,h),f.return=c,f;case st:var S=f._init;return v(c,S(f._payload),h)}if(Dn(f)||En(f))return f=Ft(f,c.mode,h,null),f.return=c,f;jr(c,f)}return null}function d(c,f,h,S){var k=f!==null?f.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return k!==null?null:u(c,f,""+h,S);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case xr:return h.key===k?o(c,f,h,S):null;case Vt:return h.key===k?a(c,f,h,S):null;case st:return k=h._init,d(c,f,k(h._payload),S)}if(Dn(h)||En(h))return k!==null?null:p(c,f,h,S,null);jr(c,h)}return null}function y(c,f,h,S,k){if(typeof S=="string"&&S!==""||typeof S=="number")return c=c.get(h)||null,u(f,c,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case xr:return c=c.get(S.key===null?h:S.key)||null,o(f,c,S,k);case Vt:return c=c.get(S.key===null?h:S.key)||null,a(f,c,S,k);case st:var w=S._init;return y(c,f,h,w(S._payload),k)}if(Dn(S)||En(S))return c=c.get(h)||null,p(f,c,S,k,null);jr(f,S)}return null}function g(c,f,h,S){for(var k=null,w=null,x=f,E=f=0,j=null;x!==null&&E<h.length;E++){x.index>E?(j=x,x=null):j=x.sibling;var _=d(c,x,h[E],S);if(_===null){x===null&&(x=j);break}e&&x&&_.alternate===null&&t(c,x),f=l(_,f,E),w===null?k=_:w.sibling=_,w=_,x=j}if(E===h.length)return n(c,x),q&&_t(c,E),k;if(x===null){for(;E<h.length;E++)x=v(c,h[E],S),x!==null&&(f=l(x,f,E),w===null?k=x:w.sibling=x,w=x);return q&&_t(c,E),k}for(x=r(c,x);E<h.length;E++)j=y(x,c,E,h[E],S),j!==null&&(e&&j.alternate!==null&&x.delete(j.key===null?E:j.key),f=l(j,f,E),w===null?k=j:w.sibling=j,w=j);return e&&x.forEach(function(W){return t(c,W)}),q&&_t(c,E),k}function m(c,f,h,S){var k=En(h);if(typeof k!="function")throw Error(R(150));if(h=k.call(h),h==null)throw Error(R(151));for(var w=k=null,x=f,E=f=0,j=null,_=h.next();x!==null&&!_.done;E++,_=h.next()){x.index>E?(j=x,x=null):j=x.sibling;var W=d(c,x,_.value,S);if(W===null){x===null&&(x=j);break}e&&x&&W.alternate===null&&t(c,x),f=l(W,f,E),w===null?k=W:w.sibling=W,w=W,x=j}if(_.done)return n(c,x),q&&_t(c,E),k;if(x===null){for(;!_.done;E++,_=h.next())_=v(c,_.value,S),_!==null&&(f=l(_,f,E),w===null?k=_:w.sibling=_,w=_);return q&&_t(c,E),k}for(x=r(c,x);!_.done;E++,_=h.next())_=y(x,c,E,_.value,S),_!==null&&(e&&_.alternate!==null&&x.delete(_.key===null?E:_.key),f=l(_,f,E),w===null?k=_:w.sibling=_,w=_);return e&&x.forEach(function(Me){return t(c,Me)}),q&&_t(c,E),k}function P(c,f,h,S){if(typeof h=="object"&&h!==null&&h.type===Wt&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case xr:e:{for(var k=h.key,w=f;w!==null;){if(w.key===k){if(k=h.type,k===Wt){if(w.tag===7){n(c,w.sibling),f=i(w,h.props.children),f.return=c,c=f;break e}}else if(w.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===st&&ho(k)===w.type){n(c,w.sibling),f=i(w,h.props),f.ref=_n(c,w,h),f.return=c,c=f;break e}n(c,w);break}else t(c,w);w=w.sibling}h.type===Wt?(f=Ft(h.props.children,c.mode,S,h.key),f.return=c,c=f):(S=Wr(h.type,h.key,h.props,null,c.mode,S),S.ref=_n(c,f,h),S.return=c,c=S)}return s(c);case Vt:e:{for(w=h.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===h.containerInfo&&f.stateNode.implementation===h.implementation){n(c,f.sibling),f=i(f,h.children||[]),f.return=c,c=f;break e}else{n(c,f);break}else t(c,f);f=f.sibling}f=Sl(h,c.mode,S),f.return=c,c=f}return s(c);case st:return w=h._init,P(c,f,w(h._payload),S)}if(Dn(h))return g(c,f,h,S);if(En(h))return m(c,f,h,S);jr(c,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,f!==null&&f.tag===6?(n(c,f.sibling),f=i(f,h),f.return=c,c=f):(n(c,f),f=xl(h,c.mode,S),f.return=c,c=f),s(c)):n(c,f)}return P}var mn=yc(!0),vc=yc(!1),ai=Pt(null),ci=null,tn=null,Xs=null;function Zs(){Xs=tn=ci=null}function Js(e){var t=ai.current;A(ai),e._currentValue=t}function rs(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 cn(e,t){ci=e,Xs=tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pe=!0),e.firstContext=null)}function Te(e){var t=e._currentValue;if(Xs!==e)if(e={context:e,memoizedValue:t,next:null},tn===null){if(ci===null)throw Error(R(308));tn=e,ci.dependencies={lanes:0,firstContext:e}}else tn=tn.next=e;return t}var Mt=null;function eu(e){Mt===null?Mt=[e]:Mt.push(e)}function gc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,eu(t)):(n.next=i.next,i.next=n),t.interleaved=n,et(e,r)}function et(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 ut=!1;function tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wc(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 Xe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,L&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,et(e,n)}return i=r.interleaved,i===null?(t.next=t,eu(r)):(t.next=i.next,i.next=t),r.interleaved=t,et(e,n)}function qr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,As(e,n)}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,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 fi(e,t,n,r){var i=e.updateQueue;ut=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var o=u,a=o.next;o.next=null,s===null?l=a:s.next=a,s=o;var p=e.alternate;p!==null&&(p=p.updateQueue,u=p.lastBaseUpdate,u!==s&&(u===null?p.firstBaseUpdate=a:u.next=a,p.lastBaseUpdate=o))}if(l!==null){var v=i.baseState;s=0,p=a=o=null,u=l;do{var d=u.lane,y=u.eventTime;if((r&d)===d){p!==null&&(p=p.next={eventTime:y,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,m=u;switch(d=t,y=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){v=g.call(y,v,d);break e}v=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,d=typeof g=="function"?g.call(y,v,d):g,d==null)break e;v=K({},v,d);break e;case 2:ut=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[u]:d.push(u))}else y={eventTime:y,lane:d,tag:u.tag,payload:u.payload,callback:u.callback,next:null},p===null?(a=p=y,o=v):p=p.next=y,s|=d;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;d=u,u=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(p===null&&(o=v),i.baseState=o,i.firstBaseUpdate=a,i.lastBaseUpdate=p,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);At|=s,e.lanes=s,e.memoizedState=v}}function mo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(R(191,i));i.call(r)}}}var pr={},Ke=Pt(pr),rr=Pt(pr),ir=Pt(pr);function Dt(e){if(e===pr)throw Error(R(174));return e}function nu(e,t){switch(Q(ir,t),Q(rr,e),Q(Ke,pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ql(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ql(t,e)}A(Ke),Q(Ke,t)}function yn(){A(Ke),A(rr),A(ir)}function xc(e){Dt(ir.current);var t=Dt(Ke.current),n=Ql(t,e.type);t!==n&&(Q(rr,e),Q(Ke,n))}function ru(e){rr.current===e&&(A(Ke),A(rr))}var $=Pt(0);function di(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 pl=[];function iu(){for(var e=0;e<pl.length;e++)pl[e]._workInProgressVersionPrimary=null;pl.length=0}var Hr=nt.ReactCurrentDispatcher,ml=nt.ReactCurrentBatchConfig,Ut=0,B=null,X=null,ee=null,hi=!1,qn=!1,lr=0,Vh=0;function le(){throw Error(R(321))}function lu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ue(e[n],t[n]))return!1;return!0}function su(e,t,n,r,i,l){if(Ut=l,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hr.current=e===null||e.memoizedState===null?Yh:Xh,e=n(r,i),qn){l=0;do{if(qn=!1,lr=0,25<=l)throw Error(R(301));l+=1,ee=X=null,t.updateQueue=null,Hr.current=Zh,e=n(r,i)}while(qn)}if(Hr.current=pi,t=X!==null&&X.next!==null,Ut=0,ee=X=B=null,hi=!1,t)throw Error(R(300));return e}function uu(){var e=lr!==0;return lr=0,e}function qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ee===null?B.memoizedState=ee=e:ee=ee.next=e,ee}function je(){if(X===null){var e=B.alternate;e=e!==null?e.memoizedState:null}else e=X.next;var t=ee===null?B.memoizedState:ee.next;if(t!==null)ee=t,X=e;else{if(e===null)throw Error(R(310));X=e,e={memoizedState:X.memoizedState,baseState:X.baseState,baseQueue:X.baseQueue,queue:X.queue,next:null},ee===null?B.memoizedState=ee=e:ee=ee.next=e}return ee}function sr(e,t){return typeof t=="function"?t(e):t}function yl(e){var t=je(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=X,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var s=i.next;i.next=l.next,l.next=s}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var u=s=null,o=null,a=l;do{var p=a.lane;if((Ut&p)===p)o!==null&&(o=o.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var v={lane:p,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};o===null?(u=o=v,s=r):o=o.next=v,B.lanes|=p,At|=p}a=a.next}while(a!==null&&a!==l);o===null?s=r:o.next=u,Ue(r,t.memoizedState)||(pe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=o,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,B.lanes|=l,At|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vl(e){var t=je(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do l=e(l,s.action),s=s.next;while(s!==i);Ue(l,t.memoizedState)||(pe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Sc(){}function Cc(e,t){var n=B,r=je(),i=t(),l=!Ue(r.memoizedState,i);if(l&&(r.memoizedState=i,pe=!0),r=r.queue,ou(Pc.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ee!==null&&ee.memoizedState.tag&1){if(n.flags|=2048,ur(9,Ec.bind(null,n,r,i,t),void 0,null),te===null)throw Error(R(349));Ut&30||kc(n,t,i)}return i}function kc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=B.updateQueue,t===null?(t={lastEffect:null,stores:null},B.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ec(e,t,n,r){t.value=n,t.getSnapshot=r,Rc(t)&&Nc(e)}function Pc(e,t,n){return n(function(){Rc(t)&&Nc(e)})}function Rc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ue(e,n)}catch{return!0}}function Nc(e){var t=et(e,1);t!==null&&ze(t,e,1,-1)}function yo(e){var t=qe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:e},t.queue=e,e=e.dispatch=Gh.bind(null,B,e),[t.memoizedState,e]}function ur(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=B.updateQueue,t===null?(t={lastEffect:null,stores:null},B.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 Oc(){return je().memoizedState}function $r(e,t,n,r){var i=qe();B.flags|=e,i.memoizedState=ur(1|t,n,void 0,r===void 0?null:r)}function Di(e,t,n,r){var i=je();r=r===void 0?null:r;var l=void 0;if(X!==null){var s=X.memoizedState;if(l=s.destroy,r!==null&&lu(r,s.deps)){i.memoizedState=ur(t,n,l,r);return}}B.flags|=e,i.memoizedState=ur(1|t,n,l,r)}function vo(e,t){return $r(8390656,8,e,t)}function ou(e,t){return Di(2048,8,e,t)}function _c(e,t){return Di(4,2,e,t)}function Tc(e,t){return Di(4,4,e,t)}function jc(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 Mc(e,t,n){return n=n!=null?n.concat([e]):null,Di(4,4,jc.bind(null,t,e),n)}function au(){}function Dc(e,t){var n=je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ic(e,t){var n=je();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Lc(e,t,n){return Ut&21?(Ue(n,t)||(n=Aa(),B.lanes|=n,At|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pe=!0),e.memoizedState=n)}function Wh(e,t){var n=F;F=n!==0&&4>n?n:4,e(!0);var r=ml.transition;ml.transition={};try{e(!1),t()}finally{F=n,ml.transition=r}}function Fc(){return je().memoizedState}function bh(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qc(e))zc(t,n);else if(n=gc(e,t,n,r),n!==null){var i=ce();ze(n,e,r,i),Uc(n,t,r)}}function Gh(e,t,n){var r=xt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qc(e))zc(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,u=l(s,n);if(i.hasEagerState=!0,i.eagerState=u,Ue(u,s)){var o=t.interleaved;o===null?(i.next=i,eu(t)):(i.next=o.next,o.next=i),t.interleaved=i;return}}catch{}finally{}n=gc(e,t,i,r),n!==null&&(i=ce(),ze(n,e,r,i),Uc(n,t,r))}}function Qc(e){var t=e.alternate;return e===B||t!==null&&t===B}function zc(e,t){qn=hi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,As(e,n)}}var pi={readContext:Te,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},Yh={readContext:Te,useCallback:function(e,t){return qe().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:vo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$r(4194308,4,jc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){return $r(4,2,e,t)},useMemo:function(e,t){var n=qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qe();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=bh.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=qe();return e={current:e},t.memoizedState=e},useState:yo,useDebugValue:au,useDeferredValue:function(e){return qe().memoizedState=e},useTransition:function(){var e=yo(!1),t=e[0];return e=Wh.bind(null,e[1]),qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,i=qe();if(q){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),te===null)throw Error(R(349));Ut&30||kc(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,vo(Pc.bind(null,r,l,e),[e]),r.flags|=2048,ur(9,Ec.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=qe(),t=te.identifierPrefix;if(q){var n=Ye,r=Ge;n=(r&~(1<<32-Qe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=lr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Vh++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xh={readContext:Te,useCallback:Dc,useContext:Te,useEffect:ou,useImperativeHandle:Mc,useInsertionEffect:_c,useLayoutEffect:Tc,useMemo:Ic,useReducer:yl,useRef:Oc,useState:function(){return yl(sr)},useDebugValue:au,useDeferredValue:function(e){var t=je();return Lc(t,X.memoizedState,e)},useTransition:function(){var e=yl(sr)[0],t=je().memoizedState;return[e,t]},useMutableSource:Sc,useSyncExternalStore:Cc,useId:Fc,unstable_isNewReconciler:!1},Zh={readContext:Te,useCallback:Dc,useContext:Te,useEffect:ou,useImperativeHandle:Mc,useInsertionEffect:_c,useLayoutEffect:Tc,useMemo:Ic,useReducer:vl,useRef:Oc,useState:function(){return vl(sr)},useDebugValue:au,useDeferredValue:function(e){var t=je();return X===null?t.memoizedState=e:Lc(t,X.memoizedState,e)},useTransition:function(){var e=vl(sr)[0],t=je().memoizedState;return[e,t]},useMutableSource:Sc,useSyncExternalStore:Cc,useId:Fc,unstable_isNewReconciler:!1};function Ie(e,t){if(e&&e.defaultProps){t=K({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:K({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ii={isMounted:function(e){return(e=e._reactInternals)?$t(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ce(),i=xt(e),l=Xe(r,i);l.payload=t,n!=null&&(l.callback=n),t=gt(e,l,i),t!==null&&(ze(t,e,i,r),qr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ce(),i=xt(e),l=Xe(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=gt(e,l,i),t!==null&&(ze(t,e,i,r),qr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ce(),r=xt(e),i=Xe(n,r);i.tag=2,t!=null&&(i.callback=t),t=gt(e,i,r),t!==null&&(ze(t,e,r,n),qr(t,e,r))}};function go(e,t,n,r,i,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!Jn(n,r)||!Jn(i,l):!0}function Ac(e,t,n){var r=!1,i=kt,l=t.contextType;return typeof l=="object"&&l!==null?l=Te(l):(i=ye(t)?Qt:oe.current,r=t.contextTypes,l=(r=r!=null)?hn(e,i):kt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ii,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function wo(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&&Ii.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},tu(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=Te(l):(l=ye(t)?Qt:oe.current,i.context=hn(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(is(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ii.enqueueReplaceState(i,i.state,null),fi(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function vn(e,t){try{var n="",r=t;do n+=Rd(r),r=r.return;while(r);var i=n}catch(l){i=`
|
|
39
|
+
Error generating stack: `+l.message+`
|
|
40
|
+
`+l.stack}return{value:e,source:t,stack:i,digest:null}}function gl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ss(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jh=typeof WeakMap=="function"?WeakMap:Map;function qc(e,t,n){n=Xe(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){yi||(yi=!0,ys=r),ss(e,t)},n}function Hc(e,t,n){n=Xe(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ss(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ss(e,t),typeof r!="function"&&(wt===null?wt=new Set([this]):wt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function xo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jh;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=hp.bind(null,e,t,n),t.then(e,e))}function So(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 Co(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xe(-1,1),t.tag=2,gt(n,t,1))),n.lanes|=1),e)}var ep=nt.ReactCurrentOwner,pe=!1;function ae(e,t,n,r){t.child=e===null?vc(t,null,n,r):mn(t,e.child,n,r)}function ko(e,t,n,r,i){n=n.render;var l=t.ref;return cn(t,i),r=su(e,t,n,r,l,i),n=uu(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tt(e,t,i)):(q&&n&&bs(t),t.flags|=1,ae(e,t,r,i),t.child)}function Eo(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!vu(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,$c(e,t,l,r,i)):(e=Wr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:Jn,n(s,r)&&e.ref===t.ref)return tt(e,t,i)}return t.flags|=1,e=St(l,r),e.ref=t.ref,e.return=t,t.child=e}function $c(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(Jn(l,r)&&e.ref===t.ref)if(pe=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(pe=!0);else return t.lanes=e.lanes,tt(e,t,i)}return us(e,t,n,r,i)}function Bc(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(rn,ge),ge|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(rn,ge),ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,Q(rn,ge),ge|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,Q(rn,ge),ge|=r;return ae(e,t,i,n),t.child}function Kc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function us(e,t,n,r,i){var l=ye(n)?Qt:oe.current;return l=hn(t,l),cn(t,i),n=su(e,t,n,r,l,i),r=uu(),e!==null&&!pe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tt(e,t,i)):(q&&r&&bs(t),t.flags|=1,ae(e,t,n,i),t.child)}function Po(e,t,n,r,i){if(ye(n)){var l=!0;si(t)}else l=!1;if(cn(t,i),t.stateNode===null)Br(e,t),Ac(t,n,r),ls(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,u=t.memoizedProps;s.props=u;var o=s.context,a=n.contextType;typeof a=="object"&&a!==null?a=Te(a):(a=ye(n)?Qt:oe.current,a=hn(t,a));var p=n.getDerivedStateFromProps,v=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";v||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==r||o!==a)&&wo(t,s,r,a),ut=!1;var d=t.memoizedState;s.state=d,fi(t,r,s,i),o=t.memoizedState,u!==r||d!==o||me.current||ut?(typeof p=="function"&&(is(t,n,p,r),o=t.memoizedState),(u=ut||go(t,n,u,r,d,o,a))?(v||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=o),s.props=r,s.state=o,s.context=a,r=u):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,wc(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:Ie(t.type,u),s.props=a,v=t.pendingProps,d=s.context,o=n.contextType,typeof o=="object"&&o!==null?o=Te(o):(o=ye(n)?Qt:oe.current,o=hn(t,o));var y=n.getDerivedStateFromProps;(p=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==v||d!==o)&&wo(t,s,r,o),ut=!1,d=t.memoizedState,s.state=d,fi(t,r,s,i);var g=t.memoizedState;u!==v||d!==g||me.current||ut?(typeof y=="function"&&(is(t,n,y,r),g=t.memoizedState),(a=ut||go(t,n,a,r,d,g,o)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,o),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,o)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=o,r=a):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return os(e,t,n,r,l,i)}function os(e,t,n,r,i,l){Kc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&ao(t,n,!1),tt(e,t,l);r=t.stateNode,ep.current=t;var u=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=mn(t,e.child,null,l),t.child=mn(t,null,u,l)):ae(e,t,u,l),t.memoizedState=r.state,i&&ao(t,n,!0),t.child}function Vc(e){var t=e.stateNode;t.pendingContext?oo(e,t.pendingContext,t.pendingContext!==t.context):t.context&&oo(e,t.context,!1),nu(e,t.containerInfo)}function Ro(e,t,n,r,i){return pn(),Ys(i),t.flags|=256,ae(e,t,n,r),t.child}var as={dehydrated:null,treeContext:null,retryLane:0};function cs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Wc(e,t,n){var r=t.pendingProps,i=$.current,l=!1,s=(t.flags&128)!==0,u;if((u=s)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Q($,i&1),e===null)return ns(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=Qi(s,r,0,null),e=Ft(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=cs(n),t.memoizedState=as,e):cu(t,s));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return tp(e,t,s,r,u,i,n);if(l){l=r.fallback,s=t.mode,i=e.child,u=i.sibling;var o={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=o,t.deletions=null):(r=St(i,o),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?l=St(u,l):(l=Ft(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?cs(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=as,r}return l=e.child,e=l.sibling,r=St(l,{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 cu(e,t){return t=Qi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mr(e,t,n,r){return r!==null&&Ys(r),mn(t,e.child,null,n),e=cu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tp(e,t,n,r,i,l,s){if(n)return t.flags&256?(t.flags&=-257,r=gl(Error(R(422))),Mr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Qi({mode:"visible",children:r.children},i,0,null),l=Ft(l,i,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&mn(t,e.child,null,s),t.child.memoizedState=cs(s),t.memoizedState=as,l);if(!(t.mode&1))return Mr(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(R(419)),r=gl(l,r,void 0),Mr(e,t,s,r)}if(u=(s&e.childLanes)!==0,pe||u){if(r=te,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,et(e,i),ze(r,e,i,-1))}return yu(),r=gl(Error(R(421))),Mr(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=pp.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,we=vt(i.nextSibling),xe=t,q=!0,Fe=null,e!==null&&(Re[Ne++]=Ge,Re[Ne++]=Ye,Re[Ne++]=zt,Ge=e.id,Ye=e.overflow,zt=t),t=cu(t,r.children),t.flags|=4096,t)}function No(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rs(e.return,t,n)}function wl(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function bc(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(ae(e,t,r.children,n),r=$.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&&No(e,n,t);else if(e.tag===19)No(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(Q($,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&di(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),wl(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&di(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}wl(t,!0,n,null,l);break;case"together":wl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Br(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),At|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=St(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=St(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function np(e,t,n){switch(t.tag){case 3:Vc(t),pn();break;case 5:xc(t);break;case 1:ye(t.type)&&si(t);break;case 4:nu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Q(ai,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q($,$.current&1),t.flags|=128,null):n&t.child.childLanes?Wc(e,t,n):(Q($,$.current&1),e=tt(e,t,n),e!==null?e.sibling:null);Q($,$.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q($,$.current),r)break;return null;case 22:case 23:return t.lanes=0,Bc(e,t,n)}return tt(e,t,n)}var Gc,fs,Yc,Xc;Gc=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}};fs=function(){};Yc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Dt(Ke.current);var l=null;switch(n){case"input":i=Dl(e,i),r=Dl(e,r),l=[];break;case"select":i=K({},i,{value:void 0}),r=K({},r,{value:void 0}),l=[];break;case"textarea":i=Fl(e,i),r=Fl(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ii)}zl(n,r);var s;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var u=i[a];for(s in u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Vn.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var o=r[a];if(u=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&o!==u&&(o!=null||u!=null))if(a==="style")if(u){for(s in u)!u.hasOwnProperty(s)||o&&o.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in o)o.hasOwnProperty(s)&&u[s]!==o[s]&&(n||(n={}),n[s]=o[s])}else n||(l||(l=[]),l.push(a,n)),n=o;else a==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,u=u?u.__html:void 0,o!=null&&u!==o&&(l=l||[]).push(a,o)):a==="children"?typeof o!="string"&&typeof o!="number"||(l=l||[]).push(a,""+o):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Vn.hasOwnProperty(a)?(o!=null&&a==="onScroll"&&z("scroll",e),l||u===o||(l=[])):(l=l||[]).push(a,o))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};Xc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tn(e,t){if(!q)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rp(e,t,n){var r=t.pendingProps;switch(Gs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return se(t),null;case 1:return ye(t.type)&&li(),se(t),null;case 3:return r=t.stateNode,yn(),A(me),A(oe),iu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Tr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fe!==null&&(ws(Fe),Fe=null))),fs(e,t),se(t),null;case 5:ru(t);var i=Dt(ir.current);if(n=t.type,e!==null&&t.stateNode!=null)Yc(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return se(t),null}if(e=Dt(Ke.current),Tr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[He]=t,r[nr]=l,e=(t.mode&1)!==0,n){case"dialog":z("cancel",r),z("close",r);break;case"iframe":case"object":case"embed":z("load",r);break;case"video":case"audio":for(i=0;i<Ln.length;i++)z(Ln[i],r);break;case"source":z("error",r);break;case"img":case"image":case"link":z("error",r),z("load",r);break;case"details":z("toggle",r);break;case"input":Lu(r,l),z("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},z("invalid",r);break;case"textarea":Qu(r,l),z("invalid",r)}zl(n,l),i=null;for(var s in l)if(l.hasOwnProperty(s)){var u=l[s];s==="children"?typeof u=="string"?r.textContent!==u&&(l.suppressHydrationWarning!==!0&&_r(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(l.suppressHydrationWarning!==!0&&_r(r.textContent,u,e),i=["children",""+u]):Vn.hasOwnProperty(s)&&u!=null&&s==="onScroll"&&z("scroll",r)}switch(n){case"input":Sr(r),Fu(r,l,!0);break;case"textarea":Sr(r),zu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=ii)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Pa(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[He]=t,e[nr]=r,Gc(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ul(n,r),n){case"dialog":z("cancel",e),z("close",e),i=r;break;case"iframe":case"object":case"embed":z("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ln.length;i++)z(Ln[i],e);i=r;break;case"source":z("error",e),i=r;break;case"img":case"image":case"link":z("error",e),z("load",e),i=r;break;case"details":z("toggle",e),i=r;break;case"input":Lu(e,r),i=Dl(e,r),z("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=K({},r,{value:void 0}),z("invalid",e);break;case"textarea":Qu(e,r),i=Fl(e,r),z("invalid",e);break;default:i=r}zl(n,i),u=i;for(l in u)if(u.hasOwnProperty(l)){var o=u[l];l==="style"?Oa(e,o):l==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,o!=null&&Ra(e,o)):l==="children"?typeof o=="string"?(n!=="textarea"||o!=="")&&Wn(e,o):typeof o=="number"&&Wn(e,""+o):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Vn.hasOwnProperty(l)?o!=null&&l==="onScroll"&&z("scroll",e):o!=null&&Is(e,l,o,s))}switch(n){case"input":Sr(e),Fu(e,r,!1);break;case"textarea":Sr(e),zu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ct(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?sn(e,!!r.multiple,l,!1):r.defaultValue!=null&&sn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ii)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return se(t),null;case 6:if(e&&t.stateNode!=null)Xc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=Dt(ir.current),Dt(Ke.current),Tr(t)){if(r=t.stateNode,n=t.memoizedProps,r[He]=t,(l=r.nodeValue!==n)&&(e=xe,e!==null))switch(e.tag){case 3:_r(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&_r(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[He]=t,t.stateNode=r}return se(t),null;case 13:if(A($),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(q&&we!==null&&t.mode&1&&!(t.flags&128))mc(),pn(),t.flags|=98560,l=!1;else if(l=Tr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(R(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(R(317));l[He]=t}else pn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;se(t),l=!1}else Fe!==null&&(ws(Fe),Fe=null),l=!0;if(!l)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||$.current&1?Z===0&&(Z=3):yu())),t.updateQueue!==null&&(t.flags|=4),se(t),null);case 4:return yn(),fs(e,t),e===null&&er(t.stateNode.containerInfo),se(t),null;case 10:return Js(t.type._context),se(t),null;case 17:return ye(t.type)&&li(),se(t),null;case 19:if(A($),l=t.memoizedState,l===null)return se(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Tn(l,!1);else{if(Z!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=di(e),s!==null){for(t.flags|=128,Tn(l,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,s=l.alternate,s===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q($,$.current&1|2),t.child}e=e.sibling}l.tail!==null&&G()>gn&&(t.flags|=128,r=!0,Tn(l,!1),t.lanes=4194304)}else{if(!r)if(e=di(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!q)return se(t),null}else 2*G()-l.renderingStartTime>gn&&n!==1073741824&&(t.flags|=128,r=!0,Tn(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=G(),t.sibling=null,n=$.current,Q($,r?n&1|2:n&1),t):(se(t),null);case 22:case 23:return mu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ge&1073741824&&(se(t),t.subtreeFlags&6&&(t.flags|=8192)):se(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function ip(e,t){switch(Gs(t),t.tag){case 1:return ye(t.type)&&li(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(),A(me),A(oe),iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ru(t),null;case 13:if(A($),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A($),null;case 4:return yn(),null;case 10:return Js(t.type._context),null;case 22:case 23:return mu(),null;case 24:return null;default:return null}}var Dr=!1,ue=!1,lp=typeof WeakSet=="function"?WeakSet:Set,N=null;function nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function ds(e,t,n){try{n()}catch(r){V(e,t,r)}}var Oo=!1;function sp(e,t){if(Gl=ti,e=nc(),Ws(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,u=-1,o=-1,a=0,p=0,v=e,d=null;t:for(;;){for(var y;v!==n||i!==0&&v.nodeType!==3||(u=s+i),v!==l||r!==0&&v.nodeType!==3||(o=s+r),v.nodeType===3&&(s+=v.nodeValue.length),(y=v.firstChild)!==null;)d=v,v=y;for(;;){if(v===e)break t;if(d===n&&++a===i&&(u=s),d===l&&++p===r&&(o=s),(y=v.nextSibling)!==null)break;v=d,d=v.parentNode}v=y}n=u===-1||o===-1?null:{start:u,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yl={focusedElem:e,selectionRange:n},ti=!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 g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,P=g.memoizedState,c=t.stateNode,f=c.getSnapshotBeforeUpdate(t.elementType===t.type?m:Ie(t.type,m),P);c.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){V(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return g=Oo,Oo=!1,g}function Hn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&ds(t,n,l)}i=i.next}while(i!==r)}}function Li(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 hs(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 Zc(e){var t=e.alternate;t!==null&&(e.alternate=null,Zc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[He],delete t[nr],delete t[Jl],delete t[Hh],delete t[$h])),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 Jc(e){return e.tag===5||e.tag===3||e.tag===4}function _o(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(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 ps(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=ii));else if(r!==4&&(e=e.child,e!==null))for(ps(e,t,n),e=e.sibling;e!==null;)ps(e,t,n),e=e.sibling}function ms(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(ms(e,t,n),e=e.sibling;e!==null;)ms(e,t,n),e=e.sibling}var ne=null,Le=!1;function it(e,t,n){for(n=n.child;n!==null;)ef(e,t,n),n=n.sibling}function ef(e,t,n){if(Be&&typeof Be.onCommitFiberUnmount=="function")try{Be.onCommitFiberUnmount(Ni,n)}catch{}switch(n.tag){case 5:ue||nn(n,t);case 6:var r=ne,i=Le;ne=null,it(e,t,n),ne=r,Le=i,ne!==null&&(Le?(e=ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ne.removeChild(n.stateNode));break;case 18:ne!==null&&(Le?(e=ne,n=n.stateNode,e.nodeType===8?dl(e.parentNode,n):e.nodeType===1&&dl(e,n),Xn(e)):dl(ne,n.stateNode));break;case 4:r=ne,i=Le,ne=n.stateNode.containerInfo,Le=!0,it(e,t,n),ne=r,Le=i;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&ds(n,t,s),i=i.next}while(i!==r)}it(e,t,n);break;case 1:if(!ue&&(nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){V(n,t,u)}it(e,t,n);break;case 21:it(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,it(e,t,n),ue=r):it(e,t,n);break;default:it(e,t,n)}}function To(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lp),t.forEach(function(r){var i=mp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function De(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,s=t,u=s;e:for(;u!==null;){switch(u.tag){case 5:ne=u.stateNode,Le=!1;break e;case 3:ne=u.stateNode.containerInfo,Le=!0;break e;case 4:ne=u.stateNode.containerInfo,Le=!0;break e}u=u.return}if(ne===null)throw Error(R(160));ef(l,s,i),ne=null,Le=!1;var o=i.alternate;o!==null&&(o.return=null),i.return=null}catch(a){V(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)tf(t,e),t=t.sibling}function tf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(De(t,e),Ae(e),r&4){try{Hn(3,e,e.return),Li(3,e)}catch(m){V(e,e.return,m)}try{Hn(5,e,e.return)}catch(m){V(e,e.return,m)}}break;case 1:De(t,e),Ae(e),r&512&&n!==null&&nn(n,n.return);break;case 5:if(De(t,e),Ae(e),r&512&&n!==null&&nn(n,n.return),e.flags&32){var i=e.stateNode;try{Wn(i,"")}catch(m){V(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,u=e.type,o=e.updateQueue;if(e.updateQueue=null,o!==null)try{u==="input"&&l.type==="radio"&&l.name!=null&&ka(i,l),Ul(u,s);var a=Ul(u,l);for(s=0;s<o.length;s+=2){var p=o[s],v=o[s+1];p==="style"?Oa(i,v):p==="dangerouslySetInnerHTML"?Ra(i,v):p==="children"?Wn(i,v):Is(i,p,v,a)}switch(u){case"input":Il(i,l);break;case"textarea":Ea(i,l);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var y=l.value;y!=null?sn(i,!!l.multiple,y,!1):d!==!!l.multiple&&(l.defaultValue!=null?sn(i,!!l.multiple,l.defaultValue,!0):sn(i,!!l.multiple,l.multiple?[]:"",!1))}i[nr]=l}catch(m){V(e,e.return,m)}}break;case 6:if(De(t,e),Ae(e),r&4){if(e.stateNode===null)throw Error(R(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(m){V(e,e.return,m)}}break;case 3:if(De(t,e),Ae(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Xn(t.containerInfo)}catch(m){V(e,e.return,m)}break;case 4:De(t,e),Ae(e);break;case 13:De(t,e),Ae(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(hu=G())),r&4&&To(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(a=ue)||p,De(t,e),ue=a):De(t,e),Ae(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!p&&e.mode&1)for(N=e,p=e.child;p!==null;){for(v=N=p;N!==null;){switch(d=N,y=d.child,d.tag){case 0:case 11:case 14:case 15:Hn(4,d,d.return);break;case 1:nn(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){V(r,n,m)}}break;case 5:nn(d,d.return);break;case 22:if(d.memoizedState!==null){Mo(v);continue}}y!==null?(y.return=d,N=y):Mo(v)}p=p.sibling}e:for(p=null,v=e;;){if(v.tag===5){if(p===null){p=v;try{i=v.stateNode,a?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(u=v.stateNode,o=v.memoizedProps.style,s=o!=null&&o.hasOwnProperty("display")?o.display:null,u.style.display=Na("display",s))}catch(m){V(e,e.return,m)}}}else if(v.tag===6){if(p===null)try{v.stateNode.nodeValue=a?"":v.memoizedProps}catch(m){V(e,e.return,m)}}else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===e)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===e)break e;for(;v.sibling===null;){if(v.return===null||v.return===e)break e;p===v&&(p=null),v=v.return}p===v&&(p=null),v.sibling.return=v.return,v=v.sibling}}break;case 19:De(t,e),Ae(e),r&4&&To(e);break;case 21:break;default:De(t,e),Ae(e)}}function Ae(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Jc(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Wn(i,""),r.flags&=-33);var l=_o(e);ms(e,l,i);break;case 3:case 4:var s=r.stateNode.containerInfo,u=_o(e);ps(e,u,s);break;default:throw Error(R(161))}}catch(o){V(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function up(e,t,n){N=e,nf(e)}function nf(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var i=N,l=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Dr;if(!s){var u=i.alternate,o=u!==null&&u.memoizedState!==null||ue;u=Dr;var a=ue;if(Dr=s,(ue=o)&&!a)for(N=i;N!==null;)s=N,o=s.child,s.tag===22&&s.memoizedState!==null?Do(i):o!==null?(o.return=s,N=o):Do(i);for(;l!==null;)N=l,nf(l),l=l.sibling;N=i,Dr=u,ue=a}jo(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,N=l):jo(e)}}function jo(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:ue||Li(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ie(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&mo(t,l,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mo(t,s,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var o=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();break;case"img":o.src&&(n.src=o.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var p=a.memoizedState;if(p!==null){var v=p.dehydrated;v!==null&&Xn(v)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}ue||t.flags&512&&hs(t)}catch(d){V(t,t.return,d)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function Mo(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 Do(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Li(4,t)}catch(o){V(t,n,o)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(o){V(t,i,o)}}var l=t.return;try{hs(t)}catch(o){V(t,l,o)}break;case 5:var s=t.return;try{hs(t)}catch(o){V(t,s,o)}}}catch(o){V(t,t.return,o)}if(t===e){N=null;break}var u=t.sibling;if(u!==null){u.return=t.return,N=u;break}N=t.return}}var op=Math.ceil,mi=nt.ReactCurrentDispatcher,fu=nt.ReactCurrentOwner,_e=nt.ReactCurrentBatchConfig,L=0,te=null,Y=null,re=0,ge=0,rn=Pt(0),Z=0,or=null,At=0,Fi=0,du=0,$n=null,he=null,hu=0,gn=1/0,Ve=null,yi=!1,ys=null,wt=null,Ir=!1,dt=null,vi=0,Bn=0,vs=null,Kr=-1,Vr=0;function ce(){return L&6?G():Kr!==-1?Kr:Kr=G()}function xt(e){return e.mode&1?L&2&&re!==0?re&-re:Kh.transition!==null?(Vr===0&&(Vr=Aa()),Vr):(e=F,e!==0||(e=window.event,e=e===void 0?16:Wa(e.type)),e):1}function ze(e,t,n,r){if(50<Bn)throw Bn=0,vs=null,Error(R(185));fr(e,n,r),(!(L&2)||e!==te)&&(e===te&&(!(L&2)&&(Fi|=n),Z===4&&ct(e,re)),ve(e,r),n===1&&L===0&&!(t.mode&1)&&(gn=G()+500,Mi&&Rt()))}function ve(e,t){var n=e.callbackNode;Kd(e,t);var r=ei(e,e===te?re:0);if(r===0)n!==null&&qu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&qu(n),t===1)e.tag===0?Bh(Io.bind(null,e)):dc(Io.bind(null,e)),Ah(function(){!(L&6)&&Rt()}),n=null;else{switch(qa(r)){case 1:n=Us;break;case 4:n=za;break;case 16:n=Jr;break;case 536870912:n=Ua;break;default:n=Jr}n=ff(n,rf.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rf(e,t){if(Kr=-1,Vr=0,L&6)throw Error(R(327));var n=e.callbackNode;if(fn()&&e.callbackNode!==n)return null;var r=ei(e,e===te?re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=gi(e,r);else{t=r;var i=L;L|=2;var l=sf();(te!==e||re!==t)&&(Ve=null,gn=G()+500,Lt(e,t));do try{fp();break}catch(u){lf(e,u)}while(!0);Zs(),mi.current=l,L=i,Y!==null?t=0:(te=null,re=0,t=Z)}if(t!==0){if(t===2&&(i=Bl(e),i!==0&&(r=i,t=gs(e,i))),t===1)throw n=or,Lt(e,0),ct(e,r),ve(e,G()),n;if(t===6)ct(e,r);else{if(i=e.current.alternate,!(r&30)&&!ap(i)&&(t=gi(e,r),t===2&&(l=Bl(e),l!==0&&(r=l,t=gs(e,l))),t===1))throw n=or,Lt(e,0),ct(e,r),ve(e,G()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:Tt(e,he,Ve);break;case 3:if(ct(e,r),(r&130023424)===r&&(t=hu+500-G(),10<t)){if(ei(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){ce(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Zl(Tt.bind(null,e,he,Ve),t);break}Tt(e,he,Ve);break;case 4:if(ct(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Qe(r);l=1<<s,s=t[s],s>i&&(i=s),r&=~l}if(r=i,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*op(r/1960))-r,10<r){e.timeoutHandle=Zl(Tt.bind(null,e,he,Ve),r);break}Tt(e,he,Ve);break;case 5:Tt(e,he,Ve);break;default:throw Error(R(329))}}}return ve(e,G()),e.callbackNode===n?rf.bind(null,e):null}function gs(e,t){var n=$n;return e.current.memoizedState.isDehydrated&&(Lt(e,t).flags|=256),e=gi(e,t),e!==2&&(t=he,he=n,t!==null&&ws(t)),e}function ws(e){he===null?he=e:he.push.apply(he,e)}function ap(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!Ue(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ct(e,t){for(t&=~du,t&=~Fi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Qe(t),r=1<<n;e[n]=-1,t&=~r}}function Io(e){if(L&6)throw Error(R(327));fn();var t=ei(e,0);if(!(t&1))return ve(e,G()),null;var n=gi(e,t);if(e.tag!==0&&n===2){var r=Bl(e);r!==0&&(t=r,n=gs(e,r))}if(n===1)throw n=or,Lt(e,0),ct(e,t),ve(e,G()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tt(e,he,Ve),ve(e,G()),null}function pu(e,t){var n=L;L|=1;try{return e(t)}finally{L=n,L===0&&(gn=G()+500,Mi&&Rt())}}function qt(e){dt!==null&&dt.tag===0&&!(L&6)&&fn();var t=L;L|=1;var n=_e.transition,r=F;try{if(_e.transition=null,F=1,e)return e()}finally{F=r,_e.transition=n,L=t,!(L&6)&&Rt()}}function mu(){ge=rn.current,A(rn)}function Lt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Uh(n)),Y!==null)for(n=Y.return;n!==null;){var r=n;switch(Gs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&li();break;case 3:yn(),A(me),A(oe),iu();break;case 5:ru(r);break;case 4:yn();break;case 13:A($);break;case 19:A($);break;case 10:Js(r.type._context);break;case 22:case 23:mu()}n=n.return}if(te=e,Y=e=St(e.current,null),re=ge=t,Z=0,or=null,du=Fi=At=0,he=$n=null,Mt!==null){for(t=0;t<Mt.length;t++)if(n=Mt[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=i,r.next=s}n.pending=r}Mt=null}return e}function lf(e,t){do{var n=Y;try{if(Zs(),Hr.current=pi,hi){for(var r=B.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}hi=!1}if(Ut=0,ee=X=B=null,qn=!1,lr=0,fu.current=null,n===null||n.return===null){Z=1,or=t,Y=null;break}e:{var l=e,s=n.return,u=n,o=t;if(t=re,u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){var a=o,p=u,v=p.tag;if(!(p.mode&1)&&(v===0||v===11||v===15)){var d=p.alternate;d?(p.updateQueue=d.updateQueue,p.memoizedState=d.memoizedState,p.lanes=d.lanes):(p.updateQueue=null,p.memoizedState=null)}var y=So(s);if(y!==null){y.flags&=-257,Co(y,s,u,l,t),y.mode&1&&xo(l,a,t),t=y,o=a;var g=t.updateQueue;if(g===null){var m=new Set;m.add(o),t.updateQueue=m}else g.add(o);break e}else{if(!(t&1)){xo(l,a,t),yu();break e}o=Error(R(426))}}else if(q&&u.mode&1){var P=So(s);if(P!==null){!(P.flags&65536)&&(P.flags|=256),Co(P,s,u,l,t),Ys(vn(o,u));break e}}l=o=vn(o,u),Z!==4&&(Z=2),$n===null?$n=[l]:$n.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var c=qc(l,o,t);po(l,c);break e;case 1:u=o;var f=l.type,h=l.stateNode;if(!(l.flags&128)&&(typeof f.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(wt===null||!wt.has(h)))){l.flags|=65536,t&=-t,l.lanes|=t;var S=Hc(l,u,t);po(l,S);break e}}l=l.return}while(l!==null)}of(n)}catch(k){t=k,Y===n&&n!==null&&(Y=n=n.return);continue}break}while(!0)}function sf(){var e=mi.current;return mi.current=pi,e===null?pi:e}function yu(){(Z===0||Z===3||Z===2)&&(Z=4),te===null||!(At&268435455)&&!(Fi&268435455)||ct(te,re)}function gi(e,t){var n=L;L|=2;var r=sf();(te!==e||re!==t)&&(Ve=null,Lt(e,t));do try{cp();break}catch(i){lf(e,i)}while(!0);if(Zs(),L=n,mi.current=r,Y!==null)throw Error(R(261));return te=null,re=0,Z}function cp(){for(;Y!==null;)uf(Y)}function fp(){for(;Y!==null&&!Fd();)uf(Y)}function uf(e){var t=cf(e.alternate,e,ge);e.memoizedProps=e.pendingProps,t===null?of(e):Y=t,fu.current=null}function of(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ip(n,t),n!==null){n.flags&=32767,Y=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Z=6,Y=null;return}}else if(n=rp(n,t,ge),n!==null){Y=n;return}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);Z===0&&(Z=5)}function Tt(e,t,n){var r=F,i=_e.transition;try{_e.transition=null,F=1,dp(e,t,n,r)}finally{_e.transition=i,F=r}return null}function dp(e,t,n,r){do fn();while(dt!==null);if(L&6)throw Error(R(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Vd(e,l),e===te&&(Y=te=null,re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ir||(Ir=!0,ff(Jr,function(){return fn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=_e.transition,_e.transition=null;var s=F;F=1;var u=L;L|=4,fu.current=null,sp(e,n),tf(n,e),Mh(Yl),ti=!!Gl,Yl=Gl=null,e.current=n,up(n),Qd(),L=u,F=s,_e.transition=l}else e.current=n;if(Ir&&(Ir=!1,dt=e,vi=i),l=e.pendingLanes,l===0&&(wt=null),Ad(n.stateNode),ve(e,G()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(yi)throw yi=!1,e=ys,ys=null,e;return vi&1&&e.tag!==0&&fn(),l=e.pendingLanes,l&1?e===vs?Bn++:(Bn=0,vs=e):Bn=0,Rt(),null}function fn(){if(dt!==null){var e=qa(vi),t=_e.transition,n=F;try{if(_e.transition=null,F=16>e?16:e,dt===null)var r=!1;else{if(e=dt,dt=null,vi=0,L&6)throw Error(R(331));var i=L;for(L|=4,N=e.current;N!==null;){var l=N,s=l.child;if(N.flags&16){var u=l.deletions;if(u!==null){for(var o=0;o<u.length;o++){var a=u[o];for(N=a;N!==null;){var p=N;switch(p.tag){case 0:case 11:case 15:Hn(8,p,l)}var v=p.child;if(v!==null)v.return=p,N=v;else for(;N!==null;){p=N;var d=p.sibling,y=p.return;if(Zc(p),p===a){N=null;break}if(d!==null){d.return=y,N=d;break}N=y}}}var g=l.alternate;if(g!==null){var m=g.child;if(m!==null){g.child=null;do{var P=m.sibling;m.sibling=null,m=P}while(m!==null)}}N=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,N=s;else e:for(;N!==null;){if(l=N,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Hn(9,l,l.return)}var c=l.sibling;if(c!==null){c.return=l.return,N=c;break e}N=l.return}}var f=e.current;for(N=f;N!==null;){s=N;var h=s.child;if(s.subtreeFlags&2064&&h!==null)h.return=s,N=h;else e:for(s=f;N!==null;){if(u=N,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Li(9,u)}}catch(k){V(u,u.return,k)}if(u===s){N=null;break e}var S=u.sibling;if(S!==null){S.return=u.return,N=S;break e}N=u.return}}if(L=i,Rt(),Be&&typeof Be.onPostCommitFiberRoot=="function")try{Be.onPostCommitFiberRoot(Ni,e)}catch{}r=!0}return r}finally{F=n,_e.transition=t}}return!1}function Lo(e,t,n){t=vn(n,t),t=qc(e,t,1),e=gt(e,t,1),t=ce(),e!==null&&(fr(e,1,t),ve(e,t))}function V(e,t,n){if(e.tag===3)Lo(e,e,n);else for(;t!==null;){if(t.tag===3){Lo(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(wt===null||!wt.has(r))){e=vn(n,e),e=Hc(t,e,1),t=gt(t,e,1),e=ce(),t!==null&&(fr(t,1,e),ve(t,e));break}}t=t.return}}function hp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ce(),e.pingedLanes|=e.suspendedLanes&n,te===e&&(re&n)===n&&(Z===4||Z===3&&(re&130023424)===re&&500>G()-hu?Lt(e,0):du|=n),ve(e,t)}function af(e,t){t===0&&(e.mode&1?(t=Er,Er<<=1,!(Er&130023424)&&(Er=4194304)):t=1);var n=ce();e=et(e,t),e!==null&&(fr(e,t,n),ve(e,n))}function pp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),af(e,n)}function mp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),af(e,n)}var cf;cf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||me.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,np(e,t,n);pe=!!(e.flags&131072)}else pe=!1,q&&t.flags&1048576&&hc(t,oi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Br(e,t),e=t.pendingProps;var i=hn(t,oe.current);cn(t,n),i=su(null,t,r,e,i,n);var l=uu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ye(r)?(l=!0,si(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,tu(t),i.updater=Ii,t.stateNode=i,i._reactInternals=t,ls(t,r,e,n),t=os(null,t,r,!0,l,n)):(t.tag=0,q&&l&&bs(t),ae(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Br(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=vp(r),e=Ie(r,e),i){case 0:t=us(null,t,r,e,n);break e;case 1:t=Po(null,t,r,e,n);break e;case 11:t=ko(null,t,r,e,n);break e;case 14:t=Eo(null,t,r,Ie(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ie(r,i),us(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ie(r,i),Po(e,t,r,i,n);case 3:e:{if(Vc(t),e===null)throw Error(R(387));r=t.pendingProps,l=t.memoizedState,i=l.element,wc(e,t),fi(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=vn(Error(R(423)),t),t=Ro(e,t,r,n,i);break e}else if(r!==i){i=vn(Error(R(424)),t),t=Ro(e,t,r,n,i);break e}else for(we=vt(t.stateNode.containerInfo.firstChild),xe=t,q=!0,Fe=null,n=vc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pn(),r===i){t=tt(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return xc(t),e===null&&ns(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,Xl(r,i)?s=null:l!==null&&Xl(r,l)&&(t.flags|=32),Kc(e,t),ae(e,t,s,n),t.child;case 6:return e===null&&ns(t),null;case 13:return Wc(e,t,n);case 4:return nu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mn(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ie(r,i),ko(e,t,r,i,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,Q(ai,r._currentValue),r._currentValue=s,l!==null)if(Ue(l.value,s)){if(l.children===i.children&&!me.current){t=tt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){s=l.child;for(var o=u.firstContext;o!==null;){if(o.context===r){if(l.tag===1){o=Xe(-1,n&-n),o.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var p=a.pending;p===null?o.next=o:(o.next=p.next,p.next=o),a.pending=o}}l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),rs(l.return,n,t),u.lanes|=n;break}o=o.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(R(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),rs(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,cn(t,n),i=Te(i),r=r(i),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,i=Ie(r,t.pendingProps),i=Ie(r.type,i),Eo(e,t,r,i,n);case 15:return $c(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ie(r,i),Br(e,t),t.tag=1,ye(r)?(e=!0,si(t)):e=!1,cn(t,n),Ac(t,r,i),ls(t,r,i,n),os(null,t,r,!0,e,n);case 19:return bc(e,t,n);case 22:return Bc(e,t,n)}throw Error(R(156,t.tag))};function ff(e,t){return Qa(e,t)}function yp(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 Oe(e,t,n,r){return new yp(e,t,n,r)}function vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vp(e){if(typeof e=="function")return vu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fs)return 11;if(e===Qs)return 14}return 2}function St(e,t){var n=e.alternate;return n===null?(n=Oe(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 Wr(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")vu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Wt:return Ft(n.children,i,l,t);case Ls:s=8,i|=8;break;case _l:return e=Oe(12,n,t,i|2),e.elementType=_l,e.lanes=l,e;case Tl:return e=Oe(13,n,t,i),e.elementType=Tl,e.lanes=l,e;case jl:return e=Oe(19,n,t,i),e.elementType=jl,e.lanes=l,e;case xa:return Qi(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ga:s=10;break e;case wa:s=9;break e;case Fs:s=11;break e;case Qs:s=14;break e;case st:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Oe(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Ft(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function Qi(e,t,n,r){return e=Oe(22,e,r,t),e.elementType=xa,e.lanes=n,e.stateNode={isHidden:!1},e}function xl(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function Sl(e,t,n){return t=Oe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gp(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=tl(0),this.expirationTimes=tl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gu(e,t,n,r,i,l,s,u,o){return e=new gp(e,t,n,u,o),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Oe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tu(l),e}function wp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function df(e){if(!e)return kt;e=e._reactInternals;e:{if($t(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ye(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(ye(n))return fc(e,n,t)}return t}function hf(e,t,n,r,i,l,s,u,o){return e=gu(n,r,!0,e,i,l,s,u,o),e.context=df(null),n=e.current,r=ce(),i=xt(n),l=Xe(r,i),l.callback=t??null,gt(n,l,i),e.current.lanes=i,fr(e,i,r),ve(e,r),e}function zi(e,t,n,r){var i=t.current,l=ce(),s=xt(i);return n=df(n),t.context===null?t.context=n:t.pendingContext=n,t=Xe(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gt(i,t,s),e!==null&&(ze(e,i,s,l),qr(e,i,s)),s}function wi(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 Fo(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wu(e,t){Fo(e,t),(e=e.alternate)&&Fo(e,t)}function xp(){return null}var pf=typeof reportError=="function"?reportError:function(e){console.error(e)};function xu(e){this._internalRoot=e}Ui.prototype.render=xu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));zi(e,t,null,null)};Ui.prototype.unmount=xu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qt(function(){zi(null,e,null,null)}),t[Je]=null}};function Ui(e){this._internalRoot=e}Ui.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ba();e={blockedOn:null,target:e,priority:t};for(var n=0;n<at.length&&t!==0&&t<at[n].priority;n++);at.splice(n,0,e),n===0&&Va(e)}};function Su(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ai(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qo(){}function Sp(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var a=wi(s);l.call(a)}}var s=hf(t,r,e,0,null,!1,!1,"",Qo);return e._reactRootContainer=s,e[Je]=s.current,er(e.nodeType===8?e.parentNode:e),qt(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var a=wi(o);u.call(a)}}var o=gu(e,0,!1,null,null,!1,!1,"",Qo);return e._reactRootContainer=o,e[Je]=o.current,er(e.nodeType===8?e.parentNode:e),qt(function(){zi(t,o,n,r)}),o}function qi(e,t,n,r,i){var l=n._reactRootContainer;if(l){var s=l;if(typeof i=="function"){var u=i;i=function(){var o=wi(s);u.call(o)}}zi(t,s,e,i)}else s=Sp(n,t,e,i,r);return wi(s)}Ha=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=In(t.pendingLanes);n!==0&&(As(t,n|1),ve(t,G()),!(L&6)&&(gn=G()+500,Rt()))}break;case 13:qt(function(){var r=et(e,1);if(r!==null){var i=ce();ze(r,e,1,i)}}),wu(e,1)}};qs=function(e){if(e.tag===13){var t=et(e,134217728);if(t!==null){var n=ce();ze(t,e,134217728,n)}wu(e,134217728)}};$a=function(e){if(e.tag===13){var t=xt(e),n=et(e,t);if(n!==null){var r=ce();ze(n,e,t,r)}wu(e,t)}};Ba=function(){return F};Ka=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};ql=function(e,t,n){switch(t){case"input":if(Il(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ji(r);if(!i)throw Error(R(90));Ca(r),Il(r,i)}}}break;case"textarea":Ea(e,n);break;case"select":t=n.value,t!=null&&sn(e,!!n.multiple,t,!1)}};ja=pu;Ma=qt;var Cp={usingClientEntryPoint:!1,Events:[hr,Xt,ji,_a,Ta,pu]},jn={findFiberByHostInstance:jt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kp={bundleType:jn.bundleType,version:jn.version,rendererPackageName:jn.rendererPackageName,rendererConfig:jn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=La(e),e===null?null:e.stateNode},findFiberByHostInstance:jn.findFiberByHostInstance||xp,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 Lr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lr.isDisabled&&Lr.supportsFiber)try{Ni=Lr.inject(kp),Be=Lr}catch{}}Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Cp;Ce.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Su(t))throw Error(R(200));return wp(e,t,null,n)};Ce.createRoot=function(e,t){if(!Su(e))throw Error(R(299));var n=!1,r="",i=pf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=gu(e,1,!1,null,null,n,!1,r,i),e[Je]=t.current,er(e.nodeType===8?e.parentNode:e),new xu(t)};Ce.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(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=La(t),e=e===null?null:e.stateNode,e};Ce.flushSync=function(e){return qt(e)};Ce.hydrate=function(e,t,n){if(!Ai(t))throw Error(R(200));return qi(null,e,t,!0,n)};Ce.hydrateRoot=function(e,t,n){if(!Su(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",s=pf;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=hf(t,null,e,1,n??null,i,!1,l,s),e[Je]=t.current,er(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ui(t)};Ce.render=function(e,t,n){if(!Ai(t))throw Error(R(200));return qi(null,e,t,!1,n)};Ce.unmountComponentAtNode=function(e){if(!Ai(e))throw Error(R(40));return e._reactRootContainer?(qt(function(){qi(null,null,e,!1,function(){e._reactRootContainer=null,e[Je]=null})}),!0):!1};Ce.unstable_batchedUpdates=pu;Ce.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ai(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return qi(e,t,n,!1,r)};Ce.version="18.3.1-next-f1338f8080-20240426";function mf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mf)}catch(e){console.error(e)}}mf(),pa.exports=Ce;var Ep=pa.exports,zo=Ep;Nl.createRoot=zo.createRoot,Nl.hydrateRoot=zo.hydrateRoot;class Bt{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const ar=typeof window>"u"||"Deno"in window;function Pe(){}function Pp(e,t){return typeof e=="function"?e(t):e}function xs(e){return typeof e=="number"&&e>=0&&e!==1/0}function Uo(e,t){return e.filter(n=>!t.includes(n))}function Rp(e,t,n){const r=e.slice(0);return r[t]=n,r}function yf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ln(e,t,n){return mr(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Np(e,t,n){return mr(e)?{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function ot(e,t,n){return mr(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ao(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:s,stale:u}=e;if(mr(s)){if(r){if(t.queryHash!==Cu(s,t.options))return!1}else if(!xi(t.queryKey,s))return!1}if(n!=="all"){const o=t.isActive();if(n==="active"&&!o||n==="inactive"&&o)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof i<"u"&&i!==t.state.fetchStatus||l&&!l(t))}function qo(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:l}=e;if(mr(l)){if(!t.options.mutationKey)return!1;if(n){if(ht(t.options.mutationKey)!==ht(l))return!1}else if(!xi(t.options.mutationKey,l))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Cu(e,t){return((t==null?void 0:t.queryKeyHashFn)||ht)(e)}function ht(e){return JSON.stringify(e,(t,n)=>Ss(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function xi(e,t){return vf(e,t)}function vf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!vf(e[n],t[n])):!1}function gf(e,t){if(e===t)return e;const n=Ho(e)&&Ho(t);if(n||Ss(e)&&Ss(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),l=i.length,s=n?[]:{};let u=0;for(let o=0;o<l;o++){const a=n?o:i[o];s[a]=gf(e[a],t[a]),s[a]===e[a]&&u++}return r===l&&u===r?e:s}return t}function Si(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ho(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ss(e){if(!$o(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!$o(n)||!n.hasOwnProperty("isPrototypeOf"))}function $o(e){return Object.prototype.toString.call(e)==="[object Object]"}function mr(e){return Array.isArray(e)}function wf(e){return new Promise(t=>{setTimeout(t,e)})}function Bo(e){wf(0).then(e)}function Op(){if(typeof AbortController=="function")return new AbortController}function Cs(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gf(e,t):t}class _p extends Bt{constructor(){super(),this.setup=t=>{if(!ar&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Ci=new _p,Ko=["online","offline"];class Tp extends Bt{constructor(){super(),this.setup=t=>{if(!ar&&window.addEventListener){const n=()=>t();return Ko.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Ko.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const ki=new Tp;function jp(e){return Math.min(1e3*2**e,3e4)}function Hi(e){return(e??"online")==="online"?ki.isOnline():!0}class xf{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function br(e){return e instanceof xf}function Sf(e){let t=!1,n=0,r=!1,i,l,s;const u=new Promise((P,c)=>{l=P,s=c}),o=P=>{r||(y(new xf(P)),e.abort==null||e.abort())},a=()=>{t=!0},p=()=>{t=!1},v=()=>!Ci.isFocused()||e.networkMode!=="always"&&!ki.isOnline(),d=P=>{r||(r=!0,e.onSuccess==null||e.onSuccess(P),i==null||i(),l(P))},y=P=>{r||(r=!0,e.onError==null||e.onError(P),i==null||i(),s(P))},g=()=>new Promise(P=>{i=c=>{const f=r||!v();return f&&P(c),f},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),m=()=>{if(r)return;let P;try{P=e.fn()}catch(c){P=Promise.reject(c)}Promise.resolve(P).then(d).catch(c=>{var f,h;if(r)return;const S=(f=e.retry)!=null?f:3,k=(h=e.retryDelay)!=null?h:jp,w=typeof k=="function"?k(n,c):k,x=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,c);if(t||!x){y(c);return}n++,e.onFail==null||e.onFail(n,c),wf(w).then(()=>{if(v())return g()}).then(()=>{t?y(c):m()})})};return Hi(e.networkMode)?m():g().then(m),{promise:u,cancel:o,continue:()=>(i==null?void 0:i())?u:Promise.resolve(),cancelRetry:a,continueRetry:p}}const ku=console;function Mp(){let e=[],t=0,n=p=>{p()},r=p=>{p()};const i=p=>{let v;t++;try{v=p()}finally{t--,t||u()}return v},l=p=>{t?e.push(p):Bo(()=>{n(p)})},s=p=>(...v)=>{l(()=>{p(...v)})},u=()=>{const p=e;e=[],p.length&&Bo(()=>{r(()=>{p.forEach(v=>{n(v)})})})};return{batch:i,batchCalls:s,schedule:l,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p}}}const U=Mp();class Cf{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xs(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(ar?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Dp extends Cf{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||ku,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||Ip(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Cs(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(Pe).catch(Pe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!yf(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var l;return(l=this.retryer)==null||l.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const y=this.observers.find(g=>g.options.queryFn);y&&this.setOptions(y.options)}const s=Op(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};o(u);const a=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),p={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};if(o(p),(r=this.options.behavior)==null||r.onFetch(p),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=p.fetchOptions)==null?void 0:i.meta)){var v;this.dispatch({type:"fetch",meta:(v=p.fetchOptions)==null?void 0:v.meta})}const d=y=>{if(br(y)&&y.silent||this.dispatch({type:"error",error:y}),!br(y)){var g,m,P,c;(g=(m=this.cache.config).onError)==null||g.call(m,y,this),(P=(c=this.cache.config).onSettled)==null||P.call(c,this.state.data,y,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Sf({fn:p.fetchFn,abort:s==null?void 0:s.abort.bind(s),onSuccess:y=>{var g,m,P,c;if(typeof y>"u"){d(new Error(this.queryHash+" data is undefined"));return}this.setData(y),(g=(m=this.cache.config).onSuccess)==null||g.call(m,y,this),(P=(c=this.cache.config).onSettled)==null||P.call(c,y,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(y,g)=>{this.dispatch({type:"failed",failureCount:y,error:g})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,l;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Hi(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(l=t.dataUpdatedAt)!=null?l:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return br(s)&&s.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),U.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function Ip(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class Lp extends Bt{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const l=n.queryKey,s=(i=n.queryHash)!=null?i:Cu(l,n);let u=this.get(s);return u||(u=new Dp({cache:this,logger:t.getLogger(),queryKey:l,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(l)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){U.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=ot(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>Ao(r,i))}findAll(t,n){const[r]=ot(t,n);return Object.keys(r).length>0?this.queries.filter(i=>Ao(r,i)):this.queries}notify(t){U.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){U.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){U.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class Fp extends Cf{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||ku,this.observers=[],this.state=t.state||kf(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var x;return this.retryer=Sf({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(E,j)=>{this.dispatch({type:"failed",failureCount:E,error:j})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(x=this.options.retry)!=null?x:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,l,s,u,o,a,p;if(!n){var v,d,y,g;this.dispatch({type:"loading",variables:this.options.variables}),await((v=(d=this.mutationCache.config).onMutate)==null?void 0:v.call(d,this.state.variables,this));const E=await((y=(g=this.options).onMutate)==null?void 0:y.call(g,this.state.variables));E!==this.state.context&&this.dispatch({type:"loading",context:E,variables:this.state.variables})}const x=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,x,this.state.variables,this.state.context,this)),await((l=(s=this.options).onSuccess)==null?void 0:l.call(s,x,this.state.variables,this.state.context)),await((u=(o=this.mutationCache.config).onSettled)==null?void 0:u.call(o,x,null,this.state.variables,this.state.context,this)),await((a=(p=this.options).onSettled)==null?void 0:a.call(p,x,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:x}),x}catch(x){try{var m,P,c,f,h,S,k,w;throw await((m=(P=this.mutationCache.config).onError)==null?void 0:m.call(P,x,this.state.variables,this.state.context,this)),await((c=(f=this.options).onError)==null?void 0:c.call(f,x,this.state.variables,this.state.context)),await((h=(S=this.mutationCache.config).onSettled)==null?void 0:h.call(S,void 0,x,this.state.variables,this.state.context,this)),await((k=(w=this.options).onSettled)==null?void 0:k.call(w,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Hi(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),U.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function kf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Qp extends Bt{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new Fp({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){U.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>qo(t,n))}findAll(t){return this.mutations.filter(n=>qo(t,n))}notify(t){U.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return U.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(Pe)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function ks(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,l,s;const u=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,o=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,a=o==null?void 0:o.pageParam,p=(o==null?void 0:o.direction)==="forward",v=(o==null?void 0:o.direction)==="backward",d=((l=e.state.data)==null?void 0:l.pages)||[],y=((s=e.state.data)==null?void 0:s.pageParams)||[];let g=y,m=!1;const P=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>{var x;if((x=e.signal)!=null&&x.aborted)m=!0;else{var E;(E=e.signal)==null||E.addEventListener("abort",()=>{m=!0})}return e.signal}})},c=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),f=(w,x,E,j)=>(g=j?[x,...g]:[...g,x],j?[E,...w]:[...w,E]),h=(w,x,E,j)=>{if(m)return Promise.reject("Cancelled");if(typeof E>"u"&&!x&&w.length)return Promise.resolve(w);const _={queryKey:e.queryKey,pageParam:E,meta:e.options.meta};P(_);const W=c(_);return Promise.resolve(W).then(Ee=>f(w,E,Ee,j))};let S;if(!d.length)S=h([]);else if(p){const w=typeof a<"u",x=w?a:Es(e.options,d);S=h(d,w,x)}else if(v){const w=typeof a<"u",x=w?a:Ef(e.options,d);S=h(d,w,x,!0)}else{g=[];const w=typeof e.options.getNextPageParam>"u";S=(u&&d[0]?u(d[0],0,d):!0)?h([],w,y[0]):Promise.resolve(f([],y[0],d[0]));for(let E=1;E<d.length;E++)S=S.then(j=>{if(u&&d[E]?u(d[E],E,d):!0){const W=w?y[E]:Es(e.options,j);return h(j,w,W)}return Promise.resolve(f(j,y[E],d[E]))})}return S.then(w=>({pages:w,pageParams:g}))}}}}function Es(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Ef(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function zp(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=Es(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function Up(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Ef(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class Ap{constructor(t={}){this.queryCache=t.queryCache||new Lp,this.mutationCache=t.mutationCache||new Qp,this.logger=t.logger||ku,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Ci.subscribe(()=>{Ci.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ki.subscribe(()=>{ki.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=ot(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=ln(t,n,r),l=this.getQueryData(i.queryKey);return l?Promise.resolve(l):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),l=i==null?void 0:i.state.data,s=Pp(n,l);if(typeof s>"u")return;const u=ln(t),o=this.defaultQueryOptions(u);return this.queryCache.build(this,o).setData(s,{...r,manual:!0})}setQueriesData(t,n,r){return U.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=ot(t,n),i=this.queryCache;U.batch(()=>{i.findAll(r).forEach(l=>{i.remove(l)})})}resetQueries(t,n,r){const[i,l]=ot(t,n,r),s=this.queryCache,u={type:"active",...i};return U.batch(()=>(s.findAll(i).forEach(o=>{o.reset()}),this.refetchQueries(u,l)))}cancelQueries(t,n,r){const[i,l={}]=ot(t,n,r);typeof l.revert>"u"&&(l.revert=!0);const s=U.batch(()=>this.queryCache.findAll(i).map(u=>u.cancel(l)));return Promise.all(s).then(Pe).catch(Pe)}invalidateQueries(t,n,r){const[i,l]=ot(t,n,r);return U.batch(()=>{var s,u;if(this.queryCache.findAll(i).forEach(a=>{a.invalidate()}),i.refetchType==="none")return Promise.resolve();const o={...i,type:(s=(u=i.refetchType)!=null?u:i.type)!=null?s:"active"};return this.refetchQueries(o,l)})}refetchQueries(t,n,r){const[i,l]=ot(t,n,r),s=U.batch(()=>this.queryCache.findAll(i).filter(o=>!o.isDisabled()).map(o=>{var a;return o.fetch(void 0,{...l,cancelRefetch:(a=l==null?void 0:l.cancelRefetch)!=null?a:!0,meta:{refetchPage:i.refetchPage}})}));let u=Promise.all(s).then(Pe);return l!=null&&l.throwOnError||(u=u.catch(Pe)),u}fetchQuery(t,n,r){const i=ln(t,n,r),l=this.defaultQueryOptions(i);typeof l.retry>"u"&&(l.retry=!1);const s=this.queryCache.build(this,l);return s.isStaleByTime(l.staleTime)?s.fetch(l):Promise.resolve(s.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Pe).catch(Pe)}fetchInfiniteQuery(t,n,r){const i=ln(t,n,r);return i.behavior=ks(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Pe).catch(Pe)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>ht(t)===ht(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>xi(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>ht(t)===ht(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>xi(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Cu(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Eu extends Bt{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Vo(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ps(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ps(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Si(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const l=this.hasListeners();l&&Wo(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),l&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const s=this.computeRefetchInterval();l&&(this.currentQuery!==i||this.options.enabled!==r.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return Hp(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pe)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),ar||this.currentResult.isStale||!xs(this.options.staleTime))return;const n=yf(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(ar||this.options.enabled===!1||!xs(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ci.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,l=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,o=t!==r,a=o?t.state:this.currentQueryInitialState,p=o?this.currentResult:this.previousQueryResult,{state:v}=t;let{dataUpdatedAt:d,error:y,errorUpdatedAt:g,fetchStatus:m,status:P}=v,c=!1,f=!1,h;if(n._optimisticResults){const E=this.hasListeners(),j=!E&&Vo(t,n),_=E&&Wo(t,r,n,i);(j||_)&&(m=Hi(t.options.networkMode)?"fetching":"paused",d||(P="loading")),n._optimisticResults==="isRestoring"&&(m="idle")}if(n.keepPreviousData&&!v.dataUpdatedAt&&p!=null&&p.isSuccess&&P!=="error")h=p.data,d=p.dataUpdatedAt,P=p.status,c=!0;else if(n.select&&typeof v.data<"u")if(l&&v.data===(s==null?void 0:s.data)&&n.select===this.selectFn)h=this.selectResult;else try{this.selectFn=n.select,h=n.select(v.data),h=Cs(l==null?void 0:l.data,h,n),this.selectResult=h,this.selectError=null}catch(E){this.selectError=E}else h=v.data;if(typeof n.placeholderData<"u"&&typeof h>"u"&&P==="loading"){let E;if(l!=null&&l.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))E=l.data;else if(E=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof E<"u")try{E=n.select(E),this.selectError=null}catch(j){this.selectError=j}typeof E<"u"&&(P="success",h=Cs(l==null?void 0:l.data,E,n),f=!0)}this.selectError&&(y=this.selectError,h=this.selectResult,g=Date.now(),P="error");const S=m==="fetching",k=P==="loading",w=P==="error";return{status:P,fetchStatus:m,isLoading:k,isSuccess:P==="success",isError:w,isInitialLoading:k&&S,data:h,dataUpdatedAt:d,error:y,errorUpdatedAt:g,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>a.dataUpdateCount||v.errorUpdateCount>a.errorUpdateCount,isFetching:S,isRefetching:S&&!k,isLoadingError:w&&v.dataUpdatedAt===0,isPaused:m==="paused",isPlaceholderData:f,isPreviousData:c,isRefetchError:w&&v.dataUpdatedAt!==0,isStale:Pu(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Si(r,n))return;this.currentResult=r;const i={cache:!0},l=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.trackedProps.size)return!0;const o=new Set(u??this.trackedProps);return this.options.useErrorBoundary&&o.add("error"),Object.keys(this.currentResult).some(a=>{const p=a;return this.currentResult[p]!==n[p]&&o.has(p)})};(t==null?void 0:t.listeners)!==!1&&l()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!br(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){U.batch(()=>{if(t.onSuccess){var n,r,i,l;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(l=this.options).onSettled)==null||i.call(l,this.currentResult.data,null)}else if(t.onError){var s,u,o,a;(s=(u=this.options).onError)==null||s.call(u,this.currentResult.error),(o=(a=this.options).onSettled)==null||o.call(a,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:p})=>{p(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function qp(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Vo(e,t){return qp(e,t)||e.state.dataUpdatedAt>0&&Ps(e,t,t.refetchOnMount)}function Ps(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Pu(e,t)}return!1}function Wo(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Pu(e,n)}function Pu(e,t){return e.isStaleByTime(t.staleTime)}function Hp(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Si(e.getCurrentResult(),t)}class $p extends Bt{constructor(t,n){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},n&&this.setQueries(n)}onSubscribe(){this.listeners.size===1&&this.observers.forEach(t=>{t.subscribe(n=>{this.onUpdate(t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,n){this.queries=t,U.batch(()=>{const r=this.observers,i=this.findMatchingObservers(this.queries);i.forEach(a=>a.observer.setOptions(a.defaultedQueryOptions,n));const l=i.map(a=>a.observer),s=Object.fromEntries(l.map(a=>[a.options.queryHash,a])),u=l.map(a=>a.getCurrentResult()),o=l.some((a,p)=>a!==r[p]);r.length===l.length&&!o||(this.observers=l,this.observersMap=s,this.result=u,this.hasListeners()&&(Uo(r,l).forEach(a=>{a.destroy()}),Uo(l,r).forEach(a=>{a.subscribe(p=>{this.onUpdate(a,p)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions))}findMatchingObservers(t){const n=this.observers,r=new Map(n.map(y=>[y.options.queryHash,y])),i=t.map(y=>this.client.defaultQueryOptions(y)),l=i.flatMap(y=>{const g=r.get(y.queryHash);return g!=null?[{defaultedQueryOptions:y,observer:g}]:[]}),s=new Set(l.map(y=>y.defaultedQueryOptions.queryHash)),u=i.filter(y=>!s.has(y.queryHash)),o=new Set(l.map(y=>y.observer)),a=n.filter(y=>!o.has(y)),p=y=>{const g=this.client.defaultQueryOptions(y),m=this.observersMap[g.queryHash];return m??new Eu(this.client,g)},v=u.map((y,g)=>{if(y.keepPreviousData){const m=a[g];if(m!==void 0)return{defaultedQueryOptions:y,observer:m}}return{defaultedQueryOptions:y,observer:p(y)}}),d=(y,g)=>i.indexOf(y.defaultedQueryOptions)-i.indexOf(g.defaultedQueryOptions);return l.concat(v).sort(d)}onUpdate(t,n){const r=this.observers.indexOf(t);r!==-1&&(this.result=Rp(this.result,r,n),this.notify())}notify(){U.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class Bp extends Eu{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:ks()},n)}getOptimisticResult(t){return t.behavior=ks(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,i,l,s,u,o;const{state:a}=t,p=super.createResult(t,n),{isFetching:v,isRefetching:d}=p,y=v&&((r=a.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",g=v&&((l=a.fetchMeta)==null||(s=l.fetchMore)==null?void 0:s.direction)==="backward";return{...p,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:zp(n,(u=a.data)==null?void 0:u.pages),hasPreviousPage:Up(n,(o=a.data)==null?void 0:o.pages),isFetchingNextPage:y,isFetchingPreviousPage:g,isRefetching:d&&!y&&!g}}}let Kp=class extends Bt{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Si(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:kf(),n=t.status==="loading",r={...t,isLoading:n,isPending:n,isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=r}notify(t){U.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,l;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(l=this.mutateOptions).onSettled)==null||i.call(l,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var s,u,o,a;(s=(u=this.mutateOptions).onError)==null||s.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(o=(a=this.mutateOptions).onSettled)==null||o.call(a,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:p})=>{p(this.currentResult)})})}};var Pf={exports:{}},Rf={};/**
|
|
41
|
+
* @license React
|
|
42
|
+
* use-sync-external-store-shim.production.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/var wn=T;function Vp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wp=typeof Object.is=="function"?Object.is:Vp,bp=wn.useState,Gp=wn.useEffect,Yp=wn.useLayoutEffect,Xp=wn.useDebugValue;function Zp(e,t){var n=t(),r=bp({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return Yp(function(){i.value=n,i.getSnapshot=t,Cl(i)&&l({inst:i})},[e,n,t]),Gp(function(){return Cl(i)&&l({inst:i}),e(function(){Cl(i)&&l({inst:i})})},[e]),Xp(n),n}function Cl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wp(e,n)}catch{return!0}}function Jp(e,t){return t()}var em=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jp:Zp;Rf.useSyncExternalStore=wn.useSyncExternalStore!==void 0?wn.useSyncExternalStore:em;Pf.exports=Rf;var Nf=Pf.exports;const Ru=Nf.useSyncExternalStore,bo=T.createContext(void 0),Of=T.createContext(!1);function _f(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bo),window.ReactQueryClientContext):bo)}const $i=({context:e}={})=>{const t=T.useContext(_f(e,T.useContext(Of)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tm=({client:e,children:t,context:n,contextSharing:r=!1})=>{T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=_f(n,r);return T.createElement(Of.Provider,{value:!n&&r},T.createElement(i.Provider,{value:e},t))},Tf=T.createContext(!1),jf=()=>T.useContext(Tf);Tf.Provider;function nm(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const rm=T.createContext(nm()),Mf=()=>T.useContext(rm);function Df(e,t){return typeof e=="function"?e(...t):!!e}const If=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},Lf=e=>{T.useEffect(()=>{e.clearReset()},[e])},Ff=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Df(n,[e.error,r]),Qf=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},zf=(e,t)=>e.isLoading&&e.isFetching&&!t,Rs=(e,t,n)=>(e==null?void 0:e.suspense)&&zf(t,n),Ns=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function im({queries:e,context:t}){const n=$i({context:t}),r=jf(),i=Mf(),l=T.useMemo(()=>e.map(d=>{const y=n.defaultQueryOptions(d);return y._optimisticResults=r?"isRestoring":"optimistic",y}),[e,n,r]);l.forEach(d=>{Qf(d),If(d,i)}),Lf(i);const[s]=T.useState(()=>new $p(n,l)),u=s.getOptimisticResult(l);Ru(T.useCallback(d=>r?()=>{}:s.subscribe(U.batchCalls(d)),[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),T.useEffect(()=>{s.setQueries(l,{listeners:!1})},[l,s]);const a=u.some((d,y)=>Rs(l[y],d,r))?u.flatMap((d,y)=>{const g=l[y],m=s.getObservers()[y];if(g&&m){if(Rs(g,d,r))return Ns(g,m,i);zf(d,r)&&Ns(g,m,i)}return[]}):[];if(a.length>0)throw Promise.all(a);const p=s.getQueries(),v=u.find((d,y)=>{var g,m;return Ff({result:d,errorResetBoundary:i,useErrorBoundary:(g=(m=l[y])==null?void 0:m.useErrorBoundary)!=null?g:!1,query:p[y]})});if(v!=null&&v.error)throw v.error;return u}function Uf(e,t){const n=$i({context:e.context}),r=jf(),i=Mf(),l=n.defaultQueryOptions(e);l._optimisticResults=r?"isRestoring":"optimistic",l.onError&&(l.onError=U.batchCalls(l.onError)),l.onSuccess&&(l.onSuccess=U.batchCalls(l.onSuccess)),l.onSettled&&(l.onSettled=U.batchCalls(l.onSettled)),Qf(l),If(l,i),Lf(i);const[s]=T.useState(()=>new t(n,l)),u=s.getOptimisticResult(l);if(Ru(T.useCallback(o=>{const a=r?()=>{}:s.subscribe(U.batchCalls(o));return s.updateResult(),a},[s,r]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),T.useEffect(()=>{s.setOptions(l,{listeners:!1})},[l,s]),Rs(l,u,r))throw Ns(l,s,i);if(Ff({result:u,errorResetBoundary:i,useErrorBoundary:l.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return l.notifyOnChangeProps?u:s.trackResult(u)}function lm(e,t,n){const r=ln(e,t,n);return Uf(r,Eu)}function sm(e,t,n){const r=Np(e,t),i=$i({context:r.context}),[l]=T.useState(()=>new Kp(i,r));T.useEffect(()=>{l.setOptions(r)},[l,r]);const s=Ru(T.useCallback(o=>l.subscribe(U.batchCalls(o)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),u=T.useCallback((o,a)=>{l.mutate(o,a).catch(um)},[l]);if(s.error&&Df(l.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}function um(){}function om(e,t,n){const r=ln(e,t,n);return Uf(r,Bp)}function am(e){return e}function cm(e){return e.length===0?am:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}function Af(e){const t={subscribe(n){let r=null,i=!1,l=!1,s=!1;function u(){if(r===null){s=!0;return}l||(l=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(o){var a;i||(a=n.next)==null||a.call(n,o)},error(o){var a;i||(i=!0,(a=n.error)==null||a.call(n,o),u())},complete(){var o;i||(i=!0,(o=n.complete)==null||o.call(n),u())}}),s&&u(),{unsubscribe:u}},pipe(...n){return cm(n)(t)}};return t}function fm(e){return t=>{let n=0,r=null;const i=[];function l(){r||(r=t.subscribe({next(u){var o;for(const a of i)(o=a.next)==null||o.call(a,u)},error(u){var o;for(const a of i)(o=a.error)==null||o.call(a,u)},complete(){var u;for(const o of i)(u=o.complete)==null||u.call(o)}}))}function s(){if(n===0&&r){const u=r;r=null,u.unsubscribe()}}return{subscribe(u){return n++,i.push(u),l(),{unsubscribe(){n--,s();const o=i.findIndex(a=>a===u);o>-1&&i.splice(o,1)}}}}}}class Nu extends Error{constructor(t){super(t),this.name="ObservableAbortError",Object.setPrototypeOf(this,Nu.prototype)}}function dm(e){let t;return{promise:new Promise((r,i)=>{let l=!1;function s(){l||(l=!0,i(new Nu("This operation was aborted.")),u.unsubscribe())}const u=e.subscribe({next(o){l=!0,r(o),s()},error(o){l=!0,i(o),s()},complete(){l=!0,s()}});t=s}),abort:t}}function hm(e){return Af(t=>{function n(i=0,l=e.op){const s=e.links[i];if(!s)throw new Error("No more links to execute - did you forget to add an ending link?");return s({op:l,next(o){return n(i+1,o)}})}return n().subscribe(t)})}function qf(e){const t=Object.create(null);for(const n in e){const r=e[n];t[r]=n}return t}const Hf={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,UNAUTHORIZED:-32001,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNPROCESSABLE_CONTENT:-32022,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};qf(Hf);qf(Hf);const $f=()=>{};function Bf(e,t){return new Proxy($f,{get(r,i){if(!(typeof i!="string"||i==="then"))return Bf(e,[...t,i])},apply(r,i,l){const s=t[t.length-1]==="apply";return e({args:s?l.length>=2?l[1]:[]:l,path:s?t.slice(0,-1):t})}})}const Bi=e=>Bf(e,[]),Ou=e=>new Proxy($f,{get(t,n){if(!(typeof n!="string"||n==="then"))return e(n)}});function pm(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}class mm extends Error{}function ym(e){if(e instanceof Error)return e;const t=typeof e;if(!(t==="undefined"||t==="function"||e===null)){if(t!=="object")return new Error(String(e));if(pm(e)){const n=new mm;for(const r in e)n[r]=e[r];return n}}}function Ei(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function vm(e,t){if("error"in e){const r=t.transformer.deserialize(e.error);return{ok:!1,error:{...e,error:r}}}return{ok:!0,result:{...e.result,...(!e.result.type||e.result.type==="data")&&{type:"data",data:t.transformer.deserialize(e.result.data)}}}}class kl extends Error{constructor(){super("Unable to transform response from server")}}function gm(e,t){let n;try{n=vm(e,t)}catch{throw new kl}if(!n.ok&&(!Ei(n.error.error)||typeof n.error.error.code!="number"))throw new kl;if(n.ok&&!Ei(n.result))throw new kl;return n}function wm(e){return e instanceof $e||e instanceof Error&&e.name==="TRPCClientError"}function xm(e){return Ei(e)&&Ei(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}class $e extends Error{static from(t,n={}){const r=t;return wm(r)?(n.meta&&(r.meta={...r.meta,...n.meta}),r):xm(r)?new $e(r.error.message,{...n,result:r}):r instanceof Error?new $e(r.message,{...n,cause:ym(r)}):new $e("Unknown error",{...n,cause:r})}constructor(t,n){var i,l;const r=n==null?void 0:n.cause;super(t,{cause:r}),this.meta=n==null?void 0:n.meta,this.cause=r,this.shape=(i=n==null?void 0:n.result)==null?void 0:i.error,this.data=(l=n==null?void 0:n.result)==null?void 0:l.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,$e.prototype)}}const Go=e=>typeof e=="function";function Sm(e){if(e)return e;if(typeof window<"u"&&Go(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Go(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}function Cm(e){return e||(typeof window<"u"&&window.AbortController?window.AbortController:typeof globalThis<"u"&&globalThis.AbortController?globalThis.AbortController:null)}function km(e){return{url:e.url.toString().replace(/\/$/,""),fetch:e.fetch,AbortController:Cm(e.AbortController)}}function Em(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const Pm={query:"GET",mutation:"POST"};function Kf(e){return"input"in e?e.runtime.transformer.serialize(e.input):Em(e.inputs.map(t=>e.runtime.transformer.serialize(t)))}const Vf=e=>{let t=e.url+"/"+e.path;const n=[];if("inputs"in e&&n.push("batch=1"),e.type==="query"){const r=Kf(e);r!==void 0&&n.push(`input=${encodeURIComponent(JSON.stringify(r))}`)}return n.length&&(t+="?"+n.join("&")),t},Rm=e=>{if(e.type==="query")return;const t=Kf(e);return t!==void 0?JSON.stringify(t):void 0},Nm=e=>_m({...e,contentTypeHeader:"application/json",getUrl:Vf,getBody:Rm});async function Om(e,t){const n=e.getUrl(e),r=e.getBody(e),{type:i}=e,l=await e.headers();/* istanbul ignore if -- @preserve */if(i==="subscription")throw new Error("Subscriptions should use wsLink");const s={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.batchModeHeader?{"trpc-batch-mode":e.batchModeHeader}:{},...l};return Sm(e.fetch)(n,{method:Pm[i],signal:t==null?void 0:t.signal,body:r,headers:s})}function _m(e){const t=e.AbortController?new e.AbortController:null,n={};let r=!1;return{promise:new Promise((s,u)=>{Om(e,t).then(o=>(n.response=o,r=!0,o.json())).then(o=>{n.responseJSON=o,s({json:o,meta:n})}).catch(o=>{r=!0,u($e.from(o,{meta:n}))})}),cancel:()=>{r||t==null||t.abort()}}}const El=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Pl(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function i(u){var p,v;const o=[[]];let a=0;for(;;){const d=u[a];if(!d)break;const y=o[o.length-1];if(d.aborted){(p=d.reject)==null||p.call(d,new Error("Aborted")),a++;continue}if(e.validate(y.concat(d).map(m=>m.key))){y.push(d),a++;continue}if(y.length===0){(v=d.reject)==null||v.call(d,new Error("Input is too big for a single dispatch")),a++;continue}o.push([])}return o}function l(){const u=i(t);r();for(const o of u){if(!o.length)continue;const a={items:o,cancel:El};for(const y of o)y.batch=a;const p=(y,g)=>{var P;const m=a.items[y];(P=m.resolve)==null||P.call(m,g),m.batch=null,m.reject=null,m.resolve=null},{promise:v,cancel:d}=e.fetch(a.items.map(y=>y.key),p);a.cancel=d,v.then(y=>{var g;for(let m=0;m<y.length;m++){const P=y[m];p(m,P)}for(const m of a.items)(g=m.reject)==null||g.call(m,new Error("Missing result")),m.batch=null}).catch(y=>{var g;for(const m of a.items)(g=m.reject)==null||g.call(m,y),m.batch=null})}}function s(u){const o={aborted:!1,key:u,batch:null,resolve:El,reject:El},a=new Promise((v,d)=>{o.reject=d,o.resolve=v,t||(t=[]),t.push(o)});return n||(n=setTimeout(l)),{promise:a,cancel:()=>{var v;o.aborted=!0,(v=o.batch)!=null&&v.items.every(d=>d.aborted)&&(o.batch.cancel(),o.batch=null)}}}return{load:s}}function Tm(e){return function(n){const r=km(n),i=n.maxURLLength??1/0;return l=>{const s=v=>{const d=g=>{if(i===1/0)return!0;const m=g.map(f=>f.path).join(","),P=g.map(f=>f.input);return Vf({...r,runtime:l,type:v,path:m,inputs:P}).length<=i},y=e({...r,runtime:l,type:v,opts:n});return{validate:d,fetch:y}},u=Pl(s("query")),o=Pl(s("mutation")),a=Pl(s("subscription")),p={query:u,subscription:a,mutation:o};return({op:v})=>Af(d=>{const y=p[v.type],{promise:g,cancel:m}=y.load(v);let P;return g.then(c=>{P=c;const f=gm(c.json,l);if(!f.ok){d.error($e.from(f.error,{meta:c.meta}));return}d.next({context:c.meta,result:f.result}),d.complete()}).catch(c=>{d.error($e.from(c,{meta:P==null?void 0:P.meta}))}),()=>{m()}})}}}const jm=e=>t=>{const n=t.map(s=>s.path).join(","),r=t.map(s=>s.input),{promise:i,cancel:l}=Nm({...e,path:n,inputs:r,headers(){return e.opts.headers?typeof e.opts.headers=="function"?e.opts.headers({opList:t}):e.opts.headers:{}}});return{promise:i.then(s=>(Array.isArray(s.json)?s.json:t.map(()=>s.json)).map(a=>({meta:s.meta,json:a}))),cancel:l}},Mm=Tm(jm);class Dm{$request({type:t,input:n,path:r,context:i={}}){return hm({links:this.links,op:{id:++this.requestId,type:t,path:r,input:n,context:i}}).pipe(fm())}requestAsPromise(t){const n=this.$request(t),{promise:r,abort:i}=dm(n);return new Promise((s,u)=>{var o;(o=t.signal)==null||o.addEventListener("abort",i),r.then(a=>{s(a.result.data)}).catch(a=>{u($e.from(a))})})}query(t,n,r){return this.requestAsPromise({type:"query",path:t,input:n,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}mutation(t,n,r){return this.requestAsPromise({type:"mutation",path:t,input:n,context:r==null?void 0:r.context,signal:r==null?void 0:r.signal})}subscription(t,n,r){return this.$request({type:"subscription",path:t,input:n,context:r==null?void 0:r.context}).subscribe({next(l){var s,u,o;l.result.type==="started"?(s=r.onStarted)==null||s.call(r):l.result.type==="stopped"?(u=r.onStopped)==null||u.call(r):(o=r.onData)==null||o.call(r,l.result.data)},error(l){var s;(s=r.onError)==null||s.call(r,l)},complete(){var l;(l=r.onComplete)==null||l.call(r)}})}constructor(t){this.requestId=0;const n=(()=>{const r=t.transformer;return r?"input"in r?t.transformer:{input:r,output:r}:{input:{serialize:i=>i,deserialize:i=>i},output:{serialize:i=>i,deserialize:i=>i}}})();this.runtime={transformer:{serialize:r=>n.input.serialize(r),deserialize:r=>n.output.deserialize(r)},combinedTransformer:n},this.links=t.links.map(r=>r(this.runtime))}}function Im(e){return new Dm(e)}const Lm={query:"query",mutate:"mutation",subscribe:"subscription"},Fm=e=>Lm[e];function Qm(e){return Ou(t=>e.hasOwnProperty(t)?e[t]:t==="__untypedClient"?e:Bi(({path:n,args:r})=>{const i=[t,...n],l=Fm(i.pop()),s=i.join(".");return e[l](s,...r)}))}function H(e,t){const n=Array.isArray(e)?e:[e],[r,i]=n,l=typeof r!="string"||r===""?[]:r.split(".");return!i&&(!t||t==="any")?l.length?[l]:[]:[l,{...typeof i<"u"&&{input:i},...t&&t!=="any"&&{type:t}}]}function Pi(e,t){return e.length?t===void 0?[e]:[e,t]:[]}function zm(e,t){return Bi(n=>{const r=n.args,i=[e,...n.path],l=i.pop(),s=i.join(".");if(l==="useMutation")return t[l](s,...r);const[u,...o]=r,a=Pi(s,u);if(l==="getQueryKey")return H(a,o[0]??"any");if(l==="_def")return{path:i};if(l.startsWith("useSuspense")){const p=o[0]||{},d=t[l==="useSuspenseQuery"?"useQuery":"useInfiniteQuery"](a,{...p,suspense:!0,enabled:!0});return[d.data,d]}return t[l](a,...o)})}const Um=["client","ssrContext","ssrState","abortOnUnmount"],Am=T.createContext(null);function qm(e){return Ou(t=>{const n=t;return n==="client"?Qm(e.client):Um.includes(n)?e[n]:Bi(({path:r,args:i})=>{const l=[t,...r],s=l.pop(),u=l.join("."),o=y=>{if(["setData","setInfiniteData"].includes(y)){const[c,f,...h]=i;return{queryKey:Pi(u,c),updater:f,rest:h}}const[g,...m]=i;return{queryKey:Pi(u,g),rest:m}},{queryKey:a,rest:p,updater:v}=o(s);return{fetch:()=>e.fetchQuery(a,...p),fetchInfinite:()=>e.fetchInfiniteQuery(a,...p),prefetch:()=>e.prefetchQuery(a,...p),prefetchInfinite:()=>e.prefetchInfiniteQuery(a,...p),ensureData:()=>e.ensureQueryData(a,...p),invalidate:()=>e.invalidateQueries(a,...p),reset:()=>e.resetQueries(a,...p),refetch:()=>e.refetchQueries(a,...p),cancel:()=>e.cancelQuery(a,...p),setData:()=>{e.setQueryData(a,v,...p)},setInfiniteData:()=>{e.setInfiniteQueryData(a,v,...p)},getData:()=>e.getQueryData(a),getInfiniteData:()=>e.getInfiniteQueryData(a)}[s]()})})}function Hm(e){return Bi(t=>{const n=t.path.join("."),[r,i]=t.args;return{queryKey:Pi(n,r),queryFn:()=>e.query(n,r,i==null?void 0:i.trpc),...i}})}function lt(e,t){const[n,r]=e;return[n,r,t==null?void 0:t.trpc]}function Rl(e){const{path:t}=e;return T.useMemo(()=>({path:t}),[t])}function $m(e){const t=g=>g.originalFn(),n=Am,r=e==null?void 0:e.reactQueryContext,i=g=>Im(g),l=g=>{const{abortOnUnmount:m=!1,client:P,queryClient:c,ssrContext:f}=g,[h,S]=T.useState(g.ssrState??!1);return T.useEffect(()=>{S(k=>k?"mounted":!1)},[]),Gr.createElement(n.Provider,{value:{abortOnUnmount:m,queryClient:c,client:P,ssrContext:f??null,ssrState:h,fetchQuery:T.useCallback((k,w)=>c.fetchQuery({...w,queryKey:H(k,"query"),queryFn:()=>P.query(...lt(k,w))}),[P,c]),fetchInfiniteQuery:T.useCallback((k,w)=>c.fetchInfiniteQuery({...w,queryKey:H(k,"infinite"),queryFn:({pageParam:x})=>{const[E,j]=k,_={...j,cursor:x};return P.query(...lt([E,_],w))}}),[P,c]),prefetchQuery:T.useCallback((k,w)=>c.prefetchQuery({...w,queryKey:H(k,"query"),queryFn:()=>P.query(...lt(k,w))}),[P,c]),prefetchInfiniteQuery:T.useCallback((k,w)=>c.prefetchInfiniteQuery({...w,queryKey:H(k,"infinite"),queryFn:({pageParam:x})=>{const[E,j]=k,_={...j,cursor:x};return P.query(...lt([E,_],w))}}),[P,c]),ensureQueryData:T.useCallback((k,w)=>c.ensureQueryData({...w,queryKey:H(k,"query"),queryFn:()=>P.query(...lt(k,w))}),[P,c]),invalidateQueries:T.useCallback((k,w,x)=>c.invalidateQueries({...w,queryKey:H(k,"any")},x),[c]),resetQueries:T.useCallback((...k)=>{const[w,x,E]=k;return c.resetQueries({...x,queryKey:H(w,"any")},E)},[c]),refetchQueries:T.useCallback((...k)=>{const[w,x,E]=k;return c.refetchQueries({...x,queryKey:H(w,"any")},E)},[c]),cancelQuery:T.useCallback(k=>c.cancelQueries({queryKey:H(k,"any")}),[c]),setQueryData:T.useCallback((...k)=>{const[w,...x]=k;return c.setQueryData(H(w,"query"),...x)},[c]),getQueryData:T.useCallback((...k)=>{const[w,...x]=k;return c.getQueryData(H(w,"query"),...x)},[c]),setInfiniteQueryData:T.useCallback((...k)=>{const[w,...x]=k;return c.setQueryData(H(w,"infinite"),...x)},[c]),getInfiniteQueryData:T.useCallback((...k)=>{const[w,...x]=k;return c.getQueryData(H(w,"infinite"),...x)},[c])}},g.children)};function s(){return Gr.useContext(n)}function u(g,m,P){var h;const{queryClient:c,ssrState:f}=s();return f&&f!=="mounted"&&((h=c.getQueryCache().find(H(g,m)))==null?void 0:h.state.status)==="error"?{retryOnMount:!1,...P}:P}function o(g,m){var _,W;const P=s();if(!P)throw new Error("Unable to retrieve application context. Did you forget to wrap your App inside `withTRPC` HoC?");const{abortOnUnmount:c,client:f,ssrState:h,queryClient:S,prefetchQuery:k}=P,w=S.getQueryDefaults(H(g,"query"));typeof window>"u"&&h==="prepass"&&((_=m==null?void 0:m.trpc)==null?void 0:_.ssr)!==!1&&((m==null?void 0:m.enabled)??(w==null?void 0:w.enabled))!==!1&&!S.getQueryCache().find(H(g,"query"))&&k(g,m);const x=u(g,"query",{...w,...m}),E=((W=m==null?void 0:m.trpc)==null?void 0:W.abortOnUnmount)??(e==null?void 0:e.abortOnUnmount)??c,j=lm({...x,queryKey:H(g,"query"),queryFn:Me=>{const Ee={...x,trpc:{...x==null?void 0:x.trpc,...E?{signal:Me.signal}:{}}};return f.query(...lt(g,Ee))},context:r});return j.trpc=Rl({path:g[0]}),j}function a(g,m){const{client:P}=s(),c=$i({context:r}),f=Array.isArray(g)?g[0]:g,h=c.getMutationDefaults([f.split(".")]),S=sm({...m,mutationKey:[f.split(".")],mutationFn:k=>P.mutation(...lt([f,k],m)),context:r,onSuccess(...k){return t({originalFn:()=>{var x,E;return((x=m==null?void 0:m.onSuccess)==null?void 0:x.call(m,...k))??((E=h==null?void 0:h.onSuccess)==null?void 0:E.call(h,...k))},queryClient:c,meta:(m==null?void 0:m.meta)??(h==null?void 0:h.meta)??{}})}});return S.trpc=Rl({path:f}),S}/* istanbul ignore next -- @preserve */function p(g,m){const P=(m==null?void 0:m.enabled)??!0,c=ht(g),{client:f}=s(),h=T.useRef(m);h.current=m,T.useEffect(()=>{if(!P)return;const[S,k]=g;let w=!1;const x=f.subscription(S,k??void 0,{onStarted:()=>{var E,j;w||(j=(E=h.current).onStarted)==null||j.call(E)},onData:E=>{w||h.current.onData(E)},onError:E=>{var j,_;w||(_=(j=h.current).onError)==null||_.call(j,E)}});return()=>{w=!0,x.unsubscribe()}},[c,P])}function v(g,m){var W,Me;const[P,c]=g,{client:f,ssrState:h,prefetchInfiniteQuery:S,queryClient:k,abortOnUnmount:w}=s(),x=k.getQueryDefaults(H(g,"infinite"));typeof window>"u"&&h==="prepass"&&((W=m==null?void 0:m.trpc)==null?void 0:W.ssr)!==!1&&((m==null?void 0:m.enabled)??(x==null?void 0:x.enabled))!==!1&&!k.getQueryCache().find(H(g,"infinite"))&&S(g,{...x,...m});const E=u(g,"infinite",{...x,...m}),j=((Me=m==null?void 0:m.trpc)==null?void 0:Me.abortOnUnmount)??w,_=om({...E,queryKey:H(g,"infinite"),queryFn:Ee=>{const yr={...E,trpc:{...E==null?void 0:E.trpc,...j?{signal:Ee.signal}:{}}},Vi={...c??{},cursor:Ee.pageParam??(m==null?void 0:m.initialCursor)};return f.query(...lt([P,Vi],yr))},context:r});return _.trpc=Rl({path:P}),_}return{Provider:l,createClient:i,useContext:s,useUtils:s,useQuery:o,useQueries:(g,m)=>{var w;const{ssrState:P,queryClient:c,prefetchQuery:f,client:h}=s(),S=Hm(h),k=g(S);if(typeof window>"u"&&P==="prepass")for(const x of k){const E=x;((w=E.trpc)==null?void 0:w.ssr)!==!1&&!c.getQueryCache().find(H(E.queryKey,"query"))&&f(E.queryKey,E)}return im({queries:k.map(x=>({...x,queryKey:H(x.queryKey,"query")})),context:m})},useMutation:a,useSubscription:p,useDehydratedState:(g,m)=>T.useMemo(()=>m&&g.runtime.transformer.deserialize(m),[m,g]),useInfiniteQuery:v}}function Bm(e){return $m(e)}function Km(e){return Ou(t=>t==="useContext"||t==="useUtils"?()=>{const n=e.useUtils();return T.useMemo(()=>qm(n),[n])}:e.hasOwnProperty(t)?e[t]:zm(t,e))}function Vm(e){const t=Bm(e);return Km(t)}const xn=Vm(),Wm=()=>typeof window<"u"?"":"http://localhost:4747",bm=xn.createClient({links:[Mm({url:`${Wm()}/api/trpc`})]}),Gm={},Yo=e=>{let t;const n=new Set,r=(p,v)=>{const d=typeof p=="function"?p(t):p;if(!Object.is(d,t)){const y=t;t=v??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(g=>g(t,y))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(Gm?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,i,o);return o},Ym=e=>e?Yo(e):Yo;var Wf={exports:{}},bf={};/**
|
|
49
|
+
* @license React
|
|
50
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/var Ki=T,Xm=Nf;function Zm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jm=typeof Object.is=="function"?Object.is:Zm,ey=Xm.useSyncExternalStore,ty=Ki.useRef,ny=Ki.useEffect,ry=Ki.useMemo,iy=Ki.useDebugValue;bf.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=ty(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=ry(function(){function o(y){if(!a){if(a=!0,p=y,y=r(y),i!==void 0&&s.hasValue){var g=s.value;if(i(g,y))return v=g}return v=y}if(g=v,Jm(p,y))return g;var m=r(y);return i!==void 0&&i(g,m)?(p=y,g):(p=y,v=m)}var a=!1,p,v,d=n===void 0?null:n;return[function(){return o(t())},d===null?void 0:function(){return o(d())}]},[t,n,r,i]);var u=ey(e,l[0],l[1]);return ny(function(){s.hasValue=!0,s.value=u},[u]),iy(u),u};Wf.exports=bf;var ly=Wf.exports;const sy=na(ly),Gf={},{useDebugValue:uy}=Gr,{useSyncExternalStoreWithSelector:oy}=sy;let Xo=!1;const ay=e=>e;function cy(e,t=ay,n){(Gf?"production":void 0)!=="production"&&n&&!Xo&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Xo=!0);const r=oy(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return uy(r),r}const Zo=e=>{(Gf?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?Ym(e):e,n=(r,i)=>cy(t,r,i);return Object.assign(n,t),n},Yf=e=>e?Zo(e):Zo,It=Yf(e=>({settings:{cache:"read-write",intervene:!0},connected:!1,version:null,setSettings:t=>{e({settings:t})},updateSettings:t=>{e(n=>({settings:{...n.settings,...t}}))},setConnected:t=>{e({connected:t})},setCacheMode:t=>{e(n=>({settings:{...n.settings,cache:t}}))},setIntervene:t=>{e(n=>({settings:{...n.settings,intervene:t}}))},setVersion:t=>{e({version:t})}})),fy=[{value:"off",label:"Off"},{value:"read",label:"Read"},{value:"read-write",label:"R/W"}];function dy(){const e=It(u=>u.settings),t=It(u=>u.setSettings),n=It(u=>u.connected),r=It(u=>u.version),i=xn.updateSettings.useMutation({onSuccess:u=>{t(u.settings)}}),l=u=>{i.mutate({settings:{cache:u}})},s=()=>{i.mutate({settings:{intervene:!e.intervene}})};return C.jsxs("header",{className:"flex items-center justify-between px-4 py-2 bg-pp-darker border-b border-pp-light",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-lg font-semibold text-white",children:"PlayingPack"}),r&&C.jsxs("span",{className:"text-xs text-gray-500",children:["v",r]})]}),C.jsxs("div",{className:"flex items-center gap-6",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-gray-500 uppercase tracking-wide",children:"Cache"}),C.jsx("div",{className:"flex rounded bg-pp-gray",children:fy.map(u=>C.jsx("button",{onClick:()=>l(u.value),className:`
|
|
57
|
+
px-3 py-1 text-xs font-medium transition-colors
|
|
58
|
+
${e.cache===u.value?"bg-blue-600 text-white rounded":"text-gray-400 hover:text-white"}
|
|
59
|
+
`,children:u.label},u.value))})]}),C.jsxs("button",{onClick:s,className:`
|
|
60
|
+
flex items-center gap-2 px-3 py-1 rounded text-xs font-medium transition-colors
|
|
61
|
+
${e.intervene?"bg-orange-600 text-white":"bg-pp-gray text-gray-400 hover:text-white"}
|
|
62
|
+
`,children:[C.jsx("span",{className:`w-2 h-2 rounded-full ${e.intervene?"bg-white":"bg-gray-600"}`}),"Intervene"]}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:`w-2 h-2 rounded-full ${n?"bg-green-500":"bg-red-500"}`}),C.jsx("span",{className:`text-xs ${n?"text-green-400":"text-red-400"}`,children:n?"Connected":"Disconnected"})]}),C.jsxs("a",{href:"https://github.com/playingpack/playingpack/issues",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-3 py-1 text-xs font-medium text-gray-400 hover:text-white bg-pp-gray rounded transition-colors",children:[C.jsx("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})}),"Report Issue"]})]})]})}const Kn=Yf((e,t)=>({sessions:new Map,selectedId:null,setSession:n=>{e(r=>{const i=new Map(r.sessions);return i.set(n.id,n),{sessions:i}})},removeSession:n=>{e(r=>{const i=new Map(r.sessions);return i.delete(n),{sessions:i,selectedId:r.selectedId===n?null:r.selectedId}})},clearSessions:()=>{e({sessions:new Map,selectedId:null})},selectSession:n=>{e({selectedId:n})},handleWSEvent:n=>{const{setSession:r}=t();switch(n.type){case"request_update":n.session&&r(n.session);break}},getSession:n=>t().sessions.get(n),getSortedSessions:()=>Array.from(t().sessions.values()).sort((r,i)=>new Date(i.timestamp).getTime()-new Date(r.timestamp).getTime()),getSelectedSession:()=>{const{selectedId:n,sessions:r}=t();return n?r.get(n):void 0}}));function hy({state:e,cacheHit:t}){const n=()=>{switch(e){case"pending":return{label:"WAITING",className:"bg-orange-500/10 text-orange-400 border border-orange-500/30 animate-pulse"};case"processing":return{label:"PROCESSING",className:"bg-blue-500/10 text-blue-400 border border-blue-500/30"};case"reviewing":return{label:"REVIEW",className:"bg-amber-500/10 text-amber-400 border border-amber-500/30 animate-pulse"};case"complete":return t?{label:"CACHED",className:"bg-teal-500/10 text-teal-400 border border-teal-500/30"}:{label:"DONE",className:"bg-green-500/10 text-green-400 border border-green-500/30"};default:return{label:e,className:"bg-gray-500/10 text-gray-300 border border-gray-500/30"}}},{label:r,className:i}=n();return C.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-bold ${i}`,children:r})}function py({session:e,selected:t,onClick:n}){var s;const r=new Date(e.timestamp).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),i=e.id.slice(0,8),l=()=>e.state==="pending"?"border-l-orange-500":e.state==="reviewing"?"border-l-amber-500":t?"border-l-blue-500":"border-l-transparent";return C.jsxs("div",{className:`
|
|
63
|
+
p-3 border-b border-pp-light cursor-pointer transition-all border-l-2
|
|
64
|
+
${l()}
|
|
65
|
+
${t?"bg-pp-gray":"hover:bg-pp-gray/50"}
|
|
66
|
+
`,onClick:n,children:[C.jsxs("div",{className:"flex items-center justify-between mb-1",children:[C.jsx("span",{className:"text-xs text-gray-500 font-mono",children:i}),C.jsx(hy,{state:e.state,cacheHit:e.cacheHit})]}),C.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[C.jsx("span",{className:"text-xs text-gray-400",children:r}),C.jsx("span",{className:"text-sm text-gray-200 truncate",children:e.request.model||"unknown"})]}),((s=e.response)==null?void 0:s.toolCalls)&&e.response.toolCalls.length>0&&C.jsx("div",{className:"flex flex-wrap gap-1 mt-1",children:e.response.toolCalls.map((u,o)=>C.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-purple-500/10 text-purple-400 rounded border border-purple-500/20",children:u.name},o))}),e.error&&C.jsx("div",{className:"text-xs text-red-400 mt-1 truncate",children:e.error})]})}function my(){const e=Kn(r=>r.getSortedSessions()),t=Kn(r=>r.selectedId),n=Kn(r=>r.selectSession);return e.length===0?C.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-4 text-gray-500",children:[C.jsx("svg",{className:"w-12 h-12 mb-4 opacity-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),C.jsx("p",{className:"text-sm",children:"No requests yet"}),C.jsxs("p",{className:"text-xs mt-1",children:["Point your AI agent to"," ",C.jsxs("code",{className:"bg-pp-gray px-1 rounded",children:["localhost:",window.location.port||"4747","/v1"]})]})]}):C.jsx("div",{className:"overflow-y-auto h-full",children:e.map(r=>C.jsx(py,{session:r,selected:r.id===t,onClick:()=>n(r.id)},r.id))})}class yy{constructor(){rt(this,"ws",null);rt(this,"url");rt(this,"listeners",new Set);rt(this,"reconnectAttempts",0);rt(this,"maxReconnectAttempts",10);rt(this,"reconnectDelay",1e3);rt(this,"reconnectTimer",null);const t=window.location.protocol==="https:"?"wss:":"ws:";this.url=`${t}//${window.location.host}/ws`}connect(){var t;if(((t=this.ws)==null?void 0:t.readyState)!==WebSocket.OPEN)try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>{console.log("[WS] Connected"),this.reconnectAttempts=0},this.ws.onmessage=n=>{try{const r=JSON.parse(n.data);this.notifyListeners(r)}catch(r){console.error("[WS] Failed to parse message:",r)}},this.ws.onclose=()=>{console.log("[WS] Disconnected"),this.scheduleReconnect()},this.ws.onerror=n=>{console.error("[WS] Error:",n)}}catch(n){console.error("[WS] Failed to connect:",n),this.scheduleReconnect()}}disconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null)}send(t){var n;((n=this.ws)==null?void 0:n.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(t))}sendPoint1Action(t,n){this.send({type:"point1_action",requestId:t,action:n})}sendPoint2Action(t,n){this.send({type:"point2_action",requestId:t,action:n})}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}isConnected(){var t;return((t=this.ws)==null?void 0:t.readyState)===WebSocket.OPEN}notifyListeners(t){for(const n of this.listeners)try{n(t)}catch(r){console.error("[WS] Listener error:",r)}}scheduleReconnect(){if(this.reconnectAttempts>=this.maxReconnectAttempts){console.log("[WS] Max reconnect attempts reached");return}const t=this.reconnectDelay*Math.pow(2,this.reconnectAttempts);this.reconnectAttempts++,console.log(`[WS] Reconnecting in ${t}ms (attempt ${this.reconnectAttempts})`),this.reconnectTimer=window.setTimeout(()=>{this.connect()},t)}}const be=new yy;function vy({session:e}){const[t,n]=T.useState(""),[r,i]=T.useState(!1),l=xn.point1Action.useMutation(),s=xn.point2Action.useMutation(),u=()=>{l.mutate({requestId:e.id,action:{action:"llm"}}),be.sendPoint1Action(e.id,{action:"llm"})},o=()=>{l.mutate({requestId:e.id,action:{action:"cache"}}),be.sendPoint1Action(e.id,{action:"cache"})},a=()=>{if(!r){i(!0);return}l.mutate({requestId:e.id,action:{action:"mock",content:t}}),be.sendPoint1Action(e.id,{action:"mock",content:t}),i(!1)},p=()=>{s.mutate({requestId:e.id,action:{action:"return"}}),be.sendPoint2Action(e.id,{action:"return"})},v=()=>{if(!r){i(!0);return}s.mutate({requestId:e.id,action:{action:"modify",content:t}}),be.sendPoint2Action(e.id,{action:"modify",content:t}),i(!1)};return C.jsxs("div",{className:"flex flex-col h-full",children:[C.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-pp-light",children:[C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("code",{className:"text-sm text-gray-500",children:e.id.slice(0,8)}),C.jsx(gy,{state:e.state}),e.cacheHit&&C.jsx("span",{className:"px-2 py-0.5 bg-teal-900/50 text-teal-400 text-xs rounded",children:"cached"})]}),C.jsx("span",{className:"text-xs text-gray-500",children:new Date(e.timestamp).toLocaleTimeString()})]}),e.state==="pending"&&C.jsxs("div",{className:"p-4 bg-orange-950/30 border-b border-orange-900/50",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[C.jsx("span",{className:"w-2 h-2 bg-orange-500 rounded-full animate-pulse"}),C.jsx("span",{className:"text-sm font-medium text-orange-400",children:"Intervention Point 1"}),C.jsx("span",{className:"text-xs text-gray-500",children:"— Choose how to respond"})]}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx("button",{onClick:u,className:"px-4 py-2 bg-green-600 hover:bg-green-700 text-white text-sm rounded font-medium transition-colors",children:"Call LLM"}),C.jsx("button",{onClick:o,disabled:!e.cacheHit,className:`px-4 py-2 text-sm rounded font-medium transition-colors ${e.cacheHit?"bg-teal-600 hover:bg-teal-700 text-white":"bg-gray-800 text-gray-600 cursor-not-allowed"}`,children:"Use Cache"}),C.jsx("button",{onClick:a,className:"px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white text-sm rounded font-medium transition-colors",children:r?"Send Mock":"Mock..."})]}),r&&C.jsxs("div",{className:"mt-3",children:[C.jsx("textarea",{value:t,onChange:d=>n(d.target.value),placeholder:"Enter mock response content...",className:"w-full h-24 p-3 bg-pp-darker border border-pp-light rounded text-sm text-gray-200 font-mono resize-none focus:outline-none focus:border-purple-500"}),C.jsxs("p",{className:"mt-1 text-xs text-gray-500",children:["Prefix with ",C.jsx("code",{className:"text-purple-400",children:"TOOL:function_name"})," for tool calls, or ",C.jsx("code",{className:"text-red-400",children:"ERROR:"})," for errors"]})]})]}),e.state==="reviewing"&&C.jsxs("div",{className:"p-4 bg-amber-950/30 border-b border-amber-900/50",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[C.jsx("span",{className:"w-2 h-2 bg-amber-500 rounded-full animate-pulse"}),C.jsx("span",{className:"text-sm font-medium text-amber-400",children:"Intervention Point 2"}),C.jsx("span",{className:"text-xs text-gray-500",children:"— Review response before returning"})]}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx("button",{onClick:p,className:"px-4 py-2 bg-green-600 hover:bg-green-700 text-white text-sm rounded font-medium transition-colors",children:"Return Response"}),C.jsx("button",{onClick:v,className:"px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white text-sm rounded font-medium transition-colors",children:r?"Send Modified":"Modify..."})]}),r&&C.jsx("div",{className:"mt-3",children:C.jsx("textarea",{value:t,onChange:d=>n(d.target.value),placeholder:"Enter modified response content...",className:"w-full h-24 p-3 bg-pp-darker border border-pp-light rounded text-sm text-gray-200 font-mono resize-none focus:outline-none focus:border-purple-500"})})]}),e.state==="processing"&&C.jsx("div",{className:"p-4 bg-blue-950/30 border-b border-blue-900/50",children:C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"w-2 h-2 bg-blue-500 rounded-full animate-pulse"}),C.jsx("span",{className:"text-sm text-blue-400",children:"Getting response..."})]})}),C.jsxs("div",{className:"flex-1 overflow-auto p-4",children:[C.jsxs(Jo,{title:"Request",children:[C.jsxs("div",{className:"space-y-2",children:[C.jsx(ea,{label:"Model",value:e.request.model}),C.jsx(ea,{label:"Stream",value:e.request.stream?"true":"false"})]}),e.request.messages&&e.request.messages.length>0&&C.jsxs("div",{className:"mt-3",children:[C.jsxs("div",{className:"text-xs text-gray-500 mb-2",children:["Messages (",e.request.messages.length,")"]}),C.jsx("div",{className:"space-y-2 max-h-48 overflow-auto",children:e.request.messages.slice(-3).map((d,y)=>C.jsxs("div",{className:"p-2 bg-pp-darker rounded text-xs",children:[C.jsx("span",{className:`font-medium ${d.role==="user"?"text-blue-400":d.role==="assistant"?"text-green-400":"text-gray-400"}`,children:d.role}),C.jsx("pre",{className:"mt-1 text-gray-300 whitespace-pre-wrap overflow-hidden",children:typeof d.content=="string"?d.content.slice(0,500)+(d.content.length>500?"...":""):JSON.stringify(d.content,null,2).slice(0,500)})]},y))})]})]}),e.response&&C.jsxs(Jo,{title:"Response",className:"mt-4",children:[e.response.content&&C.jsxs("div",{children:[C.jsx("div",{className:"text-xs text-gray-500 mb-2",children:"Content"}),C.jsx("pre",{className:"p-3 bg-pp-darker rounded text-sm text-gray-200 whitespace-pre-wrap max-h-48 overflow-auto",children:e.response.content})]}),e.response.toolCalls&&e.response.toolCalls.length>0&&C.jsxs("div",{className:"mt-3",children:[C.jsx("div",{className:"text-xs text-gray-500 mb-2",children:"Tool Calls"}),C.jsx("div",{className:"space-y-2",children:e.response.toolCalls.map((d,y)=>C.jsxs("div",{className:"p-3 bg-pp-darker rounded",children:[C.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[C.jsx("span",{className:"text-purple-400 font-medium",children:d.name}),C.jsx("code",{className:"text-xs text-gray-500",children:d.id})]}),C.jsx("pre",{className:"text-xs text-gray-300 whitespace-pre-wrap",children:wy(d.arguments)})]},y))})]})]})]})]})}function gy({state:e}){const t={pending:{bg:"bg-orange-900/50",text:"text-orange-400",label:"Pending"},processing:{bg:"bg-blue-900/50",text:"text-blue-400",label:"Processing"},reviewing:{bg:"bg-amber-900/50",text:"text-amber-400",label:"Reviewing"},complete:{bg:"bg-green-900/50",text:"text-green-400",label:"Complete"},error:{bg:"bg-red-900/50",text:"text-red-400",label:"Error"}},{bg:n,text:r,label:i}=t[e]||t.processing;return C.jsx("span",{className:`px-2 py-0.5 ${n} ${r} text-xs rounded`,children:i})}function Jo({title:e,children:t,className:n=""}){return C.jsxs("div",{className:n,children:[C.jsx("h3",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide mb-2",children:e}),C.jsx("div",{className:"bg-pp-gray rounded p-3",children:t})]})}function ea({label:e,value:t}){return C.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[C.jsxs("span",{className:"text-gray-500",children:[e,":"]}),C.jsx("span",{className:"text-gray-200 font-mono",children:t})]})}function wy(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function xy(){const e=Kn(s=>s.getSelectedSession()),t=Kn(s=>s.handleWSEvent),n=It(s=>s.setConnected),r=It(s=>s.setSettings),i=It(s=>s.setVersion),l=xn.getSettings.useQuery();return T.useEffect(()=>{l.data&&(r(l.data.settings),l.data.version&&i(l.data.version))},[l.data,r,i]),T.useEffect(()=>{be.connect();const s=be.subscribe(o=>{t(o)}),u=setInterval(()=>{n(be.isConnected())},1e3);return()=>{s(),clearInterval(u),be.disconnect()}},[t,n]),C.jsxs("div",{className:"flex flex-col h-screen bg-pp-dark",children:[C.jsx(dy,{}),C.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[C.jsxs("div",{className:"w-72 flex-shrink-0 border-r border-pp-light flex flex-col bg-pp-darker",children:[C.jsx("div",{className:"p-3 border-b border-pp-light",children:C.jsxs("div",{className:"text-xs text-gray-500",children:["Requests",C.jsxs("span",{className:"ml-2 text-gray-600",children:["Point agent to ",C.jsx("code",{className:"text-gray-400",children:"localhost:4747/v1"})]})]})}),C.jsx("div",{className:"flex-1 overflow-auto",children:C.jsx(my,{})})]}),C.jsx("div",{className:"flex-1 flex flex-col overflow-hidden bg-pp-dark",children:e?C.jsx(vy,{session:e}):C.jsx("div",{className:"flex-1 flex items-center justify-center",children:C.jsxs("div",{className:"text-center max-w-sm",children:[C.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-pp-gray flex items-center justify-center",children:C.jsx("svg",{className:"w-8 h-8 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:C.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"})})}),C.jsx("h2",{className:"text-lg font-medium text-gray-400 mb-2",children:"Select a request"}),C.jsxs("p",{className:"text-sm text-gray-600",children:["Click a request to inspect details. When"," ",C.jsx("span",{className:"text-orange-400",children:"Intervene"})," is enabled, requests will pause for your action."]})]})})})]})]})}function Sy(){return C.jsx(xy,{})}const ta=new Ap({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});Nl.createRoot(document.getElementById("root")).render(C.jsx(Gr.StrictMode,{children:C.jsx(xn.Provider,{client:bm,queryClient:ta,children:C.jsx(tm,{client:ta,children:C.jsx(Sy,{})})})}));
|